edit.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <form id="form" action="{:url('ais/shop.cate/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 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><th>展示方式:</th><td>
  12. <select datatype="*" class="select fn-left" name="show_type">
  13. <option value="0"{if $info.show_type == 0} selected{/if}>双栏小图</option>
  14. <option value="1"{if $info.show_type == 1} selected{/if}>单栏大图</option>
  15. </select>
  16. <span class="gray">优选商品首页展示方式</span>
  17. </td></tr>
  18. <tr>
  19. <th>专题名称:</th>
  20. <td><input class="input w400" datatype="*" type="text" name="title" value="{$info.title}" /></td>
  21. </tr>
  22. <tr>
  23. <th>专题简介:</th>
  24. <td><textarea class="textarea w400 h60" datatype="*" type="text" name="content" />{$info.content}</textarea></td>
  25. </tr>
  26. <tr><th>专题图片</th><td>
  27. <div url="{:url('system/passport.common/upload')}" class="box-view fn-cp w400 h150">
  28. {notempty name="info.picture"}<img src="{$info.picture}">{/notempty}<div class="opera">建议宽750px高350</div>
  29. </div>
  30. </td></tr>
  31. <tr>
  32. <th></th>
  33. <td>
  34. <input type="submit" value="确定" class="button button-blue submit" />
  35. <input type="reset" value="重置" class="button button-blank"/>
  36. </td>
  37. </tr>
  38. </table>
  39. </form>
  40. <script type="text/javascript">
  41. Do('base','layer','form',function(){
  42. $('#form').isForm();
  43. $(".box-view").win();
  44. })
  45. function setImg(show_src){
  46. $("#picture").val(show_src);
  47. $(".box-view").html('<img src="'+show_src+'">');
  48. }
  49. </script>