PageRenderTime 49ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 1ms

/application/views/pages/admin/zones.php

https://bitbucket.org/chadsaun/ifrogz-panel
PHP | 496 lines | 488 code | 1 blank | 7 comment | 116 complexity | a07ee3aca6257f6abc276da0db66f8ff MD5 | raw file
  1. <?php
  2. //This code is copyright (c) Internet Business Solutions SL, all rights reserved.
  3. //The contents of this file are protect under law as the intellectual property of Internet
  4. //Business Solutions SL. Any use, reproduction, disclosure or copying of any kind
  5. //without the express and written permission of Internet Business Solutions SL is forbidden.
  6. //Author: Vince Reid, vince@virtualred.net
  7. if(@$storesessionvalue=="") $storesessionvalue="virtualstore".time();
  8. if($_SESSION["loggedon"] != $storesessionvalue || @$disallowlogin==TRUE) exit();
  9. $success=TRUE;
  10. $maxshippingmethods=5;
  11. $alldata="";
  12. $numrows = 0;
  13. if(@$_POST["posted"]=="1"){
  14. for($index=1; $index <= 200; $index++){
  15. if(@$_POST["id" . $index]=="1"){
  16. $sSQL = "UPDATE postalzones SET pzName='" . @$_POST["zon" . $index] . "' WHERE pzID=" . $index;
  17. mysql_query($sSQL) or print(mysql_error());
  18. }
  19. }
  20. print '<meta http-equiv="refresh" content="3; url=/admin/zones.php">';
  21. }elseif(@$_POST["posted"]=="2"){
  22. $numshipmethods=$_POST["numshipmethods"];
  23. $zone = $_POST["zone"];
  24. mysql_query("DELETE FROM zonecharges WHERE zcZone=" . $zone) or print(mysql_error());
  25. if(is_numeric(@$_POST["highweight"]) && (double)@$_POST["highweight"] > 0){
  26. $sSQL = "INSERT INTO zonecharges (zcZone,zcWeight,zcRate,zcRate2,zcRate3,zcRate4,zcRate5) VALUES (" . $zone . "," . (0.0-(double)@$_POST["highweight"]);
  27. for($index=0; $index < $maxshippingmethods; $index++){
  28. if(is_numeric(trim(@$_POST["highvalue" . $index])))
  29. $sSQL .= "," . $_POST["highvalue" . $index];
  30. else
  31. $sSQL .= ",0";
  32. }
  33. mysql_query($sSQL . ')') or print(mysql_error());
  34. }
  35. for($index=0; $index <= 59; $index++){
  36. if(is_numeric(@$_POST["weight" . $index]) && (double)@$_POST["weight" . $index] > 0){
  37. $sSQL = "INSERT INTO zonecharges (zcZone,zcWeight,zcRate,zcRate2,zcRate3,zcRate4,zcRate5) VALUES (" . $zone . "," . @$_POST["weight" . $index];
  38. for($index2=0; $index2 < $maxshippingmethods; $index2++){
  39. if(is_numeric(trim(@$_POST["charge" . $index2 . "x" . $index])))
  40. $sSQL .= "," . trim(@$_POST["charge" . $index2 . "x" . $index]);
  41. elseif(strtolower(trim(@$_POST["charge" . $index2 . "x" . $index]))=="x")
  42. $sSQL .= ',-99999.0';
  43. else
  44. $sSQL .= ",0";
  45. }
  46. mysql_query($sSQL . ')') or print(mysql_error());
  47. }
  48. }
  49. $sSQL = "UPDATE postalzones SET ";
  50. $addcomma="";
  51. $pzFSA = 0;
  52. for($index=0; $index < $maxshippingmethods; $index++){
  53. $sSQL .= $addcomma . "pzMethodName" . ($index+1) . "='" . trim(mysql_real_escape_string(@$_POST["methodname" . $index])) . "'";
  54. if(trim(@$_POST["methodfsa" . $index])=="ON") $pzFSA = ($pzFSA | pow(2, $index));
  55. $addcomma=",";
  56. }
  57. $sSQL .= ',pzFSA=' . $pzFSA;
  58. $sSQL .= " WHERE pzID = " . $zone;
  59. //echo $sSQL; exit;
  60. mysql_query($sSQL);
  61. print '<meta http-equiv="refresh" content="3; url=/admin/zones.php">';
  62. }elseif(@$_GET["id"] != ""){
  63. if(trim(@$_GET["shippingmethods"]) != ""){
  64. $sSQL = "UPDATE postalzones SET pzMultiShipping=" . @$_GET["shippingmethods"] . " WHERE pzID=" . @$_GET["id"];
  65. mysql_query($sSQL) or print(mysql_error());
  66. }
  67. $sSQL = "SELECT pzName,pzMultiShipping,pzFSA,pzMethodName1,pzMethodName2,pzMethodName3,pzMethodName4,pzMethodName5 FROM postalzones WHERE pzID=" . @$_GET["id"];
  68. $result = mysql_query($sSQL) or print(mysql_error());
  69. $zoneName="";
  70. if($rs=mysql_fetch_assoc($result)){
  71. $zoneName = $rs["pzName"];
  72. $hasMultiShip=$rs["pzMultiShipping"];
  73. $pzFSA=$rs["pzFSA"];
  74. for($rowcounter=1; $rowcounter<=$maxshippingmethods; $rowcounter++){
  75. $methodnames[$rowcounter-1]=$rs["pzMethodName".$rowcounter];
  76. }
  77. }
  78. mysql_free_result($result);
  79. $sSQL = "SELECT zcID,zcWeight,zcRate,zcRate2,zcRate3,zcRate4,zcRate5 FROM zonecharges WHERE zcZone=" . @$_GET["id"] . " ORDER BY zcWeight";
  80. $result = mysql_query($sSQL) or print(mysql_error());
  81. while($rs = mysql_fetch_row($result))
  82. $alldata[$numrows++]=$rs;
  83. mysql_free_result($result);
  84. }else{
  85. if(@$_GET["oneuszone"]=="yes"){
  86. $sSQL = "UPDATE admin SET adminUSZones=0";
  87. mysql_query($sSQL) or print(mysql_error());
  88. }
  89. if(@$_GET["oneuszone"]=="no"){
  90. $sSQL = "UPDATE admin SET adminUSZones=1";
  91. mysql_query($sSQL) or print(mysql_error());
  92. }
  93. $sSQL = "SELECT pzID,pzName FROM postalzones ORDER BY pzID";
  94. $result = mysql_query($sSQL) or print(mysql_error());
  95. while($rs = mysql_fetch_row($result))
  96. $alldata[$numrows++]=$rs;
  97. mysql_free_result($result);
  98. }
  99. $alreadygotadmin = getadminsettings();
  100. $isWeightBased = ($shipType==2 || $shipType==5);
  101. ?>
  102. <table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="" align="center">
  103. <?php
  104. if(@$_POST["posted"]=="2" && $success){ ?>
  105. <tr>
  106. <td width="100%">
  107. <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="">
  108. <tr>
  109. <td width="100%" colspan="2" align="center"><br /><strong><?php print $yyUpdSuc?></strong><br /><br /><?php print $yyNowFrd?><br /><br />
  110. <?php print $yyNoAuto?> <a href="/admin/zones.php"><strong><?php print $yyClkHer?></strong></a>.<br />
  111. <br />
  112. <img src="/lib/images/misc/clearpixel.gif" width="300" height="3" alt="" />
  113. </td>
  114. </tr>
  115. </table></td>
  116. </tr>
  117. <?php
  118. }elseif(@$_POST["posted"]=="2"){ ?>
  119. <tr>
  120. <td width="100%">
  121. <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="">
  122. <tr>
  123. <td width="100%" colspan="2" align="center"><br /><font color="#FF0000"><strong><?php print $yyErrUpd?></strong></font><br /><br /><?php print $errmsg?><br /><br />
  124. <a href="javascript:history.go(-1)"><strong><?php print $yyClkBac?></strong></a></td>
  125. </tr>
  126. </table></td>
  127. </tr>
  128. <?php
  129. }elseif(@$_GET["id"] != ""){ ?>
  130. <script language="JavaScript" type="text/javascript">
  131. <!--
  132. function formvalidator(theForm)
  133. {
  134. var emptyentries=false;
  135. <?php for($index=0; $index<= $hasMultiShip; $index++){ ?>
  136. if (theForm.methodname<?php print $index?>.value == ""){
  137. alert("<?php print $yyAllShp?>");
  138. theForm.methodname<?php print $index?>.focus();
  139. return (false);
  140. }
  141. <?php } ?>
  142. var checkOK = "0123456789.";
  143. var checkStr = theForm.highweight.value;
  144. var allValid = true;
  145. for (i = 0; i < checkStr.length; i++){
  146. ch = checkStr.charAt(i);
  147. for (j = 0; j < checkOK.length; j++)
  148. if (ch == checkOK.charAt(j))
  149. break;
  150. if (j == checkOK.length){
  151. allValid = false;
  152. break;
  153. }
  154. }
  155. if (!allValid){
  156. alert("<?php print $yyDecFld?>");
  157. theForm.highweight.focus();
  158. return (false);
  159. }
  160. for(index=0; index<<?php print $maxshippingmethods?>;index++){
  161. var theobj = eval("theForm.highvalue"+index);
  162. var checkStr = theobj.value;
  163. var allValid = true;
  164. for (i = 0; i < checkStr.length; i++){
  165. ch = checkStr.charAt(i);
  166. for (j = 0; j < checkOK.length; j++)
  167. if (ch == checkOK.charAt(j))
  168. break;
  169. if (j == checkOK.length){
  170. allValid = false;
  171. break;
  172. }
  173. }
  174. if (!allValid){
  175. alert("<?php print $yyDecFld?>");
  176. theobj.focus();
  177. return (false);
  178. }
  179. }
  180. for(index=0;index<60;index++){
  181. var theobj = eval("theForm.weight"+index);
  182. var checkStr = theobj.value;
  183. var allValid = true;
  184. var hasweight = (theobj.value != "");
  185. for (i = 0; i < checkStr.length; i++){
  186. ch = checkStr.charAt(i);
  187. for (j = 0; j < checkOK.length; j++)
  188. if (ch == checkOK.charAt(j))
  189. break;
  190. if (j == checkOK.length){
  191. allValid = false;
  192. break;
  193. }
  194. }
  195. if (!allValid){
  196. alert("<?php print $yyDecFld?>");
  197. theobj.focus();
  198. return (false);
  199. }
  200. for(index2=0; index2<=<?php print $hasMultiShip?>;index2++){
  201. var theobj = eval("theForm.charge"+index2+"x"+index);
  202. var checkStr = theobj.value;
  203. var allValid = true;
  204. if(hasweight && checkStr==""){
  205. emptyentries=true;
  206. emptyobj=theobj;
  207. }
  208. for (i = 0; i < checkStr.length; i++)
  209. {
  210. ch = checkStr.charAt(i);
  211. for (j = 0; j < checkOK.length; j++)
  212. if (ch == checkOK.charAt(j))
  213. break;
  214. if (j == checkOK.length && checkStr.toLowerCase()!="x"){
  215. allValid = false;
  216. break;
  217. }
  218. }
  219. if (!allValid){
  220. alert("<?php print $yyDecFld?>");
  221. theobj.focus();
  222. return (false);
  223. }
  224. }
  225. }
  226. if(emptyentries){
  227. if(!confirm("<?php print $yyNoMeth?> <?php if($shipType==5) print $yyMaxPri; else print $yyMaxWei;?><?php print $yyNoMet2?> <?php print $yyNoInt?>\n\n<?php print $yyOkCan?>")){
  228. emptyobj.focus();
  229. return(false);
  230. }
  231. }
  232. return (true);
  233. }
  234. function setnummethods(){
  235. setto=document.forms.mainform.numshipmethods.selectedIndex;
  236. document.location="/admin/zones.php?shippingmethods="+setto+"&id=<?php print @$_GET["id"]?>";
  237. }
  238. //-->
  239. </script>
  240. <tr>
  241. <form name="mainform" method="post" action="/admin/zones.php" onsubmit="return formvalidator(this)">
  242. <td width="100%" align="center">
  243. <input type="hidden" name="posted" value="2" />
  244. <input type="hidden" name="zone" value="<?php print @$_GET["id"]?>" />
  245. <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="">
  246. <tr>
  247. <td width="100%" colspan="2" align="center"><strong><?php print $yyModRul?> <?php
  248. if($zoneName != "")
  249. print '"' . $zoneName . '"';
  250. else
  251. print "(unnamed)"; ?>.</strong><br />&nbsp;</td>
  252. </tr>
  253. <tr>
  254. <td width="100%" align="center">
  255. <font size="1"><?php print $yyZonUse?>
  256. <select name="numshipmethods" size="1" onChange="setnummethods()"><?php
  257. for($rowcounter=1; $rowcounter <= 5; $rowcounter++){
  258. print '<option value="' . $rowcounter . '"';
  259. if($rowcounter == ($hasMultiShip+1)) print ' selected';
  260. print '>' . $rowcounter . '</option>';
  261. } ?></select> <?php print $yyZonUs2?></font>
  262. </td>
  263. </tr>
  264. <tr>
  265. <td width="100%" align="center">
  266. <table width="80%" cellspacing="2" cellpadding="0">
  267. <tr>
  268. <td align="right" width="45%"><?php print $yyForEv?></td>
  269. <td width="10%"><input type=text name="highweight" value="<?php
  270. $foundmatch=0;
  271. for($rowcounter=0; $rowcounter < $numrows; $rowcounter++){
  272. if($alldata[$rowcounter][1] < 0){
  273. $foundmatch = abs($alldata[$rowcounter][1]);
  274. for($index=0; $index < $maxshippingmethods; $index++)
  275. $hishipvals[$index]=$alldata[$rowcounter][2+$index];
  276. }
  277. }
  278. print $foundmatch;
  279. ?>" size="5" /></td>
  280. <td width="45%" align="left"><?php print $yyAbvHg?> <?php if($shipType==5) print $yyPrice; else print $yyWeigh;?>...</td>
  281. </tr>
  282. <?php for($index=0; $index<=$hasMultiShip;$index++){ ?>
  283. <tr>
  284. <td align="right"><?php print $yyAddExt?></td>
  285. <td><input type=text name="highvalue<?php print $index?>" value="<?php print @$hishipvals[$index] ?>" size="5" /></td><td align="left"><?php print $yyFor?> <strong><?php if($methodnames[$index] != "") print $methodnames[$index]; else print $yyShipMe . " " . ($index+1)?></strong></td>
  286. </tr>
  287. <?php }
  288. for($index=$hasMultiShip+1; $index < $maxshippingmethods; $index++){ ?>
  289. <input type="hidden" name="highvalue<?php print $index?>" value="<?php print @$hishipvals[$index] ?>" />
  290. <?php } ?>
  291. </table>
  292. </td>
  293. </tr>
  294. <tr>
  295. <td width="100%" align="center">
  296. <p><input type="submit" value="<?php print $yySubmit?>" />&nbsp;&nbsp;<input type="reset" value="<?php print $yyReset?>" /><br />&nbsp;</p>
  297. </td>
  298. </tr>
  299. </table>
  300. <table width="120" border="0" cellspacing="0" cellpadding="1" bgcolor="">
  301. <tr>
  302. <td width="<?php print (int)(100/(2+$hasMultiShip))?>%" align="center">&nbsp;</td>
  303. <?php for($index=0; $index<=$hasMultiShip;$index++){
  304. print '<td width="' . (int)(100/(2+$hasMultiShip)) . '%" align="center"><acronym title="'. $yyFSApp . '"><strong>' . $yyFSA . '</strong></acronym>: <input type="checkbox" value="ON" name="methodfsa' . $index . '" ' . (($pzFSA & pow(2, $index)) != 0 ? "checked" : "") . ' /></td>' . "\r\n";
  305. }
  306. for($index=$hasMultiShip+1; $index < $maxshippingmethods; $index++){
  307. print '<input type="hidden" name="methodfsa' . $index . '" value="' . (($pzFSA & pow(2, $index)) != 0 ? "ON" : "") . '" />' . "\r\n";
  308. } ?>
  309. </tr>
  310. <tr>
  311. <td align="center"><strong><?php if($shipType==5) print $yyMaxPri; else print $yyMaxWgt;?></strong></td>
  312. <?php for($index=0; $index<=$hasMultiShip;$index++)
  313. print '<td align="center"><input class="darkborder" type="text" name="methodname' . $index . '" value="' . str_replace('"','&quot;',$methodnames[$index]) . '" size="14" /></td>' . "\r\n";
  314. for($index=$hasMultiShip+1; $index < $maxshippingmethods; $index++)
  315. print '<input type="hidden" name="methodname' . $index . '" value="' . str_replace('"','&quot;',$methodnames[$index]) . '" />' . "\r\n";
  316. ?>
  317. </tr>
  318. <?php
  319. $rowcounter=0;
  320. $index=0;
  321. if($numrows > 0)
  322. $upperbound = $numrows;
  323. else
  324. $upperbound = -1;
  325. while($index < 60){
  326. if($rowcounter < $upperbound){
  327. if($alldata[$rowcounter][1] > 0){
  328. ?>
  329. <tr>
  330. <td align="center"><input class="darkborder" type=text name="weight<?php print $index?>" value="<?php print (double)$alldata[$rowcounter][1]?>" size="10" /></td>
  331. <?php for($index2=0; $index2<$maxshippingmethods; $index2++){
  332. if($index2 <= $hasMultiShip)
  333. print '<td align="center"><input type="text" name="charge'. $index2 . "x" . $index . '" value="' . ($alldata[$rowcounter][2+$index2]!=-99999.0?$alldata[$rowcounter][2+$index2]:'x') . '" size="14" /></td>' . "\r\n";
  334. else
  335. print '<input type="hidden" name="charge' . $index2 . "x" . $index . '" value="' . $alldata[$rowcounter][2+$index2] . '" />';
  336. } ?>
  337. </tr>
  338. <?php
  339. $index++;
  340. }
  341. }else{
  342. ?>
  343. <tr>
  344. <td align="center"><input class="darkborder" type=text name="weight<?php print $index?>" value="" size="10" /></td>
  345. <?php for($index2=0; $index2<$maxshippingmethods; $index2++){
  346. if($index2 <= $hasMultiShip)
  347. print '<td align="center"><input type="text" name="charge' . $index2 . "x" . $index . '" size="14" /></td>' . "\r\n";
  348. } ?>
  349. </tr>
  350. <?php
  351. $index++;
  352. }
  353. $rowcounter++;
  354. }
  355. ?>
  356. <tr>
  357. <td width="100%" colspan="<?php print 2+$hasMultiShip?>" align="center">
  358. <p><input type="submit" value="<?php print $yySubmit?>" />&nbsp;&nbsp;<input type="reset" value="<?php print $yyReset?>" /><br />&nbsp;</p>
  359. </td>
  360. </tr>
  361. <tr>
  362. <td width="100%" colspan="<?php print 2+$hasMultiShip?>" align="center"><br />
  363. <a href="/admin/index.php"><strong><?php print $yyAdmHom?></strong></a><br />
  364. <img src="/lib/images/misc/clearpixel.gif" width="300" height="3" alt="" /></td>
  365. </tr>
  366. </table>
  367. </td>
  368. </form>
  369. </tr>
  370. <?php
  371. }elseif(@$_POST["posted"]=="1" && $success){ ?>
  372. <tr>
  373. <td width="100%">
  374. <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="">
  375. <tr>
  376. <td width="100%" colspan="2" align="center"><br /><strong><?php print $yyUpdSuc?></strong><br /><br /><?php print $yyNowFrd?><br /><br />
  377. <?php print $yyNoAuto?> <a href="/admin/zones.php"><strong><?php print $yyClkHer?></strong></a>.<br />
  378. <br />
  379. <img src="/lib/images/misc/clearpixel.gif" width="300" height="3" alt="" />
  380. </td>
  381. </tr>
  382. </table></td>
  383. </tr>
  384. <?php
  385. }elseif(@$_POST["posted"]=="1"){ ?>
  386. <tr>
  387. <td width="100%">
  388. <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="">
  389. <tr>
  390. <td width="100%" colspan="2" align="center"><br /><font color="#FF0000"><strong><?php print $yyErrUpd?></strong></font><br /><br /><?php print $errmsg?><br /><br />
  391. <a href="javascript:history.go(-1)"><strong><?php print $yyClkBac?></strong></a></td>
  392. </tr>
  393. </table></td>
  394. </tr>
  395. <?php
  396. }else{ ?>
  397. <tr>
  398. <form name="mainform" method="post" action="/admin/zones.php">
  399. <td width="100%">
  400. <input type="hidden" name="posted" value="1" />
  401. <table width="100%" border="0" cellspacing="0" cellpadding="3" bgcolor="">
  402. <tr>
  403. <td width="100%" <?php if($splitUSZones) print "colspan='2'";?> align="center"><strong>Use this page to add and modify postal zones.</strong><br />&nbsp;</td>
  404. </tr>
  405. <tr>
  406. <td width="100%" <?php if($splitUSZones) print "colspan='2'";?> align="left">
  407. <ul>
  408. <?php if(! $isWeightBased){ ?>
  409. <li><font size="1"><?php print $yyPZEx1?> <a href="/admin/main.php"><strong><?php print $yyClkHer?></strong></a>.</font></li>
  410. <?php } ?>
  411. <?php if($splitUSZones){ ?>
  412. <li><font size="1"><?php print $yyPZEx2?> <a href="/admin/zones.php?oneuszone=yes"><strong><?php print $yyClkHer?></strong></a>.</font></li>
  413. <?php }else{ ?>
  414. <li><font size="1"><?php print $yyPZEx3?> <a href="/admin/zones.php?oneuszone=no"><strong><?php print $yyClkHer?></strong></a>.</font></li>
  415. <?php } ?>
  416. <li><font size="1"><?php print $yyPZEx4?></font></li>
  417. </ul>
  418. </td>
  419. </tr>
  420. <tr>
  421. <td valign="top">
  422. <table width="100%" cellspacing="1" cellpadding="1" border="0">
  423. <tr>
  424. <td width="100%" colspan="3" align="center"><strong><?php print $yyPZWor?></strong><br /><hr width="70%"></td>
  425. </tr>
  426. <tr>
  427. <td width="40%" align=right>&nbsp;</td>
  428. <td width="20%" align=center><strong><?php print $yyPZNam?></strong></td>
  429. <td width="40%" align=left><strong><?php print $yyPZRul?></strong></td>
  430. </tr>
  431. <?php
  432. for($rowcounter=0;$rowcounter < $numrows;$rowcounter++){
  433. if($alldata[$rowcounter][0] <= 100){ // First 100 are for world zones
  434. ?>
  435. <tr>
  436. <td align=right><strong><?php print $alldata[$rowcounter][0]?> : <input type="hidden" name="id<?php print $alldata[$rowcounter][0]?>" value="1" /></strong></td>
  437. <td align=center><input type=text name="zon<?php print $alldata[$rowcounter][0]?>" value="<?php print $alldata[$rowcounter][1]?>" size="20" /></td>
  438. <td align=left><?php if(trim($alldata[$rowcounter][1]) <> ""){ ?><a href="/admin/zones.php?id=<?php print $alldata[$rowcounter][0]?>"><strong><?php print $yyEdRul?></strong></a><?php }else{ ?>&nbsp;<?php } ?></td>
  439. </tr>
  440. <?php
  441. }
  442. }
  443. ?>
  444. </table>
  445. </td>
  446. <?php
  447. if($splitUSZones){
  448. ?>
  449. <td width="50%" valign="top">
  450. <table width="100%" cellspacing="1" cellpadding="1" border="0">
  451. <tr>
  452. <td width="100%" colspan="3" align="center"><strong><?php print $yyPZSta?></strong><br /><hr width="70%"></td>
  453. </tr>
  454. <tr>
  455. <td width="40%" align=right>&nbsp;</td>
  456. <td width="20%" align=center><strong><?php print $yyPZNam?></strong></td>
  457. <td width="40%" align=left><strong><?php print $yyPZRul?></strong></td>
  458. </tr>
  459. <?php
  460. $index = 0;
  461. for($rowcounter=0;$rowcounter < $numrows;$rowcounter++){
  462. if($alldata[$rowcounter][0] > 100){ // First 100 are for world zones
  463. ?>
  464. <tr>
  465. <td align=right><strong><?php print $alldata[$rowcounter][0]-100?> : <input type="hidden" name="id<?php print $alldata[$rowcounter][0]?>" value="1" /></strong></td>
  466. <td align=center><input type=text name="zon<?php print $alldata[$rowcounter][0]?>" value="<?php print $alldata[$rowcounter][1]?>" size="20" /></td>
  467. <td align=left><?php if(trim($alldata[$rowcounter][1]) != ""){ ?><a href="/admin/zones.php?id=<?php print $alldata[$rowcounter][0]?>"><strong><?php print $yyEdRul?></strong></a><?php }else{ ?>&nbsp;<?php } ?></td>
  468. </tr>
  469. <?php
  470. }
  471. }
  472. ?>
  473. </table>
  474. </td>
  475. <?php
  476. }
  477. ?> </tr>
  478. <tr>
  479. <td width="100%" <?php if($splitUSZones) print "colspan='2'";?> align="center">
  480. <p><input type="submit" value="<?php print $yySubmit?>" />&nbsp;&nbsp;<input type="reset" value="<?php print $yyReset?>" /><br />&nbsp;</p>
  481. </td>
  482. </tr>
  483. <tr>
  484. <td width="100%" <?php if($splitUSZones) print "colspan='2'";?> align="center"><br />
  485. <a href="/admin/index.php"><strong><?php print $yyAdmHom?></strong></a><br />
  486. <img src="/lib/images/misc/clearpixel.gif" width="300" height="3" alt="" /></td>
  487. </tr>
  488. </table>
  489. </td>
  490. </form>
  491. </tr>
  492. <?php
  493. }
  494. ?>
  495. </table>