This commit is contained in:
root 2006-08-07 21:29:09 +00:00
parent 6058498685
commit b315bd31f9
2 changed files with 4 additions and 4 deletions

View file

@ -28,9 +28,9 @@
{ {
$reg = mysql_fetch_assoc(mysql_query("select * from `regions` where `id`='$regid'")); $reg = mysql_fetch_assoc(mysql_query("select * from `regions` where `id`='$regid'"));
$display = "<ul class='top'>\n<li>\n". $display = "<ul class='top'>\n<li>\n".
"<a href='account.php?id=53&regid=$regid&ccid=$ccid'>$reg[name]</a> - <a href='account.php?action=add&id=54&regid=$regid'>Add</a>\n". "<a href='account.php?id=53&regid=$regid'>$reg[name]</a> - <a href='account.php?action=add&id=54&regid=$regid'>Add</a>\n".
$display; $display;
$_REQUEST['ccid'] = $reg['ccid']; $ccid = $_REQUEST['ccid'] = $reg['ccid'];
} }
if($ccid > 0) if($ccid > 0)
@ -62,7 +62,7 @@
echo "<li>( <a href='account.php?action=edit&id=54&regid=$row[id]'>edit</a> |"; echo "<li>( <a href='account.php?action=edit&id=54&regid=$row[id]'>edit</a> |";
echo " <a href='account.php?action=delete&id=53&regid=$row[id]'"; echo " <a href='account.php?action=delete&id=53&regid=$row[id]'";
echo " onclick=\"return confirm('Are you sure you want to delete this region and all connected locations?');\">delete</a> )"; echo " onclick=\"return confirm('Are you sure you want to delete this region and all connected locations?');\">delete</a> )";
echo " <a href='account.php?id=53&regid=$row[id]&ccid=$ccid'>$row[name]</a></li>\n"; echo " <a href='account.php?id=53&regid=$row[id]'>$row[name]</a></li>\n";
} }
echo "</ul>\n</li>\n</ul>\n</li>\n</ul></div>\n<br>\n"; echo "</ul>\n</li>\n</ul>\n</li>\n</ul></div>\n<br>\n";

View file

@ -167,7 +167,7 @@ document.getElementById("display1").style.display = "none";
<? } if($locid > 0 && $_REQUEST['action'] == "move") { <? } if($locid > 0 && $_REQUEST['action'] == "move") {
$query = "select * from `locations` where `id`='$locid'"; $query = "select * from `locations` where `id`='$locid'";
$row = mysql_fetch_assoc(mysql_query($query)); $row = mysql_fetch_assoc(mysql_query($query));
$_REQUEST['newreg'] = $row['regid']; $newreg = $_REQUEST['newreg'] = $row['regid'];
?> ?>
<form method="post" action="account.php"> <form method="post" action="account.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper"> <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">