Changeset - d31635d04e74
[Not reviewed]
default
0 3 0
Ethan Zonca - 15 years ago 2010-10-27 22:14:38
ez@ethanzonca.com
Restyle show/hide bar, other fixes
3 files changed with 33 insertions and 12 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -240,44 +240,50 @@ class Schedule
 
		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";
 
    echo '<div id="show-box" class="gray righttext" style="float: right; padding-right: 5pt; padding-bottom: 7pt">
 
  <form>
 
     <h3>Display</h3>
 
     <div style="text-align:left;"><input id="show-prof" name="show-prof" type="checkbox" checked="checked" /><label for="show-prof">Professor</label></div>
 
     <div style="text-align:left;"><input id="show-location" name="show-location" type="checkbox" /><label for="show-location">Room</label></div>
 
     <div style="text-align:left;"><input id="show-synonym" name="show-synonym" type="checkbox" /><label for="show-synonym">Synonym</label></div>
 
  </form>
 
  </div> <!-- id="show-box" -->';
 

	
 
    if($this->nPermutations > 0)
 
      {
 
	$table .= "<div id=\"tabs\">\n"
 
	  . "  <ul>\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" -->'
 

	
 

	
 

	
 

	
 
	  . "<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 class=\"clear\"><p> </p> </div>\n  \n"
 
	$table .= "    </ul></div><div class=\"clear\"><p> </p> </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
 
	    $table .= "          <tr>\n"
school.d/cedarville.inc
Show inline comments
 
@@ -6,28 +6,28 @@ function cedarville_info()
 
	       'domains' => array(
 
				  'cedarville.edu',
 
				  ),
 
	       'student_address' => 'Cedarville Student',
 
	       );
 
}
 

	
 
function cedarville_instructions_html()
 
{
 
  return <<<EOF
 
<h2>Cedarville-specific Instructions</h2>
 
<p>
 
  SlatePermutate can be a useful tool for scheduling your next semester at <a href="http://cedarville.edu/">Cedarville University</a>.
 
  SlatePermutate can be a useful tool for scheduling your next semester at <a href="http://cedarville.edu/" target="_blank">Cedarville University</a>.
 
</p>
 
<ol>
 
  <li>Sign up and <strong>talk to your advisor</strong> and figure out which courses you need to take.</li>
 
  <li> <strong>Talk to your advisor</strong> and figure out which courses you need to take. Use the <a href="http://www.cedarville.edu/courses/schedule/">course list</a> to see what's available.</li>
 
  <li>Enter the course ID, such as PHYS-1020, in the Class ID blank. You will see a list of auto-suggestions.</li>
 
  <li><strong>You must click on the auto-suggested item</strong> to automatically add all sections of the class.</li>
 
  <li>Submit your schedule and view all of the different permutations of your schedule.</li>
 
  <li>Wait until it's your turn to register and grab your preferred sections before they fill up!</li>
 
</ol> <!--'-->
 
EOF;
 
}
 

	
 
/**
 
 * \brief
 
 *   Get a list of default classes (with sections (with meeting
 
 *   times)) for Cedarville students.
styles/output.css
Show inline comments
 
@@ -128,12 +128,27 @@ margin-bottom: 2px;
 
  color: rgb(0,0,0)!important;
 
}
 
#tabs li a:active {
 
        color: rgba(200,200,200,1);
 
}
 
#tabs {
 
  min-width: 400px;
 
  max-width: 650px;
 
  margin: auto;
 
}
 
#tabs li /* , .ui-corner-all, .ui-corner-top */ { background: none!important; }
 
#tabs li { border: none!important; }
 

	
 
.show-buttons {
 

	
 
  width: 99%;
 
  margin: auto;
 
  padding: 2px;
 
  background: #EEE;
 
  border: 1px solid #AAA;
 
  border-radius: 3px;
 
  -moz-border-radus: 3px;
 

	
 
}
 
.show-buttons label {
 
  padding-right: .5em;
 
}
0 comments (0 inline, 0 general)