OOInput.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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=='yes')?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="showIcon" value="no" text{($.showIcon!=='yes')?'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.readonly}}:</td>-->
  47. <!-- <td class="editTableValue">-->
  48. <!-- <input type="radio" name="readonly" value="true" text{($.readonly)?'checked':''}/>{{$.lp.yes}}-->
  49. <!-- <input type="radio" name="readonly" value="false" text{(!$.readonly)?'checked':''}/>{{$.lp.no}}-->
  50. <!-- </td>-->
  51. <!-- </tr>-->
  52. <!-- <tr>-->
  53. <!-- <td class="editTableTitle">{{$.lp.el_disabled}}:</td>-->
  54. <!-- <td class="editTableValue">-->
  55. <!-- <input type="radio" name="disabled" value="true" text{($.disabled)?'checked':''}/>{{$.lp.yes}}-->
  56. <!-- <input type="radio" name="disabled" value="false" text{(!$.disabled)?'checked':''}/>{{$.lp.no}}-->
  57. <!-- </td>-->
  58. <!-- </tr>-->
  59. <tr>
  60. <td class="editTableTitle">{{$.lp.title}}:</td>
  61. <td class="editTableValue" id="text{$.pid}isTitleArea">
  62. <input type="text" name="label" value="text{$.label}" class="editTableInput"/>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="editTableTitle">{{$.lp.type}}:</td>
  67. <td class="editTableValue">
  68. <div>
  69. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="text" text{($.dataType==='text')?'checked':''}/>text</label>
  70. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="number" text{($.dataType==='number')?'checked':''}/>number</label>
  71. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="date" text{($.dataType==='date')?'checked':''}/>date</label>
  72. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="datetime-local" text{($.dataType==='datetime-local')?'checked':''}/>datetime-local</label>
  73. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="time" text{($.dataType==='time')?'checked':''}/>time</label>
  74. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="week" text{($.dataType==='week')?'checked':''}/>week</label>
  75. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="month" text{($.dataType==='month')?'checked':''}/>month</label>
  76. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="email" text{($.dataType==='email')?'checked':''}/>email</label>
  77. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="password" text{($.dataType==='password')?'checked':''}/>password</label>
  78. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="tel" text{($.dataType==='tel')?'checked':''}/>tel</label>
  79. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="url" text{($.dataType==='url')?'checked':''}/>url</label>
  80. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="range" text{($.dataType==='date')?'checked':''}/>range</label>
  81. <label style="width: 110px; display: inline-block"><input type="radio" name="dataType" value="search" text{($.dataType==='search')?'checked':''}/>search</label>
  82. </div>
  83. </td>
  84. </tr>
  85. </table>
  86. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  87. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  88. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  89. <tr>
  90. <td class="editTableTitle">{{$.lp.compute}}:</td>
  91. <td class="editTableValue">
  92. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  93. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  94. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  95. </td>
  96. </tr>
  97. </table>
  98. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  99. <div class="MWFValidation" name="validationConfig"></div>
  100. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  101. </div>
  102. <div title="{{$.lp.section}}" class="MWFTab">
  103. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  104. <tr>
  105. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  106. <td class="editTableValue">
  107. <input onclick="if (this.checked){
  108. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  109. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  110. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  111. <input onclick="if (this.checked){
  112. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  113. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  114. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  115. </td>
  116. </tr>
  117. </table>
  118. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  119. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  120. <tr>
  121. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  122. <td class="editTableValue">
  123. <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/>
  124. <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/>
  125. <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/>
  126. <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/>
  127. <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/>
  128. </td>
  129. </tr>
  130. </table>
  131. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  132. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  133. </div>
  134. </div>
  135. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  136. </div>
  137. <div title="{{$.lp.event}}" class="MWFTab">
  138. <div class="MWFEventsArea" name="events"></div>
  139. </div>
  140. <div title="HTML" class="MWFTab">
  141. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  142. </div>
  143. <div title="JSON" class="MWFTab">
  144. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  145. </div>
  146. </div>