first commit
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/* @var $this SiteController */
|
||||
/* @var $model ContactForm */
|
||||
/* @var $form TbActiveForm */
|
||||
|
||||
$this->pageTitle=Yii::app()->name . ' - Contact Us';
|
||||
$this->breadcrumbs=array(
|
||||
'Contact',
|
||||
);
|
||||
?>
|
||||
|
||||
<h1>Contact Us</h1>
|
||||
|
||||
<?php if(Yii::app()->user->hasFlash('contact')): ?>
|
||||
|
||||
<?php $this->widget('bootstrap.widgets.TbAlert', array(
|
||||
'alerts'=>array('contact'),
|
||||
)); ?>
|
||||
|
||||
<?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('bootstrap.widgets.TbActiveForm', array(
|
||||
'id'=>'contact-form',
|
||||
'type'=>'horizontal',
|
||||
'enableClientValidation'=>true,
|
||||
'clientOptions'=>array(
|
||||
'validateOnSubmit'=>true,
|
||||
),
|
||||
)); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<?php echo $form->errorSummary($model); ?>
|
||||
|
||||
<?php echo $form->textFieldRow($model,'name'); ?>
|
||||
|
||||
<?php echo $form->textFieldRow($model,'email'); ?>
|
||||
|
||||
<?php echo $form->textFieldRow($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
|
||||
|
||||
<?php echo $form->textAreaRow($model,'body',array('rows'=>6, 'class'=>'span8')); ?>
|
||||
|
||||
<?php if(CCaptcha::checkRequirements()): ?>
|
||||
<?php echo $form->captchaRow($model,'verifyCode',array(
|
||||
'hint'=>'Please enter the letters as they are shown in the image above.<br/>Letters are not case-sensitive.',
|
||||
)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<?php $this->widget('bootstrap.widgets.TbButton',array(
|
||||
'buttonType'=>'submit',
|
||||
'type'=>'primary',
|
||||
'label'=>'Submit',
|
||||
)); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/* @var $this SiteController */
|
||||
|
||||
$this->pageTitle=Yii::app()->name;
|
||||
?>
|
||||
|
||||
<?php $this->beginWidget('bootstrap.widgets.TbHeroUnit',array(
|
||||
'heading'=>'Welcome to '.CHtml::encode(Yii::app()->name),
|
||||
)); ?>
|
||||
|
||||
<p>Congratulations! You have successfully created your Yii application.</p>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
<p>You may change the content of this page by modifying the following two files:</p>
|
||||
|
||||
<ul>
|
||||
<li>View file: <code><?php echo __FILE__; ?></code></li>
|
||||
<li>Layout file: <code><?php echo $this->getLayoutFile('main'); ?></code></li>
|
||||
</ul>
|
||||
|
||||
<p>For more details on how to further develop this application, please read
|
||||
the <a href="http://www.yiiframework.com/doc/">documentation</a>.
|
||||
Feel free to ask in the <a href="http://www.yiiframework.com/forum/">forum</a>,
|
||||
should you have any questions.</p>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?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('bootstrap.widgets.TbActiveForm', array(
|
||||
'id'=>'login-form',
|
||||
'type'=>'horizontal',
|
||||
'enableClientValidation'=>true,
|
||||
'clientOptions'=>array(
|
||||
'validateOnSubmit'=>true,
|
||||
),
|
||||
)); ?>
|
||||
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
|
||||
<?php echo $form->textFieldRow($model,'username'); ?>
|
||||
|
||||
<?php echo $form->passwordFieldRow($model,'password',array(
|
||||
'hint'=>'Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>',
|
||||
)); ?>
|
||||
|
||||
<?php echo $form->checkBoxRow($model,'rememberMe'); ?>
|
||||
|
||||
<div class="form-actions">
|
||||
<?php $this->widget('bootstrap.widgets.TbButton', array(
|
||||
'buttonType'=>'submit',
|
||||
'type'=>'primary',
|
||||
'label'=>'Login',
|
||||
)); ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endWidget(); ?>
|
||||
|
||||
</div><!-- form -->
|
||||
Reference in New Issue
Block a user