brand_edit.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <div class="headbar">
  2. <div class="position"><span>商品</span><span>></span><span>品牌管理</span><span>></span><span>{if:isset($brand['id'])}编辑{else:}添加{/if}品牌</span></div>
  3. </div>
  4. <div class="content_box">
  5. <div class="content form_content">
  6. <form action="{url:/brand/brand_save}" method="post" enctype='multipart/form-data'>
  7. <table class="form_table" cellpadding="0" cellspacing="0">
  8. <col width="150px" />
  9. <col />
  10. <tr>
  11. <th>品牌名称:</th>
  12. <td><input class="normal" name="name" type="text" value="{$brand['name']}" pattern="required" alt="品牌名称不能为空" />
  13. <label>*</label>
  14. <input name="brand_id" value="{$brand['id']}" type="hidden" />
  15. </td>
  16. </tr>
  17. <tr>
  18. <th>排序:</th><td><input class="normal" name="sort" type="text" value="{$brand['sort']}" pattern='int' empty alt='必需为整形数值'/></td>
  19. </tr>
  20. <tr>
  21. <th>网址:</th><td><input class="normal" name="url" type="text" value="{$brand['url']}" pattern='url' empty alt='网址格式不正确,比如:http://www.k1net.cn' /><label>完整的URL链接地址,如:http://www.k1net.cn</label></td>
  22. </tr>
  23. <tr>
  24. <th>LOGO:</th><td><div>{if:isset($brand['logo'])}<img src="{webroot:$brand[logo]}" height="60px"/><br />{/if}<input type='file' class='normal' name='logo'/></div></td>
  25. </tr>
  26. <tr>
  27. <th>所属分类:</th>
  28. <td>
  29. {query:name=brand_category}{/query}
  30. {if:$items}
  31. <ul class="select">
  32. {foreach:items=$items}
  33. <li><label><input type="checkbox" value="{$item['id']}" name="category[]" {if:isset($brand) && stripos(','.$brand['category_ids'].',',','.$item['id'].',') !== false}checked="checked"{/if} />{$item['name']}</label></li>
  34. {/foreach}
  35. </ul>
  36. {else:}
  37. 系统暂无品牌分类,<a href='{url:/brand/category_edit}' class='orange'>请点击添加</a>
  38. {/if}
  39. </td>
  40. </tr>
  41. <tr>
  42. <th valign="top">描述:</th><td><textarea name="description" id="description" style="width:600px;height:300px;">{$brand['description']}</textarea></td>
  43. </tr>
  44. <tr>
  45. <td></td><td><button class="submit" type="submit"><span>确 定</span></button></td>
  46. </tr>
  47. </table>
  48. </form>
  49. </div>
  50. </div>