예제 #1
0
               
					
                  ?></td>
                  <td><div align="center">
                      <?  if ( Permissao($conexao,"chamados","EDI",@$sslogado)  )  { ?>
                      <a href="criar.php?id=<? echo $id_chamado;  ?>"><img src="../header_data/edit-find-replace.png" class="north_e" alt="Editar" title="Editar"  width="22" height="22" border="0" /></a> |
                      <? } ?>
                     
                      <?  if ( Permissao($conexao,"chamados","DEL",@$sslogado)  )  { ?>
                      <a href="?acao=Cancelar&id=<? echo $id_chamado;  ?>&status=<?php 
echo $status_p;
?>
" ><img src="../header_data/nok.gif" alt="Cancelar" title="Cancelar" width="24" height="24" class="north_e" border="0" /></a>
                      | <? } ?>
                      
                      <?  if ( Permissao($conexao,"chamados","CON",@$sslogado)  )  {
						  
						  	$jobfee 	= mysql_result($tabela,$x,'jobfee');
							
						  
						  if ( $status_P != "" )  {
							  
							  if ($status_P == "PRODUZIDO-E-ENTREGUE" and $valor_total == 0){
								  echo utf8_decode(' <img src="../header_data/emblem-unreadable.png" alt="Entrar Contato com a Produçao" width="24" height="24" border="0" title="Entrar Contato com a Produçao" class="north_e" /> | ' );
								  }
							else if ($status_P != "PRODUZIDO-E-ENTREGUE" and $valor_total == 0){
								  echo  utf8_decode(' <img src="../header_data/emblem-unreadable.png" alt="Entrar Contato com a Produçao" width="24" height="24" border="0" title="Entrar Contato com a Produção para Concluir" class="north_e" /> | ');
								  }
							  else
							  	{
								?>  <a href="?acao=Concluir&id=<? echo $id_chamado;  ?>&status=<?php 
예제 #2
0
				      <img src="a_data/calendar.png" border="0" height="32" width="32">
				      <br>
		      Calendario</a></td> 
								  <td width="89" align="center" valign="top" nowrap="nowrap" class="ModuleIcons">
				    <a target="main" id="filesystem" href="upload/index.php">
				      <img src="footer_data/filesystem.png" border="0" height="32" width="32">
				      <br>
		      Arquivos</a>				  </td><? if ( Permissao($conexao,"cliente","VER",@$sslogado)  ) { ?> 
								  <td width="112" 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 Clientes
</a></td><? } ?><? if ( Permissao($conexao,"fornecedor","VER",@$sslogado)  ) { ?> 
			                      <td width="146" 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> 
			                        Cadastros de Fornecedor
</a></td><? } ?><? if ( @$sslogado == 1 )   { ?> 
			                      <td width="84" 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><? } ?><? if ( Permissao($conexao,"financeiro","VER",@$sslogado)  ) { ?> 
			                      <td width="86" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="financeiro/lista.php"> <img src="footer_data/cifraoBulkink.png" border="0" height="32" width="28"> <br> 
			                        Financeiro
</a></td> <? } ?><? if ( @$sslogado == 1 ) { ?>
			                      <td width="86" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="config.php"> <img src="footer_data/Config.png" border="0" height="32" width="32"> <br>
			                        Configurações </a></td>
              <? } ?>
			                      <td width="25" align="center" valign="top" nowrap="nowrap" class="ModuleIcons">&nbsp;</td>
			                      <td width="61" align="center" valign="top" nowrap="nowrap" class="ModuleIcons">&nbsp;</td>
			                      <td width="61" align="center" valign="top" nowrap="nowrap" class="ModuleIcons">&nbsp;</td>
			                      <td width="61" align="center" valign="top" nowrap="nowrap" class="ModuleIcons">&nbsp;</td>
			                      <td width="69" align="center" valign="top" nowrap="nowrap" class="ModuleIcons">&nbsp;</td>
			</tr>
      </tbody></table>
    </td>
    <td align="right">
예제 #3
0
						$sql2 .=" and	`id_atendimento` = $id_atendimento ";
				else	
				if ( $sslogado == $id_criacao)
						$sql2 .=" and    `id_criacao` = $id_criacao ";
			  
			 // echo $sql2;
              $tabela2 = mysql_query($sql2,$conexao) or die (mysql_error() );
			  $rows2 = mysql_num_rows ( $tabela2 );		 
			
			 if ( $rows2 == 0 ){ 
			  $atualizacao = false;
			  ?><img src="../images/Icons/document.gif" alt="Editar" title="Editar"  width="17" height="24" border="0" /><? } ?></td>
              <td><div align="center"><?  if ( Permissao($conexao,"chamados","EDI",@$sslogado)  )  { ?><a href="criar.php?id=<? echo $id_chamado;  ?>"><img src="../header_data/edit-find-replace.png" alt="Editar" title="Editar"  width="22" height="22" border="0" /></a><? } ?> | <?  if ( Permissao($conexao,"chamados","DEL",@$sslogado)  )  { ?><a href="?acao=Cancelar&id=<? echo $id_chamado;  ?>&status=<?php 
echo $status_p;
?>
" ><img src="../header_data/nok.gif" alt="Cancelar" title="Cancelar" width="24" height="24" border="0" /></a><? } ?> | <?  if ( Permissao($conexao,"chamados","CON",@$sslogado)  )  { ?><a href="?acao=Concluir&id=<? echo $id_chamado;  ?>&status=<?php 
echo $status_p;
?>
"><img src="../header_data/ok.gif" alt="Concluir" width="24" height="24" border="0" title="Concluir" /></a><? } ?></div></td>
            </tr>
            <? 
			
						
			
			} 
			
			?>
          </tbody>
        </table>
        </div>
        </fieldset>
예제 #4
0
						 $("#data_entrega").hide();
					
					}
                
                </script>
                <div id="data_entrega" style="display:none;background:#ECA4A1;padding:2px;" >
                Alterar a Data de Entrega do Atendimento de (<strong><? if ($layout!="") echo @Mostra_Data($layout); ?></strong>) para:	<br>
<input name="layout" id="layout"  value="<? echo date("d/m/Y"); ?>" size=20 ><br>
				*Colocar a Data maior que hoje.
                </div>
              <INPUT name="acao" type=hidden id="acao2" value="C">
              <input name="id" type=hidden id="id2" value=<? echo @$id; ?>>
              <br>

              <br>
              <? if ( (VerificarCargo($conexao,$sslogado,21) )  or $sslogado == 1  or Permissao($conexao,"chamados","GER",@$sslogado)  ) { ?>
<div style="background:#C8C8E8;padding:2px;" >
                Data Entrega para a Criação  :	<br>
<input name="data_entrega_cricao" id="data_entrega_cricao"  value="<? echo  @mysql_result($tabela,0,'data_entrega_cricao') == "" ? "" : Mostra_Data(mysql_result($tabela,0,'data_entrega_cricao') ) ; ?>" size=20 ><br>
				*Colocar a Data maior que hoje.
                </div>
<br><? } ?>

                <INPUT class="button" type="submit" value="Salvar">
              </FORM></TD>
            </TR>
          </TBODY>
      </TABLE>
    </fieldset><br>
    <?
      
예제 #5
0
      <? } ?>
      <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&aacute;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>
      <? } ?>
      <? if ( Permissao($conexao,"financeiro","VER",@$sslogado)  ) { ?>
      <td width="73" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="financeiro/lista.php"> <img src="footer_data/cifraoBulkink.png" border="0" height="32" width="28"> <br>
        Financeiro </a></td>
      <? } ?>
      <? if ( @$sslogado == 1 | @$sslogado == '1262786089' | @$sslogado == '1262786201' | @$sslogado == '1335199453') { ?>
      <td width="95" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="config.php"> <img src="footer_data/Config.png" border="0" height="32" width="32"> <br>
        Configura&ccedil;&otilde;es </a></td>
      <? } ?>
      <td width="95" align="center" valign="top" nowrap="nowrap" class="ModuleIcons"><a target="main" id="filesystem" href="compras/lista.php"> <img src="footer_data/buy.png" border="0" height="32" width="32"> <br>
        Compras </a></td>
     
      </tr>
    </tbody>
</table></td>
<td width="12%" style="text-align: right; width: 15%;"> <!--
<img src="header_data/viewmag.png" style="border: 0px none ; margin-left: 10px; margin-right: 3px;" align="absmiddle"><input name="query" value="Busca" onFocus="javascript:this.value='';" onBlur="javascript:document.search_form.reset();" class="textbox" type="text">
예제 #6
0
<input name="fornecedor[]" <? if ( Permissao($conexao,"fornecedor","INS",@$id)  ) echo "checked"; ?> type="checkbox" id="noticia[]2" value="INS">
Inserir <br>
<input name="fornecedor[]" <? if ( Permissao($conexao,"fornecedor","EDI",@$id)  ) echo "checked"; ?> type="checkbox" id="noticia[]2" value="EDI">
Editar <br>
<input name="fornecedor[]" <? if ( Permissao($conexao,"fornecedor","DEL",@$id)  ) echo "checked"; ?> type="checkbox" id="noticia[]2" value="DEL">
Deletar </td>
          </tr>
          <tr>
            <td class="selectedRow">Financeiro:</td>
            <td class="statusBar"><input name="financeiro[]" <? if ( Permissao($conexao,"financeiro","VER",@$id)  ) echo "checked"; ?> type="checkbox" id="noticia[]53" value="VER">
Visualizar<br>
<input name="financeiro[]" <? if ( Permissao($conexao,"financeiro","INS",@$id)  ) echo "checked"; ?> type="checkbox" id="noticia[]3" value="INS">
Inserir <br>
<input name="financeiro[]" <? if ( Permissao($conexao,"financeiro","EDI",@$id)  ) echo "checked"; ?> type="checkbox" id="noticia[]3" value="EDI">
Editar <br>
<input name="financeiro[]" <? if ( Permissao($conexao,"financeiro","DEL",@$id)  ) echo "checked"; ?> type="checkbox" id="noticia[]3" value="DEL">
Deletar </td>
          </tr>
          
          <tr>
            <td colspan="2"><p class="style1">
              <input name="id" type="hidden" id="id" value="<? echo @$id; ?>">
            </p></td>
          </tr>
          <tr>
            <td colspan="2"><p align="center">
                <input name="cadastrar" type="submit" class="button" id="cadastrar" value="Salvar" />
            </p>
              </td>
          </tr>
        </table></TD>
예제 #7
0
	
	 ?>
            <tr class="<? echo $status_p; ?>" border="1" <? if (CargoUsuario($conexao,$sslogado) == "Criacao" ) { ?> onclick='self.location=("detalhes.php?id=<? echo $id_chamado;  ?>");' style="cursor:pointer;" <? } ?> >
              <td><input type="checkbox" id="todos" name="checkbox[]" value="<?php 
echo $id_chamado;
?>
" ></td>
              <td><a href="criar.php?id=<? echo $id_chamado;  ?>"><span class="small"><? echo $id_chamado; ?></span></a><a name="<? echo $id_chamado;  ?>" id="<? echo $id_chamado;  ?>"></a></td>
              <td><a href="criar.php?id=<? echo $id_chamado;  ?>"><span class="small"><? echo $titulo; ?></span></a></td>
              <td><span class="small"><? echo FormatarData($data_cha); ?></span></td>
              <td><span class="small"><? echo Mostra_Data( $layout ); ?></span></td>
              <td><span class="small"><? echo NomeUsuario($conexao,$id_criacao); ?></span></td>
              <td><span class="small"><? echo MostraNomeCargo($conexao,$id_cargos) ?></span></td>
              <td><span class="small"><? echo @NomeFornecedor_Chamado($conexao,$id_chamado,$id_fornecedor); ?></span></td>
              <? if (CargoUsuario($conexao,$sslogado) != "Criacao" ) { ?><td><span class="small"><? echo "R$ ".number_format($valor_prod,2,',','.'); ?></span></td>
              <td><span class="small"><?  if ( Permissao($conexao,"chamados","EDI",@$sslogado) and Permissao($conexao,"chamados","INS",@$sslogado)   )  { ?><? echo "R$ ".number_format($valor_total,2,',','.'); ?><? } ?></span></td><? } ?>
              <td><span class="small">
                <? if ( $total >= 0 )			  
			   		echo "<div style=\"color: #0000FF;font-weight:bold;\" >R$ ".$total."</div>"; 
				else
					echo "<div style=\"color: #FF0000;font-weight:bold;\" >R$ ".$total."</div>"; 
			   
			   
			   
			   ?>
              </span></td>
              <td><span class="small"><? 
			  
			  if ( $faturado == 1 ){
				   echo "CL";				  
			  }
예제 #8
0
	$valor_total		= mysql_result($tabela,$x,'valor_total');
	$obs				= mysql_result($tabela,$x,'obs');
	$status				= mysql_result($tabela,$x,'status');
	$categoria			= mysql_result($tabela,$x,'categoria');
	$data_cha			= mysql_result($tabela,$x,'data_cha');
	$data_prazo			= mysql_result($tabela,$x,'data_prazo');
	$id_cargos			= mysql_result($tabela,$x,'id_cargos');
	
	
	
	 ?>
            <tr class="<? echo $status; ?>" border="1" <? if (CargoUsuario($conexao,$sslogado) == "Criacao" ) { ?> onclick='self.location=("detalhes.php?id=<? echo $id_chamado;  ?>");' style="cursor:pointer;" <? } ?> >
              <td><a href="detalhes.php?id=<? echo $id_chamado;  ?>"><span class="small"><? echo $id_chamado; ?></span></a></td>
              <td><a href="detalhes.php?id=<? echo $id_chamado;  ?>"><span class="small"><? echo $titulo; ?></span></a></td>
              <td><span class="small"><? echo FormatarData($data_cha); ?></span></td>
              <td><span class="small"><? echo $data_prazo; ?></span></td>
              <? if (CargoUsuario($conexao,$sslogado) != "Criacao" ) { ?>
              <? } ?>
              </tr>
            <? } ?>
          </tbody>
        </table>
      </FORM>      </TD>
	  
	  <? if ( Permissao($conexao,"chamados","INS",@$sslogado)  )  {  ?>
      <? } ?>
    </TR>
  </TBODY>
</TABLE>
</BODY></HTML>