announce_edit.tpl.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php include mymps_tpl('inc_head_jq');?>
  2. <script type="text/javascript" src="../include/colorpicker/jquery.colorpicker.js"></script>
  3. <script language='javascript'>
  4. function CheckSubmit()
  5. {
  6. if(document.form1.title.value=="")
  7. {
  8. document.form1.title.focus();
  9. alert("请填写公告标题!");
  10. return false;
  11. }
  12. if(document.form1.author.value=="")
  13. {
  14. document.form1.author.focus();
  15. alert("请填写作者!");
  16. return false;
  17. }
  18. return true;
  19. }
  20. </script>
  21. <form method=post name="form1" action="announce.php?part=edit" onSubmit="return CheckSubmit();">
  22. <input name="id" value="<?=$edit[id]?>" type="hidden" />
  23. <input name="action" value="dopost" type="hidden" />
  24. <div id="<?=MPS_SOFTNAME?>">
  25. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  26. <tr class="firstr">
  27. <td colspan="2"><b>编辑网站公告</b></td>
  28. </tr>
  29. <tr bgcolor="#f5fbff" >
  30. <td width="12%" align="right">公告标题: </td>
  31. <td colspan="3"> <input name="title" class="text" type="text" value="<?=$edit[title]?>" size="50">
  32. <font color="red">*</font></td>
  33. </tr>
  34. <tr bgcolor="#f5fbff">
  35. <td width="12%" align="right">标题颜色:</td>
  36. <td colspan="3"><input id="cp1" name="titlecolor" class="text" style="width:60px" value="<?=$edit[titlecolor]?>"></td>
  37. </tr>
  38. <script type="text/javascript">
  39. $(function() {
  40. $("#cp1").colorpicker({
  41. fillcolor: true
  42. });
  43. });
  44. </script>
  45. <tr bgcolor="#f5fbff" >
  46. <td width="12%" align="right">开始时间:</td>
  47. <td><input name="begintime" class="text" type="text" value="<?=GetTime($edit[begintime])?>"/> 无开始时间请留空(日期格式如:2011-08-08)</td>
  48. </tr>
  49. <tr bgcolor="#f5fbff" >
  50. <td width="12%" align="right">截止时间:</td>
  51. <td><input name="endtime" class="text" type="text" value="<?=GetTime($edit[endtime])?>"/> 无截止时间请留空(日期格式如:2011-08-08)</td>
  52. </tr>
  53. <tr bgcolor="#f5fbff" >
  54. <td width="12%" align="right">跳转地址:</td>
  55. <td>
  56. <input name="redirecturl" class="text" type="text" value="<?=$edit[redirecturl]?>" size="50"> 若填写了此处,以下部分则不需填写
  57. </td>
  58. </tr>
  59. <tr bgcolor="#f5fbff" >
  60. <td width="12%" align="right">作者:</td>
  61. <td><input name="author" class="text" type="text" style="width:100px" value="<?=$edit[author]?>"><font color="red">*</font></td>
  62. </tr>
  63. </table>
  64. <div style="margin-top:3px;">
  65. <?php echo $acontent?>
  66. </div>
  67. </div>
  68. <center><input type="submit" value="提 交" class="mymps large"/></center>
  69. </form>
  70. <?php mymps_admin_tpl_global_foot();?>