RoadFlow2.1 临时演示

Default.aspx 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebForm.Platform.WorkFlowFormDesigner.Default" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title></title>
  7. </head>
  8. <body>
  9. <script src="ueditor/ueditor.config.js"></script>
  10. <script src="ueditor/ueditor.all.min.js"></script>
  11. <script src="ueditor/lang/zh-cn/zh-cn.js"></script>
  12. <script src="ueditor/plugins/plugins.js"></script>
  13. <style type="text/css">
  14. .toolbar a span{padding:0 8px; display:inline-block; cursor:default;}
  15. </style>
  16. <div class="toolbar" style="margin-top:0; border-top:none 0;">
  17. <a href="#" onclick="execCommend('formadd'); return false;" title="新建">
  18. <span style="background:url(ueditor/plugins/images/new.png) no-repeat center;">&nbsp;</span>
  19. </a>
  20. <a href="#" onclick="execCommend('formopen'); return false;" title="打开">
  21. <span style="background:url(ueditor/plugins/images/open.png) no-repeat center;">&nbsp;</span>
  22. </a>
  23. <a href="#" onclick="execCommend('formattribute'); return false;" title="属性">
  24. <span style="background:url(ueditor/plugins/images/setting.gif) no-repeat center;">&nbsp;</span>
  25. </a>
  26. <span class="toolbarsplit">&nbsp;</span>
  27. <a href="#" onclick="execCommend('formtext'); return false;" title="文本框">
  28. <span style="background:url(ueditor/plugins/images/input.gif) no-repeat center;">&nbsp;</span>
  29. </a>
  30. <a href="#" onclick="execCommend('formtextarea'); return false;" title="文本域">
  31. <span style="background:url(ueditor/plugins/images/textarea.gif) no-repeat center;">&nbsp;</span>
  32. </a>
  33. <a href="#" onclick="execCommend('formhtml'); return false;" title="Html编辑器">
  34. <span style="background:url(ueditor/plugins/images/html.gif) no-repeat center;">&nbsp;</span>
  35. </a>
  36. <a href="#" onclick="execCommend('formradio'); return false;" title="单选按钮组">
  37. <span style="background:url(ueditor/plugins/images/radio.gif) no-repeat center;">&nbsp;</span>
  38. </a>
  39. <a href="#" onclick="execCommend('formcheckbox'); return false;" title="复选按钮组">
  40. <span style="background:url(ueditor/plugins/images/checkbox.gif) no-repeat center;">&nbsp;</span>
  41. </a>
  42. <a href="#" onclick="execCommend('formhidden'); return false;" title="隐藏域">
  43. <span style="background:url(ueditor/plugins/images/hidden.gif) no-repeat center;">&nbsp;</span>
  44. </a>
  45. <a href="#" onclick="execCommend('formselect'); return false;" title="下拉列表框">
  46. <span style="background:url(ueditor/plugins/images/select.gif) no-repeat center;">&nbsp;</span>
  47. </a>
  48. <a href="#" onclick="execCommend('formlabel'); return false;" title="Label标签">
  49. <span style="background:url(ueditor/plugins/images/label.gif) no-repeat center;">&nbsp;</span>
  50. </a>
  51. <a href="#" onclick="execCommend('formbutton'); return false;" title="按钮">
  52. <span style="background:url(ueditor/plugins/images/button.gif) no-repeat center;">&nbsp;</span>
  53. </a>
  54. <a href="#" onclick="execCommend('formcombox'); return false;" title="下拉组合框">
  55. <span style="background:url(ueditor/plugins/images/combox.png) no-repeat center;">&nbsp;</span>
  56. </a>
  57. <a href="#" onclick="execCommend('formsumtext'); return false;" title="计算字段">
  58. <span style="background:url(ueditor/plugins/images/sum.png) no-repeat center;">&nbsp;</span>
  59. </a>
  60. <a href="#" onclick="execCommend('formorg'); return false;" title="组织机构选择框">
  61. <span style="background:url(ueditor/plugins/images/org.gif) no-repeat center;">&nbsp;</span>
  62. </a>
  63. <a href="#" onclick="execCommend('formdictionary'); return false;" title="左右选择框">
  64. <span style="background:url(ueditor/plugins/images/selectlr.png) no-repeat center;">&nbsp;</span>
  65. </a>
  66. <a href="#" onclick="execCommend('formdatetime'); return false;" title="日期时间选择">
  67. <span style="background:url(ueditor/plugins/images/datetime.gif) no-repeat center;">&nbsp;</span>
  68. </a>
  69. <a href="#" onclick="execCommend('formfiles'); return false;" title="附件上传">
  70. <span style="background:url(ueditor/plugins/images/attachment.gif) no-repeat center;">&nbsp;</span>
  71. </a>
  72. <a href="#" onclick="execCommend('formsubtable'); return false;" title="子表">
  73. <span style="background:url(ueditor/plugins/images/subtable.gif) no-repeat center;">&nbsp;</span>
  74. </a>
  75. <a href="#" onclick="execCommend('formgrid'); return false;" title="数据表格">
  76. <span style="background:url(ueditor/plugins/images/database_info.gif) no-repeat center;">&nbsp;</span>
  77. </a>
  78. <span class="toolbarsplit">&nbsp;</span>
  79. <a href="#" onclick="execCommend('formsave'); return false;" title="保存当前表单">
  80. <span style="background:url(ueditor/plugins/images/save.gif) no-repeat center;">&nbsp;</span>
  81. </a>
  82. <a href="#" onclick="execCommend('formsaveas'); return false;" title="表单另存为">
  83. <span style="background:url(ueditor/plugins/images/saveas.gif) no-repeat center;">&nbsp;</span>
  84. </a>
  85. <a href="#" onclick="execCommend('formcompile'); return false;" title="发布表单">
  86. <span style="background:url(ueditor/plugins/images/page_code.png) no-repeat center;">&nbsp;</span>
  87. </a>
  88. </div>
  89. <div id="editordiv" style="overflow:auto;">
  90. <script id="editor" name="editor" type="text/plain" style="width:98%; height:300px;"></script>
  91. </div>
  92. <script type="text/javascript">
  93. var formattributeJSON = { hasEditor: "0" };
  94. var formsubtabs = [];
  95. var formEvents = [];
  96. var myUE = null;
  97. $(function ()
  98. {
  99. resize();
  100. //$(window).bind('resize', function () { resize(); });
  101. });
  102. function resize()
  103. {
  104. $("#editor").height($(window).height() - 136);
  105. $("#editor").width($(window).width() - 2);
  106. myUE = UE.getEditor('editor', { wordCount: false, maximumWords: 1000000000, autoHeightEnabled: false });
  107. }
  108. function execCommend(method)
  109. {
  110. myUE.execCommand(method);
  111. }
  112. </script>
  113. </body>
  114. </html>