Example #1
0
 				default:
 					$texto = "Verificar script da noite";
 					break;
 			}
 			$fields['modif_text'] = dbString($texto);
 			modifgrInsert($fields);
 			unset($fields);	
 			
 		}	
 	}
 	unset($where);
 	unset($table);
 	unset($data);*/
 //isso vai para o mail
 $where = 'status_sms  != 1 AND date_sms IS NOT NULL AND date_tocliente IS NULL AND id_section = ' . $numerowhile;
 $table = grepGetByFiltro($where, 'date_in');
 $textmail .= 'SMS enviados que não foram entregue ao cliente: <br/>';
 if (mysql_num_rows($table) > 0) {
     while ($data = mysql_fetch_array($table)) {
         //aqui vou ir buscar o numero do fornecedor
         $reparador = '';
         if ($data['rep_id'] > 0) {
             $data_rep = reparadorGetById($data['rep_id']);
             $reparador = $data_rep['rep_name'];
         } else {
             $reparador = 'Não foi enviado mail ao reparador ainda';
         }
         if ($data['gr_number'] == "") {
             $numguia = $data['id'];
         } else {
             $numguia = $data['gr_number'];
Example #2
0
            <form name="changegr" class="form-horizontal" onsubmit="return false;">
                <fieldset>

                    <!-- Form Name -->
                    <legend>Procurar Guia</legend>
                    
                    <?php 
if ($_SESSION['archive_gr'] == '') {
    $where = "id > 0 AND gr_enable = 1";
} else {
    $date_menos = date("Y-m-d", strtotime($date_atual . ' - ' . $_SESSION['archive_gr'] . ' days'));
    $where = "id > 0 AND gr_enable = 1 AND (date_tocliente >= " . dbString($date_menos) . " || date_tocliente IS NULL)";
    //echo $where;
}
$order = " DESC";
$table = grepGetByFiltro($where, "date_in" . $order);
if (is_bool($table) === false) {
    if (mysql_num_rows($table) > 0) {
        ?>

			<!-- <table id="example" class="table table-striped table-hover"> -->
			<table id="mytable" class="table table-striped table-bordered display" cellspacing="0" width="auto">
			    <thead>  
			          <tr>  
			            <th>Nº</th>  
			            <th>Nome</th> 
			            <th>Contacto</th> 
			            <th>Data Entrada</th>  
			            <th>Data Reparador</th>
			            <th>Data SMS</th>
			            <th>Entregue?</th>