<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图片展示添加</title>
<link href="<{$css_root}>images/admincp.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$web_url}>include/js/jquery.js"></script>
<script type="text/javascript" src="<{$web_url}>include/editor/xheditor.js"></script>
<script type="text/javascript">
<!--
$(pageInit);
function pageInit()
{
	$('#elm1').xheditor(true,{tools:'full',upImgUrl:"<{$web_url}>admin/include/upload.php",upImgExt:"jpg,jpeg,gif,png"});
}


	-->
</script>
</head>
<body>
<div id="append_parent"/>
<div id="cpcontainer" class="container">
  <div class="itemtitle">
    <h3>商品展示</h3>
    <ul class="tab1">
      <li> <a href="produce.php?act=show"> <span>商品列表</span> </a> </li>
      <li class="current"> <a href="produce.php?act=add"> <span>添加商品</span> </a> </li>
    </ul>
  </div>
  <form id="form" action="produce.php?act=addok" method="post" name="form" enctype="multipart/form-data">
  <input type="hidden" value="<{$username}>" name="pro[username]" />
    <table class="tb tb2">
      <tbody>
        <tr>
          <td class="td27" colspan="2">商品名称:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" value="" name="pro[title]"/>          </td>
          <td class="vtop tips2"></td>
        </tr>
        <tr>
          <td class="td27" colspan="2">所属分类:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><select name="pro[catid]">
              <{section name=cates loop=$procatelist}>
              <option 
              value="<{$procatelist[cates].catid}>"><{$procatelist[cates].name}>
              </option>
              <{/section}>
            </select>          </td>
          <td class="vtop tips2">所属分类，选择改商品对应的分类</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">封面图片:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="file" value="" name="coverpic"/>          </td>
          <td class="vtop tips2">在商品列表页中显示的图片</td>
        </tr>
     	<tr>
          <td class="td27" colspan="2">简要说明:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><textarea name="pro[note]" cols="50" rows="5" class="txt" value=""> </textarea>         </td>
          <td class="vtop tips2"></td>
        </tr>
        <tr>
          <td class="td27" colspan="2">详细介绍:</td>
        </tr>
        <tr class="noborder">
          <td colspan="2"><textarea name="pro[content]" id="elm1" rows="25" cols="80"></textarea>          </td>
        </tr>

        <tr>
          <td colspan="2"><input class="btn" type="submit" value="提交" name="submit"/>          </td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
</body>
</html>
