<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Admin_About.aspx.vb" Inherits="TourEx.Web.Admin_About" %>
<!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>无标题页</title>
<link rel="stylesheet" type="text/css" href="Css/Style.css"/>
<script type="text/javascript" src="../Sys/Js/jquery.js"></script>
<script type="text/javascript" src="../Sys/Js/jquery.validate.js"></script>
<script type="text/javascript" src="../Sys/Js/jquery.validate.check.js"></script>
<script type="text/javascript" src="../Sys/WebEdit/xheditor-zh-cn.min.js"></script>
<script type="text/javascript" src="../Sys/WebEdit/xheditor_plugins/ubb.min.js"></script>
</head>
<body>
<ul class="navLocation">
	<li>您当前位置：<a href="Admin_Main.aspx">首页</a> > <a href="Admin_AboutList.aspx">关于我们列表</a> > <asp:Label ID="navIgation" runat="server" Text=""></asp:Label></li>
</ul>
<form runat="server" id="TourExForm">
<asp:HiddenField ID="RanNum" runat="server" />
<div class="infoBox">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="infoBoxTd">标题：</td>
		<td><asp:TextBox ID="A_Title" runat="server" size="40" class="formTitle"></asp:TextBox></td>
	</tr>
	<tr>
		<td class="infoBoxTd">Url跳转：</td>
		<td><asp:TextBox ID="A_Url" runat="server" size="50" onkeyup="$('#A_Text').valid();" class="formTitle"></asp:TextBox></td>
	</tr>
	<tr>
		<td class="infoBoxTd">内容：</td>
		<td><asp:TextBox ID="A_Text" runat="server" TextMode="MultiLine"></asp:TextBox></td>
	</tr>
	<tr>
		<td class="infoBoxTd">排序：</td>
		<td><asp:TextBox ID="A_OrderId" runat="server" size="10" onkeyup="this.value=this.value.replace(/\D/g,'');" class="formTitle"></asp:TextBox></td>
	</tr>
	<tr>
		<td class="infoBoxTd">&nbsp;</td>
		<td><asp:Button ID="Button1" runat="server" Text="添加" CssClass="formInput01" /></td>
	</tr>
</table>
</div>
</form>

<script language="javascript" type="text/javascript">
	<!--//
	var editor;
	$(function(){
		editor = $('#A_Text').xheditor({tools:'full',width:'90%',height:'300',forcePtag:false,internalScript:true,inlineScript:true,linkTag:true,localUrl:'root',showBlocktag:true,beforeSetSource:ubb2html,beforeGetSource:html2ubb,upImgUrl:'Admin_Upload.ashx?r='+$('#RanNum').val(),upFlashUrl:'Admin_Upload.ashx?r='+$('#RanNum').val(),upMediaUrl:'Admin_Upload.ashx?r='+$('#RanNum').val(),focus:function(){$('#A_Text').valid();$('#A_Url').valid();},blur:function(){$('#A_Text').valid();$('#A_Url').valid();}});
		editor.setSource(html2ubb($('#A_Text').val()));
		$("#TourExForm").validate({
			rules:{
				A_Title: {required: true},
				A_Url:{required: function(){return $('#A_Text').val()=='';}},
				A_Text:{required:function(){return $('#A_Url').val()=='';}}
			},
			messages: {
				A_Title: {required: '请填写标题'},
				A_Url:{required: 'Url跳转和内容必填一项'},
				A_Text: {required: 'Url跳转和内容必填一项'}
			}
		}); 
	});
	//-->
</script>
</body>
</html>
