* @link http://www.orfeolibre.org
* @version SVN: $Id$
* @since
*/
/*---------------------------------------------------------+
| INCLUDES |
+---------------------------------------------------------*/
/*---------------------------------------------------------+
| DEFINICIONES |
+---------------------------------------------------------*/
/*---------------------------------------------------------+
| MAIN |
+---------------------------------------------------------*/
/*********************************************************************************
* Filename: pedidos.php
* Generated with CodeCharge 2.0.5
* PHP 4.0 build 11/30/2001
*********************************************************************************/
//-------------------------------
// pedidos CustomIncludes begin
session_start();
include ("./common.php");
include ("./encabezado.php");
// pedidos CustomIncludes end
//-------------------------------
//===============================
// Save Page and File Name available into variables
//-------------------------------
$sFileName = "pedidos.php";
//===============================
//$db->conn->debug=true;
//===============================
// pedidos PageSecurity begin
check_security();
// pedidos PageSecurity end
//===============================
//===============================
// pedidos Open Event begin
// pedidos Open Event end
//===============================
//===============================
// pedidos OpenAnyPage Event start
// pedidos OpenAnyPage Event end
//===============================
//===============================
//Save the name of the form and type of action into the variables
//-------------------------------
$sAction = get_param("FormAction");
$sForm = get_param("FormName");
//===============================
// pedidos Show begin
//===============================
// Display page
//===============================
// HTML Page layout
//-------------------------------
?>
Archivo - Manejo de prestamos y devoluciones
//-------------------------------
// Search Show end
//-------------------------------
//-------------------------------
// Search Close Event begin
// Search Close Event end
//-------------------------------
//===============================
}
//===============================
// Display Grid Form
//-------------------------------
function Pedidos_show()
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db;
global $sPedidosErr;
global $sFileName;
global $styles;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$sFormTitle = "Documentos Solicitados";
$HasParam = false;
$iRecordsPerPage = 20;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
$form_params = "s_DEPE_CODI=" . tourl(get_param("s_DEPE_CODI")) . "&s_RADI_NUME_RADI=" . tourl(get_param("s_RADI_NUME_RADI")) . "&s_USUA_LOGIN_ACTU=" . tourl(get_param("s_USUA_LOGIN_ACTU")) . "&";
//-------------------------------
// Build ORDER BY statement
//-------------------------------
$iSort = get_param("FormPedidos_Sorting");
$iSorted = get_param("FormPedidos_Sorted");
if(!$iSort)
{
$form_sorting = "";
}
else
{
if($iSort == $iSorted)
{
$form_sorting = "";
$sDirection = " DESC";
$sSortParams = "FormPedidos_Sorting=" . $iSort . "&FormPedidos_Sorted=" . $iSort . "&";
}
else
{
$form_sorting = $iSort;
$sDirection = " ASC";
$sSortParams = "FormPedidos_Sorting=" . $iSort . "&FormPedidos_Sorted=" . "&";
}
if ($iSort == 1) $sOrder = " order by P.RADI_NUME_RADI" . $sDirection;
if ($iSort == 2) $sOrder = " order by U.USUA_NOMB" . $sDirection;
if ($iSort == 3) $sOrder = " order by D.DEPE_NOMB" . $sDirection;
if ($iSort == 4) $sOrder = " order by P.PRES_FECH_PEDI" . $sDirection;
if ($iSort == 5) $sOrder = " order by P.USUA_LOGIN_PRES" . $sDirection;
if ($iSort == 6) $sOrder = " order by P.PRES_DESC" . $sDirection;
if ($iSort == 7) $sOrder = " order by P.PRES_FECH_PRES" . $sDirection;
if ($iSort == 8) $sOrder = " order by P.PRES_FECH_DEVO" . $sDirection;
if ($iSort == 9) $sOrder = " order by P.PRES_REQUERIMIENTO" . $sDirection;
if ($iSort == 10) $sOrder = " order by P.PRES_ESTADO" . $sDirection;
}
//-------------------------------
// HTML column headers
//-------------------------------
?>
//-------------------------------
// Pedidos Show end
//-------------------------------
//-------------------------------
// Move to the next record and increase record counter
//-------------------------------
$iCounter++;
}
//-------------------------------
// Grid. The insert link and record navigator.
//-------------------------------
?>
//-------------------------------
// Pedidos Close Event begin
// Pedidos Close Event end
//-------------------------------
}
//===============================
?>