ultimix
jqgrid.php
Go to the documentation of this file.
1 <?php
2 
3  /*
4  * This source code is a part of the Ultimix Project.
5  * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6  * it's own license wich could be found from the corresponding files or sources.
7  * This source code is provided "as is" without any warranties or garanties.
8  *
9  * Have a nice day!
10  *
11  * @url http://ultimix.sorceforge.net
12  *
13  * @author Alexey "gdever" Dodonov
14  */
15 
26  class jqgrid_1_0_0{
27 
38  var $PageCSS = false;
39  var $PageJS = false;
40 
55  function __construct()
56  {
57  try
58  {
59  $this->PageCSS = get_package( 'page::page_css' , 'last' , __FILE__ );
60  $this->PageJS = get_package( 'page::page_js' , 'last' , __FILE__ );
61  }
62  catch( Exception $e )
63  {
64  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
65  }
66  }
67 
86  function pre_generation( $Options )
87  {
88  try
89  {
90  $Path = "{http_host}/"._get_package_relative_path_ex( 'gui::jqgrid' , '1.0.0::1.0.0' );
91  $this->PageJS->add_javascript( "$Path/include/js/i18n/grid.locale-{locale}.js" );
92  $this->PageJS->add_javascript( "$Path/include/js/jquery.jqGrid.min.js" );
93  $this->PageJS->add_javascript( "$Path/include/js/jqgrid.autorun.js" );
94 
95  $this->PageCSS->add_stylesheet( "{http_host}/$Path/res/css/ui.jqgrid.css" );
96  }
97  catch( Exception $e )
98  {
99  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
100  }
101  }
102  }
103 
104 ?>