flow_initiate1.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "cn.js.fan.web.*"%>
  6. <%@ page import = "com.redmoon.oa.flow.*"%>
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  8. <html>
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title>发起流程</title>
  12. <link href="common.css" rel="stylesheet" type="text/css">
  13. <%@ include file="inc/nocache.jsp"%>
  14. <script language="JavaScript" type="text/JavaScript">
  15. <!--
  16. function MM_preloadImages() { //v3.0
  17.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  18.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  19.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  20. }
  21. function form1_onsubmit() {
  22. if (form1.typeCode.value=="not") {
  23. alert("请选择正确的流程类型!");
  24. return false;
  25. }
  26. }
  27. function trim(strValue) 
  28. {
  29. var r = strValue.replace(/^s*|s*$/g,"");
  30. alert(strValue + "rn" + r);
  31. return r;
  32. }
  33. function trimOptionText(strValue) 
  34. {
  35. // 注意option中有全角的空格,所以不直接用trim
  36. var r = strValue.replace(/^ *|s*|s*$/g,"");
  37. return r;
  38. }
  39. //-->
  40. </script>
  41. <style type="text/css">
  42. <!--
  43. .style2 {font-size: 14px}
  44. .STYLE3 {color: #FFFFFF}
  45. -->
  46. </style>
  47. </head>
  48. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  49. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  50. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  51. <%
  52. String priv="flow.init";
  53. if (!privilege.isUserPrivValid(request, priv))
  54. {
  55. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  56. return;
  57. }
  58. String op = ParamUtil.get(request, "op");
  59. %>
  60. <table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableframe">
  61.   <tr> 
  62.     <td height="23" valign="bottom" background="images/top-right.gif" class="right-title">&nbsp;&nbsp;创建流程</td>
  63.   </tr>
  64.   <tr> 
  65.     <td valign="top">
  66. <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  67. <form action="flow_initiate1_do.jsp" method=post name="form1" class="STYLE3" id=form1 onSubmit="return form1_onsubmit()">
  68.       <tr>
  69.         <td height="100" align="center" class="p14"><table width="88%" height="81"  border="0" cellpadding="0" cellspacing="0" class="p14">
  70.             <tr>
  71.               <td class="p14">流程类型
  72.                 :
  73.                 <select name="typeCode" class="p14" onChange="if(this.options[this.selectedIndex].value=='not'){alert(this.options[this.selectedIndex].text+' 不能被选择!'); return false;} else form1.title.value=trimOptionText(this.options[this.selectedIndex].text)+': '+form1.title.value; ">
  74.                   <%
  75. Leaf lf = new Leaf();
  76. lf = lf.getLeaf("root");
  77. DirectoryView dv = new DirectoryView(lf);
  78. dv.ShowDirectoryAsOptions(request, out, lf, 1);
  79.   %> 
  80.                 </select>
  81. <%if (!op.equals("")) {%>
  82. <script>
  83. form1.typeCode.value = "<%=op%>";
  84. </script>
  85. <%}%> </td>
  86.             </tr>
  87.             <tr>
  88.               <td class="p14">流程名称 :
  89.   <%
  90.   java.util.Date d = new java.util.Date();
  91.   %>
  92.                 <input name="title" type="text" size="50" value="[<%=DateUtil.format(d, "yyyy-MM-dd HH:mm:ss")%>]"></td>
  93.             </tr>
  94.           </table>
  95.           <br>          </td>
  96.       </tr>
  97.       <tr>
  98.         <td height="30" align="center"><input type="submit" name="next" value="下一步">          </td>
  99.       </tr></form>
  100.     </table></td>
  101.   </tr>
  102. </table>
  103. <br>
  104. <br>
  105. </body>
  106. </html>