Esempio n. 1
0
function DBExecSqlRawValue($connection, $sql, $params, $rawParamName, $rawParamValue, $mode = OCI_COMMIT_ON_SUCCESS)
{
    // Ejecuta el query con los valores pasados como parámetro, entre ellos un campo de tipo raw..
    global $dbError;
    $stmt = oci_parse($connection, $sql);
    oci_bind_by_name($stmt, ":" . $rawParamName, $rawParamValue, strlen($rawParamValue));
    foreach ($params as $key => $val) {
        $parametro = htmlspecialcharsDecodeUpper($params[$key]);
        oci_bind_by_name($stmt, $key, $parametro, strlen($parametro));
        unset($parametro);
    }
    $error = !oci_execute($stmt, $mode);
    if ($error) {
        $dbError = oci_error($stmt);
        if (isset($dbError["offset"])) {
            throw new Exception($dbError["message"]);
        }
    }
    return $stmt;
}
Esempio n. 2
0
	private function drawRows($colOpenIfOneRecord) {
		// Método encargado de dibujar los resultados del query..

		$countRecords = 0;		
		$parametroId = '';
		
		while ($row = DBGetQuery($this->stmt, 0)) {
			$css = "";
			$countRecords++;

			if ($this->underlineSelectedRow)
				$classRow = "gridFondoOnMouseOver ";
			$classRow.= ((($countRecords % 2) == 0)?$this->row2Style:$this->row1Style);
			$this->code.= '<tr class="'.$classRow.'" style="height:'.$this->rowHeight.'px">';

			if (($this->rowsSeparator) and ($countRecords > 1))
				$css = "border-top:1px solid ".$this->rowsSeparatorColor.";";

			$i = 0;
			foreach ($row as $value) {
				if ($this->decodeSpecialChars)
					$value = htmlspecialcharsDecodeUpper($value);

				if ($this->columns[$i]->getVisible()) {		// Si la columna está visible..
					$hideCell = $this->getHideCell($row, $i);

					$colStyle = "";
					if (($this->colsSeparator) and ($i < (count($row) - 1)))
						$colStyle.= "border-right:1px solid ".$this->colsSeparatorColor.";";

					$title = "";
					if ($this->columns[$i]->getColHint() > -1)
						$title = 'title="'.get_htmlspecialchars($row[$this->columns[$i]->getColHint()]).'"';

					if ($this->columns[$i]->getButtonClass($row) != "") {
						if ((!$this->showButtonDespiteBaja) and ($this->getColBaja() != -1) and ($row[$this->getColBaja()] != ""))
							$this->code.= "<td class='".$this->columns[$i]->getCellClass()."' style='".$colStyle."'></td>";
						else {
							if ($this->columns[$i]->getUrlAmigable())		// Si es un url amigable..
								$parametroId = "/".$value;
							elseif (strpos($this->columns[$i]->getActionButton(), ".") === false)		// Si no se llama a un archivo directamente..
								$parametroId = $value;
							elseif (strrpos($this->columns[$i]->getActionButton(), "?") == 0)		// Si la url no tiene parámetros..
								$parametroId = "?id=".$value;
							else		// Sino, si tiene parámetros..
								$parametroId = "&id=".$value;

							if ($this->useTmpIframe)
								$url = "document.getElementById('".$this->tmpIframeName."').src = '".$this->columns[$i]->getActionButton().$parametroId."';";
							else
								$url = "window.location.href = '".$this->columns[$i]->getActionButton().$parametroId."';";

							if (($colOpenIfOneRecord == ($i)) and ($this->recordCount == 1))
								$this->linkIfOneRecord = $this->columns[$i]->getActionButton().$parametroId;

							if ($hideCell) {		// Si hay que ocultar el contenido de esta celda no muestro el botón..
								$input = "";
							}
							else {
								$checked = "";
								if (($this->columns[$i]->getInputType() == "checkbox") and ($this->columns[$i]->getColChecked() > -1))
									$checked = $row[$this->columns[$i]->getColChecked()];

								$msgEspera = "";
								if ($this->columns[$i]->getMostrarEspera())
									$msgEspera = "mostrarMensajeEspera('".$this->columns[$i]->getMsgEspera()."');";
								$input = '<input '.$checked.' class="'.$this->columns[$i]->getButtonClass($row).'" id="grid_col'.$i.'_'.$value.'" name="grid_col'.$i.'_'.$value.'" '.$title.' type="'.$this->columns[$i]->getInputType().'" onClick="'.$msgEspera.' '.$url.'" />';
							}

							if (($this->getColBaja() != -1) and ($row[$this->getColBaja()] != ""))		// Si la columna de baja está seteada y es una baja..
								$this->code.= '<td align="center" class="'.$this->columns[$i]->getCellClass().' '.$this->bajaStyle.'" style="'.$colStyle.' '.$css.'">'.$input.'</td>';
							else
								$this->code.= '<td align="center" class="'.$this->columns[$i]->getCellClass().'" style="'.$colStyle.' '.$css.'">'.$input.'</td>';
						}
					}
					else {
						if ($this->columns[$i]->getMaxChars() > -1)		// Ajusto la cantidad de caracteres a mostrar en la celda..
							$value = substr($value, 0, $this->columns[$i]->getMaxChars())."...";

						if ($hideCell)		// Si hay que ocultar el contenido de esta celda no muestro el valor..
							$value = "";

						if (($this->getColBaja() != -1) and ($row[$this->getColBaja()] != ""))		// Si la columna de baja está seteada y es una baja..
							$this->code.= '<td align="left" class="'.$this->columns[$i]->getCellClass().' '.$this->textStyle.' '.$this->bajaStyle.'" style="'.$colStyle.' '.$css.'"><div class="'.$this->bajaStyle.'" '.$title.'>'.$value.'</div></td>';
						else
							$this->code.= '<td align="left" class="'.$this->columns[$i]->getCellClass().' '.$this->textStyle.'" style="'.$colStyle.' '.$css.'"><div '.$title.'>'.$value.'</div></td>';
					}
				}
				$i++;
			}
			$this->code.= '</tr>';
		}

		// Si no mostró ningún registro es porque quedo configurado en una página que no existe para el sql actual, asi que llamo a la página 1..
		if ($countRecords == 0) {
			$this->setPageNumber(1);
			$this->prepareSql();
			$this->drawRows(-1);
		}
	}
Esempio n. 3
0
	protected function DrawRows($colOpenIfOneRecord) {
		// M�todo encargado de dibujar los resultados del query..
		$countRecords = 1;
		while ($row = DBGetQuery($this->stmt, 0)) {
			$css = "";

			if ($this->underlineSelectedRow)
				$classRow = "GridFondoOnMouseOver ";
			$classRow.= ((($countRecords % 2) == 0)?$this->row2Style:$this->row1Style);
			$this->code.= '<tr class="'.$classRow.'" style="height:'.$this->rowHeight.'px">';

			if (($this->rowsSeparator) and ($countRecords > 1))
				$css = "border-top:1px solid ".$this->rowsSeparatorColor.";";

			$i = 0;
			foreach ($row as $key => $value) {
				if ($this->decodeSpecialChars)
					$value = htmlspecialcharsDecodeUpper($value);
								
				if ($this->columns[$i]->getVisible()) {		// Si la columna est� visible..
					$hideCell = $this->getHideCell($row, $i);

					$colStyle = "";
					if (($this->colsSeparator) and ($i < (count($row) - 1)))
						$colStyle.= "border-right:1px solid ".$this->colsSeparatorColor.";";

					$title = "";
					if ($this->columns[$i]->getColHint() > -1)					
						$title = 'title="'.get_htmlspecialchars($row[$this->columns[$i]->getColHint()]).'"';									

					if ($this->columns[$i]->getButtonClass($row) != "") {
						if ((!$this->showButtonDespiteBaja) and ($this->GetColBaja() != -1) and ($row[$this->GetColBaja()] != ""))
							$this->code.= "<td class='".$this->columns[$i]->getCellClass()."' style='".$colStyle."'></td>";
						else {
							if (strrpos($this->columns[$i]->getActionButton(), "?") == 0)							
								$parametroID = "?".$this->columnParamGET."=".$value;														
							else								
								$parametroID = "&".$this->columnParamGET."=".$value;
							
							$colName = $this->columns[$i]->getTitle();
							if(in_array($colName, $this->ListUrlExtWindows) )
							{
								$url = "window.open('".$this->columns[$i]->getActionButton().$parametroID."');";
							}
							else 
							{
								if ($this->useTmpIframe)								
									$url = "document.getElementById('".$this->tmpIframeName."').src = '".$this->columns[$i]->getActionButton().$parametroID."';";
								else
									$url = "window.location.href = '".$this->columns[$i]->getActionButton().$parametroID."';";
							}

							if (($colOpenIfOneRecord == ($i)) and ($this->recordCount == 1))
								$this->linkIfOneRecord = $this->columns[$i]->getActionButton().$parametroID;

							if ($hideCell) {		// Si hay que ocultar el contenido de esta celda no muestro el bot�n..
								$input = "";
							}
							else {
								$checked = "";
								if (($this->columns[$i]->getInputType() == "checkbox") and ($this->columns[$i]->getColChecked() > -1))
									$checked = $row[$this->columns[$i]->getColChecked()];

								$msgEspera = "";
								if ($this->columns[$i]->getMostrarEspera())
									$msgEspera = "mostrarMensajeEspera('".$this->columns[$i]->getMsgEspera()."');";
																
								$input = '<input '.$checked.' class="'.$this->columns[$i]->getButtonClass($row).'" id="grid_col'.$i.'_'.$value.'" name="grid_col'.$i.'_'.$value.'" '.$title.' type="'.$this->columns[$i]->getInputType().'" onClick="'.$msgEspera.' '.$url.'" />';								
							}

							$this->code.= '<td align="center" class="'.$this->columns[$i]->getCellClass().'" style="'.$colStyle.' '.$css.'">'.$input.'</td>';
						}
					}
					else {
						if ($this->columns[$i]->getMaxChars() > -1)		// Ajusto la cantidad de caracteres a mostrar en la celda..
							$value = substr($value, 0, $this->columns[$i]->getMaxChars())."...";

						if ($hideCell)		// Si hay que ocultar el contenido de esta celda no muestro el valor..
							$value = "";

						if (($this->GetColBaja() != -1) and ($row[$this->GetColBaja()] != ""))		// Si la columna de baja est� seteada y es una baja..
							$this->code.= '<td align="left" class="'.$this->columns[$i]->getCellClass().' '.$this->textStyle.'" style="'.$colStyle.' '.$css.'"><div class="'.$this->bajaStyle.'" '.$title.'>'.$value.'</div></td>';
						else
							$this->code.= '<td align="left" class="'.$this->columns[$i]->getCellClass().' '.$this->textStyle.'" style="'.$colStyle.' '.$css.'"><div '.$title.'>'.$value.'</div></td>';
					}
				}
				$i++;
			}
			$this->code.= '</tr>';
			$countRecords++;
		}
	}
Esempio n. 4
0
	private function DrawRows($colOpenIfOneRecord) {
		// Método encargado de dibujar los resultados del query..
		$countRecords = 1;
		
		while ($row = DBGetQuery($this->stmt, 0)) {
			$css = "";
			
			if ($this->underlineSelectedRow)
				$classRow = "GridFondoOnMouseOver ";
			
			$classRow.= ((($countRecords % 2) == 0)?$this->row2Style:$this->row1Style);
			$this->code.= '<tr class="'.$classRow.'" style="height:'.$this->rowHeight.'px">';

			if (($this->rowsSeparator) and ($countRecords > 1))
				$css = "border-top:1px solid ".$this->rowsSeparatorColor.";";
			
			$i = 0;
			
			foreach ($row as $key => $value) {
				if ($this->decodeSpecialChars)
					$value = htmlspecialcharsDecodeUpper($value);
				
				$classColumn = '';
				$styleCssRow = '';
				$columnType = get_class($this->columns[$i]); 
				
				if( $columnType ==  'ColumnDos' ){ 					
					//$classColumn = ColumnDos::$this->columns[$i]->GetClassData();					
					$classColumn = $this->columns[$i]->GetClassData();					
					$styleCssRow = " style ='".$this->columns[$i]->GetStyleCssRow()."' ";
					
					// EscribirLogTxt1('if columnType',' columna '.$columnType.' -- '.$i);
				
				}					

				$value = $this->FormatearDinero($value);
				$value = $this->FormatearPorcentaje($value);

				if ($this->columns[$i]->getVisible()) {		// Si la columna está visible..
					$hideCell = $this->getHideCell($row, $i);

					$colStyle = "";
					if (($this->colsSeparator) and ($i < (count($row) - 1)))
						$colStyle.= "border-right:1px solid ".$this->colsSeparatorColor.";";

					$title = "";
					if ($this->columns[$i]->getColHint() > -1)
						$title = 'title="'.get_htmlspecialchars($row[$this->columns[$i]->getColHint()]).'"';

					if ($this->columns[$i]->getButtonClass($row) != ""){						
						//Si la columna no tiene un valor no se mostrara el boton 
						if($row[$i] == '') $hideCell = true;						
						
						if ((!$this->showButtonDespiteBaja) and ($this->GetColBaja() != -1) and ($row[$this->GetColBaja()] != ""))
							$this->code.= "<td codigo='cambiocolor' class='".$this->columns[$i]->getCellClass()."' style='".$colStyle."'></td>";
						else {
							$url = $this->DR_SetClickUrlLink( $value, $i, $columnType);												
								
							if (($colOpenIfOneRecord == ($i)) and ($this->recordCount == 1))
								$this->linkIfOneRecord = $this->columns[$i]->getActionButton().$parametroID;

							if ($hideCell) {		// Si hay que ocultar el contenido de esta celda no muestro el botón..
								$input = "";
							}
							else {
								$checked = "";
								if (($this->columns[$i]->getInputType() == "checkbox") and ($this->columns[$i]->getColChecked() > -1))
									$checked = $row[$this->columns[$i]->getColChecked()];

								
								$input = '<input '.$checked.' class="'.$this->columns[$i]->getButtonClass($row).'" id="grid_col'.$i.'_'.$value.'" name="grid_col'.$i.'_'.$value.'" '.$title.' type="'.$this->columns[$i]->getInputType().'" '.$url.' codigo="cambiocolor" />';
							}

							$this->code.= '<td codigo="cambiocolor" align="center" class="'.$this->columns[$i]->getCellClass().' " style="'.$colStyle.' '.$css.'">'.$input.'</td>';
						}
					}else {
						
										
						if ($this->columns[$i]->getMaxChars() > -1)		// Ajusto la cantidad de caracteres a mostrar en la celda..
							$value = substr($value, 0, $this->columns[$i]->getMaxChars())."...";

						if ($hideCell)		// Si hay que ocultar el contenido de esta celda no muestro el valor..
							$value = "";

						if (($this->GetColBaja() != -1) and ($row[$this->GetColBaja()] != "")){		// Si la columna de baja está seteada y es una baja..
						
							$allClassCss = $this->columns[$i]->getCellClass().' '.$this->textStyle;	
							
							$this->code.= '<td codigo="cambiocolor" align="left" class="'.$allClassCss.' " style="'.$colStyle.' '.$css.'"><div class="'.$this->bajaStyle.'" '.$title.'>'.$value.'</div></td>';
						}else{
							
							
							if( $columnType == 'ColumnDos' ){ 												
							
								
								$campo = $this->columns[$i]->GetColumnIDRefernce();
								$url = '';							
								//------------------------								
								$TxtBotonClass = $this->columns[$i]->GetButtonCell()["CLASS"]; 
								$TxtBotonURL = $this->columns[$i]->GetButtonCell()["URL"]; 
								$TxtBotonNumCol = $this->columns[$i]->GetButtonCell()["NUMCOLUMNREF"]; 
								$title = " title= '".$this->columns[$i]->GetButtonCell()["TITLE"]."' "; 
								
								$divBotonLink = '  ';
								$checked = "";
								
								if($TxtBotonNumCol != ''){
								
									$url = $this->DR_SetClickUrlLink( $value, $i, $columnType, $row, $TxtBotonURL, $TxtBotonNumCol);
																		
									$divBotonLink = '<div style="text-align: center; padding: 10px;" ><input '.$checked.
											' class="'.$TxtBotonClass.
											'" id="grid_col'.$i.'_'.$value.
											'" name="grid_col'.$i.'_'.$value.'" '.$title.
											' type="'.$this->columns[$i]->getInputType().'" '.$url.' codigo="cambiocolor" /></div>';
								}								
								//------------------------	
								
								if( $campo > 0){
									
									$valorparam=htmlspecialcharsDecodeUpper($row[$campo]);
									$parametroID = $this->ArmaParametros($i, $valorparam, $columnType);
									/*
									if (strrpos($this->columns[$i]->getActionButton(), "?") == 0)							
										$parametroID = "?".$this->getNameParamGET()."=".$valorparam;
									else								
										$parametroID = "&".$this->getNameParamGET()."=".$valorparam;									
									*/

									$variable = $this->columns[$i]->getActionButton().$parametroID;
									$url = "window.location.href = '".$variable."';";
									$celdaValor = '<a style="cursor:pointer; " onClick="'.$url.'"  > <div class="'.$classColumn.'" '.$styleCssRow.' >'.$value.'</div> </a>';
								}else{
									$celdaValor = '<div class="'.$classColumn.'" '.$styleCssRow.' >'.$value.'</div> '.$divBotonLink;
								}
								
								$this->code.= '<td codigo="cambiocolor" align="left" class="'.
									$this->columns[$i]->getCellClass().' '.$this->textStyle.'" style="'.
									$colStyle.' '.$css.' "><div '.$title.' >'.$celdaValor.'</div> </td>';	
								
							}
							else{
								$this->code.= '<td codigo="cambiocolor" align="left" class="'.$this->columns[$i]->getCellClass().' '.$this->textStyle.'" style="'.$colStyle.'  '.$css.'"><div '.$title.'>'.$value.'</div></td>';
							}
						}
					}
				}
				$i++;
			}
			$this->code.= '</tr>';
			$countRecords++;
		}
	}
Esempio n. 5
0
if (isset($_REQUEST["id"])) {
    $EventoID = $_REQUEST["id"];
}
if (isset($_REQUEST["EventoID"])) {
    $EventoID = $_REQUEST["EventoID"];
}
if (isset($_REQUEST["btnAceptarSubmit"])) {
    $muestrav = 1;
    $txtfecha = $_REQUEST["txtFecha"];
    $txtfechavencimiento = $_REQUEST["txtFechaVencimiento"];
    $etid = $EventoID;
    $idEvento = $EventoID;
    /*	Solucion ticket 68816
    		codificacion de símbolos . 	*/
    $txtobservaciones = htmlspecialchars_decode($_REQUEST["txtObservaciones"]);
    $txtobservaciones = htmlspecialcharsDecodeUpper($txtobservaciones);
    $usuario = $_SESSION["usuario"];
    $cmbEventos = $_REQUEST["cmbEventos"];
    if ($idEvento == 0) {
        $msj = 'Evento Ingresado correctamente. ';
        $nrojuicio = $_SESSION["NroJuicio"];
        $idEvento = InsertarEventoNuevo($txtfecha, $txtfechavencimiento, $txtobservaciones, $nrojuicio, $usuario, $cmbEventos);
        $EventoID = $idEvento;
        VolverPaginaPrev("Datos ingresados correctamente.");
    } else {
        $msj = 'Evento Actualizado correctamente. ';
        UpdateEventosABM($txtfecha, $txtfechavencimiento, $etid, $txtobservaciones, $usuario, $cmbEventos);
        VolverPaginaPrev("Datos actualizados correctamente");
    }
}
if ($EventoID > 0) {
Esempio n. 6
0
	private function DrawRows($colOpenIfOneRecord) {
		// Método encargado de dibujar los resultados del query..
		$countRecords = 1;
		$styleCell = "";
		$checked = "";
		$classRow = "";
		
		while ( $row = DBGetQuery( $this->stmt, 0) ) {
			$css = "";
			$classRow = "";
			$this->SetCurrentURL('');

			if ($this->underlineSelectedRow)				
				$classRow = $this->StyleunderlineSelectedRow;
			
			$classRow .= ((($countRecords % 2) == 0)?$this->row2Style:$this->row1Style);
			
			$this->code.= '<tr class="'.$classRow.'" style="height:'.$this->rowHeight.'px">';

			if (($this->rowsSeparator) and ($countRecords > 1))				
				$css = "border-top:1px solid ".$this->rowsSeparatorColor.";";
						
			$i = 0;			
			foreach ($row as $value) {
			
				//$value = utf8_encode($value);				
				$value = html_entity_decode($value);				
				$LastID = html_entity_decode($value);				
				/*
				if (mb_detect_encoding($value)=="UTF-8"){ 
					//$value = utf8_decode($value);				
				}
				*/
				if ($this->decodeSpecialChars)
					$value = htmlspecialcharsDecodeUpper($value);
	
				$value = trim($value);

				if ($this->columns[$i]->getVisible()) {		// Si la columna está visible..
					$hideCell = $this->getHideCell($row, $i);

					$colStyle = "";
					if (($this->colsSeparator) and ($i < (count($row) - 1)))
						$colStyle.= "border-right:1px solid ".$this->colsSeparatorColor."; ";

					$title = "";
					if ($this->columns[$i]->getColHint() > -1)
						$title = 'title="'.get_htmlspecialchars($row[$this->columns[$i]->getColHint()]).'"';
						
					if ($this->columns[$i]->getButtonClass($row) != "") {	
					
						if ((!$this->showButtonDespiteBaja) and ($this->GetColBaja() != -1) and ($row[$this->GetColBaja()] != ""))
							$this->code.= "<td class='".$this->columns[$i]->getCellClass()."' style='".$colStyle."'></td>";
						else {													
							if (strrpos($this->columns[$i]->getActionButton(), "?") == 0)
								$parametroID = "?id=".$value;
							else
								$parametroID = "&id=".$value;							
														
							if ( strrpos($parametroID, "+") != 0 ) $parametroID = str_replace('+', '&', $parametroID);							
							//------------------------------------------------------ -----------------------------------------------------
							if($this->columns[$i]->getFunctionAjax() == ''){
								if ($this->useTmpIframe){
									$url = "document.getElementById('".$this->tmpIframeName."').src = '".$this->columns[$i]->getActionButton().$parametroID."';";
								}
								else
									$url = "window.location.href = '".$this->columns[$i]->getActionButton().$parametroID."';";
							}else{								
									$url = " ".$this->columns[$i]->getFunctionAjax()."(".$value."); ";
							}							
						
							$this->SetCurrentURL($this->columns[$i]->getActionButton().$parametroID);
							//------------------------------------------------------  ------------------------------------------------------ 
							if (($colOpenIfOneRecord == ($i)) and ($this->recordCount == 1))
								$this->linkIfOneRecord = $this->columns[$i]->getActionButton().$parametroID;

							if ($hideCell) {		// Si hay que ocultar el contenido de esta celda no muestro el botón..
								$input = "";
							}
							else {
								$checked = "";
								$activacheck = "";								
								
								if (($this->columns[$i]->getInputType() == "checkbox") 
								and ($this->columns[$i]->getColChecked() > -1)){
									$checked = $row[$this->columns[$i]->getColChecked()];

									if($this->CrearArray){
										if(intval($value) > 0)	
											$activacheck = " checked ";
									}else{										
										if($this->IsArrayCheckSeleccion($row[$i+1]))
											$activacheck = " checked ";
									}
								}

								$msgEspera = "";
								if ($this->columns[$i]->getMostrarEspera())
									$msgEspera = "mostrarMensajeEspera('".$this->columns[$i]->getMsgEspera()."');";
									
								$eventOnClick = 'onClick="'.$msgEspera.' '.$url.'" ';
																
								if(isset($row[$i+1])){
									if($this->columns[$i]->GetUseIdPageinName()){
										$valPageRegCol = $this->pageNumber.'_'.$countRecords.'_'.$i;
										$idcheck = ' id="ID_'.$valPageRegCol.'" ';
										$nameCheck = ' name="GRID_COL'.$valPageRegCol.'" ';
									}else{
										$idcheck = ' id="'.utf8_encode($row[$i+1]).'" ';
										$nameCheck= ' name="GRID_COL'.$i.'_'.$value.'" ';
									 }
									
									if($activacheck != "")
										$this->AddArrayChecks($row[$i+1]);										
									
									if ($this->columns[$i]->getInputType() == "checkbox"){
										//$idColumn = $this->columns[$i]->getColChecked();
										//$eventOnClick = 'onClick="CheckOption(\''.$row[$idColumn].'\'); " ';
										$paramFuncion = utf8_encode($row[$i+1]);
										$eventOnClick = 'onClick="CheckOption(\''.$paramFuncion.'\'); " ';
										$checked = "";
									}
								}else{									
									$valPageRegCol = $this->pageNumber.'_'.$countRecords.'_'.$i;
									$idcheck = ' id="ID_ELSE_'.$valPageRegCol.'" ';
									$nameCheck = ' name="GRID_COL_ELSE'.$valPageRegCol.'" ';
								}							
							
								if( $this->columns[$i]->hasArrayLinks() ) {							
										
									$codigoKey = $this->columns[$i]->searchTextArrayLinks($value);
									$codigoClass = $this->columns[$i]->searchKeyArrayLinks($value);
																		
									if($value == '0' or $codigoClass == 'TEXT'){
										$valorText = $this->columns[$i]->searchTextArrayLinks($value);																			
										$input = '<div>'.$valorText.'</div>';
										
									}elseif($this->IsLinkCell($value)){									
										$funcionAjax = " ".$this->columns[$i]->getFunctionAjax()."(".$value."); ";
										$eventOnClick = 'onClick=" '.$funcionAjax.' " ';
										
										$codigoClass = $this->ExtraeTextoCell($codigoClass, '_LINK_');
										$input =  ' <a class="'.$this->textStyleLink.'" '.$eventOnClick.' > '.$codigoClass.' </a> ';
										
									}else{												
										$input = '<input  '.$checked.' class="'.$this->columns[$i]->getArrayButtonIDclass($codigoClass).'" '.$idcheck.' '.$eventOnClick.' '.$nameCheck.' '.$title.' type="'.$this->columns[$i]->getInputType().'"  '.$activacheck.' />';
									}
									
								}else{
									//entra aca 	
									$input = '<input  '.$checked.' class="'.$this->columns[$i]->getButtonClass($row).'" '.$idcheck.' '.$eventOnClick.' '.$nameCheck.' '.$title.' type="'.$this->columns[$i]->getInputType().'"  '.$activacheck.' />';
								}								
							}
							
							$classCell = ' class="'.$this->columns[$i]->getCellClass().' " ';
							$styleCell = ' style="'.$colStyle.' '.$css.'" ';
							
							if( $this->ChangeBackGround( $row ) ){
								$styleCell = ' style="'.$colStyle.' '.$css.'  background-color:'.$this->ChangeBackGroundStyle.'; " ';
							}
																
							$this->code.= '<td align="center" '.$classCell.' '.$styleCell.' >'.$input.'</td>';
						}
					}
					else{
						
						if ($this->columns[$i]->getMaxChars() > -1)		// Ajusto la cantidad de caracteres a mostrar en la celda..
							$value = substr($value, 0, $this->columns[$i]->getMaxChars())."...";

						if ($hideCell)		// Si hay que ocultar el contenido de esta celda no muestro el valor..
							$value = "";
							
							$value = utf8_encode($value);
						//--------------------------------------------------------------------------------------------	
						if($this->columns[$i]->getLink($value) != ''){		
							$eventOnClick = 'onClick=" '.$this->columns[$i]->getLink( $value ).'(\''.$value.'\'); " ';
							$value =  ' <a class="'.$this->textStyle.'" '.$eventOnClick.' > '.$value.' </a> ' ;								
						}						
						//--------------------------------------------------------------------------------------------
						$EventHTML = '';						
						$IdNameColumna = '';
						if($this->columns[$i]->getEventHTMLdblclick() != '' ){
							$NumColum = $this->columns[$i]->getEventHTMLdblclickFieldNameParam();							
							$valorParam = $row[$NumColum];
							
							$IdNameColumna = " ID='CELDA_".$i."_".$valorParam."' ";							
							$EventHTML = "ondblclick= ' ".$this->columns[$i]->getEventHTMLdblclick()."(".$i.", ".$valorParam.") ' ";
							
							$title = ' title="'.$value.'" ';
						}
						
						$classCell = '';
						if($this->columns[$i]->getCellClass() != ''){
							$classCell = ' class="'.$this->columns[$i]->getCellClass().' '.$this->textStyle.'" ';
							$styleCell = ' style="'.$colStyle.' '.$css.'" ';
							
							if( $this->ChangeBackGround( $row ) ){
								$styleCell = ' style="'.$colStyle.' '.$css.'  background-color:'.$this->ChangeBackGroundStyle.'; " ';
							}
						}
						
						if (($this->GetColBaja() != -1) and ($row[$this->GetColBaja()] != ""))		// Si la columna de baja está seteada y es una baja..
							$this->code.= '<td align="left" '.$classCell.'  '.$styleCell.' ><div class="'.$this->bajaStyle.'" '.$title.'>'.$value.'</div></td>';
						else{							
							$colStyle = $colStyle.$this->StyleCellText;
							$this->code.= '<td align="left" '.$classCell.'  '.$styleCell.'  '.$EventHTML.' > <div '.$title.'  '.$EventHTML.' '.$IdNameColumna.'  style="'.$colStyle.' '.$css.'" >'.$value.'</div></td>';
						}
					}
				}
				$i++;
			}
			$this->code.= '</tr>';
			$countRecords++;
		}
	}