

<?php 
include_once'cookie.php';

$re=$_SERVER['PHP_SELF'];
$fileId=$_GET['fileId'];
$type=$_GET['type'];
$user=$_GET['user'];
$muluname=$_GET['muluname'];

if($type == '1')
echo "<script>mdui.alert('密码错误')</script>";
echo "<html lang='en'>
<head>
	<meta charset='UTF-8'>
	<title>请输入密码</title>
	<meta http-equiv='X-UA-Compatible' content='IE=edge'/>
	<meta name='renderer' content='webkit'/>
	<meta name='viewport' content='width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no'>
	<meta http-equiv='Cache-Control' content='no-siteapp'/>
	<script src='/static/js/mdui.js'></script>
	<link href='/static/css/mdui.css' rel='stylesheet'>
</head>
<body class='mdui-drawer-body-center mdui-appbar-with-toolbar  mdui-theme-primary-indigo mdui-theme-accent-pink'>
	<header class='mdui-appbar mdui-appbar-fixed'>
		<div class='mdui-toolbar $headcolor'>
			<a href='#' class='mdui-typo-headline mdui-hidden-xs'>$title</a>
			<div class='mdui-toolbar-spacer'></div>
		</div>
	</header>
	<div class='mdui-container'>
		<div style='height: 30px;'>&nbsp;</div>
		<div class='mdui-typo-display-1'>
			<i class='mdui-icon material-icons'>&#xe150;</i>&nbsp;&nbsp;&nbsp;
		<i class='mdui-icon material-icons'>请输入密码</i>

		
		</div>
		<div>
		</div>
		

		<div class='mdui-textfield mdui-textfield-floating-label'>
			<label class='mdui-textfield-label'>password</label>
			<input class='mdui-textfield-input' type='password'/>
			<br />
			<br />
			<button class='mdui-center mdui-btn mdui-btn-raised mdui-ripple $buttoncolor'>进入</button>
		</div>

	</div>
</body>
<script src='//cdn.bootcss.com/jquery/3.4.1/jquery.min.js'></script>
<script type='text/javascript'>
	$('.mdui-btn').click(function(){
		var fileId = '$fileId';
		var type = '1';
		var user = '$user';	
		var re = '$re';	
		var muluname = '$muluname';	
		var pass = $('.mdui-textfield-input').val();
		if (pass == '') {
			mdui.alert('请输入密码');
		}else{

			$.get(re,{'pass':pass ,'fileId':fileId,'type':type},function(data){
				window.location.href = re + '?pass=' + pass + '&fileId=' + fileId + '&type=' + type + '&user=' + user + '&muluname=' + muluname;

			})
		}
	})
</script>
</html>";
?>