Changeset - 90e0061811e1
[Not reviewed]
default
0 5 0
ethanzonca - 15 years ago 2010-10-09 20:54:04

Incremental styling commit, etc
5 files changed with 52 insertions and 52 deletions:
0 comments (0 inline, 0 general)
inc/class.page.php
Show inline comments
 
@@ -80,7 +80,7 @@ class page
 
   * \param $key
 
   *   The key to register this headcode under.
 
   * \param $code
 
   *   The actuall code, such as a <script/>.
 
   *   The actual code, such as a <script/>.
 
   * \param $enable
 
   *   Whether or not to enable this code while adding it.
 
   */
 
@@ -91,17 +91,6 @@ class page
 
      $this->scripts[] = $key;
 
  }
 

	
 
  private function top(){
 
    echo '<div id="header">
 
	    <h2 id="title"><a href="index.php"><img src="images/slatepermutate.png" alt="SlatePermutate" class="noborder" /></a><br /><span style="margin-left: 1em;">'.$this->pagetitle.'</span></h2>
 
	    
 
	    <span id="menu">
 
	      <!-- <a href="index.php">Home</a> :: <a href="input.php">Scheduler</a> :: <a href="about.php">About</a> -->
 
	    </span>
 
	  </div>
 
          <div id="content">';
 
  }
 

	
 
// Public functions/vars
 

	
 
  public function head(){
 
@@ -126,15 +115,35 @@ class page
 
    echo $this->top(); // Write out top
 
  }
 

	
 
  private function top(){
 
    echo '<div id="header">
 

	
 
	    <div id="title">
 
              <h1><a href="index.php"><img src="images/slatepermutate.png" alt="SlatePermutate" class="noborder" /></a><br /></h1>
 
              <p><span id="subtitle">'.$this->pagetitle.'</span>
 
  	      <span id="menu">Profile: '.$this->school['name'].' <a href="input.php?selectschool=1">(change)</a></span>
 

	
 
              </p>
 

	
 

	
 

	
 
            </div>
 

	
 
	  </div>
 
          <div id="content">';
 
  }
 

	
 

	
 

	
 
  public function foot(){
 
    echo '</div> <!-- id="content" -->';
 
    $this->pageGenTime = round(microtime(), 3);
 
    echo '  <div id="footer">
 
    <h5>&copy; '. date('Y').' <a href="http://protofusion.org/~nathang/">Nathan Gelderloos</a><br />
 
      <a href="http://ethanzonca.com">Ethan Zonca</a>
 
    </h5>
 
  </div> <!-- id="footer" -->
 
</div>';
 
          <h5>&copy; '. date('Y').' <a href="http://protofusion.org/~nathang/">Nathan Gelderloos</a><br />
 
            <a href="http://ethanzonca.com">Ethan Zonca</a>
 
          </h5>
 
        </div> <!-- id="footer" -->
 
      </div>';
 
    echo $this->trackingcode;
 
    echo '</body></html>';
 
  }
input.php
Show inline comments
 
@@ -69,11 +69,9 @@ if ($_REQUEST['selectschool'] == 1
 
?>
 
<p>
 
  Welcome to SlatePermutate<?php $inputPage->addressStudent(', ', '',
 
  FALSE); ?>! (<a href="input.php?selectschool=1">Not from <?php echo
 
  $school['name']; ?>?</a>) To get started, enter in some of your
 
  FALSE); ?>! To get started, enter in some of your
 
  classes, and add available sections for each class.
 
</p>
 
<p style="color: #999"><em>Keyboard Shortcut: Press "c" to add a class</em></p>
 
<form method="post" action="process.php" id="scheduleForm">
 
<br />
 
<label>Schedule Name</label><br />
school.d/calvin.inc
Show inline comments
 
@@ -38,14 +38,14 @@ function calvin_instructions_html()
 
  return <<<EOF
 
<h2>Calvin-specific Instructions</h2>
 
<p>
 
  <tt>slate_permutate</tt> can be a useful tool for scheduling your next semester at <a href="http://calvin.edu/">Calvin College</a>.
 
  SlatePermutate can be a useful tool for scheduling your next semester at <a href="http://calvin.edu/">Calvin College</a>.
 
</p>
 
<ol>
 
  <li>Get in touch with your advisor during advising/reading recess.</li>
 
  <li>Look up each class your advisor specified in Calvin's registration page of <a href="http://kv.calvin.edu/">KnightVision</a> (soon to be <a href="http://moodle.calvin.edu">moo</a>).</li>
 
  <li>Enter each class into a <tt>slate_permutate</tt> schedule and add each section that is listed that you are willing to take.</li>
 
  <li>Submit your schedule and view all of the different permutations of your schedule which would work with the sections you specified.</li>
 
  <li>Print our your preferred schedule by selecting a schedule an choosing your User-Agent's print option.</li>
 
  <li>Print out your preferred schedule by choosing "print" and selecting a schedule.</li>
 
  <li>Wait until it's your turn to register and grab your preferred sections before they fill up!</li>
 
</ol>
 
EOF;
scripts/scheduleInput.js
Show inline comments
 
@@ -224,34 +224,4 @@
 
	  jQuery('.advanced').slideToggle();
 
	});
 

	
 

	
 

	
 

	
 

	
 

	
 

	
 
  jQuery(document).keydown(function(e) {
 

	
 
    var direction = null;
 

	
 
   // handle cursor keys
 
   if (e.keyCode == 67) {
 
     // slide left
 
     direction = 'addrow';
 
   } 
 
   if (direction != null) {
 
    if (direction == 'addrow') {
 
       addRow();
 
    }
 
  }
 
 });
 

	
 

	
 

	
 

	
 

	
 

	
 

	
 

	
 

	
 
});
styles/general.css
Show inline comments
 
@@ -20,9 +20,12 @@ body {
 
#header {
 
  border-bottom: 1px dashed #888;
 
  text-align: left;
 
  width: 100%;
 
}
 
#header h2 {
 
  font:  italic 20px sans-serif;
 
  margin: 0;
 
  padding: 0;
 
}
 
#footer {
 
  border-top: 1px dashed #888;
 
@@ -36,6 +39,26 @@ body {
 
  background: #EEE;
 
  font-size: .8em;
 
}
 
#title p {
 
  margin-top: -1.5em;
 
  margin-left: 1em;
 
  margin-bottom: .5em;;
 
  padding:0;
 
}
 
#menu {
 
  float: right;
 
  text-align: right;
 
  margin-top: 1em;
 
}
 
#menu a {
 
  text-decoration: none;
 
}
 
#subtitle {
 
  font:  italic 20px sans-serif;
 
  margin-left: 1em;
 
  margin: 0;
 
  padding:0;
 
}
 

	
 

	
 
/* Link Styling */
0 comments (0 inline, 0 general)