Node_edit.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <form id="myform" action="<if condition="$action_name=='edit'">{:U('Node/update')}<else />{:U('Node/insert')}</if>" method="post">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td>{:L('GROUP')}</td>
  5. <td>{:Form::select(array('field'=>'groupid','options'=>$groups,'options_key'=>'id,name'),$groupid)} </td>
  6. </tr>
  7. <tr>
  8. <td>{:L('name')}</td><td><input type="text" class="input-text" name="name" value="{$udate['name']}" validate="required:true,en_num:true, minlength:2, maxlength:20" /></td>
  9. </tr>
  10. <tr>
  11. <td>{:L('title')}</td><td><input type="text" name="title" class="input-text" value="{$udate['title']}" validate="required:true,cn_username:true, minlength:2, maxlength:20" /></td>
  12. </tr>
  13. <tr>
  14. <td>{:L('menu_parent_menu')}</td>
  15. <td><SELECT class="medium bLeft" name="pid">
  16. <option value="0">{:L('menu_top_menu')}</option>
  17. {$nodes}
  18. </SELECT></td>
  19. </tr>
  20. <tr>
  21. <td>{:L('remark')}</td><td><textarea id="remark" name="remark" rows="3" cols="40">{$udate['remark']}</textarea></td>
  22. </tr>
  23. <td>{:L('status')}</td>
  24. <td>
  25. {:L('enable')}<input type="radio" name="status" value="1" <eq name="udate['status']" value="1">checked="checked"</eq> />
  26. {:L('disable')}<input type="radio" name="status" value="0" <eq name="udate['status']" value="0">checked="checked"</eq> />
  27. </td>
  28. </tr>
  29. </table>
  30. <div class="btn"> <if condition="$action_name=='edit'"><input type="hidden" id="id" name="id" value="{$udate['id']}" /></if>
  31. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  32. <input TYPE="reset" value="{:L('cancel')}" class="button">
  33. <input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
  34. </div>
  35. </form></div>