Exemple #1
0
/**
 * Generates data to be used in the template file
 *
 * @return array
 */
function getTemplateData($input, $game)
{
    if ($game->isOver()) {
        if ($game->winner() === false) {
            $message = "It's a draw";
        } else {
            $winner = $game->winner() == 0 ? 'X' : 'O';
            $message = "{$winner} won";
        }
    } else {
        $message = '';
    }
    $playersPositions = $game->getPlayersPositions();
    return ['gameOver' => $game->isOver(), 'message' => $message, 'grid' => getGrid($playersPositions), 'currentPlayer' => count($playersPositions[0]) > count($playersPositions[1]) ? 'O' : 'X', 'gameType' => $input['gameType']];
}
Exemple #2
0
	<script type="text/javascript">
		window.location.href = '/modules/admin_users_web/login.php';
	</script>
<?
	exit;
}
?>
<html>
	<head>
		<link href="/modules/admin_users_web/css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<iframe id="iframeProcesando" name="iframeProcesando" src="" style="display:none;"></iframe>
		<div align="center" id="divContent" name="divContent">
<?
echo getGrid();
?>
		</div>
		<div align="center" id="divProcesando" name="divProcesando" style="display:none"><img border="0" src="/images/waiting.gif" title="Espere por favor..."></div>
		<script type="text/javascript">
			function CopyContent() {
				try {
					window.parent.document.getElementById('divContent').innerHTML = document.getElementById('divContent').innerHTML;
				}
				catch(err) {
					//
				}
			}
			CopyContent();
		</script>
	</body>
 private function load()
 {
     $this->firstDate = str_replace("/", "-", $this->getFirstDate());
     if (strlen($this->firstDate) == 8) {
         // fecha con year en formato corto
         list($mm, $dd, $yy) = split("-", $this->firstDate);
         $this->firstDate = "{$dd}-{$mm}-20{$yy}";
         $time = strtotime($this->firstDate);
         $this->firstDate = date("d/m/Y", $time);
     }
     $this->lastDate = str_replace("/", "-", $this->getLastDate());
     if (strlen($this->lastDate) == 8) {
         // fecha con year en formato corto
         list($mm, $dd, $yy) = split("-", $this->lastDate);
         $this->lastDate = "{$dd}-{$mm}-20{$yy}";
         $time = strtotime($this->lastDate);
         $this->lastDate = date("d/m/Y", $time);
         $mmCotizacion = $mm;
         $yyCotizacion = "20" . $yy;
     }
     $this->totalDetails = $this->getTotalDetails();
     $this->dateReport = str_replace("/", "-", $this->getDateReport());
     $time = strtotime($this->dateReport);
     $this->dateReport = date("d/m/Y", $time);
     list($dd, $mm, $yyyy) = split("/", $this->dateReport);
     $sql = "SELECT id,idWarner,nombre,autor,comprar,regalar,descargar FROM admins.warner_detail_tones WHERE reportId='{$this->reportId}' ";
     $rs = mysql_query($sql, $this->dbc->db);
     if (!$rs) {
         // error querying db
         echo "error db ({$sql}):" . mysql_error($this->dbc) . "";
     }
     while ($obj = mysql_fetch_object($rs)) {
         $this->operationType = $this->getOperationType();
         $this->saleType = $this->getSaleType();
         $this->distributionChannel = $this->getDistributionChannel();
         $this->originalProductCode = "";
         $this->artist = $obj->autor;
         $this->title = $obj->nombre;
         $this->productCode = $this->getGridCode();
         if ($this->productCode == "") {
             $this->productCode = getGrid($this->title);
         }
         //			if ($this->productCode == "") echo "$this->title\n";
         $this->totalSoldUnits = $obj->comprar;
         $precio_sin_impuestos = PRECIO - PRECIO * 0.18;
         $this->priceClient = number_format(bob2usd($precio_sin_impuestos, $mmCotizacion, $yyCotizacion), 4);
         $precio_warner_sin_impuestos = $precio_sin_impuestos * 0.5;
         $this->priceDSPMSP = number_format(bob2usd($precio_warner_sin_impuestos, $mmCotizacion, $yyCotizacion), 4);
         $this->aditionalIncome = 0;
         $this->revenue = 0;
         // warner revenue, 50%
         $this->chargingEntity = $this->DSPMSP;
         $this->DSPMSPName = "Wazzup";
         $this->DSPMSPCountry = "UY";
         $this->clientCountry = "BO";
         $this->priceLevel = "STD";
         $this->currencyCode = "USD";
         $this->save();
         $string = $this->DSPMSP . "\t" . $this->dateReport . "\t" . $this->firstDate . "\t" . $this->lastDate . "\t" . $this->operationType . "\t" . $this->saleType . "\t" . $this->distributionChannel . "\t" . $this->originalProductCode . "\t" . $this->productCode . "\t" . $this->artist . "\t" . $this->title . "\t" . $this->totalSoldUnits . "\t" . $this->priceClient . "\t" . $this->priceDSPMSP . "\t" . $this->aditionalIncome . "\t" . $this->revenue . "\t" . $this->chargingEntity . "\t" . $this->DSPMSPName . "\t" . $this->DSPMSPCountry . "\t" . $this->clientCountry . "\t" . $this->priceLevel . "\t" . $this->currencyCode . "\n";
         $this->detailDIP .= $string;
     }
 }
Exemple #4
0
			</tr>
			<tr>
				<td class="FormLabelAzul" width="200" align="right">&nbsp;</td>
				<td width="32">&nbsp;</td>
				<td><input class="BotonBlanco" type="submit" value="Buscar"></td>
			</tr>
			<tr>
				<td class="FormLabelAzul" align="right" colspan="3"><hr color="#C0C0C0" size="1"></td>
			</tr>
		</table>
	</form>
</div>
<div align="center" id="divContent" name="divContent">
<?
if ((isset($_REQUEST["buscar"])) and ($_REQUEST["buscar"] = "yes"))
	getGrid($autor, $estado, $isbn, $tema, $titulo);
?>
</div>
<?
if (HasPermiso(60)) {
?>
<div>
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
		<tr>
			<td align="center"><input class="BotonBlanco" type="button" value="Agregar Libros" onClick="window.location.href='/index.php?pageid=60'"></td>		
		</tr>
	</table>
</div>
<?
}
?>
?>
" />

	<div align="left" id="divContentGrid" name="divContentGrid" >					
		<?php 
//style="height:100%; margin-left:8px; margin-top:8px; overflow:auto; width:100%;"
Get_Formulario($_SESSION["usuario"], $pCodCaratula, $pNroExpediente, $pNroCarpeta, $ptipoJuicio);
?>
		
	</div>
	<!-------------------------------------------------------------------------------------------->                                           
	<div align="left" id="divContentGrid" name="divContentGrid" >		
		<?php 
if ($_POST) {
    if (ValidarCampos($pCodCaratula, $pNroExpediente, $pNroCarpeta, $ptipoJuicio)) {
        echo getGrid(clearString($pidUsuario), clearString($pCodCaratula), clearNumber($pNroExpediente), clearNumber($pNroCarpeta), clearNumber($ptipoJuicio));
    } else {
        echo "<h4 style='color: #FF0000;' >Los valores para algunos Campos son incorrectos<h4>";
    }
    echo "<a href='" . $_SERVER['HTTP_REFERER'] . "'><input class='btnVolver' type='button' value=''></a>";
}
?>
	</div>  
	<!-------------------------------------------------------------------------------------------->								
	<div align="center" id="divProcesando" name="divProcesando" style="display:none"><img border="0" src="/images/waiting.gif" title="Espere por favor..."></div>
		<script type="text/javascript">
			function CopyContent() {
				try {
					window.parent.document.getElementById('divContent').inner = document.getElementById('divContent').inner;
				}
				catch(err) {
				<span id="txtCaratula"><b>
				<font face="Arial" color="DarkBlue" size="1"> 
					<?php 
echo $EJ_DESCRIPCION;
?>
</font></b></span></td>		</tr>
		<tr>
			<td height="3" colspan="6"></td>
	
			</tr></table></td></tr>
	<tr>
		<td>
			<div align="left" id="divContentGrid" name="divContentGrid" style="height:100%; 
				margin-left:0px; margin-top:8px; overflow:auto; width:100%;">		
			<?php 
echo getGrid($NroJuicio);
?>
		
			</div>
		</td>
	</tr>			
	<tr>
		<td>
			<input class='btnNuevo' name='btnNuevo' type="submit" value="" />
		</td>	</tr>
	<tr>
		<td align="center" colspan="2" height="50">				
			<input class="btnVolver" type="button" value="" onClick="history.back(-1);" />
		</td></tr>

	
if (isset($_SESSION["isAbogado"]) and !$_SESSION["isAbogado"] and !isset($pidUsuario)) {
    echo "<script type='text/javascript'>window.location.href = '/logout.php'</script>";
    exit;
}
?>
	
	<head>
		<link href="/styles/style.css" rel="stylesheet" type="text/css" />
	</head>
	
		<iframe id="iframeProcesando" name="iframeProcesando" src="" style="display:none;"></iframe>
		<!--div align="center" id="divContent" name="divContent"-->
	<div align="left" id="divContentGrid" name="divContentGrid" style="height:100%; margin-left:20px; margin-top:8px; overflow:auto; width:712px;">		
<?php 
///////function getGrid($idUsuario, $CodCaratula, $NroExpediente, $NroCarpeta, $tipoJuicio) {
echo getGrid($pidUsuario, $pCodCaratula, $pNroExpediente, $pNroCarpeta, $ptipoJuicio);
echo "<br/><a href=/Juicios-Parte-Demandada><input class='btnVolver' type='button' value=''></a>";
?>
	</div>
		<!--/div-->
		<div align="center" id="divProcesando" name="divProcesando" style="display:none"><img border="0" src="/images/waiting.gif"
			title="Espere por favor..."></div>
		<script type="text/javascript">
			function CopyContent() {
				try {
					window.parent.document.getElementById('divContent').inner = document.getElementById('divContent').inner;
				}
				catch(err) {
					//
				}
			}
<table class="table_General" align="left">	
	<tr>
		<td class="title_NegroFndAzul"></td>
	</tr>
	<tr>
		<td class="title_NegroFndAzul">Eventos</td>
	</tr>
	<tr>
		<td class="item_Blanco" colspan="6" height="5"></td>
	</tr>
</table>

<div align="left" id="divContentGrid" name="divContentGrid" 
	style="height:100%; margin-left:0px; margin-top:8px; overflow:auto; width:100%;">		
	<?php 
echo getGrid($nroorden);
echo "<script> BuscarWGFalseInterval(); </script>";
?>
		
</div>

<div align="left">					
	<!-- //CAMBIO PAG 112=119 -->
	<input class="btnNuevoEJ"  name="btnNuevo" type="button" value=""
		onclick="window.location.href = 'index.php?pageid=119&ALTA&nroorden=<?php 
echo $nroorden;
?>
'" />
	</div>

<div align="center" colspan="2" height="50">				
<?php

session_start();
require_once $_SERVER["DOCUMENT_ROOT"] . "/../Common/database/db.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/functions/general.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/modules/usuarios_registrados/clientes/administracion_usuarios/get_grid.php";
validarSesion(isset($_SESSION["isCliente"]));
validarSesion(validarPermisoClienteXModulo($_SESSION["idUsuario"], 66));
?>
<html>
	<head>
		<link rel="stylesheet" href="/styles/style.css" type="text/css" />
	</head>
	<body style="margin:0;">
		<iframe id="iframeProcesando" name="iframeProcesando" src="" style="display:none;"></iframe>
		<div align="center" id="divContent" name="divContent">
<?
echo getGrid($_REQUEST["idcliente"]);
?>
		</div>
		<div align="center" id="divProcesando" name="divProcesando" style="display:none"><img border="0" src="/images/waiting.gif" title="Espere por favor..."></div>
	</body>
</html>
				<?php 
echo $_SESSION["DESCRIPCARATULA"];
?>
 
			</font></b></span></td></tr>
	<tr><td height="2"></td></tr></td></tr>
	<tr> <td height="5px" colspan="4" bgcolor="#ffffff" ></td></tr>
	<tr>
		<td colspan="4" class="title_NegroFndGrisClaro">Siniestros</td></tr>
	<tr>
		<td height="5"></td></tr>
	<tr  >
		<td  colspan="4"  style="width:100%">			
		</td></tr>
	<tr>
		<td align="center" colspan="4" height="10">							
		</td></tr>	
</table>

<div align="left" id="divContentGrid" name="divContentGrid" 
	style="height:100%; margin-left:20px; margin-top:8px; overflow:auto; width:96%;">		
	<?php 
echo getGrid($_SESSION["NroJuicio"]);
?>
</div>

<input class="btnVolver" type="button" value="" onClick="window.location.href = '/AdminWebForm';"/>				

</div>
</form>