<%@ Page Language="C#" AutoEventWireup="true" Inherits="ui.page.sitemap" ValidateRequest="false" %>
<%@ Import namespace="System.Collections.Generic" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by WJDHcms Template Engine at 2019/5/22 17:04:21.
		本页面代码由WJDHCMS模板引擎生成于 2019/5/22 17:04:21. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);

	templateBuilder.Append("<link href=\"");
	templateBuilder.Append("/templates/pc_wjdh");
	templateBuilder.Append("/css/messagebox.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\r\n\r\n<style>\r\n\r\n\r\n\r\n\r\n\r\n .wjdh-mess-container .wjdh-mess-head {\r\n\r\n\r\n\r\n\r\n\r\n 	background-color: #");
	templateBuilder.Append(Utils.ObjectToStr(site.color));
	templateBuilder.Append(";\r\n\r\n\r\n\r\n\r\n\r\n }\r\n\r\n\r\n\r\n\r\n\r\n .wjdh-mess-foot-send-btn {\r\n\r\n\r\n\r\n\r\n\r\n 	border: 1px solid #");
	templateBuilder.Append(Utils.ObjectToStr(site.color));
	templateBuilder.Append(";\r\n\r\n\r\n\r\n\r\n\r\n 	background: #");
	templateBuilder.Append(Utils.ObjectToStr(site.color));
	templateBuilder.Append(";\r\n\r\n\r\n\r\n\r\n\r\n }\r\n\r\n\r\n\r\n\r\n\r\n</style>\r\n\r\n\r\n<ins class=\"wjdh-mess-container\"> <ins class=\"wjdh-mess-head\"> <ins class=\"wjdh-mess-fold\"></ins>请您留言</ins> <ins class=\"wjdh-mess-text2\">\r\n\r\n\r\n<p>");
	templateBuilder.Append(Utils.ObjectToStr(site.order_company));
	templateBuilder.Append("</p>\r\n\r\n\r\n<span>");
	templateBuilder.Append(Utils.ObjectToStr(site.freecall));
	templateBuilder.Append("</span></ins> <ins class=\"wjdh-mess-body\"> <ins class=\"wjdh-mess-item wjdh-mess-clearfix\"> <ins class=\"wjdh-mess-item-head\"><i class=\"head_bd_bp_messName  head-icon\"></i></ins> <ins class=\"wjdh-mess-input-wrap\">\r\n\r\n\r\n<input type=\"text\" id=\"wjdh-mess-name\" class=\"wjdh-mess-item-body\" placeholder=\"姓名\">\r\n\r\n\r\n</ins> </ins> <ins class=\"wjdh-mess-item wjdh-mess-clearfix\"> <ins class=\"wjdh-mess-item-head\"><i class=\"head_bd_bp_messPhone head-icon\"></i></ins> <ins class=\"wjdh-mess-input-wrap\">\r\n\r\n\r\n<input type=\"text\" id=\"wjdh-mess-tel\" class=\"wjdh-mess-item-body\" placeholder=\"电话\">\r\n\r\n\r\n</ins> </ins> <ins class=\"wjdh-mess-item wjdh-mess-clearfix\"> <ins class=\"wjdh-mess-item-head\"><i class=\"head_bd_bp_messEmail head-icon\"></i></ins> <ins class=\"wjdh-mess-input-wrap\">\r\n\r\n\r\n<textarea rows=\"3\" id=\"wjdh-mess-content\" placeholder=\"留言内容\"></textarea>\r\n\r\n\r\n</ins> </ins> </ins> <ins class=\"wjdh-mess-foot\"> <a class=\"wjdh-mess-foot-send-btn\" id=\"wjdh-mess-foot-send-btn\">提 交</a> </ins> <ins class=\"wjdh-mess-powerby\"> 技术支持：万家灯火 </ins> </ins>\r\n\r\n\r\n<script type=\"text/javascript\">\r\n\r\n\r\n\r\n\r\n\r\n$(function(){\r\n\r\n\r\n\r\n\r\n\r\n	var status = 1;\r\n\r\n\r\n\r\n\r\n\r\n	$('body').on('click','.wjdh-mess-head',function() {\r\n\r\n\r\n\r\n\r\n\r\n		if(status==1){\r\n\r\n\r\n\r\n\r\n\r\n			$('.wjdh-mess-container').animate({bottom: '-287px'});\r\n\r\n\r\n\r\n\r\n\r\n			status=0;\r\n\r\n\r\n\r\n\r\n\r\n		}else {\r\n\r\n\r\n\r\n\r\n\r\n			$('.wjdh-mess-container').animate({bottom: '0'});\r\n\r\n\r\n\r\n\r\n\r\n			status=1;\r\n\r\n\r\n\r\n\r\n\r\n		}\r\n\r\n\r\n\r\n\r\n\r\n	});\r\n\r\n\r\n\r\n\r\n\r\n	$('.wjdh-mess-foot-send-btn').click(function() {\r\n\r\n\r\n\r\n\r\n\r\n		var kcontent = $('#wjdh-mess-content').val();\r\n\r\n\r\n\r\n\r\n\r\n		var kuser = $('#wjdh-mess-name').val();\r\n\r\n\r\n\r\n\r\n\r\n		var kphone = $('#wjdh-mess-tel').val();\r\n\r\n\r\n\r\n\r\n\r\n		if (kuser == \"\") {\r\n\r\n\r\n\r\n\r\n\r\n			$(\"#wjdh-mess-content\").focus();\r\n\r\n\r\n\r\n\r\n\r\n			return false;\r\n\r\n\r\n\r\n\r\n\r\n		}\r\n\r\n\r\n\r\n\r\n\r\n		if (kphone == \"\") {\r\n\r\n\r\n\r\n\r\n\r\n			$(\"#wjdh-mess-name\").focus();\r\n\r\n\r\n\r\n\r\n\r\n			return false;\r\n\r\n\r\n\r\n\r\n\r\n		}\r\n\r\n\r\n\r\n\r\n\r\n		if (kcontent == \"\") {\r\n\r\n\r\n\r\n\r\n\r\n			$(\"#wjdh-mess-tel\").focus();\r\n\r\n\r\n\r\n\r\n\r\n			return false;\r\n\r\n\r\n\r\n\r\n\r\n		}else if(kcontent.length<20) {		\r\n\r\n\r\n\r\n\r\n\r\n			alert(\"留言内容不足20字！\")\r\n\r\n\r\n\r\n\r\n\r\n			return false;\r\n\r\n\r\n\r\n\r\n\r\n		}\r\n\r\n\r\n\r\n\r\n\r\n		$.post(\"/api/message.ashx?action=add\", {\r\n\r\n\r\n\r\n\r\n\r\n			\"kcontent\": kcontent,\r\n\r\n\r\n\r\n\r\n\r\n			\"kuser\": kuser,\r\n\r\n\r\n\r\n\r\n\r\n			\"kphone\": kphone,\r\n\r\n\r\n\r\n\r\n\r\n		}, function (d) {\r\n\r\n\r\n\r\n\r\n\r\n			if (d == \"1\") {\r\n\r\n\r\n\r\n\r\n\r\n				alert(\"留言提交成功\");\r\n\r\n\r\n\r\n\r\n\r\n				$('#wjdh-mess-content').val(\"\");\r\n\r\n\r\n\r\n\r\n\r\n				$('#wjdh-mess-name').val(\"\");\r\n\r\n\r\n\r\n\r\n\r\n				$('#wjdh-mess-tel').val(\"\");\r\n\r\n\r\n\r\n\r\n\r\n			} else {\r\n\r\n\r\n\r\n\r\n\r\n				alert(\"留言提交失败！\");\r\n\r\n\r\n\r\n\r\n\r\n			}\r\n\r\n\r\n\r\n\r\n\r\n		})\r\n\r\n\r\n\r\n\r\n\r\n	})\r\n\r\n\r\n\r\n\r\n\r\n})\r\n\r\n\r\n\r\n\r\n\r\n</");
	templateBuilder.Append("script>\r\n\r\n\r\n");
	Response.Write(templateBuilder.ToString());
}
</script>
