Advertisement
Guest User

Untitled

a guest
May 8th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.80 KB | None | 0 0
  1. <script language=JavaScript>
  2. var logonInfo = new Array(
  3. 0,
  4. "",
  5. "",
  6. "20141031",
  7. 0,0 );
  8. </script>
  9. <script language="javascript">
  10. var captchaEnable = false;
  11. </script>
  12.  
  13. <HTML>
  14. <HEAD>
  15. <META http-equiv=Content-Type content="text/html; charset=utf-8">
  16. <META http-equiv="Pragma" content="no-cache">
  17. <META http-equiv="Cache-Control" content="no-cache">
  18. <META http-equiv="Expires" content="0">
  19. <SCRIPT language="javascript">
  20. if (window.top!=window.self)
  21. {
  22. window.top.location="../logon/logon.htm"
  23. }
  24. var ctlFocusFlag = false;
  25. var timeoutFlag = false;
  26. function accVerify(accStr)
  27. {
  28. var pattern = /^[0-9A-Za-z-_@.]{1,31}$/;
  29. var flag;
  30. var alertflag;
  31. if(typeof arguments[1] == "undefined" || arguments[1] == true) alertflag = true;
  32. else alertflag = false;
  33. if(0 == accStr.length)
  34. {
  35. if(alertflag)alert("Please enter the User Name.");
  36. return false;
  37. }
  38. if(accStr.length > 31)
  39. {
  40. if(alertflag)alert("The length of this User Name exceeds its limit, please enter another name.");
  41. return false;
  42. }
  43. flag = pattern.test(accStr);
  44. if(!flag)
  45. {
  46. if(alertflag)alert("This User Name contains illegal characters, please enter another name.");
  47. return false;
  48. }
  49. return true;
  50. }
  51. function doRefresh()
  52. {
  53. if(!ctlFocusFlag)location.href = "../logon/logon.htm";
  54. else timeoutFlag = true;
  55. }
  56. var errType = logonInfo[0];
  57. var sessionIp = logonInfo[1];
  58. var sessionUser = logonInfo[2];
  59. var buildDate = logonInfo[3];
  60. function resize(id)
  61. {
  62. document.getElementById(id).style.display = "none";
  63. if(document.all)
  64. {
  65. var bgw = document.body.offsetWidth;
  66. var bgh = document.body.offsetHeight;
  67. document.getElementById(id).style.left = (bgw-460) * 0.5;
  68. document.getElementById(id).style.top = (bgh-300) * 0.3;
  69. }
  70. else
  71. {
  72. var bgw = window.innerWidth;
  73. var bgh = window.innerHeight;
  74. document.getElementById(id).style.left = (bgw-460) * 0.5;
  75. document.getElementById(id).style.top = (bgh-300) * 0.3;
  76. }
  77. document.getElementById(id).style.display = "block";
  78. var element = document.getElementById('txt_usr_name');
  79. element.focus();
  80. element.select();
  81. }
  82. if (window.focus) self.focus();
  83. function openAnyWindow(url, name) {
  84. var l = openAnyWindow.arguments.length;
  85. var w = "";
  86. var h = "";
  87. var features = "";
  88. for (i=2; i<l; i++) {
  89. var param = openAnyWindow.arguments[i];
  90. if ( (parseInt(param) == 0) || (isNaN(parseInt(param))) ) {
  91. features += param + ',';
  92. } else {
  93. (w == "") ? w = "width=" + param + "," : h = "height=" + param;
  94. }
  95. }
  96. features += w + h;
  97. var code = "popupWin = window.open(url, name";
  98. if (l > 2) code += ", '" + features;
  99. code += "')";
  100. eval(code);
  101. }
  102. function array(n)
  103. {
  104. for (i=0; i<n; i++) this[i]=0;
  105. this.length=n;
  106. }
  107. function integer(n) { return n%(0xffffffff+1); }
  108. function shr(a,b)
  109. {
  110. a=integer(a);
  111. b=integer(b);
  112. if (a-0x80000000>=0)
  113. {
  114. a = a%0x80000000;
  115. a >>= b;
  116. a += 0x40000000 >> (b-1);
  117. }
  118. else a >>= b;
  119. return a;
  120. }
  121. function shl1(a)
  122. {
  123. a = a%0x80000000;
  124. if (a&0x40000000==0x40000000)
  125. {
  126. a-=0x40000000;
  127. a*=2;
  128. a+=0x80000000;
  129. }
  130. else a*=2;
  131. return a;
  132. }
  133. function shl(a,b)
  134. {
  135. a = integer(a);
  136. b = integer(b);
  137. for (var i=0; i<b; i++)
  138. a=shl1(a);
  139. return a;
  140. }
  141. function and(a,b)
  142. {
  143. a = integer(a);
  144. b = integer(b);
  145. var t1 = (a-0x80000000);
  146. var t2 = (b-0x80000000);
  147. if (t1>=0)
  148. if (t2>=0)
  149. return ((t1&t2)+0x80000000);
  150. else
  151. return (t1&b);
  152. else
  153. if (t2>=0)
  154. return (a&t2);
  155. else
  156. return (a&b);
  157. }
  158. function or(a,b)
  159. {
  160. a = integer(a);
  161. b = integer(b);
  162. var t1 = (a-0x80000000);
  163. var t2 = (b-0x80000000);
  164. if (t1>=0)
  165. if (t2>=0)
  166. return ((t1|t2)+0x80000000);
  167. else
  168. return ((t1|b)+0x80000000);
  169. else
  170. if (t2>=0)
  171. return ((a|t2)+0x80000000);
  172. else
  173. return (a|b);
  174. }
  175. function xor(a,b)
  176. {
  177. a = integer(a);
  178. b = integer(b);
  179. var t1 = (a-0x80000000);
  180. var t2 = (b-0x80000000);
  181. if (t1>=0)
  182. if (t2>=0)
  183. return (t1^t2);
  184. else
  185. return ((t1^b)+0x80000000);
  186. else
  187. if (t2>=0)
  188. return ((a^t2)+0x80000000);
  189. else
  190. return (a^b);
  191. }
  192. function not(a)
  193. {
  194. a = integer(a);
  195. return (0xffffffff-a);
  196. }
  197. var state = new array(4);
  198. var count = new array(2);
  199. count[0] = 0;
  200. count[1] = 0;
  201. var buffer = new array(64);
  202. var transformBuffer = new array(16);
  203. var digestBits = new array(16);
  204. var S11 = 7;
  205. var S12 = 12;
  206. var S13 = 17;
  207. var S14 = 22;
  208. var S21 = 5;
  209. var S22 = 9;
  210. var S23 = 14;
  211. var S24 = 20;
  212. var S31 = 4;
  213. var S32 = 11;
  214. var S33 = 16;
  215. var S34 = 23;
  216. var S41 = 6;
  217. var S42 = 10;
  218. var S43 = 15;
  219. var S44 = 21;
  220. function F(x,y,z)
  221. {
  222. return or(and(x,y),and(not(x),z));
  223. }
  224. function G(x,y,z)
  225. {
  226. return or(and(x,z),and(y,not(z)));
  227. }
  228. function H(x,y,z)
  229. {
  230. return xor(xor(x,y),z);
  231. }
  232. function I(x,y,z)
  233. {
  234. return xor(y,or(x,not(z)));
  235. }
  236. function rotateLeft(a,n)
  237. {
  238. return or(shl(a,n),(shr(a,(32-n))));
  239. }
  240. function FF(a,b,c,d,x,s,ac)
  241. {
  242. a = a+F(b, c, d) + x + ac;
  243. a = rotateLeft(a, s);
  244. a = a+b;
  245. return a;
  246. }
  247. function GG(a,b,c,d,x,s,ac)
  248. {
  249. a = a+G(b,c,d)+x+ac;
  250. a = rotateLeft(a,s);
  251. a = a+b;
  252. return a;
  253. }
  254. function HH(a,b,c,d,x,s,ac)
  255. {
  256. a = a+H(b, c, d) + x + ac;
  257. a = rotateLeft(a, s);
  258. a = a+b;
  259. return a;
  260. }
  261. function II(a,b,c,d,x,s,ac)
  262. {
  263. a = a+I(b, c, d) + x + ac;
  264. a = rotateLeft(a, s);
  265. a = a+b;
  266. return a;
  267. }
  268. function transform(buf,offset)
  269. {
  270. var a=0, b=0, c=0, d=0;
  271. var x = transformBuffer;
  272. a = state[0];
  273. b = state[1];
  274. c = state[2];
  275. d = state[3];
  276. for (i = 0; i < 16; i++)
  277. {
  278. x[i] = and(buf[i*4+offset],0xff);
  279. for (j = 1; j < 4; j++)
  280. {
  281. x[i]+=shl(and(buf[i*4+j+offset] ,0xff), j * 8);
  282. }
  283. }
  284. a = FF ( a, b, c, d, x[ 0], S11, 0xd76aa478);
  285. d = FF ( d, a, b, c, x[ 1], S12, 0xe8c7b756);
  286. c = FF ( c, d, a, b, x[ 2], S13, 0x242070db);
  287. b = FF ( b, c, d, a, x[ 3], S14, 0xc1bdceee);
  288. a = FF ( a, b, c, d, x[ 4], S11, 0xf57c0faf);
  289. d = FF ( d, a, b, c, x[ 5], S12, 0x4787c62a);
  290. c = FF ( c, d, a, b, x[ 6], S13, 0xa8304613);
  291. b = FF ( b, c, d, a, x[ 7], S14, 0xfd469501);
  292. a = FF ( a, b, c, d, x[ 8], S11, 0x698098d8);
  293. d = FF ( d, a, b, c, x[ 9], S12, 0x8b44f7af);
  294. c = FF ( c, d, a, b, x[10], S13, 0xffff5bb1);
  295. b = FF ( b, c, d, a, x[11], S14, 0x895cd7be);
  296. a = FF ( a, b, c, d, x[12], S11, 0x6b901122);
  297. d = FF ( d, a, b, c, x[13], S12, 0xfd987193);
  298. c = FF ( c, d, a, b, x[14], S13, 0xa679438e);
  299. b = FF ( b, c, d, a, x[15], S14, 0x49b40821);
  300. a = GG ( a, b, c, d, x[ 1], S21, 0xf61e2562);
  301. d = GG ( d, a, b, c, x[ 6], S22, 0xc040b340);
  302. c = GG ( c, d, a, b, x[11], S23, 0x265e5a51);
  303. b = GG ( b, c, d, a, x[ 0], S24, 0xe9b6c7aa);
  304. a = GG ( a, b, c, d, x[ 5], S21, 0xd62f105d);
  305. d = GG ( d, a, b, c, x[10], S22, 0x2441453);
  306. c = GG ( c, d, a, b, x[15], S23, 0xd8a1e681);
  307. b = GG ( b, c, d, a, x[ 4], S24, 0xe7d3fbc8);
  308. a = GG ( a, b, c, d, x[ 9], S21, 0x21e1cde6);
  309. d = GG ( d, a, b, c, x[14], S22, 0xc33707d6);
  310. c = GG ( c, d, a, b, x[ 3], S23, 0xf4d50d87);
  311. b = GG ( b, c, d, a, x[ 8], S24, 0x455a14ed);
  312. a = GG ( a, b, c, d, x[13], S21, 0xa9e3e905);
  313. d = GG ( d, a, b, c, x[ 2], S22, 0xfcefa3f8);
  314. c = GG ( c, d, a, b, x[ 7], S23, 0x676f02d9);
  315. b = GG ( b, c, d, a, x[12], S24, 0x8d2a4c8a);
  316. a = HH ( a, b, c, d, x[ 5], S31, 0xfffa3942);
  317. d = HH ( d, a, b, c, x[ 8], S32, 0x8771f681);
  318. c = HH ( c, d, a, b, x[11], S33, 0x6d9d6122);
  319. b = HH ( b, c, d, a, x[14], S34, 0xfde5380c);
  320. a = HH ( a, b, c, d, x[ 1], S31, 0xa4beea44);
  321. d = HH ( d, a, b, c, x[ 4], S32, 0x4bdecfa9);
  322. c = HH ( c, d, a, b, x[ 7], S33, 0xf6bb4b60);
  323. b = HH ( b, c, d, a, x[10], S34, 0xbebfbc70);
  324. a = HH ( a, b, c, d, x[13], S31, 0x289b7ec6);
  325. d = HH ( d, a, b, c, x[ 0], S32, 0xeaa127fa);
  326. c = HH ( c, d, a, b, x[ 3], S33, 0xd4ef3085);
  327. b = HH ( b, c, d, a, x[ 6], S34, 0x4881d05);
  328. a = HH ( a, b, c, d, x[ 9], S31, 0xd9d4d039);
  329. d = HH ( d, a, b, c, x[12], S32, 0xe6db99e5);
  330. c = HH ( c, d, a, b, x[15], S33, 0x1fa27cf8);
  331. b = HH ( b, c, d, a, x[ 2], S34, 0xc4ac5665);
  332. a = II ( a, b, c, d, x[ 0], S41, 0xf4292244);
  333. d = II ( d, a, b, c, x[ 7], S42, 0x432aff97);
  334. c = II ( c, d, a, b, x[14], S43, 0xab9423a7);
  335. b = II ( b, c, d, a, x[ 5], S44, 0xfc93a039);
  336. a = II ( a, b, c, d, x[12], S41, 0x655b59c3);
  337. d = II ( d, a, b, c, x[ 3], S42, 0x8f0ccc92);
  338. c = II ( c, d, a, b, x[10], S43, 0xffeff47d);
  339. b = II ( b, c, d, a, x[ 1], S44, 0x85845dd1);
  340. a = II ( a, b, c, d, x[ 8], S41, 0x6fa87e4f);
  341. d = II ( d, a, b, c, x[15], S42, 0xfe2ce6e0);
  342. c = II ( c, d, a, b, x[ 6], S43, 0xa3014314);
  343. b = II ( b, c, d, a, x[13], S44, 0x4e0811a1);
  344. a = II ( a, b, c, d, x[ 4], S41, 0xf7537e82);
  345. d = II ( d, a, b, c, x[11], S42, 0xbd3af235);
  346. c = II ( c, d, a, b, x[ 2], S43, 0x2ad7d2bb);
  347. b = II ( b, c, d, a, x[ 9], S44, 0xeb86d391);
  348. state[0] +=a;
  349. state[1] +=b;
  350. state[2] +=c;
  351. state[3] +=d;
  352. }
  353. function init()
  354. {
  355. count[0]=count[1] = 0;
  356. state[0] = 0x67452301;
  357. state[1] = 0xefcdab89;
  358. state[2] = 0x98badcfe;
  359. state[3] = 0x10325476;
  360. for (i = 0; i < digestBits.length; i++)
  361. digestBits[i] = 0;
  362. }
  363. function update(b)
  364. {
  365. var index,i;
  366. index = and(shr(count[0],3) , 0x3f);
  367. if (count[0]<0xffffffff-7)
  368. count[0] += 8;
  369. else {
  370. count[1]++;
  371. count[0]-=0xffffffff+1;
  372. count[0]+=8;
  373. }
  374. buffer[index] = and(b,0xff);
  375. if (index >= 63) {
  376. transform(buffer, 0);
  377. }
  378. }
  379. function finish()
  380. {
  381. var bits = new array(8);
  382. var padding;
  383. var i=0, index=0, padLen=0;
  384. for (i = 0; i < 4; i++)
  385. {
  386. bits[i] = and(shr(count[0],(i * 8)), 0xff);
  387. }
  388. for (i = 0; i < 4; i++)
  389. {
  390. bits[i+4]=and(shr(count[1],(i * 8)), 0xff);
  391. }
  392. index = and(shr(count[0], 3) ,0x3f);
  393. padLen = (index < 56) ? (56 - index) : (120 - index);
  394. padding = new array(64);
  395. padding[0] = 0x80;
  396. for (i=0;i<padLen;i++)
  397. update(padding[i]);
  398. for (i=0;i<8;i++)
  399. update(bits[i]);
  400. for (i = 0; i < 4; i++)
  401. {
  402. for (j = 0; j < 4; j++)
  403. {
  404. digestBits[i*4+j] = and(shr(state[i], (j * 8)) , 0xff);
  405. }
  406. }
  407. }
  408. function hexa(n) {
  409. var hexa_h = "0123456789abcdef";
  410. var hexa_c="";
  411. var hexa_m=n;
  412. for (hexa_i=0;hexa_i<8;hexa_i++) {
  413. hexa_c=hexa_h.charAt(Math.abs(hexa_m)%16)+hexa_c;
  414. hexa_m=Math.floor(hexa_m/16);
  415. }
  416. return hexa_c;
  417. }
  418. var ascii="01234567890123456789012345678901" + " !\"#" + '\$' + "%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ"+ "[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
  419. function md5(entree)
  420. {
  421. var l,s,k,ka,kb,kc,kd;
  422. init();
  423. for (k=0;k<entree.length;k++) {
  424. l=entree.charAt(k);
  425. update(ascii.lastIndexOf(l));
  426. }
  427. finish();
  428. ka=kb=kc=kd=0;
  429. for (i=0;i<4;i++) ka+=shl(digestBits[15-i], (i*8));
  430. for (i=4;i<8;i++) kb+=shl(digestBits[15-i], ((i-4)*8));
  431. for (i=8;i<12;i++) kc+=shl(digestBits[15-i], ((i-8)*8));
  432. for (i=12;i<16;i++) kd+=shl(digestBits[15-i], ((i-12)*8));
  433. s=hexa(kd)+hexa(kc)+hexa(kb)+hexa(ka);
  434. return s;
  435. }
  436. function strmodify(str)
  437. {
  438. var localStr = "";
  439. var len = str.length;
  440. var i,j;
  441. var charStr;
  442. for(i=0;i<len;i++)
  443. {
  444. if(document.all)
  445. {
  446. charStr = str.slice(i,i+1);
  447. if(charStr != ' ')break;
  448. }
  449. else
  450. {
  451. if(str[i] != ' ')break;
  452. }
  453. }
  454. for(j=(len-1);j>0;j--)
  455. {
  456. if(document.all)
  457. {
  458. charStr = str.slice(j,j+1);
  459. if(charStr != ' ')break;
  460. }
  461. else
  462. {
  463. if(str[j] != ' ')break;
  464. }
  465. }
  466. if(j<i)
  467. {
  468. return localStr;
  469. }
  470. else localStr = str.slice(i,j+1);
  471. return localStr;
  472. }
  473. function checkCookie(srcStr)
  474. {
  475. var sliceStr = srcStr.indexOf("=");
  476. var testStr = strmodify(srcStr.slice(0,sliceStr)).toUpperCase();
  477. if(testStr == "COOKIE")
  478. {
  479. return true;
  480. }
  481. else
  482. return false;
  483. }
  484. function getCookie()
  485. {
  486. var sliceStr;
  487. var srcStr;
  488. var tmpstring = document.cookie;
  489. while(tmpstring.length > 0)
  490. {
  491. sliceStr = tmpstring.indexOf(";");
  492. if(sliceStr == -1)
  493. {
  494. srcStr = tmpstring;
  495. if(checkCookie(srcStr) == true)
  496. {
  497. sliceStr = srcStr.indexOf("=");
  498. if(sliceStr == -1)return null;
  499. var submitStr = strmodify(srcStr.slice(sliceStr+1));
  500. return submitStr;
  501. }
  502. }
  503. else
  504. {
  505. srcStr = tmpstring.slice(0,sliceStr);
  506. if(checkCookie(srcStr) == true)
  507. {
  508. sliceStr = srcStr.indexOf("=");
  509. if(sliceStr == -1)return null;
  510. var submitStr = strmodify(srcStr.slice(sliceStr+1));
  511. return submitStr;
  512. }
  513. }
  514. tmpstring = tmpstring.slice(sliceStr+1);
  515. }
  516. return null;
  517. }
  518. function encode() {
  519. var cookieStr = getCookie();
  520. if(cookieStr == null)
  521. {
  522. alert(js_emp_alert = "COOKIE值获取失败,请您确保COOKIE功能开启。");
  523. return false;
  524. }
  525. document.getElementById('nonce').value = cookieStr;
  526. var tmp_pwd_md5 = md5(document.getElementById('txt_password').value);
  527. var submitStr_md5 = md5(tmp_pwd_md5.toUpperCase() + ":" + cookieStr);
  528. document.submitForm.encoded.value = document.getElementById('txt_usr_name').value + ":" + submitStr_md5.toUpperCase();
  529. return true;
  530. }
  531. function loginResize()
  532. {
  533. var loginDivID = document.getElementById('mainHeight');
  534. if (document.all)
  535. {
  536. if(parseInt(document.body.offsetHeight,10) > 460)
  537. loginDivID.style.height = document.body.offsetHeight;
  538. else
  539. loginDivID.style.height = 460;
  540. if(parseInt(document.body.offsetWidth,10) > 800)
  541. loginDivID.style.width = document.body.offsetWidth;
  542. else
  543. loginDivID.style.width = 800;
  544. }
  545. else
  546. {
  547. if(parseInt(window.innerHeight,10) > 460)
  548. loginDivID.style.height = window.innerHeight;
  549. else
  550. loginDivID.style.height = 460;
  551. if(parseInt(window.innerWidth,10) > 800)
  552. loginDivID.style.width = window.innerWidth;
  553. else
  554. loginDivID.style.width = 800;
  555. }
  556. return true;
  557. }
  558. function doClear()
  559. {
  560. document.getElementById("txt_usr_name").value = "";
  561. document.getElementById("txt_password").value = "";
  562. if (window.focus) self.focus();
  563. document.getElementById("txt_usr_name").focus();
  564. document.getElementById("txt_usr_name").select();
  565. if(timeoutFlag == true)location.href = "../logon/logon.htm";
  566. }
  567. function doPrintfTableHeadBorder(borderColor,bgColor,width,height,content)
  568. {
  569. var color1 = borderColor;
  570. var color2 = bgColor;
  571. var width_l = width;
  572. var height_l = height;
  573. var banner = "";
  574. banner += "<TABLE style=\"TABLE-LAYOUT: fixed\" height="+height_l+" cellSpacing=0 cellPadding=0 width="+width_l+" border=0>";
  575. banner += "<TBODY><TR><TD>";
  576. banner += "<TABLE style=\"TABLE-LAYOUT: fixed\" height=3 cellSpacing=0 cellPadding=0 width="+width_l+" border=0>";
  577. banner += "<TBODY><TR height=1><TD width=1></TD><TD width=1></TD><TD width=1></TD><TD bgColor="+color1+"></TD><TD width=1></TD><TD width=1></TD><TD width=1></TD></TR>";
  578. banner += "<TR height=1><TD colspan=2></TD><TD bgColor="+color1+"></TD><TD bgColor="+color2+"></TD><TD bgColor="+color1+"><TD colspan=2></TD></TR>";
  579. banner += "<TR height=1><TD width=1></TD><TD width=1 bgColor="+color1+"></TD><TD width=1 bgColor="+color2+"><TD bgColor="+color2+"></TD><TD width=1 bgColor="+color2+"></TD><TD width=1 bgColor="+color1+"></TD><TD width=1></TD></TR>";
  580. banner += "</TBODY></TABLE></TD></TR>";
  581. banner += "<TR><TD><TABLE style=\"TABLE-LAYOUT: fixed\" height="+(height_l-3)+" cellSpacing=0 cellPadding=0 border=0>";
  582. banner += "<TBODY><TR><TD width=1 bgColor="+color1+"></TD><TD bgColor="+color2+" width="+(width_l-2)+"></TD><TD width=1 bgColor="+color1+"></TD></TR><TR><TD width=1 bgColor="+color1+"></TD>";
  583. banner += "<TD id=oINNER bgColor="+color2+" width="+(width_l-2)+">"+content+"</TD>";
  584. banner += "<TD width=1 bgColor="+color1+"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>";
  585. document.write(banner);
  586. }
  587. function doPrintfTableBottomBorder(borderColor,bgColor,width,height,content)
  588. {
  589. var color1 = borderColor;
  590. var color2 = bgColor;
  591. var width_l = width;
  592. var height_l = height;
  593. var banner = "";
  594. banner += "<TABLE style=\"TABLE-LAYOUT: fixed\" height="+height_l+" cellSpacing=0 cellPadding=0 width="+width_l+" border=0>";
  595. banner += "<TBODY><TR><TD>";
  596. banner += "<TABLE style=\"TABLE-LAYOUT: fixed\" height=1 cellSpacing=0 cellPadding=0 width="+width_l+" border=0>"
  597. banner += "<TBODY><TR height=1 width="+width_l+"><TD bgColor="+color1+"></TD></TR></TBODY></TABLE></TD></TR>";
  598. banner += "<TR><TD><TABLE style=\"table-LAYOUT: fixed\" height="+(height_l)+" cellSpacing=0 cellPadding=0 border=0>";
  599. banner += "<TBODY>";
  600. banner += "<TR height="+(height_l)+"><TD width=1 bgColor="+color1+"></TD>";
  601. banner += "<TD id=oINNER width="+(width_l-2)+" bgColor="+color2+" valign=\"top\">"+content+"</TD>";
  602. banner += "<TD width=1 bgColor="+color1+"></TD></TR></TBODY></TABLE></TD></TR>";
  603. banner += "<TR height=3 width="+width_l+"><TD>";
  604. banner += "<TABLE style=\"table-LAYOUT: fixed\" height=3 cellSpacing=0 cellPadding=0 width="+width_l+" border=0><TBODY>";
  605. banner += "<TR height=1><TD width=1></TD><TD width=1 bgColor="+color1+"></TD><TD width=1 bgColor="+color2+"><TD bgColor="+color2+"></TD><TD width=1 bgColor="+color2+"></TD><TD width=1 bgColor="+color1+"></TD><TD width=1></TD></TR>";
  606. banner += "<TR height=1><TD></TD><TD bgColor="+color1+" colSpan=2></TD><TD bgColor="+color2+"></TD><TD bgColor="+color1+" colSpan=2></TD><TD width=1></TD></TR>";
  607. banner += "<TR height=1><TD colSpan=3></TD><TD bgColor="+color1+"></TD><TD colSpan=3></TD></TR>";
  608. banner += "</TBODY></TABLE></TD></TR></TBODY></TABLE>";
  609. document.write(banner);
  610. }
  611. function goUrl(url)
  612. {
  613. window.open(url, '', '');
  614. }
  615. function SetBackgroundImageCache(obj)
  616. {
  617. var userAgent = navigator.userAgent.toLowerCase(),
  618. version = (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1];
  619. if (/msie/.test( userAgent ) && version < 7)
  620. {
  621. try {
  622. document.execCommand('BackgroundImageCache', false, true);
  623. }
  624. catch(ex) {}
  625. }
  626. }
  627. function spanNormal(obj)
  628. {
  629. if(obj.className!="BTN_DISABLE")
  630. {
  631. obj.className="BTN";
  632. }
  633. }
  634. function spanHover(obj)
  635. {
  636. if(obj.className!="BTN_DISABLE")
  637. {
  638. obj.className="BTN_HOVER";
  639. }
  640. }
  641. function noNumbers(e)
  642. {
  643. var keynum;
  644. if(window.event)
  645. {
  646. keynum = e.keyCode;
  647. }
  648. else if(e.which)
  649. {
  650. keynum = e.which;
  651. }
  652. if(keynum == 13)
  653. {
  654. if(!focusFlag)
  655. {
  656. formSubmit('form0', this);
  657. }
  658. }
  659. }
  660. function formSubmit(formID, obj)
  661. {
  662. if(timeoutFlag == true)
  663. {
  664. alert("Timeout. Please refresh the page.");
  665. location.href="../logon/logon.htm";
  666. return false;
  667. }
  668. if(document.getElementById('txt_usr_name').value == "" || document.getElementById('txt_password').value == "")
  669. {
  670. alert("User Name and Password cannot be blank.");
  671. if(document.getElementById('txt_usr_name').value == "")
  672. var element = document.getElementById('txt_usr_name');
  673. else
  674. var element = document.getElementById('txt_password');
  675. element.select();
  676. element.focus();
  677. return false;
  678. }
  679. if (!accVerify(document.getElementById('txt_usr_name').value, false))
  680. {
  681. alert("Invalid User Name.");
  682. var element = document.getElementById('txt_usr_name');
  683. element.select();
  684. element.focus();
  685. return false;
  686. }
  687. if(false == encode())
  688. {
  689. return false;
  690. }
  691. var frm =document.getElementById(formID);
  692. frm.submit();
  693. return true;
  694. }
  695. var focusFlag = false;
  696. function getfocus()
  697. {
  698. focusFlag = true;
  699. }
  700. function lostfocus()
  701. {
  702. focusFlag = false;
  703. }
  704. function getTxtFocus()
  705. {
  706. ctlFocusFlag = true;
  707. }
  708. function lostTxtFocus()
  709. {
  710. }
  711. </SCRIPT>
  712. <STYLE type="text/css">
  713. #center{margin:10% 0% 0% 35%;border:solid 0px;height:300px;width:400px;position:static;}
  714. html{font-family: verdana, arial, sans-serif;font-size:11px;}
  715. body{
  716. margin:20px;
  717. font-family: verdana, arial, sans-serif;
  718. font-size:11px;
  719. overflow:hidden;
  720. }
  721. BODY,INPUT,SELECT,SPAN,TEXTAREA
  722. {
  723. font-family: verdana, arial, sans-serif;
  724. font-size:11px;
  725. }
  726. BODY.LOGIN_L{
  727. background-color:#FFFFFF;
  728. margin:0;
  729. padding:0;
  730. }
  731. DIV.DOTLINT{
  732. border-top: solid 1px;
  733. background-color:white;
  734. font-size:0px;
  735. height:1px;
  736. width:200px;
  737. }
  738. DIV.TOP{
  739. background-image: url(../images/top_bg.gif);
  740. background-repeat:repeat-x;
  741. background-color:#21628E;
  742. width:480px;
  743. height:100%;
  744. font-size:0px;
  745. margin:0;
  746. padding:0;
  747. }
  748. DIV.MAIN_PAINT{
  749. border:dotted 0px red;
  750. width:480px;
  751. height:100%;
  752. font-size:0px;
  753. margin:0px;
  754. padding:0px;
  755. }
  756. TD.COLBLANK{
  757. width:20px;
  758. }
  759. INPUT {font-family: verdana, arial, sans-serif;}
  760. INPUT.BTN_NORMAL {
  761. border-color:#7F9DB9;
  762. border-width:1px;
  763. border-style:solid;
  764. width:55px;
  765. }
  766. SPAN.LOGIN_NORMAL {
  767. }
  768. SPAN.NORMAL {
  769. }
  770. SPAN.WARN_NORMAL {
  771. color:red;
  772. }
  773. TD.FRAMEWORK_LEFT {
  774. text-align:left;
  775. width:130px;
  776. }
  777. INPUT.TEXT_ENABLE {
  778. size:20;
  779. border-color:#7F9DB9;
  780. border-width:1px;
  781. border-style:solid;
  782. }
  783. SPAN.BTN{
  784. display:block;
  785. background:url(../images/button.gif) left -42px;
  786. text-decoration:none;
  787. height:21px;
  788. float:left;
  789. margin:0 0 0 0;
  790. }
  791. SPAN.BTN input{
  792. background:url(../images/button.gif) right -42px ;
  793. padding:4px 3px 4px 0;
  794. margin:0 0 0 3px;
  795. float:left;
  796. height:21px;
  797. cursor:pointer;
  798. border:none
  799. }
  800. SPAN.BTN_HOVER{
  801. display:block;
  802. background:url(../images/button.gif) left -20px;
  803. text-decoration:none;
  804. height:21px;
  805. float:left;
  806. margin:0 0 0 0;
  807. }
  808. SPAN.BTN_HOVER input{
  809. background:url(../images/button.gif) right -20px;
  810. padding:4px 3px 4px 0;
  811. margin:0 0 0 3px;
  812. height:21px;
  813. cursor:pointer;
  814. border:none
  815. }
  816. SPAN.COPY
  817. {
  818. font-size:18px !important;
  819. font-size:17px;
  820. position:relative;
  821. top:4px !important;
  822. top:3px;
  823. left:-1px;
  824. }
  825. DIV.BOTTOMLINE{
  826. margin-top:15px;
  827. background-color:#000000;
  828. font-size:0px;
  829. height:1px;
  830. width:100%;
  831. }
  832. </STYLE>
  833. </HEAD>
  834. <BODY class="LOGIN_L" ONKEYDOWN=" noNumbers(event);" onResize="resize('center');">
  835. <DIV id="center" style="display:none;">
  836. <DIV id="center-top">
  837. <SCRIPT language="javascript">
  838. var banner="<DIV class=\"TOP\"><IMG src=\"../images/logo_smb.jpg\" onClick=\"javascript:goUrl('http://www.tp-link.com');\" style=\"cursor:pointer;\" align=\"left\"></IMG></DIV>";
  839. doPrintfTableHeadBorder("#4C82A5","#4C82A5",480,60,banner);
  840. </SCRIPT>
  841. </DIV>
  842. <DIV id="center-main">
  843. <DIV class="MAIN_PAINT">
  844. <SCRIPT language="javascript">
  845. function doPrintfTable(width,height)
  846. {
  847. var banner = "";
  848. banner += "<TABLE align=\"center\" valign=\"top\" width=\"200px;\" height=\"20px;\" border=0><TR height=\"20px;\"><TD></TD></TR>";
  849. banner += "<TR height=\"20px;\"><TD><DIV id=\"ret_info\" style=\"border:solid 1px #388BA9;display:block;padding:3px;width:208px !important;width:215px;text-align:center;\">";
  850. banner += "</DIV></TD></TR><TR height=\"10px;\"><TD></TD></TR>"
  851. banner += "</TABLE><TABLE align=\"center\" width=\"240px;\">";
  852. banner += "<TR><TD class=\"FRAMEWORK_LEFT\" align=\"center\"><SPAN class=\"LOGIN_NORMAL\" id=\"t_usr_name\">User Name:</SPAN></TD>";
  853. banner += "<TD><INPUT type=\"text\" value=\"\" id=\"txt_usr_name\" name=\"txt_usr_name\" class=\"TEXT_ENABLE\" size=\"20\" maxlength=\"31\" tabindex=\"0\"></TD></TR>";
  854. banner += "<TR><TD class=\"FRAMEWORK_LEFT\"><SPAN class=\"LOGIN_NORMAL\" id=\"t_password\">Password:</SPAN></TD><TD><INPUT onFocus=\"getTxtFocus();\" onBlur=\"lostTxtFocus();\" type=\"password\" value=\"\" id=\"txt_password\" name=\"txt_password\" class=\"TEXT_ENABLE\" size=\"20\" maxlength=\"31\" tabindex=\"0\"></TD></TR><TR style=\"height:10px !important;height;0px;\"></TR></TABLE>";
  855. banner += "<FORM id=\"form0\" method=\"POST\" name=\"submitForm\" action=\"../logon/loginJump.htm\">";
  856. banner += "<INPUT type=\"hidden\" name=\"encoded\" id=\"encoded\">";
  857. banner += "<INPUT type=\"hidden\" name=\"nonce\" id=\"nonce\" value=\"\">";
  858. banner += "<TABLE align=\"center\" border=0>"
  859. banner += "<TR height=\"0px;\"><TD></TD></TR>";
  860. banner += "<TR><TD colspan=\"2\"><TABLE cellpadding=\"0\" cellspacing=\"0\" align=\"center\" border=0><TR><TD><SPAN class=\"BTN\" onMouseOver=\"spanHover(this);\" onMouseOut=\"spanNormal(this);\"><INPUT type=\"button\" name=\"logon\" id=\"btn_logon\" class=\"BTN_NORMAL\" value=\"Login\" onClick=\"formSubmit('form0', this);\" onFocus=\"getfocus();\" onBlur=\"lostfocus();\" tabindex=\"0\"></SPAN></TD>";
  861. banner += "<TD class=\"COLBLANK\">&nbsp;</TD><TD><SPAN class=\"BTN\" onMouseOver=\"spanHover(this);\" onMouseOut=\"spanNormal(this);\"><INPUT type=\"button\" value=\"Clear\" id=\"btn_clear\" name=\"btn_clear\" class=\"BTN_NORMAL\" onClick=\"doClear();\" onFocus=\"getfocus();\" onBlur=\"lostfocus();\" tabindex=\"0\"/></SPAN>";
  862. banner += "</TD></TR></TABLE></TD></TR></TABLE>";
  863. banner += "<INPUT type=\"hidden\" name=\"URL\" value=\"../logon/loginJump.htm\"></FORM>";
  864. doPrintfTableBottomBorder("#388BA9","#F7F8F9",width,height,banner);
  865. }
  866. doPrintfTable(480,220);
  867. </SCRIPT>
  868. <TABLE CELLSPACE="2" cellpadding="1" border=0 align="center">
  869. <TBODY>
  870. <TR>
  871. <TD>
  872. <SPAN class="NORMAL">Copyright</SPAN> <SPAN class="COPY">&copy;</SPAN> <SPAN class="NORMAL" id="span_date">2014</SPAN>
  873. <SPAN class="NORMAL" id="t_corporation">TP-LINK TECHNOLOGIES CO., LTD. All Rights Reserved. </SPAN>
  874. </TD>
  875. </TR>
  876. </TBODY>
  877. </TABLE></DIV></DIV></DIV>
  878. </BODY>
  879. </HTML>
  880. <SCRIPT language="javascript">
  881. if(errType == 0)
  882. {
  883. document.getElementById('ret_info').style.display = "none";
  884. }
  885. else if(errType == 1)
  886. document.getElementById('ret_info').innerHTML = "<SPAN class=\"WARN_NORMAL\" id=\"t_err_info\">User Name or Password is incorrect.</SPAN>";
  887. else if(errType == 2)
  888. document.getElementById('ret_info').innerHTML = "<SPAN class=\"WARN_NORMAL\" id=\"t_timeout_info\">Session timeout, please log in again.</SPAN>";
  889. else if(errType == 3)
  890. {
  891. var banner = "<SPAN class=\"WARN_NORMAL\" id=\"t_seserr_info\">The amount of sessions has reached its limit. The user %sessionUser% of %sessionIp% is logged on.</SPAN>";
  892. banner = banner.replace("%sessionIp%",sessionIp);
  893. banner = banner.replace("%sessionUser%",sessionUser);
  894. document.getElementById('ret_info').innerHTML = banner;
  895. }
  896. else if(errType == 4)
  897. document.getElementById('ret_info').innerHTML = "<SPAN class=\"WARN_NORMAL\" id=\"t_upgrade_info\">Firmware is being upgrade, please log in later.</SPAN>";
  898. else
  899. document.getElementById('ret_info').innerHTML = "<SPAN class=\"WARN_NORMAL\" id=\"t_uerr_info\">Error.</SPAN>";
  900. document.getElementById("span_date").innerText = buildDate.toString().slice(0,4);
  901. window.onload = function() {
  902. resize('center');
  903. SetBackgroundImageCache(this);
  904. }
  905. </SCRIPT>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement