Website is working!

This commit is contained in:
vladislav.khorev committed 2014-11-22 13:14:22 +00:00
1 parent c978ba8e19
commit 2ed0710575
24 files changed
+644 -119

No files matched your search

+5 -5
View File
@@ -1,13 +1,13 @@
<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name;
$this->pageTitle=Yii::t('app', Yii::app()->name);
?>
<hr>
<p><?php echo $data->title; ?></p>
<p><?php echo $data->username; ?></p>
<h1><?php echo $data->title; ?></h1>
<p><?php echo $data->text; ?></p>
<img src="<?php echo $data->imageFileName; ?>">
<img src="<?php echo $data->imageFileName; ?>" style="max-width:600px"><BR>
<i><?=Yii::t('app', 'Posted by: ')?><b><?php echo $data->username; ?></b></i><BR>
<i><?=Yii::t('app', 'Published at: ')?><b><?php echo $data->date; ?></b></i><BR>
+7 -5
View File
@@ -2,6 +2,8 @@
/* @var $this AddPostFormController */
/* @var $model AddPostForm */
/* @var $form CActiveForm */
$this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Add post');
?>
<div class="form">
@@ -16,10 +18,10 @@
'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<p class="note"><?=Yii::t('app', 'Fields with {*} are required.', array('{*}'=>'<span class="required">*</span>'))?></p>
<?php echo $form->errorSummary($model, Yii::t('app', 'Please, fix following errors:')); ?>
<div class="row">
<?php echo $form->labelEx($model,'title'); ?>
<?php echo $form->textField($model,'title'); ?>
@@ -39,7 +41,7 @@
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Submit'); ?>
<?php echo CHtml::submitButton(Yii::t('app', 'Send')); ?>
</div>
<?php $this->endWidget(); ?>
+2 -2
View File
@@ -1,10 +1,10 @@
<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name;
$this->pageTitle=Yii::t('app', Yii::app()->name);
?>
<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>
<h1><?=Yii::t('app', 'New posts')?></h1>
<?php $this->widget('zii.widgets.CListView', array(
+7
View File
@@ -0,0 +1,7 @@
<?php echo CHtml::form(); ?>
<div id="langdrop">
<?php echo CHtml::dropDownList('lang', $currentLang, array(
'en' => 'English', 'ru' => 'Русский', 'cn' => '中文'), array('submit' => array('site/index'))); ?>
</div>
<?php echo CHtml::endForm(); ?>
+11 -10
View File
@@ -3,15 +3,13 @@
/* @var $model LoginForm */
/* @var $form CActiveForm */
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
'Login',
);
$this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Login');
?>
<h1>Login</h1>
<h1><?=Yii::t('app', 'Login')?></h1>
<p>Please fill out the following form with your login credentials:</p>
<p><?=Yii::t('app', 'Please fill out the following form with your login credentials:')?></p>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
@@ -22,8 +20,11 @@ $this->breadcrumbs=array(
),
)); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<p class="note"><?=Yii::t('app', 'Fields with {*} are required.', array('{*}'=>'<span class="required">*</span>'))?></p>
<?php echo $form->errorSummary($model, Yii::t('app', 'Please, fix following errors:')); ?>
<div class="row">
<?php echo $form->labelEx($model,'username'); ?>
<?php echo $form->textField($model,'username'); ?>
@@ -43,10 +44,10 @@ $this->breadcrumbs=array(
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Login'); ?>
<?php echo CHtml::submitButton(Yii::t('app', 'Login')); ?>
</div>
<?php $this->endWidget(); ?>
<?php echo CHtml::link('Register',array('site/register')); ?>
<BR>
<?php echo CHtml::link(Yii::t('app', 'Register'), array('site/register')); ?>
</div><!-- form -->
+5 -8
View File
@@ -1,12 +1,9 @@
<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name . ' - About';
$this->breadcrumbs=array(
'About',
);
?>
<h1>About</h1>
$this->pageTitle=Yii::app()->name . ' - About journal';
<p>This is a "static" page. You may change the content of this page
by updating the file <code><?php echo __FILE__; ?></code>.</p>
?>
<h1>About journal</h1>
<p>This journal is devoted to China and Chinese language</p>
@@ -0,0 +1,9 @@
<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name . ' - 关于日报';
?>
<h1>关于日报</h1>
<p>本日报适用于学习中国文化及中文学习者.</p>
@@ -0,0 +1,9 @@
<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name . ' - О журнале';
?>
<h1>О журнале</h1>
<p>Это журнал, посвященный Китаю и изучению Китайского языка.</p>
+13 -3
View File
@@ -2,6 +2,8 @@
/* @var $this RegisterFormController */
/* @var $model RegisterForm */
/* @var $form CActiveForm */
$this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Register');
?>
<div class="form">
@@ -14,10 +16,13 @@
// you need to use the performAjaxValidation()-method described there.
'enableAjaxValidation'=>false,
)); ?>
<h1><?=Yii::t('app', 'Register')?></h1>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<p><?=Yii::t('app', 'Please fill out the registation form')?></p>
<?php echo $form->errorSummary($model); ?>
<p class="note"><?=Yii::t('app', 'Fields with {*} are required.', array('{*}'=>'<span class="required">*</span>'))?></p>
<?php echo $form->errorSummary($model, Yii::t('app', 'Please, fix following errors:')); ?>
<div class="row">
<?php echo $form->labelEx($model,'username'); ?>
@@ -37,9 +42,14 @@
<?php echo $form->error($model,'email'); ?>
</div>
<div class="row">
<?php echo CHtml::activeLabelEx($model, 'verifyCode'); ?>
<?php $this->widget('CCaptcha'); ?><BR>
<?php echo CHtml::activeTextField($model, 'verifyCode'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Submit'); ?>
<?php echo CHtml::submitButton(Yii::t('app', 'Register')); ?>
</div>
<?php $this->endWidget(); ?>