Changeset - 46b0cd850b52
[Not reviewed]
default
0 3 1
Ethan Zonca - 15 years ago 2010-12-08 21:29:20
ez@ethanzonca.com
Fix bug 36 (show only 5 saved schedules) and add alpha to the logo
4 files changed with 43 insertions and 8 deletions:
0 comments (0 inline, 0 general)
images/slatepermutate-alpha.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
inc/class.page.php
Show inline comments
 
@@ -201,7 +201,7 @@ class page
 
  private function top(){
 
    echo '      <div id="header">'. PHP_EOL .
 
	 '        <div id="title">'. PHP_EOL .
 
         '          <h1><a href="index.php"><img src="images/slatepermutate.png" alt="SlatePermutate" class="noborder" /></a><br /></h1>'. PHP_EOL .
 
         '          <h1><a href="index.php"><img src="images/slatepermutate-alpha.png" alt="SlatePermutate" class="noborder" /></a><br /></h1>'. PHP_EOL .
 
         '          <p>'. PHP_EOL .
 
         '            <span id="subtitle">'.$this->pagetitle.'</span>'. PHP_EOL .
 
  	 '            <span id="menu">Profile: '.$this->school['name'].' <a href="input.php?selectschool=1">(change)</a></span>'. PHP_EOL .
 
@@ -254,15 +254,26 @@ class page
 
	  $process_php_s = '';
 

	
 
	echo '<div id="savedBox" ><h3>Saved Schedules:</h3>';
 

	
 

	
 
        $hidden = '';
 
	foreach($session['saved'] as $key => $name)
 
	  {
 
	    echo '<a href="' . $process_php_s . $key . '" title="View schedule #' . $key . '">#' . $key . "</a>:\n "
 
	      . htmlentities($name)
 
	      . ' <a href="input.php?s=' . $key . '">edit</a>'
 
	      . ' <a href="process.php?del=' . $key . '">delete</a>'
 
	      . "<br /><br />\n";
 
            if($key == 5) {
 
              echo '<div id="showMore"><a href="#">More...</a></div>';
 
              $hidden = 'hidden';
 
            }
 
            else {
 
                    echo '<p class="' . $hidden . '">';
 
 		    echo '<a href="' . $process_php_s . $key . '" title="View schedule #' . $key . '">#' . $key . "</a>:\n "
 
		      . htmlentities($name)
 
		      . ' <a href="input.php?s=' . $key . '">edit</a>'
 
		      . ' <a href="process.php?del=' . $key . '">delete</a>'
 
		      . "<br /><br />\n"
 
                      . '</p>';
 
	   }
 
	  }
 
	echo '</div>';
 
	echo '<div id="showLess"><a href="#">Less...</a></div></div>';
 
      }
 
    echo '</p>';
 
  }
scripts/scheduleInput.js
Show inline comments
 
@@ -411,7 +411,19 @@ jQuery(document).ready(function() {
 
		jQuery('.advanced').slideToggle();
 
	});
 

	
 

	
 
	//-------------------------------------------------
 
	// Show more saved schedules
 
	//-------------------------------------------------
 
        jQuery('#showMore').click( function() {
 
		jQuery('.hidden').show();
 
		jQuery('#showMore').hide();
 
		jQuery('#showLess').show();
 
        });
 
        jQuery('#showLess').click( function() {
 
		jQuery('.hidden').hide();
 
		jQuery('#showMore').show();
 
		jQuery('#showLess').hide();
 
	});
 

	
 

	
 
});
styles/general.css
Show inline comments
 
@@ -210,3 +210,15 @@ td.center {
 
.bold {
 
  font-weight: bold;
 
}
 

	
 
/** Used for hidden saved schedules */
 
.hidden {
 
  display: none;
 
}
 
#showLess {
 
  display:none;
 
}
 
#savedBox p {
 
  padding:0;
 
  margin:0;
 
}
0 comments (0 inline, 0 general)