Menu_edit.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <form method='post' id="myform" action="<if condition="$action_name=='add'">{:U('Menu/insert')}<else />{:U('Menu/update')}</if>">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td width="140">{:L('menu_parent_menu')}:</td>
  5. <td><SELECT name="parentid">
  6. <option value="0">{:L('menu_top_menu')}</option>
  7. {$select_categorys}
  8. </SELECT></td>
  9. </tr>
  10. <tr>
  11. <td>{:L('name')}:</td>
  12. <td><input type="text" class="input-text" name="name" value="{$vo.name}" validate="required:true,cn_username:true, minlength:2, maxlength:20"></td>
  13. </tr>
  14. <tr>
  15. <td>{:L('menu_model')}:</td>
  16. <td><input type="text" class="input-text" name="model" value="{$vo.model}" validate="required:true,english:true, minlength:2, maxlength:20"></td>
  17. </tr>
  18. <tr>
  19. <td>{:L('menu_action')}:</td>
  20. <td><input type="text" class="input-text" name="action" value="{$vo.action}" validate="english:true, minlength:2, maxlength:20"> {:L('default')}:index</td>
  21. </tr>
  22. <tr>
  23. <td>{:L('menu_option')}:</td>
  24. <td><input type="text" class="input-text" name="data" value="{$vo.data}"> {:L('examples')}:groupid=1&type=2</td>
  25. </tr>
  26. <tr>
  27. <td>{:L('menu_remark')}:</td>
  28. <td><TEXTAREA name="remark" rows="5" cols="57">{$vo.remark}</textarea></td>
  29. </tr>
  30. <tr>
  31. <td>{:L('status')}:</td>
  32. <td><SELECT name="status">
  33. <option value="1"<eq name="vo.status" value="1"> selected</eq>>{:L('enable')}</option>
  34. <option value="0"<eq name="vo.status" value="0"> selected</eq>>{:L('disable')}</option>
  35. </SELECT></td>
  36. </tr>
  37. <tr>
  38. <td>{:L('menu_type')}:</td>
  39. <td><SELECT name="type">
  40. <option value="1"<eq name="vo.type" value="1"> selected</eq>>{:L('menu_type1')}</option>
  41. <option value="2"<eq name="vo.type" value="2"> selected</eq>>{:L('menu_type2')}</option>
  42. </SELECT></td>
  43. </tr>
  44. </table>
  45. <div class="btn">
  46. <if condition="$vo[id]!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
  47. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  48. <input TYPE="reset" value="{:L('reset')}" class="button">
  49. </div>
  50. </form>
  51. </div>