Project

General

Profile

« Previous | Next » 

Revision 574

Added by thorn almost 17 years ago

updated admin/pages/sections.php to changed jscalendar-api from changeset 571

View differences:

sections.php
138 138
?>
139 139

  
140 140
<?php // include jscalendar-setup
141
	$jscal_use_time = true; // whether to use a clock, too
141 142
	require_once(WB_PATH."/include/jscalendar/wb-setup.php");
142
	// override some vars:
143
	// override some vars: (normally, there is no need to change this)
143 144
	//$jscal_lang = "en"; //- calendar-language (default: wb-backend-language)
144
	//$jscal_today = ""; // - date, the calendar offers if the text-field is empty (default: today)
145
	//$jscal_today = ""; // - date the calendar offers if the text-field is empty (default: today)
145 146
	//$jscal_firstday = "0"; // - first-day-of-week (0-sunday, 1-monday, ...) (default: 0(EN) or 1(everything else))
146
	//$jscal_format = "Y-m-d H:i"; // - initial-format used for the text-field (default: from wb-backend-date-format)
147
	//$jscal_ifformat = "%Y-%m-%d %H:%M"; // - format for jscalendar (default: wb-backend-date-format)
147
	//$jscal_format = "Y-m-d"; // - initial-format used for the text-field (default: from wb-backend-date-format)
148
	//$jscal_ifformat = "%Y-%m-%d"; // - format for jscalendar (default: from wb-backend-date-format)
148 149
?>
149 150
<table cellpadding="5" cellspacing="0" border="0" align="center" width="100%" height="50" style="margin-bottom: 10px;">
150 151
<tr style="background-color: #F0F0F0;">
......
252 253
							ifFormat    : "<?php echo $jscal_ifformat ?>",
253 254
							button      : "trigger_start<?php echo $section['section_id']; ?>",
254 255
							firstDay    : <?php echo $jscal_firstday ?>,
255
							showsTime   : "true",
256
							timeFormat  : "24",
256
							<?php if(isset($jscal_use_time) && $jscal_use_time==TRUE) { ?>
257
								showsTime   : "true",
258
								timeFormat  : "24",
259
							<?php } ?>
257 260
							date        : "<?php echo $jscal_today ?>",
258 261
							range       : [1970, 2037],
259 262
							step        : 1
......
267 270
							ifFormat    : "<?php echo $jscal_ifformat ?>",
268 271
							button      : "trigger_stop<?php echo $section['section_id']; ?>",
269 272
							firstDay    : <?php echo $jscal_firstday ?>,
270
							showsTime   : "true",
271
							timeFormat  : "24",
273
							<?php if(isset($jscal_use_time) && $jscal_use_time==TRUE) { ?>
274
								showsTime   : "true",
275
								timeFormat  : "24",
276
							<?php } ?>
272 277
							date        : "<?php echo $jscal_today ?>",
273 278
							range       : [1970, 2037],
274 279
							step        : 1

Also available in: Unified diff