Ejemplo n.º 1
0
			<th>Fecha adición</th>
		</tr>
	</thead>
	<tbody><?php 
        $total = 0;
        $total_miembros = 0;
        $total_externos = 0;
        $total_por_pagar = 0;
        $total_pagado = 0;
        $total_comision = 0;
        while ($fila = mysql_fetch_array($res)) {
            $divisa = dec_utf8($fila[$DIVISA]);
            $n_miembros = total_empresa($fila[$ID], 'n_miembros');
            $por_pagar = calc_por_pagar_total_e($fila[$ID]);
            $pagado = total_empresa($fila[$ID], 'pagado');
            $comision = total_empresa($fila[$ID], 'comision');
            ?>
			<tr>
				<td><a href="http://www.sindicatoclicks.net/gestion/ver_empresa.php?n=<?php 
            echo "{$fila[$NOMBRE_DE_EMPRESA]}";
            ?>
" target="_blank"><?php 
            echo "{$fila[$NOMBRE_DE_EMPRESA]}";
            ?>
</a></td><?php 
            $n_externos = $fila[$NUM_REFS_EXTERNOS];
            $n_total = $n_miembros + $n_externos;
            ?>
				<td><?php 
            echo "{$n_total}";
            ?>
Ejemplo n.º 2
0
            ?>
			<th>Progreso</th>
			<th>Min</th>
			<th>Ct/ad</th>
			<th>Ads/d</th>
			<th>CL</th>
			<th>Ct/d</th>
			<th>%ref</th>
			<th>Pago</th>
			<th>Adicionado</th>
		</tr>
	</thead>
	<tbody><?php 
            $i = 0;
            while ($fila = mysql_fetch_array($res)) {
                $n_miembros = total_empresa($fila[$ID], 'n_miembros');
                $n_externos = $fila[$NUM_REFS_EXTERNOS];
                $n_total = $n_miembros + $n_externos;
                $total_cobrado = total_cobrado($fila[$ID]);
                $num_cobros = num_cobros($fila[$ID]);
                if ($_GET['cat'] != 'mias') {
                    $mostrar = 0;
                    $sql = "SELECT {$ID} FROM {$TABLA_INSCRIPC_TEMP} WHERE {$ID_USUARIO}=" . $id_usuario . " and {$ID_EMPRESA}=" . $fila[$ID];
                    $res2 = mysql_query($sql) or die(mysql_error());
                    if (mysql_num_rows($res2) < 1) {
                        $mostrar = 1;
                    }
                    if ($fila[$ID_EMPRESA] == NULL & $mostrar == 1) {
                        ?>
                    <tr>
                        <td class="izquierda hover"><input type="checkbox" name="empresa_<?php