<!-- 	DESEMPENHO VENDEDOR	-->
<?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="desempvendedor/desempvendedor.js?ver='.$dados->getVersao().'"></script>';
?>
<div data-role="page" data-theme="b" data-control-title="Home"  id="desempvend" class="loading-show loading-hide mobipicker verifica-login">
	<div  data-role="header" data-position="fixed" data-position="fixed">
		<h3>
			Desempenho Vendedor
		</h3>
		<a href="#home" 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="datainidesvendedor">
				De:
			</label>
			<input class="mobipick" id="datainidesvendedor" value='<?php echo date('Y-m-01'); ?>' type="text">
		</div>
		<div data-role="fieldcontain" data-controltype="dateinput">
			<label for="datafindesvendedor">
				Até:
			</label>
			<input class="mobipick" id="datafindesvendedor" value='<?php echo date('Y-m-t'); ?>' type="text">
		</div>
		<ul data-role="listview" data-divider-theme="b" data-inset="true" data-filter="true" data-filter-placeholder="Pesquisar" id="listadesvendedor">
			<li data-role="list-divider" role="heading">
				Vendedores
			</li>
		</ul>
	</div>
</div>

<!-- 	INFO VENDEDOR	-->
<div data-role="page" data-theme="b" data-control-title="Home"  id="infovendedor" class="loading-show verifica-login">
	<div  data-role="header" data-position="fixed" data-position="fixed">
		<h3 id="titulovendedor">
			Vendedor 1
		</h3>
		<a href="#desempvend" 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">
		<ul data-role="listview" data-divider-theme="b" data-inset="true" id="listvisitas">

		</ul>
	</div>
</div>

<!--	VISITAS		-->
<div data-role="page" data-theme="b" data-control-title="Home"  id="relvisitas" 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="titulovisitas">
			Visitas
		</h3>
		<a href="#infovendedor" 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="voltarrelvisitas">
			Voltar
		</a>
	</div>
	<div data-role="content" id="divtabelavisitas" class="conteudo">
		<table data-role="table" id="tabelarelvisitas" 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="4" style="text-align: left;">Cod</th>
				<th style="text-align: left;">Cliente</th>
				<th data-priority="1">Nro Visitas</th>
				<th data-priority="2">Data Ult Visita</th>
				<th data-priority="4">Hora Ult Visita</th>
				<th data-priority="3">Situação Ult Visita</th>
			  </tr>
			</thead>
			<tbody>

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