|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | +<head> |
| 4 | +<title>ECSHOP 管理中心 - 添加新商品 </title> |
| 5 | +<meta name="robots" content="noindex, nofollow"> |
| 6 | +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 7 | +<link href="./app/view/back/styles/general.css" rel="stylesheet" type="text/css" /> |
| 8 | +<link href="./app/view/back/styles/main.css" rel="stylesheet" type="text/css" /> |
| 9 | +</head> |
| 10 | +<body> |
| 11 | + |
| 12 | +<h1> |
| 13 | +<span class="action-span"><a href="goods.php?act=list">商品列表</a></span> |
| 14 | +<span class="action-span1"><a href="index.php?act=main">ECSHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 添加新商品 </span> |
| 15 | +<div style="clear:both"></div> |
| 16 | +</h1> |
| 17 | +<!-- start goods form --> |
| 18 | +<div class="tab-div"> |
| 19 | + <!-- tab bar --> |
| 20 | + <div id="tabbar-div"> |
| 21 | + <p> |
| 22 | + <span class="tab-front" id="general-tab">通用信息</span> |
| 23 | + <span class="tab-back" id="detail-tab">详细描述</span> |
| 24 | + <span class="tab-back" id="mix-tab">其他信息</span> |
| 25 | + <span class="tab-back" id="gallery-tab">商品相册</span> |
| 26 | + </p> |
| 27 | + </div> |
| 28 | + |
| 29 | + <!-- tab body --> |
| 30 | + <div id="tabbody-div"> |
| 31 | + <form action="index.php?p=back&c=Goods&a=insert" method="post" enctype="multipart/form-data"> |
| 32 | + <table width="90%" id="general-table" align="center"> |
| 33 | + <tr> |
| 34 | + <td class="label">商品名称:</td> |
| 35 | + <td><input type="text" name="goods_name" value="" style="float:left;color:;" size="30" /> |
| 36 | + <span class="require-field">*</span> |
| 37 | + </td> |
| 38 | + </tr> |
| 39 | + <tr> |
| 40 | + <td class="label"> |
| 41 | + 商品货号</td> |
| 42 | + <td> |
| 43 | + <input type="text" name="goods_sn" value="" size="20"/> |
| 44 | + <span class="require-field">*</span> |
| 45 | + <span class="notice-span" style="display:block" id="noticeGoodsSN">如果您不输入商品货号,系统将自动生成一个唯一的货号。</span></td> |
| 46 | + </tr> |
| 47 | + <tr> |
| 48 | + <td class="label">商品分类:</td> |
| 49 | + <td> |
| 50 | + <select name="cat_id"> |
| 51 | + <option value="0">请选择...</option> |
| 52 | + <?php foreach ($cat_list as $row):?> |
| 53 | + <option value="<?php echo $row['cat_id'];?>"> |
| 54 | + <?php echo str_repeat(' ', $row['deep']), $row['cat_name'];?> |
| 55 | + </option> |
| 56 | + <?php endForeach;?> |
| 57 | + </select> |
| 58 | + <span class="require-field">*</span> |
| 59 | + </td> |
| 60 | + </tr> |
| 61 | + |
| 62 | + <tr> |
| 63 | + <td class="label">本店售价:</td> |
| 64 | + <td> |
| 65 | + <input type="text" name="shop_price" value="0" size="20" /> |
| 66 | + <span class="require-field">*</span></td> |
| 67 | + </tr> |
| 68 | + |
| 69 | + <tr> |
| 70 | + <td class="label">市场售价:</td> |
| 71 | + <td><input type="text" name="market_price" value="0" size="20" /> |
| 72 | + </td> |
| 73 | + </tr> |
| 74 | + |
| 75 | + <tr> |
| 76 | + <td class="label">上传商品图片:</td> |
| 77 | + <td> |
| 78 | + <input type="file" name="image_ori" /> |
| 79 | + </td> |
| 80 | + </tr> |
| 81 | + </table> |
| 82 | + |
| 83 | + <!-- 详细信息 --> |
| 84 | + <table width="90%" id="detail-table" style="display:none"> |
| 85 | + <tr> |
| 86 | + <td> |
| 87 | + <textarea name="goods_desc"></textarea> |
| 88 | + </td> |
| 89 | + </tr> |
| 90 | + </table> |
| 91 | + |
| 92 | + <!-- 其他信息 --> |
| 93 | + <table width="90%" id="mix-table" style="display:none" align="center"> |
| 94 | + |
| 95 | + <tr> |
| 96 | + <td class="label">商品库存数量:</td> |
| 97 | + <td><input type="text" name="goods_number" value="1" size="20" /></td> |
| 98 | + </tr> |
| 99 | + |
| 100 | + <tr> |
| 101 | + <td class="label">加入推荐:</td> |
| 102 | + <td> |
| 103 | + <input type="checkbox" name="is_best" value="1" />精品 |
| 104 | + <input type="checkbox" name="is_new" value="2" />新品 |
| 105 | + <input type="checkbox" name="is_hot" value="4" />热销 |
| 106 | + </td> |
| 107 | + </tr> |
| 108 | + <tr id="alone_sale_1"> |
| 109 | + <td class="label" id="alone_sale_2">上架:</td> |
| 110 | + <td id="alone_sale_3"> |
| 111 | + <input type="checkbox" name="is_on_sale" value="1" checked="checked" /> |
| 112 | + </td> |
| 113 | + </tr> |
| 114 | + </table> |
| 115 | + |
| 116 | + <!-- 商品相册 --> |
| 117 | + <table width="90%" id="gallery-table" style="display:none" align="center"> |
| 118 | + <tr> |
| 119 | + <td></td> |
| 120 | + </tr> |
| 121 | + <tr><td> </td></tr> |
| 122 | + <tr> |
| 123 | + <td> |
| 124 | + <a href="javascript:;" onclick="addImg(this)">[+]</a> |
| 125 | + 图片描述 <input type="text" name="img_desc[]" size="20" /> |
| 126 | + 上传文件 <input type="file" name="img_url[]" /> |
| 127 | + </td> |
| 128 | + </tr> |
| 129 | + </table> |
| 130 | + |
| 131 | + <!-- 切换所需要的js效果 --> |
| 132 | + <!-- ecshp 核心的工具js对象 --> |
| 133 | + <script type="text/javascript" src="app/view/back/js/utils.js"></script> |
| 134 | + <!-- 切换选项卡 --> |
| 135 | + <script type="text/javascript" src="app/view/back/js/tab.js"></script> |
| 136 | + |
| 137 | + <div class="button-div"> |
| 138 | + <input type="submit" value=" 确定 " class="button" /> |
| 139 | + <input type="reset" value=" 重置 " class="button" /> |
| 140 | + </div> |
| 141 | + </form> |
| 142 | + </div> |
| 143 | +</div> |
| 144 | + |
| 145 | +<div id="footer"> |
| 146 | +©<a href="banzhuand.me">banzhuande.me</a> |
| 147 | +</div> |
| 148 | + |
| 149 | +</body> |
| 150 | +</html> |
0 commit comments