<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>辰颐物语小袁团队留言板官方网站 -Powered by xiaoyuanMessage</title>
<meta name="keywords" content="辰颐,辰颐物语,辰颐果园官网,辰颐物语微商,辰颐果园小袁,辰颐果园小袁团队,辰颐物语小袁团队,水果微商,加盟辰颐物语,PHP留言板,小袁留言板,模板,留言板模板,Powered by xiaoyuanMessage" />
<meta name="description" content="辰颐物语小袁团队留言板官方网站 - Powered by xiaoyuanMessage" />
</head>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/add.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="kindeditor/themes/default/default.css" />
<script charset="utf-8" src="kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="js/input.js"></script>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){ 
	username.focus();
	$("#btn_ly").click(function(){
	    if (username.value.replace(/\s/g,"")==""){alert("昵称不能为空!");username.focus();return false }
	    if (content.value.replace(/\s/g,"")==""){alert("留言内容不能为空!");content.focus();return false }
	    if (formyzm.value.replace(/\s/g,"")==""){alert("验证码不能为空!");formyzm.focus();return false }
		var f_image = $("#image").val();
		var f_username = $("#username").val();
		var f_qq = $("#qq").val();
		var f_weixin = $("#weixin").val();
		var f_email = $("#email").val();
		var f_formprivate = $("#formprivate").val();
		var f_content = $("#content").val();
		var f_yzm = $("#formyzm").val();
            $.post("check_add.php",{	
                check_image : f_image,	
                check_username : f_username,
				check_qq : f_qq,
				check_weixin : f_weixin,
				check_email : f_email,
				check_formprivate : f_formprivate,
				check_content : f_content,
				check_yzm : f_yzm
            },function(data){
			var json = $.parseJSON(data);
			if(json.success){
			alert(json.msg);
			window.location.href='index.php';
			} else{
			alert(json.msg);
			}
				 

        }); 
    });
})
</script>

<body>

<?php include("head_common.php");?>

<div class="contfram_canvas">
	<div class="cont_canvas">
		<a class="addly_btn" ></a>
		<div class="addly_canvas">
			<h3>发表留言 （带*符号的为必填项目）</h3>
			<ul class="lyform_canvas">
				<p><img id="image1" name="image1" src="head/001.gif"></p>
				<li>
					<label>头像选择:</label>
					<select name="image"  id="image" onChange="image1.src=this.value" >
						<option value="head/001.gif">男1</option>
						<option value="head/002.gif">男2</option>
						<option value="head/003.gif">男3</option>
						<option value="head/004.gif">男4</option>
						<option value="head/005.gif">男5</option>
						<option value="head/006.gif">男6</option>
						<option value="head/007.gif">男7</option>
						<option value="head/008.gif">男8</option>
						<option value="head/009.gif">女1</option>
						<option value="head/010.gif">女2</option>
						<option value="head/011.gif">女3</option>
						<option value="head/012.gif">女4</option>
						<option value="head/013.gif">女5</option>
						<option value="head/014.gif">女6</option>
						<option value="head/015.gif">女7</option>
						<option value="head/016.gif">女8</option>
					</select>
				</li>
				<li>
					<label>昵 称: &nbsp;&nbsp;&nbsp;&nbsp;</label>
					<input name="username" type="text" id="username" maxlength="8" />
					<span class="styletext_red">*</span>
				</li>
				<li>
					<label>QQ号码:</label>
					<input name="qq" type="text" id="qq" maxlength="12" />
				</li>
				<li>
					<label>微信号码:</label>
					<input name="weixin" type="text" id="weixin" maxlength="11" />
				</li>
				<li>
					<label>电子邮箱:</label>
					<input name="email" type="text" id="email"  maxlength="25" />
				</li>
				<li>
					<label>隐私保护:</label>
					<select name="formprivate" id="formprivate">
						<option value="0" selected="selected">公开</option>
						<option value="1" >仅管理员查看</option>
					</select>
       			    <label for="checkbox"><span class="styletext_red"> (仅管理员查看，您填写的留言内容将只有管理员可见) </span></label>
				</li>
				<li>
					<label>留言内容:</label>
					<textarea name="content" id="content" style="width:500px;height:200px;visibility:hidden;"></textarea>
				</li>
				<li>
					<label>验证码:</label>
					<input class="yzm_text" type="text" name="formyzm" id="formyzm" maxlength="4" ></input>
					<div class="yzdimg">
						<img src="yzt.php" id="codeimg" style="cursor:pointer;" title="点击更换图片" onClick="this.src = this.src+'?'+Math.random();" >
					</div>
				</li>
				<li>
					<input class="ly_btn" name="btn_ly" id="btn_ly" type="submit" value="提交留言" />
				</li>
			</ul>
		</div>
		
		
	</div>
</div>

<?php include("bottom_common.php");?>

</body>
</html>
