PluginProbe
CSS & JavaScript Toolbox / 12.0.6
CSS & JavaScript Toolbox v12.0.6
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
css-javascript-toolbox / views / templates / lookup / view.php

view.php in CSS & JavaScript Toolbox 12.0.6, at views/templates/lookup/view.php

82 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @version $ Id; ?FILE_NAME ?DATE ?TIME ?AUTHOR $
4 */
5
6 /**
7 * No direct access.
8 */
9 // No Direct Accesss code
10
11 /**
12 *
13 * DESCRIPTION
14 *
15 * @author ??
16 * @version ??
17 */
18 class CJTTemplatesLookupView extends CJTView {
19
20 /**
21 * put your comment there...
22 *
23 * @var mixed
24 */
25 protected static $displayNames = array
26 (
27
28 'css' => 'CSS',
29
30 'javascript' => 'JavaScript',
31
32 'html' => 'HTML',
33
34 'php' => 'PHP',
35
36 );
37
38 /**
39 * put your comment there...
40 *
41 * @var mixed
42 */
43 public $items;
44
45 /**
46 * put your comment there...
47 *
48 */
49 public function display($tpl = null) {
50 // Query templates list.
51 $this->items = $this->getModel()->getItems();
52 // Display the view.
53 echo $this->getTemplate($tpl);
54 }
55
56 /**
57 * put your comment there...
58 *
59 */
60 protected function enqueueScripts() {
61 // Get JQuery.
62 self::useScripts(__CLASS__,
63 'jquery-ui-tabs',
64 'views:templates:lookup:public:js:{CJT_TEMPLATES-}lookup'
65 );
66 }
67
68 /**
69 * put your comment there...
70 *
71 */
72 protected function enqueueStyles() {
73 self::useStyles(__CLASS__,
74 'framework:css:{CJT-}forms',
75 'views:templates:lookup:public:css:{CJT-}lookup'
76 );
77 }
78
79 } // End class.
80
81 // Hookable!!
82 CJTTemplatesLookupView::define('CJTTemplatesLookupView');