Changeset - 7781b70e28c7
[Not reviewed]
Merge default
0 1 0
Ethan Zonca - 15 years ago 2010-10-27 22:20:29
ez@ethanzonca.com
merge
1 file changed with 7 insertions and 7 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -234,55 +234,55 @@ class Schedule
 
      echo 'jQuery("#tabs").tabs();';
 
      echo 'jQuery("#sharedialog").dialog({ modal: true, width: 550, resizable: false, draggable: false, autoOpen: false });';
 
      echo 'jQuery("#share").click( function() {
 
              jQuery("#sharedialog").dialog("open");
 
            });';
 
      echo 'jQuery(\'#printItems\').click( function() {
 
		window.location = "'.$_SERVER['SCRIPT_NAME'].'?s='.$this->id_get().'&print=" + (jQuery(\'#tabs\').tabs(\'option\',\'selected\') + 1);
 
	    });
 
	    jQuery(\'#cancelItems\').click( function() {
 
		jQuery(\'#selectItemsInput\').hide();
 
	    });
 
';
 
      echo '});</script>'; /* Close document.ready for jquery */
 
      echo '<div id="sharedialog" title="Share Schedule"><p>You can share your schedule with the URL below:</p><p><!--http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'].'-->'.$outputPage->gen_share_url($this->id_get()).'</p></div>';
 
      echo '<p><span id="printItems"><a href="#">Print</a></span> :: <span id="share"><a href="#">Share</a></span> :: <a href="input.php">Home</a></p><p class="centeredtext">Having problems? <a href="feedback.php">Let us know</a>.</p><p class="centeredtext graytext"><em>Keyboard Shortcut: Left and right arrow keys switch between schedules</em></p>';
 
    }		
 

	
 
    echo "\n";
 

	
 
    if($this->nPermutations > 0)
 
      {
 
	$table .= "<div id=\"tabs\">\n"
 

	
 

	
 
    . '<div id="show-box" class="show-buttons">
 
  <form>
 
     <label><strong>Display:</strong></label>
 
     <input id="show-prof" name="show-prof" type="checkbox" checked="checked" /><label for="show-prof">Professor</label>
 
     <input id="show-location" name="show-location" type="checkbox" /><label for="show-location">Room</label>
 
     <input id="show-synonym" name="show-synonym" type="checkbox" /><label for="show-synonym">Synonym</label>
 
  </form>
 
    . '  <div id="show-box" class="show-buttons">
 
    <form>
 
       <label><strong>Display:</strong></label>
 
       <input id="show-prof" name="show-prof" type="checkbox" checked="checked" /><label for="show-prof">Professor</label>
 
       <input id="show-location" name="show-location" type="checkbox" /><label for="show-location">Room</label>
 
       <input id="show-synonym" name="show-synonym" type="checkbox" /><label for="show-synonym">Synonym</label>
 
    </form>
 
  </div> <!-- id="show-box" -->'
 

	
 

	
 

	
 

	
 
	  . "<div><ul>\n";
 
			
 
	for($nn = 1; $nn <= $this->nPermutations; $nn++)
 
	  {
 
	    $table .= "<li><a href=\"#tabs-" . $nn . "\">&nbsp;" . $nn . "&nbsp;</a></li>\n";
 
	  }
 
			
 
	$table .= "    </ul></div>\n  \n"
 
	  . "  <div class=\"scroller\">\n"
 
	  . "    <div class=\"scontent\">\n";
 
		
 
	for($i = 0; $i < $this->nPermutations; $i++)
 
	  {
 
	    $table .= '      <div class="section" id="tabs-' . ($i+1) . "\">\n";
 
  
 
	    // Beginning of table
 
	    $table .= "        <table style=\"empty-cells:show;\" border=\"1\" cellspacing=\"0\">\n";
 
				
 
	    // Header row
0 comments (0 inline, 0 general)