faq_edit.tpl.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php include mymps_tpl('inc_head');?>
  2. <script language='javascript'>
  3. function CheckSubmit()
  4. {
  5. if(document.form1.typeid.value=="")
  6. {
  7. document.form1.typeid.focus();
  8. alert("请选择帮助分类!");
  9. return false;
  10. }
  11. if(document.form1.title.value=="")
  12. {
  13. document.form1.title.focus();
  14. alert("请填写主题标题!");
  15. return false;
  16. }
  17. if(document.form1.content.value=="")
  18. {
  19. document.form1.content.focus();
  20. alert("请填写主题内容!");
  21. return false;
  22. }
  23. return true;
  24. }
  25. </script>
  26. <form method=post name="form1" action="?part=edit&id=<?=$edit[id]?>" onSubmit="return CheckSubmit();">
  27. <div id="<?=MPS_SOFTNAME?>">
  28. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  29. <input name="action" type="hidden" value="dopost">
  30. <tr bgcolor="#f5fbff" >
  31. <td width="10%" align="right">所属类别: </td>
  32. <td colspan="3">
  33. <select name="typeid">
  34. <?php foreach($faq_type as $k){?>
  35. <option value="<?=$k[id]?>"<?php if($edit[typeid] == $k[id])echo "selected";?>><?=$k[typename]?></option>
  36. <?}?>
  37. </select> <font color="red">*</font></td>
  38. </tr>
  39. <tr bgcolor="#f5fbff" >
  40. <td width="10%" align="right">主题标题: </td>
  41. <td colspan="3"> <input name="title" type="text" class="text" value="<?=$edit[title]?>" size="50"> <font color="red">*</font></td>
  42. </tr>
  43. </table>
  44. <div style="margin-top:3px;">
  45. <?php echo $acontent?>
  46. </div>
  47. </div>
  48. <center><input type="submit" value="提 交" class="mymps large"/></center>
  49. </form>
  50. <?php mymps_admin_tpl_global_foot();?>