<!--	POSITIVAÇÃO DE CLIENTES		-->
<?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="positivcli/positivcli.js?ver='.$dados->getVersao().'"></script>';
?>
<div data-role="page" data-theme="b" data-control-title="Vendas" id="positivcli" class="loading-show loading-hide mobipicker verifica-login">
	<div  data-role="header" data-position="fixed">
		<h3>
			Positivação de Clientes
		</h3>
		<a href="#home" id="botaopositivcli" 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="datainipositivcli">
				De:
			</label>
			<input class="mobipick" id="datainipositivcli" value='<?php echo date('Y-m-01'); ?>' type="text">
		</div>
		<div data-role="fieldcontain" data-controltype="dateinput">
			<label for="datafinpositivcli">
				Até:
			</label>
			<input class="mobipick" id="datafinpositivcli" value='<?php echo date('Y-m-t'); ?>' type="text">
		</div>
		
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="filtrovendedorpositivcli">Vendedor: </label>
			<select id="filtrovendedorpositivcli" name="" class="filtro"></select>
		</div>
		
				
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="positivclimodelo">Modelo:</label>

			<select id="positivclimodelo" name="" >
				<option value="NaoPositivados" selected="selected">Não Positivados</option>
				<option value="Positivados">Positivados</option>
			</select>
		</div>
		
		<div data-role="fieldcontain" data-controltype="selectmenu">
			<label for="positivcliclientepor">Cliente por:</label>

			<select id="positivcliclientepor" 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="positivcliagrupar">Agrupar por:</label>

			<select id="positivcliagrupar" name="" >
				<option value="" selected="selected">Sem Agrupamento</option>
				<option value="Vendedor">Vendedor</option>
				<option value="Cidade">Cidade</option>
			</select>
		</div>
	
		<a id="botaovisualizarpositivcli" data-role="button" data-icon="arrow-r" data-iconpos="right" href="#relpositivcli">
			Visualizar
		</a>
	</div>
</div>

<div data-role="page" data-theme="b" data-control-title="Home" id="relpositivcli" class="loading-show verifica-login">
	<div  data-role="header" data-position="fixed" data-position="fixed">
		<h3 class="ui-title" role="heading" aria-level="1">
			Positivação de Clientes
		</h3>
		<a href="#positivcli" 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="voltarrelpositivcli">
			Voltar
		</a>
	</div>
	<div data-role="content" id='divtabelapositivcli' class="conteudo">
		<table data-role="table" id="tabelarelpositivcli" 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;">Código</th>
				<th data-priority="1" style="text-align: left;">Cliente</th>
				<th data-priority="5">Fantasia</th>
				<th data-priority="2">Data Ult Venda</th>
				<th data-priority="3">Nro Dias sem Venda</th>
			  </tr>
			</thead>
			<tbody>

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