<!--	CLIENTES NÃO VISITADOS		-->
<?php
	$dir = $_SERVER['DOCUMENT_ROOT']."/".substr(substr($_SERVER['REQUEST_URI'], 1), 0, strpos(substr($_SERVER['REQUEST_URI'], 1), '/'))."/phone_gap/";
	require_once($dir."/classes/Dados.class.php");
	$dados = new Dados();
	
	echo '<script src="clinaovisit/clinaovisit.js?ver='.$dados->getVersao().'"></script>';
?>
<div data-role="page" data-theme="b" data-control-title="Vendas" id="clinaovisit" class="loading-show loading-hide mobipicker verifica-login">
	<div  data-role="header" data-position="fixed">
		<h3>
			Não Visitados
		</h3>
		<a href="#home" id="botaoclinaovisit" data-role="button" data-direction="reverse" data-transition="slide" class="ui-btn ui-shadow ui-corner-all ui-btn-icon-left ui-icon-back">
			Voltar
		</a>
	</div>
	<div data-role="content" class="conteudo">
		<div data-role="fieldcontain" data-controltype="dateinput">
			<label for="datainiclinaovisit">
				De:
			</label>
			<input class="mobipick" id="datainiclinaovisit" value='<?php echo date('Y-m-01'); ?>' type="text">
		</div>
		<div data-role="fieldcontain" data-controltype="dateinput">
			<label for="datafinclinaovisit">
				Até:
			</label>
			<input class="mobipick" id="datafinclinaovisit" value='<?php echo date('Y-m-t'); ?>' type="text">
		</div>
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="filtrogerenteclinaovisit">Gerente: </label>
			<select id="filtrogerenteclinaovisit" name="" class="filtro"></select>
		</div>
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="filtrosupervisorclinaovisit">Supervisor: </label>
			<select id="filtrosupervisorclinaovisit" name="" class="filtro"></select>
		</div>
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="filtrovendedorclinaovisit">Vendedor: </label>
			<select id="filtrovendedorclinaovisit" name="" class="filtro"></select>
		</div>
		<div data-role="fieldcontain">
			<label for="filtroclienteclinaovisit">Cliente: </label>
			<form class="ui-filterable">
				<input type="hidden" id="codfiltroclienteclinaovisit" value="">
				<input id="filtroclienteclinaovisit" data-type="search" placeholder="Escolha um cliente">
				<ul id="autocomplete-filtroclienteclinaovisit" data-role="listview", data-inset="true" data-filter="true" data-input="#filtroclienteclinaovisit"></ul>
			</form>
		</div>
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="clinaovisitclientepor">Cliente por:</label>

			<select id="clinaovisitclientepor" class="gambito" name="" >
				<option value="Clientes" selected="selected">Cliente<s/option>
				<option value="Rotas">Rotas</option>
			</select>
		</div>
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="filtrocidadeclinaovisit">Cidades: </label>
			<select id="filtrocidadeclinaovisit" name="" class="filtro"></select>
		</div>
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="filtroregiaoclinaovisit">Regiões: </label>
			<select id="filtroregiaoclinaovisit" name="" class="filtro"></select>
		</div>
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="clinaovisitagrupar">Agrupar por:</label>

			<select id="clinaovisitagrupar" name="" >
				<option value="" selected="selected">Sem Agrupamento</option>
				<option value="Vendedor">Vendedor</option>
				<option value="Supervisor">Supervisor</option>
			</select>
		</div>
	
		<a id="botaovisualizarclinaovisit" data-role="button" data-icon="arrow-r" data-iconpos="right" >
			Visualizar
		</a>
	</div>
</div>

<!-- RELATORIO -->
<div data-role="page" data-theme="b" data-control-title="Home"  id="relclinaovisit" class="loading-show verifica-login">
	<div  data-role="header" data-position="fixed" data-position="fixed">
		<h3 class="ui-title" role="heading" aria-level="1" id="tituloclinaovisit">
			Não Visitados
		</h3>
		<a href="#clinaovisit" data-role="button" data-direction="reverse"  data-transition="slide" class="ui-btn ui-shadow ui-corner-all ui-btn-icon-left ui-icon-back" id="voltarrelclinaovisit">
			Voltar
		</a>
	</div>
	<div data-role="content" id="divtabelaclinaovisit" class="conteudo">
		<table data-role="table" id="tabelarelclinaovisit" data-mode="columntoggle" class="ui-body-d ui-shadow table-stripe ui-responsive" data-column-btn-theme="b" data-column-btn-text="Colunas" data-column-popup-theme="b" style="text-align: center;" >
			<thead>
			  <tr class="ui-bar-d">
				<th data-priority="1" style="text-align: left;">Código</th>
				<th data-priority="1" style="text-align: left;">Cliente</th>
				<th data-priority="1">Motivo</th>
				<th data-priority="2">Valor</th>
				<th data-priority="1">Data</th>
				<th data-priority="1">Dias sem visita</th>
			  </tr>
			</thead>
			<tbody>

			</tbody>
		</table>
	</div>
</div>