EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
contact.php
Go to the documentation of this file.
1 <?php
2 $this->pageTitle=Yii::app()->name . ' - Contact Us';
3 $this->breadcrumbs=array(
4  'Contact',
5 );
6 ?>
7 
8 <h1>Contact Us</h1>
9 
10 <?php if(Yii::app()->user->hasFlash('contact')): ?>
11 
12 <div class="flash-success">
13  <?php echo Yii::app()->user->getFlash('contact'); ?>
14 </div>
15 
16 <?php else: ?>
17 
18 <p>
19 If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
20 </p>
21 
22 <div class="form">
23 
24 <?php $form=$this->beginWidget('CActiveForm', array(
25  'id'=>'contact-form',
26  'enableClientValidation'=>true,
27  'clientOptions'=>array(
28  'validateOnSubmit'=>true,
29  ),
30 )); ?>
31 
32  <p class="note">Fields with <span class="required">*</span> are required.</p>
33 
34  <?php echo $form->errorSummary($model); ?>
35 
36  <div class="row">
37  <?php echo $form->labelEx($model,'name'); ?>
38  <?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>128)); ?>
39  <?php echo $form->error($model,'name'); ?>
40  </div>
41 
42  <div class="row">
43  <?php echo $form->labelEx($model,'email'); ?>
44  <?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128)); ?>
45  <?php echo $form->error($model,'email'); ?>
46  </div>
47 
48  <div class="row">
49  <?php echo $form->labelEx($model,'subject'); ?>
50  <?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
51  <?php echo $form->error($model,'subject'); ?>
52  </div>
53 
54  <div class="row">
55  <?php echo $form->labelEx($model,'body'); ?>
56  <?php echo $form->textArea($model,'body',array('rows'=>10, 'cols'=>60)); ?>
57  <?php echo $form->error($model,'body'); ?>
58  </div>
59 
60  <?php if(CCaptcha::checkRequirements()): ?>
61  <div class="row">
62  <?php echo $form->labelEx($model,'verifyCode'); ?>
63  <div>
64  <?php $this->widget('CCaptcha'); ?>
65  <br />
66  <?php echo $form->textField($model,'verifyCode'); ?>
67  </div>
68  <div class="hint">Please enter the letters as they are shown in the image above.
69  <br/>Letters are not case-sensitive.</div>
70  <?php echo $form->error($model,'verifyCode'); ?>
71  </div>
72  <?php endif; ?>
73 
74  <div class="row buttons">
75  <?php echo CHtml::submitButton('Submit',array('class'=>'button grey')); ?>
76  </div>
77 
78 <?php $this->endWidget(); ?>
79 
80 </div><!-- form -->
81 
82 <?php endif; ?>