web access very cool

This commit is contained in:
Vladislav Khorev 2015-07-02 08:37:15 +00:00
parent 760ddd06ee
commit 482fb1edc4
51 changed files with 1780 additions and 350 deletions

View File

@ -3,8 +3,9 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group> <group>
<file>file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/controllers/PhotoController.php</file> <file>file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/controllers/ArticleController.php</file>
<file>file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/controllers/PhotoAlbumRelationController.php</file> <file>file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/models/Translation.php</file>
<file>file:/C:/Workplace/Apache2.4/htdocs/bashgid/protected/controllers/TranslationController.php</file>
</group> </group>
</open-files> </open-files>
</project-private> </project-private>

View File

@ -7,7 +7,7 @@
// CWebApplication properties can be configured here. // CWebApplication properties can be configured here.
return array( return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application', 'name'=>'BASHGID Database',
// preloading 'log' component // preloading 'log' component
'preload'=>array('log'), 'preload'=>array('log'),

View File

@ -28,7 +28,7 @@ class ArticleController extends Controller {
{ {
return array( return array(
array('allow', array('allow',
'actions' => array('index', 'view', 'create', 'update', 'admin', 'delete'), 'actions' => array('index', 'view', 'create', 'update', 'admin', 'delete', 'addMax', 'editMax', 'editAlbumsMax'),
'users' => array('@'), 'users' => array('@'),
), ),
array('allow', array('allow',
@ -62,6 +62,9 @@ class ArticleController extends Controller {
$model->geoLat = 0; $model->geoLat = 0;
$model->geoLon = 0; $model->geoLon = 0;
$model->address = '';
$model->phone = '';
$model->externalLinkText = '';
// Uncomment the following line if AJAX validation is needed // Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model); // $this->performAjaxValidation($model);
@ -148,12 +151,114 @@ class ArticleController extends Controller {
{ {
$dataArray = Article::model()->findAll(); $dataArray = Article::model()->findAll();
foreach ($dataArray as &$data)
{
if ($data->address === null)
{
$data->address = '';
}
if ($data->phone === null)
{
$data->phone = '';
}
if ($data->externalLinkText === null)
{
$data->externalLinkText = '';
}
}
$this->layout = false; $this->layout = false;
header('Content-type: application/json'); header('Content-type: application/json');
echo CJavaScript::jsonEncode($dataArray); echo CJavaScript::jsonEncode($dataArray);
Yii::app()->end(); Yii::app()->end();
} }
public function actionAddMax()
{
$model = new ArticleMaxForm;
if (isset($_POST['ArticleMaxForm']))
{
$model->attributes = $_POST['ArticleMaxForm'];
if ($this->saveArticleForm($model))
{
$this->redirect(array('editAlbumsMax'));
} else
{
$this->redirect(array('editMax'));
}
return;
}
$this->render('addMax', array(
'model' => $model,
));
}
public function actionEditMax($id)
{
$model = new ArticleMaxForm;
if (isset($_POST['ArticleMaxForm']))
{
$model->attributes = $_POST['ArticleMaxForm'];
if ($this->saveArticleForm($model))
{
$this->redirect(array('editAlbumsMax'));
} else
{
$this->redirect(array('editMax'));
}
return;
}
$currentArticle = Article::model()->findByPk($id);
if ($currentArticle)
{
$titleTranslationModel = Translation::model()->find('name=:name', array(':name' => $currentArticle->title));
if ($titleTranslationModel)
{
$model->titleRu = $titleTranslationModel->textRu;
$model->titleEn = $titleTranslationModel->textEn;
$model->titleZh = $titleTranslationModel->textZh;
}
$descriptionTranslationModel = Translation::model()->find('name=:name', array(':name' => $currentArticle->content));
if ($descriptionTranslationModel)
{
$model->contentRu = $descriptionTranslationModel->textRu;
$model->contentEn = $descriptionTranslationModel->textEn;
$model->contentZh = $descriptionTranslationModel->textZh;
}
$model->geoLat = $currentArticle->geoLat;
$model->geoLon = $currentArticle->geoLon;
$model->externalLink = $currentArticle->externalLink;
$model->name = $currentArticle->name;
}
$this->render('editMax', array(
'model' => $model,
));
}
public function actionEditAlbumsMax()
{
$model = new ArticleMaxForm;
$this->render('editPhotosMax', array(
'model' => $model,
));
}
/** /**
* Returns the data model based on the primary key given in the GET variable. * Returns the data model based on the primary key given in the GET variable.
* If the data model is not found, an HTTP exception will be raised. * If the data model is not found, an HTTP exception will be raised.
@ -182,4 +287,92 @@ class ArticleController extends Controller {
} }
} }
protected function saveArticleForm($model)
{
if (empty($model->titleEn))
{
$model->titleEn = 'NEED_TRANSLATION';
}
if (empty($model->titleZh))
{
$model->titleZh = 'NEED_TRANSLATION';
}
if (empty($model->contentEn))
{
$model->contentEn = 'NEED_TRANSLATION';
}
if (empty($model->contentZh))
{
$model->contentZh = 'NEED_TRANSLATION';
}
$article = Article::model()->find('name=:name', array(':name' => $model->name));
if (!$article)
{
$article = new Article;
$article->name = Yii::app()->user->name . '_article_' . ArticleJournalRelation::model()->count('journalName=:journalName', array(':journalName' => Yii::app()->user->name . '_journal'));
}
$article->title = $article->name . '_title';
$article->content = $article->name . '_content';
$article->geoLat = 0;
$article->geoLon = 0;
$article->externalLink = $model->externalLink;
$article->type = 0;
date_default_timezone_set("UTC");
$article->dateTime = date('Y-m-d H:i:s');
$titleTranslationModel = Translation::model()->find('name=:name', array(':name' => $article->title));
if ($titleTranslationModel === null)
{
$titleTranslationModel = new Translation;
}
$titleTranslationModel->name = $article->title;
$titleTranslationModel->textRu = $model->titleRu;
$titleTranslationModel->textEn = $model->titleEn;
$titleTranslationModel->textZh = $model->titleZh;
$titleTranslationModel->save();
$contentTranslationModel = Translation::model()->find('name=:name', array(':name' => $article->content));
if ($contentTranslationModel === null)
{
$contentTranslationModel = new Translation;
}
$contentTranslationModel->name = $article->content;
$contentTranslationModel->textRu = $model->contentRu;
$contentTranslationModel->textEn = $model->contentEn;
$contentTranslationModel->textZh = $model->contentZh;
$contentTranslationModel->save();
if ($article->save())
{
$articleJournalRelation = ArticleJournalRelation::model()->find('journalName=:journalName AND articleName=:articleName', array(
':journalName' => Yii::app()->user->name . '_journal',
':articleName' => $article->name,
));
if (!$articleJournalRelation)
{
$articleJournalRelation = new ArticleJournalRelation;
$articleJournalRelation->articleName = $article->name;
$articleJournalRelation->journalName = Yii::app()->user->name . '_journal';
return $articleJournalRelation->save();
} else
{
return true;
}
//ArticleJournalRelation::model()
}
return false;
}
} }

View File

@ -28,7 +28,7 @@ class JournalController extends Controller {
{ {
return array( return array(
array('allow', array('allow',
'actions' => array('index', 'view', 'create', 'update', 'admin', 'delete'), 'actions' => array('index', 'view', 'create', 'update', 'admin', 'delete', 'addMax', 'editMax', 'editArticlesMax'),
'users' => array('@'), 'users' => array('@'),
), ),
array('allow', array('allow',
@ -149,6 +149,100 @@ class JournalController extends Controller {
Yii::app()->end(); Yii::app()->end();
} }
public function actionAddMax()
{
$model = new JournalMaxForm;
// Uncomment the following line if AJAX validation is needed
// $this->performAjaxValidation($model);
if (isset($_POST['JournalMaxForm']))
{
$model->attributes = $_POST['JournalMaxForm'];
if ($this->saveJournalForm($model))
{
$this->redirect(array('editArticlesMax'));
} else
{
$this->redirect(array('editMax'));
}
return;
}
$this->render('addMax', array(
'model' => $model,
));
}
public function actionEditMax()
{
$model = new JournalMaxForm;
if (isset($_POST['JournalMaxForm']))
{
$model->attributes = $_POST['JournalMaxForm'];
if ($this->saveJournalForm($model))
{
$this->redirect(array('editArticlesMax'));
} else
{
$this->redirect(array('editMax'));
}
return;
}
$currentJournal = Journal::getCurrentUserJournal();
if ($currentJournal)
{
$titleTranslationModel = Translation::model()->find('name=:name', array(':name' => Yii::app()->user->name . '_journal_title_translation'));
if ($titleTranslationModel)
{
$model->titleRu = $titleTranslationModel->textRu;
$model->titleEn = $titleTranslationModel->textEn;
$model->titleZh = $titleTranslationModel->textZh;
}
$descriptionTranslationModel = Translation::model()->find('name=:name', array(':name' => Yii::app()->user->name . '_journal_description_translation'));
if ($descriptionTranslationModel)
{
$model->descriptionRu = $descriptionTranslationModel->textRu;
$model->descriptionEn = $descriptionTranslationModel->textEn;
$model->descriptionZh = $descriptionTranslationModel->textZh;
}
}
$this->render('editMax', array(
'model' => $model,
));
}
public function actionEditArticlesMax()
{
$articleNameArr = ArticleJournalRelation::model()->findAll('journalName=:journalName', array(':journalName' => Yii::app()->user->name . '_journal'));
$articleArr = array();
foreach ($articleNameArr as $articleRelation)
{
$article = Article::model()->find('name=:name', array(':name' => $articleRelation->articleName));
$article->title = Translation::model()->find('name=:name', array(':name' => $article->title))->textRu;
$articleArr[] = $article;
}
$this->render('editArticlesMax', array(
'articleArr' => $articleArr,
));
}
/** /**
* Returns the data model based on the primary key given in the GET variable. * Returns the data model based on the primary key given in the GET variable.
* If the data model is not found, an HTTP exception will be raised. * If the data model is not found, an HTTP exception will be raised.
@ -177,4 +271,67 @@ class JournalController extends Controller {
} }
} }
protected function saveJournalForm($model)
{
if (empty($model->titleEn))
{
$model->titleEn = 'NEED_TRANSLATION';
}
if (empty($model->titleZh))
{
$model->titleZh = 'NEED_TRANSLATION';
}
if (empty($model->descriptionEn))
{
$model->descriptionEn = 'NEED_TRANSLATION';
}
if (empty($model->descriptionZh))
{
$model->descriptionZh = 'NEED_TRANSLATION';
}
$journalModel = Journal::getCurrentUserJournal();
if (!Journal::getCurrentUserJournal())
{
$journalModel = new Journal;
}
$journalModel->name = Yii::app()->user->name . '_journal';
$journalModel->title = Yii::app()->user->name . '_journal_title_translation';
$journalModel->description = Yii::app()->user->name . '_journal_description_translation';
$titleTranslationModel = Translation::model()->find('name=:name', array(':name' => Yii::app()->user->name . '_journal_title_translation'));
if ($titleTranslationModel === null)
{
$titleTranslationModel = new Translation;
}
$titleTranslationModel->name = Yii::app()->user->name . '_journal_title_translation';
$titleTranslationModel->textRu = $model->titleRu;
$titleTranslationModel->textEn = $model->titleEn;
$titleTranslationModel->textZh = $model->titleZh;
$titleTranslationModel->save();
$descriptionTranslationModel = Translation::model()->find('name=:name', array(':name' => Yii::app()->user->name . '_journal_description_translation'));
if ($descriptionTranslationModel === null)
{
$descriptionTranslationModel = new Translation;
}
$descriptionTranslationModel->name = Yii::app()->user->name . '_journal_description_translation';
$descriptionTranslationModel->textRu = $model->descriptionRu;
$descriptionTranslationModel->textEn = $model->descriptionEn;
$descriptionTranslationModel->textZh = $model->descriptionZh;
$descriptionTranslationModel->save();
return $journalModel->save();
}
} }

View File

@ -51,24 +51,6 @@ class SiteController extends Controller
*/ */
public function actionContact() public function actionContact()
{ {
$model=new ContactForm;
if(isset($_POST['ContactForm']))
{
$model->attributes=$_POST['ContactForm'];
if($model->validate())
{
$name='=?UTF-8?B?'.base64_encode($model->name).'?=';
$subject='=?UTF-8?B?'.base64_encode($model->subject).'?=';
$headers="From: $name <{$model->email}>\r\n".
"Reply-To: {$model->email}\r\n".
"MIME-Version: 1.0\r\n".
"Content-Type: text/plain; charset=UTF-8";
mail(Yii::app()->params['adminEmail'],$subject,$model->body,$headers);
Yii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');
$this->refresh();
}
}
$this->render('contact',array('model'=>$model)); $this->render('contact',array('model'=>$model));
} }

View File

@ -66,6 +66,12 @@ class TranslationController extends Controller
if(isset($_POST['Translation'])) if(isset($_POST['Translation']))
{ {
$model->attributes=$_POST['Translation']; $model->attributes=$_POST['Translation'];
$model->textEnUp = mb_strtoupper($model->textEn, 'UTF-8');
$model->textRuUp = mb_strtoupper($model->textRu, 'UTF-8');
$model->textZhUp = mb_strtoupper($model->textZh, 'UTF-8');
if($model->save()) if($model->save())
$this->redirect(array('view','id'=>$model->id)); $this->redirect(array('view','id'=>$model->id));
} }
@ -90,6 +96,11 @@ class TranslationController extends Controller
if(isset($_POST['Translation'])) if(isset($_POST['Translation']))
{ {
$model->attributes=$_POST['Translation']; $model->attributes=$_POST['Translation'];
$model->textEnUp = mb_strtoupper($model->textEn, 'UTF-8');
$model->textRuUp = mb_strtoupper($model->textRu, 'UTF-8');
$model->textZhUp = mb_strtoupper($model->textZh, 'UTF-8');
if($model->save()) if($model->save())
$this->redirect(array('view','id'=>$model->id)); $this->redirect(array('view','id'=>$model->id));
} }
@ -141,7 +152,29 @@ class TranslationController extends Controller
public function actionJson() public function actionJson()
{ {
$dataArray = Translation::model()->findAll(); $dataArray = Translation::model()->findAll();
/*
foreach ($dataArray as &$data)
{
if (empty($data->textEnUp))
{
$data->textEnUp = mb_strtoupper($data->textEn, 'UTF-8');
}
if (empty($data->textRuUp))
{
$data->textRuUp = mb_strtoupper($data->textRu, 'UTF-8');
}
if (empty($data->textZhUp))
{
$data->textZhUp = mb_strtoupper($data->textZh, 'UTF-8');
}
$data->save();
}*/
$this->layout = false; $this->layout = false;
header('Content-type: application/json'); header('Content-type: application/json');

View File

@ -29,9 +29,10 @@ class Album extends CActiveRecord
return array( return array(
array('name', 'required'), array('name', 'required'),
array('title, description', 'safe'), array('title, description', 'safe'),
array('hidden', 'numerical', 'integerOnly'=>true),
// The following rule is used by search(). // The following rule is used by search().
// @todo Please remove those attributes that should not be searched. // @todo Please remove those attributes that should not be searched.
array('id, name, title, description', 'safe', 'on'=>'search'), array('id, name, title, description, hidden', 'safe', 'on'=>'search'),
); );
} }

View File

@ -14,104 +14,108 @@
* @property string $externalLink * @property string $externalLink
* @property string $dateTime * @property string $dateTime
*/ */
class Article extends CActiveRecord class Article extends CActiveRecord {
{
/**
* @return string the associated database table name
*/
public function tableName()
{
return 'table_article';
}
/** /**
* @return array validation rules for model attributes. * @return string the associated database table name
*/ */
public function rules() public function tableName()
{ {
// NOTE: you should only define rules for those attributes that return 'table_article';
// will receive user inputs. }
return array(
array('name, type, geoLat, geoLon', 'required'),
array('type', 'numerical', 'integerOnly'=>true),
array('geoLat, geoLon', 'numerical'),
array('title, content, externalLink, dateTime', 'safe'),
// The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array('id, name, type, title, content, geoLat, geoLon, externalLink, dateTime', 'safe', 'on'=>'search'),
);
}
/** /**
* @return array relational rules. * @return array validation rules for model attributes.
*/ */
public function relations() public function rules()
{ {
// NOTE: you may need to adjust the relation name and the related // NOTE: you should only define rules for those attributes that
// class name for the relations automatically generated below. // will receive user inputs.
return array( return array(
); array('name, type, geoLat, geoLon', 'required'),
} array('type, hidden', 'numerical', 'integerOnly' => true),
array('geoLat, geoLon', 'numerical'),
array('title, content, address, phone, externalLink, externalLinkText, dateTime', 'safe'),
// The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array('id, name, type, title, content, geoLat, geoLon, address, phone, externalLink, externalLinkText, dateTime, hidden', 'safe', 'on' => 'search'),
);
}
/** /**
* @return array customized attribute labels (name=>label) * @return array relational rules.
*/ */
public function attributeLabels() public function relations()
{ {
return array( // NOTE: you may need to adjust the relation name and the related
'id' => 'ID', // class name for the relations automatically generated below.
'name' => 'Name', return array(
'type' => 'Type', );
'title' => 'Title', }
'content' => 'Content',
'geoLat' => 'Geo Lat',
'geoLon' => 'Geo Lon',
'externalLink' => 'External Link',
'dateTime' => 'Date Time',
);
}
/** /**
* Retrieves a list of models based on the current search/filter conditions. * @return array customized attribute labels (name=>label)
* */
* Typical usecase: public function attributeLabels()
* - Initialize the model fields with values from filter form. {
* - Execute this method to get CActiveDataProvider instance which will filter return array(
* models according to data in model fields. 'id' => 'ID',
* - Pass data provider to CGridView, CListView or any similar widget. 'name' => 'Name',
* 'type' => 'Type',
* @return CActiveDataProvider the data provider that can return the models 'title' => 'Title',
* based on the search/filter conditions. 'content' => 'Content',
*/ 'geoLat' => 'Geo Lat',
public function search() 'geoLon' => 'Geo Lon',
{ 'address' => 'Address',
// @todo Please modify the following code to remove attributes that should not be searched. 'phone' => 'Phone',
'externalLink' => 'External Link',
'externalLink' => 'External Link Text',
'dateTime' => 'Date Time',
);
}
$criteria=new CDbCriteria; /**
* Retrieves a list of models based on the current search/filter conditions.
*
* Typical usecase:
* - Initialize the model fields with values from filter form.
* - Execute this method to get CActiveDataProvider instance which will filter
* models according to data in model fields.
* - Pass data provider to CGridView, CListView or any similar widget.
*
* @return CActiveDataProvider the data provider that can return the models
* based on the search/filter conditions.
*/
public function search()
{
// @todo Please modify the following code to remove attributes that should not be searched.
$criteria->compare('id',$this->id); $criteria = new CDbCriteria;
$criteria->compare('name',$this->name,true);
$criteria->compare('type',$this->type);
$criteria->compare('title',$this->title,true);
$criteria->compare('content',$this->content,true);
$criteria->compare('geoLat',$this->geoLat);
$criteria->compare('geoLon',$this->geoLon);
$criteria->compare('externalLink',$this->externalLink,true);
$criteria->compare('dateTime',$this->dateTime,true);
return new CActiveDataProvider($this, array( $criteria->compare('id', $this->id);
'criteria'=>$criteria, $criteria->compare('name', $this->name, true);
)); $criteria->compare('type', $this->type);
} $criteria->compare('title', $this->title, true);
$criteria->compare('content', $this->content, true);
$criteria->compare('geoLat', $this->geoLat);
$criteria->compare('geoLon', $this->geoLon);
$criteria->compare('externalLink', $this->externalLink, true);
$criteria->compare('dateTime', $this->dateTime, true);
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
));
}
/**
* Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants!
* @param string $className active record class name.
* @return Article the static model class
*/
public static function model($className = __CLASS__)
{
return parent::model($className);
}
/**
* Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants!
* @param string $className active record class name.
* @return Article the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
} }

View File

@ -0,0 +1,42 @@
<?php
class ArticleMaxForm extends CFormModel
{
public $name;
public $titleRu;
public $titleEn;
public $titleZh;
public $contentRu;
public $contentEn;
public $contentZh;
public $geoLat;
public $geoLon;
public $externalLink;
/**
* Declares the validation rules.
* The rules state that username and password are required,
* and password needs to be authenticated.
*/
public function rules()
{
return array(
array('titleEn, titleZh, contentEn, contentZh, externalLink','safe'),
array('geoLat, geoLon', 'numerical'),
array('name, titleRu, contentRu', 'required'),
);
}
/**
* Declares attribute labels.
*/
public function attributeLabels()
{
return array(
//'rememberMe'=>'Remember me next time',
);
}
}

View File

@ -29,9 +29,10 @@ class Channel extends CActiveRecord
return array( return array(
array('name', 'required'), array('name', 'required'),
array('title, description', 'safe'), array('title, description', 'safe'),
array('hidden', 'numerical', 'integerOnly'=>true),
// The following rule is used by search(). // The following rule is used by search().
// @todo Please remove those attributes that should not be searched. // @todo Please remove those attributes that should not be searched.
array('id, name, title, description', 'safe', 'on'=>'search'), array('id, name, title, description, hidden', 'safe', 'on'=>'search'),
); );
} }

View File

@ -29,9 +29,10 @@ class Journal extends CActiveRecord
return array( return array(
array('name', 'required'), array('name', 'required'),
array('title, description', 'safe'), array('title, description', 'safe'),
array('hidden, geoCategory, main', 'numerical', 'integerOnly'=>true),
// The following rule is used by search(). // The following rule is used by search().
// @todo Please remove those attributes that should not be searched. // @todo Please remove those attributes that should not be searched.
array('id, name, title, description', 'safe', 'on'=>'search'), array('id, name, title, description, hidden, geoCategory, main', 'safe', 'on'=>'search'),
); );
} }
@ -87,6 +88,12 @@ class Journal extends CActiveRecord
)); ));
} }
public static function getCurrentUserJournal()
{
return Journal::model()->find('name=:name', array(':name' => Yii::app()->user->name . '_journal'));
}
/** /**
* Returns the static model of the specified AR class. * Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants! * Please note that you should have this exact method in all your CActiveRecord descendants!

View File

@ -0,0 +1,37 @@
<?php
class JournalMaxForm extends CFormModel
{
public $name;
public $titleRu;
public $titleEn;
public $titleZh;
public $descriptionRu;
public $descriptionEn;
public $descriptionZh;
/**
* Declares the validation rules.
* The rules state that username and password are required,
* and password needs to be authenticated.
*/
public function rules()
{
return array(
array('titleEn, titleZh, descriptionEn, descriptionZh','safe'),
array('titleRu, descriptionRu', 'required'),
);
}
/**
* Declares attribute labels.
*/
public function attributeLabels()
{
return array(
//'rememberMe'=>'Remember me next time',
);
}
}

View File

@ -10,93 +10,94 @@
* @property string $textRu * @property string $textRu
* @property string $textZh * @property string $textZh
*/ */
class Translation extends CActiveRecord class Translation extends CActiveRecord {
{
/**
* @return string the associated database table name
*/
public function tableName()
{
return 'table_translation';
}
/** /**
* @return array validation rules for model attributes. * @return string the associated database table name
*/ */
public function rules() public function tableName()
{ {
// NOTE: you should only define rules for those attributes that return 'table_translation';
// will receive user inputs. }
return array(
array('name, textEn, textRu, textZh', 'required'),
// The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array('id, name, textEn, textRu, textZh', 'safe', 'on'=>'search'),
);
}
/** /**
* @return array relational rules. * @return array validation rules for model attributes.
*/ */
public function relations() public function rules()
{ {
// NOTE: you may need to adjust the relation name and the related // NOTE: you should only define rules for those attributes that
// class name for the relations automatically generated below. // will receive user inputs.
return array( return array(
); array('name, textEn, textRu, textZh', 'required'),
} // The following rule is used by search().
// @todo Please remove those attributes that should not be searched.
array('id, name, textEn, textRu, textZh', 'safe', 'on' => 'search'),
);
}
/** /**
* @return array customized attribute labels (name=>label) * @return array relational rules.
*/ */
public function attributeLabels() public function relations()
{ {
return array( // NOTE: you may need to adjust the relation name and the related
'id' => 'ID', // class name for the relations automatically generated below.
'name' => 'Name', return array(
'textEn' => 'Text En', );
'textRu' => 'Text Ru', }
'textZh' => 'Text Zh',
);
}
/** /**
* Retrieves a list of models based on the current search/filter conditions. * @return array customized attribute labels (name=>label)
* */
* Typical usecase: public function attributeLabels()
* - Initialize the model fields with values from filter form. {
* - Execute this method to get CActiveDataProvider instance which will filter return array(
* models according to data in model fields. 'id' => 'ID',
* - Pass data provider to CGridView, CListView or any similar widget. 'name' => 'Name',
* 'textEn' => 'Text En',
* @return CActiveDataProvider the data provider that can return the models 'textRu' => 'Text Ru',
* based on the search/filter conditions. 'textZh' => 'Text Zh',
*/ );
public function search() }
{
// @todo Please modify the following code to remove attributes that should not be searched.
$criteria=new CDbCriteria; /**
* Retrieves a list of models based on the current search/filter conditions.
*
* Typical usecase:
* - Initialize the model fields with values from filter form.
* - Execute this method to get CActiveDataProvider instance which will filter
* models according to data in model fields.
* - Pass data provider to CGridView, CListView or any similar widget.
*
* @return CActiveDataProvider the data provider that can return the models
* based on the search/filter conditions.
*/
public function search()
{
// @todo Please modify the following code to remove attributes that should not be searched.
$criteria->compare('id',$this->id); $criteria = new CDbCriteria;
$criteria->compare('name',$this->name,true);
$criteria->compare('textEn',$this->textEn,true);
$criteria->compare('textRu',$this->textRu,true);
$criteria->compare('textZh',$this->textZh,true);
return new CActiveDataProvider($this, array( $criteria->compare('id', $this->id);
'criteria'=>$criteria, $criteria->compare('name', $this->name, true);
)); $criteria->compare('textEn', $this->textEn, true);
} $criteria->compare('textRu', $this->textRu, true);
$criteria->compare('textZh', $this->textZh, true);
return new CActiveDataProvider($this, array(
'criteria' => $criteria,
));
}
/**
* Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants!
* @param string $className active record class name.
* @return Translation the static model class
*/
public static function model($className = __CLASS__)
{
return parent::model($className);
}
/**
* Returns the static model of the specified AR class.
* Please note that you should have this exact method in all your CActiveRecord descendants!
* @param string $className active record class name.
* @return Translation the static model class
*/
public static function model($className=__CLASS__)
{
return parent::model($className);
}
} }

View File

@ -26,8 +26,7 @@ class VideoChannelRelation extends CActiveRecord
// NOTE: you should only define rules for those attributes that // NOTE: you should only define rules for those attributes that
// will receive user inputs. // will receive user inputs.
return array( return array(
array('id, videoUrl, name', 'required'), array('videoUrl, name', 'required'),
array('id', 'numerical', 'integerOnly'=>true),
// The following rule is used by search(). // The following rule is used by search().
// @todo Please remove those attributes that should not be searched. // @todo Please remove those attributes that should not be searched.
array('id, videoUrl, name', 'safe', 'on'=>'search'), array('id, videoUrl, name', 'safe', 'on'=>'search'),

View File

@ -136,3 +136,568 @@ Stack trace:
#5 {main} #5 {main}
REQUEST_URI=/bashgid/index.php?r=article/%D0%BE%D1%8B%D1%89%D1%82 REQUEST_URI=/bashgid/index.php?r=article/%D0%BE%D1%8B%D1%89%D1%82
--- ---
2015/06/30 10:30:05 [error] [exception.CException] exception 'CException' with message 'Property "JournalAddMaxForm.title" is not defined.' in C:\Workplace\yii1.1.15\framework\base\CComponent.php:130
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\helpers\CHtml.php(2529): CComponent->__get('title')
#1 C:\Workplace\yii1.1.15\framework\web\helpers\CHtml.php(1654): CHtml::resolveValue(Object(JournalAddMaxForm), 'title')
#2 C:\Workplace\yii1.1.15\framework\web\widgets\CActiveForm.php(786): CHtml::activeTextArea(Object(JournalAddMaxForm), 'title', Array)
#3 C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\addMax.php(31): CActiveForm->textArea(Object(JournalAddMaxForm), 'title', Array)
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require('C:\\Workplace\\Ap...')
#5 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\Workplace\\Ap...', Array, true)
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(869): CBaseController->renderFile('C:\\Workplace\\Ap...', Array, true)
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(782): CController->renderPartial('addMax', Array, true)
#8 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(169): CController->render('addMax', Array)
#9 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionAddMax()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#11 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#12 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#13 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#14 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#15 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#16 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#17 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('addMax')
#19 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('journal/addMax')
#20 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#21 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#22 {main}
REQUEST_URI=/bashgid/index.php?r=journal/addMax
HTTP_REFERER=http://localhost/bashgid/index.php?r=site/index
---
2015/06/30 10:32:39 [error] [exception.CException] exception 'CException' with message 'Property "JournalAddMaxForm.isNewRecord" is not defined.' in C:\Workplace\yii1.1.15\framework\base\CComponent.php:130
Stack trace:
#0 C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\addMax.php(62): CComponent->__get('isNewRecord')
#1 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require('C:\\Workplace\\Ap...')
#2 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\Workplace\\Ap...', Array, true)
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(869): CBaseController->renderFile('C:\\Workplace\\Ap...', Array, true)
#4 C:\Workplace\yii1.1.15\framework\web\CController.php(782): CController->renderPartial('addMax', Array, true)
#5 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(169): CController->render('addMax', Array)
#6 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionAddMax()
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#8 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#9 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#11 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#12 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#13 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#14 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#15 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('addMax')
#16 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('journal/addMax')
#17 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#18 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#19 {main}
REQUEST_URI=/bashgid/index.php?r=journal/addMax
---
2015/06/30 10:54:40 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalAddMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 10:54:40 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalAddMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 10:54:40 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalAddMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 10:54:40 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalAddMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:30 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:30 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:30 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:30 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:42 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:42 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:42 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:13:42 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:33 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:33 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:33 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:33 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:44 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:44 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:44 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:44 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:52 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:52 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:52 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:19:52 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (204)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:37 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:37 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:37 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:37 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:52 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:52 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:52 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:36:52 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:18 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:18 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:18 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:18 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:37 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:37 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:37 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:39:37 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:42:33 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:42:33 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:42:33 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:42:33 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:43:33 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:43:33 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:43:33 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:43:33 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:44:00 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:44:00 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:44:00 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:44:00 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (206)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:45:52 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:45:52 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:45:52 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:45:52 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (161)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:49:52 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:49:52 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:49:52 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:49:52 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:49:53 [error] [php] Undefined variable: vvv (C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\editArticlesMax.php:14)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CController.php(869): JournalController->renderFile()
#1 C:\Workplace\yii1.1.15\framework\web\CController.php(782): JournalController->renderPartial()
#2 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(231): JournalController->render()
#3 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionEditArticlesMax()
#4 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): JournalController->runAction()
#6 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CAccessControlFilter->filter()
#8 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): JournalController->filterAccessControl()
#9 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): JournalController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): JournalController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run()
REQUEST_URI=/bashgid/index.php?r=journal/editArticlesMax&vvv%5BtitleRu%5D=%D1%89%D1%89%D1%89&vvv%5BtitleEn%5D=%D1%88%D1%88%D1%88&vvv%5BtitleZh%5D=%D1%80%D1%80%D1%80&vvv%5BdescriptionRu%5D=%D0%B8%D0%B8%D0%B8&vvv%5BdescriptionEn%5D=%D1%82%D1%82%D1%82&vvv%5BdescriptionZh%5D=%D1%8C%D1%8C%D1%8C
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\editArticlesMax.php (14)
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (231)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:56:02 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:56:02 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:56:02 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:56:02 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 11:56:02 [error] [php] Undefined variable: vvv (C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\editArticlesMax.php:14)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CController.php(869): JournalController->renderFile()
#1 C:\Workplace\yii1.1.15\framework\web\CController.php(782): JournalController->renderPartial()
#2 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(231): JournalController->render()
#3 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionEditArticlesMax()
#4 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): JournalController->runAction()
#6 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CAccessControlFilter->filter()
#8 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): JournalController->filterAccessControl()
#9 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): JournalController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): JournalController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run()
REQUEST_URI=/bashgid/index.php?r=journal/editArticlesMax
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\editArticlesMax.php (14)
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (231)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:04:05 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:04:05 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:04:05 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:04:05 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (162)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:07:10 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (186)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:07:10 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (186)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:07:10 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (186)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:07:10 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (186)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:06 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:06 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:06 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:06 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:06 [error] [php] urlencode() expects parameter 1 to be string, object given (C:\Workplace\yii1.1.15\framework\web\CUrlManager.php:440)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CUrlManager.php(310): CUrlManager->createUrlDefault()
#1 C:\Workplace\yii1.1.15\framework\base\CApplication.php(543): CUrlManager->createUrl()
#2 C:\Workplace\yii1.1.15\framework\web\CController.php(967): CWebApplication->createUrl()
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(1028): JournalController->createUrl()
#4 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(192): JournalController->redirect()
#5 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionEditMax()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#7 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): JournalController->runAction()
#8 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CAccessControlFilter->filter()
#10 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): JournalController->filterAccessControl()
#11 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter()
#12 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#13 C:\Workplace\yii1.1.15\framework\web\CController.php(265): JournalController->runActionWithFilters()
#14 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): JournalController->run()
#15 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#16 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#17 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run()
REQUEST_URI=/bashgid/index.php?r=journal/editMax
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (192)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:21 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:21 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:21 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:21 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:47 [warning] [application] Failed to set unsafe attribute "titleEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:47 [warning] [application] Failed to set unsafe attribute "titleZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:47 [warning] [application] Failed to set unsafe attribute "descriptionEn" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 12:09:47 [warning] [application] Failed to set unsafe attribute "descriptionZh" of "JournalMaxForm".
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (188)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 13:29:48 [error] [php] Undefined variable: articleArr (C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\editArticlesMax.php:17)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CController.php(869): JournalController->renderFile()
#1 C:\Workplace\yii1.1.15\framework\web\CController.php(782): JournalController->renderPartial()
#2 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(232): JournalController->render()
#3 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionEditArticlesMax()
#4 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): JournalController->runAction()
#6 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CAccessControlFilter->filter()
#8 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): JournalController->filterAccessControl()
#9 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(265): JournalController->runActionWithFilters()
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): JournalController->run()
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#14 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#15 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run()
REQUEST_URI=/bashgid/index.php?r=journal/editArticlesMax
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\journal\editArticlesMax.php (17)
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php (232)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 13:54:38 [error] [exception.CException] exception 'CException' with message 'Property "ArticleMaxForm.externalLink" is not defined.' in C:\Workplace\yii1.1.15\framework\base\CComponent.php:130
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\helpers\CHtml.php(2529): CComponent->__get('externalLink')
#1 C:\Workplace\yii1.1.15\framework\web\helpers\CHtml.php(1654): CHtml::resolveValue(Object(ArticleMaxForm), 'externalLink')
#2 C:\Workplace\yii1.1.15\framework\web\widgets\CActiveForm.php(786): CHtml::activeTextArea(Object(ArticleMaxForm), 'externalLink', Array)
#3 C:\Workplace\Apache2.4\htdocs\bashgid\protected\views\article\addMax.php(66): CActiveForm->textArea(Object(ArticleMaxForm), 'externalLink', Array)
#4 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(126): require('C:\\Workplace\\Ap...')
#5 C:\Workplace\yii1.1.15\framework\web\CBaseController.php(95): CBaseController->renderInternal('C:\\Workplace\\Ap...', Array, true)
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(869): CBaseController->renderFile('C:\\Workplace\\Ap...', Array, true)
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(782): CController->renderPartial('addMax', Array, true)
#8 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php(178): CController->render('addMax', Array)
#9 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): ArticleController->actionAddMax()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#11 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#12 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#13 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#14 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#15 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#16 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#17 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('addMax')
#19 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('article/addMax')
#20 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#21 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#22 {main}
REQUEST_URI=/bashgid/index.php?r=article/addMax
---
2015/06/30 14:03:59 [error] [system.db.CDbCommand] CDbCommand::fetchColumn() failed: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined. The SQL statement executed was: SELECT COUNT(*) FROM `table_article_journal_relation` `t` WHERE journalName=:journalName.
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php (250)
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php (166)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 14:03:59 [error] [exception.CDbException] exception 'CDbException' with message 'CDbCommand failed to execute the SQL statement: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined. The SQL statement executed was: SELECT COUNT(*) FROM `table_article_journal_relation` `t` WHERE journalName=:journalName' in C:\Workplace\yii1.1.15\framework\db\CDbCommand.php:543
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\db\CDbCommand.php(433): CDbCommand->queryInternal('fetchColumn', 0, Array)
#1 C:\Workplace\yii1.1.15\framework\db\ar\CActiveRecord.php(1601): CDbCommand->queryScalar()
#2 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php(250): CActiveRecord->count('journalName=:jo...', Array)
#3 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php(166): ArticleController->saveArticleForm(Object(ArticleMaxForm))
#4 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): ArticleController->actionAddMax()
#5 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#6 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#7 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#8 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#9 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#10 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#11 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#12 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#13 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('addMax')
#14 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('article/addMax')
#15 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#16 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#17 {main}
REQUEST_URI=/bashgid/index.php?r=article/addMax
HTTP_REFERER=http://localhost/bashgid/index.php?r=article/addMax
---
2015/06/30 11:04:39 [error] [php] urlencode() expects parameter 1 to be string, object given (C:\Workplace\yii1.1.15\framework\web\CUrlManager.php:440)
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CUrlManager.php(310): CUrlManager->createUrlDefault()
#1 C:\Workplace\yii1.1.15\framework\base\CApplication.php(543): CUrlManager->createUrl()
#2 C:\Workplace\yii1.1.15\framework\web\CController.php(967): CWebApplication->createUrl()
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(1028): ArticleController->createUrl()
#4 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php(168): ArticleController->redirect()
#5 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): ArticleController->actionAddMax()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams()
#7 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): ArticleController->runAction()
#8 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CAccessControlFilter->filter()
#10 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): ArticleController->filterAccessControl()
#11 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter()
#12 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#13 C:\Workplace\yii1.1.15\framework\web\CController.php(265): ArticleController->runActionWithFilters()
#14 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): ArticleController->run()
#15 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController()
#16 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#17 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CWebApplication->run()
REQUEST_URI=/bashgid/index.php?r=article/addMax
in C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\ArticleController.php (168)
in C:\Workplace\Apache2.4\htdocs\bashgid\index.php (21)
2015/06/30 14:15:06 [error] [exception.CException] exception 'CException' with message 'Property "ArticleJournalRelation.name" is not defined.' in C:\Workplace\yii1.1.15\framework\base\CComponent.php:130
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\db\ar\CActiveRecord.php(145): CComponent->__get('name')
#1 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(235): CActiveRecord->__get('name')
#2 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionEditArticlesMax()
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#4 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#7 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#8 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#11 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('editArticlesMax')
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('journal/editArt...')
#13 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#14 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#15 {main}
REQUEST_URI=/bashgid/index.php?r=journal/editArticlesMax
HTTP_REFERER=http://localhost/bashgid/index.php
---
2015/06/30 14:32:23 [error] [exception.CException] exception 'CException' with message 'Property "ArticleJournalRelation.title" is not defined.' in C:\Workplace\yii1.1.15\framework\base\CComponent.php:130
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\db\ar\CActiveRecord.php(145): CComponent->__get('title')
#1 C:\Workplace\Apache2.4\htdocs\bashgid\protected\controllers\JournalController.php(236): CActiveRecord->__get('title')
#2 C:\Workplace\yii1.1.15\framework\web\actions\CInlineAction.php(49): JournalController->actionEditArticlesMax()
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(308): CInlineAction->runWithParams(Array)
#4 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#7 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#8 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#9 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#10 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#11 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('editArticlesMax')
#12 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('journal/editArt...')
#13 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#14 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#15 {main}
REQUEST_URI=/bashgid/index.php?r=journal/editArticlesMax
---
2015/06/30 14:46:45 [error] [exception.CHttpException.400] exception 'CHttpException' with message 'Your request is invalid.' in C:\Workplace\yii1.1.15\framework\web\CController.php:336
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CController.php(309): CController->invalidActionParams(Object(CInlineAction))
#1 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#2 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#4 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#8 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('editMax')
#9 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('article/editMax')
#10 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#11 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#12 {main}
REQUEST_URI=/bashgid/index.php?r=article/editMax
HTTP_REFERER=http://localhost/bashgid/index.php?r=journal/editArticlesMax
---
2015/06/30 14:59:15 [error] [exception.CHttpException.400] exception 'CHttpException' with message 'Your request is invalid.' in C:\Workplace\yii1.1.15\framework\web\CController.php:336
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CController.php(309): CController->invalidActionParams(Object(CInlineAction))
#1 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#2 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#4 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#8 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('editMax')
#9 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('article/editMax')
#10 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#11 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#12 {main}
REQUEST_URI=/bashgid/index.php?r=article/editMax&n=mc_article_1
HTTP_REFERER=http://localhost/bashgid/index.php?r=journal/editArticlesMax
---
2015/06/30 14:59:25 [error] [exception.CHttpException.400] exception 'CHttpException' with message 'Your request is invalid.' in C:\Workplace\yii1.1.15\framework\web\CController.php:336
Stack trace:
#0 C:\Workplace\yii1.1.15\framework\web\CController.php(309): CController->invalidActionParams(Object(CInlineAction))
#1 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(133): CController->runAction(Object(CInlineAction))
#2 C:\Workplace\yii1.1.15\framework\web\filters\CFilter.php(40): CFilterChain->run()
#3 C:\Workplace\yii1.1.15\framework\web\CController.php(1145): CFilter->filter(Object(CFilterChain))
#4 C:\Workplace\yii1.1.15\framework\web\filters\CInlineFilter.php(58): CController->filterAccessControl(Object(CFilterChain))
#5 C:\Workplace\yii1.1.15\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))
#6 C:\Workplace\yii1.1.15\framework\web\CController.php(291): CFilterChain->run()
#7 C:\Workplace\yii1.1.15\framework\web\CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#8 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(282): CController->run('editMax')
#9 C:\Workplace\yii1.1.15\framework\web\CWebApplication.php(141): CWebApplication->runController('article/editMax')
#10 C:\Workplace\yii1.1.15\framework\base\CApplication.php(180): CWebApplication->processRequest()
#11 C:\Workplace\Apache2.4\htdocs\bashgid\index.php(21): CApplication->run()
#12 {main}
REQUEST_URI=/bashgid/index.php?r=article/editMax&n=mc_article_0
HTTP_REFERER=http://localhost/bashgid/index.php?r=journal/editArticlesMax
---

View File

@ -37,6 +37,12 @@
<?php echo $form->error($model,'description'); ?> <?php echo $form->error($model,'description'); ?>
</div> </div>
<div class="row">
<?php echo $form->labelEx($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
<?php echo $form->error($model,'hidden'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div> </div>

View File

@ -31,6 +31,11 @@
<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
</div> </div>
<div class="row">
<?php echo $form->label($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton('Search'); ?> <?php echo CHtml::submitButton('Search'); ?>
</div> </div>

View File

@ -20,6 +20,9 @@
<b><?php echo CHtml::encode($data->getAttributeLabel('description')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('description')); ?>:</b>
<?php echo CHtml::encode($data->description); ?> <?php echo CHtml::encode($data->description); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('hidden')); ?>:</b>
<?php echo CHtml::encode($data->hidden); ?>
<br />
</div> </div>

View File

@ -49,6 +49,7 @@ or <b>=</b>) at the beginning of each of your search values to specify how the c
'name', 'name',
'title', 'title',
'description', 'description',
'hidden',
array( array(
'class'=>'CButtonColumn', 'class'=>'CButtonColumn',
), ),

View File

@ -25,5 +25,6 @@ $this->menu=array(
'name', 'name',
'title', 'title',
'description', 'description',
'hidden',
), ),
)); ?> )); ?>

View File

@ -56,11 +56,35 @@
</div> </div>
<div class="row"> <div class="row">
<?php echo $form->labelEx($model,'address'); ?>
<?php echo $form->textArea($model,'address',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'address'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'phone'); ?>
<?php echo $form->textArea($model,'phone',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'phone'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'externalLink'); ?> <?php echo $form->labelEx($model,'externalLink'); ?>
<?php echo $form->textArea($model,'externalLink',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->textArea($model,'externalLink',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'externalLink'); ?> <?php echo $form->error($model,'externalLink'); ?>
</div> </div>
<div class="row">
<?php echo $form->labelEx($model,'externalLinkText'); ?>
<?php echo $form->textArea($model,'externalLinkText',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'externalLinkText'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
<?php echo $form->error($model,'hidden'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div> </div>

View File

@ -47,15 +47,35 @@
</div> </div>
<div class="row"> <div class="row">
<?php echo $form->label($model,'address'); ?>
<?php echo $form->textArea($model,'address',array('rows'=>6, 'cols'=>50)); ?>
</div>
<div class="row">
<?php echo $form->label($model,'phone'); ?>
<?php echo $form->textArea($model,'phone',array('rows'=>6, 'cols'=>50)); ?>
</div>
<div class="row">
<?php echo $form->label($model,'externalLink'); ?> <?php echo $form->label($model,'externalLink'); ?>
<?php echo $form->textArea($model,'externalLink',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->textArea($model,'externalLink',array('rows'=>6, 'cols'=>50)); ?>
</div> </div>
<div class="row">
<?php echo $form->label($model,'externalLinkText'); ?>
<?php echo $form->textArea($model,'externalLinkText',array('rows'=>6, 'cols'=>50)); ?>
</div>
<div class="row"> <div class="row">
<?php echo $form->label($model,'dateTime'); ?> <?php echo $form->label($model,'dateTime'); ?>
<?php echo $form->textField($model,'dateTime'); ?> <?php echo $form->textField($model,'dateTime'); ?>
</div> </div>
<div class="row">
<?php echo $form->label($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton('Search'); ?> <?php echo CHtml::submitButton('Search'); ?>
</div> </div>

View File

@ -33,7 +33,7 @@
<?php echo CHtml::encode($data->geoLon); ?> <?php echo CHtml::encode($data->geoLon); ?>
<br /> <br />
<?php /*
<b><?php echo CHtml::encode($data->getAttributeLabel('externalLink')); ?>:</b> <b><?php echo CHtml::encode($data->getAttributeLabel('externalLink')); ?>:</b>
<?php echo CHtml::encode($data->externalLink); ?> <?php echo CHtml::encode($data->externalLink); ?>
<br /> <br />
@ -42,6 +42,9 @@
<?php echo CHtml::encode($data->dateTime); ?> <?php echo CHtml::encode($data->dateTime); ?>
<br /> <br />
*/ ?> <b><?php echo CHtml::encode($data->getAttributeLabel('hidden')); ?>:</b>
<?php echo CHtml::encode($data->hidden); ?>
<br />
</div> </div>

View File

@ -0,0 +1,74 @@
<?php
/* @var $this ArticleController */
/* @var $model Article */
$this->breadcrumbs=array(
'Articles'=>array('index'),
'Create',
);
?>
<h1>Добавить статью</h1>
<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">
<p>Введите название вашей статьи на русском языке<span class="required">*</span></p>
<?php echo $form->textArea($model,'titleRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleRu'); ?>
</div>
<div class="row">
<p>Введите название вашей статьи на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleEn'); ?>
</div>
<div class="row">
<p>Введите название вашей статьи на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleZh'); ?>
</div>
<div class="row">
<p>Введите текст вашей статьи на русском языке<span class="required">*</span></p>
<?php echo $form->textArea($model,'contentRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'contentRu'); ?>
</div>
<div class="row">
<p>Введите текст вашей статьи на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'contentEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'contentEn'); ?>
</div>
<div class="row">
<p>Введите текст вашей статьи на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'contentZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'contentZh'); ?>
</div>
<div class="row">
<p>Введите ссылку на вашу веб-страницу.</p>
<?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('Create'); ?>
</div>
<?php $this->endWidget(); ?>

View File

@ -0,0 +1,76 @@
<?php
/* @var $this ArticleController */
/* @var $model Article */
$this->breadcrumbs=array(
'Articles'=>array('index'),
'Create',
);
?>
<h1>Редактировать статью</h1>
<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); ?>
<?php echo $form->hiddenField($model,'name'); ?>
<div class="row">
<p>Введите название вашей статьи на русском языке<span class="required">*</span></p>
<?php echo $form->textArea($model,'titleRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleRu'); ?>
</div>
<div class="row">
<p>Введите название вашей статьи на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleEn'); ?>
</div>
<div class="row">
<p>Введите название вашей статьи на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleZh'); ?>
</div>
<div class="row">
<p>Введите текст вашей статьи на русском языке<span class="required">*</span></p>
<?php echo $form->textArea($model,'contentRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'contentRu'); ?>
</div>
<div class="row">
<p>Введите текст вашей статьи на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'contentEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'contentEn'); ?>
</div>
<div class="row">
<p>Введите текст вашей статьи на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'contentZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'contentZh'); ?>
</div>
<div class="row">
<p>Введите ссылку на вашу веб-страницу.</p>
<?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('Save'); ?>
</div>
<?php $this->endWidget(); ?>

View File

@ -0,0 +1,12 @@
<?php
/* @var $this ArticleController */
/* @var $model Article */
$this->breadcrumbs=array(
'Articles'=>array('index'),
'Create',
);
?>
<h1>Редактировать альбомы</h1>

View File

@ -2,33 +2,39 @@
/* @var $this ArticleController */ /* @var $this ArticleController */
/* @var $model Article */ /* @var $model Article */
$this->breadcrumbs=array( $this->breadcrumbs = array(
'Articles'=>array('index'), 'Articles' => array('index'),
$model->name, $model->name,
); );
$this->menu=array( $this->menu = array(
array('label'=>'List Article', 'url'=>array('index')), array('label' => 'List Article', 'url' => array('index')),
array('label'=>'Create Article', 'url'=>array('create')), array('label' => 'Create Article', 'url' => array('create')),
array('label'=>'Update Article', 'url'=>array('update', 'id'=>$model->id)), 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' => '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')), array('label' => 'Manage Article', 'url' => array('admin')),
); );
?> ?>
<h1>View Article #<?php echo $model->id; ?></h1> <h1>View Article #<?php echo $model->id; ?></h1>
<?php $this->widget('zii.widgets.CDetailView', array( <?php
'data'=>$model, $this->widget('zii.widgets.CDetailView', array(
'attributes'=>array( 'data' => $model,
'id', 'attributes' => array(
'name', 'id',
'type', 'name',
'title', 'type',
'content', 'title',
'geoLat', 'content',
'geoLon', 'geoLat',
'externalLink', 'geoLon',
'dateTime', 'address',
), 'phone',
)); ?> 'externalLink',
'externalLinkText',
'dateTime',
'hidden',
),
));
?>

View File

@ -37,6 +37,12 @@
<?php echo $form->error($model,'description'); ?> <?php echo $form->error($model,'description'); ?>
</div> </div>
<div class="row">
<?php echo $form->labelEx($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
<?php echo $form->error($model,'hidden'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div> </div>

View File

@ -31,6 +31,12 @@
<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
</div> </div>
<div class="row">
<?php echo $form->label($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton('Search'); ?> <?php echo CHtml::submitButton('Search'); ?>
</div> </div>

View File

@ -21,5 +21,9 @@
<?php echo CHtml::encode($data->description); ?> <?php echo CHtml::encode($data->description); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('hidden')); ?>:</b>
<?php echo CHtml::encode($data->hidden); ?>
<br />
</div> </div>

View File

@ -49,6 +49,7 @@ or <b>=</b>) at the beginning of each of your search values to specify how the c
'name', 'name',
'title', 'title',
'description', 'description',
'hidden',
array( array(
'class'=>'CButtonColumn', 'class'=>'CButtonColumn',
), ),

View File

@ -25,5 +25,6 @@ $this->menu=array(
'name', 'name',
'title', 'title',
'description', 'description',
'hidden',
), ),
)); ?> )); ?>

View File

@ -37,6 +37,24 @@
<?php echo $form->error($model,'description'); ?> <?php echo $form->error($model,'description'); ?>
</div> </div>
<div class="row">
<?php echo $form->labelEx($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
<?php echo $form->error($model,'hidden'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'geoCategory'); ?>
<?php echo $form->textField($model,'geoCategory'); ?>
<?php echo $form->error($model,'geoCategory'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'main'); ?>
<?php echo $form->textField($model,'main'); ?>
<?php echo $form->error($model,'main'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div> </div>

View File

@ -31,6 +31,20 @@
<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
</div> </div>
<div class="row">
<?php echo $form->label($model,'hidden'); ?>
<?php echo $form->textField($model,'hidden'); ?>
</div>
<div class="row">
<?php echo $form->label($model,'geoCategory'); ?>
<?php echo $form->textField($model,'geoCategory'); ?>
</div>
<div class="row">
<?php echo $form->label($model,'main'); ?>
<?php echo $form->textField($model,'main'); ?>
</div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton('Search'); ?> <?php echo CHtml::submitButton('Search'); ?>
</div> </div>

View File

@ -22,4 +22,17 @@
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('hidden')); ?>:</b>
<?php echo CHtml::encode($data->hidden); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('geoCategory')); ?>:</b>
<?php echo CHtml::encode($data->geoCategory); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('main')); ?>:</b>
<?php echo CHtml::encode($data->main); ?>
<br />
</div> </div>

View File

@ -0,0 +1,65 @@
<?php
/* @var $this JournalController */
/* @var $model Journal */
$this->breadcrumbs=array(
'Journals'=>array('index'),
'Create',
);
?>
<h1>Создать ваш раздел</h1>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'journalAddMax-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">Поля, отмеченные <span class="required">*</span> обязательны.</p>
<?php echo $form->errorSummary($model); ?>
<div class="row">
<p>Введите название вашего раздела на русском языке<span class="required">*</span></p>
<?php echo $form->textArea($model,'titleRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleRu'); ?>
</div>
<div class="row">
<p>Введите название вашего раздела на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleEn'); ?>
</div>
<div class="row">
<p>Введите название вашего раздела на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleZh'); ?>
</div>
<div class="row">
<p>Введите описание вашего раздела на русском языке. Если не знаете что написать, напишите сюда то же самое, что и в поле "название"<span class="required">*</span></p>
<?php echo $form->textArea($model,'descriptionRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'descriptionRu'); ?>
</div>
<div class="row">
<p>Введите описание вашего раздела на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'descriptionEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'descriptionEn'); ?>
</div>
<div class="row">
<p>Введите описание вашего раздела на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'descriptionZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'descriptionZh'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Создать'); ?>
</div>
<?php $this->endWidget(); ?>

View File

@ -49,6 +49,10 @@ or <b>=</b>) at the beginning of each of your search values to specify how the c
'name', 'name',
'title', 'title',
'description', 'description',
'hidden',
'geoCategory',
'main',
array( array(
'class'=>'CButtonColumn', 'class'=>'CButtonColumn',
), ),

View File

@ -0,0 +1,20 @@
<?php
/* @var $this JournalController */
/* @var $model Journal */
$this->breadcrumbs=array(
'Journals'=>array('index'),
'Create',
);
?>
<h1>Статьи в вашем разделе</h1>
<p><?php echo CHtml::link('Добавить статью',array('article/addMax')/*,array('class'=>'btn_registro')*/); ?> </p>
<?php
foreach ($articleArr as $article)
{
echo '<p>' . $article->title . ' ' . CHtml::link('Редактировать',array('article/editMax', 'id' => $article->id)) . '</p>';
}

View File

@ -0,0 +1,65 @@
<?php
/* @var $this JournalController */
/* @var $model Journal */
$this->breadcrumbs=array(
'Journals'=>array('index'),
'Create',
);
?>
<h1>Редактировать ваш раздел</h1>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'journalAddMax-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">Поля, отмеченные <span class="required">*</span> обязательны.</p>
<?php echo $form->errorSummary($model); ?>
<div class="row">
<p>Введите название вашего раздела на русском языке<span class="required">*</span></p>
<?php echo $form->textArea($model,'titleRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleRu'); ?>
</div>
<div class="row">
<p>Введите название вашего раздела на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleEn'); ?>
</div>
<div class="row">
<p>Введите название вашего раздела на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'titleZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'titleZh'); ?>
</div>
<div class="row">
<p>Введите описание вашего раздела на русском языке. Если не знаете что написать, напишите сюда то же самое, что и в поле "название"<span class="required">*</span></p>
<?php echo $form->textArea($model,'descriptionRu',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'descriptionRu'); ?>
</div>
<div class="row">
<p>Введите описание вашего раздела на английском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'descriptionEn',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'descriptionEn'); ?>
</div>
<div class="row">
<p>Введите описание вашего раздела на китайском языке. Если вы не можете заполнить это поле, оставьте его пустым.</p>
<?php echo $form->textArea($model,'descriptionZh',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'descriptionZh'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Сохранить'); ?>
</div>
<?php $this->endWidget(); ?>

View File

@ -25,5 +25,8 @@ $this->menu=array(
'name', 'name',
'title', 'title',
'description', 'description',
'hidden',
'geoCategory',
'main'
), ),
)); ?> )); ?>

View File

@ -29,12 +29,12 @@
<div id="mainmenu"> <div id="mainmenu">
<?php $this->widget('zii.widgets.CMenu',array( <?php $this->widget('zii.widgets.CMenu',array(
'items'=>array( 'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index')), array('label'=>'Главная', 'url'=>array('/site/index')),
array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')), array('label'=>'О базе', 'url'=>array('/site/page', 'view'=>'about')),
array('label'=>'Contact', 'url'=>array('/site/contact')), array('label'=>'Контакты', 'url'=>array('/site/contact')),
array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest), array('label'=>'Вход', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
array('label'=>'Register', 'url'=>array('/site/register'), 'visible'=>Yii::app()->user->isGuest), array('label'=>'Регистрация', 'url'=>array('/site/register'), 'visible'=>Yii::app()->user->isGuest),
array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest) array('label'=>'Выйти ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
), ),
)); ?> )); ?>
</div><!-- mainmenu --> </div><!-- mainmenu -->

View File

@ -9,77 +9,10 @@ $this->breadcrumbs=array(
); );
?> ?>
<h1>Contact Us</h1> <h1>Контакты</h1>
<?php if(Yii::app()->user->hasFlash('contact')): ?>
<div class="flash-success"> <p>Владислав Хорев, разработчик</p>
<?php echo Yii::app()->user->getFlash('contact'); ?> <p>+79260492730</p>
</div> <p>http://vk.com/id677718</p>
<p>slava_rik@mail.ru</p>
<?php else: ?>
<p>
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
</p>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'contact-form',
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
),
)); ?>
<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->textField($model,'name'); ?>
<?php echo $form->error($model,'name'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'email'); ?>
<?php echo $form->textField($model,'email'); ?>
<?php echo $form->error($model,'email'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'subject'); ?>
<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
<?php echo $form->error($model,'subject'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'body'); ?>
<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
<?php echo $form->error($model,'body'); ?>
</div>
<?php if(CCaptcha::checkRequirements()): ?>
<div class="row">
<?php echo $form->labelEx($model,'verifyCode'); ?>
<div>
<?php $this->widget('CCaptcha'); ?>
<?php echo $form->textField($model,'verifyCode'); ?>
</div>
<div class="hint">Please enter the letters as they are shown in the image above.
<br/>Letters are not case-sensitive.</div>
<?php echo $form->error($model,'verifyCode'); ?>
</div>
<?php endif; ?>
<div class="row buttons">
<?php echo CHtml::submitButton('Submit'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
<?php endif; ?>

View File

@ -2,34 +2,53 @@
/* @var $this SiteController */ /* @var $this SiteController */
$this->pageTitle = Yii::app()->name; $this->pageTitle = Yii::app()->name;
?> ?>
<h1>Welcome home</h1> <h1>Управление базой данных</h1>
<?php <?php
if (!Yii::app()->user->isGuest) if (!Yii::app()->user->isGuest)
{ {
$this->widget('zii.widgets.CMenu',array( $this->widget('zii.widgets.CMenu', array(
'items'=>array( 'items' => array(
array('label' => 'Photo', 'url' => array('photo/admin')), array('label' => 'Photo', 'url' => array('photo/admin')),
array('label' => 'Album', 'url' => array('album/admin')), array('label' => 'Album', 'url' => array('album/admin')),
array('label' => 'Manage Photo in Album', 'url' => array('photoAlbumRelation/admin')), array('label' => 'Manage Photo in Album', 'url' => array('photoAlbumRelation/admin')),
array('label' => 'Video', 'url' => array('video/admin')), array('label' => 'Video', 'url' => array('video/admin')),
array('label' => 'Channel', 'url' => array('channel/admin')), array('label' => 'Channel', 'url' => array('channel/admin')),
array('label' => 'Manage Video in Channel', 'url' => array('videoChannelRelation/admin')), array('label' => 'Manage Video in Channel', 'url' => array('videoChannelRelation/admin')),
array('label' => 'Article', 'url' => array('article/admin')), array('label' => 'Article', 'url' => array('article/admin')),
array('label' => 'Manage Album in Article', 'url' => array('albumArticleRelation/admin')), array('label' => 'Manage Album in Article', 'url' => array('albumArticleRelation/admin')),
array('label' => 'Manage Channel in Article', 'url' => array('channelArticleRelation/admin')), array('label' => 'Manage Channel in Article', 'url' => array('channelArticleRelation/admin')),
array('label' => 'Journal', 'url' => array('journal/admin')), array('label' => 'Journal', 'url' => array('journal/admin')),
array('label' => 'Manage Article in Journal', 'url' => array('articleJournalRelation/admin')), array('label' => 'Manage Article in Journal', 'url' => array('articleJournalRelation/admin')),
array('label' => 'Translation', 'url' => array('translation/admin')), array('label' => 'Translation', 'url' => array('translation/admin')),
), ),
)); ));
if (Journal::getCurrentUserJournal())
{
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => 'Редактировать ваш раздел', 'url' => array('journal/editMax')),
array('label' => 'Редактировать статьи в разделе', 'url' => array('journal/editArticlesMax')),
),
));
}
else
{
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => 'Добавить ваш раздел', 'url' => array('journal/addMax')),
),
));
}
} }
else
?> {
echo "Войдите в систему для управления базой данных.";
}
?>

View File

@ -9,9 +9,9 @@ $this->breadcrumbs=array(
); );
?> ?>
<h1>Login</h1> <h1>Вход</h1>
<p>Please fill out the following form with your login credentials:</p> <p>Введите логин и пароль:</p>
<div class="form"> <div class="form">
<?php $form=$this->beginWidget('CActiveForm', array( <?php $form=$this->beginWidget('CActiveForm', array(
@ -22,7 +22,7 @@ $this->breadcrumbs=array(
), ),
)); ?> )); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p> <p class="note">Поля, отмеченные <span class="required">*</span> обязательны.</p>
<div class="row"> <div class="row">
<?php echo $form->labelEx($model,'username'); ?> <?php echo $form->labelEx($model,'username'); ?>
@ -34,9 +34,6 @@ $this->breadcrumbs=array(
<?php echo $form->labelEx($model,'password'); ?> <?php echo $form->labelEx($model,'password'); ?>
<?php echo $form->passwordField($model,'password'); ?> <?php echo $form->passwordField($model,'password'); ?>
<?php echo $form->error($model,'password'); ?> <?php echo $form->error($model,'password'); ?>
<p class="hint">
Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
</p>
</div> </div>
<div class="row rememberMe"> <div class="row rememberMe">

View File

@ -6,7 +6,6 @@ $this->breadcrumbs=array(
'About', 'About',
); );
?> ?>
<h1>About</h1> <h1>О базе данных</h1>
<p>This is a "static" page. You may change the content of this page <p>Это база данных для мобильного приложения BashGID App, которое будет презентовано на саммите ШОС БРИКС.</p>
by updating the file <code><?php echo __FILE__; ?></code>.</p>

View File

@ -16,13 +16,13 @@ $this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Regist
// you need to use the performAjaxValidation()-method described there. // you need to use the performAjaxValidation()-method described there.
'enableAjaxValidation'=>false, 'enableAjaxValidation'=>false,
)); ?> )); ?>
<h1><?=Yii::t('app', 'Register')?></h1> <h1>Регистрация</h1>
<p><?=Yii::t('app', 'Please fill out the registation form')?></p> <p>Введите данные для регистрации</p>
<p class="note"><?=Yii::t('app', 'Fields with {*} are required.', array('{*}'=>'<span class="required">*</span>'))?></p> <p class="note">Поля, отмеченные <span class="required">*</span> обязательны.</p>
<?php echo $form->errorSummary($model, Yii::t('app', 'Please, fix following errors:')); ?> <?php echo $form->errorSummary($model, 'Исправьте ошибки:'); ?>
<div class="row"> <div class="row">
<?php echo $form->labelEx($model,'username'); ?> <?php echo $form->labelEx($model,'username'); ?>

View File

@ -25,5 +25,16 @@
<?php echo CHtml::encode($data->textZh); ?> <?php echo CHtml::encode($data->textZh); ?>
<br /> <br />
<b><?php echo CHtml::encode($data->getAttributeLabel('textEnUp')); ?>:</b>
<?php echo CHtml::encode($data->textEnUp); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('textRuUp')); ?>:</b>
<?php echo CHtml::encode($data->textRuUp); ?>
<br />
<b><?php echo CHtml::encode($data->getAttributeLabel('textZhUp')); ?>:</b>
<?php echo CHtml::encode($data->textZhUp); ?>
<br />
</div> </div>

View File

@ -26,5 +26,8 @@ $this->menu=array(
'textEn', 'textEn',
'textRu', 'textRu',
'textZh', 'textZh',
'textEnUp',
'textRuUp',
'textZhUp',
), ),
)); ?> )); ?>

View File

@ -19,12 +19,6 @@
<?php echo $form->errorSummary($model); ?> <?php echo $form->errorSummary($model); ?>
<div class="row">
<?php echo $form->labelEx($model,'id'); ?>
<?php echo $form->textField($model,'id'); ?>
<?php echo $form->error($model,'id'); ?>
</div>
<div class="row"> <div class="row">
<?php echo $form->labelEx($model,'videoUrl'); ?> <?php echo $form->labelEx($model,'videoUrl'); ?>
<?php echo $form->textArea($model,'videoUrl',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->textArea($model,'videoUrl',array('rows'=>6, 'cols'=>50)); ?>

View File

@ -26,6 +26,7 @@
<?php echo $form->textArea($model,'name',array('rows'=>6, 'cols'=>50)); ?> <?php echo $form->textArea($model,'name',array('rows'=>6, 'cols'=>50)); ?>
</div> </div>
<div class="row buttons"> <div class="row buttons">
<?php echo CHtml::submitButton('Search'); ?> <?php echo CHtml::submitButton('Search'); ?>
</div> </div>

View File

@ -17,5 +17,4 @@
<?php echo CHtml::encode($data->name); ?> <?php echo CHtml::encode($data->name); ?>
<br /> <br />
</div> </div>