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

OA系统

开发平台:

C#

  1. <%@ Control Inherits="CuteEditor.EditorUtilityCtrl" Language="c#" AutoEventWireup="false" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
  2. <br />
  3. <table width="380" cellpadding="1" cellspacing="0" onmouseover="CuteEditor_ColorPicker_ButtonOver(this);"
  4. onclick="selectTemplates()" id="richDropDown" style="border:1px solid #ffffff;height:30;">
  5. <tr>
  6. <td style="padding-left:20px; background-color:white">
  7. <img src="Load.ashx?type=image&file=h-f-3Columns-Body.gif" alt="[[Table layout]]" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  8. [[Table layout]]
  9. </td>
  10. <td style='width:8px;padding:0px 1px 1px 1px;color:black;text-align:center;font-family:Webdings;font-size:8px;'>6</td>
  11. </tr>
  12. </table>
  13. <div id="list_Templates" style="display:none;">
  14. <div style="position:absolute; top:0; left:0; overflow:scroll; overflow-x:hidden;width:380; height:220; border-bottom:0px solid black;">
  15. <div onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#99ccff, EndColorStr=#FFFFFF)';"
  16. onmouseout="this.style.filter='';" style="font:normal 11px Tahoma; height:25px; background:#ffffff; border:1px solid black; padding:3px; padding-left:20px;cursor:hand;">
  17. <span onclick="parent.selectTemplate(1)"><img src="Load.ashx?type=image&file=One-Column-Table.gif" alt="[[OneColumnTable]]" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  18. [[OneColumnTable]]</span>
  19. </div>
  20. <div onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=yellowgreen, EndColorStr=#FFFFFF)';"
  21. onmouseout="this.style.filter='';" style="font:normal 11px Tahoma; height:25px; background:#ffffff; border:1px solid black; padding:3px; padding-left:20px; cursor:hand; border-top:0px solid black">
  22. <span onclick="parent.selectTemplate(2)"><img src="Load.ashx?type=image&file=Two-Column-Table.gif" alt="[[2ColumnTable]]" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  23. [[2ColumnTable]]</span>
  24. </div>
  25. <div onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=gold, EndColorStr=#FFFFFF)';"
  26. onmouseout="this.style.filter='';" style="font:normal 11px Tahoma; height:25px; background:#ffffff; border:1px solid black; padding:3px; padding-left:20px; cursor:hand; border-top:0px solid black">
  27. <span onclick="parent.selectTemplate(3)"><img src="Load.ashx?type=image&file=Three-Column-Table.gif" alt="[[3ColumnTable]]"
  28. />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[3ColumnTable]]</span>
  29. </div>
  30. <div onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=violet, EndColorStr=#FFFFFF)';"
  31. onmouseout="this.style.filter='';" style="font:normal 11px Tahoma; height:25px; background:#ffffff; border:1px solid black; padding:3px; padding-left:20px; cursor:hand; border-top:0px solid black">
  32. <span onclick="parent.selectTemplate(4)"><img src="Load.ashx?type=image&file=h-R-t-Body.gif" alt="[[Header-Right-TopLeft-Body]]"
  33. />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[Header-Right-TopLeft-Body]]</span>
  34. </div>
  35. <div onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#99ccff, EndColorStr=#FFFFFF)';"
  36. onmouseout="this.style.filter='';" style="font:normal 11px Tahoma; height:25px; background:#ffffff; border:1px solid black; padding:3px; padding-left:20px; cursor:hand; border-top:0px solid black">
  37. <span onclick="parent.selectTemplate(5)"><img src="Load.ashx?type=image&file=h-l-tr-Body.gif" alt="[[Header-Left-TopRight-Body]]"
  38. />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[Header-Left-TopRight-Body]]</span>
  39. </div>
  40. <div onmouseover="this.style.filter='progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#99ccff, EndColorStr=#FFFFFF)';"
  41. onmouseout="this.style.filter='';" style="font:normal 11px Tahoma; height:25px; background:#ffffff; border:1px solid black; padding:3px; padding-left:20px;  cursor:hand; border-top:0px solid black;">
  42. <span onclick="parent.selectTemplate(6)"><img src="Load.ashx?type=image&file=h-f-3Columns-Body.gif" alt="[[Header-Footer-3-Columns]]"
  43. />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[Header-Footer-3-Columns]]</span>
  44. </div>
  45. </div>
  46. </div>
  47. <style type="text/css">
  48. .addsub
  49. {
  50. width:21px;
  51. font-family:fixedsys;
  52. }
  53. </style>
  54. <div style="padding:8px 4px 4px 4px;">
  55. <table border="1" cellspacing="0" cellpadding="2" style="border-collapse:collapse" class="normal">
  56. <caption>
  57. [[Table Designer]]</caption>
  58. <tr>
  59. <td align="center">
  60. [[EditCell]]
  61. </td>
  62. <td align="center">
  63. [[Columns]]: <button id="subcolumns" class="addsub">-</button> <button id="addcolumns" class="addsub">
  64. +</button> ColSpan : <button id="subcolspan" class="addsub">-</button> <button id="addcolspan" class="addsub">
  65. +</button>
  66. </td>
  67. <td></td>
  68. </tr>
  69. <tr>
  70. <td valign="top">
  71. <table class="normal">
  72. <tr>
  73. <td colspan="2" align="center">
  74. <input type="button" id="btn_row_dialog" value="[[EditRow]]" /></td>
  75. </tr>
  76. <tr>
  77. <td colspan="2" align="center">
  78. <input type="button" id="btn_cell_dialog" value="[[EditCell]]" /></td>
  79. </tr>
  80. <tr>
  81. <td>[[Width]]</td>
  82. <td><input type="text" id="inp_cell_width" style="width:60" /></td>
  83. </tr>
  84. <tr>
  85. <td>[[Height]]:</td>
  86. <td><input type="text" id="inp_cell_height" style="width:60" /></td>
  87. </tr>
  88. <!-- //TODO: add more cell useful properties here -->
  89. <tr>
  90. <td colspan="2" align="center">
  91. <input type="button" id="btn_cell_editcell" value="[[EditHtml]]" /></td>
  92. </tr>
  93. </table>
  94. <br />
  95. </td>
  96. <td>
  97. <div style="border:1px solid gray;padding:1px;OVERFLOW: auto; HEIGHT: 215px; HEIGHT: 215px; ">
  98. <table id="tabledesign" border="1" cellspacing="" style='border-color:#FFA500;background-color:white;width:210px;height:210px;border-collapse:collapse' class="normal">
  99. </table>
  100. </div>
  101. </td>
  102. <td align="center">
  103. R<br />
  104. o<br />
  105. w<br />
  106. s<br />
  107. <button id="subrows" class="addsub">-</button><br />
  108. <button id="addrows" class="addsub">+</button>
  109. <br />
  110. S<br />
  111. p<br />
  112. a<br />
  113. n<br />
  114. <button id="subrowspan" class="addsub">-</button><br />
  115. <button id="addrowspan" class="addsub">+</button>
  116. </td>
  117. </tr>
  118. </table>
  119. </div>
  120. <script type="text/javascript" src="Load.ashx?type=dialogscript&file=Dialog_Tag_InsertTable.js"></script>