2 $this->
pageTitle=Yii::app()->name .
' - Form Elements';
8 <div
class=
"container showgrid">
12 <label
for=
"text" class=
"required">Name:</label>
13 <?php echo CHtml::textField(
'text',
'Sample content....',array(
'style' =>
'width:300px'));?>
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>
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>
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>
32 <label
for=
"checkbox">Biography:</label>
33 <?php echo CHtml::textArea(
'textarea',
'', array (
'rows'=>
'10',
'cols' =>
'60')); ?>
39 <div
class=
"span-11 last">
41 <label
for=
"street">Street Adress:</label>
42 <?php echo CHtml::textField(
'street');?>
45 <label
for=
"city">City:</label>
46 <?php echo CHtml::textField(
'city');?>
49 <label
for=
"country">Country:</label>
50 <?php echo CHtml::textField(
'country');?>
53 <label
for=
"car_id">Car Type:</label>
54 <div
class=
"cars-select">
55 <?php echo CHtml::dropDownList(
'Cars',
'car_id', array(
62 'volvo-l90e-radlader'=>
'L90E Radlader',
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'));?>
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>