eldate.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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=='date')?'checked':''} value="date"
  22. onclick="if (this.checked){
  23. $('text{$.pid}rangeTable').setStyle('display', 'none')
  24. }"/>{{$.lp.date}}
  25. <input type="radio" name="selectType" text{($.selectType=='month')?'checked':''} value="month"
  26. onclick="if (this.checked){
  27. $('text{$.pid}rangeTable').setStyle('display', 'none')
  28. }"/>{{$.lp.monthOnly}}
  29. <input type="radio" name="selectType" text{($.selectType=='year')?'checked':''} value="year"
  30. onclick="if (this.checked){
  31. $('text{$.pid}rangeTable').setStyle('display', 'none')
  32. }"}"/>{{$.lp.yearOnly}}
  33. <input type="radio" name="selectType" text{($.selectType=='week')?'checked':''} value="week"
  34. onclick="if (this.checked){
  35. $('text{$.pid}rangeTable').setStyle('display', 'none')
  36. }"}"/>{{$.lp.weekOnly}}
  37. <br/>
  38. <input type="radio" name="selectType" text{($.selectType=='dates')?'checked':''} value="dates"
  39. onclick="if (this.checked){
  40. $('text{$.pid}rangeTable').setStyle('display', 'none')
  41. }"}"/>{{$.lp.multidate}}
  42. <input type="radio" name="selectType" text{($.selectType=='daterange')?'checked':''} value="daterange"
  43. onclick="if (this.checked){
  44. $('text{$.pid}rangeTable').setStyle('display', '')
  45. }"}"/>{{$.lp.daterange}}
  46. <input type="radio" name="selectType" text{($.selectType=='monthrange')?'checked':''} value="monthrange"
  47. onclick="if (this.checked){
  48. $('text{$.pid}rangeTable').setStyle('display', '')
  49. }"}"/>{{$.lp.monthrange}}
  50. </td>
  51. </tr>
  52. <!-- <tr id="text{$.pid}isRangeTr" style="display: text{($.timeSelectType==='select') ? 'none':''};">-->
  53. <!-- <td class="editTableTitle">{{$.lp.isRange}}:</td>-->
  54. <!-- <td class="editTableValue">-->
  55. <!-- <input type="radio" name="isRange" text{($.isRange)?'checked':''} value="true"-->
  56. <!-- onclick="if (this.checked){-->
  57. <!-- $('text{$.pid}noRangeTable').setStyle('display', 'none');-->
  58. <!-- $('text{$.pid}rangeTable').setStyle('display', '');-->
  59. <!-- }"/>{{$.lp.yes}}-->
  60. <!-- <input type="radio" name="isRange" text{(!$.isRange)?'checked':''} value="false"-->
  61. <!-- onclick="if (this.checked){-->
  62. <!-- $('text{$.pid}noRangeTable').setStyle('display', '');-->
  63. <!-- $('text{$.pid}rangeTable').setStyle('display', 'none');-->
  64. <!-- }"/>{{$.lp.no}}-->
  65. <!-- </td>-->
  66. <!-- </tr>-->
  67. <tr id="text{$.pid}formatTr">
  68. <td class="editTableTitle">{{$.lp.format}}:</td>
  69. <td class="editTableValue"><input type="text" name="format" value="text{$.format}" class="editTableInput"/></td>
  70. </tr>
  71. <tr>
  72. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  73. <td class="editTableValue">
  74. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  75. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  76. </td>
  77. </tr>
  78. <tr>
  79. <td class="editTableTitle">{{$.lp.disabled}}:</td>
  80. <td class="editTableValue">
  81. <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}
  82. <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}
  83. </td>
  84. </tr>
  85. <tr>
  86. <td class="editTableTitle">{{$.lp.editable}}:</td>
  87. <td class="editTableValue">
  88. <input type="radio" name="editable" value="true" text{($.editable)?'checked':''}/>{{$.lp.yes}}
  89. <input type="radio" name="editable" value="false" text{(!$.editable)?'checked':''}/>{{$.lp.no}}
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class="editTableTitle">{{$.lp.clearable}}:</td>
  94. <td class="editTableValue">
  95. <input type="radio" name="clearable" value="true" text{($.clearable)?'checked':''}/>{{$.lp.yes}}
  96. <input type="radio" name="clearable" value="false" text{(!$.clearable)?'checked':''}/>{{$.lp.no}}
  97. </td>
  98. </tr>
  99. <tr>
  100. <td class="editTableTitle">{{$.lp.size}}:</td>
  101. <td class="editTableValue">
  102. <input type="radio" name="size" value="default" text{(!$.size || $.size==='default')?'checked':''}/>default
  103. <input type="radio" name="size" value="large" text{($.size==='large')?'checked':''}/>large
  104. <input type="radio" name="size" value="small" text{($.size==='small')?'checked':''}/>small
  105. <input type="radio" name="size" value="mini" text{($.size==='mini')?'checked':''}/>mini
  106. </td>
  107. </tr>
  108. <tr>
  109. <td class="editTableTitle">{{$.lp.firstDayOfWeek}}:</td>
  110. <td class="editTableValue">
  111. <select name="firstDayOfWeek" class="editTableInput">
  112. <option value="1" text{($.firstDayOfWeek=="1") ? "selected" : ""}>{{$.lp.weeks.arr[0]}}</option>
  113. <option value="2" text{($.firstDayOfWeek=="2") ? "selected" : ""}>{{$.lp.weeks.arr[1]}}</option>
  114. <option value="3" text{($.firstDayOfWeek=="3") ? "selected" : ""}>{{$.lp.weeks.arr[2]}}</option>
  115. <option value="4" text{($.firstDayOfWeek=="4") ? "selected" : ""}>{{$.lp.weeks.arr[3]}}</option>
  116. <option value="5" text{($.firstDayOfWeek=="5") ? "selected" : ""}>{{$.lp.weeks.arr[4]}}</option>
  117. <option value="6" text{($.firstDayOfWeek=="6") ? "selected" : ""}>{{$.lp.weeks.arr[5]}}</option>
  118. <option value="7" text{(!$.firstDayOfWeek || $.firstDayOfWeek=="7") ? "selected" : ""}>{{$.lp.weeks.arr[6]}}</option>
  119. </select>
  120. </td>
  121. </tr>
  122. </table>
  123. <div>
  124. <div>{{$.lp.disabledDateNote}}</div>
  125. <div class="MWFFormulaArea" name="disabledDate" title="{{$.lp.disabledDateScript}}"></div>
  126. </div>
  127. <!-- <table id="text{$.pid}datePickTable">-->
  128. <!-- <tr>-->
  129. <!-- <td colspan="2">-->
  130. <!-- <div>{{$.lp.disabledDateNote}}</div>-->
  131. <!-- <div class="MWFFormulaArea" name="disabledDate" title="{{$.lp.disabledDateScript}}"></div>-->
  132. <!-- </td>-->
  133. <!-- </tr>-->
  134. <!-- <tr>-->
  135. <!-- <td class="editTableTitle">{{$.lp.firstDayOfWeek}}:</td>-->
  136. <!-- <td class="editTableValue">-->
  137. <!-- <select name="firstDayOfWeek" class="editTableInput">-->
  138. <!-- <option value="1" text{($.firstDayOfWeek=="1") ? "selected" : ""}>{{$.lp.weeks.arr[0]}}</option>-->
  139. <!-- <option value="2" text{($.firstDayOfWeek=="2") ? "selected" : ""}>{{$.lp.weeks.arr[1]}}</option>-->
  140. <!-- <option value="3" text{($.firstDayOfWeek=="3") ? "selected" : ""}>{{$.lp.weeks.arr[2]}}</option>-->
  141. <!-- <option value="4" text{($.firstDayOfWeek=="4") ? "selected" : ""}>{{$.lp.weeks.arr[3]}}</option>-->
  142. <!-- <option value="5" text{($.firstDayOfWeek=="5") ? "selected" : ""}>{{$.lp.weeks.arr[4]}}</option>-->
  143. <!-- <option value="6" text{($.firstDayOfWeek=="6") ? "selected" : ""}>{{$.lp.weeks.arr[5]}}</option>-->
  144. <!-- <option value="7" text{(!$.firstDayOfWeek || $.firstDayOfWeek=="7") ? "selected" : ""}>{{$.lp.weeks.arr[6]}}</option>-->
  145. <!-- </select>-->
  146. <!-- </td>-->
  147. <!-- </tr>-->
  148. <!-- </table>-->
  149. <!-- <table id="text{$.pid}noRangeTable">-->
  150. <!-- <tr>-->
  151. <!-- <td class="editTableTitle">{{$.lp.placeholder}}:</td>-->
  152. <!-- <td class="editTableValue"><input type="text" name="placeholder" value="text{$.placeholder}" class="editTableInput"/></td>-->
  153. <!-- </tr>-->
  154. <!-- </table>-->
  155. <table id="text{$.pid}rangeTable" style="display: text{(!['daterange','monthrange'].contains($.selectType)) ? 'none':''};">
  156. <tr>
  157. <td class="editTableTitle">{{$.lp.rangeSeparator}}:</td>
  158. <td class="editTableValue"><input type="text" name="rangeSeparator" value="text{$.rangeSeparator}" class="editTableInput"/></td>
  159. </tr>
  160. <tr>
  161. <td class="editTableTitle">{{$.lp.startPlaceholder}}:</td>
  162. <td class="editTableValue"><input type="text" name="startPlaceholder" value="text{$.startPlaceholder}" class="editTableInput"/></td>
  163. </tr>
  164. <tr>
  165. <td class="editTableTitle">{{$.lp.endPlaceholder}}:</td>
  166. <td class="editTableValue"><input type="text" name="endPlaceholder" value="text{$.endPlaceholder}" class="editTableInput"/></td>
  167. </tr>
  168. </table>
  169. <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>
  170. <div style="display: text{($.prefixIcon)?'block':'none'}" class="MWFElIcon" name="prefixIcon"></div>
  171. <!-- <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>-->
  172. <!-- <div style="display: text{($.suffixIcon)?'block':'none'}" class="MWFElIcon" name="suffixIcon"></div>-->
  173. <div class="MWFMaplist" name="elStyles" title="{{$.lp.style}}"></div>
  174. <div class="MWFMaplist" name="elProperties" title="{{$.lp.attribute}}"></div>
  175. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  176. <tr>
  177. <td class="editTableTitle">{{$.lp.compute}}:</td>
  178. <td class="editTableValue">
  179. <input type="radio" name="compute" value="create" text{(!$.compute || $.compute=='create')?'checked':''}/>{{$.lp.create}}
  180. <input type="radio" name="compute" value="save" text{($.compute=='save')?'checked':''}/>{{$.lp.save}}
  181. <input type="radio" name="compute" value="show" text{($.compute=='show')?'checked':''}/>{{$.lp.show}}
  182. </td>
  183. </tr>
  184. </table>
  185. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  186. <div class="MWFValidation" name="validationConfig"></div>
  187. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  188. </div>
  189. <div title="Vue" class="MWFTab">
  190. <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>
  191. <div style="display: text{($.vueData && $.vueData.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueData" title="Vue Data (S)"></div>
  192. <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>
  193. <div div style="display: text{($.vueMethods && $.vueMethods.code) ? 'block': 'none'}" class="MWFScriptArea" name="vueMethods" title="Vue Methods (S)"></div>
  194. <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>
  195. <div div style="display: text{($.vueCss && $.vueCss.code) ? 'block': 'none'}" class="MWFCssArea" name="vueCss" title="Vue Css (S)"></div>
  196. <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>
  197. <div style="display: text{($.vueSlot) ? 'block' : 'none'}">
  198. <div class="MWFHtmlEditorArea" name="vueSlot" title="Input Slot (HTML)"></div>
  199. </div>
  200. </div>
  201. <div title="{{$.lp.section}}" class="MWFTab">
  202. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  203. <tr>
  204. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  205. <td class="editTableValue">
  206. <input onclick="if (this.checked){
  207. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  208. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  209. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  210. <input onclick="if (this.checked){
  211. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  212. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  213. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  214. </td>
  215. </tr>
  216. </table>
  217. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  218. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  219. <tr>
  220. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  221. <td class="editTableValue">
  222. <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/>
  223. <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/>
  224. <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/>
  225. <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/>
  226. <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/>
  227. </td>
  228. </tr>
  229. </table>
  230. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  231. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  232. </div>
  233. </div>
  234. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  235. </div>
  236. <div title="{{$.lp.event}}" class="MWFTab">
  237. <div class="MWFEventsArea" name="events"></div>
  238. </div>
  239. <div title="HTML" class="MWFTab">
  240. <div class="MWFHTMLArea" style="width:100%; height:400px; border:0px;font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  241. </div>
  242. <div title="JSON" class="MWFTab">
  243. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  244. </div>
  245. </div>