widget.html 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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">Class:</td>-->
  18. <!--<td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>-->
  19. <!--</tr>-->
  20. </table>
  21. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  22. <tr>
  23. <td class="editTableValue" colspan="2">
  24. <input type="radio" onclick="if (this.checked) {$('text{$.pid}selectWidget').setStyle('display', 'block'); $('text{$.pid}scriptWidget').setStyle('display', 'none');}" name="widgetType" value="select" text{($.widgetType!='script')?'checked':''}/>{{$.lp.select}}
  25. <input type="radio" onclick="if (this.checked) {$('text{$.pid}selectWidget').setStyle('display', 'none'); $('text{$.pid}scriptWidget').setStyle('display', 'block');}" name="widgetType" value="script" text{($.widgetType=='script')?'checked':''}/>{{$.lp.compute}}<br/>
  26. </td>
  27. </tr>
  28. </table>
  29. <div id="text{$.pid}selectWidget" class="MWFWidgetSelectContainer" style="display: text{($.widgetType!='script')?'block':'none'}">
  30. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  31. <tr>
  32. <td class="editTableTitle">{{$.lp.application}}:</td>
  33. <td class="editTableValue">
  34. <div class="MWFWidgetAppSelect" name="widgetAppSelected"></div>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="editTableTitle">{{$.lp.widget}}:</td>
  39. <td class="editTableValue">
  40. <div class="MWFWidgetSelect" name="widgetSelected"></div>
  41. </td>
  42. </tr>
  43. <!--<tr>-->
  44. <!--<td class="editTableTitle"></td>-->
  45. <!--<td class="editTableValue">-->
  46. <!--<input type="button" value="编辑页面" onclick="">-->
  47. <!--</td>-->
  48. <!--</tr>-->
  49. </table>
  50. </div>
  51. <div id="text{$.pid}scriptWidget" style="display: text{($.widgetType=='script')?'block':'none'}">
  52. <div style="padding: 5px;">{{$.lp.crossApplication}}:<br/>return { <br/>
  53. &nbsp;&nbsp;"application" : "applicationName", //{{$.lp.computeSubmitAnnotation1}} <br/>
  54. &nbsp;&nbsp;"widget" : "widgetName" //{{$.lp.computeWidgetAnnotation2}}<br/>
  55. }; <br/> {{$.lp.thisApplication}}:<br/>return "widgetName"; </div>
  56. <div class="MWFScriptArea" name="widgetScript" title="{{$.lp.widgetScript}} (S)"></div>
  57. </div>
  58. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  59. <tr>
  60. <td class="editTableTitle">{{$.lp.parameter}}:</td>
  61. <td class="editTableValue">
  62. <input class="editTableRadio" onclick="
  63. if (this.checked){
  64. $('text{$.pid}parametersMapList').setStyle('display', 'block');
  65. $('text{$.pid}parametersScript').setStyle('display', 'none')}
  66. " name="parameterType" text{($.parameterType!='script')?'checked':''} type="radio" value="map"/>{{$.lp.textValue}}
  67. <input class="editTableRadio" onclick="
  68. if (this.checked){
  69. $('text{$.pid}parametersScript').setStyle('display', 'block');
  70. $('text{$.pid}parametersMapList').setStyle('display', 'none')}
  71. " name="parameterType" text{($.parameterType=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}
  72. </td>
  73. </tr>
  74. </table>
  75. <!--<div id="text{$.pid}labelEditTextValue" title="值" style="display: text{($.valueType=='text')?'block':'none'}">-->
  76. <!--<textarea name="text" class="editTableTextarea">text{$.text}</textarea>-->
  77. <!--</div>-->
  78. <div id="text{$.pid}parametersMapList" class="MWFMaplist" name="parametersMapList" title="{{$.lp.parameter}}" style="display: text{($.parameterType !=='script')?'block':'none'}" ></div>
  79. <div id="text{$.pid}parametersScript" class="MWFScriptArea" name="parametersScript" title="{{$.lp.parameterScript}}" style="display: text{($.parameterType=='script')?'block':'none'}"></div>
  80. <!--<div title="事件" class="MWFTab">-->
  81. <!--<div class="MWFEventsArea" name="events"></div>-->
  82. <!--</div>-->
  83. </div>
  84. <div title="{{$.lp.event}}" class="MWFTab">
  85. <div class="MWFEventsArea" name="events"></div>
  86. </div>
  87. <div title="HTML" class="MWFTab">
  88. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  89. </div>
  90. <div title="JSON" class="MWFTab">
  91. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  92. </div>
  93. </div>