예제 #1
0
echo('</pre>');*/
require_once 'config.php';
require_once 'funciones.php';
if (!isset($_REQUEST['liga'])) {
    exit('ERROR: Liga No seteada');
}
?>
<div id="liga_body">
<?php 
switch ($_REQUEST['accion']) {
    case 'borrarliga':
        echo "no implementado";
        break;
    case 'jugadores':
        echo "no implementado";
        break;
    default:
        if (requiererango($_REQUEST['liga'], 4, NULL)) {
            echo "<div id=\"lista_partidos\">";
            echo lista_partidos_borrar(nombreliga($_REQUEST['liga']), partidos($_REQUEST['liga'], 10, $_REQUEST['pag'], NULL), "borrarpartidos.php", array('h3' => "class=\"htrestitle\"", 'ul' => "class=\"fbbodyderul\"", 'can-img' => 'icons/cross.png'));
            echo lista_partidos_menu($_REQUEST['liga'], 10, $_REQUEST['pag'], NULL, "href=\"javascript: div_ajax_post('liga_admin.php',\$('#body_der')[0],{liga: '" . $_REQUEST['liga'] . "', pag: '\$pag' })\"", NULL, NULL, NULL);
            echo "</div>";
        } else {
            echo '<div class="fberrorbox">No Estan todas las variables seteadas o Rango Insuficiente</div>';
        }
        break;
}
?>
	
</div>
예제 #2
0
function lista_ligas($muestra,$divfuera,$divtodo,$divin,$h3,$ul,$li,$fbfecha) {
	global $user_id ;
	$ligas = ligas_usuario($user_id) ;
	$a = 0 ;
	while ( $a < sizeof($ligas) ) {
		$partidos = partidos($ligas[$a],$muestra,NULL,NULL) ;
		$retorno .= lista_partidos(nombreliga($ligas[$a]),$partidos,$divtodo,$divin,$h3,$ul,$li,$fbfecha);
		$a++ ;
	}
	if (isset($divfuera)) {
		$retorno = "<div " . $divfuera . " >" . $retorno . "</div>" ;
	}
	return $retorno ;
}
예제 #3
0
/*echo('<pre>');
print_r($_REQUEST);
echo('</pre>');*/
require_once 'config.php';
require_once 'funciones.php';
if (!isset($_REQUEST['liga'])) {
    exit('ERROR: Liga No seteada');
}
?>
<div id="liga_body">
<?php 
switch ($_REQUEST['accion']) {
    case 'tabla_jug':
        echo tablas_jugadores($_REQUEST['liga'], NULL, "id=\"tablacuadricula\"", "class=\"ui-state-default\"", NULL, $tabla, "class=\"htrestitle\"", $ah3, $divin, $ul, $li);
        echo "</div>";
        echo "<img src=\"icons/accept.png\" onload='\$(\"#tablacuadricula\").sortable(); \$(\"#tablacuadricula\").disableSelection()' />";
        break;
    case 'grafico':
        echo grafico_liga($_REQUEST['liga']);
        break;
    default:
        echo "<div id=\"lista_partidos\">";
        echo lista_partidos(nombreliga($_REQUEST['liga']), partidos($_REQUEST['liga'], 10, $_REQUEST['pag'], NULL), NULL, NULL, "class=\"htrestitle\"", "class=\"fbbodyderul\"", NULL, "class=\"fbbodyderfbfecha\"");
        echo lista_partidos_menu($_REQUEST['liga'], 10, $_REQUEST['pag'], NULL, "href=\"javascript: div_ajax_post('liga_page.php',\$('#body_der')[0],{liga: '" . $_REQUEST['liga'] . "', pag: '\$pag' })\"", NULL, NULL, NULL);
        echo "</div>";
        break;
}
?>
	
</div>
예제 #4
0
</head>
<body>
<div id="todo">
<div id="header"><a href="<?php 
echo $basepage;
?>
"><img src="logo1.jpg" ></a></div>
<div class="fbmenu">
	<a href="#" class="fbtab">Partidos</a>
	<a href="#" class="fbtab">Jugadores</a>
	<a href="#" class="fbtab">Estadisticas</a>
	<a href="#" class="fbtab">Tabla Liga</a>
</div>

<div id="cuerpo">
	<?php 
echo tablas_jugadores($_GET['liga'], "class=\"accordion\"", NULL, $tabla, $h3, $ah3, $divin, $ul, $li);
echo lista_partidos(nombreliga($_GET['liga']), partidos($_GET['liga'], 10, $_GET['pag'], NULL), NULL, NULL, NULL, NULL, NULL);
echo lista_partidos_menu($_GET['liga'], 10, $_GET['pag'], NULL, $basepage . "/liga_page.php", NULL, NULL, NULL);
?>
		
</div>
<script type="text/javascript">  
FB.init("<?php 
echo $appapikey;
?>
", "xd_receiver.htm"); 
</script> 
</body>
</html>
예제 #5
0
    $fdef = '';
    for ($i = 0; $i < count($partidos); $i++) {
        if ($partidos[$i]['fecha'] != $fdef) {
            $cont .= "<tr style='background:#C4C4C4;'><td colspan='5'><center>" . date("d-m-Y", strtotime($partidos[$i]['fecha'])) . "</center></td></tr>";
            $fdef = $partidos[$i]['fecha'];
        }
        $cont .= "<tr>\n\t\t\t<td><img src='../../includes/img/escudo/" . $partidos[$i]['local'] . ".png' style='width:30px;height:30px'/></td>\n\t\t\t<td>" . $partidos[$i]['local'] . "</td>\n\t\t\t<td>\n\t\t\t\t<img src='../../includes/img/iconos/chck.png' style='width:30px;height:30px'/>\n\t\t\t\t<img src='../../includes/img/iconos/chck.png' style='width:30px;height:30px'/>\n\t\t\t\t<img src='../../includes/img/iconos/chck.png' style='width:30px;height:30px'/>\n\t\t\t</td>\n\t\t\t<td>" . $partidos[$i]['visitante'] . "</td>\n\t\t\t<td><img src='../../includes/img/escudo/" . $partidos[$i]['visitante'] . ".png' style='width:30px;height:30px'/></td>\n\t\t</tr>";
    }
    $cont .= "</table><center>";
    $tabla = "<table style='width:100%;'>\n\t\t\t<tr>\n\t\t\t\t<td>" . $cont . "</td>\n\t\t\t\t<td>" . $cont . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>" . $cont . "</td>\n\t\t\t\t<td>" . $cont . "</td>\n\t\t\t</tr>\n\t</table>";
    $nombre = "quiniela_" . $jornada . ".pdf";
    $orientacion = 'L';
} else {
    if (md5(2) === $tipo) {
        if (!empty($jornada)) {
            $partidos = partidos($jornada);
            $quiniela = quinielasUsu($jornada);
            $tabla = "<h1>Quiniela Jornada " . $jornada . "</h1>";
            $tabla .= "<center><table style='width:100%;text-align:center;border-collapse:collapse;'>\n\t\t\t\t\t<tr style='background:#000000;color:#ffffff;'>\n\t\t\t\t\t\t<td style='color:#ffffff'>Participante</td>";
            $resultados = $idQ = array();
            for ($i = 0; $i < count($partidos); $i++) {
                $idQ[] = $partidos[$i]['cve_partido'];
                $tabla .= "<td style='color:#ffffff'>\n\t\t\t\t\t<img src='../../includes/img/escudo/" . $partidos[$i]['elocal'] . ".png' style='width:30px;height:30px'/>\n\t\t\t\t\t<br/>VS<br/>\n\t\t\t\t\t<img src='../../includes/img/escudo/" . $partidos[$i]['evisit'] . ".png' style='width:30px;height:30px'/></td>";
            }
            $tabla .= "</tr>";
            $total = count($quiniela);
            $total2 = count($idQ);
            foreach ($quiniela as $key => $value) {
                $aux2 = 0;
                $tabla .= '<tr ><td style="background:black;color:#ffffff;font-size:11px;">' . $value['nombre'] . '</td>';
                for ($y = 0; $y < $total2; $y++) {
예제 #6
0
require_once '../clases/Conexion.class.php';
require_once 'query.php';
$respuesta = array('estatus' => 'OK', 'accion' => '', 'contenido' => '');
$meses = array('', 'ENERO', 'FEBRERO', 'MARZO', 'ABRIL', 'MAYO', 'JUNIO', 'JULIO', 'AGOSTO', 'SEPTIEMBRE', 'OCTUBRE', 'NOVIEMBRE', 'DICIEMBRE');
$meses2 = array('', 'ENE', 'FEB', 'MAR', 'ABR', 'MAO', 'JUN', 'JUL', 'AGOS', 'SEP', 'OCT', 'NOV', 'DIC');
$CONTENIDO = array();
$X = 0;
$jornada = $_POST['cJornada'];
$idusuario = $_SESSION['IDUSU'];
$imgEqui = '<img class="iconoEquipo" src="includes/img/escudo/%s.png" title="%1$s"/>';
try {
    $valida = validaQuinielaLLena($jornada, $idusuario);
    $valida2 = validaPeriodo($jornada);
    if (!empty($valida) || empty($valida2)) {
        $respuesta['accion'] = 'mostrarQuin';
        $equipos = partidos($jornada);
        $quiniela = quinielasUsu($jornada);
        if (!empty($quiniela)) {
            $length = count($equipos) / 100;
            $CONTENIDO[$X++] = '<table class="tbEquipos"><thead>';
            $trDias = '<tr><th rowspan="3" class="bordeDer2 color2 verQuin">Usuario</th>';
            $trPart = '<tr>';
            $trHrPart = '<tr>';
            $resultado = array();
            $aux = null;
            $aux2 = 0;
            $tr = '';
            $idQ = array();
            $cancel = array();
            foreach ($equipos as $value) {
                $idQ[] = $value['cve_partido'];