[schoorbs commit] r720 - in trunk: . schoorbs-includes schoorbs-includes/lang schoorbs-misc/themes/contented6

1 view
Skip to first unread message

codesite...@google.com

unread,
Nov 6, 2008, 12:17:48 PM11/6/08
to schoor...@googlegroups.com
Author: xhochy
Date: Thu Nov 6 09:16:10 2008
New Revision: 720

Added:
trunk/add-entry.php
- copied, changed from r715, /trunk/edit-entry.php
trunk/schoorbs-misc/themes/contented6/add-entry.tpl.php (contents,
props changed)
- copied, changed from r707,
/trunk/schoorbs-misc/themes/contented6/edit-entry.tpl.php
Modified:
trunk/day-view.php
trunk/edit-entry.php
trunk/schoorbs-includes/global.web.php
trunk/schoorbs-includes/lang/schoorbs.pot
trunk/schoorbs-misc/themes/contented6/edit-entry.tpl.php

Log:
Separated add-entry and edit-entry

Copied: trunk/add-entry.php (from r715, /trunk/edit-entry.php)
==============================================================================
--- /trunk/edit-entry.php (original)
+++ trunk/add-entry.php Thu Nov 6 09:16:10 2008
@@ -21,11 +21,6 @@
/** day, month, year */
list($nDay, $nMonth, $nYear) = input_DayMonthYear();

-/** id **/
-if(isset($_REQUEST['id'])) {
- $nId = intval($_REQUEST['id']);
-}
-
/// Main ///

// Only allow loged-in users to create a new entry.
@@ -33,30 +28,23 @@
showAccessDenied();
}

-if (isset($nId)) {
- $oEntry = Entry::getById($nId);
+// Get the hour which the user selected to book
+if (isset($_REQUEST['hour'])) {
+ $nHour = intval($_REQUEST['hour']);
} else {
- $oEntry = null;
-
- // Get the hour which the user selected to book
- if (isset($_REQUEST['hour'])) {
- $nHour = intval($_REQUEST['hour']);
- } else {
- $nHour = 12;
- }
+ $nHour = 12;
+}

- // Get the minute which the user selected to book
- if (isset($_REQUEST['minute'])) {
- $nMinute = intval($_REQUEST['minute']);
- } else {
- $nMinute = 0;
- }
-
- // Get the period which the user selected to book
- if (isset($_REQUEST['period']) && $enable_periods) {
- SchoorbsTPL::populateVar('referencePeriod', intval($_REQUEST['period']));
- }
- SchoorbsTPL::populateVar('referenceTime', mktime($nHour, $nMinute, 0,
$nMonth, $nDay, $nYear));
+// Get the minute which the user selected to book
+if (isset($_REQUEST['minute'])) {
+ $nMinute = intval($_REQUEST['minute']);
+} else {
+ $nMinute = 0;
+}
+
+// Get the period which the user selected to book
+if (isset($_REQUEST['period']) && $enable_periods) {
+ SchoorbsTPL::populateVar('referencePeriod', intval($_REQUEST['period']));
}

// Get all booking types
@@ -67,6 +55,6 @@
}
}

+SchoorbsTPL::populateVar('referenceTime', mktime($nHour, $nMinute, 0,
$nMonth, $nDay, $nYear));
SchoorbsTPL::populateVar('types', $aTypes);
-SchoorbsTPL::populateVar('entry', $oEntry);
-SchoorbsTPL::renderPage('edit-entry');
+SchoorbsTPL::renderPage('add-entry');

Modified: trunk/day-view.php
==============================================================================
--- trunk/day-view.php (original)
+++ trunk/day-view.php Thu Nov 6 09:16:10 2008
@@ -100,7 +100,7 @@
// today's units and add it to the array of unique entries of this day.
if (count($aEntries) > 0) {
$aEntry[$sTime] = $aEntries[0];
- $aUniqueEntry[$oEntry->getStartTime()] = $aEntries[0];
+ $aUniqueEntry[$aEntries[0]->getStartTime()] = $aEntries[0];
} else {
// If there is no entry, set this cell to -1
// This indicates that this unit is free and bookable. The theme

Modified: trunk/edit-entry.php
==============================================================================
--- trunk/edit-entry.php (original)
+++ trunk/edit-entry.php Thu Nov 6 09:16:10 2008
@@ -13,17 +13,14 @@
require_once 'config.inc.php';
/** The general 'things' when viewing Schoorbs on the web */
require_once 'schoorbs-includes/global.web.php';
-/** The general functions */
-require_once 'schoorbs-includes/global.functions.php';

/// Var Init ///

-/** day, month, year */
-list($nDay, $nMonth, $nYear) = input_DayMonthYear();
-
/** id **/
if(isset($_REQUEST['id'])) {
$nId = intval($_REQUEST['id']);
+} else {
+ SchoorbsTPL::error(Lang::_('No entry id for editing was provided!'));
}

/// Main ///
@@ -33,31 +30,8 @@
showAccessDenied();
}

-if (isset($nId)) {
- $oEntry = Entry::getById($nId);
-} else {
- $oEntry = null;
-
- // Get the hour which the user selected to book
- if (isset($_REQUEST['hour'])) {
- $nHour = intval($_REQUEST['hour']);
- } else {
- $nHour = 12;
- }
-
- // Get the minute which the user selected to book
- if (isset($_REQUEST['minute'])) {
- $nMinute = intval($_REQUEST['minute']);
- } else {
- $nMinute = 0;
- }
-
- // Get the period which the user selected to book
- if (isset($_REQUEST['period']) && $enable_periods) {
- SchoorbsTPL::populateVar('referencePeriod', intval($_REQUEST['period']));
- }
- SchoorbsTPL::populateVar('referenceTime', mktime($nHour, $nMinute, 0,
$nMonth, $nDay, $nYear));
-}
+// Get the booking
+$oEntry = Entry::getById($nId);

// Get all booking types
$aTypes = array();

Modified: trunk/schoorbs-includes/global.web.php
==============================================================================
--- trunk/schoorbs-includes/global.web.php (original)
+++ trunk/schoorbs-includes/global.web.php Thu Nov 6 09:16:10 2008
@@ -9,6 +9,8 @@

/// Includes ///

+/** The general functions */
+require_once 'schoorbs-includes/global.functions.php';
/** Smarty Template Engine */
require_once 'smarty.functions.php';
/** The input getting & validating functions */

Modified: trunk/schoorbs-includes/lang/schoorbs.pot
==============================================================================
--- trunk/schoorbs-includes/lang/schoorbs.pot (original)
+++ trunk/schoorbs-includes/lang/schoorbs.pot Thu Nov 6 09:16:10 2008
@@ -912,3 +912,6 @@
"The bottom line is: <strong>every piece of this system, from the
operating "
"system to the application, is completely free - source code and
all</strong>."
msgstr ""
+
+msgid "No entry id for editing was provided!"
+msgstr ""

Copied: trunk/schoorbs-misc/themes/contented6/add-entry.tpl.php (from r707,
/trunk/schoorbs-misc/themes/contented6/edit-entry.tpl.php)
==============================================================================
--- /trunk/schoorbs-misc/themes/contented6/edit-entry.tpl.php (original)
+++ trunk/schoorbs-misc/themes/contented6/add-entry.tpl.php Thu Nov 6
09:16:10 2008
@@ -1,40 +1,31 @@
-<?php
-/**
- * @todo Support series
- */
-?>
<div id="schoorbs-largecenteredbox">
<span class="headline">
- <?php echo Lang::_($entry == null ? 'Add Entry' : 'Edit Entry'); ?>
+ <?php echo Lang::_('Add Entry'); ?>
</span>
<br /><br />
<div class="form">
- <form method="post" action="<?php echo
self::makeInternalUrl('edit_entry_handler.php'); ?>">
- <label for="main-name"><?php echo Lang::_('Brief
Description:'); ?></label> <input type="text" id="main-name" name="name"
value="<?php echo htmlentities($entry == null ? '' :
$oEntry->getName()); ?>" /><br />
+ <form method="post" action="<?php echo
self::makeInternalUrl('add-entry.php'); ?>">
+ <label for="main-name"><?php echo Lang::_('Brief
Description:'); ?></label> <input type="text" id="main-name" name="name"
value="" /><br />
<label for="main-description" style="width: 400px;"><?php echo
preg_replace('/\<br\s*\/?\>/i', '', Lang::_('Full Description:<br
/>&nbsp;&nbsp;(Number of people,<br />&nbsp;&nbsp;Internal/External
etc)')); ?></label><br />
- <textarea id="main-description" name="description" rows="8"
cols="40"><?php echo htmlentities($entry == null ? '' :
$oEntry->getDescription()); ?></textarea><br />
- <label for="main-date"><?php echo Lang::_('Date:'); ?></label> <?php
echo SchoorbsTPL::generateDateSelector('edit_', ($entry == null ?
$referenceTime : $oEntry->getStartTime())); ?><br />
+ <textarea id="main-description" name="description" rows="8"
cols="40"></textarea><br />
+ <label for="main-date"><?php echo Lang::_('Date:'); ?></label> <?php
echo SchoorbsTPL::generateDateSelector('edit_', $referenceTime ); ?><br />
<?php if (Entry::perioded()) { ?>
<label for="main-period"><?php echo Lang::_('Period:'); ?></label>
<select name="period" id="main-period">
<?php for ($i = 0; $i < count($GLOBALS['periods']); $i++) { ?>
- <option value="<?php echo $i ?>"<?php echo ($entry == null ?
$referencePeriod : ($i == $entry->getStartPeriod() ? '
selected="selected"' : '')); ?>><?php echo
$GLOBALS['periods'][$i]; ?></option>
+ <option value="<?php echo $i ?>"<?php echo ($i ==
$referencePeriod ? ' selected="selected"' : ''); ?>><?php echo
$GLOBALS['periods'][$i]; ?></option>
<?php } ?>
</select>
<?php } else { ?>
<label for="main-hour"><?php echo Lang::_('Time:'); ?></label>
- <input id="main-hour" name="hour" size="3" value="<?php echo
date('G', ($entry == null ? $referenceTime : $entry->getStartTime())); ?>"
maxlength="2" />
+ <input id="main-hour" name="hour" size="3" value="<?php echo
date('G', $referenceTime); ?>" maxlength="2" />
&nbsp;&nbsp;:&nbsp;&nbsp;
- <input id="main-minute" name="minute" size="3" value="<?php echo
date('i', ($entry == null ? $referenceTime : $entry->getStartTime())); ?>"
maxlength="2" />
+ <input id="main-minute" name="minute" size="3" value="<?php echo
date('i', $referenceTime); ?>" maxlength="2" />
<?php } ?> <br />
<label for="main-duration"><?php echo
Lang::_('Duration:'); ?></label>
<?php
- if ($entry != null) {
- list($sDuration, $sDurationUnit) = explode(' ',
$entry->getDurationString());
- } else {
- $sDuration = 1;
- $sDurationUnit =
Lang::_(Entry::perioded() ? 'periods' : 'minutes');
- }
+ $sDuration = 1;
+ $sDurationUnit = Lang::_(Entry::perioded() ? 'periods' : 'minutes');
?>
<input id="main-duration" name="duration" size="3" value="<?php echo
$sDuration; ?>" />
<select id="main-dur-units" name="dur_units" style="width: 100px">
@@ -51,7 +42,7 @@
<label for="main-all-day"><?php echo Lang::_('All day'); ?>:</label>
<input name="all_day" id="main-all-day" type="checkbox" value="yes" /><br />
<label for="main-rooms"><?php echo Lang::_('Rooms'); ?>:</label><br
/>
<select name="rooms[]" id="main-rooms" multiple="multiple" size="5"
style="width: 300px;">
- <?php $nActiveRoom = ($entry == null ? input_Room() :
$entry->getRoom()->getId()); ?>
+ <?php $nActiveRoom = input_Room(); ?>
<?php foreach (Area::getAreas() as $oArea) { ?>
<optgroup label="<?php echo $oArea->getName(); ?>">
<?php foreach (Room::getRooms($oArea) as $oRoom) { ?>
@@ -63,34 +54,20 @@
<label for="main-minute" style="width: 400px;"><?php echo
Lang::_('Use Control-Click to select more than one type'); ?></label><br />
<label for="main-type"><?php echo Lang::_('Type:'); ?></label>
<select id="main-type" name="type">
- <?php
- if ($entry == null) {
- // Internal is the default type
- $sTypeC = 'I';
- } else {
- $sTypeC = $entry->getType();
- }
- ?>
+ <!-- Internal ('I') is the default type -->
<?php foreach ($types as $aType) { ?>
- <option value="<?php echo $aType['c']; ?>"<?php echo ($sTypeC ==
$aType['c'] ? ' selected="selected"' : ''); ?>><?php echo
$aType['text']; ?></option>
+ <option value="<?php echo $aType['c']; ?>"<?php echo ('I' ==
$aType['c'] ? ' selected="selected"' : ''); ?>><?php echo
$aType['text']; ?></option>
<?php } ?>
</select><br />
<label for="main-reptype"><?php echo Lang::_('Repeat
Type:'); ?></label><br />
- <?php
- if ($entry == null) {
- $nRepType = 0;
- } else {
- $nRepType = $entry->getRepType();
- }
- ?>
- <input name="reptype" type="radio" value="0"<?php echo ($nRepType ==
0 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('None'); ?>
- <input name="reptype" type="radio" value="1"<?php echo ($nRepType ==
1 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Daily'); ?>
- <input name="reptype" type="radio" value="2"<?php echo ($nRepType ==
2 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Weekly'); ?>
- <input name="reptype" type="radio" value="3"<?php echo ($nRepType ==
3 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Monthly'); ?>
- <input name="reptype" type="radio" value="4"<?php echo ($nRepType ==
4 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Yearly'); ?><br />
- <input name="reptype" type="radio" value="5"<?php echo ($nRepType ==
5 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Monthly,
corresponding day'); ?>
- <input name="reptype" type="radio" value="6"<?php echo ($nRepType ==
6 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('n-Weekly'); ?><br
/>
- <label for="rep_end_day" style="width: 200px"><?php echo
Lang::_('Repeat End Date:'); ?></label> <?php echo
SchoorbsTPL::generateDateSelector('rep_end_', ($entry == null ?
$referenceTime : $oEntry->getEndTime())); ?><br />
+ <input name="reptype" type="radio" value="0" checked="checked" />
<?php echo Lang::_('None'); ?>
+ <input name="reptype" type="radio" value="1" /> <?php echo
Lang::_('Daily'); ?>
+ <input name="reptype" type="radio" value="2" /> <?php echo
Lang::_('Weekly'); ?>
+ <input name="reptype" type="radio" value="3" /> <?php echo
Lang::_('Monthly'); ?>
+ <input name="reptype" type="radio" value="4" /> <?php echo
Lang::_('Yearly'); ?><br />
+ <input name="reptype" type="radio" value="5" /> <?php echo
Lang::_('Monthly, corresponding day'); ?>
+ <input name="reptype" type="radio" value="6" /> <?php echo
Lang::_('n-Weekly'); ?><br />
+ <label for="rep_end_day" style="width: 200px"><?php echo
Lang::_('Repeat End Date:'); ?></label> <?php echo
SchoorbsTPL::generateDateSelector('rep_end_', $referenceTime); ?><br />
<label for="main-rep_day_1" style="width: 300px"><?php echo
Lang::_('Repeat Day:'); ?> <?php echo Lang::_('(for
(n-)weekly)'); ?></label><br />
<input id="main-rep_day_1" name="rep_day[1]" type="checkbox" />
<?php echo Lang::_('Monday'); ?>
<input name="rep_day[2]" type="checkbox" /> <?php echo
Lang::_('Tuesday'); ?>
@@ -101,12 +78,8 @@
<input name="rep_day[0]" type="checkbox" /> <?php echo
Lang::_('Sunday'); ?><br />
<label for="main-rep-num-weeks" style="width: 250px"><?php echo
Lang::_('Number of weeks'); ?> <?php echo Lang::_('(for
n-weekly)'); ?></label>
<input type="text" id="main-rep-num-weeks" name="rep_num_weeks"
value="1" size="4" /><br /><br />
- <!-- <input type="hidden" id="main-rep-id" name="rep_id"
value="{$rep_id}" /> -->
<?php if (isset($_SERVER['HTTP_REFERER'])) { ?>
<input type="hidden" name="returl" value="<?php echo
htmlentities($_SERVER['HTTP_REFERER']); ?>" />
- <?php } ?>
- <?php if ($entry != null) { ?>
- <input type="hidden" id="main-id" name="id" value="<?php echo
$entry->getId(); ?>" />
<?php } ?>
<input type="submit"value="<?php echo Lang::_('Save'); ?>" />
</form>

Modified: trunk/schoorbs-misc/themes/contented6/edit-entry.tpl.php
==============================================================================
--- trunk/schoorbs-misc/themes/contented6/edit-entry.tpl.php (original)
+++ trunk/schoorbs-misc/themes/contented6/edit-entry.tpl.php Thu Nov 6
09:16:10 2008
@@ -5,27 +5,27 @@
?>
<div id="schoorbs-largecenteredbox">
<span class="headline">
- <?php echo Lang::_($entry == null ? 'Add Entry' : 'Edit Entry'); ?>
+ <?php echo Lang::_('Edit Entry'); ?>
</span>
<br /><br />
<div class="form">
- <form method="post" action="<?php echo
self::makeInternalUrl('edit_entry_handler.php'); ?>">
- <label for="main-name"><?php echo Lang::_('Brief
Description:'); ?></label> <input type="text" id="main-name" name="name"
value="<?php echo htmlentities($entry == null ? '' :
$oEntry->getName()); ?>" /><br />
+ <form method="post" action="<?php echo
self::makeInternalUrl('edit-entry.php'); ?>">
+ <label for="main-name"><?php echo Lang::_('Brief
Description:'); ?></label> <input type="text" id="main-name" name="name"
value="<?php echo htmlentities($entry->getName()); ?>" /><br />
<label for="main-description" style="width: 400px;"><?php echo
preg_replace('/\<br\s*\/?\>/i', '', Lang::_('Full Description:<br
/>&nbsp;&nbsp;(Number of people,<br />&nbsp;&nbsp;Internal/External
etc)')); ?></label><br />
- <textarea id="main-description" name="description" rows="8"
cols="40"><?php echo htmlentities($entry == null ? '' :
$oEntry->getDescription()); ?></textarea><br />
- <label for="main-date"><?php echo Lang::_('Date:'); ?></label> <?php
echo SchoorbsTPL::generateDateSelector('edit_', ($entry == null ?
$referenceTime : $oEntry->getStartTime())); ?><br />
+ <textarea id="main-description" name="description" rows="8"
cols="40"><?php echo
htmlentities($entry->getDescription()); ?></textarea><br />
+ <label for="main-date"><?php echo Lang::_('Date:'); ?></label> <?php
echo SchoorbsTPL::generateDateSelector('edit_',
$entry->getStartTime()); ?><br />
<?php if (Entry::perioded()) { ?>
<label for="main-period"><?php echo Lang::_('Period:'); ?></label>
<select name="period" id="main-period">
<?php for ($i = 0; $i < count($GLOBALS['periods']); $i++) { ?>
- <option value="<?php echo $i ?>"<?php echo ($entry == null ?
$referencePeriod : ($i == $entry->getStartPeriod() ? '
selected="selected"' : '')); ?>><?php echo
$GLOBALS['periods'][$i]; ?></option>
+ <option value="<?php echo $i ?>"<?php echo ($i ==
$entry->getStartPeriod() ? ' selected="selected"' : ''); ?>><?php echo
$GLOBALS['periods'][$i]; ?></option>
<?php } ?>
</select>
<?php } else { ?>
<label for="main-hour"><?php echo Lang::_('Time:'); ?></label>
- <input id="main-hour" name="hour" size="3" value="<?php echo
date('G', ($entry == null ? $referenceTime : $entry->getStartTime())); ?>"
maxlength="2" />
+ <input id="main-hour" name="hour" size="3" value="<?php echo
date('G', $entry->getStartTime()); ?>" maxlength="2" />
&nbsp;&nbsp;:&nbsp;&nbsp;
- <input id="main-minute" name="minute" size="3" value="<?php echo
date('i', ($entry == null ? $referenceTime : $entry->getStartTime())); ?>"
maxlength="2" />
+ <input id="main-minute" name="minute" size="3" value="<?php echo
date('i', $entry->getStartTime()); ?>" maxlength="2" />
<?php } ?> <br />
<label for="main-duration"><?php echo
Lang::_('Duration:'); ?></label>
<?php
@@ -51,7 +51,7 @@
<label for="main-all-day"><?php echo Lang::_('All day'); ?>:</label>
<input name="all_day" id="main-all-day" type="checkbox" value="yes" /><br />
<label for="main-rooms"><?php echo Lang::_('Rooms'); ?>:</label><br
/>
<select name="rooms[]" id="main-rooms" multiple="multiple" size="5"
style="width: 300px;">
- <?php $nActiveRoom = ($entry == null ? input_Room() :
$entry->getRoom()->getId()); ?>
+ <?php $nActiveRoom = $entry->getRoom()->getId(); ?>
<?php foreach (Area::getAreas() as $oArea) { ?>
<optgroup label="<?php echo $oArea->getName(); ?>">
<?php foreach (Room::getRooms($oArea) as $oRoom) { ?>
@@ -63,45 +63,10 @@
<label for="main-minute" style="width: 400px;"><?php echo
Lang::_('Use Control-Click to select more than one type'); ?></label><br />
<label for="main-type"><?php echo Lang::_('Type:'); ?></label>
<select id="main-type" name="type">
- <?php
- if ($entry == null) {
- // Internal is the default type
- $sTypeC = 'I';
- } else {
- $sTypeC = $entry->getType();
- }
- ?>
<?php foreach ($types as $aType) { ?>
- <option value="<?php echo $aType['c']; ?>"<?php echo ($sTypeC ==
$aType['c'] ? ' selected="selected"' : ''); ?>><?php echo
$aType['text']; ?></option>
+ <option value="<?php echo $aType['c']; ?>"<?php echo
($entry->getType() == $aType['c'] ? ' selected="selected"' : ''); ?>><?php
echo $aType['text']; ?></option>
<?php } ?>
</select><br />
- <label for="main-reptype"><?php echo Lang::_('Repeat
Type:'); ?></label><br />
- <?php
- if ($entry == null) {
- $nRepType = 0;
- } else {
- $nRepType = $entry->getRepType();
- }
- ?>
- <input name="reptype" type="radio" value="0"<?php echo ($nRepType ==
0 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('None'); ?>
- <input name="reptype" type="radio" value="1"<?php echo ($nRepType ==
1 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Daily'); ?>
- <input name="reptype" type="radio" value="2"<?php echo ($nRepType ==
2 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Weekly'); ?>
- <input name="reptype" type="radio" value="3"<?php echo ($nRepType ==
3 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Monthly'); ?>
- <input name="reptype" type="radio" value="4"<?php echo ($nRepType ==
4 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Yearly'); ?><br />
- <input name="reptype" type="radio" value="5"<?php echo ($nRepType ==
5 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('Monthly,
corresponding day'); ?>
- <input name="reptype" type="radio" value="6"<?php echo ($nRepType ==
6 ? ' checked="checked"' : ''); ?> /> <?php echo Lang::_('n-Weekly'); ?><br
/>
- <label for="rep_end_day" style="width: 200px"><?php echo
Lang::_('Repeat End Date:'); ?></label> <?php echo
SchoorbsTPL::generateDateSelector('rep_end_', ($entry == null ?
$referenceTime : $oEntry->getEndTime())); ?><br />
- <label for="main-rep_day_1" style="width: 300px"><?php echo
Lang::_('Repeat Day:'); ?> <?php echo Lang::_('(for
(n-)weekly)'); ?></label><br />
- <input id="main-rep_day_1" name="rep_day[1]" type="checkbox" />
<?php echo Lang::_('Monday'); ?>
- <input name="rep_day[2]" type="checkbox" /> <?php echo
Lang::_('Tuesday'); ?>
- <input name="rep_day[3]" type="checkbox" /> <?php echo
Lang::_('Wednesday'); ?>
- <input name="rep_day[4]" type="checkbox" /> <?php echo
Lang::_('Thursday'); ?><br />
- <input name="rep_day[5]" type="checkbox" /> <?php echo
Lang::_('Friday'); ?>
- <input name="rep_day[6]" type="checkbox" /> <?php echo
Lang::_('Saturday'); ?>
- <input name="rep_day[0]" type="checkbox" /> <?php echo
Lang::_('Sunday'); ?><br />
- <label for="main-rep-num-weeks" style="width: 250px"><?php echo
Lang::_('Number of weeks'); ?> <?php echo Lang::_('(for
n-weekly)'); ?></label>
- <input type="text" id="main-rep-num-weeks" name="rep_num_weeks"
value="1" size="4" /><br /><br />
- <!-- <input type="hidden" id="main-rep-id" name="rep_id"
value="{$rep_id}" /> -->
<?php if (isset($_SERVER['HTTP_REFERER'])) { ?>
<input type="hidden" name="returl" value="<?php echo
htmlentities($_SERVER['HTTP_REFERER']); ?>" />
<?php } ?>

Reply all
Reply to author
Forward
0 new messages