尝试这个:
<?php
$date = '2013-07-01';
$id = '1';
?>
<script type="text/javascript">
function popupwindow(url, title, w, h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
</script>
<img src="images/input.jpg" width="100" style="border-radius:20px; cursor:pointer;" onclick="popupwindow('data.php?id=<?=$date?>&id=<?=$id?>', 'Popup', 200, 200)" />