日期:2014-05-16 浏览次数:20519 次
.......省略
else {
echo "<div id=\"del_room_confirm\">\n";
echo "<p>\n";
echo "$name is not alive, are you sure to add it into system?\n";
echo "</p>\n";
echo "<div id=\"del_room_confirm_links\">\n";
echo "<a href=\"add.php?type=room&name=$name&area=$area&description=$description&capacity=$capacity&confirm=Y\"><span id=\"del_yes\">" . get_vocab("YES") . "!</span></a>\n";
echo "<a href=\"admin.php?area=$area\"><span id=\"del_no\">" . get_vocab("NO") . "!</span></a>\n";
echo "</div>\n";
echo "</div>\n";
}
......省略
else {
echo "<script type=\"text/javascript\">";
echo "window.onload=function() {
var v=confirm(\"$name is not alive, do you want to add it into system? $description\");
if (v){
window.location.href = \"add.php?type=room&name=$name&area=$area&description=$description&capacity=$capacity&confirm=Y\";
}
else {
window.