Пример #1
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');
     }
 }
 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);
     }
 }
Пример #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);
 }
Пример #5
0
 public function ie_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', 'plugins/typeahead/typeahead.bundle.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['editarAsistente']) && $this->input->post('asistente_cod_asistente') !== '') {
         $datos = $this->input->post(NULL, TRUE);
         //separar datos del asistente de la lista de aplicadores*
         $aplicadores = array();
         $aplicadores['datos_nombres'] = $this->input->post('datos_nombres');
         $aplicadores['datos_apellidos'] = $this->input->post('datos_apellidos');
         $aplicadores['datos_dni'] = $this->input->post('datos_dni');
         $aplicadores['datos_telefono'] = $this->input->post('datos_telefono');
         unset($datos['datos_nombres']);
         unset($datos['datos_apellidos']);
         unset($datos['datos_dni']);
         unset($datos['datos_telefono']);
         //actualizar asistente
         $status = $this->modelAsistente->editar_asistente($datos, $cod_asistente);
         //eliminar aplicadores* (PENDIENTE. falta campo estado)
         $this->modelAplicador->eliminar_aplicadores($cod_asistente);
         //print_r($this->input->post('datos_dni'));
         foreach ($this->input->post('datos_dni') as $aplicador) {
             $dni = preg_replace('/[^0-9]/', '', $aplicador);
             $params['DNI'] = $dni;
             $params['codigo_asistente'] = $cod_asistente;
             $this->modelAplicador->insertar_aplicadores($params, $cod_asistente);
         }
         $this->compruebaStatus($status, 'editado');
     } else {
         $this->load->model('ajax/ajax_model', 'modeloAjax');
         //$datos['cant_aplicadores']  = $this->input->get('aplicadores');
         $datos['ies'] = $this->modelAsistente->todas_las_ie($this->sedeOperativa);
         $datos['asistentes'] = $this->modelAsistente->obtener_asistente($cod_asistente);
         $datos['sedes'] = $this->modeloAjax->todas_las_sedes($this->sedeOperativa);
         $datos['sede_provinciales'] = $this->modeloAjax->obtener_sede_provincial(array('sede_operativa' => $datos['asistentes']['cod_sede_operativa']));
         //$datos['sede_distritales'] = $this->modeloAjax->obtener_sede_distrital_por_distrito($datos['asistentes']['ccdi'], $datos['asistentes']['ccpp'], $datos['asistentes']['ccdd'], $datos['asistentes']['cod_sede_operativa']);
         //
         // $datos['departamentos'] = $this->modeloAjax->obtener_departamentos_por_sede($datos['asistentes']['cod_sede_operativa']);
         // $datos['provincias']    = $this->modeloAjax->obtener_provincias_por_departamento($datos['asistentes']['ccdd'], $datos['asistentes']['cod_sede_operativa']);
         // $datos['distritos']     = $this->modeloAjax->obtener_distritos_por_provincia($datos['asistentes']['ccpp'], $datos['asistentes']['ccdd'], $datos['asistentes']['cod_sede_operativa']);
         $datos['titulo'] = "Cronograma de " . $this->titulo;
         $datos['title'] = $this->titulo;
         $datos['contenido'] = 'asistente/ie/editar_vista';
         $asistentes = $this->modelAsistente->obtener_asistente($cod_asistente);
         $aplicadores = $this->modelAplicador->obtener_aplicadores($cod_asistente);
         $datos['aplicadores'] = $aplicadores;
         $datos['aplicadores_cantidad'] = count($aplicadores);
         /* echo "<pre>";
            print_r($cod_asistente);
            print_r($asistentes);
            print_r($aplicadores);
            print_r(count($aplicadores));
            echo "</pre>";
            exit;*/
         $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);
 }
 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
 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);
 }
Пример #9
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);
 }
Пример #10
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);
 }
Пример #11
0
 function add_css($style = '')
 {
     if (is_array($style)) {
         foreach ($style as $item) {
             add_css($item);
         }
     } else {
         $CI =& get_instance();
         if (!in_array($style, $CI->vunsy->css)) {
             array_push($CI->vunsy->css, $style);
         }
     }
 }
Пример #12
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);
 }
Пример #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;
     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);
 }
Пример #14
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);
     }
 }
Пример #15
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');
     }
 }
Пример #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
</nav>

</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']);
Пример #18
0
<html>
 <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;
?>
Пример #19
0
  <meta name="description" content="<?php 
echo $seo['desc'];
?>
">
  <meta name="author" content="Donglong Technical Team">
  <?php 
tplholder('HEAD_CSS');
?>
  <?php 
tplholder('HEAD_JS');
?>
  <?php 
//add css file
add_css('/themes/mobiles/css/c.css', ['scope' => 'global', 'ver' => 1]);
add_css('index.css', ['scope' => 'global']);
add_css('mobile.css', ['scope' => 'global', 'media' => 'only screen and (max-width:1025px)']);
//add js file
add_js('ext/jquery-1.8.3.min.js', ['pos' => 'head', 'ver' => 1]);
//add_js('vendor.js',['pos'=>'foot','ver'=>1]);
//add_js('browser.js',['pos'=>'foot','ver'=>1]);
?>
</head>
<body >
<div id="wrapper" >
  <div id="item-1" class="page">
    <div class="w1000 header">
      <ul id="shareto" class=" clearfix">
        <li><a href="/blog/" target="_blank">官方博客</a></li>
        <li>分享到:</li>
        <li><a href="http://weibo.com/fxmapp" id="st1" target="_blank"></a></li>
        <li><a href="http://t.qq.com/fxmapp" id="st2" target="_blank"></a></li>
Пример #20
0
 /**
  * this is called before smarty process html 
  * you can add/remove resources like js/css here
  * you can also modify html using regex - but disabled 
  * 
  */
 public function head()
 {
     $asset = new \CODOF\Asset\Stream();
     $col = new \CODOF\Asset\Collection('head_col');
     $col->addJS(PLUGIN_PATH . 'uni_login/assets/js/uni_login.js', array('name' => 'uni_login.js', 'type' => 'defer'));
     $asset->addCollection($col);
     add_css(PLUGIN_PATH . 'uni_login/assets/css/uni_login.css', array('name' => 'uni_login.css'));
 }
Пример #21
0
	font-size: 200%;
	color: #284128;
}
.title2{
	font-size: 80%;
	color: #284128;
}
.sep{
	width: 80%;
	border-top: 1px solid #284128;
	margin-top: 10px;
	margin-bottom: 10px;
}
</style>
<?php 
    add_css('jquery/theme/ui.all.css');
    ?>
<table class="ui-corner-all ui-widget-content page" align="center" >
<tr>
	<td align="center" >
<?php 
    $ci =& get_instance();
    $ci->load->library('gui');
    echo $ci->gui->info('if you want to start just login using root and remove that layout and enjoy');
    ?>
<br>
		<img src="<?php 
    echo base_url();
    ?>
images/admin/logo.png" >
		<br><h1 class="ui-helper-reset title" >VUnSy</h1>
Пример #22
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'));
}
Пример #23
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;
Пример #24
0
<?php

debug_backtrace() || die("Direct access not permitted.");
?>

<?php 
// error_reporting(0);
require_once 'main/init.php';
$user_type = user_type();
if ($user_type == 'admin' || $user_type == 'official') {
    require_once 'main/main.php';
} elseif ($user_type == 'teacher') {
    require_once 'main/teachers/main.php';
} elseif ($user_type == 'principal') {
    require_once 'main/teachers/main.php';
} elseif ($user_type == 'student') {
    require_once 'main/students/main.php';
} elseif ($user_type == 'parent') {
    require_once 'main/parents/main.php';
}
//adding css
add_css([get_plugin_dir() . '/css/style.css', get_plugin_dir() . '/css/datepicker.css']);
//adding js into header
add_js_header(get_plugin_dir() . '/js/functions.js');
//adding js into footer
add_js_footer([get_plugin_dir() . '/js/script.js', get_plugin_dir() . '/js/datepicker.js']);
Пример #25
0
 public function add_css($css)
 {
     add_css($css);
 }
Пример #26
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;
}
<?php

add_css('tgd.css', ['scope' => 'module', 'mod' => 'activity', 'pos' => 'current']);
?>
<div id="tgd">
	<span id="tgd_share">
			<img src="<?php 
echo $context;
?>
/img/tgd_1.jpg" alt="">
	</span>
	<div id="w90">		
		<ul id="tgd_ul" class="clearfix bbsizing">
			<li for="lg"><span >给老公</span></li>
			<li for="lm"><span class="active_giveto">给老妈</span></li>
			<li for="dd"><span>给搭档</span></li>
			<li for="gm"><span>给闺蜜</span></li>
			<li for="ss"><span>给上司</span></li>
			<li for="er"><span>给儿子</span></li>
		</ul>
		<div class="giveto_wish" id="lg" style="display:none">
			给老公:真高兴能和你一起生活,二次投胎眼光还是准的。
		</div>
		<div class="giveto_wish" id="lm" style="">
			给老妈: 妈妈:“各自努力,好好生活!”这话小时候您常跟我说,现在终于懂了,我也非常认同。把自己的事情做好,我在非常努力了,希望我们都做得更好!
		</div>
		<div class="giveto_wish" id="dd" style="display:none">
			给搭档: 我们既是分享秘密的朋友也是并肩做战的同仁。没有比你更懂我的朋友,也没有比你更能让我崩溃的同事。但还是觉得非你不行。
		</div>
		<div class="giveto_wish" id="gm" style="display:none">
			给闺蜜: 想想你我已然交往十年以上,这份感情在身边越来越少了。未来也许我们偶尔才会联系,但是,你已经在我的生命里!
Пример #28
0
/**
 * 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_css_configuration_file($filesName, $position = 'last', $path = null)
{
    if (is_null($path)) {
        $path = get_ui_css_path();
    }
    add_css($filesName, $path, $position);
}
Пример #29
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);
 }
Пример #30
0
    echo $contextpath;
    ?>
themes/mobiles/img/guide.png"/>
<?php 
}
?>
</div>
</body>
<?php 
footscript();
tplholder('FOOT_JS');
?>
<script>var FST=new Object();FST.autostart=1;FST.uid=parseInt(gUser.uid);</script>
<script type="text/javascript" src="<?php 
echo $contextpath;
?>
misc/js/fst.min.js"></script>
</html><?php 
//: add css & js files
if (C('env.usecdn')) {
    add_css('http://fcdn.fxmapp.com/css/c.min.css', ['scope' => 'global', 'ver' => 'none']);
    add_js('http://fcdn.fxmapp.com/js/jquery-2.1.3.min.js', ['pos' => 'head', 'ver' => 'none']);
    add_js('http://fcdn.fxmapp.com/js/fm.min.js', ['pos' => 'foot', 'ver' => 'none']);
} else {
    add_css('c.min.css', ['scope' => 'global', 'ver' => 'none']);
    add_js('ext/jquery-2.1.3.min.js', ['pos' => 'head', 'ver' => 'none']);
    add_js('fm.min.js', ['pos' => 'foot', 'ver' => 'none']);
}
add_css('m.css', ['scope' => 'global']);
add_js('global.js', ['pos' => 'head']);
add_js('m.js', ['pos' => 'foot']);