edit.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <form id="form" action="{:url('store.group/edit')}">
  2. <input type="hidden" name="id" value="{$info.id}"/>
  3. <input type="hidden" name="face" value="{$info.face}" id="picture" />
  4. <table class="formtable">
  5. <th>商圈圏主:</th>
  6. <td>
  7. <input readonly="readonly" id="manage_uid" class="readonly input w100" type="text" name="uid" value="{$info.uid}"/>
  8. <button url="{:url('store.index/selectStore',['input' =>'manage_uid','select_uid' => 1])}" type="button" class="selectPopup button"><i class="iconfont icon-my_icon"></i>选择好店</button>
  9. </td>
  10. <tr><th>商圏名称:</th><td><input class="input" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
  11. <tr><th></th>
  12. <td>
  13. <div class="img-review select_img" url="{:url("system/passport.common/upload")}">{if $info.face}<img src="{$info.face}">{/if}</div>
  14. </td>
  15. </tr>
  16. <tr><th>商圏简介:</th><td><textarea class="textarea w300 h80" datatype="*" type="text" name="content"/>{$info.content}</textarea></td></tr>
  17. <tr>
  18. <th></th>
  19. <td>
  20. <input type="submit" value="确定" class="button button-blue submit" />
  21. <input type="reset" value="重置" class="button"/>
  22. </td>
  23. </tr>
  24. </table>
  25. </div>
  26. </form>
  27. <script type="text/javascript">
  28. Do('base','layer','form',function(){
  29. $('#form').isForm();
  30. $(".selectPopup").win();
  31. $(".select_img").win();
  32. })
  33. function setState(store){
  34. $("#manage_uid").val(store.id);
  35. }
  36. //添加图片
  37. function setImg(show_src){
  38. $("#picture").val(show_src);
  39. $(".img-review").html('<img src="'+show_src+'" style="max-width:400px">');
  40. }
  41. </script>