eldatetime.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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.readonly}}:</td>
  37. <td class="editTableValue">
  38. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  39. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="editTableTitle">{{$.lp.disabled}}:</td>
  44. <td class="editTableValue">
  45. <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}
  46. <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}
  47. </td>
  48. </tr>
  49. <tr>
  50. <td class="editTableTitle">{{$.lp.editable}}:</td>
  51. <td class="editTableValue">
  52. <input type="radio" name="editable" value="true" text{($.editable)?'checked':''}/>{{$.lp.yes}}
  53. <input type="radio" name="editable" value="false" text{(!$.editable)?'checked':''}/>{{$.lp.no}}
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class="editTableTitle">{{$.lp.clearable}}:</td>
  58. <td class="editTableValue">
  59. <input type="radio" name="clearable" value="true" text{($.clearable)?'checked':''}/>{{$.lp.yes}}
  60. <input type="radio" name="clearable" value="false" text{(!$.clearable)?'checked':''}/>{{$.lp.no}}
  61. </td>
  62. </tr>
  63. <tr>
  64. <td class="editTableTitle">{{$.lp.size}}:</td>
  65. <td class="editTableValue">
  66. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  67. <input type="radio" name="size" value="large" text{($.size==='large')?'checked':''}/>large
  68. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  69. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  70. </td>
  71. </tr>
  72. <tr>
  73. <td class="editTableTitle">{{$.lp.firstDayOfWeek}}:</td>
  74. <td class="editTableValue">
  75. <select name="firstDayOfWeek" class="editTableInput">
  76. <option value="1" text{($.firstDayOfWeek=="1") ? "selected" : ""}>{{$.lp.weeks.arr[0]}}</option>
  77. <option value="2" text{($.firstDayOfWeek=="2") ? "selected" : ""}>{{$.lp.weeks.arr[1]}}</option>
  78. <option value="3" text{($.firstDayOfWeek=="3") ? "selected" : ""}>{{$.lp.weeks.arr[2]}}</option>
  79. <option value="4" text{($.firstDayOfWeek=="4") ? "selected" : ""}>{{$.lp.weeks.arr[3]}}</option>
  80. <option value="5" text{($.firstDayOfWeek=="5") ? "selected" : ""}>{{$.lp.weeks.arr[4]}}</option>
  81. <option value="6" text{($.firstDayOfWeek=="6") ? "selected" : ""}>{{$.lp.weeks.arr[5]}}</option>
  82. <option value="7" text{(!$.firstDayOfWeek || $.firstDayOfWeek=="7") ? "selected" : ""}>{{$.lp.weeks.arr[6]}}</option>
  83. </select>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td class="editTableTitle">{{$.lp.arrowControl}}:</td>
  88. <td class="editTableValue">
  89. <input type="radio" name="arrowControl" value="true" text{($.arrowControl)?'checked':''}/>{{$.lp.yes}}
  90. <input type="radio" name="arrowControl" value="false" text{(!$.arrowControl)?'checked':''}/>{{$.lp.no}}
  91. </td>
  92. </tr>
  93. </table>
  94. <div>
  95. <div>{{$.lp.disabledDateNote}}</div>
  96. <div class="MWFFormulaArea" name="disabledDate" title="{{$.lp.disabledDateScript}}"></div>
  97. </div>
  98. <!-- <table id="text{$.pid}noRangeTable" style="display: text{(['datetimerange'].contains($.selectType)) ? 'none':''};">-->
  99. <!-- <tr>-->
  100. <!-- <td colspan="2">-->
  101. <!-- <div>{{$.lp.selectableRangeNote}}</div>-->
  102. <!-- <div class="MWFFormulaArea" name="selectableRange" title="{{$.lp.selectableRangeScript}}"></div>-->
  103. <!-- </td>-->
  104. <!-- </tr>-->
  105. <!-- </table>-->
  106. <table id="text{$.pid}rangeTable" style="display: text{(!['datetimerange'].contains($.selectType)) ? 'none':''};">
  107. <tr>
  108. <td class="editTableTitle">{{$.lp.rangeSeparator}}:</td>
  109. <td class="editTableValue"><input type="text" name="rangeSeparator" value="text{$.rangeSeparator}" class="editTableInput"/></td>
  110. </tr>
  111. <tr>
  112. <td class="editTableTitle">{{$.lp.startPlaceholder}}:</td>
  113. <td class="editTableValue"><input type="text" name="startPlaceholder" value="text{$.startPlaceholder}" class="editTableInput"/></td>
  114. </tr>
  115. <tr>
  116. <td class="editTableTitle">{{$.lp.endPlaceholder}}:</td>
  117. <td class="editTableValue"><input type="text" name="endPlaceholder" value="text{$.endPlaceholder}" class="editTableInput"/></td>
  118. </tr>
  119. </table>
  120. <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>
  121. <div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="prefixIcon"></div>
  122. <!-- <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>-->
  123. <!-- <div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="suffixIcon"></div>-->
  124. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  125. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  126. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  127. <tr>
  128. <td class="editTableTitle">{{$.lp.compute}}:</td>
  129. <td class="editTableValue">
  130. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  131. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  132. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  133. </td>
  134. </tr>
  135. </table>
  136. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  137. <div class="MWFValidation" name="validationConfig"></div>
  138. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  139. </div>
  140. <div title="Vue" class="MWFTab">
  141. <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>
  142. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  143. <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>
  144. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  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 CSS</div>
  146. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (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 Slots</div>
  148. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  149. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  150. </div>
  151. </div>
  152. <div title="{{$.lp.section}}" class="MWFTab">
  153. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  154. <tr>
  155. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  156. <td class="editTableValue">
  157. <input onclick="if (this.checked){
  158. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  159. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  160. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  161. <input onclick="if (this.checked){
  162. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  163. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  164. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  165. </td>
  166. </tr>
  167. </table>
  168. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  169. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  170. <tr>
  171. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  172. <td class="editTableValue">
  173. <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/>
  174. <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/>
  175. <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/>
  176. <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/>
  177. <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/>
  178. </td>
  179. </tr>
  180. </table>
  181. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  182. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  183. </div>
  184. </div>
  185. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  186. </div>
  187. <div title="{{$.lp.event}}" class="MWFTab">
  188. <div class="MWFEventsArea" name="events"></div>
  189. </div>
  190. <div title="HTML" class="MWFTab">
  191. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  192. </div>
  193. <div title="JSON" class="MWFTab">
  194. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  195. </div>
  196. </div>