?>

<table border="0" height="100%" width="100%">
	<tr>
		<td valign="top">
		<form name="buscador" action="" method="get"
			ENCTYPE="multipart/form-data" style="clear: both">
		<div style="float: left"><img src="../images/lupa.png" alt="busca" />
		</div>
		<div style="float: left; width: 305px; text-align: right"><label
			style="width: 100px; font-weight: bold; padding-top: 5px; float: left">Status:
		</label> <select name="busca_id_status"
			style="width: 200px; float: left" class="form_estilo">
			<option value="Todos">Todos</option>
			<?php 
$statusDAO = new StatusDAO();
$status = $statusDAO->listarDirecionamento();
$p_valor = '';
foreach ($status as $s) {
    $p_valor .= '<option value="' . $s->id_status . '"';
    if ($busca_id_status == $s->id_status) {
        $p_valor .= ' selected="selected" ';
    }
    $p_valor .= ' >' . $s->status . '</option>';
}
echo $p_valor;
?>
		</select> <br />
		<label
			style="width: 100px; font-weight: bold; padding-top: 5px; float: left">Servico:
		</label> <select name="busca_id_servico"
<?php

require 'header.php';
require '../includes/dias_uteis.php';
$p_valor = '';
$departamento_s = explode(',', $controle_id_departamento_s);
$departamento_p = explode(',', $controle_id_departamento_p);
$servicoDAO = new ServicoDAO();
$pedidoDAO = new PedidoDAO();
$statusDAO = new StatusDAO();
$atividadeDAO = new AtividadeDAO();
$departamentoDAO = new DepartamentoDAO();
$usuarioDAO = new UsuarioDAO();
$empresaDAO = new EmpresaDAO();
pt_register('GET', 'busca_submit');
if ($busca_submit != '') {
    pt_register('GET', 'busca_id_status');
    pt_register('GET', 'busca_id_usuario');
    pt_register('GET', 'busca_id_usuario_op');
    pt_register('GET', 'busca_id_atividade');
    pt_register('GET', 'busca_id_servico');
    pt_register('GET', 'busca_id_pedido');
    pt_register('GET', 'busca_id_empresa');
    pt_register('GET', 'busca_ordem');
    pt_register('GET', 'busca_ordenar');
    pt_register('GET', 'busca');
    pt_register('GET', 'busca_id_departamento');
    pt_register('GET', 'busca_origem');
    pt_register('GET', 'busca_data_i');
    pt_register('GET', 'busca_data_f');
    pt_register('GET', 'busca_data_i_a');
					<p style="width:40px;"><strong>Estado:</strong><br />' . $estado2 . '&nbsp;</p> 
					<p style="width:200px;"><strong>Cidade:</strong><br />' . $cidade2 . '&nbsp;</p> 
					<p style="width:60px;"><strong>CEP:</strong><br />' . $cep2 . '&nbsp;</p> 
				</div>
			</div>
	
		</td>
		<td>&nbsp;</td>
	  </tr>
	</table>
	</body>
	</html>';
    return $html;
}
$dt = new ListaInteressadosDAO();
$dt1 = new StatusDAO();
pt_register('GET', 'id');
pt_register('GET', 'ab');
pt_register('POST', 'submit1');
pt_register('POST', 'submit2');
pt_register('POST', 'submit3');
$dsp1 = 'block';
$dsp2 = 'none';
$dsp3 = 'none';
if ($ab == '2') {
    $dsp1 = 'none';
    $dsp2 = 'block';
    $dsp3 = 'none';
} elseif ($ab == '3') {
    $dsp1 = 'none';
    $dsp2 = 'none';
<?php

require "../includes/topo.php";
$permissao = verifica_permissao('EXPANSAO', $safpostal_departamento_saf);
if ($permissao == 'FALSE' or $safpostal_id_empresa != '1') {
    echo '<br><br><strong>Você não tem permissão para acessar essa página</strong>';
    exit;
}
$dt = new ListaInteressadosDAO();
$dt1 = new StatusDAO();
$total_pagina = 20;
$idst = 0;
?>
<div id="calendario"></div>
<table width="920" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
	<td colspan="3" height="2"></td>
  </tr>
  <tr>
	<td width="152" align="left" valign="top">
		<?php 
require "menu_lateral.php";
?>
	</td>
	<td width="2"></td>
	<td align="left" valign="top">
    	<div style="height:20px; width:766px; background-image:url(../images/paginas/index/barra_de_titulo1.png); background-position:left bottom; background-repeat:no-repeat;">
        	<p style="float:left; margin:0; margin-top:3px; width:322px; font-weight:bold;">Lista de Novos Interessados</p>
            <p style="float:left; margin:0; margin-top:3px; margin-left:28px; width:416px; font-weight:bold; font-weight:bold">Franquia: <?php 
echo $safpostal_fantasia;
?>
<?php

require "../includes/topo.php";
$permissao = verifica_permissao('EXPANSAO', $safpostal_departamento_saf);
if ($permissao == 'FALSE' or $safpostal_id_empresa != '1') {
    echo '<br><br><strong>Você não tem permissão para acessar essa página</strong>';
    exit;
}
$c = new stdClass();
$ficha = new FichaDAO();
$lista = new ListaInteressadosDAO();
$status = new StatusDAO();
foreach ($_POST as $cp => $valor) {
    $c->{$cp} = $valor;
}
$c->acao = 1;
$t = 60;
if ($c->lim) {
    $c->lim1 = $c->lim * $t - $t;
    $c->lim2 = $t - 1;
} else {
    $c->lim1 = 0;
    $c->lim2 = $t;
    $c->lim = 1;
}
$c->id_usuario = $safpostal_id_usuario;
?>
<div id="principal">
	<div style="width:152px;"><?php 
require "menu_lateral.php";
?>
<?php

header("Content-Type: text/html; charset=ISO-8859-1", true);
require "../includes/verifica_logado_safpostal.inc.php";
require '../includes/classQuery_sistecart.php';
require "../includes/funcoes.php";
require "../includes/global.inc.php";
$permissao = verifica_permissao('EXPANSAO', $safpostal_departamento_saf);
if ($permissao == 'FALSE' or $safpostal_id_empresa != '1') {
    echo '<br><br><strong>Você não tem permissão para acessar essa página</strong>';
    exit;
}
pt_register('GET', 'id');
$cor = '#FFF';
$dt = new StatusDAO();
$dt1 = new ListaInteressadosDAO();
$e = $dt->buscaHistorico($id);
$f = $dt1->buscaDataInclude($id);
if (count($e) > 0) {
    ?>
<p align="right"><a href="#historico" onclick="VisualizarHistorico(0, 0);">X FECHAR HISTÓRICO</a></p>
<table width="756" border="0" cellspacing="2" cellpadding="0" style="border:solid 1px #0071B6; margin-top:5px;">
      <tr style="font-weight: bold; background:#95D8FF; font-size:10px;">
        <td width="180" height="20" style="border-bottom:solid 1px #0071B6;">&nbsp;&nbsp;STATUS ANTERIOR</td>
        <td width="131" style="border-bottom:solid 1px #0071B6;">&nbsp;&nbsp;ALTERADO POR:</td>
        <td width="229" style="border-bottom:solid 1px #0071B6;">&nbsp;&nbsp;OBSERVA&Ccedil;&Otilde;ES</td>
        <td width="85" align="center" style="border-bottom:solid 1px #0071B6;">REUNIÃO</td>
        <td width="117" align="center" style="border-bottom:solid 1px #0071B6;">INCLUS&Atilde;O</td>
      </tr>
	<?php 
    foreach ($e as $j => $hst) {
Esempio n. 7
0
                </select>
            </td>
            <td style="width:10px;"></td>
            <td>
            	<strong>Status:</strong><br />
                <select name="busca_id_status" id="busca_id_status" style="width:210px" class="form_estilo">
					<option value="">Todos</option>
                    <option value="Cad/Sol/Des/Exe/Ret" <?php 
if ($busca_id_status == 'Cad/Sol/Des/Exe/Ret') {
    ?>
 selected="selected" <?php 
}
?>
>Cad/Sol/Des/Exe/Ret</option>
                    <?php 
$StatusDAO = new StatusDAO();
$status = $StatusDAO->carregarCombo();
$select = '';
foreach ($status as $s => $st) {
    $select .= '<option value="' . $st->id_status . '" ';
    $select .= $busca_id_status == $st->id_status ? 'selected="selected"' : '';
    $select .= '>' . ucwords(trim(strtolower($st->status))) . '</option>';
}
echo $select;
?>
                </select>
            </td>
            <td style="width:10px;"></td>
            <td>
            	<strong>Ordenando por:</strong><br />
                <select name="busca_ordenar" id="busca_ordenar" style="width:180px" class="form_estilo">