Block_edit.html 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <form method='post' name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td width="140">{:L('name')}:</td>
  5. <td><input type="text" class="input-text" name="name" id="name" value="{$vo.name}" ></td>
  6. </tr>
  7. <tr>
  8. <td>{:L('pos')}:</td>
  9. <td><input type="text" class="input-text" name="pos" id="pos" value="{$vo.pos}" validate="required:true,en_num:true, minlength:2, maxlength:20"></td>
  10. </tr>
  11. <tr>
  12. <td>图片上传:</td>
  13. <td>{: $Form->image(array('field'=>'file','moduleid'=>'234','setup'=>array('upload_maxsize'=>'1','upload_allowext'=>'jpg,jepg,gif,png,','more'=>'0')),$vo[file])}</td>
  14. </tr>
  15. <tr>
  16. <td>{:L('content')}:</td>
  17. <td>{: $Form->editor(array('field'=>'content','moduleid'=>'231','setup'=>array('toolbar'=>'full','flashupload'=>'1')),$vo[content])}</td>
  18. </tr>
  19. </table>
  20. <div class="btn">
  21. <if condition="$vo[id]!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
  22. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  23. <input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
  24. <input TYPE="reset" value="{:L('reset')}" class="button">
  25. </div>
  26. </form>
  27. </div>
  28. </body></html>