<!--{include file="header.html"}-->

<!--{assign var=checkcode value="-"|explode:$CHECKCODE}-->

<!--位置和统计开始-->
<div class="location">
<div id="location"><a href="<!--{$WEB_URL}-->"><!--{$SITE_NAME}--></a> &raquo; <b>签写留言</b></div>
</div>
<!--位置和统计结束-->

<!--留言界面开始-->
<div class="post_box">
<form action="<!--{$WEB_URL}-->/index.php?action=submit" method="post">
<table cellspacing="0" id="post_box_table"> 
  <tr>
    <td colspan="3"><div class="post_careful">注：带 <span>*</span> 符号的为必填项</div></td>
  </tr>
  <!--{if $AVATAR_USABLE eq '1'}-->
  <tr>
    <td class="post_box_left post_avatar">头像选择：</td>
    <td colspan="2" class="post_box_right post_avatar_r">
    
<table class="post_select_avatar" border="0" cellpadding="0" cellspacing="0">
  		<tr>
    	<td height="100"><img name="" src="<!--{$WEB_URL}-->/<!--{$SITE_TPL}-->/images/avatar/1.gif" width="80" height="80" alt="" /></td>
    	<td height="100"><img name="" src="<!--{$WEB_URL}-->/<!--{$SITE_TPL}-->/images/avatar/2.gif" width="80" height="80" alt="" /></td>
    	<td height="100"><img name="" src="<!--{$WEB_URL}-->/<!--{$SITE_TPL}-->/images/avatar/3.gif" width="80" height="80" alt="" /></td>
    	<td height="100"><img name="" src="<!--{$WEB_URL}-->/<!--{$SITE_TPL}-->/images/avatar/4.gif" width="80" height="80" alt="" /></td>
    	<td height="100"><img name="" src="<!--{$WEB_URL}-->/<!--{$SITE_TPL}-->/images/avatar/5.gif" width="80" height="80" alt="" /></td>
    	<td height="100"><img name="" src="<!--{$WEB_URL}-->/<!--{$SITE_TPL}-->/images/avatar/6.gif" width="80" height="80" alt="" /></td>
        <td height="100"><img name="" src="<!--{$WEB_URL}-->/<!--{$SITE_TPL}-->/images/avatar/7.gif" width="80" height="80" alt="" /></td>
  	</tr>
  	<tr>
    	<td height="30"><label><input name="RadioGroup1" type="radio" id="RadioGroup1_0" value="1" onclick="otheravatar();" checked="checked" /></label> </td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" value="2" id="RadioGroup1_1" onclick="otheravatar();" /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" value="3" id="RadioGroup1_2" onclick="otheravatar();" /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" value="4" id="RadioGroup1_3" onclick="otheravatar();" /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" value="5" id="RadioGroup1_4" onclick="otheravatar();" /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" value="6" id="RadioGroup1_5" onclick="otheravatar();" /></label></td>
        <td height="30"><label><input type="radio" name="RadioGroup1" value="7" id="RadioGroup1_6" onclick="qqavatar();" /></label></td>
  	</tr>
</table>
    
    </td>
  </tr>
  <!--{elseif $AVATAR_USABLE eq '0'}-->
  <tr style="height:50px;">
  	<td class="post_box_left"></td>
    <td><input type="hidden" name="RadioGroup1" id="RadioGroup1_1" value="1" /></td>
  </tr>
  <!--{/if}-->
  <tr>
    <td class="post_box_left post_text_l"><span class="post_must">*</span>您的称呼：</td>
    <td colspan="2" class="post_box_right post_text_r"><input name="NickName" class="input4" type="text" onblur="MessageInputCheck(this.name, this.value);" /><div class="post_input_message" id="NickName_InputShowMessage"></div></td>
  </tr>  
  <tr>
    <td class="post_box_left post_text_l"><span class="post_must" id="post_must_qq"></span>QQ号码：</td>
    <td colspan="2" class="post_box_right post_text_r"><input id="QQinput" name="QQ" class="input1" type="text" onblur="MessageInputQQCheck(this.name, this.value);" /><div class="post_input_message" id="QQ_InputShowMessage"></div><div class="post_input_message" id="QQnr_InputShowMessage"></div></td>
  </tr>
  <tr>
    <td class="post_box_left post_text_l">手机号码：</td>
    <td colspan="2" class="post_box_right post_text_r"><input name="Phone" class="input1" type="text" onblur="MessageInputCheck(this.name, this.value);" /><div class="post_input_message" id="Phone_InputShowMessage"></div></td>
  </tr> 
  <tr>
    <td class="post_box_left post_text_l">邮箱：</td>
    <td colspan="2" class="post_box_right post_text_r"><input name="Mail" class="input2" type="text" onblur="MessageInputCheck(this.name, this.value);" /><div class="post_input_message" id="Mail_InputShowMessage"></div></td>
  </tr>
  <tr>
    <td class="post_box_left post_text_l">内容保密：</td>
    <td colspan="2" class="post_box_right post_issecret"><input name="SecretOptions[]" type="hidden" value="0" /><input name="SecretOptions[]" type="checkbox" value="1" /></td>   
  </tr>
  <tr>
    <td class="post_box_left post_text_l">隐私保护：</td>
    <td colspan="2" class="post_box_right post_issecret"><input name="SecretOptions[]" type="checkbox" value="2" checked="checked" /></td>   
  </tr>   
  <tr>
    <td class="post_box_left post_content"><span class="post_must">*</span>内容：</td>
    <td colspan="2" class="post_box_right post_content_r">
    <!--{nocache}-->
    <!--{if $EDIT eq '1'}--> 
    	<!--{if $SELECTEDIT eq 'baidu'}-->
            <!-- 加载编辑器的容器 -->
            <script id="container" name="MessageContentText" type="text/plain">
            </script>
            <!-- 配置文件 -->
            <script type="text/javascript" charset="utf-8" src="<!--{$WEB_URL}-->/include/editor/baidu/ueditor.config.js"></script>
            <!-- 编辑器源码文件 -->
            <script type="text/javascript" charset="utf-8" src="<!--{$WEB_URL}-->/include/editor/baidu/ueditor.all.js"></script>  
            <!-- 实例化编辑器 -->
            <!-- 实例化编辑器 -->
            <script type="text/javascript">
            var ue = UE.getEditor('container', {
                toolbars: [
                    ['bold', 'fontfamily', 'fontsize', 'forecolor', 'insertimage', 'link', 'unlink', 'justifyleft', 'justifycenter', 'justifyright', 'attachment']
                ],
                autoHeightEnabled: true,
                autoFloatEnabled: true,
                initialFrameWidth : 700,
                initialFrameHeight: 220,
                elementPathEnabled: false,
                wordCount: false
            });
            ue.onblur=function(){ //this指的是编辑器输入框对象；
                MessageInputCheck('MessageContentText', ue.getContent());
            }
            </script>
		<!--{elseif $SELECTEDIT eq 'kindeditor'}-->
       		<script charset="utf-8" src="<!--{$WEB_URL}-->/include/editor/kindeditor/kindeditor-all.js"></script>
			<script>
				var editor;
				KindEditor.ready(function(K) {
					editor = K.create('textarea[name="MessageContentText"]', {
						allowFileManager : true
					});
					K('input[name=getHtml]').click(function(e) {
						alert(editor.html());
					});
					K('input[name=isEmpty]').click(function(e) {
						alert(editor.isEmpty());
					});
					K('input[name=getText]').click(function(e) {
						alert(editor.text());
					});
					K('input[name=selectedHtml]').click(function(e) {
						alert(editor.selectedHtml());
					});
					K('input[name=setHtml]').click(function(e) {
						editor.html('<h3>Hello KindEditor</h3>');
					});
					K('input[name=setText]').click(function(e) {
						editor.text('<h3>Hello KindEditor</h3>');
					});
					K('input[name=insertHtml]').click(function(e) {
						editor.insertHtml('<strong>插入HTML</strong>');
					});
					K('input[name=appendHtml]').click(function(e) {
						editor.appendHtml('<strong>添加HTML</strong>');
					});
					K('input[name=clear]').click(function(e) {
						editor.html('');
					});
				});			
			</script>        
        	<textarea name="MessageContentText" style="width:700px;height:220px;" onblur="MessageInputCheck(this.name, this.value);">
			</textarea>        
        <!--{/if}-->         
    <!--{elseif $EDIT eq '0'}-->
    <textarea name="MessageContentText" cols="700" rows="220" onblur="MessageInputCheck(this.name, this.value);"></textarea>
    <!--{/if}-->
    <!--{/nocache}-->
    </td>
    <td><div class="post_input_message" id="MessageContentText_InputShowMessage"></div></td>
  </tr>
  <!--{if $checkcode.0 eq '1'}-->
  <tr>
    <td class="post_box_left post_text_l"><span class="post_must">*</span>验证码：</td>
    <td class="post_check_right post_text_r"><input name="ValidateCode" class="input3" type="text" onblur="MessageInputCheck(this.name, this.value);" /></td>
    <td><a href="javascript:void(0)" onClick="LoadCheckCode();"><img name="" id="CheckCodeImg" src="<!--{$WEB_URL}-->/index.php?action=checkcode&skey=post" width="100" height="40" title="看不清？点击刷新" /></a><div class="post_input_message" id="ValidateCode_InputShowMessage"></div></td>
  </tr>
  <!--{elseif $checkcode.0 eq '0'}-->
  <tr>
  	<td></td>
    <td><input name="ValidateCode" class="input3" type="hidden" value="0000" /></td>
  </tr>
  <!--{/if}--> 
  <tr>
    <td class="post_box_left post_text_l"><!--{nocache}--><input type="hidden" name="PostInputKey" value="<!--{$PostInputKey}-->" /><!--{/nocache}--></td>
    <td colspan="2" class="post_box_right post_text_r" id="sbumit_input"><input name="SubmitButton" type="Submit" value="提交留言" /></td>
  </tr>           
</table>
</form>
</div>
<!--留言界面结束-->

<!--{include file="footer.html"}-->
