<?php
	$dir = $_SERVER['DOCUMENT_ROOT']."/".substr(substr($_SERVER['REQUEST_URI'], 1), 0, strpos(substr($_SERVER['REQUEST_URI'], 1), '/'))."/phone_gap/";
	// $dir = $_SERVER['DOCUMENT_ROOT']."/".substr(substr($_SERVER['REQUEST_URI'], 1), 0, strpos(substr($_SERVER['REQUEST_URI'], 1), '/'))."/phone_gap";
	require_once($dir."/dados.php");
	
?>
<!-- LOGIN -->
<html>
	<head>
		<?php
			require_once($dir."/paginas/head.php");
		?>
	</head>
	<body>
		<div data-role="page" data-theme="b" data-control-title="Login" id="login" class="loading-show loading-hide">
			<div data-role="header" data-position="fixed">
				<h3>WMC Sistemas</h3>
			</div>
			<div data-role="content">
				<form action="verifica.php" method="post" data-ajax="false">
					<?php
						if(isset($_GET["erro"])) {
							echo "<p>Login Incorreto</p>";
						}
					?>
					<div data-role="fieldcontain" data-controltype="textinput">
						<label for="usuario">Usuario: </label>
						<input type="text" name="usuario" />
					</div>
					<div data-role="fieldcontain" data-controltype="textinput">
						<label for="senha">Senha: </label>
						<input type="password" name="senha" />
					</div>
					<input type="submit" name="botao" value="Login">
				</form>
			</div>
		</div>
	</body>
</html>