Exemplo n.º 1
0
 public function traeCooperadoresAgenciaAjax()
 {
     if ($this->input->is_ajax_request()) {
         echo select_input(['select' => Dropdown(['name' => 'ID_COOPERADOR', 'dataProvider' => $this->practicantes_model->TraeCooperadoresAgencia(), 'placeholder' => '-- Seleccione un cooperador--', 'fields' => ['NOMBRE_COOPERADOR']]), 'text' => 'Cooperador']);
     } else {
         redirect(site_url(), 'refresh');
     }
 }
Exemplo n.º 2
0
 public function veragencia($Id)
 {
     if (is_numeric($Id)) {
         $Data = $this->agencias_model->TraeAgencia($Id);
         if ($Data != null) {
             $this->load->view('Agencias/VerAgencia', ['Ciudades' => Dropdown(['name' => 'ID_CIUDAD', 'readonly' => true, 'index' => $Data->ID_CIUDAD, 'dataProvider' => $this->agencias_model->TraeCiudades(), 'placeholder' => '-- Seleccione una ciudad-- ', 'fields' => ['NOMBRE', 'tag' => ' - ', 'DEPARTAMENTO']]), 'Info' => $Data]);
         } else {
             redirect(site_url(), 'refresh');
         }
     } else {
         redirect(site_url(), 'refresh');
     }
 }
Exemplo n.º 3
0
$sem = explode('-', $this->session->userdata('PERIODO'))[2] == 2 ? 'primer' : 'segundo';
?>
<!-- Content Header (Page header) -->
<section class="content-header">
    <?php 
echo page_title(['ob' => $this, 'class' => 'fa fa-check', 'text' => 'Certificado ' . Uncamelize(__FILE__)]);
?>
</section>
<!-- Main content -->
<div class="container">
    <?php 
echo form_open('seguimiento/pazysalvo', ['class' => 'form-horizontal col-md-6', 'target' => '_blank', 'style' => 'margin-left: 20%']);
?>
    <hr style="border: 1px solid #099a5b;"/>
    <?php 
echo select_input(['text' => 'Proyecto', 'select' => Dropdown(['name' => 'ID_PROYECTO', 'dataProvider' => $this->proyectos_model->TraeAsesorProyectosDD(), 'placeholder' => '-- Seleccione un proyecto --', 'fields' => ['NOMBRE_PROYECTO']])]);
?>
    <div class="box">
        <div class="box-header bg-gray">
            <h3 style="color:#7d7d80;text-align: center"><span class="fa fa-group"></span> Practicantes
            </h3>
        </div>
        <div class="box-body"></div>
    </div>
    <?php 
echo form_dropdown('PROGRAMA', ['Ingeniería de sistemas' => 'Ingeniería de sistemas', 'Ingeniería de software' => 'Ingeniería de software', 'Electromedicina' => 'Electromedicina', 'Robótica y automatización' => 'Robótica y automatización'], ['input' => ['col' => 8], 'label' => ['text' => 'Programa', 'col' => 2]]);
?>
    <div class="form-group">
        <label class="col-lg-3 control-label">Inicio:</label>

        <div class="col-lg-5">
Exemplo n.º 4
0
function Dropdown_Menu(&$p)
{
    $menu = array("edit|Options|#" => array("# fi-user|Account|account|View your account data", "<HR>|#", "# fi-graph-bar|Reports|reports|Look at the master list of computed reports", "table|View Data|ranged.csv|Download tabular reports of sales data tailored to different formats"));
    /*
      if ( Auth::ACL('metrical') && Auth::ACL('su') ) {
       $menu["key|Admin|#|"]=array(
        "ellipsis-h|Datapoints|datapoints|Add datapoint definitions to the Datapoint Description Table",
        "chain|Sets|sets|Define datapoint sets for compound value generation in reports",
        "# fi-graph-trend|Templates|templates|Create and manage templates for reports",
        "# fi-layout|Calculations|calculations|View calculations on a granular level",
       );
      }
    */
    return Dropdown($p, $menu, TRUE);
}
Exemplo n.º 5
0
<section class="content-header">
    <?php 
echo page_title(['ob' => $this, 'class' => 'ion-person-add', 'text' => Uncamelize(__FILE__)]);
?>
</section>
<!-- Main content -->
<div class="container">
    <?php 
echo form_open('', ['class' => 'form-horizontal col-md-6', 'style' => 'margin-left: 20%']);
?>
    <hr style="border: 1px solid #3D8EBC;"/>
    <?php 
echo form_input(['placeholder' => 'Ingrese el nombre completo del cooperador', 'name' => 'NOMBRE_COOPERADOR', 'class' => 'obligatorio', 'label' => ['text' => 'Nombre']]);
?>
    <?php 
echo select_input(['select' => Dropdown(['name' => 'ID_AGENCIA', 'dataProvider' => $this->agencias_model->TraeAgenciasDD(), 'placeholder' => '-- Seleccione una agencia--', 'fields' => ['NOMBRE_AGENCIA']]), 'text' => 'Agencia']);
?>

    <?php 
echo form_input(['placeholder' => 'Ingrese el correo electrónico del cooperador', 'name' => 'CORREO_COOPERADOR', 'class' => 'correo', 'label' => ['text' => 'Correo']]);
?>
    <?php 
echo form_input(['placeholder' => 'Ingrese la dirección del cooperador', 'name' => 'DIRECCION_COOPERADOR', 'label' => ['text' => 'Dirección']]);
?>
    <?php 
echo form_input(['placeholder' => 'Ingrese el teléfono del cooperador', 'name' => 'TELEFONO_COOPERADOR', 'class' => 'numero telefono', 'label' => ['text' => 'Teléfono']]);
?>
    <?php 
echo form_input(['placeholder' => 'Ingrese el cargo del cooperador', 'class' => 'obligatorio', 'name' => 'CARGO', 'label' => ['text' => 'Cargo']]);
?>
    <?php 
Exemplo n.º 6
0
 public function traepracticantesDDAjax()
 {
     if ($this->input->is_ajax_request() && !empty($_POST)) {
         echo select_input(['text' => 'Practicante', 'collabel' => 3, 'colinput' => 7, 'select' => Dropdown(['name' => 'ID_PRACTICANTE', 'simple' => true, 'dataProvider' => $this->seguimientos_model->TraePracticantes(), 'placeholder' => '-- Seleccione un practicante --', 'fields' => ['NOMBRE_PRACTICANTE']])]);
     } else {
         show_404();
     }
 }
Exemplo n.º 7
0
<!-- Main content -->
<div class="container">
    <?php 
echo form_open('', ['class' => 'form-horizontal col-md-6', 'style' => 'margin-left: 20%'], ['ID_PROYECTO' => $Info->ID_PROYECTO]);
?>
    <hr style="border: 1px solid #3D8EBC;"/>
    <?php 
echo form_input(['placeholder' => 'Ingrese el nombre del proyecto', 'name' => 'NOMBRE_PROYECTO', 'class' => 'obligatorio', 'label' => ['text' => 'Nombre']], $Info->NOMBRE_PROYECTO);
?>

    <?php 
echo select_input(['text' => 'Tipo de proyecto', 'select' => Dropdown(['name' => 'ID_TIPO_PROYECTO', 'index' => $Info->ID_TIPO_PROYECTO, 'dataProvider' => $this->proyectos_model->TraeTipoProyectos(), 'placeholder' => '-- Seleccione un tipo de proyecto --', 'fields' => ['NOMBRE_TIPO_PROYECTO']])]);
?>

    <?php 
echo select_input(['select' => Dropdown(['name' => 'ID_ASESOR', 'index' => $Info->ID_ASESOR, 'dataProvider' => $this->usuarios_model->TraeAsesoresDD(), 'placeholder' => '-- Seleccione un asesor --', 'fields' => ['NOMBRE']]), 'text' => 'Asesor']);
?>
    <div class="form-group">
        <label for="inputID" class="col-lg-3 col-sm-3 col-lg-pull-1 control-label">Periodo:</label>

        <div class="col-lg-4 col-sm-4 col-lg-pull-1">
            <?php 
echo $this->parametros_model->CrearPeriodoComponente(YEAR_SDCE, $Info->PERIODO);
?>
        </div>
    </div>
    <?php 
echo br();
?>
    <!--Envíar-->
    <?php