<script type="text/javascript">
var max_size = $max_size;
</script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/addnew.js"></script>
<div id="body">
    <div class="link_path"><a href="$option[url]">首页</a>&nbsp;&raquo;&nbsp;<a href="cate.php?cd=$pcd">$_classcodes[$pcd][classname]</a>&nbsp;&raquo;&nbsp;<a href="shop.php?shopid=$shop[sid]">$shop[shopname]</a>&nbsp;&raquo;&nbsp;图片上传</div>
    <div id="left">
        <div class="mainrail rail-border-1">
            <h1 class="rail-h-1 rail-h-bg-1">希望加快上传速度？</h1>
            <div class="rail-text">建议您在上传前，先对图片进行处理，压缩尺寸大小，从而减小图片的文件大小。</div>
        </div>
    </div>
    <div id="right">
        <div class="post">
            <div class="title"><h1>图片上传</h1>(<span class="font_1">*</span>为必填选项)</div>
            <!--{if $error}--><div class="formerror">$error</div><!--{/if}-->
            <form method="post" action="post.php?action=uploadpicture&shopid=$shopid" enctype="multipart/form-data" name="uploadfrom" onsubmit="return checkupload();">
            <table class="table" border="0" cellpadding="0" cellspacing="0" id="uploadtable">
                <tr>
                    <td align="right" width="80">目标商铺：</td>
                    <td width="*" id="shopname"><a href="shop.php?shopid=$shop[sid]">$shop[shopname]</a></td>
                </tr>
                <tr>
                    <td align="right" valign="top"><span class="font_1">*</span>选择图片：</td>
                    <td><input type="file" name="picture" class="f_input"><br /><span class="font_3">最大允许上传的图片大小 {$upload_max_size}<br />允许上传的图片格式 {$limit_str}</span></td>
                </tr>
                <tr>
                    <td align="right"><span class="font_1">*</span>图片类型：</td>
                    <td><input type="radio" name="sort" value="1">环境&nbsp;<input type="radio" name="sort" value="2">产品&nbsp;<input type="radio" name="sort" value="3">其他&nbsp;</td>
                </tr>
                <tr>
                    <td align="right"><span class="font_1">*</span>图片标题：</td>
                    <td><input type="text" name="title" size="30" value="$title" class="t_input">&nbsp;<span class="font_3">&nbsp;限制<span class="font_2">20</span>个字符</span></td>
                </tr>
                <tr>
                    <td align="right">图片标签：</td>
                    <td><input type="text" name="tags" size="40" value="$tags" class="t_input">&nbsp;<span class="font_3">&nbsp;多个用空格分开，限制<span class="font_2">60</span>个字符</span></td>
                </tr>
                <tr>
                    <td align="right">图片说明：</td>
                    <td><input type="text" name="comments" size="40" value="$comments" class="t_input">&nbsp;<span class="font_3">&nbsp;限制<span class="font_2">50</span>个字符</span></td>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <input type="hidden" name="uploadpicturesubmit" value="uploadpicture" />
                    <td height="30" valign="bottom">
                        <button type="submit" name="submitbutton" value="yes">&nbsp;上&nbsp;传&nbsp;</button>
                    </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
</div>