InsertGallery.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:7k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Register TagPrefix="CC1" TagName="ThumbList" Src="ThumbList.ascx" %>
  2. <%@ Register TagPrefix="CE" Assembly="CuteEditor" Namespace="CuteEditor" %>
  3. <%@ Page Language="C#" Inherits="CuteEditor.Dialogs.InsertGalleryFrame" %>
  4. <script runat="server">
  5. override protected void OnInit(EventArgs args)
  6. {
  7. if(Context.Request.QueryString["IsFrame"]==null)
  8. {
  9. string FrameSrc="InsertGallery.Aspx?IsFrame=1&"+Request.ServerVariables["QUERY_STRING"];
  10. CuteEditor.CEU.WriteDialogOuterFrame(Context,"[[ImageGalleryByBrowsing]]",FrameSrc);
  11. Context.Response.End();
  12. }
  13. base.OnInit(args);
  14. }
  15. </script>
  16. <html xmlns="http://www.w3.org/1999/xhtml">
  17. <head>
  18.     <title></title>
  19. <meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)" />
  20. <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.1)" />
  21. <link href="Load.ashx?type=style&file=dialog.css" type="text/css" rel="stylesheet" />
  22. <!--[if IE]>
  23. <link href="Load.ashx?type=style&file=IE.css" type="text/css" rel="stylesheet" />
  24. <![endif]-->
  25. <script type="text/javascript" src="Load.ashx?type=dialogscript&file=DialogHead.js"></script>
  26. <script type="text/javascript">
  27. var OxO98e7=["lightyellow","0px","-3px","all","getElementById","x3Cdiv id=x22tooltipdivx22 style=x22visibility:hidden;background-color:","x22 x3Ex3C/divx3E","left","offsetLeft","offsetTop","offsetParent","top","style","type","visibility","click","mouseover","compatMode","BackCompat","documentElement","body","rightedge","opera","clientWidth","scrollLeft","innerWidth","pageXOffset","offsetWidth","contentmeasure","x","clientHeight","scrollTop","innerHeight","pageYOffset","offsetHeight","y","event","cancelBubble","stopPropagation","tooltipdiv","innerHTML","visible","hidden","px","bottomedge","undefined","hidetip()"];var tipbgcolor=OxO98e7[0x0];var disappeardelay=0xfa;var vertical_offset=OxO98e7[0x1];var horizontal_offset=OxO98e7[0x2];var ie4=document[OxO98e7[0x3]];var ns6=document[OxO98e7[0x4]]&&!document[OxO98e7[0x3]];if(ie4||ns6){ document.write(OxO98e7[0x5]+tipbgcolor+OxO98e7[0x6]) ;} ; function getposOffset(Oxab,Oxac){var Oxad=(Oxac==OxO98e7[0x7])?Oxab[OxO98e7[0x8]]:Oxab[OxO98e7[0x9]];var Oxae=Oxab[OxO98e7[0xa]];while(Oxae!=null){ Oxad=(Oxac==OxO98e7[0x7])?Oxad+Oxae[OxO98e7[0x8]]:Oxad+Oxae[OxO98e7[0x9]] ; Oxae=Oxae[OxO98e7[0xa]] ;} ;return Oxad;}  ; function showhide(obj,Oxb0,Oxb1,Oxb2){if(ie4||ns6){ dropmenuobj[OxO98e7[0xc]][OxO98e7[0x7]]=dropmenuobj[OxO98e7[0xc]][OxO98e7[0xb]]=-0x1f4 ;} ;if(Oxb0[OxO98e7[0xd]]==OxO98e7[0xf]&&obj[OxO98e7[0xe]]==Oxb2||Oxb0[OxO98e7[0xd]]==OxO98e7[0x10]){ obj[OxO98e7[0xe]]=Oxb1 ;} else {if(Oxb0[OxO98e7[0xd]]==OxO98e7[0xf]){ obj[OxO98e7[0xe]]=Oxb2 ;} ;} ;}  ; function iecompattest(){return (document[OxO98e7[0x11]]&&document[OxO98e7[0x11]]!=OxO98e7[0x12])?document[OxO98e7[0x13]]:document[OxO98e7[0x14]];}  ; function clearbrowseredge(obj,Oxb5){var Oxb6=(Oxb5==OxO98e7[0x15])?parseInt(horizontal_offset)*-0x1:parseInt(vertical_offset)*-0x1;if(Oxb5==OxO98e7[0x15]){var Oxb7=ie4&&!window[OxO98e7[0x16]]?iecompattest()[OxO98e7[0x18]]+iecompattest()[OxO98e7[0x17]]-0xf:window[OxO98e7[0x1a]]+window[OxO98e7[0x19]]-0xf; dropmenuobj[OxO98e7[0x1c]]=dropmenuobj[OxO98e7[0x1b]] ;if(Oxb7-dropmenuobj[OxO98e7[0x1d]]<dropmenuobj[OxO98e7[0x1c]]){ Oxb6=dropmenuobj[OxO98e7[0x1c]]-obj[OxO98e7[0x1b]] ;} ;} else {var Oxb7=ie4&&!window[OxO98e7[0x16]]?iecompattest()[OxO98e7[0x1f]]+iecompattest()[OxO98e7[0x1e]]-0xf:window[OxO98e7[0x21]]+window[OxO98e7[0x20]]-0x12; dropmenuobj[OxO98e7[0x1c]]=dropmenuobj[OxO98e7[0x22]] ;if(Oxb7-dropmenuobj[OxO98e7[0x23]]<dropmenuobj[OxO98e7[0x1c]]){ Oxb6=dropmenuobj[OxO98e7[0x1c]]+obj[OxO98e7[0x22]] ;} ;} ;return Oxb6;}  ; function showTooltip(Oxb9,obj,Oxb0){if(window[OxO98e7[0x24]]){ event[OxO98e7[0x25]]=true ;} else {if(Oxb0[OxO98e7[0x26]]){ Oxb0.stopPropagation() ;} ;} ; clearhidetip() ; dropmenuobj=document[OxO98e7[0x4]]?document.getElementById(OxO98e7[0x27]):tooltipdiv ; dropmenuobj[OxO98e7[0x28]]=Oxb9 ;if(ie4||ns6){ showhide(dropmenuobj.style,Oxb0,OxO98e7[0x29],OxO98e7[0x2a]) ; dropmenuobj[OxO98e7[0x1d]]=getposOffset(obj,OxO98e7[0x7]) ; dropmenuobj[OxO98e7[0x23]]=getposOffset(obj,OxO98e7[0xb]) ; dropmenuobj[OxO98e7[0xc]][OxO98e7[0x7]]=dropmenuobj[OxO98e7[0x1d]]-clearbrowseredge(obj,OxO98e7[0x15])+OxO98e7[0x2b] ; dropmenuobj[OxO98e7[0xc]][OxO98e7[0xb]]=dropmenuobj[OxO98e7[0x23]]-clearbrowseredge(obj,OxO98e7[0x2c])+obj[OxO98e7[0x22]]+OxO98e7[0x2b] ;} ;}  ; function hidetip(Oxb0){if( typeof dropmenuobj!=OxO98e7[0x2d]){if(ie4||ns6){ dropmenuobj[OxO98e7[0xc]][OxO98e7[0xe]]=OxO98e7[0x2a] ;} ;} ;}  ; function delayhidetip(){if(ie4||ns6){ delayhide=setTimeout(OxO98e7[0x2e],disappeardelay) ;} ;}  ; function clearhidetip(){if( typeof delayhide!=OxO98e7[0x2d]){ clearTimeout(delayhide) ;} ;}  ;
  28. </script>
  29. <style type="text/css">
  30. INPUT {border:black 1px solid; FONT-SIZE: 8pt; VERTICAL-ALIGN: middle; CURSOR: pointer; FONT-FAMILY: MS Sans Serif; margin-bottom:2px; }
  31. A:link { COLOR: #000099 }
  32. A:visited { COLOR: #000099 }
  33. A:active { COLOR: #000099 }
  34. A:hover { COLOR: darkred }
  35. #tooltipdiv{
  36. position:absolute;
  37. padding: 2px;
  38. border:1px solid black;
  39. font:menu;
  40. z-index:100;
  41. }
  42. </style>
  43. </head>
  44. <body style="overflow:auto">
  45. <form runat="server" enctype="multipart/form-data" id="Form1">
  46. <input type="hidden" runat="server" enableviewstate="false" id="hiddenAlert" name="hiddenAlert" />
  47. <fieldset>
  48. <legend>
  49. [[ImageGalleryByBrowsing]]
  50. </legend>
  51. <div>
  52. <asp:Table runat="server" Width="100%" id="FoldersAndFiles">
  53. <asp:TableRow>
  54. <asp:TableCell Width="20" HorizontalAlign="right">
  55. <asp:Image runat="server" ImageUrl="../Load.ashx?type=image&file=openfolder.gif" id="Image1"></asp:Image>
  56. </asp:TableCell>
  57. <asp:TableCell HorizontalAlign="left" ColumnSpan="2">
  58. <asp:Label runat="server" id="FolderDescription"></asp:Label>
  59. </asp:TableCell>
  60. </asp:TableRow>
  61. </asp:Table>
  62. </div>
  63. <table width="100%" cellspacing="2" cellpadding="0" border="0" align="center">
  64. <tr>
  65. <td class="normal" style="padding-left:3px">
  66. [[Size]]:
  67. <asp:DropDownList id="cbThumbSize" runat="server" AutoPostBack="True"></asp:DropDownList>
  68. [[Columns]]:
  69. <asp:DropDownList id="cbColumns" runat="server" AutoPostBack="True"></asp:DropDownList>
  70. [[Rows]]:
  71. <asp:DropDownList id="cbRows" runat="server" AutoPostBack="True"></asp:DropDownList>
  72. [[Type]]:
  73. <asp:DropDownList id="cbTypes" runat="server" AutoPostBack="True"></asp:DropDownList>
  74. <asp:DropDownList id="cbSorts" Runat="server" AutoPostBack="True"></asp:DropDownList>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class="normal" style="padding-left:3px">
  79. <CE:UploadSingleFile id="myuploadFile" runat="server"></CE:UploadSingleFile>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>
  84. <CC1:ThumbList id="ThumbList1" runat="server"></CC1:ThumbList>
  85. </td>
  86. </tr>
  87. </table>
  88. </fieldset>
  89. <p style="text-align:center">
  90. <input type="button" value="[[Cancel]]" onclick="cancel();" />
  91. </p>
  92. </form>
  93. </body>
  94. <script type="text/javascript" src="Load.ashx?type=dialogscript&file=DialogFoot.js"></script>
  95. <script type="text/javascript" src="Load.ashx?type=dialogscript&file=Dialog_InsertGallery.js"></script>
  96. </html>