web part of Bashgid
This commit is contained in:
1 parent
4ef60e1aa0
commit
5c5238c85f
155 files changed
+7956
No files matched your search
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
/* @var $this SiteController */
|
||||
/* @var $model ContactForm */
|
||||
/* @var $form CActiveForm */
|
||||
|
||||
$this->pageTitle=Yii::app()->name . ' - Contact Us';
|
||||
$this->breadcrumbs=array(
|
||||
'Contact',
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Contact Us</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; ?>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/* @var $this SiteController */
|
||||
/* @var $error array */
|
||||
|
||||
$this->pageTitle=Yii::app()->name . ' - Error';
|
||||
$this->breadcrumbs=array(
|
||||
'Error',
|
||||
);
|
||||
?>
|
||||
|
||||
<h2>Error <?php echo $code; ?></h2>
|
||||
|
||||
<div class="error">
|
||||
<?php echo CHtml::encode($message); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/* @var $this SiteController */
|
||||
|
||||
$this->pageTitle = Yii::app()->name;
|
||||
|
||||
?>
|
||||
|
||||
<h1>Welcome home</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')),
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/* @var $this SiteController */
|
||||
/* @var $model LoginForm */
|
||||
/* @var $form CActiveForm */
|
||||
|
||||
$this->pageTitle=Yii::app()->name . ' - Login';
|
||||
$this->breadcrumbs=array(
|
||||
'Login',
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Login</h1>
|
||||
|
||||
<p>Please fill out the following form with your login credentials:</p>
|
||||
|
||||
<div class="form">
|
||||
<?php $form=$this->beginWidget('CActiveForm', array(
|
||||
'id'=>'login-form',
|
||||
'enableClientValidation'=>true,
|
||||
'clientOptions'=>array(
|
||||
'validateOnSubmit'=>true,
|
||||
),
|
||||
)); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'username'); ?>
|
||||
<?php echo $form->textField($model,'username'); ?>
|
||||
<?php echo $form->error($model,'username'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?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">
|
||||
<?php echo $form->checkBox($model,'rememberMe'); ?>
|
||||
<?php echo $form->label($model,'rememberMe'); ?>
|
||||
<?php echo $form->error($model,'rememberMe'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row buttons">
|
||||
<?php echo CHtml::submitButton('Login'); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
</div><!-- form -->
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/* @var $this SiteController */
|
||||
|
||||
$this->pageTitle=Yii::app()->name . ' - About';
|
||||
$this->breadcrumbs=array(
|
||||
'About',
|
||||
);
|
||||
?>
|
||||
<h1>About</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>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/* @var $this RegisterFormController */
|
||||
/* @var $model RegisterForm */
|
||||
/* @var $form CActiveForm */
|
||||
|
||||
$this->pageTitle=Yii::t('app', Yii::app()->name) . ' - ' . Yii::t('app', 'Register');
|
||||
?>
|
||||
|
||||
<div class="form">
|
||||
|
||||
<?php $form=$this->beginWidget('CActiveForm', array(
|
||||
'id'=>'register-form-register-form',
|
||||
// Please note: When you enable ajax validation, make sure the corresponding
|
||||
// controller action is handling ajax validation correctly.
|
||||
// See class documentation of CActiveForm for details on this,
|
||||
// you need to use the performAjaxValidation()-method described there.
|
||||
'enableAjaxValidation'=>false,
|
||||
)); ?>
|
||||
<h1><?=Yii::t('app', 'Register')?></h1>
|
||||
|
||||
<p><?=Yii::t('app', 'Please fill out the registation form')?></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'); ?>
|
||||
<?php echo $form->error($model,'username'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'password'); ?>
|
||||
<?php echo $form->passwordField($model,'password'); ?>
|
||||
<?php echo $form->error($model,'password'); ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php echo $form->labelEx($model,'email'); ?>
|
||||
<?php echo $form->emailField($model,'email'); ?>
|
||||
<?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(Yii::t('app', 'Register')); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
Reference in new issue
Block a user