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

OA系统

开发平台:

C#

  1. <%@ Control Inherits="CuteEditor.EditorUtilityCtrl" Language="c#" AutoEventWireup="false" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
  2. <%@ Register TagPrefix="uc1" TagName="Tag_Style_Font" Src="Tag_Style_Font.ascx" %>
  3. <%@ Register TagPrefix="uc1" TagName="Tag_Style_Background" Src="Tag_Style_Background.ascx" %>
  4. <%@ Register TagPrefix="uc1" TagName="Tag_Style_Text" Src="Tag_Style_Text.ascx" %>
  5. <%@ Register TagPrefix="uc1" TagName="Tag_Style_Other" Src="Tag_Style_Other.ascx" %>
  6. <%@ Register TagPrefix="uc1" TagName="Tag_Style_List" Src="Tag_Style_List.ascx" %>
  7. <%@ Register TagPrefix="uc1" TagName="Tag_Style_Border" Src="Tag_Style_Border.ascx" %>
  8. <%@ Register TagPrefix="uc1" TagName="Tag_Style_Layout" Src="Tag_Style_Layout.ascx" %>
  9. <%
  10. object[] p1={"Font","[[Font]]"};
  11. object[] p2={"Text","[[Text]]"};
  12. object[] p4={"Border","[[Border]]"};
  13. object[] p5={"Layout","[[Layout]]"};
  14. object[] p3={"Background","[[Background]]"};
  15. object[] p6={"Other","[[Other]]"};
  16. object[] ps={p1,p2,p3,p4,p5,p6};
  17. string activepanel=Context.Request.QueryString["Style"];
  18. if(activepanel==null||activepanel=="")activepanel="Font";
  19. Control panel=FindControl("Panel"+activepanel);
  20. panel.Visible=true;
  21. string activetext="";
  22. %>
  23. <script type="text/javascript" src="Load.ashx?type=dialogscript&file=Dialog_Tag_Style.js"></script>
  24. <table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
  25. <tr>
  26. <td style="width:94" valign="top" id="navtd">
  27. <%
  28. foreach(object[] px in ps)
  29. {
  30. string pname=px[0].ToString();
  31. string ptext=px[1].ToString();
  32. bool iscurrent=activepanel==pname;
  33. if(iscurrent)activetext=ptext;
  34. %>
  35. <a class='<%=iscurrent?"ActiveStyleNav":"StyleNav"%>' href='<%=CuteEditor.EditorUtility.ReplaceParam(Context.Request.RawUrl,"Style",pname)%>'>
  36. <img alt="" src="Load.ashx?type=image&file=style.<%=pname%>.gif" style="border:0; vertical-align:inherit;"/>
  37. <%=ptext%>
  38. </a>
  39. <%
  40. }
  41. %>
  42. </td>
  43. <td style="white-space:nowrap;width:10" ></td>
  44. <td valign="top">
  45. <uc1:Tag_Style_Font id="PanelFont" runat="server" Visible="False"></uc1:Tag_Style_Font>
  46. <uc1:Tag_Style_Background id="PanelBackground" runat="server" Visible="False"></uc1:Tag_Style_Background>
  47. <uc1:Tag_Style_Text id="PanelText" runat="server" Visible="False"></uc1:Tag_Style_Text>
  48. <uc1:Tag_Style_Border id="PanelBorder" runat="server" Visible="False"></uc1:Tag_Style_Border>
  49. <uc1:Tag_Style_Layout id="PanelLayout" runat="server" Visible="False"></uc1:Tag_Style_Layout>
  50. <uc1:Tag_Style_List id="PanelList" runat="server" Visible="False"></uc1:Tag_Style_List>
  51. <uc1:Tag_Style_Other id="PanelOther" runat="server" Visible="False"></uc1:Tag_Style_Other>
  52. </td>
  53. </tr>
  54. </table>
  55. <script type="text/javascript">
  56. var OxO7d80=["ondblclick","navtd","shiftKey","style"]; Window_GetElement(window,OxO7d80[0x1],true)[OxO7d80[0x0]]=function (){if(event[OxO7d80[0x2]]){ alert(element[OxO7d80[0x3]].cssText) ;} ;}  ;
  57. </script>