A QCodo powered CMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

193 lines
8.5 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>{#table_dlg.title}</title>
  5. <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
  6. <script type="text/javascript" src="../../utils/mctabs.js"></script>
  7. <script type="text/javascript" src="../../utils/form_utils.js"></script>
  8. <script type="text/javascript" src="../../utils/validate.js"></script>
  9. <script type="text/javascript" src="../../utils/editable_selects.js"></script>
  10. <script type="text/javascript" src="js/table.js"></script>
  11. <link href="css/table.css" rel="stylesheet" type="text/css" />
  12. <base target="_self" />
  13. </head>
  14. <body id="table" style="display: none">
  15. <form onsubmit="insertTable();return false;" action="#">
  16. <div class="tabs">
  17. <ul>
  18. <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
  19. <li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
  20. </ul>
  21. </div>
  22. <div class="panel_wrapper">
  23. <div id="general_panel" class="panel current">
  24. <fieldset>
  25. <legend>{#table_dlg.general_props}</legend>
  26. <table border="0" cellpadding="4" cellspacing="0" width="100%">
  27. <tr>
  28. <td><label id="colslabel" for="cols">{#table_dlg.cols}</label></td>
  29. <td><input id="cols" name="cols" type="text" value="" size="3" maxlength="3" class="required number min1 mceFocus" /></td>
  30. <td><label id="rowslabel" for="rows">{#table_dlg.rows}</label></td>
  31. <td><input id="rows" name="rows" type="text" value="" size="3" maxlength="3" class="required number min1" /></td>
  32. </tr>
  33. <tr>
  34. <td><label id="cellpaddinglabel" for="cellpadding">{#table_dlg.cellpadding}</label></td>
  35. <td><input id="cellpadding" name="cellpadding" type="text" value="" size="3" maxlength="3" class="number" /></td>
  36. <td><label id="cellspacinglabel" for="cellspacing">{#table_dlg.cellspacing}</label></td>
  37. <td><input id="cellspacing" name="cellspacing" type="text" value="" size="3" maxlength="3" class="number" /></td>
  38. </tr>
  39. <tr>
  40. <td><label id="alignlabel" for="align">{#table_dlg.align}</label></td>
  41. <td><select id="align" name="align">
  42. <option value="">{#not_set}</option>
  43. <option value="center">{#table_dlg.align_middle}</option>
  44. <option value="left">{#table_dlg.align_left}</option>
  45. <option value="right">{#table_dlg.align_right}</option>
  46. </select></td>
  47. <td><label id="borderlabel" for="border">{#table_dlg.border}</label></td>
  48. <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="changedBorder();" class="number" /></td>
  49. </tr>
  50. <tr id="width_row">
  51. <td><label id="widthlabel" for="width">{#table_dlg.width}</label></td>
  52. <td><input name="width" type="text" id="width" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td>
  53. <td><label id="heightlabel" for="height">{#table_dlg.height}</label></td>
  54. <td><input name="height" type="text" id="height" value="" size="4" maxlength="4" onchange="changedSize();" class="size" /></td>
  55. </tr>
  56. <tr id="styleSelectRow">
  57. <td><label id="classlabel" for="class">{#class_name}</label></td>
  58. <td colspan="3">
  59. <select id="class" name="class" class="mceEditableSelect">
  60. <option value="" selected>{#not_set}</option>
  61. </select></td>
  62. </tr>
  63. <tr>
  64. <td class="column1"><label for="caption">{#table_dlg.caption}</label></td>
  65. <td><input id="caption" name="caption" type="checkbox" class="checkbox" value="true" /></td>
  66. </tr>
  67. </table>
  68. </fieldset>
  69. </div>
  70. <div id="advanced_panel" class="panel">
  71. <fieldset>
  72. <legend>{#table_dlg.advanced_props}</legend>
  73. <table border="0" cellpadding="0" cellspacing="4">
  74. <tr>
  75. <td class="column1"><label for="id">{#table_dlg.id}</label></td>
  76. <td><input id="id" name="id" type="text" value="" class="advfield" /></td>
  77. </tr>
  78. <tr>
  79. <td class="column1"><label for="summary">{#table_dlg.summary}</label></td>
  80. <td><input id="summary" name="summary" type="text" value="" class="advfield" /></td>
  81. </tr>
  82. <tr>
  83. <td><label for="style">{#table_dlg.style}</label></td>
  84. <td><input type="text" id="style" name="style" value="" class="advfield" onchange="changedStyle();" /></td>
  85. </tr>
  86. <tr>
  87. <td class="column1"><label id="langlabel" for="lang">{#table_dlg.langcode}</label></td>
  88. <td>
  89. <input id="lang" name="lang" type="text" value="" class="advfield" />
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
  94. <td>
  95. <table border="0" cellpadding="0" cellspacing="0">
  96. <tr>
  97. <td><input id="backgroundimage" name="backgroundimage" type="text" value="" class="advfield" onchange="changedBackgroundImage();" /></td>
  98. <td id="backgroundimagebrowsercontainer">&nbsp;</td>
  99. </tr>
  100. </table>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td class="column1"><label for="frame">{#table_dlg.frame}</label></td>
  105. <td>
  106. <select id="frame" name="frame" class="advfield">
  107. <option value="">{#not_set}</option>
  108. <option value="void">{#table_dlg.rules_void}</option>
  109. <option value="above">{#table_dlg.rules_above}</option>
  110. <option value="below">{#table_dlg.rules_below}</option>
  111. <option value="hsides">{#table_dlg.rules_hsides}</option>
  112. <option value="lhs">{#table_dlg.rules_lhs}</option>
  113. <option value="rhs">{#table_dlg.rules_rhs}</option>
  114. <option value="vsides">{#table_dlg.rules_vsides}</option>
  115. <option value="box">{#table_dlg.rules_box}</option>
  116. <option value="border">{#table_dlg.rules_border}</option>
  117. </select>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td class="column1"><label for="rules">{#table_dlg.rules}</label></td>
  122. <td>
  123. <select id="rules" name="rules" class="advfield">
  124. <option value="">{#not_set}</option>
  125. <option value="none">{#table_dlg.frame_none}</option>
  126. <option value="groups">{#table_dlg.frame_groups}</option>
  127. <option value="rows">{#table_dlg.frame_rows}</option>
  128. <option value="cols">{#table_dlg.frame_cols}</option>
  129. <option value="all">{#table_dlg.frame_all}</option>
  130. </select>
  131. </td>
  132. </tr>
  133. <tr>
  134. <td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
  135. <td>
  136. <select id="dir" name="dir" class="advfield">
  137. <option value="">{#not_set}</option>
  138. <option value="ltr">{#table_dlg.ltr}</option>
  139. <option value="rtl">{#table_dlg.rtl}</option>
  140. </select>
  141. </td>
  142. </tr>
  143. <tr>
  144. <td class="column1"><label for="bordercolor">{#table_dlg.bordercolor}</label></td>
  145. <td>
  146. <table border="0" cellpadding="0" cellspacing="0">
  147. <tr>
  148. <td><input id="bordercolor" name="bordercolor" type="text" value="" size="9" onchange="updateColor('bordercolor_pick','bordercolor');changedColor();" /></td>
  149. <td id="bordercolor_pickcontainer">&nbsp;</td>
  150. </tr>
  151. </table>
  152. </td>
  153. </tr>
  154. <tr>
  155. <td class="column1"><label for="bgcolor">{#table_dlg.bgcolor}</label></td>
  156. <td>
  157. <table border="0" cellpadding="0" cellspacing="0">
  158. <tr>
  159. <td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
  160. <td id="bgcolor_pickcontainer">&nbsp;</td>
  161. </tr>
  162. </table>
  163. </td>
  164. </tr>
  165. </table>
  166. </fieldset>
  167. </div>
  168. </div>
  169. <div class="mceActionPanel">
  170. <div style="float: left">
  171. <input type="submit" id="insert" name="insert" value="{#insert}" />
  172. </div>
  173. <div style="float: right">
  174. <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
  175. </div>
  176. </div>
  177. </form>
  178. </body>
  179. </html>