Esempio n. 1
0
        ?>
  <a href="usuarios.php" class="op rop">Usuarios</a><?php 
    }
    ?>
</div>


<div class="bann-int">
<div class="today">
<?php 
    $created = date("Y-m-d H:i:s");
    $dia_hoy = substr($created, 8, 2);
    $mes_hoy = substr($created, 5, 2);
    ?>
<span class="day"><?php 
    echo replacemes($mes_hoy);
    ?>
</span>
<span class="dayn"><?php 
    echo $dia_hoy;
    ?>
  </span>

<!--<iframe src="calendario.php"width="303" height="205" scrolling="no" style="  position: absolute;border: 0;top: -91px;left: 116px;"></iframe>-->

</div>
<div class="btn-proys"><a href="programacion.php"><img src="checkicon.png" width="44" height="44" /></a></div>
<span class="titlesec">VENTA</span>
</div>

<div class="tp">
        ?>
    </div>


    <div class="actividad"> <?php 
        /*
                $sql3 = "SELECT * FROM evento_cat WHERE id='".$row["evento_cat"]."' ORDER BY id ASC";
                $result3 = mysql_query($sql3, $conn1);
                $row3 = mysql_fetch_array($result3);
                echo $row3["nombre"]; ///////////   ACTIVIDAD*/
        ?>
</div>
    

    <div class="t-desit">    <?php 
        echo substr($row2["fecha_captura"], 8, 2) . ' ' . replacemes(substr($row2["fecha_captura"], 5, 2));
        ?>
     </div>
    




 <?php 
        //DETECTAR EL ULTIMO EVENTO CHECK
        $sql5 = "SELECT * FROM evento_act WHERE evento='" . $row2["id"] . "' AND checkedeve ='1' ORDER BY fecha DESC";
        // Llamada
        $result5 = mysql_query($sql5, $conn1);
        $row5 = mysql_fetch_array($result5);
        $evento_ck_ult = $row5["id"];
        ?>
        $row2 = mysql_fetch_array($result2);
        if ($veces_text == 0) {
            $diacambio = substr($row["fecha"], 8, 2);
        }
        $dia_registrado = substr($row["fecha"], 0, 4) . '-' . substr($row["fecha"], 5, 2) . '-' . substr($row["fecha"], 8, 2);
        if ($dia_bandera != $dia_registrado) {
            $dia_bandera = $dia_registrado;
            ?>
<span class="titlecol tcolor eiix"<?php 
            if (substr($row["fecha"], 8, 2) != $dia_hoy) {
                echo ' style="margin-top:25px"';
            }
            ?>
><!--PROGRAMACIÓN --><?php 
            echo replacedia_sem($dia_sem);
            echo ', ' . substr($row["fecha"], 8, 2) . ' ' . replacemes(substr($row["fecha"], 5, 2));
            // dia de la semana en texto y numero
            ?>



<?php 
            $fecha_hora1b = substr($row["fecha"], 0, 10) . ' 00:00:00';
            $fecha_hora2b = substr($row["fecha"], 0, 10) . ' 23:59:59';
            if ($_SESSION["tipo"] == 'admin') {
                $sql1c = "SELECT * FROM evento_act WHERE fecha>='" . $fecha_hora1b . "' AND fecha<'" . $fecha_hora2b . "' AND checkedeve!='1' ORDER BY fecha ASC";
            } else {
                $sql1c = "SELECT * FROM evento_act WHERE fecha>='" . $fecha_hora1b . "' AND fecha<'" . $fecha_hora2b . "' AND vendedor='" . $_SESSION["vendedor"] . "' AND checkedeve!='1' ORDER BY fecha ASC";
            }
            $result1c = mysql_query($sql1c, $conn1);
            $total_registros = mysql_num_rows($result1c);
  <span class="dayn"><?php 
    echo $dia_hoy;
    // dia del mes en numero
    ?>
 </span></div>
<div class="cal">
<a href="programacion.php?otro_hoy=<?php 
    echo $mes_ant;
    ?>
" class="cal-l"></a>
<a href="programacion.php?est=4&otro_hoy=<?php 
    echo $mes_sig;
    ?>
" class="cal-r"></a>
<div class="mbar"> <?php 
    echo replacemes($mes_hoy) . ' ' . $ano_hoy;
    //mes y año
    ?>
 </div>
  <div class="daysbar">
  <span class="day-w">dom</span><span class="day-w">lun</span><span class="day-w">mar</span><span class="day-w">mie</span><span class="day-w">jue</span><span class="day-w">vie</span><span class="day-w">sab</span>
  </div>
  <div class="cfl"></div>


<?php 
    /////////////////////////////  CALENDARIO
    //echo '<span class="day-a">'.$fecha_inicio.'</span>';
    $dias_cap = '::';
    $contador_X = 0;
    //es el contador para saber que dia de la semana cae el 1º dia
            $iconomues = 'telefono.png';
        }
        $sql5 = "SELECT * FROM evento_act WHERE evento_cat ='4' AND evento='" . $row2["id"] . "' AND checkedeve='1' ORDER BY id DESC";
        // Llamada
        $result5 = mysql_query($sql5, $conn1);
        $row5 = mysql_fetch_array($result5);
        if ($row5["id"] == '') {
            $iconocie = 'palomagris.png';
        } else {
            $iconocie = 'palomitaverde.png';
        }
        $cuerpomess .= ' 
	  <tr id="sticker" class="' . $classt . '"> 	    	
    	<td class="t-progres tituloscelestes" ice:editable="*">' . $row2["evento"] . '</td>
    	<td class="t-desit tituloscelestes">' . $row9h["nombre_empresa"] . '</td>
    	<td class="t-contact tituloscelestes">' . substr($row2["fecha_captura"], 8, 2) . ' ' . replacemes(substr($row2["fecha_captura"], 5, 2)) . '</td>
    	<td class="time-s tituloscelestes"><table><tr>
      		<td class="totals"><img src="http://northwest.com.mx/ejecutivos/' . $iconotel . '" width="42" height="42" border="0" /></td>
      		<td class="totals"><img src="http://northwest.com.mx/ejecutivos/' . $iconocas . '" width="42" height="42" border="0" /></td>
      		<td class="totals"><img src="http://northwest.com.mx/ejecutivos/' . $iconodia . '" width="42" height="42" border="0" /></td>
      		<td class="totals"><img src="http://northwest.com.mx/ejecutivos/' . $iconocot . '" width="42" height="42" border="0" /></td>
      		<td class="totals"><img src="http://northwest.com.mx/ejecutivos/' . $iconomues . '" width="42" height="42" border="0" /></td>
      		<td class="totals"><img src="http://northwest.com.mx/ejecutivos/' . $iconocie . '" width="42" height="42" border="0" /></td>
      	<tr></table></td>
	  </tr>
	  ';
    }
    //*/
    $cuerpomess .= '</table>';
    $host = $_SERVER['HTTP_HOST'];
    $asunto = "Estadisticas de vendedores";