예제 #1
0
<body>
<?php 
require_once "/var/www/html/libs/smarty/libs/Smarty.class.php";
require_once "/var/www/html/libs/paloSantoDB.class.php";
include_once "/var/www/html/modules/hispana_reporte_calltype/libs/paloSantoReportedeCalltypes.class.php";
include_once "/var/www/html/modules/hispana_reporte_calltype/configs/default.conf.php";
$smarty = new Smarty();
$smarty->template_dir = "/var/www/html/themes/elastixwave/";
$smarty->compile_dir = "/var/www/html/var/templates_c/";
$smarty->config_dir = "/var/www/html/configs/";
$smarty->cache_dir = "/var/www/html/var/cache/";
$pDB = new paloDB($arrConfModule['dsn_conn_database']);
// viene de default.conf.php
$pReporte = new paloSantoReportedeCalltypes($pDB);
if ($_GET["action"] == "save") {
    $pReporte->actualizarGestionCliente($_POST, $_POST['id_gestion'], $_POST['elastix_user']);
    $arrDatosGestion = $pReporte->getDatosGestion($_POST['id_gestion']);
    $historialGestion = $pReporte->getHistorialAuditGestion($_POST['id_gestion']);
    echo "<b>Datos Actualizados</b>";
} else {
    $arrDatosGestion = $pReporte->getDatosGestion($_GET['id_gestion']);
    $historialGestion = $pReporte->getHistorialAuditGestion($_GET['id_gestion']);
}
echo "<form action=?action=save method=\"post\"\\>";
echo "<table width=\"100%\" border=\"0\" class=\"tabForm\">";
echo "<tr><td><font size=3><b>Información de Gestión</font></td></tr>";
echo "<tr><td>";
echo "<table width=\"100%\" border=\"1\"  cellspacing=\"0\" cellpadding=\"2\" align=\"center\">";
echo "<tr class=\"table_title_row\">";
echo "<td class=\"table_title_row\">Campo</td>";
echo "<td class=\"table_title_row\">Valor</td>";