<?php
	session_start();
	
	$rset=$_REQUEST['rset'];
	$stext=$_REQUEST['stext'];
	if($rset=='11')
	{
		//注销系统
		$_SESSION['ChainCount_ydtpos']="1";
		$_SESSION['ChainNo_ydtpos'] = "";  
		$_SESSION['ChainName_ydtpos'] = "";  
		$_SESSION['userno_ydtpos'] = "";  
		$_SESSION['pswd_ydtpos'] = "";
		$_SESSION['hotelday_ydtpos'] ="";
		$_SESSION['updatetime_ydtpos'] ="";
		$_SESSION['updatestate_ydtpos'] ="";
		//$_SESSION['logintime_ydtpos'] = time();
		$_SESSION['loginflag_ydtpos'] ="0";
	}
	
	header("Content-type: text/html; charset=gb2312"); 
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="gb2312">	
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
	<meta name="apple-mobile-web-app-capable" content="1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=0">
	<meta name="apple-touch-fullscreen" content="1">

	<title>云点通——部门营业</title>

	<link rel="stylesheet" href="jsp4/jquery.mobile-1.4.3.min.css">
	<script src="jsp4/jquery.js"></script>
	<script src="jsp4/jquery.mobile-1.4.3.min.js"></script>
	<script src="jsp4/jquery.placeholder.min.js"></script>

	<script language="JavaScript"> 
		//不允许进行后退
		javascript:window.history.forward(1); 
	</script>
	<script>
		//禁止页面上下滑动,整个页面都不能滑动了
		document.addEventListener('touchmove', function(e) {
			e.preventDefault();
		});
	</script>
</head>

<script>	
		//隐藏维信右上角菜单
		function onBridgeReady(){
			WeixinJSBridge.call('hideOptionMenu');
		}

		if (typeof WeixinJSBridge == "undefined")
		{
			if( document.addEventListener )
			{
				document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
			}
			else if (document.attachEvent)
			{
				document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
				document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
			}
		}
		else
		{
			onBridgeReady();
		}
	</script>
	
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">

<div data-role="page">
	<header data-role="header" data-position="fixed" data-tap-toggle="false" style="border-top-width:0px;border-bottom-width:0px;bkc">
        <table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" >
		   	<tr bgcolor="#245fec">
				<td height="50" width="45" align="center" valign="middle"></td>
				<td height="50" align="center" valign="middle">
					<span style="color:#fff;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:19px;text-shadow:none;">云点通系统登录</span>
				</td>
				<td height="50" width="45" align="center" valign="middle"></td>
		  	</tr>
			
			<tr bgcolor="#245fec">
				<td colspan="3" height="20">
					<div style="background:#F9F9F9;width:100%;height:20px;padding-top:0px;margin-top:0px; border-radius: 18px 18px 0px 0px;">
						
					</div>
				</td>
		  	</tr>
		</table>
	</header>
			
	<div data-role="content">
		<div style="left:2%;width:98%;height:123px;border-radius:5px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;">	
			<div style="width:100%;height:53px;border-radius:5px;padding-top:5px;padding-bottom:0px;">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td height="60" width="50" align="center">
							<a class="ui-btn ui-icon-user ui-btn-icon-notext ui-corner-all" href="#"></a>			
						</td>
							
						<td height="60" align="right">
							<div style="float:left;width:100%;">
								<input type="text" name="userno" id="userno" value="" placeholder="请输入用户号" data-clear-btn="true"/>
								<script>$("#userno").val(localStorage["main_defuserno_ydtpos"]);</script>
							</div>			
						</td>
							
						<td height="60" width="15"></td>
					</tr>
				</table>    		
			</div>
			
			<div style="width:100%;height:55px;border-radius:5px;padding-top:0px;padding-bottom:0px;">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td height="60" width="50" align="center">
								<a class="ui-btn ui-icon-lock ui-btn-icon-notext ui-corner-all" href="#"></a>			
						</td>
							
						<td height="60" align="right">
							<div style="float:left;width:100%;">
								<input id="pwd" name="pwd" value="" type="password" placeholder="请输入密码" autocomplete="off" data-clear-btn="true" />
							</div>			
						</td>
							
						<td height="60" width="15"></td>
					</tr>
				</table>    		
			</div>
			
		</div>
		
		<div style="width:100%;height:50px;padding-top:30px;">	
						<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td height="35" width="1%"></td>
								<td height="35" width="98%" align="center">
										
									<div onClick="bmtLoginSys();"  style="border:1px solid #B10010; border-radius:15px;width:98%; height:35px;">
										<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
											<tr><td width="100%" height="100%" align="center">
												<span style="color:#B10010 ;font: 12px/1.5 '微软雅黑',tahoma, Srial, helvetica, sans-serif; font-size:14px;text-shadow:none;">登录系统</span>
											</td></tr>
										</table>
									</div>		
								</td>
								<td height="35" width="1%"></td>
							</tr>
						</table>
		</div>

		
		<?php
			if($stext!="")
			{
		?>
		<div align="center"><?php echo $stext;?></div>
		<?php
				$stext="";
			}
		?>
			
	</div>
	
	<footer data-role="footer" data-position="fixed">&nbsp;</footer>
	
	<script type="text/javascript">
		
		function bmtLoginSys()
		{	
			var struserno = $("#userno").val();
		 			var strpswd = $("#pwd").val();
					if(struserno=="")
					{	
						$("#userno").focus();
						return;
					}
		 			parent.window.location.href='logina.php?userno=' + struserno + '&pwd=' + strpswd;
		}
		
		
		 	$("#mypost").click(
				function()
		 		{
		 			var struserno = $("#userno").val();
		 			var strpswd = $("#pwd").val();
					if(struserno=="")
					{	
						$("#userno").focus();
						return;
					}
		 			parent.window.location.href='logina.php?userno=' + struserno + '&pwd=' + strpswd;
		 		}
			);
	</script>
</div>

</body>

</html>
