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 CActiveForm */
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 <div class="flash-success">
17  <?php echo Yii::app()->user->getFlash('contact'); ?>
18 </div>
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('CActiveForm', array(
29  'id'=>'contact-form',
30  'enableClientValidation'=>true,
31  'clientOptions'=>array(
32  'validateOnSubmit'=>true,
33  ),
34 )); ?>
35 
36  <p class="note">Fields with <span class="required">*</span> are required.</p>
37 
38  <?php echo $form->errorSummary($model); ?>
39 
40  <div class="row">
41  <?php echo $form->labelEx($model,'name'); ?>
42  <?php echo $form->textField($model,'name'); ?>
43  <?php echo $form->error($model,'name'); ?>
44  </div>
45 
46  <div class="row">
47  <?php echo $form->labelEx($model,'email'); ?>
48  <?php echo $form->textField($model,'email'); ?>
49  <?php echo $form->error($model,'email'); ?>
50  </div>
51 
52  <div class="row">
53  <?php echo $form->labelEx($model,'subject'); ?>
54  <?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
55  <?php echo $form->error($model,'subject'); ?>
56  </div>
57 
58  <div class="row">
59  <?php echo $form->labelEx($model,'body'); ?>
60  <?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
61  <?php echo $form->error($model,'body'); ?>
62  </div>
63 
64  <?php if(CCaptcha::checkRequirements()): ?>
65  <div class="row">
66  <?php echo $form->labelEx($model,'verifyCode'); ?>
67  <div>
68  <?php $this->widget('CCaptcha'); ?>
69  <?php echo $form->textField($model,'verifyCode'); ?>
70  </div>
71  <div class="hint">Please enter the letters as they are shown in the image above.
72  <br/>Letters are not case-sensitive.</div>
73  <?php echo $form->error($model,'verifyCode'); ?>
74  </div>
75  <?php endif; ?>
76 
77  <div class="row buttons">
78  <?php echo CHtml::submitButton('Submit'); ?>
79  </div>
80 
81 <?php $this->endWidget(); ?>
82 
83 </div><!-- form -->
84 
85 <?php endif; ?>