Revision: 2206
http://mrbs.svn.sourceforge.net/mrbs/?rev=2206&view=rev
Author: cimorrison
Date: 2011-12-21 16:20:51 +0000 (Wed, 21 Dec 2011)
Log Message:
-----------
Removed explanation of how to use the All Day checkbox if it's disabled
Modified Paths:
--------------
mrbs/trunk/web/edit_entry.php
Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php 2011-12-21 15:39:11 UTC (rev 2205)
+++ mrbs/trunk/web/edit_entry.php 2011-12-21 16:20:51 UTC (rev 2206)
@@ -140,9 +140,11 @@
echo "</div>\n";
}
+
function create_field_entry_description($disabled=FALSE)
{
global $description, $select_options, $is_mandatory_field;
+
echo "<div id=\"div_description\">\n";
$label_text = get_vocab("fulldescription");
if (!empty($select_options['entry.description']))
@@ -157,9 +159,11 @@
echo "</div>\n";
}
+
function create_field_entry_start_date($disabled=FALSE)
{
global $start_time, $areas, $area_id, $periods, $default_duration_all_day,
$id, $drag;
+
echo "<div id=\"div_start_date\">\n";
echo "<label>" . get_vocab("start") . ":</label>\n";
$date = getdate($start_time);
@@ -204,9 +208,11 @@
echo "</div>\n";
}
+
function create_field_entry_end_date($disabled=FALSE)
{
global $end_time, $areas, $area_id, $periods, $multiday_allowed;
+
echo "<div id=\"div_end_date\">\n";
echo "<label>" . get_vocab("end") . ":</label>\n";
$date = getdate($end_time);
@@ -240,9 +246,11 @@
echo "</div>\n";
}
+
function create_field_entry_areas($disabled=FALSE)
{
global $areas, $area_id, $rooms;
+
echo "<div id=\"div_areas\">\n";
echo "</div>\n";
// if there is more than one area then give the option
@@ -390,6 +398,7 @@
} // if count($areas)
}
+
function create_field_entry_rooms($disabled=FALSE)
{
global $rooms, $multiroom_allowed, $room_id, $area_id, $selected_rooms;
@@ -416,7 +425,9 @@
}
}
echo "</select>\n";
- if ($multiroom_allowed)
+ // No point telling them how to select multiple rooms if the input
+ // is disabled
+ if ($multiroom_allowed && !$disabled)
{
echo "<span>" . get_vocab("ctrl_click") . "</span>\n";
}
@@ -431,9 +442,11 @@
echo "</div>\n";
}
+
function create_field_entry_type($disabled=FALSE)
{
global $booking_types, $type;
+
echo "<div id=\"div_type\">\n";
echo "<label for=\"type\">" . get_vocab("type") . ":</label>\n";
echo "<select id=\"type\" name=\"type\"" .
@@ -451,9 +464,11 @@
echo "</div>\n";
}
+
function create_field_entry_confirmation_status($disabled=FALSE)
{
global $confirmation_enabled, $confirmed;
+
// Confirmation status
if ($confirmation_enabled)
{
@@ -479,9 +494,11 @@
}
}
+
function create_field_entry_privacy_status($disabled=FALSE)
{
global $private_enabled, $private, $private_mandatory;
+
// Privacy status
if ($private_enabled)
{
@@ -508,6 +525,7 @@
}
}
+
function create_field_entry_custom_field($field, $key, $disabled=FALSE)
{
global $custom_fields, $tbl_entry, $select_options;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits