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

@@ -0,0 +1,40 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $model PhotoAlbumRelation */
/* @var $form CActiveForm */
?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'photo-album-relation-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,'imageUrl'); ?>
<?php echo $form->textArea($model,'imageUrl',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'imageUrl'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'name'); ?>
<?php echo $form->textField($model,'name',array('size'=>45,'maxlength'=>45)); ?>
<?php echo $form->error($model,'name'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
@@ -0,0 +1,35 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $model PhotoAlbumRelation */
/* @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,'imageUrl'); ?>
<?php echo $form->textArea($model,'imageUrl',array('rows'=>6, 'cols'=>50)); ?>
</div>
<div class="row">
<?php echo $form->label($model,'name'); ?>
<?php echo $form->textField($model,'name',array('size'=>45,'maxlength'=>45)); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Search'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- search-form -->
@@ -0,0 +1,21 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $data PhotoAlbumRelation */
?>
<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('imageUrl')); ?>:</b>
<?php echo CHtml::encode($data->imageUrl); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
<?php echo CHtml::encode($data->name); ?>
<br />
</div>
@@ -0,0 +1,55 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $model PhotoAlbumRelation */
$this->breadcrumbs=array(
'Photo Album Relations'=>array('index'),
'Manage',
);
$this->menu=array(
array('label'=>'List PhotoAlbumRelation', 'url'=>array('index')),
array('label'=>'Create PhotoAlbumRelation', 'url'=>array('create')),
);
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
$('.search-form').toggle();
return false;
});
$('.search-form form').submit(function(){
$('#photo-album-relation-grid').yiiGridView('update', {
data: $(this).serialize()
});
return false;
});
");
?>
<h1>Manage Photo Album Relations</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'=>'photo-album-relation-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'id',
'imageUrl',
'name',
array(
'class'=>'CButtonColumn',
),
),
)); ?>
@@ -0,0 +1,18 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $model PhotoAlbumRelation */
$this->breadcrumbs=array(
'Photo Album Relations'=>array('index'),
'Create',
);
$this->menu=array(
array('label'=>'List PhotoAlbumRelation', 'url'=>array('index')),
array('label'=>'Manage PhotoAlbumRelation', 'url'=>array('admin')),
);
?>
<h1>Create PhotoAlbumRelation</h1>
<?php $this->renderPartial('_form', array('model'=>$model)); ?>
@@ -0,0 +1,20 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $dataProvider CActiveDataProvider */
$this->breadcrumbs=array(
'Photo Album Relations',
);
$this->menu=array(
array('label'=>'Create PhotoAlbumRelation', 'url'=>array('create')),
array('label'=>'Manage PhotoAlbumRelation', 'url'=>array('admin')),
);
?>
<h1>Photo Album Relations</h1>
<?php $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view',
)); ?>
@@ -0,0 +1,21 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $model PhotoAlbumRelation */
$this->breadcrumbs=array(
'Photo Album Relations'=>array('index'),
$model->name=>array('view','id'=>$model->id),
'Update',
);
$this->menu=array(
array('label'=>'List PhotoAlbumRelation', 'url'=>array('index')),
array('label'=>'Create PhotoAlbumRelation', 'url'=>array('create')),
array('label'=>'View PhotoAlbumRelation', 'url'=>array('view', 'id'=>$model->id)),
array('label'=>'Manage PhotoAlbumRelation', 'url'=>array('admin')),
);
?>
<h1>Update PhotoAlbumRelation <?php echo $model->id; ?></h1>
<?php $this->renderPartial('_form', array('model'=>$model)); ?>
@@ -0,0 +1,28 @@
<?php
/* @var $this PhotoAlbumRelationController */
/* @var $model PhotoAlbumRelation */
$this->breadcrumbs=array(
'Photo Album Relations'=>array('index'),
$model->name,
);
$this->menu=array(
array('label'=>'List PhotoAlbumRelation', 'url'=>array('index')),
array('label'=>'Create PhotoAlbumRelation', 'url'=>array('create')),
array('label'=>'Update PhotoAlbumRelation', 'url'=>array('update', 'id'=>$model->id)),
array('label'=>'Delete PhotoAlbumRelation', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
array('label'=>'Manage PhotoAlbumRelation', 'url'=>array('admin')),
);
?>
<h1>View PhotoAlbumRelation #<?php echo $model->id; ?></h1>
<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'id',
'imageUrl',
'name',
),
)); ?>