EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
forms.php
Go to the documentation of this file.
1 <?php
2 $this->pageTitle=Yii::app()->name . ' - Form Elements';
3 $this->breadcrumbs=array(
4  'Form Elements',
5 );
6 ?>
7 <h1>Form Elements</h1>
8 <div class="container showgrid">
9  <div class="form">
10  <div class="span-12">
11  <div class="row">
12  <label for="text" class="required">Name:</label>
13  <?php echo CHtml::textField('text', 'Sample content....',array('style' => 'width:300px'));?>
14  </div>
15  <div class="row">
16  <label for="text3">Phone #:</label>
17  <?php echo CHtml::textField('text3', '+111-222-33333',array('style' => 'width:300px'));?>
18  <span class="field_name_help">Field help text.</span>
19  </div>
20 
21  <div class="row">
22  <label for="dropdown">Satus:</label>
23  <?php echo CHtml::dropDownList('dropdown', 'In-active', array('Active'=>'Active','In-active'=>'In-active'),array('style' => 'width:100px'));?>
24  <span class="field_name_help">Please select status.</span>
25  </div>
26  <div class="row">
27  <label for="checkbox">Is Admin:</label>
28  <?php echo CHtml::checkBox('checkbox', true);?>
29  <span class="field_name_help">Is this user an admin?.</span>
30  </div>
31  <div class="row">
32  <label for="checkbox">Biography:</label>
33  <?php echo CHtml::textArea('textarea','', array ( 'rows'=>'10','cols' => '60')); ?>
34  </div>
35 
36 
37  </div>
38 
39  <div class="span-11 last">
40  <div class="row">
41  <label for="street">Street Adress:</label>
42  <?php echo CHtml::textField('street');?>
43  </div>
44  <div class="row">
45  <label for="city">City:</label>
46  <?php echo CHtml::textField('city');?>
47  </div>
48  <div class="row">
49  <label for="country">Country:</label>
50  <?php echo CHtml::textField('country');?>
51  </div>
52  <div class="row">
53  <label for="car_id">Car Type:</label>
54  <div class="cars-select">
55  <?php echo CHtml::dropDownList('Cars', 'car_id', array(
56  'Mazda'=>array(
57  'mazda-rx7'=>'RX7',
58  'mazda-rx5'=>'RX5',
59  ),
60  'Volvo'=>array(
61  'volvo-b9tl'=>'B9TL',
62  'volvo-l90e-radlader'=>'L90E Radlader',
63  ),
64  )); ?>
65 </div>
66  </div>
67  <div class="row">
68  <?php echo CHtml::htmlButton('button 1', array('class'=>'button green'));?>
69  <?php echo CHtml::htmlButton('button 2', array('class'=>'button blue'));?>
70  <?php echo CHtml::htmlButton('button 3', array('class'=>'button red'));?><br /><br />
71  <?php echo CHtml::htmlButton('button 4', array('class'=>'button grey'));?>
72  <?php echo CHtml::htmlButton('button 5', array('class'=>'button yellow'));?>
73  </div>
74  </div>
75  </div><!-- form -->
76 
77 
78 </div>
79 <br />
80 <div class="flash-notice">
81 <p>This is a "static" page. You may change the content of this page
82 by updating the file <tt><?php echo __FILE__; ?></tt>.</p>
83 </div>