Ver Mensaje Individual
  #11 (permalink)  
Antiguo 06/11/2008, 11:27
aliyuwey
 
Fecha de Ingreso: mayo-2008
Mensajes: 148
Antigüedad: 16 años
Puntos: 1
Respuesta: ayuda para borrar

Cita:
Iniciado por the_web_saint Ver Mensaje
ok pero hay que determinar a que formulario se hace referencia con form.form_action.

Existe alguno de esos formularios que tenga como nombre form_action?? o se enta enviando algo como argumento a esta función parecido a esto?
te dejo el codigo del unico que elimina vale?

Código PHP:
<?php require_once('../Connections/estudio.php'); ?>
<?php
//MX Widgets3 include
require_once('../includes/wdg/WDG.php');

// Load the common classes
require_once('../includes/common/KT_common.php');

// Load the common classes
require_once('../includes/common/KT_common.php');

// Load the required classes
require_once('../includes/tfi/TFI.php');
require_once(
'../includes/tso/TSO.php');
require_once(
'../includes/nav/NAV.php');

// Make unified connection variable
$conn_estudio = new KT_connection($estudio$database_estudio);

if (!
function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  
$theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch (
$theType) {
    case 
"text":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? "'" doubleval($theValue) . "'" "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}

// Filter
$tfi_listclientes1 = new TFI_TableFilter($conn_estudio"tfi_listclientes1");
$tfi_listclientes1->addColumn("clientes.fecha_ing""DATE_TYPE""fecha_ing""=");
$tfi_listclientes1->addColumn("clientes.cliente""STRING_TYPE""cliente""%");
$tfi_listclientes1->addColumn("clientes.caso""STRING_TYPE""caso""%");
$tfi_listclientes1->addColumn("tipo.tipo""STRING_TYPE""tipo""%");
$tfi_listclientes1->Execute();

// Sorter
$tso_listclientes1 = new TSO_TableSorter("rsclientes1""tso_listclientes1");
$tso_listclientes1->addColumn("clientes.fecha_ing");
$tso_listclientes1->addColumn("clientes.cliente");
$tso_listclientes1->addColumn("clientes.caso");
$tso_listclientes1->addColumn("tipo.tipo");
$tso_listclientes1->setDefault("clientes.fecha_ing");
$tso_listclientes1->Execute();

// Navigation
$nav_listclientes1 = new NAV_Regular("nav_listclientes1""rsclientes1""../"$_SERVER['PHP_SELF'], 20);

mysql_select_db($database_estudio$estudio);
$query_clientes "SELECT cliente FROM clientes GROUP BY cliente";
$clientes mysql_query($query_clientes$estudio) or die(mysql_error());
$row_clientes mysql_fetch_assoc($clientes);
$totalRows_clientes mysql_num_rows($clientes);

mysql_select_db($database_estudio$estudio);
$query_Recordset1 "SELECT tipo, tipo FROM tipo ORDER BY tipo";
$Recordset1 mysql_query($query_Recordset1$estudio) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 mysql_num_rows($Recordset1);

//NeXTenesio3 Special List Recordset
$maxRows_rsclientes1 $_SESSION['max_rows_nav_listclientes1'];
$pageNum_rsclientes1 0;
if (isset(
$_GET['pageNum_rsclientes1'])) {
  
$pageNum_rsclientes1 $_GET['pageNum_rsclientes1'];
}
$startRow_rsclientes1 $pageNum_rsclientes1 $maxRows_rsclientes1;

// Defining List Recordset variable
$NXTFilter_rsclientes1 "1=1";
if (isset(
$_SESSION['filter_tfi_listclientes1'])) {
  
$NXTFilter_rsclientes1 $_SESSION['filter_tfi_listclientes1'];
}
// Defining List Recordset variable
$NXTSort_rsclientes1 "clientes.fecha_ing";
if (isset(
$_SESSION['sorter_tso_listclientes1'])) {
  
$NXTSort_rsclientes1 $_SESSION['sorter_tso_listclientes1'];
}
mysql_select_db($database_estudio$estudio);

$query_rsclientes1 "SELECT clientes.fecha_ing, clientes.cliente, clientes.caso, tipo.tipo AS tipo, clientes.id_cliente FROM clientes LEFT JOIN tipo ON clientes.tipo = tipo.tipo WHERE {$NXTFilter_rsclientes1} ORDER BY {$NXTSort_rsclientes1}";
$query_limit_rsclientes1 sprintf("%s LIMIT %d, %d"$query_rsclientes1$startRow_rsclientes1$maxRows_rsclientes1);
$rsclientes1 mysql_query($query_limit_rsclientes1$estudio) or die(mysql_error());
$row_rsclientes1 mysql_fetch_assoc($rsclientes1);

if (isset(
$_GET['totalRows_rsclientes1'])) {
  
$totalRows_rsclientes1 $_GET['totalRows_rsclientes1'];
} else {
  
$all_rsclientes1 mysql_query($query_rsclientes1);
  
$totalRows_rsclientes1 mysql_num_rows($all_rsclientes1);
}
$totalPages_rsclientes1 ceil($totalRows_rsclientes1/$maxRows_rsclientes1)-1;
//End NeXTenesio3 Special List Recordset

$nav_listclientes1->checkBoundries();
?>