4 $cs = Yii::app()->getClientScript();
7 $this->
pageTitle=Yii::app()->name .
' - Interface Elements';
12 $sample_content =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis diam, facilisis nec egestas quis, pharetra eget diam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis diam, facilisis nec egestas quis, pharetra eget diam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis diam, facilisis nec egestas quis, pharetra eget diam.';
14 <h1>Interface Elements</h1>
16 <h2>Flash Messages</h2>
17 <div
class=
"flash-notice"><b>NOTICE:</b> This is an example of a notice message.</div>
18 <div
class=
"flash-success"><b>SUCCESS:</b> This is an example of a success message to show you that things have gone according to plan.</div>
19 <div
class=
"flash-error"><b>ERROR:</b> This is an example of an error message to show you that things have gone wrong.</div>
21 <div
class=
"container showgrid">
26 $this->widget(
'zii.widgets.jui.CJuiTabs', array(
37 'htmlOptions'=>array(
'class'=>
'shadowtabs'),
43 <h2>CJuiAccordion</h2>
45 $this->widget(
'zii.widgets.jui.CJuiAccordion', array(
55 'animated'=>
'bounceslide',
57 'htmlOptions'=>array(
'class'=>
'shadowaccordion'),
61 <div
class=
"span-11 last">
62 <h2>CJuiProgressBar</h2>
64 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
67 'style'=>
'height:20px;',
68 'class'=>
'shadowprogressbar'
74 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
77 'style'=>
'height:20px;',
78 'class'=>
'shadowprogressbar'
84 <label
for=
"amt">Volume:</label>
85 <input type=
"text" id=
"amt" style=
"border:0; font-weight:bold;" value=
"35" />
87 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
94 'slide'=>
'js:function(event, ui) { $("#amt").val(ui.value);}',
97 'class'=>
'shadowslider'
103 <label
for=
"amt1">Volume:</label>
104 <input type=
"text" id=
"amt1" style=
"border:0; font-weight:bold;" value=
"15"/>
106 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
112 'slide'=>
'js:function(event, ui) { $("#amt1").val(ui.value);}',
114 'htmlOptions'=>array(
115 'class'=>
'shadowslider-dark'
122 <h2>CJuiSliderInput</h2>
124 $this->widget(
'zii.widgets.jui.CJuiSliderInput', array(
132 'htmlOptions'=>array(
133 'class'=>
'shadowslider'
140 $this->widget(
'zii.widgets.jui.CJuiSliderInput', array(
148 'htmlOptions'=>array(
149 'class'=>
'shadowslider'
157 $this->widget(
'zii.widgets.jui.CJuiButton',
160 'caption'=>
'Click on me!',
162 'htmlOptions'=>array(
163 'style'=>
'height:40px;',
164 'class'=>
'shadowbutton'
166 'onclick'=>
'js:function(){alert("The button has been clicked!"); this.blur(); return false;}',
172 $this->widget(
'zii.widgets.jui.CJuiButton',
175 'caption'=>
'Click on me!',
177 'htmlOptions'=>array(
178 'style'=>
'height:40px;',
179 'class'=>
'button green'
181 'onclick'=>
'js:function(){alert("The button has been clicked!"); this.blur(); return false;}',
187 $this->widget(
'zii.widgets.jui.CJuiButton',
190 'caption'=>
'Click on me!',
192 'htmlOptions'=>array(
193 'style'=>
'height:40px;',
194 'class'=>
'button red'
196 'onclick'=>
'js:function(){alert("The button has been clicked!"); this.blur(); return false;}',
203 $this->widget(
'zii.widgets.jui.CJuiButton',
206 'caption'=>
'Click on me!',
208 'htmlOptions'=>array(
209 'style'=>
'height:40px;',
210 'class'=>
' button blue'
212 'onclick'=>
'js:function(){alert("The button has been clicked!"); this.blur(); return false;}',
217 $this->widget(
'zii.widgets.jui.CJuiButton',
220 'caption'=>
'Click on me!',
222 'htmlOptions'=>array(
223 'style'=>
'height:40px;',
224 'class'=>
' button yellow'
226 'onclick'=>
'js:function(){alert("The button has been clicked!"); this.blur(); return false;}',
231 $this->widget(
'zii.widgets.jui.CJuiButton',
234 'caption'=>
'Click on me!',
236 'htmlOptions'=>array(
237 'style'=>
'height:40px;'
239 'onclick'=>
'js:function(){alert("The button has been clicked!"); this.blur(); return false;}',
246 $this->widget(
'zii.widgets.jui.CJuiButton',
249 'caption'=>
'Click on me!',
251 'htmlOptions'=>array(
252 'style'=>
'height:40px;',
253 'class'=>
' button grey'
255 'onclick'=>
'js:function(){alert("The button has been clicked!"); this.blur(); return false;}',
260 <h2>CJuiDatePicker</h2>
262 $this->widget(
'zii.widgets.jui.CJuiDatePicker', array(
263 'name'=>
'publishDate',
268 'htmlOptions'=>array(
269 'class'=>
'shadowdatepicker'
279 $this->beginWidget(
'zii.widgets.jui.CJuiDialog', array(
283 'title'=>
'Dialog box 1',
286 'htmlOptions'=>array(
287 'class'=>
'shadowdialog'
291 echo
'dialog content here';
293 $this->endWidget(
'zii.widgets.jui.CJuiDialog');
296 echo CHtml::link(
'open dialog',
'#', array(
297 'onclick'=>
'$("#mydialog").dialog("open"); return false;',
306 <div
class=
"flash-notice">
307 <p>This is a
"static" page. You may change the content of
this page
308 by updating the file <tt><?php echo __FILE__; ?></tt>.</p>