OODatetime.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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.showMode}}:</td>
  25. <td class="editTableValue">
  26. <label><input type="radio" name="showMode" value="editable" text{($.showMode!=='readonlyMode' && $.showMode!=='disabled' && $.showMode!=='read')?'checked':''}/>{{$.lp.editable}}</label>
  27. <label><input type="radio" name="showMode" value="readonlyMode" text{($.showMode==='readonlyMode')?'checked':''}/>{{$.lp.readonlyMode}}</label>
  28. <label><input type="radio" name="showMode" value="disabled" text{($.showMode==='disabled')?'checked':''}/>{{$.lp.disabled}}</label>
  29. <label><input type="radio" name="showMode" value="read" text{($.showMode==='read')?'checked':''}/>{{$.lp.read}}</label>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td class="editTableTitle">{{$.lp.required}}:</td>
  34. <td class="editTableValue">
  35. <input type="radio" name="required" value="true" text{($.required==true)?'checked':''}/>{{$.lp.yes}}
  36. <input type="radio" name="required" value="false" text{($.required!=true)?'checked':''}/>{{$.lp.no}}
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="2"><b>{{$.lp.readModeEvents}}:</b>
  41. <input type="radio" name="readModeEvents" value="yes" text{($.readModeEvents=='yes')?'checked':''}/>{{$.lp.yes}}
  42. <input type="radio" name="readModeEvents" value="no" text{($.readModeEvents!=='yes')?'checked':''}/>{{$.lp.no}}
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="editTableTitle">{{$.lp.title}}:</td>
  47. <td class="editTableValue" id="text{$.pid}isTitleArea">
  48. <input type="text" name="label" value="text{$.label}" class="editTableInput"/>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="editTableTitle">{{$.lp.defaultView}}:</td>
  53. <td class="editTableValue">
  54. <div>
  55. <label><input type="radio" name="defaultView" value="date" text{($.defaultView!=='month' && $.defaultView!=='year')?'checked':''}/>{{$.lp.dayView}}</label>
  56. <label><input type="radio" name="defaultView" value="month" text{($.defaultView==='month')?'checked':''}/>{{$.lp.monthView}}</label>
  57. <label><input type="radio" name="defaultView" value="year" text{($.defaultView==='year')?'checked':''}/>{{$.lp.yearView}}</label>
  58. </div>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="editTableTitle">{{$.lp.select}}:</td>
  63. <td class="editTableValue">
  64. <div>
  65. <label><input type="radio" name="dataType" value="dateTime" text{($.dataType==='dateTime')?'checked':''}/>{{$.lp.dateTime}}</label>
  66. <label><input type="radio" name="dataType" value="date-only" text{($.dataType==='date-only')?'checked':''}/>{{$.lp.dateOnly}}</label>
  67. <label><input type="radio" name="dataType" value="month-only" text{($.dataType==='month-only')?'checked':''}/>{{$.lp.monthOnly}}</label><br>
  68. <label><input type="radio" name="dataType" value="year-only" text{($.dataType==='year-only')?'checked':''}/>{{$.lp.yearOnly}}</label>
  69. <label><input type="radio" name="dataType" value="time-only" text{($.dataType==='time-only')?'checked':''}/>{{$.lp.timeOnly}}</label>
  70. <label><input type="radio" name="dataType" value="week-only" text{($.dataType==='week-only')?'checked':''}/>{{$.lp.weekOnly}}</label>
  71. </div>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td class="editTableTitle">{{$.lp.secondEnable}}:</td>
  76. <td class="editTableValue">
  77. <div>
  78. <label><input type="radio" name="secondEnable" value="yes" text{($.secondEnable==='yes')?'checked':''}/>{{$.lp.yes}}</label>
  79. <label><input type="radio" name="secondEnable" value="no" text{($.secondEnable!=='yes')?'checked':''}/>{{$.lp.no}}</label>
  80. </div>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td class="editTableTitle">{{$.lp.weekBegin}}:</td>
  85. <td class="editTableValue">
  86. <div>
  87. <label><input type="radio" name="weekBegin" value="1" text{($.weekBegin!=='0')?'checked':''}/>{{$.lp.weeks.arr[0]}}</label>
  88. <label><input type="radio" name="weekBegin" value="0" text{($.weekBegin==='0')?'checked':''}/>{{$.lp.weeks.arr[$.lp.weeks.arr.length-1]}}</label>
  89. </div>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td class="editTableTitle">{{$.lp.format}}:</td>
  94. <td class="editTableValue"><input type="text" name="format" value="text{$.format}" class="editTableInput"/></td>
  95. </tr>
  96. </table>
  97. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  98. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  99. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  100. <tr>
  101. <td class="editTableTitle">{{$.lp.compute}}:</td>
  102. <td class="editTableValue">
  103. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  104. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  105. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  106. </td>
  107. </tr>
  108. </table>
  109. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  110. <div class="MWFValidation" name="validationConfig"></div>
  111. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  112. </div>
  113. <div title="{{$.lp.section}}" class="MWFTab">
  114. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  115. <tr>
  116. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  117. <td class="editTableValue">
  118. <input onclick="if (this.checked){
  119. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  120. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  121. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  122. <input onclick="if (this.checked){
  123. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  124. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  125. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  126. </td>
  127. </tr>
  128. </table>
  129. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  130. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  131. <tr>
  132. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  133. <td class="editTableValue">
  134. <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/>
  135. <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/>
  136. <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/>
  137. <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/>
  138. <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/>
  139. </td>
  140. </tr>
  141. </table>
  142. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  143. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  144. </div>
  145. </div>
  146. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  147. </div>
  148. <div title="{{$.lp.event}}" class="MWFTab">
  149. <div class="MWFEventsArea" name="events"></div>
  150. </div>
  151. <div title="HTML" class="MWFTab">
  152. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  153. </div>
  154. <div title="JSON" class="MWFTab">
  155. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  156. </div>
  157. </div>