Revision: 1691
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1691&view=rev
Author:   cimorrison
Date:     2010-12-10 11:01:40 +0000 (Fri, 10 Dec 2010)

Log Message:
-----------
Allowed entries for disabled rooms to be copied (but still not deleted or 
edited).

Modified Paths:
--------------
    mrbs/trunk/web/view_entry.php

Modified: mrbs/trunk/web/view_entry.php
===================================================================
--- mrbs/trunk/web/view_entry.php       2010-12-10 10:34:05 UTC (rev 1690)
+++ mrbs/trunk/web/view_entry.php       2010-12-10 11:01:40 UTC (rev 1691)
@@ -566,9 +566,9 @@
 
 <div id="view_entry_nav">
   <?php
-  // Only show the links for Edit/Copy/Delete if the room is enabled.    We're
-  // allowed to view existing bookings in disabled rooms, but not to modify or
-  // delete them.
+  // Only show the links for Edit and Delete if the room is enabled.    We're
+  // allowed to view and copy existing bookings in disabled rooms, but not to
+  // modify or delete them.
   if (!$room_disabled && !$area_disabled)
   {
     // Edit and Edit Series
@@ -587,22 +587,6 @@
     }
     echo "</div>\n";
     
-    // Copy and Copy Series
-    echo "<div>\n";
-    if (!$series)
-    {
-      echo "<a 
href=\"edit_entry.php?id=$id&amp;copy=1&amp;returl=$link_returl\">". 
get_vocab("copyentry") ."</a>";
-    }      
-    if (!empty($repeat_id) && !$series && $repeats_allowed)
-    {
-      echo " - ";
-    }     
-    if ((!empty($repeat_id) || $series) && $repeats_allowed) 
-    {
-      echo "<a 
href=\"edit_entry.php?id=$id&amp;edit_type=series&amp;day=$day&amp;month=$month&amp;year=$year&amp;copy=1&amp;returl=$link_returl\">".get_vocab("copyseries")."</a>";
-    }
-    echo "</div>\n";
-    
     // Delete and Delete Series
     echo "<div>\n";
     if (!$series)
@@ -619,6 +603,22 @@
     }
     echo "</div>\n";
   }
+  
+  // Copy and Copy Series
+  echo "<div>\n";
+  if (!$series)
+  {
+    echo "<a 
href=\"edit_entry.php?id=$id&amp;copy=1&amp;returl=$link_returl\">". 
get_vocab("copyentry") ."</a>";
+  }      
+  if (!empty($repeat_id) && !$series && $repeats_allowed)
+  {
+    echo " - ";
+  }     
+  if ((!empty($repeat_id) || $series) && $repeats_allowed) 
+  {
+    echo "<a 
href=\"edit_entry.php?id=$id&amp;edit_type=series&amp;day=$day&amp;month=$month&amp;year=$year&amp;copy=1&amp;returl=$link_returl\">".get_vocab("copyseries")."</a>";
+  }
+  echo "</div>\n";
   ?>
   <div>
     <?php


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to