AND ip_fechabaja IS NULL _EXC1_";
	$grilla = new Grid();
	$grilla->addColumn(new Column("Fecha"));
	$grilla->addColumn(new Column("Tema"));
	$grilla->addColumn(new Column("Título"));
	$grilla->addColumn(new Column("Usuario"));
	$grilla->setColsSeparator(true);
	$grilla->setExtraConditions(array($where));
	$grilla->setOrderBy($ob);
	$grilla->setPageNumber($pagina);
	$grilla->setRowsSeparator(true);
	$grilla->setSql($sql);
	$grilla->Draw();
	echo "<script>";
	echo "document.getElementById('divTopGrilla').style.display = 'block';";
	echo "document.getElementById('total').innerHTML = '".$grilla->recordCount()."';";
	echo "document.getElementById('LinkToExcel').href = '/modules/control_gestion/informes_de_gestion/exportar_a_excel.php?sql=".rawurlencode($grilla->getSqlFinal())."';";
	echo "</script>";
}
?>
</div>
<div align="center" id="divProcesando" name="divProcesando" <?php 
echo $showProcessMsg ? "show='ok'" : "";
?>
 style="display:none"><img src="/images/waiting.gif" title="Espere por favor..."></div>
<script>
	function CopyContent() {
		try {
			window.parent.document.getElementById('divContent').innerHTML = document.getElementById('divContent').innerHTML;
		}
		catch(err) {
$grilla->addColumn(new Column("Interno"));
$grilla->setColsSeparator(true);
$grilla->setOrderBy($ob);
$grilla->setPageNumber($pagina);
$grilla->setParams($params);
//$grilla->setRefreshIntoWindow(true);
$grilla->setRowsSeparator(true);
$grilla->setRowsSeparatorColor("#c0c0c0");
$grilla->setShowProcessMessage(true);
$grilla->setShowTotalRegistros(false);
$grilla->setSql($sql);
$grilla->setTableStyle("GridTableCiiu");
$grilla->setUseTmpIframe(true);
$grilla->Draw();
?>
<script type="text/javascript">
	with (window.parent.document) {
<?
if ($grilla->recordCount() > 0) {
?>	
	//	getElementById('divBtnAgregarTelefono').style.top = '0';
<?
}
?>
	parent.ajustarTamanoIframe(parent, 192);
	getElementById('divProcesando').style.display = 'none';
	getElementById('divContentGrid').innerHTML = document.getElementById('originalGrid').innerHTML;
	getElementById('divContentGrid').style.display = 'block';
	}
	
</script>
示例#3
0
$grilla->setColsSeparator(true);
$grilla->setExtraConditions(array($where));
$grilla->setFieldBaja("se_fechabaja");
$grilla->setOrderBy($ob);
$grilla->setPageNumber($pagina);
$grilla->setParams($params);
$grilla->setRefreshIntoWindow(true);
$grilla->setRowsSeparator(true);
$grilla->setRowsSeparatorColor("#c0c0c0");
$grilla->setShowTotalRegistros(false);
$grilla->setSql($sql);
$grilla->setTableStyle("GridTableCiiu");
$grilla->setUseTmpIframe(true);
$grilla->Draw();

$mostrarLeyenda = ((substr($_REQUEST["idModulo"], 0, 1) == "R") and ($grilla->recordCount() > 0));
?>
			</div>
			<div align="center" id="divProcesando" name="divProcesando" style="display:none"><img border="0" src="/images/waiting.gif" title="Espere por favor..."></div>
			<input id="foco" name="foco" readonly style="height:1px; width:1px;" type="checkbox" />
		</form>
	</body>
	<script type="text/javascript">
		function CopyContent() {
			try {
				window.parent.document.getElementById('divContentGrid').innerHTML = document.getElementById('divContentGrid').innerHTML;
			}
			catch(err) {
				//
			}
		}
示例#4
0
	$grilla->addColumn(new Column("", 8, true, false, -1, "BotonInformacion", "index.php?pageid=56", "GridFirstColumn"));
	$grilla->addColumn(new Column("Nombre"));
	$grilla->addColumn(new Column("Sector"));
	$grilla->addColumn(new Column("Gerencia"));
	$grilla->addColumn(new Column("Interno"));
	$grilla->setColsSeparator(true);
	$grilla->setExtraConditions(array($where));
	$grilla->setOrderBy($ob);
	$grilla->setPageNumber($pagina);
	$grilla->setParams($params);
	$grilla->setRowsSeparator(true);
	$grilla->setShowMessageNoResults((strlen($nombre) <= 2) or (strlen($sector) > 0));
	$grilla->setSql($sql);
	$grilla->Draw();

	if ((strlen($nombre) > 2) and (strlen($sector) == 0) and ($grilla->recordCount() == 0)) {
		$params = array();
		$sql = " AND (1=2";

		// Este for reemplaza cada caracter por un comodin..
		for ($i=0; $i<strlen($nombre); $i++) {
			$texto = $nombre;
			$texto[$i] = "_";

			$params[":nombre1_".$i] = "%".RemoveAccents(strtoupper(str_replace("ñ", "Ñ", $texto)))."%";
			$sql.= " OR useu.se_buscanombre LIKE :nombre1_".$i;
		}

		// Este for quita el caracter en el que se está loopeando..
		for ($i=0; $i<strlen($nombre); $i++) {
			$texto = substr($nombre, 0, $i).substr($nombre, $i + 1);
else {
	$grilla->addColumn(new Column("Calle", -1, false));
	$grilla->addColumn(new Column("Desde", -1, false));
	$grilla->addColumn(new Column("Hasta", -1, false));
}
$grilla->addColumn(new Column("Localidad"));
$grilla->addColumn(new Column("Provincia"));
$grilla->addColumn(new Column("", 0, false));
$grilla->setOrderBy($ob);
$grilla->setPageNumber($pagina);
$grilla->setShowProcessMessage(true);
$grilla->setSql($sql);
$grilla->setTableStyle("GridTableCiiu");
$grilla->Draw();

if ($grilla->recordCount() == 0) {
?>
	<script type="text/javascript">
		parent.document.getElementById('divNoData').style.display = 'block';
	</script>
<?
}
?>
<script type="text/javascript">
	window.parent.document.getElementById('divProcesando').style.display = 'none';
	window.parent.document.getElementById('divContentGrid').innerHTML = document.getElementById('originalGrid').innerHTML;
	window.parent.document.getElementById('divContentGrid').style.display = 'block';
<?
if ($grilla->recordCount() == 0) {
?>
	window.parent.document.getElementById('provincia2').parentNode.innerHTML = '<?php 
$grilla->addColumn(new Column(".", 40, true, false, -1, "gridBtnVer", "/contacto/", "", -1, true, -1, "Ver"));
$grilla->addColumn(new Column("Nombre"));
$grilla->addColumn(new Column("Sector"));
$grilla->addColumn(new Column("Gerencia"));
$grilla->addColumn(new Column("Interno"));
$grilla->setExtraConditions(array($where));
$grilla->setOrderBy($ob);
$grilla->setPageNumber($pagina);
$grilla->setParams($params);
$grilla->setShowMessageNoResults((strlen($_REQUEST["nombre"]) <= 2) or (strlen($_REQUEST["sector"]) > 0));
$grilla->setShowProcessMessage(true);
$grilla->setShowTotalRegistros(true);
$grilla->setSql($sql);
$grilla->Draw();

if ((strlen($_REQUEST["nombre"]) > 2) and (strlen($_REQUEST["sector"]) == 0) and ($grilla->recordCount() == 0)) {
	$params = array();
	$sql = " AND (1=2";

	// Este for reemplaza cada caracter por un comodin..
	for ($i=0; $i<strlen($_REQUEST["nombre"]); $i++) {
		$texto = $_REQUEST["nombre"];
		$texto[$i] = "_";

		$params[":nombre1_".$i] = "%".removeAccents(strtoupper(str_replace("ñ", "Ñ", $texto)))."%";
		$sql.= " OR useu.se_buscanombre LIKE :nombre1_".$i;
	}

	// Este for quita el caracter en el que se está loopeando..
	for ($i=0; $i<strlen($_REQUEST["nombre"]); $i++) {
		$texto = substr($_REQUEST["nombre"], 0, $i).substr($_REQUEST["nombre"], $i + 1);