Changeset - b4ef90baeae0
[Not reviewed]
default
0 3 0
nathang - 15 years ago 2010-07-13 22:39:42
ngelderloos7@gmail.com
added tracking
3 files changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -215,49 +215,49 @@ class Schedule
 
				"\n.top{\n\tborder-style:solid solid none solid;\nbackground-color:#dddddd;\n}".
 
				"\n.mid{\n\tborder-style:none solid none solid;\nbackground-color:#dddddd;\n}".
 
				"\n.end{\n\tborder-style:none solid solid solid;\nbackground-color:#dddddd;\n}".
 
				"\n.none{\n\tborder-style:none;\n}".
 
				"\n.single{\n\tborder-style:solid;\n\tbackground-color:#dddddd;\n}".
 
				"\ntd{\n\ttext-align:center;\nwidth:7em;\n}".
 
				"\n.time{\n\tborder-style:none none solid none;\n}".
 
				"\n.day{\n\tborder-style:none none solid solid;\n}".
 
				
 
			"\n</style>".
 

	
 
			"\n<script src=\"http://www.google.com/jsapi\"></script>".
 
			"\n<script type=\"text/javascript\" charset=\"utf-8\">".
 
			"\n\tgoogle.load(\"jquery\", \"1.3.2\");".
 
			"\n\tgoogle.load(\"jqueryui\", \"1.7.2\");".
 
			"\n</script>".
 

	
 
			"\n<link rel=\"stylesheet\" href=\"styles/general.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">".
 

	
 
			"\n<link rel=\"stylesheet\" href=\"styles/glider.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">".
 
			"\n<script src=\"scripts/prototype.js\" type=\"text/javascript\" charset=\"utf-8\"></script>". 
 
			"\n<script src=\"scripts/effects.js\" type=\"text/javascript\" charset=\"utf-8\"></script>".
 
			"\n<script src=\"scripts/glider.js\" type=\"text/javascript\" charset=\"utf-8\"></script>".
 
			
 
			"\n</head><body>".
 
			"\n</head><body><?php include_once("analyticstracking.php") ?>".
 

	
 
			"<p>There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.</p>".
 

	
 
			"\n\n<div id=\"header\">\n<h1><em>SlatePermutate</em> - Scheduler</h1><h3>Schedule name: " . $this->getName() . "</h3>\n</div><div id=\"content\">";
 
			
 
		$footer .="</div></div><script type=\"text/javascript\" charset=\"utf-8\">". 
 
			"\n\tvar my_glider = new Glider('my-glider', {duration:0});".
 
			"\n</script>\n\n</div><div id=\"footer\">\n<h5>&copy; " . Date("Y") . " <a href=\"http://protofusion.org/~nathang/\">Nathan Gelderloos</a><br />".
 
			"\nwith special thanks to <a href=\"http://ethanzonca.com\">Ethan Zonca</a></h5>\n</div>";
 

	
 
		$footer .="\n\n</body></html>";
 

	
 
		if($this->nPermutations > 0)
 
		{
 
			$table .= "<div id=\"my-glider\"><div class=\"controls\">";
 
			
 
			for($nn = 1; $nn <= $this->nPermutations; $nn++)
 
			{
 
			$table .= "<a href=\"#section" . $nn . "\">&nbsp;" . $nn . "&nbsp;</a>";
 
			}
 
			
 
			$table .= "</div><div class=\"scroller\"><div class=\"scontent\">";
 
		
 
			for($i = 0; $i < $this->nPermutations; $i++)
index.php
Show inline comments
 
@@ -16,40 +16,42 @@
 
  }
 
  td.center {
 
    text-align:center;
 
  }
 
  .section:nth-child(even) {
 
    background: #DDDDDD;
 
  }
 
  .none {
 
    background: #fff;
 
  }
 
  .class {
 
    background: #99FF99;
 
  }
 
  #classage {
 
    float:left;
 
  }
 
  .paddingtop {
 
    padding: .5em;
 
    padding-top: .8em;
 
  }
 
</style>
 
</head>
 
<body>
 

	
 
<?php include_once("analyticstracking.php") ?>
 

	
 
<div id="header">
 
<h1><em>SlatePermutate</em> -  Scheduler</h1>
 
</div>
 

	
 
<div id="content">
 
<h3>Find the schedule that works for you!</h3>
 
<p>View a <a href="schedulecreator.php">demo output</a> or get <a href="input.php">started on your own</a>. This program was created specifically for use by <a href="http://www.calvin.edu">Calvin College</a> students, although it may work for other schools as well.</p>
 
</div>
 

	
 
<div id="footer">
 
<h5>&copy; <?php echo Date("Y") . ' ' . Date("n") . ' ' . Date("j"); ?> <a href="http://protofusion.org/~nathang/">Nathan Gelderloos</a><br />
 
with special thanks to <a href="http://ethanzonca.com">Ethan <?php if((Date("n")==7)&&(Date("j")==11)){echo '"the Birthday Boy" ';} ?>Zonca</a></h5>
 
</div>
 

	
 
</body>
 
</html>
input.php
Show inline comments
 
@@ -247,48 +247,50 @@ include_once 'class.section.php';
 
    {
 
        if (jQuery(this).val() == jQuery(this)[0].title)
 
        {
 
            jQuery(this).removeClass("defaultTextActive");
 
            jQuery(this).val("");
 
        }
 
    });
 
    jQuery(".defText").blur(function()
 
    {
 
        if (jQuery(this).val() == "")
 
        {
 
            jQuery(this).addClass("defaultTextActive");
 
            jQuery(this).val($(this)[0].title);
 
        }
 
    });
 
    jQuery(".defText").blur();    
 

	
 
});
 

	
 
</script>
 

	
 
</head>
 
<body>
 

	
 
<?php include_once("analyticstracking.php") ?>
 

	
 
<div id="header">
 
	<h1>
 
		<em>
 
			SlatePermutate
 
		</em>
 
		-  Scheduler
 
	</h1>
 
</div>
 

	
 
<div id="content">
 
	<p>
 

	
 
<?
 
if(isset($_SESSION['saved']) && count($_SESSION['saved']) > 0){
 
	echo '<div id="savedBox" ><h3>Saved Schedules:</h3>';
 
	foreach($_SESSION['saved'] as $key => $schedule){
 
		$sch = unserialize($schedule);
 
		echo "<a href=\"process.php?savedkey=$key\">#" . ($key + 1) . " - " . $sch->getName() . "</a> <em><a href=\"process.php?delsaved=$key\"><img src=\"images/close.png\" style=\"border:0;\" /></a></em><br />";
 
	}
 
	echo '</div>';
 
}
 
?>
 

	
 
	</p>
0 comments (0 inline, 0 general)