class form_setup_date { public $id; public $db_name; public $config_type; public function __construct($context) { $this->id = $context['id']; $this->db_name = $context['db_name']; $this->config_type = $context['config_type']; } public function set() { global $database; $id = $this->id; $db_name = $this->db_name; $config_type = $this->config_type; if($config_type == "global") { $get_date_format = " SELECT date_format FROM $db_name"."account_settings WHERE account_id = '$id' LIMIT 1 "; $this->date_format = $database->getOne($get_date_format); } else if($config_type == "user") $this->date_format = $_SESSION['settings']['date_format']; } public function form() { $date_format = $this->date_format; ?>
checked="checked" } ?>/> | Year-Month-Day (2011-01-01) |
checked="checked" } ?>/> | Day-Month-Year (01-01-2011) |
checked="checked" } ?>/> | Day Month Year (01 Jan 2011) |
checked="checked" } ?>/> | Month-Day-Year (01-01-2011) |
checked="checked" } ?>/> | Year-Month-Day time (2011-01-01, 4:03pm) |
checked="checked" } ?>/> | Day-Month-Year time (01-01-2011, 4:03pm) |
checked="checked" } ?>/> | Day Month Year time (01 Jan 2011, 4:03pm) |
checked="checked" } ?>/> | Month-Day-Year time (01-01-2011, 4:03pm) |