<script type="text/javascript" src="{$_config[siteurl]}data/cachefiles/inputlimit.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/addnew.js"></script>
<!--{if $review}-->
<script type="text/javascript">
window.onload = function () {
	$("#sort1").val('$sort1');
	$("#sort2").val('$sort2');
	$("#sort3").val('$sort3');
	$("#sort4").val('$sort4');
	$("#sort5").val('$sort5');
	$("#sort6").val('$sort6');
	$("#sort7").val('$sort7');
	$("#sort8").val('$sort8');
}
</script>
<!--{/if}-->
{LF}
<div id="body">
    <div id="left">
        <div class="mainrail rail-border-1">
            <h1 class="rail-h-1 rail-h-bg-1">什么是标签？</h1>
            <div class="rail-text">你可输入任何关键词作为标签，用于描述商户的特性，多个标签之间用空格分开。<br />比如“缸鸭狗”可以用“汤圆 老字号”等作为标签。</div>
        </div>
    </div>
    <div id="right">
        <div class="post">
            <div class="title"><h1>添加点评</h1>(<span class="font_1">*</span>为必填选项)</div>
            <!--{if !$shopid || $shopid <= 0}-->
            <table class="table" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="right" width="80px"><span class="font_1">*</span>商铺名：</td>
                    <td width="*"><input type="text" name="shopname" id="shopname" class="t_input" /> 例：要德火锅 <button type="button" value="yes" onclick="searchshop('add');">查找相符的商铺</button></td>
                </tr>
                <tr>
                    <td></td><td><div id="searchshop"></div></td>
                </tr>
            </table>
            <!--{else}-->
            <form method="post" action="post.php?action=newreview" name="addreviewfrm" onsubmit="return checkaddreviewfrm();">
            <input type="hidden" name="shopid" value="$shopid">
            <!--{if $isEdit}-->
            <input type="hidden" name="isEdit" value="1">
            <input type="hidden" name="reviewid" value="$reviewid">
            <!--{/if}-->
            <table class="table" border="0" cellspacing="0" cellpadding="0" id="postreviewtable">
                <input type="hidden" name="pcd" value="$pcd" />
                <tr>
                    <td align="right" width="80px" >点评商铺：</td><td id="shopname"><a href="shop.php?shopid=$selectshop[sid]">$selectshop[shopname]</a></td>
                </tr>
                <tr>
                    <td align="right"><span class="font_1">*</span>评价分数：</td>
                    <td>
                        <!--{loop $panelcfg['review'] $key $val}-->
                        <select name="$key" id="$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="80">$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>]&nbsp;<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"{if $enjoy==0} checked{/if} />不喜欢 <input type="radio" name="enjoy" value="1"{if $enjoy==1} checked{/if} />无所谓 <input type="radio" name="enjoy" value="2"{if $enjoy==2} checked{/if} />喜欢 <input type="radio" name="enjoy" value="3"{if $enjoy==3} checked{/if} />很喜欢</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" {if !(strpos($suitplacestags,$val)===false)} checked{/if} />$val&nbsp;
                        <!--{/loop}-->
                    </td>
                </tr>
                <!--{/if}-->
                <tr>
                    <td align="right" valign="top">推荐产品：</td>
                    <td><input type="text" name="producttags" id="producttags" size="50" value="$producttags" class="t_input"> 多产品请用空格分开，限60个字符<!--{if $hot_shoptags}--><br /><span><!--{loop $hot_shoptags $tag}--><a href="javascript:;" onclick="addtag('producttags', '$tag[tagname]'); ">$tag[tagname]</a><!--{/loop}--></span><!--{/if}--></td>
                </tr>
                <tr>
                    <td align="right" valign="top">商铺标签：</td>
                    <td><input type="text" name="shoptags" id="shoptags" size="50" value="$shoptags" class="t_input"> 多标签请用空格分开，限60个字符<!--{if $shoptags}--><br /><span><!--{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>
                <!--{/if}-->
            </table>
            </form>
        </div>
    </div>
</div>