calendar.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="基本" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">标识:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">名称:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">描述:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">选择类型:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="selectType" text{($.selectType=='datetime')?'checked':''} value="datetime"
  20. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', '')}"/>日期时间
  21. <input type="radio" name="selectType" text{($.selectType=='date')?'checked':''} value="date"
  22. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', 'none')}"/>仅日期
  23. <input type="radio" name="selectType" text{($.selectType=='time')?'checked':''} value="time"
  24. onclick="if (this.checked){ $('text{$.pid}isSelectSecondTr').setStyle('display', '')}"/>仅时间
  25. </td>
  26. </tr>
  27. <tr id="text{$.pid}isSelectSecondTr" style="display: text{($.selectType=='date')?'none':''};">
  28. <td class="editTableTitle">是否选择秒: </td>
  29. <td class="editTableValue">
  30. <input type="radio" name="isSelectSecond" value="true" text{($.isSelectSecond)?'checked':''}/>是
  31. <input type="radio" name="isSelectSecond" value="false" text{(!$.isSelectSecond)?'checked':''}/>否
  32. </td>
  33. </tr>
  34. <tr>
  35. <td class="editTableTitle">格式化:</td>
  36. <td class="editTableValue"><input type="text" name="format" value="text{$.format}" class="editTableInput"/></td>
  37. </tr>
  38. <!--<tr>-->
  39. <!--<td class="editTableTitle">选择范围:</td>-->
  40. <!--<td class="editTableValue">-->
  41. <!--<input type="radio" name="range" value="single" text{($.range=='single')?'checked':''}/>单个日期-->
  42. <!--<input type="radio" name="range" value="range" text{($.range=='range')?'checked':''}/>时间范围-->
  43. <!--</td>-->
  44. <!--</tr>-->
  45. </table>
  46. <div class="MWFMaplist" name="styles" title="样式"></div>
  47. <div class="MWFMaplist" name="inputStyles" title="Input样式"></div>
  48. <div class="MWFMaplist" name="properties" title="属性"></div>
  49. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  50. <tr>
  51. <td class="editTableTitle">计算:</td>
  52. <td class="editTableValue">
  53. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>创建
  54. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>保存
  55. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>显示
  56. </td>
  57. </tr>
  58. </table>
  59. <div class="MWFScriptArea" name="defaultValue" title="默认值 (S)"></div>
  60. <div class="MWFValidation" name="validationConfig"></div>
  61. <div class="MWFScriptArea" name="validation" title="校验脚本 (S)"></div>
  62. </div>
  63. <div title="区段" class="MWFTab">
  64. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  65. <tr>
  66. <td class="editTableTitle">启用区段:</td>
  67. <td class="editTableValue">
  68. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>是
  69. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>否
  70. </td>
  71. </tr>
  72. </table>
  73. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  74. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  75. <tr>
  76. <td class="editTableTitle">区段依据:</td>
  77. <td class="editTableValue">
  78. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='department' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>处理人<br/>
  79. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='department')?'checked':''} type="radio" value="department"/>处理部门<br/>
  80. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>活动ID<br/>
  81. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>脚本<br/>
  82. </td>
  83. </tr>
  84. </table>
  85. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  86. <div class="MWFScriptArea" name="sectionByScript" title="区段依据 (S)"></div>
  87. </div>
  88. </div>
  89. </div>
  90. <div title="事件" class="MWFTab">
  91. <div class="MWFEventsArea" name="events"></div>
  92. </div>
  93. <div title="HTML" class="MWFTab">
  94. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  95. </div>
  96. <div title="JSON" class="MWFTab">
  97. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  98. </div>
  99. </div>