Slide_edit.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <script>
  2. function edittpl(){
  3. var file= $('#tpl').val();
  4. url = "{:U('Slide/edittpl')}&isajax=1&tpl="+file
  5. openwin("edittpl",url,"{:L(EDIT_TPL)}",700,550,true);
  6. }
  7. </script>
  8. <form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>" method="post">
  9. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  10. <tr>
  11. <td width="120"><font color="red">*</font>{:L(name)}</td>
  12. <td><input type="text" id="name" name="name" value="{$vo.name}" class="input-text" validate="required:true,cn_username:true, minlength:2, maxlength:20"/></td>
  13. </tr>
  14. <tr>
  15. <td>{:L(tpl)}</td>
  16. <td>{:Form::select(array('field'=>'tpl','options'=>$Tpl,'options_key'=>'value,filename'),$vo['tpl'])} <a href="javascript:void(0);" onclick='edittpl();'>{:L(EDIT_TPL)}</a></td>
  17. </tr>
  18. <!--
  19. <tr>
  20. <td>{:L(xmlfile)}</td>
  21. <td><input type="text" id="xmlfile" name="xmlfile" value="{$vo.xmlfile}" class="input-text"/></td>
  22. </tr>
  23. -->
  24. <tr>
  25. <td>{:L(width)}</td>
  26. <td><input type="text" id="width" name="width" value="{$vo.width}" class="input-text" validate="required:true,number:true, minlength:1, maxlength:20"/></td>
  27. </tr>
  28. <tr>
  29. <td>{:L(height)}</td>
  30. <td><input type="text" id="height" name="height" value="{$vo.height}" class="input-text" validate="required:true,number:true, minlength:1, maxlength:20"/></td>
  31. </tr>
  32. <tr>
  33. <td>{:L(num)}</td>
  34. <td><input type="text" id="height" name="num" value="{$vo.num}" class="input-text" /></td>
  35. </tr>
  36. <tr>
  37. <td>{:L(STATUS)}</td>
  38. <td>{:Form::radio(array('field'=>'status','options'=>array('1'=>L('enable'),'0'=>L('disable'))),$vo['status'])}</td>
  39. </tr>
  40. </table>
  41. <div class="btn">
  42. <if condition="$vo['id']!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
  43. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  44. <input TYPE="reset" value="{:L('cancel')}" class="button">
  45. </div>
  46. </form>
  47. </div>
  48. </body></html>