// Get Empty Figure Datas
$data = [ "figure_pubdate" => ""];
// Handle posted Informations
if (isset($_POST['save_figure'])) {
$data = [ "figure_pubdate" => stripinput(trim($_POST['figure_pubdate'])) ];
// Formfield "Figure Pubdate"
echo form_datepicker('figure_pubdate', $locale['figurelib/admin/figurelib.php_047'], $data['figure_pubdate'],
array(
"placeholder" => $locale['figurelib/admin/figurelib.php_048'],
"inline" => true,
"width" => "250px"
)
// Datepicker include
if (!defined('DATEPICKER')) {
define('DATEPICKER', TRUE);
add_to_head("<link href='".DYNAMICS."assets/datepicker/css/bootstrap-datetimepicker.min.css' rel='stylesheet' />");
add_to_footer("<script src='".DYNAMICS."assets/datepicker/js/moment.min.js'></script>");
add_to_footer("<script src='".DYNAMICS."assets/datepicker/js/bootstrap-datetimepicker.min.js'></script>");
add_to_head("<script src='".DYNAMICS."assets/datepicker/locale/".$locale['datepicker'].".js'></script>");
}
// Add jQuery
$('#figure_pubdate-field .input-group.date').datetimepicker({
showTodayButton: true,
showClear: true,
showClose: true,
allowInputToggle: true,
format: 'YYYY (MMMM)',
});
echo "<div class='input-group date' style='width: 520px;'>".$data['figure_pubdate']."</div></font>";
add_to_jquery("$('#figure_pubdate-field .input-group.date').datetimepicker({
showTodayButton: true,
showClear: true,
showClose: true,
allowInputToggle: true,
format: 'YYYY (MMMM)',
});");
// Formfield "Figure Pubdate"
echo "<div id='figure_pubdate-field' class='form-group'>\n";
echo "<label class='control-label col-xs-12 col-sm-3 col-md-3 col-lg-3 p-l-0' for='figure_pubdate'>". $locale['figurelib/admin/figurelib.php_047']."</label>\n";
echo "<div class='col-xs-12 col-sm-9 col-md-9 col-lg-9'>\n";
echo "<div class='input-group date' style='width: 520px;'>\n";
echo "<input type='text' name='figure_pubdate' id='figure_pubdate' value='".$data['figure_pubdate']."' class='form-control textbox' placeholder='".$locale['figurelib/admin/figurelib.php_048']."' />\n";
echo "<span class='input-group-addon'><i class='entypo calendar'></i></span>\n";
echo "</div>\n";
echo "</div>\n";
echo "</div>\n";
echo form_datepicker('figure_pubdate', $locale['figurelib/admin/figurelib.php_047'], $data['figure_pubdate'],
array(
"placeholder" => $locale['figurelib/admin/figurelib.php_048'],
"inline" => true,
"width" => "250px"
)
);
echo form_datepicker('user_birthdate', '', $value, [
'showTime' => FALSE,
'date_format_js' => 'YYYY-M-DD',
'date_format_php' => 'Y-m-d',
'width' => '100%',
'inner_width' => '100%']);
if (!defined('DATEPICKER')) {
define('DATEPICKER', TRUE);
add_to_head("<link href='".DYNAMICS."assets/datepicker/css/bootstrap-datetimepicker.min.css' rel='stylesheet' />");
add_to_footer("<script src='".DYNAMICS."assets/datepicker/js/moment.min.js'></script>");
add_to_footer("<script src='".DYNAMICS."assets/datepicker/js/bootstrap-datetimepicker.min.js'></script>");
add_to_head("<script src='".DYNAMICS."assets/datepicker/locale/".$locale['datepicker'].".js'></script>");
}
Category Forum
Modifications and Requests - 9Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions