collection.aspx
上传用户:lanchensha
上传日期:2022-02-27
资源大小:7530k
文件大小:3k
源码类别:

编辑器/阅读器

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" Inherits="DotNetTextBox.PageCollection"%>
  2. <%@ Import Namespace="DotNetTextBox" %>
  3. <html>
  4. <head runat="server">
  5. <title><%=ResourceManager.GetString("getpage")%></title>
  6. <meta http-equiv="pragma" content="no-cache" />
  7. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  8. <base target="_self" />
  9. <link href="stylesheet.css" rel="stylesheet" type="text/css" />
  10. <script language=javascript>
  11. Request = {
  12.  QueryString : function(item){
  13.   var svalue = location.search.match(new RegExp("[?&]" + item + "=([^&]*)(&?)","i"));
  14.   return svalue ? svalue[1] : svalue;
  15.  }
  16. }
  17. function loading()
  18. {
  19. document.getElementById("loading").style.visibility="visible";
  20. return true;
  21. }
  22. function addeditor()
  23. {
  24. if(confirm('<%=ResourceManager.GetString("getpageconfirm")%>'))
  25. {
  26. parent.inserObject(parent.document.getElementById(Request.QueryString("name")).contentWindow,'getpage',document.getElementById("tempcontent").value);
  27. parent.popupmenu.hide();
  28. parent.rcmenu.hide();
  29. }
  30. }
  31. </script>
  32. </head>
  33. <body bgcolor="#f9f8f7" leftmargin=5 topmargin=5>
  34. <form runat=server>
  35. <div id="loading" style="border-right: #333333 1px dashed; border-top: #333333 1px dashed;
  36. font-size: 9pt; visibility: hidden; border-left: #333333 1px dashed;
  37. width: 200px; color: #000000; border-bottom: #333333 1px dashed; position: absolute; height: 60px; background-color: #ffffff">
  38. <center>
  39. <br />
  40. <%=ResourceManager.GetString("getpageloading")%></center>
  41. <br />
  42. <center>
  43. <asp:Button ID="canceloading" runat="server" Style="border-top-style: dashed; border-right-style: dashed;
  44. border-left-style: dashed; border-bottom-style: dashed" />&nbsp;</center>
  45. <br />
  46. </div>
  47. <fieldset><legend><%=ResourceManager.GetString("getpage")%></legend>
  48. <table align=center>
  49. <tr>
  50. <td style="height: 46px; width: 360px;" >
  51. <asp:TextBox ID="txtUrl" runat="server" Text="http://" Width="305px"></asp:TextBox>
  52. <br />
  53. <%=ResourceManager.GetString("getpagetype")%>:<asp:DropDownList ID="seltype" runat="server" />
  54. <asp:Button ID="btnReturn" runat="server" OnClientClick="loading()" OnClick="btnReturn_Click" />
  55. <input type=button name="close" onclick="parent.popupmenu.hide();parent.rcmenu.hide();" value='<%=ResourceManager.GetString("close")%>'></td>
  56. </tr>
  57. </table></fieldset>
  58. <asp:HiddenField ID="tempcontent" runat="server" />
  59. </form>
  60. </body>
  61. <script type="text/javascript">
  62. var load=document.getElementById('loading');
  63. resizeLoad();
  64. window.setInterval("resizeLoad()",10);
  65. function resizeLoad()
  66. {
  67. load.style.top = parseInt((document.body.clientHeight-load.offsetHeight)/2+document.body.scrollTop);
  68. load.style.left = parseInt((document.body.clientWidth-load.offsetWidth)/2+document.body.scrollLeft);
  69. }
  70. </script>
  71. </html>