edit.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <form id="form" action="{:url('allwin/shopCate/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><th>专题属性:</th><td>
  6. <select datatype="*" class="select w100 fn-left" name="types">
  7. <option value="0"{if $info.types == 0} selected{/if}>默认属性</option>
  8. <option value="1"{if $info.types == 1} selected{/if}>首页推荐</option>
  9. </select>
  10. </td></tr>
  11. <tr>
  12. <th>专题名称:</th>
  13. <td><input class="input" datatype="*" type="text" name="title" value="{$info.title}" /></td>
  14. </tr>
  15. <tr>
  16. <th>专题简介:</th>
  17. <td><textarea class="textarea w400 h60" datatype="*" type="text" name="content" />{$info.content}</textarea></td>
  18. </tr>
  19. <tr><th>专题图片</th><td><div url="{:url('system/passport.common/upload')}" class="box-view fn-cp w400 h150">
  20. {notempty name="info.picture"}<img src="{$info.picture}">{/notempty}
  21. <div class="opera">建议宽750px高350</div></div></td></tr>
  22. <tr>
  23. <th></th>
  24. <td>
  25. <input type="submit" value="确定" class="button button-blue submit" />
  26. <input type="reset" value="重置" class="button button-blank"/>
  27. </td>
  28. </tr>
  29. </table>
  30. </form>
  31. <script type="text/javascript">
  32. Do('base','layer','form',function(){
  33. $('#form').isForm();
  34. $(".box-view").win();
  35. })
  36. //添加图片
  37. function setImg(show_src){
  38. $("#picture").val(show_src);
  39. $(".box-view").html('<img src="'+show_src+'">');
  40. }
  41. </script>