Browse Source

Added: Bootstrap Framework - initial integration.
Added: Bootstrap Plugins - DateTimePicker, ColorPicker (in multiple apps)
Added: Default Theme - responsive
Removed: RightJS Framework - no longer needed.
Removed: Accessible Theme - superseded by Default theme.
Removed: Minimized Theme - superseded by Default theme.
Enhanced: Menu - responsiveness added.
Enhanced: Dashboard - responsiveness added.
Etc.

reliberate 9 years ago
parent
commit
007bb7acfb
1 changed files with 17 additions and 2 deletions
  1. 17 2
      contact_time_edit.php

+ 17 - 2
contact_time_edit.php

@@ -200,7 +200,9 @@ else {
 	echo "	".$text['label-time_start']."\n";
 	echo "	".$text['label-time_start']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
 	echo "<td width='70%' class='vtable' align='left'>\n";
 	echo "<td width='70%' class='vtable' align='left'>\n";
-	echo "	<input class='formfld' type='text' name='time_start' id='time_start' style='min-width: 135px; width: 135px;' data-calendar=\"{format: '%Y-%m-%d %H:%M:%S', listYears: true, hideOnPick: false, fxName: null, showButtons: true}\" value='".$time_start."'>\n";
+	echo "	<div class='row'><div class='col-sm-12'>\n";
+	echo "		<input class='formfld datetimepicker' type='text' name='time_start' id='time_start' style='min-width: 135px; width: 135px;' value='".$time_start."'>\n";
+	echo "	</div></div>\n";
 	echo "</td>\n";
 	echo "</td>\n";
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
@@ -209,7 +211,9 @@ else {
 	echo "	".$text['label-time_stop']."\n";
 	echo "	".$text['label-time_stop']."\n";
 	echo "</td>\n";
 	echo "</td>\n";
 	echo "<td class='vtable' align='left'>\n";
 	echo "<td class='vtable' align='left'>\n";
-	echo "	<input class='formfld' type='text' name='time_stop' id='time_stop' style='min-width: 135px; width: 135px;' data-calendar=\"{format: '%Y-%m-%d %H:%M:%S', listYears: true, hideOnPick: false, fxName: null, showButtons: true}\" value='".$time_stop."'>\n";
+	echo "	<div class='row'><div class='col-sm-12'>\n";
+	echo "		<input class='formfld datetimepicker' type='text' name='time_stop' id='time_stop' style='min-width: 135px; width: 135px;' value='".$time_stop."'>\n";
+	echo "	</div></div>\n";
 	echo "</td>\n";
 	echo "</td>\n";
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
@@ -236,6 +240,17 @@ else {
 	echo "<br><br>";
 	echo "<br><br>";
 	echo "</form>";
 	echo "</form>";
 
 
+	//apply bootstrap-datetimepicker WITH seconds
+		echo "<script language='JavaScript' type='text/javascript'>";
+		echo "	$(document).ready(function() {\n";
+		echo "		$(function() {\n";
+		echo "			$('.datetimepicker').datetimepicker({\n";
+		echo "				format: 'YYYY-MM-DD HH:mm:ss',\n";
+		echo "			});\n";
+		echo "		});\n";
+		echo "	});\n";
+		echo "</script>\n";
+
 //include the footer
 //include the footer
 	require_once "resources/footer.php";
 	require_once "resources/footer.php";
 ?>
 ?>