Changeset - 2806787bfcca
[Not reviewed]
default
0 1 0
nathang - 15 years ago 2010-10-01 16:16:32
ngelderloos7@gmail.com
moved some stuff
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -299,27 +299,24 @@ class Schedule
 
				jQuery(\'#selectItemsInput\').hide();
 
			      });';
 
			echo '});'; /* Close document.ready */
 
			echo 'window.print();
 
			      </script>';
 
			echo '<p><span id="selectItems"><a href="#">Select Schedules to Print</a></span> :: <a href="'.$_SERVER["SCRIPT_NAME"].'?savedkey=0">Return to normal view</a> :: <a href="input.php">Home</a></p>';
 
			echo '<div  id="selectItemsInput"><p><form action="'.$_SERVER["SCRIPT_NAME"].'?savedkey=0"><label><strong>Schedules to Print</strong> <em>(seperate with commas, "all" for all)</em></label><br /><input type="text" name="print" value="'.$_REQUEST['print'].'" /><input type="submit" value="submit" /><span id="cancelItems"><input type="button" value="cancel" /></span></form></p></div>';
 
		}
 
		else {
 
			echo '<p><a href="'.$_SERVER["SCRIPT_NAME"].'?savedkey=0&amp;print=all">Print</a> :: <a href="input.php">Home</a></p>';
 
		}
 

	
 
		echo "<p>There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.</p>";
 
		
 

	
 
		if($this->nPermutations > 0)
 
		{
 
			$table .= "<div id=\"my-glider\">\n"
 
			  . "  <div class=\"controls\">\n";
 
			
 
			for($nn = 1; $nn <= $this->nPermutations; $nn++)
 
			{
 
			$table .= "<a href=\"#section" . $nn . "\">&nbsp;" . $nn . "&nbsp;</a>";
 
			}
 
			
 
			$table .= "  </div> <!-- class=\"controls\" -->\n"
 
			  . "  <div class=\"scroller\">"
 
@@ -583,24 +580,26 @@ class Schedule
 
		  {
 
		    if (isset($_REQUEST['savedkey']))
 
		      $savedkey = (int)$_REQUEST['savedkey'];
 
		    else
 
		      /*
 
		       * if this is a new saved schedule, it'll be the
 
		       * next item added to $_SESSION['saved']
 
		       */
 
		      $savedkey = max(array_keys($_SESSION['saved'])) + 1;
 
		  }
 
		echo '<form method="get" action="input.php"><p><input type="hidden" name="savedkey" value="' . $savedkey . '" /><input type="submit" value="edit" /></p></form>';
 

	
 
		echo "<p>There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.</p>";
 

	
 
		$outputPage->foot();
 
	}
 

	
 
	/**
 
	 * \brief
 
	 *   Render the input table form for editing a saved schedule in input.php.
 
	 *
 
	 * This function's output must be synchronized with the
 
	 * associated javascript in scripts/scheduleInput.js.
 
	 */
 
	function input_form_render()
 
	{
0 comments (0 inline, 0 general)