Beispiel #1
1
function whitepaper_template()
{
    remove_action('thesis_hook_header', 'thesis_default_header');
    add_action('thesis_hook_header', 'thesis_whitepaper_header');
    get_header(apply_filters('thesis_get_header', $name));
    echo '<div id="container">' . "\n";
    echo '<div id="page">' . "\n";
    thesis_header_area();
    echo '	<div id="content_box">' . "\n";
    thesis_content_column();
    echo '		<div id="sidebars">' . "\n";
    echo '			<div id="sidebar_5 class="sidebar">' . "\n";
    echo '				<ul class="sidebar_list">' . "\n";
    dynamic_sidebar(5);
    echo '				</ul>' . "\n";
    echo '			</div>' . "\n";
    // sidebar_5
    echo '		</div>' . "\n";
    // //sidebars
    echo '	</div>' . "\n";
    // content_box
    thesis_footer_area();
    echo '</div>' . "\n";
    //page
    echo '</div>' . "\n";
    //container
    get_footer(apply_filters('thesis_get_footer', $name));
}
Beispiel #2
0
 public function listar($j = 0)
 {
     $filter = new stdClass();
     $filter->rol = $this->session->userdata('rolusu');
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     $filter = new stdClass();
     $filter_not = new stdClass();
     $registros = count($this->sector_model->listar($filter));
     $sectores = $this->sector_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
     $item = 1;
     $lista = array();
     if (count($sectores) > 0) {
         foreach ($sectores as $indice => $value) {
             $lista[$indice] = new stdClass();
             $lista[$indice]->codigo = $value->SECTORP_Codigo;
             $lista[$indice]->descripcion = $value->SECTORC_Descripcion;
         }
     }
     $configuracion = $this->configuracion;
     $configuracion['base_url'] = base_url() . "index.php/maestros/sector/listar";
     $configuracion['total_rows'] = $registros;
     $this->pagination->initialize($configuracion);
     /*Enviamos los datos a la vista*/
     $data['lista'] = $lista;
     $data['menu'] = $menu;
     $data['header'] = get_header();
     $data['titulo'] = "Listado de Sectores";
     $data['nuevo'] = "Crear una nueva Sector";
     $data['registros'] = $registros;
     $data['paginacion'] = $this->pagination->create_links();
     $this->load->view("maestros/sector_index", $data);
 }
Beispiel #3
0
 static function get_header($use_main_template = false, $name = '')
 {
     if ($use_main_template) {
         get_header($name);
         return;
     }
     $header = 'header-snapjobs';
     if ($name) {
         $header .= '-' . $name;
     }
     $header .= '.php';
     if (file_exists($template_header = _NP_TEMPLATE_PATH . DIRECTORY_SEPARATOR . $header)) {
         if ($name) {
             $template_header = str_replace('.php', '', $template_header) . '-' . $name . '.php';
         }
         require $template_header;
     } else {
         if ($name) {
             $template_header = 'templates/header-' . $name . '.php';
         } else {
             $template_header = 'templates/header.php';
         }
         require $template_header;
     }
 }
function showErrorPage()
{
    get_header();
    ?>
	<div class="row">
	    <div class="col-lg-12">
			<div class="page-header">
				<h1><?php 
    echo __('Create building', 'idp-theme');
    ?>
					
					<small><?php 
    echo __('Step 3: Images', 'idp-theme');
    ?>
</small> 
				</h1>
			</div>
		</div>
	</div>
		<?php 
    idp_showAlertMessage('buildingNotFound');
    ?>

	<?php 
    get_footer();
    exit;
}
function mtm_load_wrap_header()
{
    if (mtm_load_wrap()) {
        get_header();
        echo '<main id="main" class="site-main" role="main">';
    }
}
    function template()
    {
        do_action('activate_header');
        add_action('wp_head', array($this, 'do_activate_header'));
        add_action('wp_head', array($this, 'wpmu_activate_stylesheet'));
        get_header();
        ?>

        <div id="content" class="widecolumn">

            <?php 
        if (!$this->has_activation_key()) {
            get_template_part($this->template_folder . '/activate', 'no-key');
        } else {
            $key = $this->get_activation_key();
            $this->result = GFUserSignups::activate_signup($key);
            if (is_wp_error($this->result)) {
                get_template_part($this->template_folder . '/activate', 'error');
            } else {
                get_template_part($this->template_folder . '/activate', 'success');
            }
        }
        ?>

        </div>

        <script type="text/javascript">
            var key_input = document.getElementById('key');
            key_input && key_input.focus();
        </script>

        <?php 
        get_footer();
    }
 public function listar($j = 0)
 {
     $filter = new stdClass();
     $filter->rol = $this->session->userdata('rolusu');
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     $filter = new stdClass();
     $filter_not = new stdClass();
     $filter_not->persona = "0";
     $filter->order_by = array("c.TIPP_Codigo" => "asc");
     $registros = count($this->tipoestudio_model->listar($filter, $filter_not));
     $tipoestudios = $this->tipoestudio_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
     $item = 1;
     $lista = array();
     if (count($tipoestudios) > 0) {
         foreach ($tipoestudios as $indice => $value) {
             $lista[$indice] = new stdClass();
             $lista[$indice]->codigo = $value->TIPP_Codigo;
             $lista[$indice]->nombre = $value->TIPC_Nombre;
             $lista[$indice]->descripcion = $value->TIPC_Descripcion;
         }
     }
     $configuracion = $this->configuracion;
     $configuracion['base_url'] = base_url() . "index.php/maestros/persona/listar";
     $configuracion['total_rows'] = $registros;
     $this->pagination->initialize($configuracion);
     /*Enviamos los datos a la vista*/
     $data['lista'] = $lista;
     $data['menu'] = $menu;
     $data['header'] = get_header();
     $data['j'] = $j;
     $data['registros'] = $registros;
     $data['paginacion'] = $this->pagination->create_links();
     $this->load->view("maestros/tipoestudio_index", $data);
 }
Beispiel #8
0
function wp_us_cities_template_redirect_intercept()
{
    global $wp_query;
    if ($wp_query->get('location-search')) {
        get_header();
        echo '
            <div id="primary" class="content-area">
                <main id="main" class="site-main" role="main">
                    <article class="post-1 post type-post status-publish format-standard hentry category-uncategorized">
                        <header class="entry-header">
                            <h1 class="entry-title">Location Search</h1>
                        </header>
                        <div class="entry-content">
                            <p>
                                <div class="wp-city-container">
                                    <input type="text" name="city-term" class="wp-city-term" placeholder="City" slug="" path="' . plugin_dir_url(dirname(__FILE__)) . '">
                                    <div class="wp-city-output">
                                    </div>
                                </div>
                            </p>
                        </div>
                    </article>
                </main><!-- .site-main -->
            </div><!-- .content-area -->
        ';
        //        get_sidebar();
        get_footer();
        //require_once('../home.php');
        exit;
    } elseif ($wp_query->get('search-city')) {
        wp_us_cities_search_city($wp_query->get('search-city'));
        exit;
    }
}
Beispiel #9
0
function CancellaEmail()
{
    global $_GET;
    global $wpdb;
    $table_email = $wpdb->prefix . "nl_email";
    if ($_GET['action'] == "delete") {
        $user_count = $wpdb->get_var("SELECT COUNT(*) FROM {$table_email} where magic_string ='{$_GET['c']}';");
        if ($user_count < 1) {
            echo "<div class=\"error\">" . __('email addresso not present or something is going wrong?!', 'sendit') . "</div>";
        } else {
            $wpdb->query("UPDATE {$table_email} set accepted='d' where magic_string = '{$_GET['c']}'");
            $table_liste = $wpdb->prefix . "nl_liste";
            $templaterow = $wpdb->get_row("SELECT * from {$table_liste} where id_lista = '{$_GET['lista']}' ");
            //utile anzi fondamentale
            $plugindir = "sendit/";
            $sendit_root = get_option('siteurl') . '/wp-content/plugins/' . $plugindir;
            /*
             * QUI potete ridisegnare il vs TEMA
             */
            get_header();
            echo '<div id=\\"content\\">';
            echo '<div id="message" class="updated fade"><p><strong>' . __("Your email address was deleted suffesfully from our mailing list!", "sendit") . '</strong></p></div>';
            echo '</div>';
            echo '</div>';
            get_footer();
        }
    }
}
Beispiel #10
0
 public function principal()
 {
     if (!isset($_SESSION['login'])) {
         die("Sesion terminada. <a href='" . base_url() . "'>Registrarse e ingresar.</a> ");
     }
     $arrmes = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
     $mes = date("m", time());
     $ano = date("Y", time());
     $dia = date("d", time());
     $ver = "";
     $fecha = $dia . " DE " . strtoupper($arrmes[$mes - 1]) . " DE " . $ano;
     $fecha_std = $dia . "/" . $mes . "/" . $ano;
     $fecha_red = $dia . $mes . $ano;
     $nombreusuario = $this->session->userdata('nomper');
     $codusu = $this->session->userdata('codusu');
     $rolusu = $this->session->userdata('rolusu');
     $filter = new stdClass();
     $filter->rol = $rolusu;
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     /*Accesos*/
     $data['fecha'] = $fecha;
     $data['menu'] = $menu;
     $filter = new stdClass();
     $filter->order_by = array("ACCESOP_Codigo" => "desc");
     $data['accesos'] = $this->acceso_model->listar($filter);
     $data['header'] = get_header();
     $data['oculto'] = form_hidden(array("serie" => "", "numero" => "", "codot" => ""));
     $this->load->view("seguridad/principal", $data);
 }
function function_totalcoin($seperator, $sessionid)
{
    global $wpdb, $wpsc_cart;
    $purchase_log = $wpdb->get_row("SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `sessionid`= " . $sessionid . " LIMIT 1", ARRAY_A);
    $usersql = "SELECT `" . WPSC_TABLE_SUBMITED_FORM_DATA . "`.value,\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "`.`name`,\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "`.`unique_name` FROM\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "` LEFT JOIN\n    `" . WPSC_TABLE_SUBMITED_FORM_DATA . "` ON\n    `" . WPSC_TABLE_CHECKOUT_FORMS . "`.id =\n    `" . WPSC_TABLE_SUBMITED_FORM_DATA . "`.`form_id` WHERE\n    `" . WPSC_TABLE_SUBMITED_FORM_DATA . "`.`log_id`=" . $purchase_log['id'];
    $userinfo = $wpdb->get_results($usersql, ARRAY_A);
    $data = array();
    $data['sucess'] = get_option('totalcoin_url_sucess');
    $data['pending'] = get_option('totalcoin_url_pending');
    $data['before_step'] = get_option('totalcoin_url_before_step');
    $data['Email'] = get_option('totalcoin_email');
    $data['ApiKey'] = get_option('totalcoin_apikey');
    $data['Currency'] = get_option('totalcoin_currency');
    $data['Country'] = get_option('totalcoin_country');
    $data['MerchantId'] = get_option('totalcoin_merchantid');
    $data['Reference'] = $purchase_log['id'];
    $data['Site'] = 'Wordpress';
    $data['PaymentMethods'] = get_option('totalcoin_methods');
    $data['Quantity'] = 1;
    $data['Amount'] = number_format($wpsc_cart->total_price, 2, '.', '');
    $description = '';
    foreach ($wpsc_cart->cart_items as $item) {
        $description .= $item->product_name . ' - Precio por Unidad: ' . number_format($item->unit_price, 2, '.', '');
        $description .= ' - Cantidad: ' . $item->quantity . ' | ';
    }
    $description = rtrim($description, ' | ');
    $data['Description'] = $description;
    $tc = new TotalCoinAPI($data['Email'], $data['ApiKey']);
    $results = $tc->perform_checkout($data);
    if ($results['IsOk']) {
        $url = $results['Response']['URL'];
        $type_checkout = get_option('totalcoin_typecheckout');
        switch ($type_checkout) {
            case "Redirect":
                header("location: " . $url);
                break;
            case "Iframe":
                $content = '<iframe src="' . $url . '" name="TC-Checkout" width="953" height="600" frameborder="0" style="overflow:hidden"></iframe>';
                break;
            default:
                $content = '<TOTALCOIN SIMPLE BUTTON>';
                break;
        }
    } else {
        $content = 'Se ha producido un Error Interno';
    }
    $title = 'TotalCoin Checkout';
    get_header();
    $html = '<div style="position: relative; margin: 20px 0;" >';
    $html .= '<div style="margin: 0 auto; width: 80%; ">';
    $html .= '<h3>' . $title . '</h3>';
    $html .= $content;
    $html .= '</div>';
    $html .= '</div>';
    echo $html;
    get_footer();
    exit;
}
Beispiel #12
0
    if (isset($_GET['mls'])) {
        session_start();
        $mlsNo = $_GET['mls'];
        $_SESSION['mlsnum'] = $mlsNo;
        //$location = get_site_url()."/propertyview/";
        wp_redirect($location);
    }
}
add_action('get_header', 'get_property_view_item');
/**
 public function parse_header()
 {
     ob_start();
     get_header();
     $raw = ob_get_clean();
     $css = $this->regex_parse(array('buffer' => $raw, 'type' => 'css'));
     $js = $this->regex_parse(array('buffer' => $raw, 'type' => 'js'));
     $divs = $this->regex_parse(array('buffer' => $raw, 'type' => 'divs'));
     return array('css' => $css, 'js' => $js, 'divs' => $divs);
 }
Beispiel #14
0
function q21()
{
    if (defined('Q21_SHORT') && Q21_SHORT === true) {
        return;
    }
    /*this is where the magic happens, leaving it in functins for now till I find a better place for q21 to live - a class perhaps? */
    get_header();
    do_action('q21_content_start');
    do_action('q21_content_end');
    get_footer();
}
Beispiel #15
0
/**
 *
 * This is the theme.php file for the CRM Press theme.
 * DO NOT EDIT THIS FILE! IT WILL BE OVERRIDEN WITH FUTURE UPDATES.
 * If you wish to make customizations, please make a child theme instead.
 *
 */
function crmpress()
{
    global $prefix;
    // Add our global variable here so we don't have to call it anywhere else in our theme :)
    get_header();
    do_action('crmpress_top_section');
    do_action('crmpress_before_main_content');
    // Adds a hook before the #main-content div
    do_action('crmpress_content');
    do_action('crmpress_after_main_content');
    get_footer();
}
function print_header($name)
{
    $h = get_header($GLOBALS['response'], $name);
    echo "{$name}: ";
    if ($h !== false) {
        echo '<span style="background: green; color: yellow; padding: 2px">', $h, '</span>';
    } else {
        echo '<span style="color: red">n/a</span>';
    }
    echo '&nbsp;&nbsp;';
    return $h;
}
 /**
  * Renders the views
  *
  * @access public
  * @param  String $template
  * @param  Array  $viewData
  * @return void
  */
 public function render($template)
 {
     foreach ($this->data as $key => $val) {
         ${$key} = $val;
     }
     $path = ABSPATH . Constants::DIR_VIEWS . DIRECTORY_SEPARATOR;
     get_header();
     require_once $path . 'header.php';
     require_once $path . $template . '.php';
     get_footer();
     require_once $path . 'footer.php';
 }
Beispiel #18
0
 public function listar($j = 0)
 {
     $filter = new stdClass();
     $filter->rol = $this->session->userdata('rolusu');
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     $filter = new stdClass();
     if ($_SESSION["acceso"] == 2) {
         $filter->curso = $_SESSION["codcurso"];
     }
     if ($_SESSION["acceso"] == 3) {
         $filter->profesor = $_SESSION["codprofesor"];
     }
     $filter->order_by = array("p.TAREOC_Fecha" => "desc", "h.AULAC_Nombre" => "asc");
     $registros = count($this->tardanza_model->listar($filter));
     $tardanzas = $this->tardanza_model->listar($filter, "", $this->configuracion['per_page'], $j);
     $item = 1;
     $lista = array();
     if (count($tardanzas) > 0) {
         foreach ($tardanzas as $indice => $value) {
             $lista[$indice] = new stdClass();
             $lista[$indice]->codigo = $value->TAREOP_Codigo;
             $lista[$indice]->nombres = $value->PERSC_Nombre;
             $lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
             $lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
             $lista[$indice]->fecha = $value->TAREOC_Fecha;
             $lista[$indice]->aula = $value->AULAC_Nombre;
             $lista[$indice]->hinicio = substr($value->TAREOC_Hinicio, 0, 5);
             $lista[$indice]->hfin = substr($value->TAREOC_Hfin, 0, 5);
             $lista[$indice]->tipo = $value->TIPOASISC_Nombre;
             $lista[$indice]->curso = $value->PROD_Nombre;
             $filter = new stdClass();
             $filter->profesor = $value->TAREOC_ProfesorReemplazado;
             $reemplazo = $this->profesor_model->obtener($filter);
             $lista[$indice]->nombres_reemp = isset($reemplazo->PERSC_Nombre) ? $reemplazo->PERSC_Nombre : "";
             $lista[$indice]->paterno_reemp = isset($reemplazo->PERSC_ApellidoPaterno) ? $reemplazo->PERSC_ApellidoPaterno : "";
             $lista[$indice]->materno_reemp = isset($reemplazo->PERSC_ApellidoMaterno) ? $reemplazo->PERSC_ApellidoMaterno : "";
         }
     }
     $configuracion = $this->configuracion;
     $configuracion['base_url'] = base_url() . "index.php/maestros/persona/listar";
     $configuracion['total_rows'] = $registros;
     $this->pagination->initialize($configuracion);
     /*Enviamos los datos a la vista*/
     $data['lista'] = $lista;
     $data['titulo'] = "Tardanzas y Reemplazos";
     $data['menu'] = $menu;
     $data['header'] = get_header();
     $data['j'] = $j;
     $data['registros'] = $registros;
     $data['paginacion'] = $this->pagination->create_links();
     $this->load->view("ventas/tardanza_index", $data);
 }
Beispiel #19
0
 /**
  * Render TWIG component.
  *
  * @param string $template Twig template to display
  * @param array $vars Contains all field options
  *
  * @since 3.2.4
  */
 public static function render($template, $vars)
 {
     //Define Twig loaders
     $loader = new Twig_Loader_Filesystem(array(TTO_PATH . '/Resources/views'));
     //Build Twig renderer
     $twig = new Twig_Environment($loader, array('cache' => TTO_PATH . '/../_cache'));
     //Get footer and header from WordPress
     $twig->addFunction(new Twig_SimpleFunction('getFooter', function ($file = '') {
         get_footer($file);
     }));
     $twig->addFunction(new Twig_SimpleFunction('getHeader', function ($file = '') {
         get_header($file);
     }));
     //Get permalink from WordPress
     $twig->addFunction(new Twig_SimpleFunction('get_permalink', function ($id) {
         get_permalink($id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('get_term_link', function ($id, $type) {
         get_term_link($id, $type);
     }));
     //Get terms
     $twig->addFunction(new Twig_SimpleFunction('get_the_term_list', function ($id, $type, $before, $inside, $after) {
         get_the_term_list($id, $type, $before, $inside, $after);
     }));
     //Get author from WordPress
     $twig->addFunction(new Twig_SimpleFunction('get_the_author_meta', function ($display, $id) {
         get_the_author_meta($display, $id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('get_author_posts_url', function ($id) {
         get_author_posts_url($id);
     }));
     //Image
     $twig->addFunction(new Twig_SimpleFunction('has_post_thumbnail', function ($id) {
         has_post_thumbnail($id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('get_post_thumbnail_id', function ($id) {
         get_post_thumbnail_id($id);
     }));
     $twig->addFunction(new Twig_SimpleFunction('wp_get_attachment_image_src', function ($id, $format) {
         wp_get_attachment_image_src($id, $format);
     }));
     //Make Include function
     $twig->addFunction(new Twig_SimpleFunction('includeFile', function ($file) {
         include $file;
     }));
     //Make wpEditor function
     $twig->addFunction(new Twig_SimpleFunction('wpEditor', function ($content, $editor_id, $settings = array()) {
         wp_editor($content, $editor_id, $settings);
     }));
     //Display template
     echo $twig->render($template, $vars);
 }
Beispiel #20
0
 public function listar($j = 0)
 {
     $filter = new stdClass();
     $filter->rol = $this->session->userdata('rolusu');
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     $filter = new stdClass();
     if ($_SESSION["acceso"] == 2) {
         $filter->curso = $_SESSION["codcurso"];
     }
     if ($_SESSION["acceso"] == 3) {
         $filter->profesor = $_SESSION["codprofesor"];
     }
     $filter->order_by = array("p.ACTAP_Codigo" => "desc");
     $filter_not = new stdClass();
     $registros = count($this->acta_model->listar($filter, $filter_not));
     $matricula = $this->acta_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
     $item = 1;
     $lista = array();
     if (count($matricula) > 0) {
         foreach ($matricula as $indice => $value) {
             $lista[$indice] = new stdClass();
             $lista[$indice]->codigo = $value->ACTAP_Codigo;
             $lista[$indice]->nombres = $value->PERSC_Nombre;
             $lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
             $lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
             $lista[$indice]->fechareg = $value->fechareg;
             $lista[$indice]->fecha = date_sql($value->ACTAC_Fecha);
             $lista[$indice]->titulo = $value->ACTAC_Titulo;
             $lista[$indice]->ciclo = $value->COMPC_Nombre;
             $lista[$indice]->tipoestudio = $value->TIPC_Nombre;
             $filter = new stdClass();
             $filter->curso = $value->PROD_Codigo;
             $curso = $this->curso_model->obtener($filter);
             $lista[$indice]->curso = $curso->PROD_Nombre;
         }
     }
     $configuracion = $this->configuracion;
     $configuracion['base_url'] = base_url() . "index.php/ventas/orden/listar";
     $configuracion['total_rows'] = $registros;
     $this->pagination->initialize($configuracion);
     /*Enviamos los datos a la vista*/
     $data['lista'] = $lista;
     $data['titulo'] = "Reuniones de plana";
     $data['btnNuevo'] = "Crear una nueva reunion";
     $data['menu'] = $menu;
     $data['header'] = get_header();
     $data['j'] = $j;
     $data['registros'] = $registros;
     $data['paginacion'] = $this->pagination->create_links();
     $this->load->view("ventas/acta_index", $data);
 }
Beispiel #21
0
 public function listar($j = 0)
 {
     $filter = new stdClass();
     $filter->rol = $this->session->userdata('rolusu');
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     $filter = new stdClass();
     if ($_SESSION["acceso"] == 2) {
         $filter->curso = $_SESSION["codcurso"];
     }
     if ($_SESSION["acceso"] == 3) {
         $filter->profesor = $_SESSION["codprofesor"];
     }
     $filter->order_by = array("h.CICLOP_Codigo" => "desc", "f.AULAC_Nombre" => "asc");
     $filter_not = new stdClass();
     $registros = count($this->apertura_model->listar($filter, $filter_not));
     $matricula = $this->apertura_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
     $item = 1;
     $lista = array();
     if (count($matricula) > 0) {
         foreach ($matricula as $indice => $value) {
             $lista[$indice] = new stdClass();
             $lista[$indice]->codigo = $value->APERTUP_Codigo;
             $lista[$indice]->local = $value->LOCC_Nombre;
             $lista[$indice]->aula = $value->AULAC_Nombre;
             $lista[$indice]->turno = $value->TURNOP_Codigo;
             $lista[$indice]->ciclo = $value->COMPC_Nombre;
             $lista[$indice]->modulo = $value->MODULOC_Descripcion;
             $lista[$indice]->tipoestudio = $value->TIPC_Nombre;
             $lista[$indice]->estado = $value->APERTUC_FlagEstado;
             $lista[$indice]->fecha = date_sql($value->APERTUC_Fecha);
         }
     }
     $configuracion = $this->configuracion;
     $configuracion['base_url'] = base_url() . "index.php/ventas/orden/listar";
     $configuracion['total_rows'] = $registros;
     $this->pagination->initialize($configuracion);
     /*Enviamos los datos a la vista*/
     $data['lista'] = $lista;
     $data['menu'] = $menu;
     $data['header'] = get_header();
     $data['arrturno'] = array("0" => "::Seleccione::", "1" => "Mañana", "2" => "Tarde", "3" => "Noche");
     $data['titulo'] = "Apertura de aulas";
     $data['nuevo'] = "Crear una nueva apertura de aulas";
     $data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
     $data['form_close'] = form_close();
     $data['j'] = $j;
     $data['registros'] = $registros;
     $data['paginacion'] = $this->pagination->create_links();
     $this->load->view("ventas/apertura_index", $data);
 }
Beispiel #22
0
    function template()
    {
        do_action('activate_header');
        add_action('wp_head', array($this, 'do_activate_header'));
        add_action('wp_head', array($this, 'wpmu_activate_stylesheet'));
        get_header();
        ?>

        <div class="main_content" role="main">

            <article>

                <div class="container">
                    <div class="sub-heading">
                        <h1 class="text-center primary-heading">Активация</h1>
                        <div class="text-center">
                            <span class="divider" aria-hidden="true"><i class="glyphicon glyphicon-user"></i></span>
                        </div>
                    </div>
                    <div class="text-justify">



            <?php 
        if (!$this->has_activation_key()) {
            get_template_part('inc/' . $this->template_folder . '/activate', 'no-key');
        } else {
            $key = $this->get_activation_key();
            $this->result = GFUserSignups::activate_signup($key);
            if (is_wp_error($this->result)) {
                get_template_part('inc/' . $this->template_folder . '/activate', 'error');
            } else {
                get_template_part('inc/' . $this->template_folder . '/activate', 'success');
            }
        }
        ?>

                    </div>
            </article>

        </div>

        <script type="text/javascript">
            var key_input = document.getElementById('key');
            key_input && key_input.focus();
        </script>

        <?php 
        get_footer();
    }
 function get_page_templates()
 {
     $pages_array = scandir(APPPATH . 'views/templates/');
     $templates = array();
     $page_titles = array();
     $page_filenames = array();
     foreach ($pages_array as $page) {
         if (preg_match('/page_.*\\.php/', $page)) {
             array_push($page_titles, get_header($page)['Name']);
             array_push($page_filenames, $page);
         }
     }
     $templates = array_combine($page_filenames, $page_titles);
     return $templates;
 }
Beispiel #24
0
 public function listar($j = 0)
 {
     $filter = new stdClass();
     $filter->rol = $this->session->userdata('rolusu');
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     $filter = new stdClass();
     if ($_SESSION["acceso"] == 2) {
         $filter->curso = $_SESSION["codcurso"];
     }
     if ($_SESSION["acceso"] == 3) {
         $filter->profesor = $_SESSION["codprofesor"];
     }
     $filter_not = new stdClass();
     $filter_not->profesor = "0";
     $filter->order_by = array("d.PERSC_ApellidoPaterno" => "asc", "d.PERSC_ApellidoMaterno" => "asc", "d.PERSC_Nombre" => "asc");
     $registros = count($this->profesor_model->listar($filter, $filter_not));
     $profesores = $this->profesor_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
     $item = 1;
     $lista = array();
     if (count($profesores) > 0) {
         foreach ($profesores as $indice => $value) {
             $lista[$indice] = new stdClass();
             $lista[$indice]->numero = $value->PERSC_NumeroDocIdentidad;
             $lista[$indice]->nombres = $value->PERSC_Nombre;
             $lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
             $lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
             $lista[$indice]->telefono = $value->PERSC_Telefono;
             $lista[$indice]->movil = $value->PERSC_Movil;
             $lista[$indice]->codigo = $value->PROP_Codigo;
             $lista[$indice]->estado = $value->PROC_FlagEstado;
             $lista[$indice]->curso = $value->PROD_Nombre;
             $lista[$indice]->fechareg = $value->fechareg;
         }
     }
     $configuracion = $this->configuracion;
     $configuracion['base_url'] = base_url() . "index.php/ventas/profesor/listar";
     $configuracion['total_rows'] = $registros;
     $this->pagination->initialize($configuracion);
     /*Enviamos los datos a la vista*/
     $data['lista'] = $lista;
     $data['menu'] = $menu;
     $data['header'] = get_header();
     $data['j'] = $j;
     $data['registros'] = $registros;
     $data['paginacion'] = $this->pagination->create_links();
     $this->load->view("ventas/profesor_index", $data);
 }
Beispiel #25
0
/**
 * Used to initialize the framework in the various template files.
 *
 * It pulls in all the necessary components like header and footer, the basic
 * markup structure, and hooks.
 *
 * @since 1.3.0
 */
function genesis()
{
    get_header();
    do_action('genesis_before_content_sidebar_wrap');
    genesis_markup(array('open' => '<div %s>', 'context' => 'content-sidebar-wrap'));
    do_action('genesis_before_content');
    genesis_markup(array('open' => '<main %s>', 'context' => 'content'));
    do_action('genesis_before_loop');
    do_action('genesis_loop');
    do_action('genesis_after_loop');
    genesis_markup(array('close' => '</main>', 'context' => 'content'));
    do_action('genesis_after_content');
    genesis_markup(array('close' => '</div>', 'context' => 'content-sidebar-wrap'));
    do_action('genesis_after_content_sidebar_wrap');
    get_footer();
}
Beispiel #26
0
 /**
  * Initialization
  */
 function init()
 {
     $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login';
     $errors = new WP_Error();
     if (isset($_GET['key'])) {
         $action = 'resetpass';
     }
     // validate action so as to default to the login screen
     if (!in_array($action, array('postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login'), true) && false === has_filter('login_form_' . $action)) {
         $action = 'login';
     }
     // Only change login, register page
     if (in_array($action, array('login', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register'))) {
         add_action('colabs_title', array($this, 'colabs_login_title'));
         add_action('wp_title', array($this, 'colabs_login_title'));
         add_action('wp_head', array($this, 'custom_login_header'));
         add_action('wp_head', '_custom_background_cb');
         ob_start();
         get_header();
         $this->container_open($action);
         // Check action
         switch ($action) {
             case 'lostpassword':
             case 'retrievepassword':
                 $this->action_lostpassword();
                 break;
             case 'resetpass':
             case 'rp':
                 $this->action_reset_pass();
                 break;
             case 'register':
                 $this->action_register();
                 break;
             case 'login':
             default:
                 $this->action_login();
                 break;
         }
         $this->container_close();
         get_footer();
         $output = ob_get_contents();
         ob_end_clean();
         echo $output;
         exit;
     }
 }
/**
 * Used to initialize the framework in the various template files.
 *
 * It pulls in all the necessary components like header and footer, the basic
 * markup structure, and hooks.
 *
 * @since 1.3.0
 */
function genesis()
{
    get_header();
    do_action('genesis_before_content_sidebar_wrap');
    genesis_markup(array('html5' => '<div %s>', 'xhtml' => '<div id="content-sidebar-wrap">', 'context' => 'content-sidebar-wrap'));
    do_action('genesis_before_content');
    genesis_markup(array('html5' => '<main %s>', 'xhtml' => '<div id="content" class="hfeed">', 'context' => 'content'));
    do_action('genesis_before_loop');
    do_action('genesis_loop');
    do_action('genesis_after_loop');
    genesis_markup(array('html5' => '</main>', 'xhtml' => '</div>'));
    do_action('genesis_after_content');
    echo '</div>';
    //* end .content-sidebar-wrap or #content-sidebar-wrap
    do_action('genesis_after_content_sidebar_wrap');
    get_footer();
}
Beispiel #28
0
 public function listar($j = 0)
 {
     $filter = new stdClass();
     $filter->rol = $this->session->userdata('rolusu');
     $filter->order_by = array("m.MENU_Orden" => "asc");
     $menu = get_menu($filter);
     $filter = new stdClass();
     $filter_not = new stdClass();
     $filter->order_by = array("d.PERSC_ApellidoPaterno" => "asc", "d.PERSC_ApellidoMaterno" => "asc", "d.PERSC_Nombre" => "asc");
     $registros = count($this->usuario_model->listar($filter));
     $usuarios = $this->usuario_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
     $item = 1;
     $lista = array();
     if (count($usuarios) > 0) {
         foreach ($usuarios as $indice => $value) {
             $filter = new stdClass();
             $filter->persona = $value->PERSP_Codigo;
             $profesor = $this->profesor_model->obtener($filter);
             $lista[$indice] = new stdClass();
             $lista[$indice]->codigo = $value->USUA_Codigo;
             $lista[$indice]->login = $value->USUA_usuario;
             $lista[$indice]->nombres = $value->PERSC_Nombre;
             $lista[$indice]->rol = $value->ROL_Descripcion;
             $lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
             $lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
             $lista[$indice]->estado = $value->USUA_FlagEstado;
             $lista[$indice]->fechareg = $value->USUA_FechaRegistro;
             $lista[$indice]->curso = isset($profesor->PROD_Nombre) ? $profesor->PROD_Nombre : "";
         }
     }
     $configuracion = $this->configuracion;
     $configuracion['base_url'] = base_url() . "index.php/seguridad/usuario/listar";
     $configuracion['total_rows'] = $registros;
     $this->pagination->initialize($configuracion);
     /*Enviamos los datos a la vista*/
     $data['lista'] = $lista;
     $data['titulo_tabla'] = "RELACIÓN DE USUARIOS";
     $data['titulo_busqueda'] = "BUSCAR USUARIO";
     $data['menu'] = $menu;
     $data['header'] = get_header();
     $data['registros'] = $registros;
     $data['form_open'] = form_open('', array("name" => "form1", "id" => "form1", "onsubmit" => "return valida_guiain();"));
     $data['form_close'] = form_close();
     $data['paginacion'] = $this->pagination->create_links();
     $this->load->view("seguridad/usuario_index", $data);
 }
	public static function atoz_catch_form()
	{
		if( get_query_var('letter') && get_query_var('term') )
		{
			get_header();
			include(CPT_PLUGIN_DIR . '/views/' . 'atoz-terms-posts.php');
			get_footer();
			exit();
		}
		else if( get_query_var( 'letter' ) )
		{
			get_header();
			include(CPT_PLUGIN_DIR . '/views/' . 'atoz-terms.php');
			get_footer();
			exit();
		}
	}
function doForm()
{
    get_header();
    ?>

    <section class="page-header">
        <div class="container">
            <?php 
    while (have_posts()) {
        the_post();
        ?>
            <h1><?php 
        the_title();
        ?>
</h1>
        </div>
    </section>
    <section class="page-content">
    <div class="container">
        <div class="row">
            <div class="col-md-6 content">
                <?php 
        the_content();
        ?>
            <?php 
    }
    // end of the loop.
    ?>
            </div>
        </div>
    </div>

<?php 
    get_footer();
}