123456789101112131415161718192021222324252627282930313233 |
- <form id="form" action="{:url('quan/edit')}">
- <input type="hidden" name="id" value="{$info.id}"/>
- <input type="hidden" name="picture" value="{$info.picture}" id="picture" />
- <table class="formtable">
- <tr>
- <th>图片样式</th>
- <td>
- <div url="{:url('system/passport.common/upload')}" class="img-review w180 h80">{present name="info.picture"}<img src="{$info.picture}">{/present}</div>
- </td>
- </tr>
- <tr><th>商圏名称:</th><td><input class="input" datatype="*" type="text" name="title" value="{$info.title}" /></td></tr>
- <tr><th>商圏简介:</th><td><textarea class="textarea w300 h60" datatype="*" type="text" name="content"/>{$info.content}</textarea></td></tr>
- <tr>
- <th></th>
- <td>
- <input type="submit" value="确定" class="button button-blue submit" />
- <input type="reset" value="重置" class="button"/>
- </td>
- </tr>
- </table>
- </div>
- </form>
- <script type="text/javascript">
- Do('base','layer','form',function(){
- $('#form').isForm();
- $(".img-review").win();
- })
- //添加图片
- function setImg(show_src){
- $("#picture").val(show_src);
- $(".img-review").html('<img src="'+show_src+'">');
- }
- </script>
|