echo date('d/m/Y'); ?> </h1> <table border='1'> <tr> <th>Dom</th> <th>Seg</th> <th>Ter</th> <th>Qua</th> <th>Qui</th> <th>Sex</th> <th>Sáb</th> </tr> <?php calendario(); ?> </table> <?php function linha($semana) { echo "<tr>"; for ($i = 0; $i <= 6; $i++) { if (isset($semana[$i])) { echo "<td>{$semana[$i]}</td>"; } else { echo "<td></td>"; } }
?> <?php echo anchor("content/month_content/" . calendario("link", "anterior", 2, $ano, $mes) . "", "<img src='" . base_url('img/Calendario_anterior.png') . "'><h3>" . calendario("nome", "anterior", 2, $ano, $mes) . "</h3>"); ?> <?php echo anchor("content/month_content/" . calendario("link", "anterior", 1, $ano, $mes) . "", "<img src='" . base_url('img/Calendario_anterior.png') . "'><h3>" . calendario("nome", "anterior", 1, $ano, $mes) . "</h3>"); ?> </div> <div class="geral"> <?php echo anchor("content/geral", "<img src='" . base_url('img/Calendario_geral.png') . "'><h3>Geral</h3>"); ?> </div> <div class="proximo"> <?php echo anchor("content/month_content/" . calendario("link", "proximo", 1, $ano, $mes) . "", "<img src='" . base_url('img/Calendario_futuro.png') . "'><h3>" . calendario("nome", "proximo", 1, $ano, $mes) . "</h3>"); ?> <?php echo anchor("content/month_content/" . calendario("link", "proximo", 2, $ano, $mes) . "", "<img src='" . base_url('img/Calendario_futuro.png') . "'><h3>" . calendario("nome", "proximo", 2, $ano, $mes) . "</h3>"); ?> <?php echo anchor("content/month_content/" . calendario("link", "proximo", 3, $ano, $mes) . "", "<img src='" . base_url('img/Calendario_futuro.png') . "'><h3>" . calendario("nome", "proximo", 3, $ano, $mes) . "</h3>"); ?> </div> </div> </div> </section>
function agregarACampania($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf) { $pClientesManuales = new paloSantoClientesManuales($pDB); $arrCampanias = $pClientesManuales->getCampaniasActivas(); $arrAgendamientos = $pClientesManuales->getAgendamientosCliente(getParameter('ci')); $script = "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"libs/js/jscalendar/calendar-win2k-2.css\" />\n <script type=\"text/javascript\" src=\"libs/js/jscalendar/calendar.js\"></script>\n <script type=\"text/javascript\" src=\"libs/js/jscalendar/lang/calendar-en.js\"></script>\n <script type=\"text/javascript\" src=\"libs/js/jscalendar/calendar-setup.js\"></script>"; $smarty->assign("HEADER", $script); $smarty->assign("TITULO", "Agregar cliente a campaña"); $smarty->assign("CAMPANIAS_OPTIONS", $arrCampanias); $smarty->assign("ci", getParameter('ci')); $smarty->assign("CLIENTE", $pClientesManuales->getNombreApellido(getParameter('ci'))); $smarty->assign("CALENDARIO", calendario("fecha", "btn_fecha")); $smarty->assign("SELECT_HORAS", getSelectHorasMinutos()); if (sizeof($arrAgendamientos) > 0) { $smarty->assign("arrAgendamientos", $arrAgendamientos); } $content = $smarty->fetch("/var/www/html/modules/hispana_clientes_manuales/themes/default/agregar.tpl"); return $content; }
function agendarEnCampania($smarty, $module_name, $local_templates_dir, &$pDB, $arrConf) { $pClienteCampania = new paloSantoClientesCampania($pDB); $arrClienteCampania = $pClienteCampania->getInfo(getParameter('id_campania_cliente')); $script = "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"libs/js/jscalendar/calendar-win2k-2.css\" />\n <script type=\"text/javascript\" src=\"libs/js/jscalendar/calendar.js\"></script>\n <script type=\"text/javascript\" src=\"libs/js/jscalendar/lang/calendar-en.js\"></script>\n <script type=\"text/javascript\" src=\"libs/js/jscalendar/calendar-setup.js\"></script>"; $smarty->assign("HEADER", $script); $smarty->assign("TITULO", "Agendar cliente en campaña"); $smarty->assign("CAMPANIA", $arrClienteCampania['campania']); $smarty->assign("ci", $arrClienteCampania['ci']); $smarty->assign("id_campania_cliente", $arrClienteCampania['id_campania_cliente']); $smarty->assign("CLIENTE", $arrClienteCampania['cliente']); $smarty->assign("AGENTES", $arrClienteCampania['agentes']); $smarty->assign("CALENDARIO", calendario("fecha", "btn_fecha")); $smarty->assign("SELECT_HORAS", getSelectHorasMinutos()); $content = $smarty->fetch("/var/www/html/modules/{$module_name}/themes/default/agendar.tpl"); return $content; }