Urlrule_edit.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>" method="post">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td width="120">{:L('URL_MAKE_HTML')}
  5. </td>
  6. <td>
  7. {:Form::radio(array('field'=>'ishtml','options'=>array('1'=>L('yes'),'0'=>L('no'))),$vo['ishtml'])}
  8. </td>
  9. </tr>
  10. <tr>
  11. <td width="120"><font color="red">*</font>{:L(URL_SHOW)}{:L(URL_example)}</td>
  12. <td>
  13. <input type="text" id="showexample" name="showexample" size="50" class="input-text" value="{$vo['showexample']}" validate="required:true,minlength:2, maxlength:200" />{:L(examples)}:news/show/1.html
  14. </td>
  15. </tr>
  16. <tr>
  17. <td><font color="red">*</font>{:L(URL_SHOW)}{:L(URL_RULE)}</td>
  18. <td><input type="text" id="showurlrule" name="showurlrule" size="50" class="input-text" value="{$vo['showurlrule']}" validate="required:true,minlength:2, maxlength:200" /> {:L(examples)}:<literal>{$catdir}/show/{$id}.html</literal>
  19. </td>
  20. </tr>
  21. <tr>
  22. <td>{:L(URL_SHOW_VAR)}</td>
  23. <td>{:L(URL_SHOW_README)}
  24. </td>
  25. </tr>
  26. <tr>
  27. <td width="120"><font color="red">*</font>{:L(URL_LIST)}{:L(URL_example)}</td>
  28. <td>
  29. <input type="text" id="listexample" name="listexample" size="50" class="input-text" value="{$vo['listexample']}" validate="required:true,minlength:2, maxlength:200" />{:L(examples)}:news/
  30. </td>
  31. </tr>
  32. <tr>
  33. <td><font color="red">*</font>{:L(URL_LIST)}{:L(URL_RULE)}</td>
  34. <td><input type="text" id="listurlrule" name="listurlrule" size="50" class="input-text" value="{$vo['listurlrule']}" validate="required:true,minlength:2, maxlength:200" /> {:L(examples)}:<literal>{$catdir}</literal>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td>{:L(URL_LIST_VAR)}</td>
  39. <td>{:L(URL_LIST_README)}
  40. </td>
  41. </tr>
  42. </table>
  43. <div class="btn">
  44. <if condition="$vo['urlruleid']!=''"><input TYPE="hidden" name="urlruleid" value="{$vo.urlruleid}"></if>
  45. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  46. <input TYPE="reset" value="{:L('cancel')}" class="button">
  47. </div>
  48. </form>
  49. </div>
  50. </body></html>