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

<!--位置和统计开始-->
<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}-->/admin/index.php?action=edit&id=<!--{$EditMsg.id}-->" method="post">
<table cellspacing="0"> 
  <tr>
    <td colspan="3"><div class="post_careful">注：带 <span>*</span> 符号的为必填项</div></td>
  </tr>
  <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 type="radio" name="RadioGroup1" id="RadioGroup1_0" value="1" onclick="otheravatar();" <!--{if $EditMsg.avatar eq '1'}-->checked="checked"<!--{/if}--> /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" id="RadioGroup1_1" value="2" onclick="otheravatar();" <!--{if $EditMsg.avatar eq '2'}-->checked="checked"<!--{/if}--> /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" id="RadioGroup1_2" value="3" onclick="otheravatar();" <!--{if $EditMsg.avatar eq '3'}-->checked="checked"<!--{/if}--> /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" id="RadioGroup1_3" value="4" onclick="otheravatar();" <!--{if $EditMsg.avatar eq '4'}-->checked="checked"<!--{/if}--> /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" id="RadioGroup1_4" value="5" onclick="otheravatar();" <!--{if $EditMsg.avatar eq '5'}-->checked="checked"<!--{/if}--> /></label></td>
    	<td height="30"><label><input type="radio" name="RadioGroup1" id="RadioGroup1_5" value="6" onclick="otheravatar();" <!--{if $EditMsg.avatar eq '6'}-->checked="checked"<!--{/if}--> /></label></td>
        <td height="30"><label><input type="radio" name="RadioGroup1" id="RadioGroup1_6" value="7" onclick="qqavatar();" <!--{if $EditMsg.avatar eq '7'}-->checked="checked"<!--{/if}--> /></label></td>
  	</tr>
</table>
    
    </td>
  </tr>
  <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" value="<!--{$EditMsg.nickname}-->" 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" value="<!--{$EditMsg.qq}-->" 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" value="<!--{$EditMsg.mobile}-->" 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" value="<!--{$EditMsg.email}-->" 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" <!--{if $EditMsg.secret eq '1'}-->checked="checked"<!--{/if}--> /></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" <!--{if $EditMsg.privacy eq '2'}-->checked="checked"<!--{/if}--> /></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 $SELECTEDIT eq 'baidu'}-->
        <!-- 加载编辑器的容器 -->
        <script id="container" name="MessageContentText" type="text/plain">
        <!--{$EditMsg.content}-->
        </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,
            enterTag: '',
            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);">
            <!--{$EditMsg.content}-->
			</textarea>        
        <!--{/if}-->    
    <!--{/nocache}-->
    </td>
    <td><div class="post_input_message" id="MessageContentText_InputShowMessage"></div></td>
  </tr> 
  <tr>
    <td class="post_box_left post_text_l"></td>
    <td colspan="2" class="post_box_right post_text_r" id="sbumit_input"><!--{nocache}--><input type="hidden" name="EditInputKey" value="<!--{$EditInputKey}-->" /><!--{/nocache}--><input name="EditButton" type="Submit" value="确认修改" /></td>
  </tr>           
</table>
</form>
</div>
<!--留言界面结束-->

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