Пример #1
0
<?php

/* @var $this PeriodController */
/* @var $dataProvider CActiveDataProvider */
?>

<?php 
$this->breadcrumbs = array('Periods');
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Period', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Period', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Periods');
$this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Пример #2
0
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.errorbars.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.fillbetween.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.image.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.navigate.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.pie.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.resize.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.selection.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.stack.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.symbol.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.threshold.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/jquery.flot.time.min.js', CClientScript::POS_END);
$cs->registerScriptFile($themePath . '/assets/js/surveyQuickAnalytics.js', CClientScript::POS_END);
?>

<?php 
echo BsHtml::pageHeader('Быстрая аналитика по опросу', $model->title);
foreach ($model->groups as $i => $group) {
    ?>
    <?php 
    foreach ($group->questions as $i => $question) {
        ?>
        <?php 
        $chart = QuestionToChartAdapter::getChart($question);
        if ($chart == "") {
            continue;
        }
        ?>
        <div id="question-<?php 
        echo $question->qid;
        ?>
">
Пример #3
0
<?php

/* @var $this SkillController */
/* @var $model Skill */
?>

<?php 
$this->breadcrumbs = array('Skills' => array('admin'), $model->title => array('view', 'id' => $model->id_skill), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Skill', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Skill', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'View Skill', 'url' => array('view', 'id' => $model->id_skill)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Skill', 'url' => array('admin')));
?>
<div class="box box-primary">
    <div class="box-header">
        <?php 
echo BsHtml::pageHeader('Update', 'Skill ' . $model->id_skill);
?>
    </div>
    <?php 
$this->renderPartial('_form', array('model' => $model));
?>
</div>
Пример #4
0
<?php

/* @var $this PortfolioController */
/* @var $model Portfolio */
?>

<?php 
$this->breadcrumbs = array('Portfolios' => array('admin'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Portfolio', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Portfolio', 'url' => array('admin')));
?>
<div class="box box-primary">
    <div class="box-header">
        <?php 
echo BsHtml::pageHeader('Create', 'Portfolio');
?>
    </div>
    <?php 
$this->renderPartial('_form', array('model' => $model));
?>
</div>
Пример #5
0
<?php

/* @var $this EvaluacionController */
/* @var $model Evaluacion */
?>

<?php 
$this->breadcrumbs = array('Evaluacions' => array('index'), $model->EVA_ID);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Evaluacion', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Evaluacion', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Evaluacion', 'url' => array('update', 'id' => $model->EVA_ID)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Evaluacion', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->EVA_ID), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Evaluacion', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('View', 'Evaluacion ' . $model->EVA_ID);
?>

<?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('EVA_ID', 'TRA_ID', 'EMP_ID', 'MOD_ID', 'EVA_NOTA', 'EVA_FECHA', 'EVA_INICIO')));
Пример #6
0
<?php

/* @var $this EmpresaController */
/* @var $model Empresa */
?>

<?php 
$this->breadcrumbs = array('Empresas' => array('index'), $model->emp_rut);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Empresa', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Empresa', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Empresa', 'url' => array('update', 'id' => $model->emp_rut)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Empresa', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->emp_rut), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Empresa', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('View', 'Empresa ' . $model->emp_rut);
?>

<?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('emp_rut', 'tem_id', 'are_id', 'emp_nombre', 'emp_direccion', 'emp_fono', 'emp_email', 'emp_fecha_creacion', 'emp_desabilitado')));
Пример #7
0
<?php

/* @var $this UserController */
/* @var $model User */
$this->breadcrumbs = array('Users' => array('index'), 'Manage');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List User', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create User', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#user-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<?php 
echo BsHtml::pageHeader('Manage', 'Users');
?>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title"><?php 
echo BsHtml::button('Advanced search', array('class' => 'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH, 'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#');
?>
</h3>
    </div>
    <div class="panel-body">
        <p>
            You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
                &lt;&gt;</b>
            or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
        </p>

        <div class="search-form" style="display:none">
            <?php 
$this->renderPartial('_search', array('model' => $model));
?>
        </div>
Пример #8
0
<?php

/* @var $this EmpresaController */
/* @var $model Empresa */
$this->breadcrumbs = array('Empresas' => array('index'), 'Manage');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Empresa', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Empresa', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#empresa-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<?php 
echo BsHtml::pageHeader('Manage', 'Empresas');
?>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title"><?php 
echo BsHtml::button('Advanced search', array('class' => 'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH, 'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#');
?>
</h3>
    </div>
    <div class="panel-body">
        <p>
            You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
                &lt;&gt;</b>
            or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
        </p>

        <div class="search-form" style="display:none">
            <?php 
$this->renderPartial('_search', array('model' => $model));
?>
        </div>
Пример #9
0
<?php

/* @var $this ActivosFijosController */
/* @var $model ActivosFijos */
?>

<?php 
$this->breadcrumbs = array('Activos Fijos' => array('index'), $model->id => array('view', 'id' => $model->id), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'Listar Activos Fijos', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Activos Fijos', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'Ver Activos Fijos', 'url' => array('view', 'id' => $model->id)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Administrar Activos Fijos', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Editar', 'Activos Fijos ' . $model->id);
$this->renderPartial('_form', array('model' => $model));
Пример #10
0
<?php

/* @var $this Controller */
$this->beginContent('//layouts/main');
?>
<div class="container">
	<div id="flashes">
		<?php 
$this->renderPartial('//layouts/_flash_messages');
?>
	</div>
	<div class="row">
		<div class="col-lg-12">
			<?php 
echo BsHtml::pageHeader($this->page_heading, $this->page_heading_subtext);
?>
		</div>
		<div id="content" class="col-lg-9">
			<?php 
echo $content;
?>
		</div><!-- content -->
		<div id="sidebar" class="col-lg-3">
			<?php 
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY));
$this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked')));
$this->endWidget();
?>
		</div><!-- sidebar -->
	</div>
</div>
Пример #11
0
<?php

/* @var $this EmpresaController */
/* @var $model Empresa */
?>

<?php 
$this->breadcrumbs = array('Teléfono' => array('admin'), $model->emp_rut, 'Modificar');
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Empresa', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Administrar Empresa', 'url' => array('admin')));
?>
<div class="row">
  <div class="col-md-6 col-md-offset-3">
<?php 
echo BsHtml::pageHeader('Modificar', 'Teléfono ' . $model->tel_numero);
$this->renderPartial('_form', array('model' => $model));
?>
</div>
</div>
Пример #12
0
<?php

/* @var $this EvaluacionController */
/* @var $model Evaluacion */
$this->breadcrumbs = array('Administrar');
if (!Yii::app()->user->isGuest) {
    if (Yii::app()->user->name != 'view') {
        $this->menu = array(array('label' => 'Informe Excel', 'url' => array('excel')));
    }
    if (Yii::app()->user->name == 'users') {
        $empresa = "Empresa" . " " . $model->emp_nombre . " / " . $model->emp_rut;
    } else {
        if (Yii::app()->user->name == 'view') {
            $empresa = "Usuario" . " " . $model->usu_nombre . " / " . $model->usu_rut;
        } else {
            $empresa = null;
        }
    }
}
?>

<?php 
echo BsHtml::pageHeader('Administrar', 'Evaluaciones' . " " . $empresa);
?>

<?php 
$this->widget('bootstrap.widgets.BsGridView', array('id' => 'pregunta-grid', 'dataProvider' => $model->search(), 'type' => array(BsHtml::GRID_TYPE_STRIPED, BsHtml::GRID_TYPE_BORDERED), 'filter' => $model, 'columns' => array(array('name' => 'emp_rut', 'value' => '$data->emp_rut', 'visible' => Yii::app()->user->name != 'users'), array('name' => 'emp_nombre', 'value' => '$data->emp_nombre', 'visible' => Yii::app()->user->name != 'users', 'filter' => false), array('name' => 'tev_id', 'value' => 'TipoEvaluacion::model()->findByPk($data->tev_id)->tev_nombre'), array('name' => 'tel_numero', 'value' => '$data->tel_numero'), array('name' => 'usu_rut', 'value' => '$data->usu_rut', 'visible' => Yii::app()->user->name != 'view'), array('name' => 'eva_fecha', 'value' => '$data->eva_fecha'), array('name' => 'eva_numero', 'value' => '$data->eva_numero'), array('value' => array($this, 'renderButtons')))));
Пример #13
0
<?php

/* @var $this EvaluacionController */
/* @var $model Evaluacion */
?>

<?php 
$this->breadcrumbs = array('Evaluacions' => array('index'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Evaluacion', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Evaluacion', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Create', 'Evaluacion');
?>

<?php 
$this->renderPartial('_form', array('model' => $model));
Пример #14
0
<?php

/* @var $this Controller */
$this->beginContent('//layouts/main');
?>
<div class="container">
	<div id="flashes">
		<?php 
$this->renderPartial('//layouts/_flash_messages');
?>
	</div>
	<div id="content" class="clearfix">
		<?php 
echo $this->page_heading ? BsHtml::pageHeader($this->page_heading, $this->page_heading_subtext) : '';
?>
		<?php 
echo $content;
?>
	</div><!-- content -->
</div>
<?php 
$this->endContent();
Пример #15
0
<?php

/* @var $this PostController */
/* @var $model Post */
?>

<?php 
$this->breadcrumbs = array('Posts' => array('index'), $model->title);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'Listar Post', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Post', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Editar Post', 'url' => array('update', 'id' => $model->id)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Borrar Post', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Administrar Post', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Ver', 'Post ' . $model->id);
?>

<?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('id', 'title', 'content', 'tags', 'status', 'create_time', 'update_time', 'author_id')));
Пример #16
0
<?php

/* @var $this SimplePageController */
/* @var $model SimplePage */
?>

<?php 
?>

<?php 
echo BsHtml::pageHeader($model->title);
?>

<?php 
echo $model->content;
Пример #17
0
<?php

/* @var $this SurveyPurposeQuestionController */
/* @var $dataProvider CActiveDataProvider */
?>

<?php 
$this->menu = array(array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Управление вопросами', 'url' => array('admin')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Создать вопрос', 'url' => array('create')));
?>

<?php 
echo BsHtml::pageHeader('Список вопросов');
$this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Пример #18
0
<?php

/* @var $this PreguntaController */
/* @var $model Pregunta */
$this->breadcrumbs = array('Preguntas');
$this->menu = array(array('label' => 'Registrar', 'url' => array('create')));
?>

<?php 
echo BsHtml::pageHeader('Administrar', 'Preguntas');
?>

<?php 
$this->widget('bootstrap.widgets.BsGridView', array('id' => 'pregunta-grid', 'dataProvider' => $model->search(), 'type' => array(BsHtml::GRID_TYPE_STRIPED, BsHtml::GRID_TYPE_BORDERED), 'filter' => $model, 'htmlOptions' => array('style' => "color:#000"), 'columns' => array(array('name' => 'pre_imagen', 'value' => array($this, 'renderImage'), 'filter' => false, 'htmlOptions' => array('style' => "width:135px")), array('name' => 'tpr_id', 'value' => '$data->tpr_nombre'), array('name' => 'tev_id', 'value' => '$data->tev_nombre'), 'pre_descripcion', 'pre_comentario', 'pre_fecha_creacion', array('value' => array($this, 'renderButtons')))));
Пример #19
0
<?php

/* @var $this RoleController */
/* @var $dataProvider CActiveDataProvider */
?>

<?php 
$this->breadcrumbs = array('Roles');
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Role', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Role', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Roles');
$this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Пример #20
0
<?php

/* @var $this UsuHasActController */
/* @var $model UsuHasAct */
$this->breadcrumbs = array('Usu Has Acts' => array('index'), 'Manage');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List UsuHasAct', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create UsuHasAct', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#usu-has-act-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<?php 
echo BsHtml::pageHeader('Manage', 'Usu Has Acts');
?>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title"><?php 
echo BsHtml::button('Advanced search', array('class' => 'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH, 'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#');
?>
</h3>
    </div>
    <div class="panel-body">
        <p>
            You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>
                &lt;&gt;</b>
            or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
        </p>

        <div class="search-form" style="display:none">
            <?php 
$this->renderPartial('_search', array('model' => $model));
?>
        </div>
Пример #21
0
<?php

/* @var $this PreguntaController */
/* @var $model Pregunta */
$this->breadcrumbs = array('Preguntas' => array('admin'), $model->pre_descripcion => array('view', 'id' => $model->pre_id), 'Editar');
$this->menu = array(array('label' => 'Registrar', 'url' => array('create')), array('label' => 'Cancelar', 'url' => array('admin')));
?>
<div class="row">
	<div class="col-md-6 col-md-offset-3">
		<?php 
if ($id == false) {
    echo BsHtml::alert(BsHtml::ALERT_COLOR_DANGER, BsHtml::bold('Campo faltante') . " " . 'Debe agregar un achivo de imagen.');
}
?>
		<?php 
echo BsHtml::pageHeader('Modificar', 'Pregunta');
?>
		<?php 
$this->renderPartial('_form', array('model' => $model));
?>
	</div>
</div>
Пример #22
0
<?php

/* @var $this RoleController */
/* @var $model Role */
?>

<?php 
$this->breadcrumbs = array('Roles' => array('admin'), $model->id_role => array('view', 'id' => $model->id_role), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Role', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Role', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'View Role', 'url' => array('view', 'id' => $model->id_role)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Role', 'url' => array('admin')));
?>
<div class="box box-primary">
    <div class="box-header">
        <?php 
echo BsHtml::pageHeader('Update', 'Role ' . $model->id_role);
?>
    </div>
    <?php 
$this->renderPartial('_form', array('model' => $model));
?>
</div>
Пример #23
0
<?php

/* @var $this UsuarioController */
/* @var $model Usuario */
?>

<?php 
$this->breadcrumbs = array('Usuarios' => array('index'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Usuario', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Usuario', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Create', 'Usuario');
?>

<?php 
$this->renderPartial('_form', array('model' => $model));
Пример #24
0
<?php

/* @var $this TagController */
/* @var $model Tag */
?>

<?php 
$this->breadcrumbs = array('Tags' => array('index'), $model->name => array('view', 'id' => $model->id), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Tag', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Tag', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'View Tag', 'url' => array('view', 'id' => $model->id)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Tag', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Update', 'Tag ' . $model->id);
$this->renderPartial('_form', array('model' => $model));
Пример #25
0
<?php

/* @var $this SimplePageController */
/* @var $model SimplePage */
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Создать страницу', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#simple-page-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<?php 
echo BsHtml::pageHeader('Управление текстовыми страницами');
?>
<div class="panel panel-default">
<!--    <div class="panel-heading">-->
<!--        <h3 class="panel-title">--><?php 
//echo BsHtml::button('Advanced search',array('class' =>'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH,'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#');
?>
<!--</h3>-->
<!--    </div>-->
    <div class="panel-body">
<!--        <p>-->
<!--            You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>-->
<!--                &lt;&gt;</b>-->
<!--            or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.-->
<!--        </p>-->

<!--        <div class="search-form" style="display:none">-->
<!--            --><?php 
//$this->renderPartial('_search',array(
//                'model'=>$model,
//            ));
?>
Пример #26
0
<?php

/* @var $this UsuarioController */
/* @var $model Usuario */
?>

<?php 
$this->breadcrumbs = array('Usuarios' => array('index'), $model->idUsuario);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'Listar Usuario', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Usuario', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Editar Usuario', 'url' => array('update', 'id' => $model->idUsuario)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Borrar Usuario', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->idUsuario), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Administrar Usuario', 'url' => array('admin')));
?>

<?php 
echo BsHtml::pageHeader('Ver', 'Usuario ' . $model->idUsuario);
?>

<?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('idUsuario', 'nombre', 'apellido', 'email', 'password', 'activo', 'idRol')));
Пример #27
0
<?php

/* @var $this UserController */
/* @var $model User */
?>

<?php 
$this->breadcrumbs = array('Users' => array('index'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List User', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage User', 'url' => array('admin')));
?>
<div class="box box-primary">
    <div class="box-header">
      <?php 
echo BsHtml::pageHeader('Create', 'User');
?>
    </div>
    <?php 
$this->renderPartial('_form', array('model' => $model));
?>
</div>
Пример #28
0
<?php

/* @var $this ProductController */
/* @var $model Product */
?>

<?php 
$this->breadcrumbs = array('Products' => array('admin'), $model->title => array('view', 'id' => $model->id_product), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Product', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Product', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'View Product', 'url' => array('view', 'id' => $model->id_product)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Product', 'url' => array('admin')));
?>
<div class="box box-primary">
    <div class="box-header">
        <?php 
echo BsHtml::pageHeader('Update', 'Product ' . $model->id_product);
?>
    </div>
    <?php 
$this->renderPartial('_form', array('model' => $model));
?>
</div>
Пример #29
0
<?php

/* @var $this CategoryController */
/* @var $dataProvider CActiveDataProvider */
?>

<?php 
$this->breadcrumbs = array('Categories');
$this->menu = array(array('icon' => 'glyphicon-plus-sign', 'label' => 'Create Category', 'url' => array('create')), array('icon' => 'glyphicon-plus-briefcase', 'label' => 'Manage Category', 'url' => array('admin')));
echo BsHtml::pageHeader('Categories');
$this->widget('bootstrap.widgets.BsListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));
Пример #30
0
<?php

$baseUrl = Yii::app()->baseUrl;
Yii::app()->getClientScript()->registerCssFile($baseUrl . '/css/dataTables.bootstrap.min.css')->registerScriptFile($baseUrl . '/js/jquery.dataTables.min.js', CClientScript::POS_END)->registerScriptFile($baseUrl . '/js/dataTables.bootstrap.min.js', CClientScript::POS_END)->registerScript('dataTables', "\$('.table').DataTable({\n        'language': {\n\t\t\t    \"sProcessing\":     \"Procesando...\",\n\t\t\t    \"sLengthMenu\":     \"Mostrar _MENU_ registros\",\n\t\t\t    \"sZeroRecords\":    \"No se encontraron resultados\",\n\t\t\t    \"sEmptyTable\":     \"Ningún dato disponible en esta tabla\",\n\t\t\t    \"sInfo\":           \"Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros\",\n\t\t\t    \"sInfoEmpty\":      \"Mostrando registros del 0 al 0 de un total de 0 registros\",\n\t\t\t    \"sInfoFiltered\":   \"(filtrado de un total de _MAX_ registros)\",\n\t\t\t    \"sInfoPostFix\":    \"\",\n\t\t\t    \"sSearch\":         \"Buscar:\",\n\t\t\t    \"sUrl\":            \"\",\n\t\t\t    \"sInfoThousands\":  \",\",\n\t\t\t    \"sLoadingRecords\": \"Cargando...\",\n\t\t\t    \"oPaginate\": {\n\t\t\t        \"sFirst\":    \"Primero\",\n\t\t\t        \"sLast\":     \"Último\",\n\t\t\t        \"sNext\":     \"Siguiente\",\n\t\t\t        \"sPrevious\": \"Anterior\"\n\t\t\t    },\n\t\t\t    \"oAria\": {\n\t\t\t        \"sSortAscending\":  \": Activar para ordenar la columna de manera ascendente\",\n\t\t\t        \"sSortDescending\": \": Activar para ordenar la columna de manera descendente\"\n\t\t\t    }\n\t\t}\n\t})", CClientScript::POS_READY);
$this->breadcrumbs = array('Usuario', 'registros');
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Crear Usuario', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Administración Usuario', 'url' => array('admin')));
echo BsHtml::pageHeader('Registros', 'Usuarios');
?>
<table class="table table-bordered table-striped">
	<thead>
		<tr>
			<th style="width:20px">#</th>
			<th>Ingreso</th>
			<th style="width:100px">RUT</th>
			<th>Navegador</th>
			<th>IP</th>
		</tr>
	</thead>
	<tbody>
	<?php 
foreach ($List as $key => $model) {
    ?>
		<tr>
			<td><?php 
    echo $key + 1;
    ?>
</td>
			<td><?php 
    echo $model['ing_fecha_ingreso'];
    ?>
</td>