web part of Bashgid
This commit is contained in:
1 parent
4ef60e1aa0
commit
5c5238c85f
155 files changed
+7956
No files matched your search
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $model Article */
|
||||
/* @var $form CActiveForm */
|
||||
?>
|
||||
|
||||
<div class="form">
|
||||
|
||||
<?php $form=$this->beginWidget('CActiveForm', array(
|
||||
'id'=>'article-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,'type'); ?>
|
||||
<?php echo $form->textField($model,'type'); ?>
|
||||
<?php echo $form->error($model,'type'); ?>
|
||||
</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,'content'); ?>
|
||||
<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
|
||||
<?php echo $form->error($model,'content'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'geoLat'); ?>
|
||||
<?php echo $form->textField($model,'geoLat'); ?>
|
||||
<?php echo $form->error($model,'geoLat'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'geoLon'); ?>
|
||||
<?php echo $form->textField($model,'geoLon'); ?>
|
||||
<?php echo $form->error($model,'geoLon'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'externalLink'); ?>
|
||||
<?php echo $form->textArea($model,'externalLink',array('rows'=>6, 'cols'=>50)); ?>
|
||||
<?php echo $form->error($model,'externalLink'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $model Article */
|
||||
/* @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,'type'); ?>
|
||||
<?php echo $form->textField($model,'type'); ?>
|
||||
</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,'content'); ?>
|
||||
<?php echo $form->textArea($model,'content',array('rows'=>6, 'cols'=>50)); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'geoLat'); ?>
|
||||
<?php echo $form->textField($model,'geoLat'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'geoLon'); ?>
|
||||
<?php echo $form->textField($model,'geoLon'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'externalLink'); ?>
|
||||
<?php echo $form->textArea($model,'externalLink',array('rows'=>6, 'cols'=>50)); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->label($model,'dateTime'); ?>
|
||||
<?php echo $form->textField($model,'dateTime'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton('Search'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- search-form -->
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $data Article */
|
||||
?>
|
||||
|
||||
<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('type')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->type); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->title); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('content')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->content); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('geoLat')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->geoLat); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('geoLon')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->geoLon); ?>
|
||||
<br />
|
||||
|
||||
<?php /*
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('externalLink')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->externalLink); ?>
|
||||
<br />
|
||||
|
||||
<b><?php echo CHtml::encode($data->getAttributeLabel('dateTime')); ?>:</b>
|
||||
<?php echo CHtml::encode($data->dateTime); ?>
|
||||
<br />
|
||||
|
||||
*/ ?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $model Article */
|
||||
|
||||
$this->breadcrumbs=array(
|
||||
'Articles'=>array('index'),
|
||||
'Manage',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List Article', 'url'=>array('index')),
|
||||
array('label'=>'Create Article', 'url'=>array('create')),
|
||||
);
|
||||
|
||||
Yii::app()->clientScript->registerScript('search', "
|
||||
$('.search-button').click(function(){
|
||||
$('.search-form').toggle();
|
||||
return false;
|
||||
});
|
||||
$('.search-form form').submit(function(){
|
||||
$('#article-grid').yiiGridView('update', {
|
||||
data: $(this).serialize()
|
||||
});
|
||||
return false;
|
||||
});
|
||||
");
|
||||
?>
|
||||
|
||||
<h1>Manage Articles</h1>
|
||||
|
||||
<p>
|
||||
You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b><></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'=>'article-grid',
|
||||
'dataProvider'=>$model->search(),
|
||||
'filter'=>$model,
|
||||
'columns'=>array(
|
||||
'id',
|
||||
'name',
|
||||
'type',
|
||||
'title',
|
||||
'content',
|
||||
'geoLat',
|
||||
/*
|
||||
'geoLon',
|
||||
'externalLink',
|
||||
'dateTime',
|
||||
*/
|
||||
array(
|
||||
'class'=>'CButtonColumn',
|
||||
),
|
||||
),
|
||||
)); ?>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $model Article */
|
||||
|
||||
$this->breadcrumbs=array(
|
||||
'Articles'=>array('index'),
|
||||
'Create',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List Article', 'url'=>array('index')),
|
||||
array('label'=>'Manage Article', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Create Article</h1>
|
||||
|
||||
<?php $this->renderPartial('_form', array('model'=>$model)); ?>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $dataProvider CActiveDataProvider */
|
||||
|
||||
$this->breadcrumbs=array(
|
||||
'Articles',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'Create Article', 'url'=>array('create')),
|
||||
array('label'=>'Manage Article', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Articles</h1>
|
||||
|
||||
<?php $this->widget('zii.widgets.CListView', array(
|
||||
'dataProvider'=>$dataProvider,
|
||||
'itemView'=>'_view',
|
||||
)); ?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $model Article */
|
||||
|
||||
$this->breadcrumbs=array(
|
||||
'Articles'=>array('index'),
|
||||
$model->name=>array('view','id'=>$model->id),
|
||||
'Update',
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List Article', 'url'=>array('index')),
|
||||
array('label'=>'Create Article', 'url'=>array('create')),
|
||||
array('label'=>'View Article', 'url'=>array('view', 'id'=>$model->id)),
|
||||
array('label'=>'Manage Article', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Update Article <?php echo $model->id; ?></h1>
|
||||
|
||||
<?php $this->renderPartial('_form', array('model'=>$model)); ?>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/* @var $this ArticleController */
|
||||
/* @var $model Article */
|
||||
|
||||
$this->breadcrumbs=array(
|
||||
'Articles'=>array('index'),
|
||||
$model->name,
|
||||
);
|
||||
|
||||
$this->menu=array(
|
||||
array('label'=>'List Article', 'url'=>array('index')),
|
||||
array('label'=>'Create Article', 'url'=>array('create')),
|
||||
array('label'=>'Update Article', 'url'=>array('update', 'id'=>$model->id)),
|
||||
array('label'=>'Delete Article', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
|
||||
array('label'=>'Manage Article', 'url'=>array('admin')),
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>View Article #<?php echo $model->id; ?></h1>
|
||||
|
||||
<?php $this->widget('zii.widgets.CDetailView', array(
|
||||
'data'=>$model,
|
||||
'attributes'=>array(
|
||||
'id',
|
||||
'name',
|
||||
'type',
|
||||
'title',
|
||||
'content',
|
||||
'geoLat',
|
||||
'geoLon',
|
||||
'externalLink',
|
||||
'dateTime',
|
||||
),
|
||||
)); ?>
|
||||
Reference in new issue
Block a user