/*
define('DATE_PICKER_WS_PATH', SITE_SUB_PATH.'/'.PLUGINS_DIR.'/date_picker');
function date_picker_includes()
{
if(!defined('JSCAL_INCLUDED')) {
define('JSCAL_INCLUDED', true);
ob_start();
include(dirname(__FILE__).'/date_pick_files.inc.php');
$date_picker = ob_get_contents();
ob_end_clean();
}
return $date_picker ;
}
function get_date_picker($jscal_input_name, $jscal_def_date='', $validation = 'date|yyyy/mm/dd|-', $validation_msg = 'Date should be in yyyy-mm-dd format')
{
$date_picker = date_picker_includes();
ob_start();
include(dirname(__FILE__).'/date_pick.inc.php');
$date_picker .= ob_get_contents();
ob_end_clean();
return $date_picker;
}
function get_datetime_picker($jscal_input_name, $jscal_def_date='', $validation = 'date|yyyy/mm/dd|-', $validation_msg = 'Date should be in yyyy-mm-dd format')
{
$date_picker = date_picker_includes();
ob_start();
include(dirname(__FILE__).'/datetime_pick.inc.php');
$date_picker .= ob_get_contents();
ob_end_clean();
return $date_picker;
}
/*
function mysqli_to_date_picker($date)
{
if(strlen($date)<10) {
return '';
}
list($year, $month, $day) = explode('-', $date);
return "$month/$day/$year";
}
function date_picker_to_mysqli($date)
{
if(strlen($date)<10) {
return '';
}
list($month, $day, $year) = explode('/', $date);
return "$year-$month-$day";
}
function mysqli_to_datetime_picker($datetime)
{
if(strlen($datetime)<10) {
return '';
}
list($date, $time) = explode(' ', $datetime);
list($year, $month, $day) = explode('-', $date);
list($hour, $minute, $second) = explode(':', $time);
return "$month/$day/$year $hour:$minute:$second";
}
function datetime_picker_to_mysqli($datetime)
{
if(strlen($datetime)<10) {
return '';
}
list($date, $time) = explode(' ', $datetime);
list($month, $day, $year) = explode('/', $date);
list($hour, $minute, $second) = explode(':', $time);
return "$year-$month-$day $hour:$minute:$second";
}
*/
?>
require(dirname(__FILE__)."/pager.class.php") ;
require(dirname(__FILE__)."/pager_sql.class.php") ;
require(dirname(__FILE__)."/thumb.class.php") ;
$plugin_version = '0.1';
IMD