imageclipper.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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.readonly}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <!--<tr>-->
  24. <!--<td class="editTableTitle">SRC:</td>-->
  25. <!--<td class="editTableValue"><input type="text" name="src" value="text{$.src}" class="editTableInput"/></td>-->
  26. <!--</tr>-->
  27. <tr>
  28. <td class="editTableTitle">{{$.lp.imageCropping}}</td>
  29. <td class="editTableValue">
  30. <input type="radio" onclick="if (this.checked){ $('text{$.pid}imageSizeArea').setStyle('display', 'none'); $('text{$.pid}imageRatioArea').setStyle('display', 'none') }" name="clipperType" value="unrestricted" text{($.clipperType.indexOf('unrestricted')!=-1)?'checked':''}/>{{$.lp.unlimited}}
  31. <input type="radio" onclick="if (this.checked){ $('text{$.pid}imageSizeArea').setStyle('display', ''); $('text{$.pid}imageRatioArea').setStyle('display', 'none') }" name="clipperType" value="size" text{($.clipperType.indexOf('size')!=-1)?'checked':''}/>{{$.lp.fixedSize}}
  32. <input type="radio" onclick="if (this.checked){ $('text{$.pid}imageSizeArea').setStyle('display', 'none'); $('text{$.pid}imageRatioArea').setStyle('display', '') }" name="clipperType" value="ratio" text{($.clipperType.indexOf('ratio')!=-1)?'checked':''}/>{{$.lp.fixedRatio}}
  33. </td>
  34. </tr>
  35. </table>
  36. <div id="text{$.pid}imageSizeArea" style="display: text{($.clipperType!='size')?'none':'block'};">
  37. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  38. <tr>
  39. <td class="editTableTitle">{{$.lp.width}}(px)</td>
  40. <td class="editTableValue">
  41. <input type="text" name="imageWidth" value="text{$.imageWidth}" class="editTableInput"/>
  42. </td>
  43. <td class="editTableTitle">{{$.lp.height}}(px)</td>
  44. <td class="editTableValue">
  45. <input type="text" name="imageHeight" value="text{$.imageHeight}" class="editTableInput"/>
  46. </td>
  47. </tr>
  48. </table>
  49. </div>
  50. <div id="text{$.pid}imageRatioArea" style="display: text{($.clipperType!='ratio')?'none':'block'};">
  51. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  52. <tr>
  53. <td class="editTableTitle">{{$.lp.aspectRatio}}</td>
  54. <td class="editTableValue">
  55. <input type="text" name="imageRatio" value="text{$.imageRatio}" class="editTableInput"/>
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  61. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  62. <div class="MWFMaplist" name="buttonStyles" title="{{$.lp.buttonStyle}}"></div>
  63. <div class="MWFMaplist" name="imageStyles" title="{{$.lp.imageStyle}}"></div>
  64. <div class="MWFValidation" name="validationConfig"></div>
  65. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  66. </div>
  67. <div title="{{$.lp.event}}" class="MWFTab">
  68. <div class="MWFEventsArea" name="events"></div>
  69. </div>
  70. <div title="HTML" class="MWFTab">
  71. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  72. </div>
  73. <div title="JSON" class="MWFTab">
  74. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  75. </div>
  76. </div>