edit.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <form id="form" action="{:url('quan/edit')}">
  2. <input type="hidden" name="id" value="{$info.id}"/>
  3. <input type="hidden" name="picture" value="{$info.picture}" id="picture" />
  4. <table class="formtable">
  5. <tr>
  6. <th>图片样式</th>
  7. <td>
  8. <div url="{:url('system/passport.common/upload')}" class="img-review w180 h80">{present name="info.picture"}<img src="{$info.picture}">{/present}</div>
  9. </td>
  10. </tr>
  11. <tr><th>商圏名称:</th><td><input class="input" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
  12. <tr><th>商圏简介:</th><td><textarea class="textarea w300 h60" datatype="*" type="text" name="content"/>{$info.content}</textarea></td></tr>
  13. <tr>
  14. <th></th>
  15. <td>
  16. <input type="submit" value="确定" class="button button-blue submit" />
  17. <input type="reset" value="重置" class="button"/>
  18. </td>
  19. </tr>
  20. </table>
  21. </div>
  22. </form>
  23. <script type="text/javascript">
  24. Do('base','layer','form',function(){
  25. $('#form').isForm();
  26. $(".img-review").win();
  27. })
  28. //添加图片
  29. function setImg(show_src){
  30. $("#picture").val(show_src);
  31. $(".img-review").html('<img src="'+show_src+'">');
  32. }
  33. </script>