Beispiel #1
0
function filter_campaign($pDB, $id_campania)
{
    $pReportedeCalltypes = new paloSantoReportedeCalltypes($pDB);
    $arrCampanias = $pReportedeCalltypes->getCampaniasActivas();
    $selected = "";
    $select = "<select name='id_campania'>";
    foreach ($arrCampanias as $id => $campania) {
        if ($id == $id_campania) {
            $selected = "selected";
        }
        $select .= "<option value='" . $id . "' {$selected}>" . $campania . "</option>";
        $selected = "";
    }
    $select .= "</select>";
    return $select;
}
Beispiel #2
0
function actualizarCampaniaCliente($pDB)
{
    // Crea un objeto de otra clase.
    $pReportedeCalltypes = new paloSantoReportedeCalltypes($pDB);
    $pReportedeCalltypes->actualizarCampaniaCliente();
}
        <link rel="stylesheet" href="../../themes/elastixwave/help.css" />
    </head>
<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_ultima_gestion/libs/paloSantoReportedeCalltypes.class.php";
include_once "/var/www/html/modules/hispana_reporte_ultima_gestion/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);
$arrDatosGestion = $pReporte->getDatosGestion($_GET['id_gestion']);
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>";
echo "</tr>";
foreach ($arrDatosGestion as $regGestion) {
    echo "<tr class=\"table_data\">";
    echo "<td class=\"table_data\">" . $regGestion['etiqueta'] . "</td>";
    echo "<td class=\"table_data\">" . $regGestion['valor'] . "</td>";
    echo "</tr>";
}
    </head>
<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\">";
        <link rel="stylesheet" href="../../themes/elastixwave/help.css" />
    </head>
<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);
$arrDatosGestion = $pReporte->getDatosGestionRecargable($_GET['id_gestion']);
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>";
echo "</tr>";
foreach ($arrDatosGestion as $regGestion) {
    echo "<tr class=\"table_data\">";
    echo "<td class=\"table_data\">" . $regGestion['etiqueta'] . "</td>";
    echo "<td class=\"table_data\">" . $regGestion['valor'] . "</td>";
    echo "</tr>";
}
    </head>
<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->getDatosGestionRecargable($_POST['id_gestion']);
    $historialGestion = $pReporte->getHistorialAuditGestion($_POST['id_gestion']);
    echo "<b>Datos Actualizados</b>";
} else {
    $arrDatosGestion = $pReporte->getDatosGestionRecargable($_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\">";