E:
/
home
/
kbcomunicacao1
/
Web
/
innterage
/
controlers
/
Upload File
HOME
<div class="row border-bottom"> <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <span class="minimalize-styl-2" href="#" style="margin-right: -10px"><i class="fa fa-search"></i> </span> <form id="formulariodecrm" role="search" class="navbar-form-custom"> <div class="form-group"> <input type="text" placeholder="Procure por algo..." autofocus class="form-control" id="procurar-crm"> <input type="hidden" id="status" value="1"> </div> </form> </div> </nav> </div> <div class="row"> <div class="animated fadeInRight"> <div class="row"> <div class="col-lg-12"> <div class="ibox "> <div class="ibox-title"> <ol class="breadcrumb"> <li style="padding-left: 20px"> <a href="#" style="color: #FFF" onclick="window.open('crm/arquivos.php', 'crm', 'STATUS=NO, TOOLBAR=NO, LOCATION=NO, DIRECTORIES=NO, RESISABLE=NO, SCROLLBARS=NO, TOP=120, LEFT=350, WIDTH=960, HEIGHT=550'); " class="btn btn-primary btn-sm"><i class="fa fa-file-o"></i> Enviar Arquivos</a> </li> <div class="btn-group" style="float: right; padding-right: 20px"> <a href="./?pag=crm" class="btn btn-white" type="button">Arquivos não lidos</a> <a href="./?pag=crm-lido" class="btn btn-primary" type="button">Arquivos lidos</a> <!--<a href="./?pag=encerrados" class="btn btn-white" type="button">Arquivos sem data</a>--> </div> </ol> </div> <div class="ibox-content"> <div class="table-responsive"> <table class="footable table table-bordered table-hover dataTables-example" data-filter=#filter> <thead> <tr> <td width="3%"></td> <td width="3%"></td> <td width="3%"></td> <th width="30%"><i class="fa fa-pencil-square-o" style="margin-right: 5px"></i>Empresa</th> <th width="20%"><i class="fa fa-user" style="margin-right: 5px"></i>Responsável</th> <th width="20%"><i class="fa fa-file-pdf-o" style="margin-right: 5px"></i>Arquivo</th> <th width="11%"><i class="fa fa-share-square" style="margin-right: 5px"></i>Criado</th> <th width="10%"><i class="fa fa-calendar" style="margin-right: 5px"></i>lido</th> </tr> </thead> <tbody class="tbody"> <?php $query = "SELECT * FROM cw_crm WHERE status_crm='1' AND user_crm='$_SESSION[IDCLI]' AND erro_crm='0' AND vencimento_crm!='0000-00-00' ORDER BY id_crm DESC LIMIT 0,20"; $link = DBConnect(); $result = @mysqli_query($link, $query) or die(mysqli_error($link)); $row = mysqli_num_rows($result); $x = 0; while($res = mysqli_fetch_assoc($result)){ $x++; ?> <tr class="gradeX" id="linha-<?php echo $x; ?>" > <td><a style="font-size: 16px; color: #757A7A" href='crm/baixar_arquivo.php?arquivo=<?php echo $res['caminho_crm']; ?>'><i class="fa fa-download"></i></a></td> <td> <?php if($res['status_crm']==0){ ?> <a href="#myModal" data-toggle="modal" id="<?php echo $res['id_crm']; ?>" data-target="#edit-modalmotivos" class="btn btn-xs btn-white"><i class="fa fa-check-circle"> </i> Ler</a> <?php }else{ ?> <a href="#" class="btn btn-xs btn-white" title="<?php echo $res['motivo_crm']; ?>"><i class="fa fa-check-circle"> </i> Lido</a> <?php } ?> </td> <td><a href="#" class="btn btn-xs btn-white reenviar" id="<?php echo $res['id_crm']; ?>" title="Reenviar"><i class="fa fa-mail-forward"> </i> </a></td> <td><?php echo $res['razao_crm']; ?></td> <td><?php echo $res['dp_crm']; ?> - <?php echo $res['nome_crm']; ?> - <?php echo $res['email_crm']; ?></td> <td><?php echo $res['arquivo_crm']; ?></td> <td><?php echo dbDateToDate2($res['data_crm']); ?> às <?php echo $res['hora_crm']; ?></td> <td><?php echo dbDateToDate2($res['lido_crm']); ?> às <?php echo $res['horalido_crm']; ?> | <?php echo $res['por_crm']; ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <!-- MODAL DE CONFIGURAÇÃO DE MOTIVOS --> <div id="edit-modalmotivos" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> × </button> <h3 class="modal-title-site text-center" > MOTIVOS POR CLICAR EM LER </h3> </div> <form name="escrevermotivos"> <div class="modal-body edit-content"> </div> <div> <div> <input name="submit" class="btn btn-block btn-lg btn-primary btn-motivo" value="SALVAR" type="button"> </div> </div> </form> </div> </div> </div> <!-- MODAL DE CONFIGURAÇÃO DE LANÇAMENTOS -->