SetPage.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:3k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <%
  2. Response.Buffer = True
  3. Response.Expires = -1
  4. Response.ExpiresAbsolute = Now() - 1
  5. Response.Expires = 0
  6. Response.CacheControl = "no-cache"
  7. %>
  8. <html>
  9. <head>
  10. <title>设置分页样式</title> 
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  12. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  13. <script language="JavaScript" src="../../Fs_Inc/PublicJS.js"></script>
  14. <script language="javascript">
  15. function getColorOptions(){
  16. var color= new Array("00","33","66","99","CC","FF");
  17. for (var i=0;i<color.length ;i++ )
  18. {
  19. for (var j=0;j<color.length ;j++ )
  20. {
  21. for (var k=0;k<color.length ;k++ )
  22. {
  23. if(k==0&&j==0&&i==0)
  24. document.write('<option style="background:#'+color[j]+color[k]+color[i]+'" value="'+color[j]+color[k]+color[i]+'" selected>  </option>');
  25. else
  26. document.write('<option style="background:#'+color[j]+color[k]+color[i]+'" value="'+color[j]+color[k]+color[i]+'">  </option>');
  27. }
  28. }
  29. }
  30. }
  31. function getChecked(o){
  32. for (var i=0;i<o.length;i++ )
  33. {
  34. if(o[i].checked) return o[i].value;
  35. }
  36. }
  37. function setIT(obj){
  38. var retV='';
  39. retV += '' + getChecked(obj.list2);
  40. //var pageColor=obj.pageColor.options[obj.pageColor.selectedIndex].value;
  41. //if(pageColor='undefined')pageColor='CC0099';
  42. retV += ',' + obj.pageColor.options[obj.pageColor.selectedIndex].value;
  43. window.returnValue = retV;
  44. window.close();
  45. }
  46. </script>
  47. </head>
  48. <body topmargin="0" leftmargin="0" style="overflow-Y:auto;background:menu">
  49. <iframe width="260" height="165" id="colourPalette" src="../selcolor.htm" style="visibility:hidden; position: absolute; left: 0px; top: 0px;border:1px gray solid" frameborder="0" scrolling="no" ></iframe>
  50. <table width="100%" border="0" height="100%" cellspacing="1" cellpadding="1">
  51. <form name="form1">
  52. <tr> 
  53. <td valign="top"><table width="100%"  border="0" cellspacing="2" cellpadding="1">
  54.           <tr> 
  55.             <td><font color="#000000"> 
  56.               <input name="list2" type="radio" value="1">
  57.               前一页 后一页</font></td>
  58.           </tr>
  59.           <tr> 
  60.             <td><font color="#000000"> 
  61.               <input name="list2" type="radio" value="2">
  62.               共N页,第1页,第2页 </font></td>
  63.           </tr>
  64.           <tr> 
  65.             <td><font color="#000000"> 
  66.               <input name="list2" type="radio" value="3" checked>
  67.               共N页。1 2 3 </font></td>
  68.           </tr>
  69.           <tr> 
  70.             <td><font color="#000000"> 
  71.               <input name="list2" type="radio" value="4">
  72.               <font face=webdings title="首页"> 9</font></font><font color="#000000" face=webdings title="上十页">7</font><font color="#000000" face=webdings title="上一页">3</font><font color="#000000" face=webdings title="下一页">4</font><font color="#000000" face=webdings title="下十页">8</font><font color="#000000" face=webdings title="最后一页">:</font> 
  73.             </td>
  74.           </tr>
  75.           <tr> 
  76.             <td><select name="pageColor" size=8>
  77.                 <script>getColorOptions();</script>
  78.               </select> </td>
  79.           </tr>
  80.         </table>
  81. </td>
  82. <td width="1" bgcolor="menu"></td>
  83. <td valign="top"><input type="button" value=" 确 定 " onClick="setIT(this.form);">
  84.   <br>
  85.   <input type="button" value=" 取 消 " onClick="window.returnValue='';window.close();"></td>
  86. </tr>
  87. </form>
  88. </table>
  89. </body>
  90. </html>