announce_add.tpl.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. if(document.form1.content.value =="" && document.form1.redirecturl.value == "")
  19. {
  20. document.form1.content.focus();
  21. alert("请填写公告内容!");
  22. return false;
  23. }
  24. return true;
  25. }
  26. </script>
  27. <form method=post name="form1" action="announce.php?part=insert" onSubmit="return CheckSubmit();">
  28. <div id="<?=MPS_SOFTNAME?>">
  29. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  30. <tr class="firstr">
  31. <td colspan="2"><b>添加网站公告</b></td>
  32. </tr>
  33. <tr bgcolor="#f5fbff" >
  34. <td width="12%" align="right">公告标题: </td>
  35. <td colspan="3"> <input name="title" class="text" type="text" value="" size="50"><font color="red">*</font></td>
  36. </tr>
  37. <tr bgcolor="#f5fbff">
  38. <td width="12%" align="right">标题颜色:</td>
  39. <td colspan="3"><input id="cp1" name="titlecolor" class="text" style="width:60px" value=""></td>
  40. </tr>
  41. <script type="text/javascript">
  42. $(function() {
  43. $("#cp1").colorpicker({
  44. fillcolor: true
  45. });
  46. });
  47. </script>
  48. <tr bgcolor="#f5fbff" >
  49. <td width="12%" align="right">开始时间:</td>
  50. <td><input name="begintime" class="text" type="text"/>
  51. 无开始时间请留空(日期格式如:2011-08-08)</td>
  52. </tr>
  53. <tr bgcolor="#f5fbff" >
  54. <td width="12%" align="right">截止时间:</td>
  55. <td><input name="endtime" class="text" type="text"/>
  56. 无截止时间请留空(日期格式如:2011-08-08)</td>
  57. </tr>
  58. <tr bgcolor="#f5fbff" >
  59. <td width="12%" align="right">跳转地址:</td>
  60. <td>
  61. <input name="redirecturl" class="text" type="text" value="" size="50"> 若填写了此处,以下部分则不需填写
  62. </td>
  63. </tr>
  64. <tr bgcolor="#f5fbff" >
  65. <td width="12%" align="right">作者:</td>
  66. <td><input name="author" class="text" type="text" style="width:100px" value="<?=$admin_name?>"><font color="red">*</font></td>
  67. </tr>
  68. </table>
  69. <div style="margin-top:3px;">
  70. <?php echo $acontent?>
  71. </div>
  72. </div>
  73. <center><input type="submit" value="提 交" class="mymps large"/></center>
  74. </form>
  75. <?php mymps_admin_tpl_global_foot();?>