} else if ( VerificarCargo($conexao,$sslogado,35) or VerificarCargo($conexao,$sslogado,21) or $sslogado == 1 ){ ?> <option <? if ($status_R =="PARA-CORRIGIR" ) echo "selected"; ?> value="PARA-CORRIGIR" >Para Corrigir</option> <option <? if ($status_R =="ANDAMENTO" ) echo "selected"; ?> value="ANDAMENTO">Andamento</option> <option <? if ($status_R =="ALTERAR" ) echo "selected"; ?> value="ALTERAR">Alterar</option> <option <? if ($status_R =="CORRECAO-CONCLUIDA" ) echo "selected"; ?> value="CORRECAO-CONCLUIDA">Correção Concluída</option> <option <? if ($status_R =="PENDENCIA-DO-CLIENTE" ) echo "selected"; ?> value="PENDENCIA-DO-CLIENTE">Pendência do Cliente</option> <option <? if ($status_R =="FAZER-POST" ) echo "selected"; ?> value="FAZER-POST">Fazer Post</option> <option <? if ($status_R =="POST-REALIZADO" ) echo "selected"; ?> value="POST-REALIZADO">Post Realizado</option> <? } else if ( VerificarCargo($conexao,$sslogado,21) or VerificarCargo($conexao,$sslogado,26) or $sslogado == 1 ){ ?> <option <? if ($status_R =="CRIAR-TEXTO" ) echo "selected"; ?> value="CRIAR-TEXTO">Criar texto</option> <option <? if ($status_R =="TEXTO-ANDAMENTO" ) echo "selected"; ?> value="TEXTO-ANDAMENTO">Texto em Andamento</option> <option <? if ($status_R =="TEXTO-CRIADO" ) echo "selected"; ?> value="TEXTO-CRIADO">Texto Criado</option> <? } ?> </SELECT> <br> <div style="background:#C8C8E8;padding:2px;" > Para Corrigir: <br>
<option value="PENDENCIA-DO-CLIENTE">Pendência do Cliente</option> <option value="PRODUZIDO-E-ENTREGUE">Produzido e Entregue</option> <option value="AGUARDANDO-PRODUCAO">Aguardando Produção</option> </SELECT> <br> <br> <label for="name">Novo Status - Correção</label><br> <SELECT name="new_status_R" class="button_mo"> <option selected value="" >-- Sem Status --</option> <option value="PARA-CORRIGIR" >Para Corrigir</option> <? if (!VerificarCargo($conexao,$sslogado,20)) {?> <option value="ANDAMENTO">Andamento</option> <option value="ALTERAR">Alterar</option> <option value="CORRECAO-CONCLUIDA">Correção Concluída</option> <option value="PENDENCIA-DO-CLIENTE">Pendência do Cliente</option> <option value="FAZER-POST">Fazer Post</option> <option value="POST-REALIZADO">Post Realizado</option> <option value="CRIAR-TEXTO">Criar texto</option> <? } ?> </SELECT> </fieldset>
<option <? if ($status_R =="PARA-CORRIGIR" ) echo "selected"; ?> value="PARA-CORRIGIR" >Para Corrigir</option> <option <? if ($status_R =="ANDAMENTO" ) echo "selected"; ?> value="ANDAMENTO">Andamento</option> <option <? if ($status_R =="ALTERAR" ) echo "selected"; ?> value="ALTERAR">Alterar</option> <option <? if ($status_R =="CORRECAO-CONCLUIDA" ) echo "selected"; ?> value="CORRECAO-CONCLUIDA">Correção Concluída</option> <option <? if ($status_R =="PENDENCIA-DO-CLIENTE" ) echo "selected"; ?> value="PENDENCIA-DO-CLIENTE">Pendência do Cliente</option> <? } if ( VerificarCargo($conexao,$sslogado,38) or $sslogado == 1 ){ // PERFIL REVISAO ?> <option <? if ($status_R =="POST-REALIZADO" ) echo "selected"; ?> value="POST-REALIZADO">Post Realizado</option> <? } else if ( VerificarCargo($conexao,$sslogado,26) or $sslogado == 1 ){ // PERFIL REDAÇAO ?> <option <? if ($status_R =="CRIAR-TEXTO" ) echo "selected"; ?> value="CRIAR-TEXTO">Criar texto</option> <option <? if ($status_R =="TEXTO-ANDAMENTO" ) echo "selected"; ?> value="TEXTO-ANDAMENTO">Texto em Andamento</option> <option <? if ($status_R =="TEXTO-CRIADO" ) echo "selected"; ?> value="TEXTO-CRIADO">Texto Criado</option> <? } ?> </select> <br> <div style="background:#C8C8E8;padding:2px;" > Para Corrigir: <br> <input name="data_corrigir" id="data_corrigir" value="<? echo @mysql_result($tabela,0,'data_corrigir') == ""? "": Mostra_Data(mysql_result($tabela,0,'data_corrigir') ) ; ?>" size=20 readonly > <br> *Colocar a Data maior que hoje. </div> <input class="button" type=submit value="Salvar:"> <input name="acao" type=hidden id="acao" value="R">
$status_C = mysql_result($tabela,$x,'status_C'); if( $status_C != "" ) $soma_s = 1; $status_R = mysql_result($tabela,$x,'status_R'); if( $status_R != "" ) $soma_s = 1; $status_PL = mysql_result($tabela,$x,'status_PL'); if( $status_R != "" ) $soma_s = 1; if ( VerificarCargo($conexao,$sslogado,20) ){ $status_p = $status_C; $layout = mysql_result($tabela,$x,'data_entrega_cricao'); } if ( VerificarCargo($conexao,$sslogado,35) or VerificarCargo($conexao,$sslogado,26) or VerificarCargo($conexao,$sslogado,38) ){ $status_p = $status_R; $layout = mysql_result($tabela,$x,'data_corrigir'); } ?> <tr class="<? echo $status_p; if ($soma_s == 0) echo " cinza";?>" border="1" <? if (CargoUsuario($conexao,$sslogado) == "Criacao" ) { ?> onclick='self.location=("detalhes.php?id=<? echo $id_chamado; ?>");' style="cursor:pointer;" <? } ?> > <td ><input name="chamado[]" type="checkbox" value="<? echo $id_chamado;?>"></td> <td ><a href="Chamados/detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $id_chamado; ?></span></a></td> <td><span class="small" style="font-weight:bold;font-size:14px;"><? echo Mostra_Data( $layout ); ?></span></td> <td><a href="Chamados/detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $cliente; ?></span></a></td> <td><a href="Chamados/detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $titulo; ?></span></a></td>
<link rel="shortcut icon" href="lib/favicon.ico"> </head><body style="margin: 0px; padding: 0px;" dir="ltr" onBlur="document.search_form.reset();"> <form name="search_form" method="post" action="/groupoffice/controls//select/global_select.php" target="main"><table width="1010" id="headerTable"><tbody> <tr> <td width="88%"><table border="0"> <tbody> <tr> <td width="75" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a href="/intranet/sis.php" target="_top"><img src="a_data/logo_menor.png" border="0" height="43" width="107"></a></td> <? if ( Permissao($conexao,"cliente","VER",@$sslogado) ) { ?> <td width="105" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="clientes/lista.php"> <img src="footer_data/MISC.png" border="0" height="32" width="26"> <br> Cadastro de Clientes </a></td> <? } ?> <? if ( Permissao($conexao,"chamados","VER",@$sslogado) ) { ?> <td width="99" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="addressbook" href="Chamados/lista<? if ( VerificarCargo($conexao,$sslogado,21) ) echo "-atendimento";?>.php"> <img src="footer_data/addressbook_big.png" border="0" height="32" width="32"> <br> Ordem de Serviço</a></td> <? } ?> <td width="72" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="calendar" href="calendar/sample.php"> <img src="a_data/calendar.png" border="0" height="32" width="32"> <br> Calendário</a></td> <? if ( Permissao($conexao,"chamados","VER",@$sslogado) ) { ?> <? } ?> <? if ( Permissao($conexao,"fornecedor","VER",@$sslogado) ) { ?> <td width="134" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="fornecedor/lista.php"> <img src="footer_data/OneNote Notebooks.png" border="0" height="32" width="26"> <br> Cadastro de Fornecedor </a></td> <? } ?> <? if ( @$sslogado == 1 ) { ?> <td width="87" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="contas/lista.php"> <img src="footer_data/Access Files.png" border="0" height="32" width="26"> <br> Colaboradores</a></td>
// SQL CLIENTE $sql =" SELECT * from c_chamado where 1=1 "; if (@$status!="") { $sql .= " and status = '$status' "; } else $sql .= " and ( status <> 'CANCELADO' and status <> 'CONCLUIDO' and status <> 'PARCELAS' and status <> 'FECHADO' ) " ; $sql .= " and ( id_clientes = $id_clientes_1 )"; if ( $sslogado != 1 ) { if ( VerificarCargo($conexao,$sslogado,22) ) $sql .= " and ( id_criacao = $sslogado or id_atendimento = $sslogado or producao = TRUE ) "; else $sql .= " and ( id_criacao = $sslogado or id_atendimento = $sslogado )"; } $sql .=" order by layout asc;"; @$tabela = mysql_query ( $sql , $conexao); @$rows = mysql_num_rows ( $tabela ); if ( @$rows != 0 ) {
<td width="95" class="selectedRow">Nome:</td> <td width="667" class="statusBar"><input name="nome" type="text" id="nome" value="<? echo @$nome ; ?>" size="70" maxlength="60" /> <span class="style1">*</span></td> </tr> <tr> <td class="selectedRow">Cargo</td> <td class="statusBar"><p><? $sql="select * from c_cargos order by nome asc"; $tabela=mysql_query($sql,$conexao); $rows=mysql_num_rows($tabela); for ($x=0;$x<$rows;$x++){ // if ( @$id_cargos == mysql_result($tabela,$x,'id_cargos') ) if ( VerificarCargo($conexao , $id , mysql_result($tabela,$x,'id_cargos') ) ) printf("<br><input type=\"checkbox\" name=\"checkbox[]\" id=\"checkbox\" VALUE=\"%s\" checked>%s</input>",mysql_result($tabela,$x,'id_cargos'),mysql_result($tabela,$x,'nome')); else printf("<br><input type=\"checkbox\" name=\"checkbox[]\" id=\"checkbox\" VALUE=\"%s\" >%s</input>",mysql_result($tabela,$x,'id_cargos'),mysql_result($tabela,$x,'nome')); } ?> </p></td> </tr> <tr> <td class="selectedRow">Login:</td> <td class="statusBar"><input name="login" type="text" id="login" value="<? echo @$login ; ?>" maxlength="12" /> <span class="style1">*</span></td> </tr>
$cliente = mysql_result($tabela,$x,'cliente'); $soma_s =0; $status_M = mysql_result($tabela,$x,'status_M'); if( $status_M != "" ) $soma_s = 1; $status_P = mysql_result($tabela,$x,'status_P'); if( $status_P != "") $soma_s = 1; $status_C = mysql_result($tabela,$x,'status_C'); if( $status_C != "" ) $soma_s = 1; $status_R = mysql_result($tabela,$x,'status_R'); if( $status_R != "" ) $soma_s = 1; if ( VerificarCargo($conexao,$sslogado,20) ){ $status_p = $status_C; } ?> <tr class="<? echo $status_p; if ($soma_s == 0) echo " cinza";?>" border="1" <? if (CargoUsuario($conexao,$sslogado) == "Criacao" ) { ?> onclick='self.location=("detalhes.php?id=<? echo $id_chamado; ?>");' style="cursor:pointer;" <? } ?> > <td ><input name="chamado[]" type="checkbox" value="<? echo $id_chamado;?>"></td> <td ><a href="Chamados/detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $id_chamado; ?></span></a></td> <td><span class="small" style="font-weight:bold;font-size:14px;"><? echo Mostra_Data( $layout ); ?></span></td> <td><a href="Chamados/detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $cliente; ?></span></a></td> <td><a href="Chamados/detalhes.php?id=<? echo $id_chamado; ?>"><span class="small"><? echo $titulo; ?></span></a></td> <td><span class="small"><? echo $status_p; ?></span></td> <td><span class="small"><? echo @NomeUsuario($conexao,$id_atendimento); ?></span></td> <td><span class="small"><? echo @NomeUsuario($conexao,$id_criacao); ?></span></td> <? if (@CargoUsuario($conexao,$sslogado) != "Criacao" ) { ?> <? } ?>
$sql .= " and ( status <> 'CANCELADO' and status <> 'FINANCEIRO' and status <> 'PARCELAS' and status <> 'FECHADO' and status <> 'CONCLUIDO' ) " ; $sql .= " and ( id_clientes = $id_clientes_1 )"; if ( $sslogado != 1 ) { if ( VerificarCargo($conexao,$sslogado,22) and VerificarCargo($conexao,$sslogado,24) ) $sql .= " and ( id_criacao = $sslogado or id_atendimento = $sslogado or producao = TRUE or midia =1 ) "; else if ( VerificarCargo($conexao,$sslogado,22) ) $sql .= " and producao = 1 "; else if ( VerificarCargo($conexao,$sslogado,26) ) $sql .= " and correcao = 1 "; else if ( VerificarCargo($conexao,$sslogado,32) ) $sql .= " and ilustrador = 1 "; else if ( VerificarCargo($conexao,$sslogado,24) ) $sql .= " and midia = 1 "; //if ( VerificarCargo($conexao,$sslogado,20) or VerificarCargo($conexao,$sslogado,21) ) else $sql .= " and ( id_criacao = $sslogado or id_atendimento = $sslogado )"; } $atrazado = $_REQUEST['atrazados']; if ($atrazado != "") $sql .=" and layout < '".date("Y-m-d")."'"; $sql .=" order by layout asc;"; @$tabela = mysql_query ( $sql , $conexao);