<script type="text/javascript" src="{$_config[siteurl]}data/cachefiles/inputlimit.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/addnew.js"></script>
<div class="post">
    <div class="title"><h1>添加新点评</h1></div>
    <form method="post" action="post.php?action=newreview&shopid=$shopid" name="addreviewfrm" onsubmit="return checkaddreviewfrm();">
    <input type="hidden" name="pcd" value="$pcd" />
    <table class="table" border="0" cellspacing="0" cellpadding="0" id="postreviewtable">
    <tr>
        <input type="hidden" name="shopid" value="$shopid">
        <td align="right" width="80px"><span class="font_1">*</span>评价分数：</td>
        <td>
            <!--{loop $panelcfg['review'] $key $val}-->
            <select name="$key">
                <option value="">-{$val}-</option>
                <option value="0">差(0)</option>
                <option value="1">一般(1)</option>
                <option value="2">还行(2)</option>
                <option value="3">好(3)</option>
                <option value="4">很好(4)</option>
                <option value="5">非常好(5)</option>
            </select>
            <!--{/loop}-->
        </td>
    </tr>
    <tr>
        <td align="right"><!--{if $_panel_config[$pcd]['avgprice_need']}--><span class="font_1">*</span><!--{/if}-->人均消费：</td>
        <td><input type="text" name="avgprice" size="8" value="$avgprice" class="t_input" /> 元/人 <span id="avgprice_w" class="enter-error"></span></td>
    </tr>
    <tr>
        <td align="right" valign="top"><span class="font_1">*</span>点评内容：</td>
        <td><textarea name="content" rows="8" cols="68">$content</textarea>
        [<a href="javascript:;" onclick="addrows(addreviewfrm.content,8);">＋增加行数</a>]&nbsp;[<a href="javascript:;" onclick="decrows(addreviewfrm.content,8);">－减少行数</a>]&nbsp;[<span class="font_2">字数请控制在<span class="font_1">{$_inputlimit[review][min]} - {$_inputlimit[review][max]}</span>字以内</span>]<span id="content_w" class="enter-error"></span></td>
    </tr>
    <tr>
        <td align="right"><span class="font_1">*</span>喜欢程度：</td>
        <td><input type="radio" name="enjoy" value="0">不喜欢 <input type="radio" name="enjoy" value="1">无所谓 <input type="radio" name="enjoy" checked="checked" value="2">喜欢 <input type="radio" name="enjoy" value="3">很喜欢</td>
    </tr>
    <!--{if $_panel_config[$pcd]['suitplace_enable']}-->
    <tr>
        <td align="right">适合环境：</td>
        <td>
            <!--{loop $_panel_config[$pcd]['suitplaces'] $val}-->
            <input type="checkbox" name="suitplace[]" value="$val" />$val&nbsp;
            <!--{/loop}-->
        </td>
    </tr>
    <!--{/if}-->
    <tr>
        <td align="right">推荐产品：</td>
        <td><input type="text" name="producttags" id="producttags" size="50" class="t_input" /> 多产品请用空格分开<!--{if $shoptags}--><br /><span class="hottag"><!--{loop $producttags $tag}--><a href="javascript:;" onclick="addtag('producttags', '$tag[tagname]'); ">$tag[tagname]</a><!--{/loop}--></span><!--{/if}--></td>
    </tr>
    <tr>
        <td align="right">商铺标签：</td>
        <td><input type="text" name="shoptags" id="shoptags" size="50" class="t_input" /> 多标签请用空格分开<!--{if $shoptags}--><br /><span class="hottag"><!--{loop $shoptags $tag}--><a href="javascript:;" onclick="addtag('shoptags', '$tag[tagname]'); ">$tag[tagname]</a><!--{/loop}--></span><!--{/if}--></td>
    </tr>
    <!--{if $_seccode['newreview']}--><tr>
        <td align="right">验证码：</td>
        <td><div id="seccode"></div><input type="text" name="seccode" onfocus="show_seccode();" class="t_input" /></td>
    </tr><!--{/if}-->
    <tr>
        <td><input type="hidden" name="newreviewsubmit" value="yes" /></td>
        <td><button type="submit" name="submit" value="yes">提交点评</button></td>
    </tr>
    </table>
    </form>
</div>