72 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
110 if( strpos( $Str ,
'{create}' ) !==
false )
112 $Str = str_replace(
'{create}' ,
'{create:text=create}' ,$Str );
115 for( ; $Parameters = $this->String->get_macro_parameters( $Str ,
'create' ) ; )
117 $this->Settings->load_settings( $Parameters );
118 $Text = $this->Settings->get_setting(
'text' ,
'create' );
120 $Code =
"{href:tpl=submit0;form_id={prefix}_create_form;text=$Text}";
121 $Str = str_replace(
"{create:$Parameters}" , $Code , $Str );
126 catch( Exception $e )
162 if( strpos( $Str ,
'{save}' ) !==
false )
164 $Str = str_replace(
'{save}' ,
'{href:tpl=submit0;form_id={prefix}_update_form;text=save}' ,$Str );
169 catch( Exception $e )
205 if( strpos( $Str ,
'{copy}' ) !==
false )
207 $Str = str_replace(
'{copy}' ,
'{href:tpl=submit0;form_id={prefix}_copy_form;text=save}' ,$Str );
212 catch( Exception $e )
244 private function get_cancel_page( &$Options , &
$Settings )
248 $Page =
$Settings->get_setting(
'page' , $_SERVER[
'REQUEST_URI' ] );
250 $Page = $Options->get_setting(
'cancel_page' , $Page );
252 $Page = str_replace( array(
'=' ,
';' ) , array(
'[eq]' ,
'[dot_comma]' ) , $Page );
256 catch( Exception $e )
292 if( strpos( $Str ,
'{cancel}' ) !==
false )
294 $Str = str_replace(
'{cancel}' ,
'{cancel:p=1}' , $Str );
297 for( ; $Parameters = $this->String->get_macro_parameters( $Str ,
'cancel' ) ; )
299 $this->Settings->load_settings( $Parameters );
301 $Page = $this->get_cancel_page( $Options , $this->Settings );
303 $Str = str_replace(
"{cancel:$Parameters}" ,
"{href:tpl=std;page=$Page;text=cancel}" , $Str );
308 catch( Exception $e )
356 $Str = str_replace(
'{prefix}' ,
$Settings->get_setting(
'prefix' ,
'' ) , $Str );
360 catch( Exception $e )