HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
contact.php
Go to the documentation of this file.
1 <?php
2 /* @var $this SiteController */
3 /* @var $model ContactForm */
4 /* @var $form TbActiveForm */
5 
6 $this->pageTitle=Yii::app()->name . ' - Contact Us';
7 $this->breadcrumbs=array(
8  'Contact',
9 );
10 ?>
11 
12 <h1>Contact Us</h1>
13 
14 <?php if(Yii::app()->user->hasFlash('contact')): ?>
15 
16  <?php $this->widget('bootstrap.widgets.TbAlert', array(
17  'alerts'=>array('contact'),
18  )); ?>
19 
20 <?php else: ?>
21 
22 <p>
23 If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
24 </p>
25 
26 <div class="form">
27 
28 <?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
29  'id'=>'contact-form',
30  'type'=>'horizontal',
31  'enableClientValidation'=>true,
32  'clientOptions'=>array(
33  'validateOnSubmit'=>true,
34  ),
35 )); ?>
36 
37  <p class="note">Fields with <span class="required">*</span> are required.</p>
38 
39  <?php echo $form->errorSummary($model); ?>
40 
41  <?php echo $form->textFieldRow($model,'name'); ?>
42 
43  <?php echo $form->textFieldRow($model,'email'); ?>
44 
45  <?php echo $form->textFieldRow($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
46 
47  <?php echo $form->textAreaRow($model,'body',array('rows'=>6, 'class'=>'span8')); ?>
48 
49  <?php if(CCaptcha::checkRequirements()): ?>
50  <?php echo $form->captchaRow($model,'verifyCode',array(
51  'hint'=>'Please enter the letters as they are shown in the image above.<br/>Letters are not case-sensitive.',
52  )); ?>
53  <?php endif; ?>
54 
55  <div class="form-actions">
56  <?php $this->widget('bootstrap.widgets.TbButton',array(
57  'buttonType'=>'submit',
58  'type'=>'primary',
59  'label'=>'Submit',
60  )); ?>
61  </div>
62 
63 <?php $this->endWidget(); ?>
64 
65 </div><!-- form -->
66 
67 <?php endif; ?>