diff options
| author | tzur <tzur@ccwn.org> | 2012-04-15 15:30:09 +0200 |
|---|---|---|
| committer | tzur <tzur@ccwn.org> | 2012-04-15 15:30:09 +0200 |
| commit | 5b2095abddf9d0596a7715879357e8d9a3b786b2 (patch) | |
| tree | 0c2b6fdc1484b697b1a3740582a906fb51c1d64f /protected/views/site/contact.php | |
Initial version
Diffstat (limited to 'protected/views/site/contact.php')
| -rw-r--r-- | protected/views/site/contact.php | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/protected/views/site/contact.php b/protected/views/site/contact.php new file mode 100644 index 0000000..51f90a9 --- /dev/null +++ b/protected/views/site/contact.php @@ -0,0 +1,81 @@ +<?php +$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; ?>
\ No newline at end of file |
