| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php include mymps_tpl('inc_head');?>
- <script language='javascript'>
- function CheckSubmit()
- {
- if(document.form1.typeid.value=="")
- {
- document.form1.typeid.focus();
- alert("请选择帮助分类!");
- return false;
- }
- if(document.form1.title.value=="")
- {
- document.form1.title.focus();
- alert("请填写主题标题!");
- return false;
- }
- if(document.form1.content.value=="")
- {
- document.form1.content.focus();
- alert("请填写主题内容!");
- return false;
- }
- return true;
- }
- </script>
- <form method=post name="form1" action="?part=edit&id=<?=$edit[id]?>" onSubmit="return CheckSubmit();">
- <div id="<?=MPS_SOFTNAME?>">
- <table border="0" cellspacing="0" cellpadding="0" class="vbm">
- <input name="action" type="hidden" value="dopost">
- <tr bgcolor="#f5fbff" >
- <td width="10%" align="right">所属类别: </td>
- <td colspan="3">
- <select name="typeid">
- <?php foreach($faq_type as $k){?>
- <option value="<?=$k[id]?>"<?php if($edit[typeid] == $k[id])echo "selected";?>><?=$k[typename]?></option>
- <?}?>
- </select> <font color="red">*</font></td>
- </tr>
- <tr bgcolor="#f5fbff" >
- <td width="10%" align="right">主题标题: </td>
- <td colspan="3"> <input name="title" type="text" class="text" value="<?=$edit[title]?>" size="50"> <font color="red">*</font></td>
- </tr>
- </table>
- <div style="margin-top:3px;">
- <?php echo $acontent?>
- </div>
- </div>
- <center><input type="submit" value="提 交" class="mymps large"/></center>
- </form>
- <?php mymps_admin_tpl_global_foot();?>
|