예제 #1
0
 public function editJugador($codcampeonato, $codequipo, $dni)
 {
     $ediJ = Jugador::find($dni);
     $habilitado = "";
     if ('habilitado' == Input::get('habilitado')) {
         $habilitado = "habilitado";
     } else {
         $habilitado = "desabilitado";
     }
     if ('desabilitado' == Input::get('desabilitado')) {
         $habilitado = "desabilitado";
     }
     $ediJ->estado = $habilitado;
     $ediJ->save();
     return Redirect::to('campeonato/detail/' . $codcampeonato . '/equipodetalle/' . $codequipo . '#jugadores');
 }
예제 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $jugador = Jugador::find($id);
     return View::make('user_com_organizing.jugador.edit', array('jugador' => $jugador));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $jugador = Jugador::find($id);
     return View::make('jugador.edit', array('jugador' => $jugador));
 }
예제 #4
0
파일: tab5.blade.php 프로젝트: nosiliw/SCDW
<?php

$price = DB::table('tcambio')->max('idcambio');
$cod = $partido->codpartido;
//$cod=DB::select('SELECT max(`id`) FROM `treunion` WHERE 1').get();
$nuevo = (int) $price + 1;
$conclusiones = DB::select('select * from tjugadorenjuego WHERE codpartido=?', array($cod));
$arr = array();
foreach ($conclusiones as $user) {
    $jugador = Jugador::find($user->idjugador);
    $equipo = Equipo::find($jugador->codequipo);
    $arr[$user->idjugadorenjuego] = $user->nrocamiseta . " " . $equipo->nombre;
}
/*
$hora=localtime();
echo gettype($hora)."<br>";
echo $hora[0]."<br>";
echo $hora[1]."<br>";
echo $hora[2]."<br>";
echo $hora[3]."<br>";
*/
$part = DB::select('select * from tpartido');
$cadena = "";
$arr2 = array();
foreach ($part as $user) {
    $idd = $user->codpartido;
    //echo $idd;
    $encuentros = DB::select('call encuentros(?)', array($idd));
    foreach ($encuentros as $key) {
        $partido = $key->codpartido;
        $cadena = " vs " . $key->nombreEquipo . $cadena;
예제 #5
0
파일: PDF.php 프로젝트: nosiliw/SCDW
 function planilla($header, $data)
 {
     $this->SetFillColor(100, 100, 100);
     $this->SetTextColor(255);
     $this->SetDrawColor(0, 0, 0);
     $this->SetLineWidth(0.3);
     $this->SetFont('', 'B');
     $w = array(13, 80, 53, 50);
     for ($i = 0; $i < count($header); $i++) {
         $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', true);
     }
     $this->Ln();
     $this->SetFillColor(224, 235, 255);
     $this->SetTextColor(0);
     $this->SetFont('');
     $fill = false;
     $gg = 1;
     foreach ($data as $row) {
         $jugador = Jugador::find($row->idjugador)->coddocente;
         $docente = Docente::find($jugador);
         $this->Cell($w[0], 6, $gg++, 'LR', 0, 'L', $fill);
         $this->Cell($w[1], 6, $docente->nombre . " " . $docente->apellidopaterno . " " . $docente->apellidomaterno, 'LR', 0, 'L', $fill);
         $this->Cell($w[2], 6, $row->condicion, 'LR', 0, 'L', $fill);
         $this->Cell($w[3], 6, $row->nombre, 'LR', 0, 'L', $fill);
         $this->Ln();
         $fill = !$fill;
     }
     $this->Cell(array_sum($w), 0, '', 'T');
 }