4 $this->
pageTitle=Yii::app()->name .
' - Interface Elements';
11 $sample_text =
'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.';
13 <div
class=
"page-header">
14 <h1>Interface elements</h1>
17 <div
class=
"row-fluid">
20 $this->beginWidget(
'zii.widgets.CPortlet', array(
21 'title'=>
"CJuiAccordion",
26 $this->widget(
'zii.widgets.jui.CJuiAccordion', array(
37 'animated'=>
'bounceslide',
41 <?php $this->endWidget();?>
46 $this->beginWidget(
'zii.widgets.CPortlet', array(
47 'title'=>
"HTML accordion",
51 <div
class=
"accordion" id=
"accordion2">
52 <div
class=
"accordion-group">
53 <div
class=
"accordion-heading">
54 <a
class=
"accordion-toggle" data-toggle=
"collapse" data-parent=
"#accordion2" href=
"#collapseOne">
55 Collapsible Group Item #1
58 <div
id=
"collapseOne" class=
"accordion-body collapse in">
59 <div
class=
"accordion-inner">
64 <div
class=
"accordion-group">
65 <div
class=
"accordion-heading">
66 <a
class=
"accordion-toggle" data-toggle=
"collapse" data-parent=
"#accordion2" href=
"#collapseTwo">
67 Collapsible Group Item #2
70 <div
id=
"collapseTwo" class=
"accordion-body collapse">
71 <div
class=
"accordion-inner">
76 <div
class=
"accordion-group">
77 <div
class=
"accordion-heading">
78 <a
class=
"accordion-toggle" data-toggle=
"collapse" data-parent=
"#accordion2" href=
"#collapseThree">
79 Collapsible Group Item #3
82 <div
id=
"collapseThree" class=
"accordion-body collapse">
83 <div
class=
"accordion-inner">
88 <div
class=
"accordion-group">
89 <div
class=
"accordion-heading">
90 <a
class=
"accordion-toggle" data-toggle=
"collapse" data-parent=
"#accordion2" href=
"#collapseFour">
91 Collapsible Group Item #4
94 <div
id=
"collapseFour" class=
"accordion-body collapse">
95 <div
class=
"accordion-inner">
103 <?php $this->endWidget();?>
107 <div
class=
"row-fluid">
110 $this->beginWidget(
'zii.widgets.CPortlet', array(
116 $this->widget(
'zii.widgets.jui.CJuiTabs', array(
118 'StaticTab 1'=>$sample_text,
119 'StaticTab 2'=>$sample_text,
120 'StaticTab 3'=>array(
'content'=>$sample_text,
'id'=>
'tab3'),
128 <?php $this->endWidget();?>
133 $this->beginWidget(
'zii.widgets.CPortlet', array(
138 <p>This content is in a portlet</p>
139 <pre><?php $this->beginWidget(
'zii.widgets.CPortlet'); ?> <br />...insert content here... <br /><?php $this->endWidget(); ?></pre>
141 <?php $this->endWidget();?>
145 <div
class=
"row-fluid">
148 $this->beginWidget(
'zii.widgets.CPortlet', array(
149 'title'=>
"CJuiAutoComplete",
153 <p>Type <code>john</code> in the fild to see it at work</p>
155 $this->widget(
'zii.widgets.jui.CJuiAutoComplete', array(
157 'source'=>array(
'John Doe',
'John Murry',
'Ben John',
'Johnny Walker'),
162 'htmlOptions'=>array(
163 'style'=>
'height:20px;'
168 <?php $this->endWidget();?>
173 $this->beginWidget(
'zii.widgets.CPortlet', array(
174 'title'=>
"CJuiDatePicker",
178 <p>Click on the element below to see date picker</p>
180 $this->widget(
'zii.widgets.jui.CJuiDatePicker', array(
181 'name'=>
'publishDate',
186 'htmlOptions'=>array(
187 'style'=>
'height:20px;'
192 <?php $this->endWidget();?>
196 <div
class=
"row-fluid">
199 $this->beginWidget(
'zii.widgets.CPortlet', array(
200 'title'=>
"CJuiButton",
206 $this->widget(
'zii.widgets.jui.CJuiButton', array(
210 'onclick'=>
new CJavaScriptExpression(
'function(){alert("Save button has been clicked"); this.blur(); return false;}'),
213 $this->widget(
'zii.widgets.jui.CJuiButton', array(
217 'htmlOptions'=>array(
'class'=>
'btn btn-primary'),
218 'onclick'=>
new CJavaScriptExpression(
'function(){alert("Save button has been clicked"); this.blur(); return false;}'),
221 $this->widget(
'zii.widgets.jui.CJuiButton', array(
225 'htmlOptions'=>array(
'class'=>
'btn btn-info'),
226 'onclick'=>
new CJavaScriptExpression(
'function(){alert("Save button has been clicked"); this.blur(); return false;}'),
229 $this->widget(
'zii.widgets.jui.CJuiButton', array(
233 'htmlOptions'=>array(
'class'=>
'btn btn-success'),
234 'onclick'=>
new CJavaScriptExpression(
'function(){alert("Save button has been clicked"); this.blur(); return false;}'),
237 $this->widget(
'zii.widgets.jui.CJuiButton', array(
241 'htmlOptions'=>array(
'class'=>
'btn btn-warning'),
242 'onclick'=>
new CJavaScriptExpression(
'function(){alert("Save button has been clicked"); this.blur(); return false;}'),
245 $this->widget(
'zii.widgets.jui.CJuiButton', array(
249 'htmlOptions'=>array(
'class'=>
'btn btn-danger'),
250 'onclick'=>
new CJavaScriptExpression(
'function(){alert("Save button has been clicked"); this.blur(); return false;}'),
253 <?php $this->endWidget();?>
258 $this->beginWidget(
'zii.widgets.CPortlet', array(
259 'title'=>
"CJuiDialog",
265 $this->beginWidget(
'zii.widgets.jui.CJuiDialog', array(
269 'title'=>
'Dialog box 1',
276 $this->endWidget(
'zii.widgets.jui.CJuiDialog');
279 $dialog_button =
'<button type="button" class="btn btn-primary" data-loading-text="Loading...">Open dialog</button>';
281 'onclick'=>
'$("#mydialog").dialog("open"); return false;',
285 <?php $this->endWidget();?>
289 <div
class=
"row-fluid">
292 $this->beginWidget(
'zii.widgets.CPortlet', array(
293 'title'=>
"CJuiProgressBar",
296 <p>Standard progress bar</p>
297 <p><code> with no styles
defined</code></p>
299 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
303 <p>Striped progress bar</p>
304 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-striped'),</code></p>
307 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
309 'htmlOptions'=>array(
'class'=>
'progress progress-striped'),
312 <p>Striped scrolling progress bar</p>
313 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-striped active'),</code></p>
315 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
317 'htmlOptions'=>array(
'class'=>
'progress-striped active'),
320 <p>Different colors to chose from</p>
321 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-info'),</code></p>
323 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
325 'htmlOptions'=>array(
'class'=>
'progress-info'),
328 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-success')</code></p>
330 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
332 'htmlOptions'=>array(
'class'=>
'progress-success'),
335 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-warning'),</code></p>
337 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
339 'htmlOptions'=>array(
'class'=>
'progress-warning'),
342 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-danger'),</code></p>
344 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
346 'htmlOptions'=>array(
'class'=>
'progress-danger'),
349 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-info progress-striped'),</code></p>
351 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
353 'htmlOptions'=>array(
'class'=>
'progress-info progress-striped'),
356 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-success progress-striped'),</code></p>
358 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
360 'htmlOptions'=>array(
'class'=>
'progress-success progress-striped'),
363 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-warning progress-striped'),</code></p>
365 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
367 'htmlOptions'=>array(
'class'=>
'progress-warning progress-striped'),
370 <p><code>
'htmlOptions'=>array(
'class'=>
'progress-danger progress-striped'),</code></p>
372 $this->widget(
'zii.widgets.jui.CJuiProgressBar', array(
374 'htmlOptions'=>array(
'class'=>
'progress-danger progress-striped'),
377 <?php $this->endWidget();?>
382 $this->beginWidget(
'zii.widgets.CPortlet', array(
383 'title'=>
"HTML - Progress bar",
387 <p>Standard progress bar</p>
388 <p><code>.progress</code></p>
389 <div
class=
"progress">
390 <div
class=
"bar" style=
"width: 30%;"></div>
392 <p>Striped progress bar</p>
393 <p><code>.progress-striped</code></p>
394 <div
class=
"progress progress-striped">
395 <div
class=
"bar" style=
"width: 40%;"></div>
397 <p>Striped active progress bar</p>
398 <p><code>.progress-striped .active</code></p>
399 <div
class=
"progress progress-striped active">
400 <div
class=
"bar" style=
"width: 50%;"></div>
402 <p>Different colors to chose from</p>
403 <p><code>.progress-info</code></p>
404 <div
class=
"progress progress-info">
405 <div
class=
"bar" style=
"width: 60%;"></div>
407 <p><code>.progress-success</code></p>
408 <div
class=
"progress progress-success">
409 <div
class=
"bar" style=
"width: 70%;"></div>
411 <p><code>.progress-warning</code></p>
412 <div
class=
"progress progress-warning">
413 <div
class=
"bar" style=
"width: 80%;"></div>
415 <p><code>.progress-danger</code></p>
416 <div
class=
"progress progress-danger">
417 <div
class=
"bar" style=
"width: 90%;"></div>
419 <p><code>.progress-info .progress-striped</code></p>
420 <div
class=
"progress progress-info progress-striped">
421 <div
class=
"bar" style=
"width: 90%;"></div>
423 <p><code>.progress-success .progress-striped</code></p>
424 <div
class=
"progress progress-success progress-striped">
425 <div
class=
"bar" style=
"width: 80%;"></div>
427 <p><code>.progress-warning .progress-striped</code></p>
428 <div
class=
"progress progress-warning progress-striped">
429 <div
class=
"bar" style=
"width: 70%;"></div>
431 <p><code>.progress-danger .progress-striped</code></p>
432 <div
class=
"progress progress-danger progress-striped">
433 <div
class=
"bar" style=
"width: 60%;"></div>
436 <?php $this->endWidget();?>
440 <div
class=
"row-fluid">
443 $this->beginWidget(
'zii.widgets.CPortlet', array(
444 'title'=>
"CJuiSlider",
448 <p><code> with no style
defined</code></p>
450 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
455 <p><code>.progress-info</code></p>
457 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
459 'htmlOptions'=>array(
'class'=>
'progress-info'),
462 <p><code>.progress-success</code></p>
464 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
466 'htmlOptions'=>array(
'class'=>
'progress-success'),
469 <p><code>.progress-warning</code></p>
471 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
473 'htmlOptions'=>array(
'class'=>
'progress-warning'),
476 <p><code>.progress-danger</code></p>
478 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
480 'htmlOptions'=>array(
'class'=>
'progress-danger'),
484 <p><code>.progress-striped</code></p>
486 $this->widget(
'zii.widgets.jui.CJuiSlider', array(
488 'htmlOptions'=>array(
'class'=>
'progress-striped'),
491 <?php $this->endWidget();?>
496 $this->beginWidget(
'zii.widgets.CPortlet', array(
497 'title'=>
"CJuiSlider - vertical",
501 <?php $this->endWidget();?>