Changeset - 2c0531510745
[Not reviewed]
default
0 1 0
ethanzonca - 15 years ago 2010-09-30 22:09:02

Schedules to Print now autofills with current selection for editing
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -281,49 +281,49 @@ class Schedule
 
		if(isset($_REQUEST['print'])){
 
			echo '<script type="text/javascript">';
 
			echo 'jQuery(document).ready( function() {';
 

	
 
			/* If user entered items to print */
 
			if($_REQUEST['print'] != 'all'){
 
			      echo 'jQuery(\'.section\').hide();';
 
			      $items = explode(',', $_REQUEST['print']);
 
			      foreach($items as $item){
 
				echo 'jQuery(\'#section'.$item.'\').show();';
 
			      }
 
			}
 

	
 
			echo 'jQuery(\'#selectItemsInput\').hide();
 
			      jQuery(\'#selectItems\').click( function() {
 
				jQuery(\'#selectItemsInput\').show();
 
			      });
 
			      jQuery(\'#cancelItems\').click( function() {
 
				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" /><input type="submit" value="submit" /><span id="cancelItems"><input type="button" value="cancel" /></span></form></p></div>';
 
			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\">"
 
			  . "    <div class=\"scontent\">";
 
		
 
			for($i = 0; $i < $this->nPermutations; $i++)
 
			{
0 comments (0 inline, 0 general)