Setup.aspx
上传用户:jdb8708888
上传日期:2013-05-29
资源大小:19971k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

C#

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  2. <HTML>
  3. <HEAD>
  4. <title>短消息设置</title>
  5. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  6. <meta content="C#" name="CODE_LANGUAGE">
  7. <meta content="JavaScript" name="vs_defaultClientScript">
  8. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  9. <LINK href="../../Css/BasicLayout.css" type="text/css" rel="stylesheet">
  10. <script language="javascript">
  11. function SetCookie(sName, sValue)
  12. {
  13. var parwin = window.dialogArguments;
  14. parwin.document.cookie = sName + "=" + escape(sValue) + "; ";
  15. }
  16. function GetCookie(sName)
  17. {
  18. var parwin = window.dialogArguments;
  19. var aCookie = parwin.document.cookie.split("; ");
  20. for (var i=0; i < aCookie.length; i++)
  21. {
  22. var aCrumb = aCookie[i].split("=");
  23. if (sName == aCrumb[0]) 
  24. return unescape(aCrumb[1]);
  25. }
  26. }
  27. function SetInit()
  28. {
  29. this.document.all.Setup.yes.focus();
  30. if(GetCookie("UDS_RefreshTime")==null)
  31. {
  32. this.document.all.Setup.radiobutton[0].checked=true;
  33. }
  34. else
  35. {
  36. for(i=0;i<this.document.all.Setup.radiobutton.length;i++)
  37. {
  38. if(GetCookie("UDS_RefreshTime")==this.document.all.Setup.radiobutton[i].value*60000)
  39. {
  40. this.document.all.Setup.radiobutton[i].checked=true;
  41. }
  42. }
  43. }
  44. if(GetCookie("UDS_RemindType")==null)
  45. {
  46. this.document.all.Setup.radiobutton1[0].checked=true;
  47. }
  48. else
  49. {
  50. for(i=0;i<this.document.all.Setup.radiobutton1.length;i++)
  51. {
  52. if(GetCookie("UDS_RemindType")==this.document.all.Setup.radiobutton1[i].value)
  53. {
  54. this.document.all.Setup.radiobutton1[i].checked=true;
  55. }
  56. }
  57. }
  58. }
  59. function FinishSetup()
  60. {
  61. for(i=0;i<this.document.all.Setup.radiobutton.length;i++)
  62. {
  63. if(this.document.all.Setup.radiobutton[i].checked==true)
  64. {
  65. SetCookie("UDS_RefreshTime",this.document.all.Setup.radiobutton[i].value*60000);
  66. }
  67. }
  68. for(i=0;i<this.document.all.Setup.radiobutton1.length;i++)
  69. {
  70. if(this.document.all.Setup.radiobutton1[i].checked==true)
  71. {
  72. SetCookie("UDS_RemindType",this.document.all.Setup.radiobutton1[i].value);
  73. }
  74. }
  75. window.dialogArguments.location.reload();
  76. window.close();
  77. }
  78. </script>
  79. </HEAD>
  80. <body onload="SetInit()" MS_POSITIONING="GridLayout">
  81. <form id="Setup" method="post">
  82. <table class="GbText" width="90%" border="0">
  83. <tr>
  84. <td width="20%"><font color="#ff9966">&nbsp; 短消息设置</font></td>
  85. <td></td>
  86. </tr>
  87. <tr>
  88. <td width="20%">&nbsp;&nbsp;设置提醒时间</td>
  89. <td><input type="radio" value="0.5" name="radiobutton">0.5分钟 <input type="radio" value="1" name="radiobutton">1分钟
  90. <input type="radio" value="2" name="radiobutton">2分钟 <input type="radio" value="3" name="radiobutton">3分钟
  91. <input type="radio" value="4" name="radiobutton">4分钟 <input type="radio" value="5" name="radiobutton">5分钟
  92. </td>
  93. </tr>
  94. <tr>
  95. <td width="20%">&nbsp;&nbsp;设置提醒方式</td>
  96. <td><input type="radio" value="1" name="radiobutton1"> 弹出窗口 <input type="radio" value="2" name="radiobutton1">
  97. 闪烁图标
  98. </td>
  99. </tr>
  100. <tr>
  101. <td width="20%"></td>
  102. <td><br>
  103. <input class="redButtonCss" style="WIDTH: 112px; HEIGHT: 20px" onclick="FinishSetup()"
  104. type="button" value="确               定" name="yes">&nbsp;&nbsp;&nbsp;&nbsp;<input class="redButtonCss" style="WIDTH: 112px; HEIGHT: 20px" onclick="window.close()"
  105. type="button" value="取               消" name="no">
  106. </td>
  107. </tr>
  108. </table>
  109. </form>
  110. </body>
  111. </HTML>