2012-09-20 19:38:42 +00:00
<! DOCTYPE html >
< html lang = " <?php echo Yii::app()->language; ?> " >
< head >
< meta charset = " utf-8 " />
2012-09-21 11:37:01 +00:00
2012-09-20 19:38:42 +00:00
< meta name = " viewport " content = " width=device-width, initial-scale=1.0 " />
< title >< ? php echo CHtml :: encode ( $this -> pageTitle ); ?> </title>
2012-09-21 11:37:01 +00:00
<!-- Bootstrap CSS -->
2012-09-20 19:38:42 +00:00
< link rel = " stylesheet " href = " <?php echo Yii::app()->theme->baseUrl; ?>/bootstrap/css/bootstrap.min.css " />
< link rel = " stylesheet " href = " <?php echo Yii::app()->theme->baseUrl; ?>/bootstrap/css/bootstrap-responsive.min.css " />
2012-09-21 11:37:01 +00:00
<!-- Notificaciones -->
2012-09-20 19:38:42 +00:00
< link rel = " stylesheet " href = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/sticky/sticky.css " />
2012-10-22 15:47:11 +00:00
<!-- Tooltips -->
< link rel = " stylesheet " href = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/qtip2/jquery.qtip.min.css " />
2012-09-21 11:37:01 +00:00
<!-- Estilos -->
2012-09-20 19:38:42 +00:00
< link rel = " stylesheet " href = " <?php echo Yii::app()->theme->baseUrl; ?>/css/profind.css " />
2012-09-21 11:37:01 +00:00
< link rel = " stylesheet " href = " <?php echo Yii::app()->theme->baseUrl; ?>/css/media.css " />
2012-09-20 19:38:42 +00:00
< link rel = " stylesheet " href = " <?php echo Yii::app()->theme->baseUrl; ?>/css/azul.css " />
2012-09-29 18:15:28 +00:00
2012-09-20 19:38:42 +00:00
<!-- Favicon -->
< link rel = " shortcut icon " href = " favicon.ico " />
</ head >
2012-10-22 15:47:11 +00:00
< body >
2012-09-20 19:38:42 +00:00
< div id = " maincontainer " class = " clearfix " >
2012-09-21 11:37:01 +00:00
<!-- cabecera -->
2012-09-20 19:38:42 +00:00
< header >
< div class = " navbar navbar-fixed-top " >
< div class = " navbar-inner " >
< div class = " container-fluid " >
2012-10-22 15:47:11 +00:00
<!-- Logo -->
2012-10-01 16:45:41 +00:00
< div class = " brand " >
< ? php echo CHtml :: image ( Yii :: app () -> baseUrl . '/images/logo_profind.png' , Yii :: app () -> name ); ?>
</ div >
2012-10-22 15:47:11 +00:00
<!-- Menú usuario -->
< ul class = " nav user_menu pull-right " >
2012-10-15 14:49:53 +00:00
< li class = " hidden-phone hidden-tablet " ></ li >
2012-10-12 19:22:31 +00:00
< li class = " divider-vertical hidden-phone hidden-tablet " ></ li >
2012-09-20 19:38:42 +00:00
< li class = " dropdown " >
2012-10-12 19:22:31 +00:00
< a data - toggle = " dropdown " class = " dropdown-toggle " href = " # " >< ? php echo CHtml :: encode ( Yii :: app () -> user -> name ); ?> <b class="caret"></b></a>
2012-09-20 19:38:42 +00:00
< ul class = " dropdown-menu " >
2012-10-15 14:49:53 +00:00
< li >< ? php echo CHtml :: link ( Yii :: t ( 'profind' , 'Perfil' ), $this -> createUrl ( 'usuario/modificar' , array ( 'id' => Yii :: app () -> user -> id ))); ?> </li>
< ? php if ( Yii :: app () -> user -> esCoordinador ) : ?>
< li >< ? php echo CHtml :: link ( Yii :: t ( 'profind' , 'Empresa' ), $this -> createUrl ( 'empresa/modificar' , array ( 'id' => Yii :: app () -> user -> id_empresa ))); ?> </li>
< li >< ? php echo CHtml :: link ( Yii :: t ( 'profind' , 'Productos' ), $this -> createUrl ( 'subscripcion/modificar' , array ( 'id' => Yii :: app () -> user -> subscripcion -> id ))); ?> </li>
< ? php if ( Yii :: app () -> user -> tieneEquipo ) : ?>
< li >< ? php echo CHtml :: link ( Yii :: t ( 'profind' , 'Equipo' ), $this -> createUrl ( 'equipo/index' )); ?> </li>
< ? php endif ; ?>
< ? php endif ; ?>
< li class = " divider " ></ li >
< li >< ? php echo CHtml :: link ( Yii :: t ( 'profind' , 'Networks' ), $this -> createUrl ( 'network/index' )); ?> </li>
< li >< ? php echo CHtml :: link ( Yii :: t ( 'profind' , 'Portales' ), $this -> createUrl ( 'portal/index' )); ?> </li>
2012-10-12 19:22:31 +00:00
< li class = " divider " ></ li >
2012-10-15 14:49:53 +00:00
< li >< ? php echo CHtml :: link ( Yii :: t ( 'profind' , 'Cambiar la password' ), $this -> createUrl ( 'usuario/cambiarPassword' , array ( 'id' => Yii :: app () -> user -> id ))); ?> </li>
2012-09-20 19:38:42 +00:00
</ ul >
2012-10-15 14:49:53 +00:00
</ li >
< li >
2012-10-22 15:47:11 +00:00
< ? php
echo CHtml :: link (
CHtml :: tag ( 'i' , array ( 'class' => 'icon-off icon-white' ), '' ) . ' ' . Yii :: t ( 'profind' , 'Salir' ), $this -> createUrl ( 'site/logout' )
);
2012-10-15 14:49:53 +00:00
?>
2012-09-20 19:38:42 +00:00
</ li >
2012-10-22 15:47:11 +00:00
</ ul >
2012-10-15 14:49:53 +00:00
2012-10-22 15:47:11 +00:00
<!-- Separador del menú principal -->
< div class = " btn_menu " ></ div >
2012-09-29 18:15:28 +00:00
2012-10-22 15:47:11 +00:00
<!-- Menú principal -->
< nav >
< ? php
$itemsMenu = array ();
// Tablero
$itemsMenu [] = array (
'label' => CHtml :: tag ( 'i' , array ( 'class' => 'icon-th icon-white' ), '' ) . ' ' . Yii :: t ( 'profind' , 'Tablero' ),
'url' => '' ,
'linkOptions' => array (),
);
// Publicaciones
$itemsMenu [] = array (
'label' => CHtml :: tag ( 'i' , array ( 'class' => 'icon-tags icon-white' ), '' ) . ' ' . Yii :: t ( 'profind' , 'Publicaciones' ),
'url' => '' ,
'linkOptions' => array (),
);
// Inscripciones
$itemsMenu [] = array (
'label' => CHtml :: tag ( 'i' , array ( 'class' => 'icon-bookmark icon-white' ), '' ) . ' ' . Yii :: t ( 'profind' , 'Inscripciones' ),
'url' => '' ,
'linkOptions' => array (),
);
// BD Candidatos
$itemsMenu [] = array (
'label' => CHtml :: tag ( 'i' , array ( 'class' => 'icon-hdd icon-white' ), '' ) . ' ' . Yii :: t ( 'profind' , 'BD Candidatos' ),
'url' => array ( '/candidato/index' ),
'linkOptions' => array (),
);
$this -> widget ( 'zii.widgets.CMenu' , array (
'activeCssClass' => 'active' ,
'encodeLabel' => false ,
'htmlOptions' => array (
'class' => 'nav' ,
),
'items' => $itemsMenu ,
));
?>
2012-09-20 19:38:42 +00:00
</ nav >
</ div >
</ div >
</ div >
</ header >
2012-09-21 11:37:01 +00:00
<!-- contenido -->
2012-09-20 19:38:42 +00:00
< div id = " contentwrapper " >
< div class = " main_content " >
2012-10-22 15:47:11 +00:00
< ? php if ( isset ( $this -> breadcrumbs )) : ?>
< ? php
$this -> widget ( 'zii.widgets.CBreadcrumbs' , array (
2012-11-02 11:48:15 +00:00
'homeLink' => CHtml :: link ( Yii :: t ( 'intranet' , 'Home' ), array ( '/site/index' )),
2012-10-15 14:49:53 +00:00
'tagName' => 'ul' ,
'links' => $this -> breadcrumbs ,
'activeLinkTemplate' => '<li><a href="{url}">{label}</a></li>' ,
'inactiveLinkTemplate' => '<li class="active">{label}</li>' ,
'separator' => '<span class="divider">/</span>' ,
'htmlOptions' => array ( 'class' => 'breadcrumb' ),
2012-10-22 15:47:11 +00:00
));
?>
2012-10-15 14:49:53 +00:00
< ? php endif ; ?>
2012-09-20 19:38:42 +00:00
< ? php echo $content ; ?>
</ div >
</ div >
2012-10-15 14:49:53 +00:00
<!-- sidebar -->
2012-10-22 15:47:11 +00:00
< a href = " javascript:void(0) " class = " sidebar_switch on_switch ttip_r " title = " Ocultar barra " > Conmutar barra </ a >
2012-10-15 14:49:53 +00:00
< div class = " sidebar " >
2012-10-22 15:47:11 +00:00
< div class = " antiScroll " >
< div class = " antiscroll-inner " >
< div class = " antiscroll-content " >
< div class = " sidebar_inner " >
< form action = " # " class = " input-append " method = " post " >
< input autocomplete = " off " name = " query " class = " search_query input-medium " size = " 16 " type = " text " placeholder = " <?php echo Yii::t('profind', 'Buscar...'); ?> " />
< button type = " submit " class = " btn " >< i class = " icon-search " ></ i ></ button >
</ form >
< div id = " side_accordion " class = " accordion " >
< ? php if ( count ( $this -> menu ) > 0 ) : ?>
< div class = " accordion-group " >
< div class = " accordion-heading " >
< a class = " accordion-toggle " data - toggle = " collapse " href = " #collapseMenu " >
< i class = " icon-cog " ></ i > < ? php echo Yii :: t ( 'profind' , 'Menú' ); ?>
</ a >
</ div >
< div id = " collapseMenu " class = " accordion-body in collapse " style = " height: auto; " >
< div class = " accordion-inner " >
< ? php
$this -> widget ( 'zii.widgets.CMenu' , array (
'activeCssClass' => 'active' ,
'encodeLabel' => false ,
'items' => ( isset ( $this -> menu [ 'sidebar' ])) ? $this -> menu [ 'sidebar' ] : $this -> menu ,
'htmlOptions' => array (
'class' => 'nav nav-list' ,
),
));
?>
</ div >
</ div >
</ div >
< ? php endif ; ?>
< ? php if ( isset ( $this -> clips [ 'sidebar' ])) echo $this -> clips [ 'sidebar' ]; ?>
2012-10-15 14:49:53 +00:00
</ div >
2012-10-22 15:47:11 +00:00
< div class = " push " ></ div >
2012-10-15 14:49:53 +00:00
</ div >
2012-10-22 15:47:11 +00:00
</ div >
2012-10-15 14:49:53 +00:00
</ div >
</ div >
</ div >
2012-09-21 11:37:01 +00:00
<!-- Bootstrap JS -->
2012-09-20 19:38:42 +00:00
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/bootstrap/js/bootstrap.min.js " ></ script >
2012-10-22 15:47:11 +00:00
<!-- Eventos en el redimensionado -->
2012-10-23 19:02:18 +00:00
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/smartresize/jquery.debouncedresize.js " ></ script >
2012-10-22 15:47:11 +00:00
<!-- width / height -->
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/actual/jquery.actual.min.js " ></ script >
<!-- js cookie plugin -->
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/cookie/jquery.cookie.js " ></ script >
<!-- Tooltips -->
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/qtip2/jquery.qtip.min.js " ></ script >
2012-09-21 11:37:01 +00:00
<!-- Mensajes -->
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/sticky/sticky.min.js " ></ script >
2012-10-22 15:47:11 +00:00
<!-- Scrollbar -->
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/antiscroll/antiscroll.js " ></ script >
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/lib/antiscroll/deps/jquery-mousewheel.js " ></ script >
<!-- Arreglo orientación en iOS -->
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/js/ios-orientationchange-fix.js " ></ script >
2012-10-15 14:49:53 +00:00
<!-- General -->
< script src = " <?php echo Yii::app()->theme->baseUrl; ?>/js/profind-general.js " ></ script >
2012-09-20 19:38:42 +00:00
</ div >
</ body >
</ html >
2012-09-21 11:37:01 +00:00
< ? php Yii :: app () -> clientScript -> registerCoreScript ( 'jquery' ); ?>
2012-10-22 15:47:11 +00:00
< ? php Yii :: app () -> clientScript -> registerCoreScript ( 'jquery.ui' ); ?>
< ? php Yii :: app () -> clientScript -> registerCssFile ( Yii :: app () -> theme -> baseUrl . '/css/aristo/jquery-ui.css' ); ?>
2012-09-21 11:37:01 +00:00
2012-09-20 19:38:42 +00:00
< ? php
$flashMessages = Yii :: app () -> user -> getFlashes ( false );
if ( ! empty ( $flashMessages )) {
$profind_notificaciones = <<< JS
$ ( document ) . ready ( function () {
profind_notificaciones . sticky ();
});
profind_notificaciones = {
sticky : function () {
JS ;
if ( Yii :: app () -> user -> hasFlash ( 'success' )) :
$profind_notificaciones .= '$.sticky("' . Yii :: app () -> user -> getFlash ( 'success' ) . '", {autoclose : 5000, position: "top-center", type: "st-success" });' ;
endif ;
if ( Yii :: app () -> user -> hasFlash ( 'error' )) :
$profind_notificaciones .= '$.sticky("' . Yii :: app () -> user -> getFlash ( 'error' ) . '", {autoclose : 5000, position: "top-center", type: "st-error" });' ;
endif ;
if ( Yii :: app () -> user -> hasFlash ( 'notice' )) :
$profind_notificaciones .= '$.sticky("' . Yii :: app () -> user -> getFlash ( 'notice' ) . '", {autoclose : 5000, position: "top-center", type: "st-info" });' ;
endif ;
$profind_notificaciones .= '}' ;
$profind_notificaciones .= '}' ;
Yii :: app () -> clientScript -> registerScript ( 'profind_notificaciones' , $profind_notificaciones , CClientScript :: POS_END );
}
2012-10-12 19:22:31 +00:00
?>