web part of Bashgid

This commit is contained in:
vladislav.khorev committed 2015-06-26 10:03:20 +00:00
1 parent 4ef60e1aa0
commit 5c5238c85f
155 files changed
+7956

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
<?php
/* @var $this ChannelController */
/* @var $model Channel */
/* @var $form CActiveForm */
?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'channel-form',
// Please note: When you enable ajax validation, make sure the corresponding
// controller action is handling ajax validation correctly.
// There is a call to performAjaxValidation() commented in generated controller code.
// See class documentation of CActiveForm for details on this.
'enableAjaxValidation'=>false,
)); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<div class="row">
<?php echo $form->labelEx($model,'name'); ?>
<?php echo $form->textArea($model,'name',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'name'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'title'); ?>
<?php echo $form->textArea($model,'title',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'title'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'description'); ?>
<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'description'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
+40
View File
@@ -0,0 +1,40 @@
<?php
/* @var $this ChannelController */
/* @var $model Channel */
/* @var $form CActiveForm */
?>
<div class="wide form">
<?php $form=$this->beginWidget('CActiveForm', array(
'action'=>Yii::app()->createUrl($this->route),
'method'=>'get',
)); ?>
<div class="row">
<?php echo $form->label($model,'id'); ?>
<?php echo $form->textField($model,'id'); ?>
</div>
<div class="row">
<?php echo $form->label($model,'name'); ?>
<?php echo $form->textArea($model,'name',array('rows'=>6, 'cols'=>50)); ?>
</div>
<div class="row">
<?php echo $form->label($model,'title'); ?>
<?php echo $form->textArea($model,'title',array('rows'=>6, 'cols'=>50)); ?>
</div>
<div class="row">
<?php echo $form->label($model,'description'); ?>
<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Search'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- search-form -->
+25
View File
@@ -0,0 +1,25 @@
<?php
/* @var $this ChannelController */
/* @var $data Channel */
?>
<div class="view">
<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
<?php echo CHtml::encode($data->name); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</b>
<?php echo CHtml::encode($data->title); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('description')); ?>:</b>
<?php echo CHtml::encode($data->description); ?>
<br />
</div>
+56
View File
@@ -0,0 +1,56 @@
<?php
/* @var $this ChannelController */
/* @var $model Channel */
$this->breadcrumbs=array(
'Channels'=>array('index'),
'Manage',
);
$this->menu=array(
array('label'=>'List Channel', 'url'=>array('index')),
array('label'=>'Create Channel', 'url'=>array('create')),
);
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
$('.search-form').toggle();
return false;
});
$('.search-form form').submit(function(){
$('#channel-grid').yiiGridView('update', {
data: $(this).serialize()
});
return false;
});
");
?>
<h1>Manage Channels</h1>
<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>
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
'model'=>$model,
)); ?>
</div><!-- search-form -->
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'channel-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'id',
'name',
'title',
'description',
array(
'class'=>'CButtonColumn',
),
),
)); ?>
+18
View File
@@ -0,0 +1,18 @@
<?php
/* @var $this ChannelController */
/* @var $model Channel */
$this->breadcrumbs=array(
'Channels'=>array('index'),
'Create',
);
$this->menu=array(
array('label'=>'List Channel', 'url'=>array('index')),
array('label'=>'Manage Channel', 'url'=>array('admin')),
);
?>
<h1>Create Channel</h1>
<?php $this->renderPartial('_form', array('model'=>$model)); ?>
+20
View File
@@ -0,0 +1,20 @@
<?php
/* @var $this ChannelController */
/* @var $dataProvider CActiveDataProvider */
$this->breadcrumbs=array(
'Channels',
);
$this->menu=array(
array('label'=>'Create Channel', 'url'=>array('create')),
array('label'=>'Manage Channel', 'url'=>array('admin')),
);
?>
<h1>Channels</h1>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
+21
View File
@@ -0,0 +1,21 @@
<?php
/* @var $this ChannelController */
/* @var $model Channel */
$this->breadcrumbs=array(
'Channels'=>array('index'),
$model->name=>array('view','id'=>$model->id),
'Update',
);
$this->menu=array(
array('label'=>'List Channel', 'url'=>array('index')),
array('label'=>'Create Channel', 'url'=>array('create')),
array('label'=>'View Channel', 'url'=>array('view', 'id'=>$model->id)),
array('label'=>'Manage Channel', 'url'=>array('admin')),
);
?>
<h1>Update Channel <?php echo $model->id; ?></h1>
<?php $this->renderPartial('_form', array('model'=>$model)); ?>
+29
View File
@@ -0,0 +1,29 @@
<?php
/* @var $this ChannelController */
/* @var $model Channel */
$this->breadcrumbs=array(
'Channels'=>array('index'),
$model->name,
);
$this->menu=array(
array('label'=>'List Channel', 'url'=>array('index')),
array('label'=>'Create Channel', 'url'=>array('create')),
array('label'=>'Update Channel', 'url'=>array('update', 'id'=>$model->id)),
array('label'=>'Delete Channel', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>'Manage Channel', 'url'=>array('admin')),
);
?>
<h1>View Channel #<?php echo $model->id; ?></h1>
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'id',
'name',
'title',
'description',
),
)); ?>