segunda parte:
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:wdg="http://ns.adobe.com/addt">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Administración</title>
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
<script src="../includes/nxt/scripts/list.js" type="text/javascript"></script>
<script src="../includes/nxt/scripts/list.js.php" type="text/javascript"></script>
<script type="text/javascript">
$NXT_LIST_SETTINGS = {
duplicate_buttons: true,
duplicate_navigation: false,
row_effects: true,
show_as_buttons: true,
record_counter: false
}
</script>
<style type="text/css">
@import url("style/principal.css");
/* Dynamic List row settings */
.KT_col_fecha_ing {width:70px; overflow:hidden;}
.KT_col_cliente {width:130px; overflow:hidden;}
.KT_col_caso {width:350px; overflow:hidden;}
.KT_col_tipo {width:140px; overflow:hidden;}
</style>
<script type="text/javascript" src="../includes/common/js/sigslot_core.js"></script>
<script type="text/javascript" src="../includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="../includes/wdg/classes/MXWidgets.js.php"></script>
<script type="text/javascript" src="../includes/wdg/classes/Calendar.js"></script>
<script type="text/javascript" src="../includes/wdg/classes/SmartDate.js"></script>
<script type="text/javascript" src="../includes/wdg/calendar/calendar_stripped.js"></script>
<script type="text/javascript" src="../includes/wdg/calendar/calendar-setup_stripped.js"></script>
<script src="../includes/resources/calendar.js"></script>
</head>
<body>
<table cellspacing="0" cellpadding="0" class="menusuper">
<tr>
<td>Ubicación: Clientes o Casos</td>
</tr>
</table>
<div class="KT_tng" id="listclientes1">
<div class="KT_tnglist">
<form action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" method="post" id="form1">
<div class="KT_options"> <a href="<?php echo $nav_listclientes1->getShowAllLink(); ?>"><?php echo NXT_getResource("Show"); ?>
<?php
// Show IF Conditional region1
if (@$_GET['show_all_nav_listclientes1'] == 1) {
?>
<?php echo $_SESSION['default_max_rows_nav_listclientes1']; ?>
<?php
// else Conditional region1
} else { ?>
<?php echo NXT_getResource("all"); ?>
<?php }
// endif Conditional region1
?>
<?php echo NXT_getResource("records"); ?></a>
<a href="<?php echo $tfi_listclientes1->getResetFilterLink(); ?>"><?php echo NXT_getResource("Reset filter"); ?></a> </div>
<table cellpadding="2" cellspacing="0" class="KT_tngtable">
<thead>
<tr class="KT_row_order">
<th> <input type="checkbox" name="KT_selAll" id="KT_selAll"/> </th>
<th id="fecha_ing" class="KT_sorter KT_col_fecha_ing <?php echo $tso_listclientes1->getSortIcon('clientes.fecha_ing'); ?>"> <a href="<?php echo $tso_listclientes1->getSortLink('clientes.fecha_ing'); ?>">Fecha</a> </th>
<th id="cliente" class="KT_sorter KT_col_cliente <?php echo $tso_listclientes1->getSortIcon('clientes.cliente'); ?>"> <a href="<?php echo $tso_listclientes1->getSortLink('clientes.cliente'); ?>">Cliente</a> </th>
<th id="caso" class="KT_sorter KT_col_caso <?php echo $tso_listclientes1->getSortIcon('clientes.caso'); ?>"> <a href="<?php echo $tso_listclientes1->getSortLink('clientes.caso'); ?>">Caso</a> </th>
<th id="tipo" class="KT_sorter KT_col_tipo <?php echo $tso_listclientes1->getSortIcon('tipo.tipo'); ?>"> <a href="<?php echo $tso_listclientes1->getSortLink('tipo.tipo'); ?>">Tipo</a> </th>
<th>Opciones</th>
<th>Carpeta</th>
</tr>
<tr class="KT_row_filter">
<td> </td>
<td><input name="tfi_listclientes1_fecha_ing" id="tfi_listclientes1_fecha_ing" value="<?php echo @$_SESSION['tfi_listclientes1_fecha_ing']; ?>" size="10" maxlength="22" wdg:mondayfirst="false" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="true" wdg:restricttomask="no" wdg:readonly="true" /></td>
<td><select name="tfi_listclientes1_cliente" id="tfi_listclientes1_cliente">
<option value="" <?php if (!(strcmp("", @$_SESSION['tfi_listclientes1_cliente']))) {echo "SELECTED";} ?>><?php echo NXT_getResource("None"); ?></option>
<?php
do {
?>
<option value="<?php echo $row_clientes['cliente']?>"<?php if (!(strcmp($row_clientes['cliente'], @$_SESSION['tfi_listclientes1_cliente']))) {echo "SELECTED";} ?>><?php echo $row_clientes['cliente']?></option>
<?php
} while ($row_clientes = mysql_fetch_assoc($clientes));
$rows = mysql_num_rows($clientes);
if($rows > 0) {
mysql_data_seek($clientes, 0);
$row_clientes = mysql_fetch_assoc($clientes);
}
?>
</select>
</td>
<td><input type="text" name="tfi_listclientes1_caso" id="tfi_listclientes1_caso" value="<?php echo KT_escapeAttribute(@$_SESSION['tfi_listclientes1_caso']); ?>" size="50" maxlength="255" /></td>
<td><select name="tfi_listclientes1_tipo" id="tfi_listclientes1_tipo">
<option value="" <?php if (!(strcmp("", @$_SESSION['tfi_listclientes1_tipo']))) {echo "SELECTED";} ?>><?php echo NXT_getResource("None"); ?></option>
<?php
do {
?>
<option value="<?php echo $row_Recordset1['tipo']?>"<?php if (!(strcmp($row_Recordset1['tipo'], @$_SESSION['tfi_listclientes1_tipo']))) {echo "SELECTED";} ?>><?php echo $row_Recordset1['tipo']?></option>
<?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$rows = mysql_num_rows($Recordset1);
if($rows > 0) {
mysql_data_seek($Recordset1, 0);
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
}
?>
</select>
</td>
<td><div align="center">
<input type="submit" name="tfi_listclientes1" value="<?php echo NXT_getResource("Filter"); ?>" />
</div></td>
<td> </td>
</tr>
</thead>
<tbody>
<?php if ($totalRows_rsclientes1 == 0) { // Show if recordset empty ?>
<tr>
<td colspan="7"><?php echo NXT_getResource("The table is empty or the filter you've selected is too restrictive."); ?></td>
</tr>
<?php } // Show if recordset empty ?>
<?php if ($totalRows_rsclientes1 > 0) { // Show if recordset not empty ?>
<?php do { ?>
<tr class="<?php echo @$cnt1++%2==0 ? "" : "KT_even"; ?>">
<td><input type="checkbox" name="kt_pk_clientes" class="id_checkbox" value="<?php echo $row_rsclientes1['id_cliente']; ?>" />
<input type="hidden" name="id_cliente" class="id_field" value="<?php echo $row_rsclientes1['id_cliente']; ?>" /> </td>
<td><div class="KT_col_fecha_ing"><?php echo KT_formatDate($row_rsclientes1['fecha_ing']); ?></div></td>
<td><div class="KT_col_cliente"><?php echo KT_FormatForList($row_rsclientes1['cliente'], 50); ?></div></td>
<td><div class="KT_col_caso"><?php echo KT_FormatForList($row_rsclientes1['caso'], 70); ?></div></td>
<td><div class="KT_col_tipo"><?php echo KT_FormatForList($row_rsclientes1['tipo'], 20); ?></div></td>
<td><div align="center"><a href="id_cliente.php?id_cliente=<?php echo $row_rsclientes1['id_cliente']; ?>&KT_back=1"><img src="images/editar.gif" alt="Modificar Caso" title="Modificar Caso" width="20" height="20" border="0" /></a> <a href="borrar_cliente.php?id_cliente=<?php echo $row_rsclientes1['id_cliente']; ?>&#delete"><img src="images/borrar.gif" alt="Eliminar Caso" title="Eliminar Caso" width="20" height="20" border="0" /></a> </div></td>
<td><div align="center"><a href="causas.php?id_cliente=<?php echo $row_rsclientes1['id_cliente']; ?>"><img src="images/carpeta.gif" alt="Ver/Editar Carpeta" width="20" height="20" border="0" /></a></div></td>
</tr>
<?php } while ($row_rsclientes1 = mysql_fetch_assoc($rsclientes1)); ?>
<?php } // Show if recordset not empty ?>
</tbody>
</table>
<div class="KT_bottomnav">
<div>
<?php
$nav_listclientes1->Prepare();
require("../includes/nav/NAV_Text_Navigation.inc.php");
?>
</div>
</div>
<div class="KT_bottombuttons">
<div class="KT_operations"> <a class="KT_edit_op_link" href="#" onclick="nxt_list_edit_link_form(this); return false;"><?php echo NXT_getResource("edit_all"); ?></a> <a class="KT_delete_op_link" href="#" onclick="nxt_list_delete_link_form(this); return false;"><?php echo NXT_getResource("delete_all"); ?></a> </div>
<span> </span>
<select name="no_new" id="no_new">
<option value="1">1</option>
<option value="3">3</option>
<option value="6">6</option>
</select>
<a class="KT_additem_op_link" href="id_cliente.php?KT_back=1" onclick="return nxt_list_additem(this)"><?php echo NXT_getResource("add new"); ?></a> </div>
</form>
</div>
<br class="clearfixplain" />
</div>
<p> </p>
</body>
</html>
<?php
mysql_free_result($clientes);
mysql_free_result($Recordset1);
mysql_free_result($rsclientes1);
?>