Preview: contactus.php
Size: 2.51 KB
/home/jambtst2015/public_html/protected/views/webadmin/contactus.php
<div class="exambody-wrapper">
<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */
?>
<h1>Setup Contact Us</h1>
<?php if(Yii::app()->user->hasFlash('error')): ?>
<div class="flash-error">
<?php echo Yii::app()->user->getFlash('error'); ?>
</div>
<?php endif; ?>
<?php if(Yii::app()->user->hasFlash('contactus')): ?>
<div class="flash-success">
<?php echo Yii::app()->user->getFlash('contactus'); ?>
</div>
<?php else: ?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'exambody-form',
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
),
'htmlOptions' => array(
'enctype' => 'multipart/form-data',
),
)); ?>
<p class="note new_note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<div class="row">
<?php echo $form->labelEx($model,'email'); ?>
<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>255,'value'=>$editRecord['email'])); ?>
<?php echo $form->error($model,'email'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'phone'); ?>
<?php echo $form->textField($model,'phone',array('size'=>60,'maxlength'=>255,'value'=>$editRecord['phone'])); ?>
<?php echo $form->error($model,'phone'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'address'); ?>
<?php echo $form->textArea($model, 'address',array('value'=>$editRecord['address'])); ?>
<?php echo $form->error($model,'address'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'googlemapcode'); ?>
<?php echo $form->textArea($model, 'googlemapcode',array('value'=>$editRecord['googlemap'])); ?>
<?php echo $form->error($model,'googlemapcode'); ?>
</div>
<div style="padding-top:10px;"><font style="color:#F00">*</font>Google map best width : 450px height : 197px (If required you can generate the code from here : http://www.trivoo.net/google-maps/ or http://map-generator.net/en )</div>
<div class="clear"></div>
<div class="row buttons">
<?php echo CHtml::submitButton('Submit'); ?>
<a href="javascript:window.history.back();" style="text-decoration:none">
<?php echo CHtml::Button('Cancel'); ?>
</a>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
<?php endif; ?>
</div>
Directory Contents
Dirs: 1 × Files: 36