calendar.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. <tr>
  17. <td class="editTableTitle">{{$.lp.showIcon}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="showIcon" value="yes" text{($.showIcon!='no')?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="showIcon" value="no" text{($.showIcon=='no')?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">{{$.lp.readonly}}:</td>
  25. <td class="editTableValue">
  26. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  27. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  28. </td>
  29. </tr>
  30. <tr>
  31. <td class="editTableTitle">{{$.lp.selectType}}:</td>
  32. <td class="editTableValue">
  33. <input type="radio" name="selectType" text{($.selectType=='datetime')?'checked':''} value="datetime"
  34. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', '')}"/>{{$.lp.dateTime}}
  35. <input type="radio" name="selectType" text{($.selectType=='date')?'checked':''} value="date"
  36. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', 'none')}"/>{{$.lp.dateOnly}}
  37. <input type="radio" name="selectType" text{($.selectType=='month')?'checked':''} value="month"
  38. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', 'none')}"/>{{$.lp.monthOnly}}
  39. <input type="radio" name="selectType" text{($.selectType=='year')?'checked':''} value="year"
  40. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', 'none')}"/>{{$.lp.yearOnly}}
  41. <input type="radio" name="selectType" text{($.selectType=='time')?'checked':''} value="time"
  42. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', '')}"/>{{$.lp.timeOnly}}
  43. </td>
  44. </tr>
  45. <tr id="text{$.pid}isSelectSecondTr" style="display: text{($.selectType=='date')?'none':''};">
  46. <td class="editTableTitle">{{$.lp.selectSecond}}:</td>
  47. <td class="editTableValue">
  48. <input type="radio" name="isSelectSecond" value="true" text{($.isSelectSecond)?'checked':''}/>{{$.lp.yes}}
  49. <input type="radio" name="isSelectSecond" value="false" text{(!$.isSelectSecond)?'checked':''}/>{{$.lp.no}}
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="editTableTitle">{{$.lp.timeSelectType}}:</td>
  54. <td class="editTableValue">
  55. <input type="radio" name="timeSelectType" value="slider" text{$.timeSelectType=='slider'||!$.timeSelectType ?'checked':''}/>{{$.lp.timeSelectType_slider}}
  56. <input type="radio" name="timeSelectType" value="select" text{$.timeSelectType=='select' ?'checked':''}/>{{$.lp.timeSelectType_select}}
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="editTableTitle">{{$.lp.format}}:</td>
  61. <td class="editTableValue"><input type="text" name="format" value="text{$.format}" class="editTableInput"/></td>
  62. </tr>
  63. <!--<tr>-->
  64. <!--<td class="editTableTitle">选择范围:</td>-->
  65. <!--<td class="editTableValue">-->
  66. <!--<input type="radio" name="range" value="single" text{($.range=='single')?'checked':''}/>单个日期-->
  67. <!--<input type="radio" name="range" value="range" text{($.range=='range')?'checked':''}/>时间范围-->
  68. <!--</td>-->
  69. <!--</tr>-->
  70. </table>
  71. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  72. <div class="MWFMaplist" name="inputStyles" title="{{$.lp.inputStyle}}"></div>
  73. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  74. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  75. <tr>
  76. <td class="editTableTitle">{{$.lp.compute}}:</td>
  77. <td class="editTableValue">
  78. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  79. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  80. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  81. </td>
  82. </tr>
  83. </table>
  84. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  85. <div class="MWFValidation" name="validationConfig"></div>
  86. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  87. </div>
  88. <div title="{{$.lp.range}}" class="MWFTab">
  89. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  90. <tr>
  91. <td class="editTableValue">
  92. <input type="radio" name="rangeType" text{(!$.rangeType || $.rangeType=='none')?'checked':''} value="none" onclick="if (this.checked){
  93. $('text{$.pid}dateTimeRangeArea').setStyle('display', 'none');
  94. $('text{$.pid}dateAndTimeRangeArea').setStyle('display', 'none');
  95. $('text{$.pid}otherRangeArea').setStyle('display', 'none');
  96. }"/>{{$.lp.none}}
  97. <input type="radio" name="rangeType" text{($.rangeType=='dateTime')?'checked':''} value="dateTime" onclick="if (this.checked){
  98. $('text{$.pid}dateTimeRangeArea').setStyle('display', '');
  99. $('text{$.pid}dateAndTimeRangeArea').setStyle('display', 'none');
  100. $('text{$.pid}otherRangeArea').setStyle('display', 'none');
  101. }"/>{{$.lp.rangeByDatetime}}
  102. <input type="radio" name="rangeType" text{($.rangeType=='dateAndTime')?'checked':''} value="dateAndTime" onclick="if (this.checked){
  103. $('text{$.pid}dateTimeRangeArea').setStyle('display', 'none');
  104. $('text{$.pid}dateAndTimeRangeArea').setStyle('display', '');
  105. $('text{$.pid}otherRangeArea').setStyle('display', 'none');
  106. }"/>{{$.lp.rangeByDateAndTime}}
  107. <input type="radio" name="rangeType" text{($.rangeType=='other')?'checked':''} value="other" onclick="if (this.checked){
  108. $('text{$.pid}dateTimeRangeArea').setStyle('display', 'none');
  109. $('text{$.pid}dateAndTimeRangeArea').setStyle('display', 'none');
  110. $('text{$.pid}otherRangeArea').setStyle('display', '');
  111. }"/>{{$.lp.rangeByOhter}}
  112. </td>
  113. </tr>
  114. </table>
  115. <div id="text{$.pid}dateTimeRangeArea" style="display: text{($.rangeType=='dateTime')?'block':'none'};">
  116. <div style="line-height: 24px;padding:5px 0px;">
  117. //起止日期时间<br/>
  118. return ["2023-01-01 08:00:00", "2023-03-03 18:00:00"];<br/>
  119. //起止日期时间数组<br/>
  120. return [ ["2023-01-01 08:00:00", "2023-03-03 18:00:00"], ... ];
  121. </div>
  122. <div class="MWFScriptArea" name="dateTimeRangeScript" title="{{$.lp.rangeByDatetime}} (S)"></div>
  123. </div>
  124. <div id="text{$.pid}dateAndTimeRangeArea" style="display: text{($.rangeType=='dateAndTime')?'block':'none'};">
  125. <div style="line-height: 24px;padding:5px 0px;">
  126. //起止日期<br/>
  127. return ["2023-01-01", "2023-03-03"];<br/>
  128. //起止日期数组<br/>
  129. return [ ["2023-01-01", "2023-03-03"], ... ];
  130. </div>
  131. <div class="MWFScriptArea" name="dateRangeScript" title="{{$.lp.rangeByDate}} (S)"></div>
  132. <div style="line-height: 24px;padding:5px 0px;">
  133. //起止时间<br/>
  134. return ["08:00:00", "18:00:00"];<br/>
  135. //起止时间数组<br/>
  136. return [ ["08:00:00", "18:00:00"], ... ];
  137. </div>
  138. <div class="MWFScriptArea" name="timeRangeScript" title="{{$.lp.rangeByTime}} (S)"></div>
  139. </div>
  140. <div id="text{$.pid}otherRangeArea" style="display: text{($.rangeType=='other')?'block':'none'};">
  141. <div style="line-height: 24px;padding:5px 0px;">
  142. var date = this.event.date; //获取传入的日期<br/>
  143. return new Date() > date; //早于当前日期,则可选
  144. </div>
  145. <div class="MWFScriptArea" name="enableDate" title="{{$.lp.enableDate}} (S)"></div>
  146. <div style="line-height: 24px;padding:5px 0px;">
  147. var date = this.event.date; //获取传入的日期<br/>
  148. if( new Date() > date ){ //早于当前日期<br/>
  149. &nbsp;&nbsp; return [8, 18]; //可选范围为8到18时<br/>
  150. }else{ <br/>
  151. &nbsp;&nbsp; return [ [8, 12], [13, 18] ]; //否则可选范围为8到12时,13到18时<br/>
  152. }
  153. </div>
  154. <div class="MWFScriptArea" name="enableHours" title="{{$.lp.enableHours}} (S)"></div>
  155. <div style="line-height: 24px;padding:5px 0px;">
  156. var date = this.event.date; //获取传入的日期<br/>
  157. var hour = this.event.hour; //获取传入的小时<br/>
  158. if( hour > 12 ){ //早于12点<br/>
  159. &nbsp;&nbsp; return [0, 30]; //可选范围为0到30分<br/>
  160. }else{ <br/>
  161. &nbsp;&nbsp; return [ [20, 40], [40, 50] ]; //否则可选范围为20到40分,40到50分<br/>
  162. }
  163. </div>
  164. <div class="MWFScriptArea" name="enableMinutes" title="{{$.lp.enableMinutes}} (S)"></div>
  165. <div style="line-height: 24px;padding:5px 0px;">
  166. var date = this.event.date; //获取传入的日期<br/>
  167. var hour = this.event.hour; //获取传入的小时<br/>
  168. var minute = this.event.minute; //获取传入的分<br/>
  169. if( minute > 12 ){ //早于12分<br/>
  170. &nbsp;&nbsp; return [0, 30]; //可选范围为0到30秒<br/>
  171. }else{ <br/>
  172. &nbsp;&nbsp; return [ [20, 40], [40, 50] ]; //否则可选范围为20到40秒,40到50秒<br/>
  173. }
  174. </div>
  175. <div class="MWFScriptArea" name="enableSeconds" title="{{$.lp.enableSeconds}} (S)"></div>
  176. </div>
  177. </div>
  178. <div title="{{$.lp.section}}" class="MWFTab">
  179. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  180. <tr>
  181. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  182. <td class="editTableValue">
  183. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  184. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  185. </td>
  186. </tr>
  187. </table>
  188. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  189. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  190. <tr>
  191. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  192. <td class="editTableValue">
  193. <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/>
  194. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='department')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  195. <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/>
  196. <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/>
  197. <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/>
  198. </td>
  199. </tr>
  200. </table>
  201. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  202. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  203. </div>
  204. </div>
  205. </div>
  206. <div title="{{$.lp.event}}" class="MWFTab">
  207. <div class="MWFEventsArea" name="events"></div>
  208. </div>
  209. <div title="HTML" class="MWFTab">
  210. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  211. </div>
  212. <div title="JSON" class="MWFTab">
  213. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  214. </div>
  215. </div>