web access very cool

This commit is contained in:
vladislav.khorev committed 2015-07-02 08:37:15 +00:00
1 parent 760ddd06ee
commit 482fb1edc4
51 files changed
+1780 -350

No files matched your search

+5 -72
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">
<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>
<?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; ?>
<p>Владислав Хорев, разработчик</p>
<p>+79260492730</p>
<p>http://vk.com/id677718</p>
<p>slava_rik@mail.ru</p>
+44 -25
View File
@@ -2,34 +2,53 @@
/* @var $this SiteController */
$this->pageTitle = Yii::app()->name;
?>
<h1>Welcome home</h1>
<?php
<h1>Управление базой данных</h1>
<?php
if (!Yii::app()->user->isGuest)
{
$this->widget('zii.widgets.CMenu',array(
'items'=>array(
array('label' => 'Photo', 'url' => array('photo/admin')),
array('label' => 'Album', 'url' => array('album/admin')),
array('label' => 'Manage Photo in Album', 'url' => array('photoAlbumRelation/admin')),
array('label' => 'Video', 'url' => array('video/admin')),
array('label' => 'Channel', 'url' => array('channel/admin')),
array('label' => 'Manage Video in Channel', 'url' => array('videoChannelRelation/admin')),
array('label' => 'Article', 'url' => array('article/admin')),
array('label' => 'Manage Album in Article', 'url' => array('albumArticleRelation/admin')),
array('label' => 'Manage Channel in Article', 'url' => array('channelArticleRelation/admin')),
array('label' => 'Journal', 'url' => array('journal/admin')),
array('label' => 'Manage Article in Journal', 'url' => array('articleJournalRelation/admin')),
array('label' => 'Translation', 'url' => array('translation/admin')),
),
));
$this->widget('zii.widgets.CMenu', array(
'items' => array(
array('label' => 'Photo', 'url' => array('photo/admin')),
array('label' => 'Album', 'url' => array('album/admin')),
array('label' => 'Manage Photo in Album', 'url' => array('photoAlbumRelation/admin')),
array('label' => 'Video', 'url' => array('video/admin')),
array('label' => 'Channel', 'url' => array('channel/admin')),
array('label' => 'Manage Video in Channel', 'url' => array('videoChannelRelation/admin')),
array('label' => 'Article', 'url' => array('article/admin')),
array('label' => 'Manage Album in Article', 'url' => array('albumArticleRelation/admin')),
array('label' => 'Manage Channel in Article', 'url' => array('channelArticleRelation/admin')),
array('label' => 'Journal', 'url' => array('journal/admin')),
array('label' => 'Manage Article in Journal', 'url' => array('articleJournalRelation/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 "Войдите в систему для управления базой данных.";
}
?>
+3 -6
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">
<?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">
<?php echo $form->labelEx($model,'username'); ?>
@@ -34,9 +34,6 @@ $this->breadcrumbs=array(
<?php echo $form->labelEx($model,'password'); ?>
<?php echo $form->passwordField($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 class="row rememberMe">
+2 -3
View File
@@ -6,7 +6,6 @@ $this->breadcrumbs=array(
'About',
);
?>
<h1>About</h1>
<h1>О базе данных</h1>
<p>This is a "static" page. You may change the content of this page
by updating the file <code><?php echo __FILE__; ?></code>.</p>
<p>Это база данных для мобильного приложения BashGID App, которое будет презентовано на саммите ШОС БРИКС.</p>
+4 -4
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.
'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">
<?php echo $form->labelEx($model,'username'); ?>