eldatetime.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. </table>
  17. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  18. <tr>
  19. <td class="editTableTitle">{{$.lp.selectType}}:</td>
  20. <td class="editTableValue">
  21. <input type="radio" name="selectType" text{(!$.selectType || $.selectType=='datetime')?'checked':''} value="datetime"
  22. onclick="if (this.checked){
  23. $('text{$.pid}rangeTable').setStyle('display', 'none')
  24. }"/>{{$.lp.dateTime2}}
  25. <input type="radio" name="selectType" text{($.selectType=='datetimerange')?'checked':''} value="datetimerange"
  26. onclick="if (this.checked){
  27. $('text{$.pid}rangeTable').setStyle('display', '')
  28. }"}"/>{{$.lp.datetimerange}}
  29. </td>
  30. </tr>
  31. <tr id="text{$.pid}formatTr">
  32. <td class="editTableTitle">{{$.lp.format}}:</td>
  33. <td class="editTableValue"><input type="text" name="format" value="text{$.format}" class="editTableInput"/></td>
  34. </tr>
  35. <tr>
  36. <td class="editTableTitle">{{$.lp.valueFormat}}:</td>
  37. <td class="editTableValue"><input type="text" name="valueFormat" value="text{$.valueFormat || $.format}" class="editTableInput"/></td>
  38. </tr>
  39. <tr>
  40. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  41. <td class="editTableValue">
  42. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  43. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="editTableTitle">{{$.lp.disabled}}:</td>
  48. <td class="editTableValue">
  49. <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}
  50. <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="editTableTitle">{{$.lp.editable}}:</td>
  55. <td class="editTableValue">
  56. <input type="radio" name="editable" value="true" text{($.editable)?'checked':''}/>{{$.lp.yes}}
  57. <input type="radio" name="editable" value="false" text{(!$.editable)?'checked':''}/>{{$.lp.no}}
  58. </td>
  59. </tr>
  60. <tr>
  61. <td class="editTableTitle">{{$.lp.clearable}}:</td>
  62. <td class="editTableValue">
  63. <input type="radio" name="clearable" value="true" text{($.clearable)?'checked':''}/>{{$.lp.yes}}
  64. <input type="radio" name="clearable" value="false" text{(!$.clearable)?'checked':''}/>{{$.lp.no}}
  65. </td>
  66. </tr>
  67. <tr>
  68. <td class="editTableTitle">{{$.lp.size}}:</td>
  69. <td class="editTableValue">
  70. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  71. <input type="radio" name="size" value="large" text{($.size==='large')?'checked':''}/>large
  72. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  73. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  74. </td>
  75. </tr>
  76. <tr>
  77. <td class="editTableTitle">{{$.lp.firstDayOfWeek}}:</td>
  78. <td class="editTableValue">
  79. <select name="firstDayOfWeek" class="editTableInput">
  80. <option value="1" text{($.firstDayOfWeek=="1") ? "selected" : ""}>{{$.lp.weeks.arr[0]}}</option>
  81. <option value="2" text{($.firstDayOfWeek=="2") ? "selected" : ""}>{{$.lp.weeks.arr[1]}}</option>
  82. <option value="3" text{($.firstDayOfWeek=="3") ? "selected" : ""}>{{$.lp.weeks.arr[2]}}</option>
  83. <option value="4" text{($.firstDayOfWeek=="4") ? "selected" : ""}>{{$.lp.weeks.arr[3]}}</option>
  84. <option value="5" text{($.firstDayOfWeek=="5") ? "selected" : ""}>{{$.lp.weeks.arr[4]}}</option>
  85. <option value="6" text{($.firstDayOfWeek=="6") ? "selected" : ""}>{{$.lp.weeks.arr[5]}}</option>
  86. <option value="7" text{(!$.firstDayOfWeek || $.firstDayOfWeek=="7") ? "selected" : ""}>{{$.lp.weeks.arr[6]}}</option>
  87. </select>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="editTableTitle">{{$.lp.arrowControl}}:</td>
  92. <td class="editTableValue">
  93. <input type="radio" name="arrowControl" value="true" text{($.arrowControl)?'checked':''}/>{{$.lp.yes}}
  94. <input type="radio" name="arrowControl" value="false" text{(!$.arrowControl)?'checked':''}/>{{$.lp.no}}
  95. </td>
  96. </tr>
  97. </table>
  98. <div>
  99. <div>{{$.lp.disabledDateNote}}</div>
  100. <div class="MWFFormulaArea" name="disabledDate" title="{{$.lp.disabledDateScript}}"></div>
  101. </div>
  102. <!-- <table id="text{$.pid}noRangeTable" style="display: text{(['datetimerange'].contains($.selectType)) ? 'none':''};">-->
  103. <!-- <tr>-->
  104. <!-- <td colspan="2">-->
  105. <!-- <div>{{$.lp.selectableRangeNote}}</div>-->
  106. <!-- <div class="MWFFormulaArea" name="selectableRange" title="{{$.lp.selectableRangeScript}}"></div>-->
  107. <!-- </td>-->
  108. <!-- </tr>-->
  109. <!-- </table>-->
  110. <table id="text{$.pid}rangeTable" style="display: text{(!['datetimerange'].contains($.selectType)) ? 'none':''};">
  111. <tr>
  112. <td class="editTableTitle">{{$.lp.rangeSeparator}}:</td>
  113. <td class="editTableValue"><input type="text" name="rangeSeparator" value="text{$.rangeSeparator}" class="editTableInput"/></td>
  114. </tr>
  115. <tr>
  116. <td class="editTableTitle">{{$.lp.startPlaceholder}}:</td>
  117. <td class="editTableValue"><input type="text" name="startPlaceholder" value="text{$.startPlaceholder}" class="editTableInput"/></td>
  118. </tr>
  119. <tr>
  120. <td class="editTableTitle">{{$.lp.endPlaceholder}}:</td>
  121. <td class="editTableValue"><input type="text" name="endPlaceholder" value="text{$.endPlaceholder}" class="editTableInput"/></td>
  122. </tr>
  123. </table>
  124. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.prefixIcon}}</div>
  125. <div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="prefixIcon"></div>
  126. <!-- <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999;font-weight:bold;">{{$.lp.suffixIcon}}</div>-->
  127. <!-- <div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="suffixIcon"></div>-->
  128. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  129. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  130. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  131. <tr>
  132. <td class="editTableTitle">{{$.lp.compute}}:</td>
  133. <td class="editTableValue">
  134. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  135. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  136. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  137. </td>
  138. </tr>
  139. </table>
  140. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  141. <div class="MWFValidation" name="validationConfig"></div>
  142. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  143. </div>
  144. <div title="Vue" class="MWFTab">
  145. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Data</div>
  146. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  147. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Method</div>
  148. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  149. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue CSS</div>
  150. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  151. <div onclick="var node = this.getNext(); node.setStyle('display', ((node.getStyle('display')!='none') ? 'none': 'block'))" style="cursor: pointer; height:24px; padding-left: 5px; line-height: 24px; background-color: #EEE; border-bottom: 1px solid #999;font-weight:bold;">Vue Slots</div>
  152. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  153. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  154. </div>
  155. </div>
  156. <div title="{{$.lp.section}}" class="MWFTab">
  157. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  158. <tr>
  159. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  160. <td class="editTableValue">
  161. <input onclick="if (this.checked){
  162. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  163. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  164. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  165. <input onclick="if (this.checked){
  166. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  167. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  168. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  169. </td>
  170. </tr>
  171. </table>
  172. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  173. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  174. <tr>
  175. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  176. <td class="editTableValue">
  177. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>{{$.lp.handler}}<br/>
  178. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  179. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>{{$.lp.activityId}}<br/>
  180. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>{{$.lp.splitValue}}<br/>
  181. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}<br/>
  182. </td>
  183. </tr>
  184. </table>
  185. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  186. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  187. </div>
  188. </div>
  189. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  190. </div>
  191. <div title="{{$.lp.event}}" class="MWFTab">
  192. <div class="MWFEventsArea" name="events"></div>
  193. </div>
  194. <div title="HTML" class="MWFTab">
  195. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  196. </div>
  197. <div title="JSON" class="MWFTab">
  198. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  199. </div>
  200. </div>