1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <form id="form" action="{:url('allwin/shopCate/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>
- <select datatype="*" class="select w100 fn-left" name="types">
- <option value="0"{if $info.types == 0} selected{/if}>默认属性</option>
- <option value="1"{if $info.types == 1} selected{/if}>首页推荐</option>
- </select>
- </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 w400 h60" datatype="*" type="text" name="content" />{$info.content}</textarea></td>
- </tr>
- <tr><th>专题图片</th><td><div url="{:url('system/passport.common/upload')}" class="box-view fn-cp w400 h150">
- {notempty name="info.picture"}<img src="{$info.picture}">{/notempty}
- <div class="opera">建议宽750px高350</div></div></td></tr>
- <tr>
- <th></th>
- <td>
- <input type="submit" value="确定" class="button button-blue submit" />
- <input type="reset" value="重置" class="button button-blank"/>
- </td>
- </tr>
- </table>
- </form>
- <script type="text/javascript">
- Do('base','layer','form',function(){
- $('#form').isForm();
- $(".box-view").win();
- })
- //添加图片
- function setImg(show_src){
- $("#picture").val(show_src);
- $(".box-view").html('<img src="'+show_src+'">');
- }
- </script>
|