AddInfo.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. if(!defined('InEmpireCMS'))
  3. {
  4. exit();
  5. }
  6. ?>
  7. <?php
  8. $public_diyr['pagetitle']=$word;
  9. $url="<a href='../../'>首页</a>&nbsp;>&nbsp;<a href='../member/cp/'>会员中心</a>&nbsp;>&nbsp;<a href='ListInfo.php?mid=".$mid."'>管理信息</a>&nbsp;>&nbsp;".$word."&nbsp;(".$mr[qmname].")";
  10. require(ECMS_PATH.'e/template/incfile/header.php');
  11. ?>
  12. <script type="text/javascript" src="../data/js/jstime/WdatePicker.js"></script>
  13. <script type="text/javascript" src="../data/js/jscolor/jscolor.js"></script>
  14. <script>
  15. function bs(){
  16. var f=document.add
  17. if(f.title.value.length==0){alert("标题还没写");f.title.focus();return false;}
  18. if(f.classid.value==0){alert("请选择栏目");f.classid.focus();return false;}
  19. }
  20. function foreColor(){
  21. if(!Error()) return;
  22. var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:296px; dialogHeight:280px; status:0");
  23. if (arr != null) document.add.titlecolor.value=arr;
  24. else document.add.titlecolor.focus();
  25. }
  26. function FieldChangeColor(obj){
  27. if(!Error()) return;
  28. var arr = showModalDialog("../data/html/selcolor.html", "", "dialogWidth:296px; dialogHeight:280px; status:0");
  29. if (arr != null) obj.value=arr;
  30. else obj.focus();
  31. }
  32. </script>
  33. <script src="../data/html/postinfo.js"></script>
  34. <?=$loadeditorjs?>
  35. <form name="add" method="POST" enctype="multipart/form-data" action="ecms.php" onsubmit="return EmpireCMSQInfoPostFun(document.add,'<?=$mid?>');">
  36. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  37. <tr class="header">
  38. <td height="25" colspan="2">
  39. <?=$word?>
  40. <input type=hidden value="<?=$enews?>" name=enews> <input type=hidden value="<?=$classid?>" name=classid>
  41. <input name=id type=hidden id="id" value="<?=$id?>"> <input type=hidden value="<?=$filepass?>" name=filepass>
  42. <input name=mid type=hidden id="mid" value="<?=$mid?>"></td>
  43. </tr>
  44. <tr bgcolor="#FFFFFF">
  45. <td>提交者</td>
  46. <td><b>
  47. <?=$musername?>
  48. </b></td>
  49. </tr>
  50. <tr bgcolor="#FFFFFF">
  51. <td width="16%">栏目</td>
  52. <td>
  53. <?=$postclass?> </td>
  54. </tr>
  55. </table>
  56. <?php
  57. @include($modfile);
  58. ?>
  59. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  60. <?=$showkey?>
  61. <tr class="header">
  62. <td width="16%">&nbsp;</td>
  63. <td><input type="submit" name="addnews" value="提交"> <input type="reset" name="Submit2" value="重置"></td>
  64. </tr>
  65. </table>
  66. </form>
  67. <?php
  68. require(ECMS_PATH.'e/template/incfile/footer.php');
  69. ?>