<?php function SetInput($a, $b) { $f = fopen('../python/input.txt', 'w'); fwrite($f, $a . ',' . $b . ';'); fclose($f); } if (isset($argv)) { SetInput($argv[1], $argv[2]); }
</table> <br /> <?php echo SetInput("button", "button", " 全选 ", "onclick=\"CheckAll(form,'all')\""); ?> <?php echo SetInput("button", "button", " 反选 ", "onclick=\"CheckAll(form,'other')\""); ?> <?php echo SetInput("button", "button", " 清除 ", "onclick=\"CheckAll(form,'clear')\""); ?> <?php echo SetInput("button", "button", " 删除选中记录 ", "onclick=\"if(confirm('您确定要删除所有选中记录吗?')){myform.submit();}\""); ?> </form> <br /><?php echo $links[1]; ?> <script type="text/javascript"> function del(cid,id){ if(confirm('您确定要删除此条记录吗?')){ location.href="save.php?action=dellinks&cid="+cid+"&id="+id; } } function CheckAll(form,s){ for (var i=0;i<form.elements.length;i++){ var e = form.elements[i]; if (e.name != 'checkbox'){