AddWf.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. //验证用户
  10. $lur=is_login();
  11. $logininid=$lur['userid'];
  12. $loginin=$lur['username'];
  13. $loginrnd=$lur['rnd'];
  14. $loginlevel=$lur['groupid'];
  15. $loginadminstyleid=$lur['adminstyleid'];
  16. //ehash
  17. $ecms_hashur=hReturnEcmsHashStrAll();
  18. //验证权限
  19. CheckLevel($logininid,$loginin,$classid,"workflow");
  20. $enews=ehtmlspecialchars($_GET['enews']);
  21. $postword='增加工作流';
  22. $r[myorder]=0;
  23. $url="<a href=ListWf.php".$ecms_hashur['whehref'].">管理工作流</a> &gt; 增加工作流";
  24. //修改
  25. if($enews=="EditWorkflow")
  26. {
  27. $postword='修改工作流';
  28. $wfid=(int)$_GET['wfid'];
  29. $r=$empire->fetch1("select wfid,wfname,wftext,myorder,canedit from {$dbtbpre}enewsworkflow where wfid='$wfid'");
  30. $url="<a href=ListWf.php".$ecms_hashur['whehref'].">管理工作流</a> -&gt; 修改工作流:<b>".$r[wfname]."</b>";
  31. }
  32. db_close();
  33. $empire=null;
  34. ?>
  35. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  36. <html>
  37. <head>
  38. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  39. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  40. <title>工作流</title>
  41. </head>
  42. <body>
  43. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  44. <tr>
  45. <td>位置:<?=$url?></td>
  46. </tr>
  47. </table>
  48. <form name="form1" method="post" action="ListWf.php">
  49. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  50. <?=$ecms_hashur['form']?>
  51. <tr class="header">
  52. <td height="25" colspan="2">
  53. <?=$postword?>
  54. <input name="enews" type="hidden" id="enews" value="<?=$enews?>"> <input name="wfid" type="hidden" id="wfid" value="<?=$wfid?>"> </td>
  55. </tr>
  56. <tr>
  57. <td width="20%" height="25" bgcolor="#FFFFFF">工作流名称</td>
  58. <td width="80%" height="25" bgcolor="#FFFFFF"> <input name="wfname" type="text" id="wfname" value="<?=$r[wfname]?>" size="42"> </td>
  59. </tr>
  60. <tr>
  61. <td height="25" bgcolor="#FFFFFF">工作流描述</td>
  62. <td height="25" bgcolor="#FFFFFF"> <textarea name="wftext" cols="60" rows="5" id="wftext"><?=ehtmlspecialchars($r[wftext])?></textarea></td>
  63. </tr>
  64. <tr>
  65. <td height="25" bgcolor="#FFFFFF">流转中的信息可修改</td>
  66. <td height="25" bgcolor="#FFFFFF"><input type="radio" name="canedit" value="1"<?=$r['canedit']==1?' checked':''?>>可以修改
  67. <input type="radio" name="canedit" value="0"<?=$r['canedit']==0?' checked':''?>>不能修改</td>
  68. </tr>
  69. <tr>
  70. <td height="25" bgcolor="#FFFFFF">排序</td>
  71. <td height="25" bgcolor="#FFFFFF"><font color="#666666">
  72. <input name="myorder" type="text" id="myorder" value="<?=$r[myorder]?>" size="42">
  73. (值越小显示越前面)</font></td>
  74. </tr>
  75. <tr>
  76. <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
  77. <td height="25" bgcolor="#FFFFFF"> <input type="submit" name="Submit" value="提交">
  78. <input type="reset" name="Submit2" value="重置"></td>
  79. </tr>
  80. </table>
  81. </form>
  82. </body>
  83. </html>