3.0.0

how to take out the numbered column wich is in the left of the grid

im trying to take out the column on the border of the grid wich have the number of the rows. could someone help me it's a grid too old.


this is the code.

<html>
<head>
<link href="../librerias/styles/flat/grid.css" rel="stylesheet" type="text/css"/>
<link href="../librerias/estilos_bus.css" rel="stylesheet" type="text/css"/>
<style>
#grid1 {height: 190px; width: 90%; border: 1px inset; background: white}
#grid1 .active-column-0 {width: 50px;}
#grid1 .active-column-1 {width: 280px;}
</style>
<title>Búsqueda de Comuna -- busca_comuna.php </title>
<script src="../librerias/lib/grid.js"></script>
<SCRIPT language=JavaScript1.1 src="../librerias/libreria.js"> </SCRIPT>
<script language="JavaScript" >
function selecciona(todo) {
window.opener.document.formul.Btipo_comuna.value=todo;
window.opener.document.formul.nbcomuna_glosa.value='';
window.opener.document.formul.Btipo_comuna.focus();
window.close();
}

var TieneFoco = true

function CambiarTieneFoco() {
if (TieneFoco == true) {
TieneFoco = false
document.formModo.modo.value = "Normal"
}else if (TieneFoco == false) {
TieneFoco = true
document.formModo.modo.value = "Siempre visible"
DaFoco()
}
}

function DaFoco() {
if (TieneFoco == true)
setTimeout("self.focus()",100)
}

</script>

<noscript>
Su browser no es capaz de interpretar todo el código de la página, actualízelo a una versión más reciente.
</noscript>

</head>
<body topmargin=5 leftmargin=10 rightmargin=0 marginwidth=0 marginheight=0 >
<font face="Verdana, Arial, Helvetica, sans-serif" size=1>
<br>

<?php
include("../librerias/libreria.php");
include("../librerias/libreria_hbc.php");
OCIDefineByName($stmt2,"TOTAL",$mitotal);
ociexecute($stmt2);
ocifetch($stmt2);
?>
<script type="text/javascript">
var myData = [
<?
$reg=0;
while (ocifetch($stmt)) {
$reg=$reg+1;
if ($reg < $mitotal) {
echo '["' . $cod . '","' . $descrip . '"],';
}else{
echo '["' . $cod . '","' . $descrip . '"]';
}
}
echo '];';
?>

var miReg="<?php echo $reg; ?>";
var myColumns = ["Código", "Descripción"];
</script>

<?php
echo "<body bgproperties='fixed' TEXT='#000000' LINK='#0000FF' VLINK='#800080' onBlur='DaFoco()' >";
echo "<center>";
echo "<font color='#336699' size=2><b>Resultado de la búsqueda</b></font>";
echo "<P><BR>";
echo "</center>";
?>


<script>
var obj1 = new Active.Controls.Grid;
obj1.setId("grid1");
obj1.setRowProperty("count", miReg);
obj1.setColumnProperty("count", 2);
obj1.setDataProperty("text", function(i, j){return myData[i][j]});
obj1.setColumnProperty("text", function(i){return myColumns[i]});
obj1.setAction("click", function(src){window.status = src.getProperty("item/text")});
var row = new Active.Templates.Row;
row.setEvent("ondblclick", function(){this.action("myAction")});
obj1.setTemplate("row", row);
obj1.setAction("myAction", function(src){
var index = this.getSelectionProperty("index");
var texto = this.getDataProperty("text", index, 0);
selecciona(texto);});
document.write(obj1);
</script>

<?php
echo "<table width=100%>";
echo "<tr>";
echo " <TD width='1%'>&nbsp;</TD>";
echo " <td width='98%' align=center>";
echo " <input class=MBoton type='button' value=' Cerrar ' onclick='window.close()'></td>";
echo " <TD width='1%'>&nbsp;</TD>";
echo "</tr>";
echo "</table></center>";
if (strlen($prod)>0) {
ocifreestatement($stmt);
ocilogoff($conn);
}
?>
</body>
</html>
jonathan
January 4,
marlin
January 6,
January 6,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.