set_network.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. <?php
  2. ini_set('error_reporting', E_ALL | E_STRICT);
  3. $tag_header = 'set';
  4. include 'head.php';
  5. $obj = json_decode(trim($output[2]));//var_dump($obj);
  6. $InternetConn='';
  7. switch (ord($obj->{'InternetConn'})){
  8. case 0:
  9. $InternetConn='disconnected';
  10. break;
  11. case 1:
  12. $InternetConn='connected';
  13. break;
  14. }
  15. $WifiNetworkConn='';
  16. switch (ord($obj->{'WifiNetworkConn'})){
  17. case 0:
  18. $WifiNetworkConn='disconnected';
  19. break;
  20. case 1:
  21. $WifiNetworkConn='connected';
  22. break;
  23. }
  24. $TelcomNetworkConn='';
  25. switch (ord($obj->{'TelcomNetworkConn'})){
  26. case 0:
  27. $TelcomNetworkConn='disconnected';
  28. break;
  29. case 1:
  30. $TelcomNetworkConn='connected';
  31. break;
  32. }
  33. $TelcomSimStatus='';
  34. switch (ord($obj->{'TelcomSimStatus'})){
  35. case 0:
  36. $TelcomSimStatus='no SIM card is found';
  37. break;
  38. case 1:
  39. $TelcomSimStatus='valid SIM card';
  40. break;
  41. case 2:
  42. $TelcomSimStatus='invalid SIM card';
  43. break;
  44. }
  45. $TelcomModemMode='';
  46. switch (ord($obj->{'TelcomModemMode'})){
  47. case 0:
  48. $TelcomModemMode='No services';
  49. break;
  50. case 1:
  51. $TelcomModemMode='CDMA';
  52. break;
  53. case 2:
  54. $TelcomModemMode='GSM/GPRS';
  55. break;
  56. case 3:
  57. $TelcomModemMode='WCDMA';
  58. break;
  59. case 4:
  60. $TelcomModemMode='GSM/WCDMA';
  61. break;
  62. case 5:
  63. $TelcomModemMode='TD_SCDMA mode';
  64. break;
  65. case 6:
  66. $TelcomModemMode='Unknow';
  67. break;
  68. }
  69. ?>
  70. <div class="envor-content">
  71. <!--
  72. Page Title start
  73. //-->
  74. <section class="envor-page-title-1" data-stellar-background-ratio="0.5">
  75. <div class="container">
  76. <div class="row">
  77. <div class="col-lg-9 col-md-9 col-sm-9">
  78. <h1><?php echo $lang->showWord("network"); ?></h1>
  79. </div>
  80. </div>
  81. </div>
  82. <!--
  83. Page Title end
  84. //-->
  85. </section>
  86. <!--
  87. Main Content start
  88. //-->
  89. <section class="envor-section">
  90. <div class="container">
  91. <div class="row">
  92. <div class="col-lg-12">
  93. <div class="envor-sorting" id="faq-sorting">
  94. <div class="envor-toggle">
  95. <!--Network Status-->
  96. <article class="envor-sorting-item css">
  97. <header><?php echo $lang->showWord("network_status"); ?><i class="fa fa-plus"></i></header>
  98. <section>
  99. <div class="form-group" style="display:<?php echo $am101;?>">
  100. <label>InternetConn</label>
  101. <input type="text" readonly class="form-control" placeholder="<?php echo $InternetConn;?>">
  102. <input type="hidden" name="InternetConn" id="InternetConn" value="<?php echo ord($obj->{'InternetConn'});?>">
  103. </div>
  104. <div class="form-group" style="display:<?php echo $am101;?>">
  105. <label>FtpServer</label>
  106. <input type="text" name="FtpServer" id="FtpServer" class="form-control" value="<?php echo $obj->{'FtpServer'};?>">
  107. </div>
  108. </section>
  109. </article>
  110. <!--Ethernet Interface0-->
  111. <article class="envor-sorting-item css">
  112. <header><?php echo $lang->showWord("ethernet_interface"); ?><i class="fa fa-plus"></i></header>
  113. <section>
  114. <div class="form-group" style="display:<?php echo $am101;?>">
  115. <label>Eth0DhcpClient</label>
  116. <select class="form-control" id="Eth0DhcpClient" name="Eth0DhcpClient">
  117. <option value="0" <?php echo ord($obj->{'Eth0DhcpClient'})=="0"?"selected":""?>>enable</option>
  118. <option value="1" <?php echo ord($obj->{'Eth0DhcpClient'})=="1"?"selected":""?>>disable</option>
  119. </select>
  120. </div>
  121. <div class="form-group" style="display:<?php echo $am101;?>">
  122. <label>Eth0MacAddress</label>
  123. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Eth0MacAddress'};?>">
  124. <input type="hidden" name="Eth0MacAddress" id="Eth0MacAddress" value="<?php echo $obj->{'Eth0MacAddress'};?>">
  125. </div>
  126. <div class="form-group" style="display:<?php echo $am101;?>">
  127. <label>Eth0IpAddress</label>
  128. <input type="text" name="Eth0IpAddress" id="Eth0IpAddress" class="form-control" value="<?php echo $obj->{'Eth0IpAddress'};?>">
  129. </div>
  130. <div class="form-group" style="display:<?php echo $am101;?>">
  131. <label>Eth0SubmaskAddress</label>
  132. <input type="text" name="Eth0SubmaskAddress" id="Eth0SubmaskAddress" class="form-control" value="<?php echo $obj->{'Eth0SubmaskAddress'};?>">
  133. </div>
  134. <div class="form-group" style="display:<?php echo $am101;?>">
  135. <label>Eth0GatewayAddress</label>
  136. <input type="text" name="Eth0GatewayAddress" id="Eth0GatewayAddress" class="form-control" value="<?php echo $obj->{'Eth0GatewayAddress'};?>">
  137. </div>
  138. </section>
  139. </article>
  140. <!--Ethernet Interface1-->
  141. <article class="envor-sorting-item css">
  142. <header><?php echo $lang->showWord("ethernet_interface"); ?><i class="fa fa-plus"></i></header>
  143. <section>
  144. <div class="form-group" style="display:<?php echo $am101;?>">
  145. <label>Eth1DhcpClient</label>
  146. <select class="form-control" id="Eth1DhcpClient" name="Eth1DhcpClient">
  147. <option value="0" <?php echo ord($obj->{'Eth1DhcpClient'})=="0"?"selected":""?>>enable</option>
  148. <option value="1" <?php echo ord($obj->{'Eth1DhcpClient'})=="1"?"selected":""?>>disable</option>
  149. </select>
  150. </div>
  151. <div class="form-group" style="display:<?php echo $am101;?>">
  152. <label>Eth1MacAddress</label>
  153. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'Eth1MacAddress'};?>">
  154. <input type="hidden" name="Eth1MacAddress" id="Eth1MacAddress" value="<?php echo $obj->{'Eth1MacAddress'};?>">
  155. </div>
  156. <div class="form-group" style="display:<?php echo $am101;?>">
  157. <label>Eth1IpAddress</label>
  158. <input type="text" name="Eth1IpAddress" id="Eth1IpAddress" class="form-control" value="<?php echo $obj->{'Eth1IpAddress'};?>">
  159. </div>
  160. <div class="form-group" style="display:<?php echo $am101;?>">
  161. <label>Eth1SubmaskAddress</label>
  162. <input type="text" name="Eth1SubmaskAddress" id="Eth1SubmaskAddress" class="form-control" value="<?php echo $obj->{'Eth1SubmaskAddress'};?>">
  163. </div>
  164. <div class="form-group" style="display:<?php echo $am101;?>">
  165. <label>Eth1GatewayAddress</label>
  166. <input type="text" name="Eth1GatewayAddress" id="Eth1GatewayAddress" class="form-control" value="<?php echo $obj->{'Eth1GatewayAddress'};?>">
  167. </div>
  168. </section>
  169. </article>
  170. <!--WiFi Module-->
  171. <article class="envor-sorting-item css">
  172. <header><?php echo $lang->showWord("WiFi_module"); ?><i class="fa fa-plus"></i></header>
  173. <section>
  174. <div class="form-group" style="display:<?php echo $am101;?>">
  175. <label>WifiMode</label>
  176. <select class="form-control" id="WifiMode" name="WifiMode">
  177. <option value="0" <?php echo ord($obj->{'WifiMode'})=="0"?"selected":""?>>disable</option>
  178. <option value="1" <?php echo ord($obj->{'WifiMode'})=="1"?"selected":""?>>Infrastructure client</option>
  179. <option value="2" <?php echo ord($obj->{'WifiMode'})=="2"?"selected":""?>>Infrastructure server</option>
  180. <option value="3" <?php echo ord($obj->{'WifiMode'})=="3"?"selected":""?>>Ad-Hoc</option>
  181. </select>
  182. </div>
  183. <div class="form-group" style="display:<?php echo $am101;?>">
  184. <label>WifiSsid</label>
  185. <input type="text" name="WifiSsid" id="WifiSsid" class="form-control" value="<?php echo $obj->{'WifiSsid'};?>">
  186. </div>
  187. <div class="form-group" style="display:<?php echo $am101;?>">
  188. <label>WifiPassword</label>
  189. <input type="text" name="WifiPassword" id="WifiPassword" class="form-control" value="<?php echo $obj->{'WifiPassword'};?>">
  190. </div>
  191. <div class="form-group" style="display:<?php echo $am101;?>">
  192. <label>WifiRssi</label>
  193. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'WifiRssi'};?> dBm">
  194. <input type="hidden" name="WifiRssi" id="WifiRssi" value="<?php echo $obj->{'WifiRssi'};?>">
  195. </div>
  196. <div class="form-group" style="display:<?php echo $am101;?>">
  197. <label>WifiDhcpServer</label>
  198. <select class="form-control" id="WifiDhcpServer" name="WifiDhcpServer">
  199. <option value="0" <?php echo ord($obj->{'WifiDhcpServer'})=="0"?"selected":""?>>enable</option>
  200. <option value="1" <?php echo ord($obj->{'WifiDhcpServer'})=="1"?"selected":""?>>disable</option>
  201. </select>
  202. </div>
  203. <div class="form-group" style="display:<?php echo $am101;?>">
  204. <label>WifiDhcpClient</label>
  205. <select class="form-control" id="WifiDhcpClient" name="WifiDhcpClient">
  206. <option value="0" <?php echo ord($obj->{'WifiDhcpClient'})=="0"?"selected":""?>>enable</option>
  207. <option value="1" <?php echo ord($obj->{'WifiDhcpClient'})=="1"?"selected":""?>>disable</option>
  208. </select>
  209. </div>
  210. <div class="form-group" style="display:<?php echo $am101;?>">
  211. <label>WifiMacAddress</label>
  212. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'WifiMacAddress'};?>">
  213. <input type="hidden" name="WifiMacAddress" id="WifiMacAddress" value="<?php echo $obj->{'WifiMacAddress'};?>">
  214. </div>
  215. <div class="form-group" style="display:<?php echo $am101;?>">
  216. <label>WifiIpAddress</label>
  217. <input type="text" name="WifiIpAddress" id="WifiIpAddress" class="form-control" value="<?php echo $obj->{'WifiIpAddress'};?>">
  218. </div>
  219. <div class="form-group" style="display:<?php echo $am101;?>">
  220. <label>WifiSubmaskAddress</label>
  221. <input type="text" name="WifiSubmaskAddress" id="WifiSubmaskAddress" class="form-control" value="<?php echo $obj->{'WifiSubmaskAddress'};?>">
  222. </div>
  223. <div class="form-group" style="display:<?php echo $am101;?>">
  224. <label>WifiGatewayAddress</label>
  225. <input type="text" name="WifiGatewayAddress" id="WifiGatewayAddress" class="form-control" value="<?php echo $obj->{'WifiGatewayAddress'};?>">
  226. </div>
  227. <div class="form-group" style="display:<?php echo $am101;?>">
  228. <label>WifiNetworkConn</label>
  229. <input type="text" readonly class="form-control" value="<?php echo $WifiNetworkConn;?>">
  230. <input type="hidden" name="WifiNetworkConn" id="WifiNetworkConn" value="<?php echo ord($obj->{'WifiNetworkConn'});?>">
  231. </div>
  232. </section>
  233. </article>
  234. <!--3G/4G Module-->
  235. <article class="envor-sorting-item css">
  236. <header><?php echo $lang->showWord("3G/4G_module"); ?><i class="fa fa-plus"></i></header>
  237. <section>
  238. <div class="form-group" style="display:<?php echo $am101;?>">
  239. <label>TelcomApn</label>
  240. <input type="text" name="TelcomApn" id="TelcomApn" class="form-control" value="<?php echo $obj->{'TelcomApn'};?>">
  241. </div>
  242. <div class="form-group" style="display:<?php echo $am101;?>">
  243. <label>TelcomRssi</label>
  244. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TelcomRssi'};?> dBm">
  245. <input type="hidden" name="TelcomRssi" id="TelcomRssi" value="<?php echo $obj->{'TelcomRssi'};?>">
  246. </div>
  247. <div class="form-group" style="display:<?php echo $am101;?>">
  248. <label>TelcomChapPapId</label>
  249. <input type="text" name="TelcomChapPapId" id="TelcomChapPapId" class="form-control" value="<?php echo $obj->{'TelcomChapPapId'};?>">
  250. </div>
  251. <div class="form-group" style="display:<?php echo $am101;?>">
  252. <label>TelcomChapPapPwd</label>
  253. <input type="text" name="TelcomChapPapPwd" id="TelcomChapPapPwd" class="form-control" value="<?php echo $obj->{'TelcomChapPapPwd'};?>">
  254. </div>
  255. <div class="form-group" style="display:<?php echo $am101;?>">
  256. <label>TelcomModemImei</label>
  257. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TelcomModemImei'};?>">
  258. <input type="hidden" name="TelcomModemImei" id="TelcomModemImei" value="<?php echo $obj->{'TelcomModemImei'};?>">
  259. </div>
  260. <div class="form-group" style="display:<?php echo $am101;?>">
  261. <label>TelcomSimImsi</label>
  262. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TelcomSimImsi'};?>">
  263. <input type="hidden" name="TelcomSimImsi" id="TelcomSimImsi" value="<?php echo $obj->{'TelcomSimImsi'};?>">
  264. </div>
  265. <div class="form-group" style="display:<?php echo $am101;?>">
  266. <label>TelcomSimIccid</label>
  267. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'TelcomSimIccid'};?>">
  268. <input type="hidden" name="TelcomSimIccid" id="TelcomSimIccid" value="<?php echo $obj->{'TelcomSimIccid'};?>">
  269. </div>
  270. <div class="form-group" style="display:<?php echo $am101;?>">
  271. <label>TelcomSimStatus</label>
  272. <input type="text" readonly class="form-control" placeholder="<?php echo $TelcomSimStatus;?>">
  273. <input type="hidden" name="TelcomSimStatus" id="TelcomSimStatus" value="<?php echo ord($obj->{'TelcomSimStatus'});?>">
  274. </div>
  275. <div class="form-group" style="display:<?php echo $am101;?>">
  276. <label>TelcomModemMode</label>
  277. <input type="text" readonly class="form-control" placeholder="<?php echo $TelcomModemMode;?>">
  278. <input type="hidden" name="TelcomModemMode" id="TelcomModemMode" value="<?php echo ord($obj->{'TelcomModemMode'});?>">
  279. </div>
  280. <div class="form-group" style="display:<?php echo $am101;?>">
  281. <label>TelcomIpAddress</label>
  282. <input type="text" name="TelcomIpAddress" id="TelcomIpAddress" class="form-control" value="<?php echo $obj->{'TelcomIpAddress'};?>">
  283. </div>
  284. <div class="form-group" style="display:<?php echo $am101;?>">
  285. <label>TelcomNetworkConn</label>
  286. <input type="text" readonly class="form-control" value="<?php echo $TelcomNetworkConn;?>">
  287. <input type="hidden" name="TelcomNetworkConn" id="TelcomNetworkConn" value="<?php echo ord($obj->{'TelcomNetworkConn'});?>">
  288. </div>
  289. </section>
  290. </article>
  291. <!--Bluetooth Module-->
  292. <?php /* <article class="envor-sorting-item css">
  293. <header><?php echo $lang->showWord("bluetooth_module"); ?><i class="fa fa-plus"></i></header>
  294. <section>
  295. <div class="form-group" style="display:<?php echo $am101;?>">
  296. <label>LoginCentralID</label>
  297. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'LoginCentralID'};?>">
  298. <input type="hidden" name="LoginCentralID" id="LoginCentralID" value="<?php echo $obj->{'LoginCentralID'};?>">
  299. </div>
  300. <div class="form-group" style="display:<?php echo $am101;?>">
  301. <label>isLogin</label>
  302. <input type="text" readonly class="form-control" placeholder="<?php echo $obj->{'isLogin'};?>">
  303. <input type="hidden" name="isLogin" id="isLogin" value="<?php echo $obj->{'isLogin'};?>">
  304. </div>
  305. <div class="form-group" style="display:<?php echo $am101;?>">
  306. <label>isRequestStart</label>
  307. <input type="text" readonly class="form-control" value="<?php echo $isRequestStart;?>">
  308. <input type="hidden" name="isRequestStart" id="isRequestStart" value="<?php echo $obj->{'isRequestStart'};?>">
  309. </div>
  310. <div class="form-group" style="display:<?php echo $am101;?>">
  311. <label>isRequestStop</label>
  312. <input type="text" readonly class="form-control" value="<?php echo $isRequestStop;?>">
  313. <input type="hidden" name="isRequestStop" id="isRequestStop" value="<?php echo $obj->{'isRequestStop'};?>">
  314. </div>
  315. </section>
  316. </article> */?>
  317. <article class="envor-sorting-item css">
  318. <div align="center"><button id="save"><?php echo $lang->showWord("set")?></button></div>
  319. </article>
  320. </div>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </section>
  326. </div>
  327. <?php
  328. include 'foot.php';
  329. ?>
  330. <script type="text/JavaScript">
  331. document.getElementById("save").onclick = function() {
  332. if(formCheck())
  333. {
  334. // 發送 Ajax 查詢請求並處理
  335. var request = new XMLHttpRequest();
  336. request.open("POST", "set_network_action.php");
  337. // POST 參數須使用 send() 發送
  338. var data = "FtpServer=" + document.getElementById("FtpServer").value +
  339. "&Eth0DhcpClient=" + document.getElementById("Eth0DhcpClient").value+
  340. "&Eth0IpAddress=" + document.getElementById("Eth0IpAddress").value+
  341. "&Eth0SubmaskAddress=" + document.getElementById("Eth0SubmaskAddress").value+
  342. "&Eth0GatewayAddress=" + document.getElementById("Eth0GatewayAddress").value+
  343. "&Eth1DhcpClient=" + document.getElementById("Eth1DhcpClient").value+
  344. "&Eth1IpAddress=" + document.getElementById("Eth1IpAddress").value+
  345. "&Eth1SubmaskAddress=" + document.getElementById("Eth1SubmaskAddress").value+
  346. "&Eth1GatewayAddress=" + document.getElementById("Eth1GatewayAddress").value+
  347. "&WifiMode=" + document.getElementById("WifiMode").value+
  348. "&WifiSsid=" + document.getElementById("WifiSsid").value+
  349. "&WifiPassword=" + document.getElementById("WifiPassword").value+
  350. "&WifiDhcpServer=" + document.getElementById("WifiDhcpServer").value+
  351. "&WifiDhcpClient=" + document.getElementById("WifiDhcpClient").value+
  352. "&WifiIpAddress=" + document.getElementById("WifiIpAddress").value+
  353. "&WifiSubmaskAddress=" + document.getElementById("WifiSubmaskAddress").value+
  354. "&WifiGatewayAddress=" + document.getElementById("WifiGatewayAddress").value+
  355. "&TelcomApn=" + document.getElementById("TelcomApn").value+
  356. "&TelcomChapPapId=" + document.getElementById("TelcomChapPapId").value+
  357. "&TelcomChapPapPwd=" + document.getElementById("TelcomChapPapPwd").value+
  358. "&TelcomIpAddress=" + document.getElementById("TelcomIpAddress").value;
  359. // POST 請求必須設置表頭在 open() 下面,send() 上面
  360. request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  361. request.send(data);
  362. request.onreadystatechange = function() {
  363. // 伺服器請求完成
  364. if (request.readyState == 4) {
  365. // 伺服器回應成功
  366. if (request.status == 200) {
  367. alert("<?php echo $lang->showWord("done")?>");
  368. //location.reload();
  369. // getInfo();
  370. } else {
  371. alert("發生錯誤" + request.status);
  372. }
  373. }
  374. }
  375. }
  376. }
  377. function formCheck()
  378. {
  379. // if(document.getElementById("Eth0IpAddress").value != ""){
  380. // if(!ValidateIPaddress("Eth0IpAddress")) return false;
  381. // }
  382. if(document.getElementById("Eth0SubmaskAddress").value != ""){
  383. if(!ValidateIPaddress("Eth0SubmaskAddress")) return false;
  384. }
  385. if(document.getElementById("Eth0GatewayAddress").value != ""){
  386. if(!ValidateIPaddress("Eth0GatewayAddress")) return false;
  387. }
  388. if(document.getElementById("Eth1IpAddress").value != ""){
  389. if(!ValidateIPaddress("Eth1IpAddress")) return false;
  390. }
  391. if(document.getElementById("Eth1SubmaskAddress").value != ""){
  392. if(!ValidateIPaddress("Eth1SubmaskAddress")) return false;
  393. }
  394. if(document.getElementById("Eth1GatewayAddress").value != ""){
  395. if(!ValidateIPaddress("Eth1GatewayAddress")) return false;
  396. }
  397. if(document.getElementById("WifiIpAddress").value != ""){
  398. if(!ValidateIPaddress("WifiIpAddress")) return false;
  399. }
  400. if(document.getElementById("WifiSubmaskAddress").value != ""){
  401. if(!ValidateIPaddress("WifiSubmaskAddress")) return false;
  402. }
  403. if(document.getElementById("WifiGatewayAddress").value != ""){
  404. if(!ValidateIPaddress("WifiGatewayAddress")) return false;
  405. }
  406. if(document.getElementById("TelcomIpAddress").value != ""){
  407. if(!ValidateIPaddress("TelcomIpAddress")) return false;
  408. }
  409. return true;
  410. }
  411. function isNumberKey(evt)
  412. {
  413. var charCode = (evt.which) ? evt.which : event.keyCode
  414. if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode != 46))
  415. return false;
  416. return true;
  417. }
  418. function ValidateIPaddress(id) {
  419. var ipaddress = document.getElementById(id).value;
  420. if (/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(ipaddress)) {
  421. return true;
  422. }
  423. alert("You have entered an invalid IP address on " + id + "!")
  424. document.getElementById(id).focus();
  425. return false;
  426. }
  427. </script>
  428. </html>