public function editar()
 {
     add_css(array('iCheck/all'));
     add_js_('//maps.google.com/maps/api/js?sensor=false&foo=bar');
     add_js(array('plugins/iCheck/icheck.min', 'jqueryvalidation/dist/jquery.validate', 'jqueryvalidation/dist/additional-methods.min', 'plugins/input-mask/jquery.inputmask', 'plugins/input-mask/jquery.inputmask.extensions', 'inei.validation', 'facebox/src/facebox', 'jquery-ui.min'));
     if (isset($_REQUEST['editarLocal']) && $this->input->post('local_id_local') !== '') {
         $idLocal = $this->input->post('local_id_local');
         $status = $this->modeloLocalAdministrativo->editar_local($this->input->post(NULL, TRUE), $idLocal);
         $this->compruebaStatus($status, 'editado');
     } else {
         $this->load->model('ajax/ajax_model', 'modeloAjax');
         $idLocal = $this->input->get('idLocal');
         $datos['local'] = $this->modeloLocalAdministrativo->obtener_local($idLocal);
         $datos['sedes'] = $this->modeloAjax->todas_las_sedes($this->sedeOperativa);
         $datos['sede_provinciales'] = $this->modeloAjax->obtener_sede_provincial(array('sede_operativa' => $datos['local']['cod_sede_operativa']));
         $datos['sede_distritales'] = $this->modeloAjax->obtener_sede_distrital_por_distrito($datos['local']['ccdi'], $datos['local']['ccpp'], $datos['local']['ccdd'], $datos['local']['cod_sede_operativa']);
         $datos['departamentos'] = $this->modeloAjax->obtener_departamentos_por_sede($datos['local']['cod_sede_operativa']);
         $datos['provincias'] = $this->modeloAjax->obtener_provincias_por_departamento($datos['local']['ccdd'], $datos['local']['cod_sede_operativa']);
         $datos['distritos'] = $this->modeloAjax->obtener_distritos_por_provincia($datos['local']['ccpp'], $datos['local']['ccdd'], $datos['local']['cod_sede_operativa']);
         $datos['titulo'] = "Editar Local de " . $this->titulo;
         $datos['title'] = $this->titulo;
         $datos['contenido'] = 'locales/administrativo/editar_vista';
         $this->load->view('plantilla', $datos);
     }
 }
示例#2
0
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/welcome
  *	- or -
  * 		http://example.com/index.php/welcome/index
  *	- or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 public function index()
 {
     if ($this->session->userdata('logged_in')) {
         $session_data = $this->session->userdata('logged_in');
         $data['nome'] = $session_data['nome'];
         $data['creditos'] = $session_data['creditos'];
         $data['id'] = $session_data['id'];
         add_css('jquery.modal.css');
         add_js(array('jquery.modal.js', 'busca.js'));
         $data['title'] = "Resultado da Busca";
         $busca = $this->input->post('search');
         $this->load->model('busca_model');
         $data['books'] = $this->busca_model->listar_logged($busca, $session_data['id']);
         $data['busca'] = $busca;
         $this->load->view('master/header', $data);
         $this->load->view('busca');
         $this->load->view('master/footer');
     } else {
         add_css('jquery.modal.css');
         add_js('jquery.modal.js');
         $data['title'] = "Resultado da Busca";
         $busca = $this->input->post('search');
         $this->load->model('busca_model');
         $data['books'] = $this->busca_model->listar_unlogged($busca);
         $data['busca'] = $busca;
         $this->load->view('master/header', $data);
         $this->load->view('busca');
         $this->load->view('master/footer');
     }
 }
示例#3
0
 public function nivel_tres()
 {
     add_css(array('datatables/dataTables.bootstrap'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min'));
     $datos['titulo'] = "Capacitación de nivel III";
     $datos['contenido'] = "cobertura/niveles/nivel_tres/index_nivel_tres_vista";
     $this->load->view('plantilla', $datos);
 }
示例#4
0
 public function index()
 {
     add_css(array('datatables/dataTables.bootstrap'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min'));
     $datos['titulo'] = "Capacitación de Directores";
     $datos['contenido'] = "cobertura/director/index_director_vista";
     $this->load->view('plantilla', $datos);
 }
 public function index()
 {
     add_css(array('datatables/dataTables.bootstrap', 'iCheck/all'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min', 'jqueryvalidation/dist/jquery.validate.min', 'jqueryvalidation/dist/additional-methods.min', 'plugins/input-mask/jquery.inputmask', 'plugins/input-mask/jquery.inputmask.extensions', 'inei.validation', 'facebox/src/facebox', 'jquery-ui.min'));
     $datos['locales'] = $this->modeloLocal->todos_los_locales($this->sedeOperativa);
     $datos['titulo'] = "Consecución de Locales";
     $datos['contenido'] = 'locales/capacitacion/listado_vista';
     $this->load->view('plantilla', $datos);
 }
示例#6
0
 /**
  *
  */
 public function systeminfos()
 {
     if ($this->auth->is_superadmin()) {
         add_js("development_systeminfos");
         $this->load->view("development_systeminfos", $this->data);
         return;
     }
     redirect($this->router->default_controller);
 }
 public function index()
 {
     add_css(array('datatables/dataTables.bootstrap'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min', 'jqueryvalidation/dist/jquery.validate', 'jqueryvalidation/dist/additional-methods.min', 'facebox/src/facebox', 'jquery-ui.min'));
     $datos['titulo'] = "Inventario distrito";
     $datos['contenido'] = 'inventario/distrito/listado_inventario_distrito_vista';
     $datos['material_distrito'] = $this->modeloInventarioDistrito->lista_material_distrito();
     $this->load->view('plantilla', $datos);
 }
示例#8
0
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/cadastro
  *	- or -
  * 		http://example.com/index.php/cadastro/index
  *	- or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/cadastro/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 public function index()
 {
     add_js(array('jquery.form.validator.js', 'cadastro.js'));
     $data['title'] = "Cadastro";
     $data['success_message'] = $this->session->flashdata('success_message');
     $this->load->view('master/header', $data);
     $this->load->view('cadastro');
     $this->load->view('master/footer');
 }
示例#9
0
 public function index()
 {
     add_css(array('datatables/dataTables.bootstrap'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min', 'facebox/src/facebox', 'jqueryvalidation/dist/jquery.validate.min', 'jqueryvalidation/dist/additional-methods.min', 'inei.validation', 'jquery-ui.min'));
     $datos['rutas'] = $this->modelRuta->todos_los_rol_rutas();
     $datos['titulo'] = "Roles";
     $datos['contenido'] = 'ruta/listado_vista';
     $this->load->view('plantilla', $datos);
 }
示例#10
0
 public function reporte_directorio()
 {
     add_css(array('datatables/dataTables.bootstrap', 'iCheck/all'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min'));
     $this->load->model('locales/locales_administrativo_model', 'modeloLocal');
     $datos['locales'] = $this->modeloLocal->todos_los_locales($this->sedeOperativa);
     $datos['titulo'] = "Directorio de Locales";
     $datos['contenido'] = 'locales/reportes/directorio_vista';
     $this->load->view('plantilla', $datos);
 }
示例#11
0
 public function index()
 {
     add_css(array('datatables/dataTables.bootstrap', 'iCheck/all'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min', 'jqueryvalidation/dist/jquery.validate', 'jqueryvalidation/dist/additional-methods.min', 'facebox/src/facebox', 'jquery-ui.min'));
     add_js_(array('plugins/moment/min/moment.min', 'plugins/moment/locale/es'));
     //$datos['totalRol'] = $this->modeloUsuario->todos_los_roles();
     $datos['totalUsuarios'] = $this->modeloUsuario->todos_los_usuarios();
     $datos['titulo'] = "Lista de usuarios";
     $datos['contenido'] = 'usuario/listado_usuario_vista';
     $this->load->view('plantilla', $datos);
 }
示例#12
0
 /**
  * Index Page for this controller.
  *
  * Maps to the following URL
  * 		http://example.com/index.php/welcome
  *	- or -
  * 		http://example.com/index.php/welcome/index
  *	- or -
  * Since this controller is set as the default controller in
  * config/routes.php, it's displayed at http://example.com/
  *
  * So any other public methods not prefixed with an underscore will
  * map to /index.php/welcome/<method_name>
  * @see http://codeigniter.com/user_guide/general/urls.html
  */
 public function index()
 {
     if ($this->session->userdata('logged_in')) {
         $session_data = $this->session->userdata('logged_in');
         $data['nome'] = $session_data['nome'];
         $data['creditos'] = $session_data['creditos'];
     }
     add_js(array('jquery.cycle.min.js', 'jquery.cycle.carousel.min.js', 'inicial.js'));
     $this->load->model('inicial_model');
     $data['books'] = $this->inicial_model->listar();
     $this->load->view('master/header', $data);
     $this->load->view('inicial');
     $this->load->view('master/footer');
 }
示例#13
0
 public function paint($page, $data = NULL)
 {
     $this->data['css'] = add_css($this->css);
     $this->data['meta'] = add_meta($this->meta);
     $this->data['js'] = add_js($this->js);
     $this->data['title'] = $this->title;
     $this->data['body_class'] = $this->CI->router->fetch_class();
     if (!is_null($data)) {
         foreach ($data as $key => $value) {
             $this->data[$key] = $value;
         }
     }
     foreach ($this->slice as $key => $value) {
         if (is_array($value)) {
             foreach ($value as $k => $v) {
                 if (method_exists($this->CI->slices, $v)) {
                     $result = call_user_func_array(array($this->CI->slices, $v), array());
                     foreach ($result as $restult_k => $result_v) {
                         if (!isset($this->data[$restult_k])) {
                             $this->data[$restult_k] = $result_v;
                         }
                     }
                 }
                 $this->data[$k] = $this->CI->load->view('slices/' . $v, $this->data, TRUE) . "\n";
             }
         } elseif (!is_numeric($key)) {
             if (method_exists($this->CI->slices, $key)) {
                 $result = call_user_func_array(array($this->CI->slices, $key), array());
                 foreach ($result as $k => $v) {
                     if (!isset($this->data[$k])) {
                         $this->data[$k] = $v;
                     }
                 }
             }
             $this->data[$key] = $this->CI->load->view('slices/' . $value, $this->data, TRUE) . "\n";
         } else {
             if (method_exists($this->CI->slices, $value)) {
                 $result = call_user_func_array(array($this->CI->slices, $value), array());
                 foreach ($result as $restult_k => $result_v) {
                     if (!isset($this->data[$restult_k])) {
                         $this->data[$restult_k] = $result_v;
                     }
                 }
             }
             $this->data[$value] = $this->CI->load->view('slices/' . $value, $this->data, TRUE) . "\n";
         }
     }
     $this->data['content'] = $this->CI->load->view('pages/' . $page, $this->data, TRUE) . "\n";
     $this->CI->load->view('layouts/' . $this->layout, $this->data);
 }
示例#14
0
 function add_js($script = '')
 {
     if (is_array($script)) {
         foreach ($script as $item) {
             add_js($item);
         }
     } else {
         $CI =& get_instance();
         if (is_local($script)) {
             $script = base_url() . $script;
         }
         if (!in_array($script, $CI->vunsy->js)) {
             array_push($CI->vunsy->js, $script);
         }
     }
 }
示例#15
0
 public function paint($page, $data = NULL)
 {
     $this->data['css'] = add_css($this->css);
     $this->data['meta'] = add_meta($this->meta);
     $this->data['js'] = add_js($this->js);
     $this->data['title'] = $this->title;
     if (!is_null($data)) {
         foreach ($data as $key => $value) {
             $this->data[$key] = $value;
         }
     }
     foreach ($this->slice as $slice) {
         $this->data[$slice] = $this->CI->load->view('slices/' . $slice, $this->data, TRUE) . "\n";
     }
     $this->data['content'] = $this->CI->load->view('pages/' . $page, $this->data, TRUE) . "\n";
     $this->CI->load->view('layouts/' . $this->layout, $this->data);
 }
示例#16
0
 public function index()
 {
     if ($this->session->userdata('logged_in')) {
         $session_data = $this->session->userdata('logged_in');
         $data['nome'] = $session_data['nome'];
         $data['creditos'] = $session_data['creditos'];
         add_css('jquery.modal.css');
         add_js(array('jquery.modal.js', 'solicitacoes.js'));
         $data['title'] = "Solicitações";
         $this->load->model('solicitacao_model');
         $data['sol_rec'] = $this->solicitacao_model->listar_rec($session_data['id']);
         $data['sol_env'] = $this->solicitacao_model->listar_env($session_data['id']);
         $this->load->view('master/header', $data);
         $this->load->view('solicitacoes');
         $this->load->view('master/footer');
     } else {
         redirect('inicial', 'refresh');
     }
 }
示例#17
0
 public function index()
 {
     if ($this->session->userdata('logged_in')) {
         $session_data = $this->session->userdata('logged_in');
         $data['nome'] = $session_data['nome'];
         $data['creditos'] = $session_data['creditos'];
         $data['id'] = $session_data['id'];
         add_css('jquery.modal.css');
         add_js(array('jquery.modal.js', 'estante_desejos.js'));
         $data['title'] = "Minha Estante";
         $this->load->model('estante_model');
         $data['books'] = $this->estante_model->listar($data['id']);
         $this->load->view('master/header', $data);
         $this->load->view('estante');
         $this->load->view('master/footer');
     } else {
         redirect('inicial', 'refresh');
     }
 }
示例#18
0
 public function ap_editar()
 {
     add_css(array('datetimepicker/bootstrap-datetimepicker.min'));
     add_js(array('plugins/moment/min/moment.min', 'plugins/moment/locale/es', 'plugins/datetimepicker/bootstrap-datetimepicker.min', 'facebox/src/facebox', 'jquery-ui.min', 'plugins/input-mask/jquery.inputmask', 'plugins/input-mask/jquery.inputmask.extensions', 'jqueryvalidation/dist/jquery.validate.min', 'jqueryvalidation/dist/additional-methods.min', 'inei.validation'));
     $cod_asistente = $this->input->get('id');
     if (isset($_REQUEST['editarAplicador']) && $this->input->post('aplicador_cod_asistente') !== '') {
         $status = $this->modelAplicador->editar_aplicadores($this->input->post(NULL, TRUE), $cod_asistente);
         $this->compruebaStatus($status, 'editado');
     } else {
         $this->load->model('ajax/ajax_model', 'modeloAjax');
         $datos['asistentes'] = $this->modelAsistente->obtener_asistente($cod_asistente);
         $datos['aplicadores'] = $this->modelAplicador->obtener_aplicadores($cod_asistente);
         $datos['cant_aplicadores'] = $this->input->get('aplicadores');
         $datos['titulo'] = "Editar " . $this->titulo;
         $datos['title'] = $this->titulo;
         $datos['contenido'] = 'asistente/aplicador/editar_vista';
         $this->load->view('asistente/aplicador/editar_vista', $datos);
     }
 }
示例#19
0
/**
 *   show page with choice of tables, dynamically generate list with columns
 *
 */
function show_table_column_page($db, $table_name, $addcol_name, $addcol_label)
{
    global $_GET;
    echo "<form method='post' id='table_type'>\n";
    echo "<input type='hidden' name='table_name' value='{$table_name}'></input>\n";
    echo "<input type='hidden' name='addcol_name' value='{$addcol_name}'></input>\n";
    echo "<input type='hidden' name='addcol_label' value='{$addcol_label}'></input>\n";
    // box 1 with tablenames
    $r = $db->Execute("SELECT tablename,id,table_desc_name FROM tableoftables WHERE permission='Users' AND tablename <> 'settings' AND tablename <> '{$table_name}'  AND table_desc_name IS NOT NULL ORDER BY sortkey");
    // box 2, dynamically filled with column names
    $the_array = "modelinfo = new Array (\n";
    $the_array .= make_column_js_array($db, $r);
    $r->MoveNext();
    while (!$r->EOF) {
        $the_array .= ",\n " . make_column_js_array($db, $r);
        $r->MoveNext();
    }
    $the_array .= "\n)\n";
    echo add_js($the_array);
    $jscript = "onChange=\"fillSelectFromArray(this.form.table_column_select,((this.selectedIndex == -1) ? null : modelinfo[this.selectedIndex-1]));\"";
    echo "<h3 align='center'>Choose Table and column to be associated with column <i>{$addcol_label}</i> in table <i>{$table_name}</i>.</h3>\n";
    echo "<table align='center' cellpadding='2' cellspacing='0'>\n";
    echo "<tr><th>Table</th>\n<th>Column</th><th>&nbsp;</th></tr>\n";
    $rm = $db->Execute("SELECT tablename,id FROM tableoftables WHERE permission='Users' AND tablename <> 'settings' AND tablename <> '{$table_name}'  AND table_desc_name IS NOT NULL ORDER BY sortkey");
    echo "<tr><td>" . $rm->GetMenu2("table_select", "", true, false, 0, $jscript) . "</td>\n";
    echo "<td><select name='table_column_select'></select></td>\n";
    echo "</tr>\n";
    $_GET['tablename'] = $table_name;
    $tableinfo = new tableinfo($db);
    $rs = $db->Execute("SELECT id,associated_table,associated_column,associated_local_key,label FROM {$tableinfo->desname} WHERE datatype='table'");
    if ($rs && !$rs->EOF) {
        echo "<tr><td colspan=3>Grouping:</td></tr>\n";
        echo "<tr><td colspan=3><input type='radio' name='ass_to'> Make this a primary key</input></td></tr>\n";
        while (!$rs->EOF) {
            if ($rs->fields['associated_table'] && !$rs->fields['associated_local_key']) {
                $ass_tableinfo = new tableinfo($db, false, $rs->fields['associated_table']);
                $ass_column = get_cell($db, $ass_tableinfo->desname, 'label', 'id', $rs->fields['associated_column']);
                echo "<tr><td colspan=3><input type='radio' name='ass_to' value='{$rs->fields[0]}'> Associate with: Local column: <i>{$rs->fields['label']}</i> (Foreign table: <i>{$ass_tableinfo->name}</i>, column: <i>{$ass_column}</i>),</input></td></tr>\n";
            }
            $rs->MoveNext();
        }
    }
    echo "<tr><td colspan=3 align='center'><input type='submit' name='submit' value='Submit'></input></td></tr>\n";
    echo "</table>\n</form>\n";
}
示例#20
0
  <ul id="nav">
      <li class="nav-item"> <a href="#item-1" class="current item-1"></a> </li>
      <li class="nav-item"><a class="" href="#item-2"></a></li>
      <li class="nav-item"><a class="" href="#item-3" ></a></li>
      <li id="nav-item-back"><a href="javascript:;" class="sprite back"></a></li>
  </ul>
-->
<ul class="page-nav" id="page-nav">
  <li class="nav-item"><a href="#item-1" class="active"></a></li>
  <li class="nav-item"><a href="#item-2"></a></li>
  <li class="nav-item"><a href="#item-3"></a></li>
  <li class="nav-item-back"><a href="javascript:;"></a></li>
</ul>
<?php 
//add js file
add_js('ext/touchslider.min.js', ['pos' => 'head', 'ver' => 1]);
?>
<script type="text/javascript">
$(function(){
	var _active = 0, $_ap = $('#page-nav a');
  var t1 = new TouchSlider({
     id:'wrapper',
     auto: false,
     speed:600,
     timeout:6000,
     direction:'down',
     before:function(newIndex, oldSlide){
       $_ap.parent().removeClass('redbg');
       $_ap.get(_active).className = '';
       _active = newIndex;
       if(1==newIndex) $_ap.parent().addClass('redbg');
示例#21
0
 <head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <title><?php 
echo $appname;
?>
 : <?php 
echo $row->name . ' (' . $client_status . ')';
?>
</title>
  <link type="image/jpg" rel="icon" href="themes/<?php 
echo $theme;
?>
/Mogg Maniac.crop.png">
<?php 
add_css(array('debug.css', 'play.css', 'list.css', 'side.css', 'menu.css', 'options.css'));
add_js(array('debug.js', 'play.js', 'dnd.js', 'player.js', 'canvas.js', 'events.js', 'network.js', 'websockets.js', 'canvasutilities.js', 'image.js', 'card.js', 'token.js', 'math.js', 'menu.js', 'listeditor.js', 'target.js', 'workarounds.js', 'zone.js', 'manapool.js', 'turn.js', 'side.js', 'html.js', 'selection.js', 'options.js', 'spectactor.js', '../variables.js.php'));
?>
  <script type="text/javascript">
function start() { // When page is loaded : initialize everything
	init_title = document.title ;
	unseen_actions = 0 ;
	sent_time = null ;
	// Current game globals
	creator = <?php 
echo $creator;
?>
 ; // Am i that game's creator ?
	goldfish = <?php 
echo $goldfish;
?>
 ; // Is the game a goldfish ?
示例#22
0
    assign('profile_item', $profileItem);
} else {
    if ($_GET['seo_diret'] != 'yes') {
        e(lang("usr_exist_err"));
        $Cbucket->show_page = false;
    } else {
        header("HTTP/1.0 404 Not Found");
        if (file_exists(LAYOUT . "/404.html")) {
            template_files('404.html');
        } else {
            $data = "404_error";
            if (has_access('admin_access')) {
                e(sprintf(lang("err_warning"), "404", "http://docs.clip-bucket.com/?p=154"), "w");
            }
            e(lang($data));
        }
        display_it();
        exit;
    }
}
add_js(array('jquery_plugs/compressed/jquery.jCarousel.js' => 'view_channel'));
if ($Cbucket->show_page) {
    template_files('view_channel.html');
    display_it();
} else {
    $Cbucket->show_page = true;
    if ($udetails) {
        template_files('view_channel.html');
    }
    display_it();
}
示例#23
0
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["table"])) {
    table();
    exit;
}
if (isset($_GET["add-js"])) {
    add_js();
    exit;
}
if (isset($_GET["duplicate-js"])) {
    duplicate_js();
    exit;
}
if (isset($_GET["restore-js"])) {
    restore_js();
    exit;
}
if (isset($_GET["add-popup"])) {
    add_popup();
    exit;
}
if (isset($_POST["servername"])) {
示例#24
0
function add_sso_js()
{
    add_js(PLUGIN_PATH . 'sso/assets/js/sso.js', array('name' => 'sso.js', 'type' => 'defer'));
    add_css(PLUGIN_PATH . 'sso/assets/css/sso.css', array('name' => 'sso.css'));
}
示例#25
0
<title><?php 
if (!empty($title)) {
    echo $title;
}
?>
</title>
<?php 
echo chrome_frame();
echo view_port();
echo apple_mobile('black-translucent');
echo $meta;
?>

<!-- icons and icons and icons and icons and icons and a tile -->
<?php 
echo windows_tile(array('name' => 'Stencil', 'image' => base_url() . '/assets/img/icons/tile.png', 'color' => '#4eb4e5'));
echo favicons();
?>

<!-- crayons and paint -->	
<?php 
echo add_css(array('bootstrap.min', 'bootstrap-theme.min.css', 'style'));
echo $css;
?>

<!-- magical wizardry -->
<?php 
echo jquery();
echo shiv();
echo add_js(array('bootstrap.min'));
echo $js;
示例#26
0
 public function programacion()
 {
     add_css(array('datatables/dataTables.bootstrap'));
     add_js(array('plugins/datatables/jquery.dataTables.min', 'plugins/datatables/dataTables.bootstrap.min', 'plugins/vue/vue.min'));
     $datos['total'] = array('primaria' => array('programadas' => 25102, 'avance' => 12302, 'porcentaje' => 11.29), 'secundaria' => array('programadas' => 12102, 'avance' => 12302, 'porcentaje' => 21.29), 'total' => array('programadas' => 35102, 'avance' => 12302, 'porcentaje' => 31.29));
     $datos['titulo'] = "Avance de Programación";
     $datos['locales'] = $this->modelProgramacion->todos_los_locales($this->sedeOperativa);
     $datos['contenido'] = 'segmentacion/programacion/avance_vista';
     $this->load->view('plantilla', $datos);
 }
示例#27
0
</div>
<script type="text/javascript">
function loading(act){
  if(act=='start'){
    $('.cover').show();
  }else if(act=='stop'){
    $('.cover').hide();
  }
}
$(function(){
	$('#share').bind('touchmove',function(e){e.preventDefault();});
});
</script>
<?php 
tplholder('FOOT_JS');
?>
<script>var FST=new Object();FST.autostart=0;</script>
<script type="text/javascript" src="<?php 
echo $contextpath;
?>
misc/js/fst.min.js"></script>
</body>
</html><?php 
add_css('c.min.css', ['scope' => 'global', 'ver' => 1]);
add_css('m.css', ['scope' => 'global']);
add_css('pc.css', ['scope' => 'global', 'media' => 'only screen and (min-width: 1025px)']);
add_css('share.css', ['scope' => 'global']);
//add js file
add_js('ext/jquery-2.1.1.min.js', ['pos' => 'head', 'ver' => 'none']);
示例#28
0
/**
 *
 * @param string $id The plugin id / key in the app.yml
 * @param string $type JS for js files / CSS for css files
 */
function set_jquery_plugins_configuration_files($id, $type = '')
{
    $jqueryPlugins = sfConfig::get('app_ys_jquery_plugins', null);
    $jqueryPluginInfo = $jqueryPlugins[$id];
    if ($jqueryPluginInfo != null) {
        $jsDir = '';
        $cssDir = '';
        if ($jqueryPluginInfo['local']) {
            $jsDir = sfConfig::get('app_ys_jquery_plugins_folder', null) . '/';
            $cssDir = sfConfig::get('app_ys_jquery_css', null) . '/';
        }
        if ($type == '' || strtolower($type) == 'js') {
            if (isset($jqueryPluginInfo['js_files']) && is_array($jqueryPluginInfo['js_files'])) {
                foreach ($jqueryPluginInfo['js_files'] as $jsFile) {
                    add_js($jsFile, $jsDir, 'last');
                }
            }
        }
        if ($type == '' || strtolower($type) == 'css') {
            if (isset($jqueryPluginInfo['css_files']) && is_array($jqueryPluginInfo['css_files'])) {
                foreach ($jqueryPluginInfo['css_files'] as $cssFile) {
                    add_css($cssFile, $cssDir, 'last');
                }
            }
        }
    }
    return false;
}
示例#29
0
 public function seleccionar($sElemento = "foto")
 {
     //        echo ini_get("post_max_size");die; //8MB
     //        echo ini_get("upload_max_filesize");die; //128MB
     $js_agregados = array("/librerias/ng-file-upload-11.1.1/ng-file-upload-shim.min.js", "/librerias/ng-file-upload-11.1.1/ng-file-upload.min.js", "/mm/js/controllers/UploaderController.js");
     add_js($js_agregados);
     $elemento = (string) strtolower($sElemento);
     $form_metadata = $this->load->view("mm/archivos/metadata/{$elemento}/nueva_metadata_{$elemento}", NULL, TRUE);
     $elementos_permitidos = config_item("elementos_permitidos");
     if (!isset($elementos_permitidos[$elemento])) {
         show_error("No puede subir elementos de este tipo", 501);
     }
     $mimes_aceptados = $elementos_permitidos[$elemento];
     if (is_array($mimes_aceptados)) {
         $mimes_aceptados = implode(",", $mimes_aceptados);
     }
     $this->load->model("MM/MM_categoria_model");
     $categorias = $this->MM_categoria_model->get_categorias_selector();
     $archivos_master = array("categorias" => $categorias, "form_metadata" => $form_metadata, "elemento" => $elemento, "mimes_aceptados" => $mimes_aceptados);
     $contenido = $this->load->view("mm/archivos/seleccionar_archivos_master", $archivos_master, TRUE);
     $layout = array("contenido" => $contenido);
     $this->load->view("mm/layout/default/default", $layout);
 }
/**
 * TODO documentation
 * @param string|array() $filesName The file name to add.
 * @param string $position The position ('first' or 'last')
 * @param string $path The file path (optional)
 */
function add_js_configuration_file($filesName, $position = 'last', $path = null)
{
    if (is_null($path)) {
        $path = get_ui_js_path();
    }
    add_js($filesName, $path, $position);
}