Started working on Navbar
This commit is contained in:
@@ -1,85 +0,0 @@
|
||||
<?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; ?>
|
||||
@@ -2,14 +2,14 @@
|
||||
/* @var $this SiteController */
|
||||
/* @var $error array */
|
||||
|
||||
$this->pageTitle=Yii::app()->name . ' - Error';
|
||||
$this->breadcrumbs=array(
|
||||
'Error',
|
||||
);
|
||||
$this->pageTitle=Yii::app()->name . ' - Error';
|
||||
|
||||
$this->breadcrumbs=array(
|
||||
'Error',
|
||||
);
|
||||
|
||||
$this->widget('bootstrap.widgets.TbHeroUnit', array(
|
||||
'heading' => 'ERROR ' . $code,
|
||||
'content' => $message,
|
||||
));
|
||||
?>
|
||||
|
||||
<h2>Error <?php echo $code; ?></h2>
|
||||
|
||||
<div class="error">
|
||||
<?php echo CHtml::encode($message); ?>
|
||||
</div>
|
||||
@@ -2,19 +2,83 @@
|
||||
/* @var $this SiteController */
|
||||
|
||||
$this->pageTitle=Yii::app()->name;
|
||||
|
||||
$this->breadcrumbs=
|
||||
[
|
||||
'Index'
|
||||
];
|
||||
?>
|
||||
|
||||
<h1>Welcome to <i><?php echo CHtml::encode(Yii::app()->name); ?></i></h1>
|
||||
<div class="container">
|
||||
|
||||
<p>Congratulations! You have successfully created your Yii application.</p>
|
||||
<!-- Main hero unit for a primary marketing message or call to action -->
|
||||
<div class="hero-unit">
|
||||
<h1>Hello, world!</h1>
|
||||
|
||||
<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>
|
||||
|
||||
<ul>
|
||||
<li>View file: <code><?php echo __FILE__; ?></code></li>
|
||||
<li>Layout file: <code><?php echo $this->getLayoutFile('main'); ?></code></li>
|
||||
</ul>
|
||||
|
||||
</p>
|
||||
|
||||
<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>
|
||||
<p><a class="btn btn-primary btn-large">Learn more »</a></p>
|
||||
</div>
|
||||
|
||||
<!-- Example row of columns -->
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h2>Heading YD: <?php echo YII_DEBUG ?></h2>
|
||||
|
||||
<p>
|
||||
|
||||
<?php
|
||||
$connection = Yii::app()->db;
|
||||
|
||||
$command=$connection->createCommand("SELECT * FROM programme");
|
||||
$command->execute(); // a non-query SQL statement execution
|
||||
// or execute an SQL query and fetch the result set
|
||||
$reader=$command->query();
|
||||
|
||||
// each $row is an array representing a row of data
|
||||
$dbgtxt = "";
|
||||
foreach($reader as $row)
|
||||
{
|
||||
$dbgtxt = $dbgtxt . print_r($row, true);
|
||||
}
|
||||
|
||||
echo TbHtml::textArea('dbgtxt', $dbgtxt, array('rows' => 5));
|
||||
?>
|
||||
|
||||
</p>
|
||||
|
||||
<p><a class="btn" href="#">View details »</a></p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h2>Heading</h2>
|
||||
|
||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
|
||||
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis
|
||||
euismod. Donec sed odio dui. </p>
|
||||
|
||||
<p><a class="btn" href="#">View details »</a></p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h2>Heading</h2>
|
||||
|
||||
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula
|
||||
porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
|
||||
fermentum massa justo sit amet risus.</p>
|
||||
|
||||
<p><a class="btn" href="#">View details »</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<footer>
|
||||
<p>© Company 2012</p>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -1,53 +0,0 @@
|
||||
<?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 -->
|
||||
@@ -1,12 +0,0 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user