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