File: /home/asjudine/www/callcenter/menu_ventas.php
<?php
$ced = $_GET["ced"];
$nom = $_GET["nom"];
require_once("../Conectarse.php");
$result = mysql_query('SELECT codigo, sucursal, cargo_callcenter FROM Usuarios WHERE cedula = "'.$ced.'"');
list($codigo_usuario, $sucursal_usuario, $cargo_callcenter_usuario) = mysql_fetch_row($result);
//$consulta_sucursal_ticket = mysql_query("SELECT ")
?>
<!DOCTYPE HTML>
<html>
<head>
<title>MENU VENTAS</title>
<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
*{margin: 0;padding: 0;}
body{background-image:url(../ELEMENTS/fondo.jpg);font-family:Geneva, Arial, Helvetica, sans-serif;}
header {background-color: #B7271F; text-align: center;}
.cerrarsesion{width: auto;height: 20px;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
.titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
.divirmenu{text-align: center;}
.irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;margin-top: 5px;margin-bottom: 5px;}
.irmenu:hover{background-color: #67a0d9; color: #000;}
.fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
td{padding: 0px; border: 0px solid #a0a0a0;}
.td{background-color: #e5e5e5; padding: 1px 30px;color: #00135F;font-size: 14px;font-weight: 600; text-align: center;}
.boton1{width:30%;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
.boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
input[type=text]{border-radius: 5px; padding: 3px;background-color: #fffde8;}
.botoni{width: 100%; margin: 0 auto; font-size: 13px; font-weight: 500; padding: 4px; background-color: #769AEF; cursor: pointer; text-align: left; padding-left: 20px;}
.boton{width: 100%; margin: 0 auto; font-size: 13px; font-weight: 500; padding: 4px; background-color: #fffbe8; cursor: pointer; text-align: left; padding-left: 20px;}
.boton:hover{background-color: #4d598b;color: #fff;}
.titulos{color: red; font-size: 12px; font-weight: 300; }
.rojo{
color: red;
}
</style>
</head>
<body>
<header>
<img src="../ELEMENTS/bannerInterasjudinet.png" alt="" width=" 700" height="70">
</header>
<h3 class="titulo">MENU VENTAS</h3>
<?php echo "<div class='cerrarsesion' onclick='location.href=\"../cerrar_session.php\"'>CERRAR SESION</div>";?>
<form action="" method="post" name="formulario" >
<fieldset>
<p align="center">
<?php
$nom = $_GET["nom"];
$ced = $_GET["ced"];
echo"<div class='divirmenu'>
<input type='button' name='menu' id='menu' class='irmenu' onClick='window.location.href=\"menu_callcenter.php?ced=$ced&nom=$nom\"' value='MENU CALL CENTER'></div>";
?>
</p>
<table border="3" align="center" cellpadding="2" cellspacing="3" >
<tr>
<td>
<fieldset>
<fieldset>
<legend class="rojo">Ingresar Usuarios Nuevos</legend>
<table width="341" border="2" cellpadding="2" cellspacing="3">
<?php if($codigo_usuario == 1 || $codigo_usuario == 980 || $codigo_usuario == 829 || $codigo_usuario == 745 || $cargo_callcenter_usuario == "TELEMERCADERISTA" || $cargo_callcenter_usuario == "ASESOR COMERCIAL" || $cargo_callcenter_usuario == "DIRECTOR COMERCIAL" || $cargo_callcenter_usuario == "SUPERVISOR DE SUCURSAL" || $cargo_callcenter_usuario == "SUPERVISOR DE ZONA OCCIDENTE") { ?>
<tr>
<td>
<?php echo "
<input type='button' value='INGRESAR INFORMACION CLIENTE NUEVO' name='cedu' class=boton onClick =window.open('ingresar_ticket_telemercaderistas.php?cedulita=$cedula&numcon=$numcon&fecha=$fecha&atencion=$atencion&funcionario=$ced','','top=30,left=50,toolbar=yes,scrollbars=yes,width=1000,height=630,status=yes')></a>
"
?>
<!--<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"ingresar_ticket_telemercaderistas.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='INGRESAR INFORMACION CLIENTE NUEVO'>";?>
-->
</td>
</tr>
<tr>
<td>
<?php echo "
<input type='button' value='INGRESAR INFORMACION EMPRESA NUEVA' name='cedu' class=boton onClick =window.open('ingresar_ticket_telemercaderistas_empresa.php?cedulita=$cedula&numcon=$numcon&fecha=$fecha&atencion=$atencion&funcionario=$ced','','top=30,left=50,toolbar=yes,scrollbars=yes,width=1000,height=630,status=yes')></a>
"
?>
</td>
</tr>
<?php } ?>
</table>
</fieldset>
<table width="341" border="2" cellpadding="2" cellspacing="3">
<?php if($codigo_usuario == 1 || $codigo_usuario == 980 || ($cargo_callcenter_usuario == "SUPERVISOR TELEMERCADEO" || $cargo_callcenter_usuario == "COORDINADOR BOGOTA")) { ?>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"validar_recepcionista_tele_bogota.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Supervisora Telemercadeo'>";?>
</td>
</tr>
<?php } ?>
<?php if($codigo_usuario == 1 || $codigo_usuario == 980 || $codigo_usuario == 829 || $codigo_usuario == 745 || ($sucursal_usuario == "BOGOTA" && ($cargo_callcenter_usuario == "TELEMERCADERISTA" || $cargo_callcenter_usuario == "ASESOR COMERCIAL") ) ) { ?>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"menu_telemercaderista_bogota.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Solicitudes Por Telemercaderista Bogota'>";?>
</td>
</tr>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"listado_solicitudes_telemercaderista_referidos.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Solicitudes Por Telemercaderista Referidos'>";?>
</td>
</tr>
<?php } ?>
<tr><!--listado_solicitudes_base_propia-->
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"menu_telemercaderista_base_propia.php?ced=$ced&nom=$nom\"' value='Solicitud Base Propia'>";?>
</td>
</tr>
<!--
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"listado_coordinador_telemercadeo.php?ced=$ced&nom=$nom\"' value='Solicitud Servicios Call Center'>";?>
</td>
</tr>
-->
</table>
<fieldset><legend class="rojo">CITAS</legend>
<table width="341" border="2" cellpadding="2" cellspacing="3">
<?php if($codigo_usuario == 1 || $codigo_usuario == 980 || ($cargo_callcenter_usuario == "TELEMERCADERISTA" && $sucursal_usuario != "BOGOTA") ) { ?>
<tr><!---listado_asesor_comercial-->
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"menu_telemercaderista_sucursal.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Agendamiento de citas Sucursales'>";?>
</td>
</tr>
<?php } ?>
<?php if($codigo_usuario == 1 || $codigo_usuario == 980 || $cargo_callcenter_usuario == "DIRECTOR COMERCIAL" || $cargo_callcenter_usuario == "SUPERVISOR TELEMERCADEO") { ?>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"validar_supervisor_telemercadeo.php?ced=$ced&nom=$nom\"' value='Asignacion Asesor Comercial Bogota'>";?>
</td>
</tr>
<?php } ?>
<!--<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"validar_supervisor_telemercadeo_sucursales.php?ced=$ced&nom=$nom\"' value='Asignacion Asesor Comercial Sucursales'>";?>
</td>
</tr>-->
<?php if($sucursal_usuario == "BOGOTA") { ?>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"menu_asesor.php?ced=$ced&nom=$nom\"' value='Citas Agendadas Por Asesor'>";?>
</td>
</tr>
<?php }else{ ?>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"menu_asesor_sucursales.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Citas Agendadas Por Asesor Sucursales'>";?>
</td>
</tr>
<?php } ?>
</table>
<!--SE paso a base propia -->
<!--
<fieldset><legend class="rojo">CONSULTAS</legend>
<table width="341" border="2" cellpadding="2" cellspacing="3">
</table>
</fieldset>
-->
<br>
<fieldset><legend class="rojo">MENU LEGALIZACIONES</legend>
<table width="341" border="2" cellpadding="2" cellspacing="3">
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"menu_telejuridicas_ventas.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Menu Legalizaciones Contrato Juridica/Credito'>";?>
</td>
</tr>
</table>
<br>
<fieldset><legend class="rojo">CONSULTAS GENERAL EMPRESAS</legend>
<table width="341" border="2" cellpadding="2" cellspacing="3">
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"listado_general_resultado_general_ventas.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Listado General Visita Empresas'>";?>
</td>
</tr>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"listado_general_resultado_funcionario_ventas.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Consulta Por Funcionario'>";?>
</td>
</tr>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"listado_general_resultado_regional_ventas.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Consulta Por Regional'>";?>
</td>
</tr>
<tr>
<td>
<?php echo "<input type='button' class='boton' onclick='location.href=\"listado_general_resultado_sucursal_ventas.php?ced=$ced&nom=$nom&sucu=$sucursal_usuario\"' value='Consulta Por Sucursal'>";?>
</td>
</tr>
</table>
</fieldset>