Changeset - fc6b04256a92
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2010-09-30 21:24:05
ohnobinki@ohnopublishing.net
Fix validation errors caused by closing </div> confusion.
2 files changed with 19 insertions and 7 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -268,13 +268,13 @@ class Schedule
 
		$footcloser = '';
 

	
 
                if(isset($_REQUEST['print']) && $_REQUEST['print'] != ''){
 
	                $headcode = array('jQuery', 'outputStyle', 'outputPrintStyle');
 
		}
 
		else {
 
			$footcloser .="</div></div><script type=\"text/javascript\" charset=\"utf-8\">". 
 
			$footcloser .="<script type=\"text/javascript\" charset=\"utf-8\">". 
 
				"\n\tvar my_glider = new Glider('my-glider', {duration:0});".
 
				"\n</script>";
 
			$headcode = array('outputStyle', 'gliderHeadcode');
 
		}
 
		$outputPage = new page($this->getName(), $headcode);
 

	
 
@@ -310,20 +310,23 @@ class Schedule
 

	
 
		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\"><div class=\"controls\">";
 
			$table .= "<div class=\"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><div class=\"scroller\"><div class=\"scontent\">";
 
			$table .= "  </div> <!-- class=\"controls\" -->\n"
 
			  . "  <div class=\"scroller\">"
 
			  . "    <div class=\"scontent\">";
 
		
 
			for($i = 0; $i < $this->nPermutations; $i++)
 
			{
 
				$table .= "<div class=\"section\" id=\"section" . ($i+1) . "\">";
 
  
 
				// Beginning of table
 
@@ -560,16 +563,20 @@ class Schedule
 

	
 
					// End of row
 
					$table .= "\n\t</tr>";
 
				}
 

	
 
				// End of table
 
				$table .= "</table></div>";
 
				$table .= '</table></div> <!-- id="section' . ($i + 1) . "\" -->\n";
 
			}
 

	
 
			echo $table . "</div>" . $footcloser; // Closes off the content div
 
			echo $table
 
			  . "    </div> <!-- class=\"scontent\" -->\n"
 
			  . "  </div> <!-- class=\"scroller\" -->\n"
 
			  . "</div> <!-- id=\"my-glider\" -->\n"
 
			  . $footcloser; // Closes off the content div
 
		} else {
 
			echo '<html><body><p>There are no possible schedules. Please try again.</p></body></html>';
 
		}
 

	
 
		/* edit button */
 
		if (!isset($savedkey))
inc/class.page.php
Show inline comments
 
@@ -115,15 +115,20 @@ class page {
 
    echo '</head>
 
	  <body '.$this->bodyargs.' ><div id="page">';
 
    echo $this->top(); // Write out top
 
  }
 

	
 
  public function foot(){
 
    echo '</div>';
 
    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></div>';
 
    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>';
 
    echo $this->trackingcode;
 
    echo '</body></html>';
 
  }
 

	
 
  public function secondsToCompound($seconds) {
 
      $ret = "";
0 comments (0 inline, 0 general)