62 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
63 $this->PageCSS =
get_package(
'page::page_css' ,
'last' , __FILE__ );
64 $this->PageJS =
get_package(
'page::page_js' ,
'last' , __FILE__ );
66 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
97 $this->PageCSS->add_stylesheet(
"{http_host}/$Path/res/css/jsdialogs.css" );
98 $this->PageJS->add_javascript(
"{http_host}/$Path/include/js/dialogs.js" );
100 catch( Exception $e )
132 private function add_opener( &
$Settings , $Template )
136 $OpenerId =
$Settings->get_setting(
'opener_id' ,
false );
139 $Template = str_replace(
'{opener_selector}' ,
'opener=#visible_{opener_id};' , $Template );
140 $Template = str_replace(
'{opener_id}' , $OpenerId , $Template );
145 catch( Exception $e )
189 $MacroName = $EntityName.
'_selection_dialog';
191 for( ; $MacroParameters = $this->String->get_macro_parameters( $Str , $MacroName ) ; )
193 $this->Settings->load_settings( $MacroParameters );
194 $Template = $this->CachedMultyFS->get_template( $FilePath ,
"$MacroName.tpl" );
195 $Template = $this->add_opener(
$Settings , $Template );
197 $id = $this->Settings->get_setting(
'id' , md5( microtime(
true ) ) );
198 $Template = str_replace(
'{id}' , $id , $Template );
200 $Str = str_replace(
'{'.
"$MacroName:$MacroParameters}" , $Template , $Str );
206 catch( Exception $e )
236 catch( Exception $e )