<!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="<{$css_root}>images/jquery.js"></script>
<script type="text/javascript" src="<{$css_root}>images/jquery.MultiFile.js"></script>
<script type="text/javascript">
<!--
	$(function(){ // wait for document to load 
		$('#T8A').MultiFile({ 
		STRING: { 
		remove: '<img src="<{$css_root}>images/cancle.png" height="16" width="16" alt="删除"/>' 
				} 
		}); 
	});
	-->
</script>
</head>
<body>
<div id="append_parent"/>
<div id="cpcontainer" class="container">
  <div class="itemtitle">
    <h3>图片展示</h3>
    <ul class="tab1">
      <li> <a href="picture.php?act=show"> <span>展示列表</span> </a> </li>
      <li class="current"> <a href="picture.php?act=add"> <span>添加图片</span> </a> </li>
    </ul>
  </div>
  <form id="form" action="picture.php?act=addok" method="post" name="form" enctype="multipart/form-data">
  <input type="hidden" value="<{$username}>" name="pict[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="pict[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="pict[catid]">
              <{section name=cates loop=$piccatelist}>
              <option 
              value="<{$piccatelist[cates].catid}>"><{$piccatelist[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"><input id="T8A" name="pic[]" type="file" class="multi"/>          </td>
          <td class="vtop tips2">图片组中的所有图片，大于 200x130 的图片将被缩小</td>
        </tr>
        <div id="T8A-list"></div> 
        

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