58 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
59 $this->Database =
get_package(
'database' ,
'last' , __FILE__ );
60 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
61 $this->String =
get_package(
'string' ,
'last' , __FILE__ );
99 private function set_date_picker_parameters( $Name , $Value , $SetFormat )
103 $Code = $this->CachedMultyFS->get_template( __FILE__ ,
'date_picker.tpl' );
106 array(
'{name}' ,
'{value}' ,
'{set_format}' ) , array( $Name , $Value , $SetFormat ) , $Code
111 catch( Exception $e )
143 $Name = $Settings->get_setting(
'name' );
144 $Format = $Settings->get_setting(
'display_date_format' ,
'Y-m-d' );
145 $SetFormat = str_replace( array(
'Y' ,
'm' ,
'd' ) , array(
'yy' ,
'mm' ,
'dd' ) , $Format );
147 if( $this->Security->get_gp( $Name ,
'set' ) )
149 $Value = $this->Security->get_gp( $Name ,
'string' );
153 $Default = date( $Format , strtotime( $Settings->get_setting(
'default' ,
'now' ) ) );
154 $Value = $Settings->get_setting(
'value' , $Default );
157 return( $this->set_date_picker_parameters( $Name , $Value , $SetFormat ) );
159 catch( Exception $e )