<!--#include file="include/conn.asp"-->
<%
'website:http://www.angelasp.com
' Angel工作室技术开发团队:QQ:815657032、QQ：709047174
' Copyright (C) Angel工作室 (http://www.angelasp.com).  All rights reserved
Dim myusername
myusername=Trim(Request.Cookies("Auser")("UserName"))
If myusername="" Then 
	  response.write ("<script language='javascript'>alert('你未登录请登陆后在发信息');location='index.asp';</script>")
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Angel工作室留言板系统V1.0</title>
<meta name="keywords" content="留言板系统V1.0-Powered By angelasp.com" />
<meta name="description" content="留言板系统V1.0-Powered By angelasp.com" />
<link type="text/css" href="css/css.css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/thickbox_plus.js"></script>
<link rel="stylesheet" type="text/css" href="css/thickbox.css"/>
<link rel="stylesheet" href="kindeditorv4/themes/default/default.css" />
<link rel="stylesheet" href="kindeditorv4/plugins/code/prettify.css" />
<script charset="utf-8" src="kindeditorv4/kindeditor.js"></script>
<script charset="utf-8" src="kindeditorv4/lang/zh_CN.js"></script>
<script charset="utf-8" src="kindeditorv4/plugins/code/prettify.js"></script>
<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="Write_content"]', {
				cssPath : 'kindeditorv4/plugins/code/prettify.css',
				uploadJson : 'kindeditorv4/asp/upload_json.asp',
				fileManagerJson : 'kindeditorv4/asp/file_manager_json.asp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=write_message]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=write_message]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
</script>
</head>
<body>
<div class="bodycontent">
<!--#include file="head.asp"-->

<script language="javascript" type="text/javascript">
function check(){
var a=word.W_user.value;
if(a=="")
{alert("称呼不能为空"); return false;}
return true;
}
function avatar(avatars){
  window.self.document.write_message.msg_face.value=avatars;
  window.self.document.write_message.avatarimg.src=avatars;
}
</script>


<div  style="margin:10px auto; width:800px; font:Arial, Helvetica, sans-serif; font-size:14px;">
<form method="post" name="write_message" id="write_message" action="messagesave.asp">


<div class="writelists">
<div style="width:15%;text-align:center;height:20px;float:left;">称呼：</div>
<div style="width:80%;text-align:left;height:20px;float:left;"><input name="username" value="<%=myusername%>" type="text" class="writemessage" /><font style="color:red"> *</font></div>
</div>

<div class="writelistclear"></div>

<div class="writelists">

<div style="width:15%; height:112px;text-align:center;float:left;">
<input type="hidden" name="msg_face" value="avatar/angel1.jpg" />
<img src="avatar/angel1.jpg" width="102px" height="102px" id="avatarimg" alt="头像"></div>

<div style="width:83%;height:112px;text-align:center;float:left;">
  <% for i=1 to 6 %>
  <div id="content_img">
  <img src="avatar/angel<%=i%>.jpg" width="102px" height="102px" onclick="avatar('avatar/angel<%=i%>.jpg')" title="头像<%=i%>" alt="头像<%=i%>">
  </div>
  <% next%>
  <a href="#" style="width:30px;height:102px" onclick="javascript:window.open('avatar.asp','avatar','width=480px,height=400px,scrollbars=1')">
  <img src="images/picmore.gif" width="30px" height="102px" alt="点击择过多头像图">
  </a>
  </div>
</div>

<div class="writelistclear"></div>


<div class="writelists">
<div style="width:15%;text-align:center;float:left;">留言内容：</div>
<div style="width:20%;float:left;">  
<textarea name="Write_content" style="width:670px;height:200px;visibility:hidden;"></textarea>
</div>
</div>

<div class="writelists">
<td colspan="2" height="6"></td>
</div>

<div class="writelists">
<div  style="width:20%; text-align:center;">
</div>

<div class="writelists">
<input type="submit" name="send" class="sumbit" value="确定提交"  onclick="return check();" /> 
<input type="reset" class="sumbit" value="重新填写" />
</div>
</div>
</form>
</div>
 <!--#include file="foot.asp"-->
 <!--#include file="couter.asp"-->
</div>
</body>
</html>
