Changeset - 73f58d77e758
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2010-09-30 21:44:39
ohnobinki@ohnopublishing.net
Add jQueryUI back to input.php and fix the glider on schedulecreator.php by using id="my-glider" instead of class="my-glider".
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -259,25 +259,25 @@ class Schedule
 
			"\n<script src=\"scripts/glider.js\" type=\"text/javascript\" charset=\"utf-8\"></script>".
 
			
 
			"\n</head><body>".
 

	
 
			
 

	
 
			"\n\n<div id=\"header\">\n<h1><em>SlatePermutate</em> - Scheduler</h1><h3>Schedule name: " . $this->getName() . "</h3>\n</div><div id=\"content\">".
 

	
 
			*/
 
		$footcloser = '';
 

	
 
                if(isset($_REQUEST['print']) && $_REQUEST['print'] != ''){
 
	                $headcode = array('jQuery', 'outputStyle', 'outputPrintStyle');
 
			$headcode = array('jQuery', 'outputStyle', 'outputPrintStyle');
 
		}
 
		else {
 
			$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);
 

	
 
		if(isset($_REQUEST['print'])){
 
			echo '<script type="text/javascript">';
 
			echo 'jQuery(document).ready( function() {';
 
@@ -304,25 +304,25 @@ class Schedule
 
			echo '<p><span id="selectItems"><a href="#">Select Schedules to Print</a></span> :: <a href="'.$_SERVER["SCRIPT_NAME"].'?savedkey=0">Return to normal view</a> :: <a href="input.php">Home</a></p>';
 
			echo '<div  id="selectItemsInput"><p><form action="'.$_SERVER["SCRIPT_NAME"].'?savedkey=0"><label><strong>Schedules to Print</strong> <em>(seperate with commas, "all" for all)</em></label><br /><input type="text" name="print" /><input type="submit" value="submit" /><span id="cancelItems"><input type="button" value="cancel" /></span></form></p></div>';
 
		}
 
		else {
 
			echo '<p><a href="'.$_SERVER["SCRIPT_NAME"].'?savedkey=0&amp;print=all">Print</a> :: <a href="input.php">Home</a></p>';
 
		}
 

	
 
		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 class=\"my-glider\">\n"
 
			$table .= "<div id=\"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> <!-- class=\"controls\" -->\n"
 
			  . "  <div class=\"scroller\">"
 
			  . "    <div class=\"scontent\">";
 
		
 
			for($i = 0; $i < $this->nPermutations; $i++)
input.php
Show inline comments
 
<?php 
 

	
 
include_once 'errors.php';
 
include_once 'class.schedule.php';
 
include_once 'class.class.php';
 
include_once 'class.section.php';
 
include_once 'inc/class.page.php';
 

	
 
$scripts = array('jQuery','jValidate','schedInput');
 
$scripts = array('jQuery', 'jQueryUI', 'jValidate','schedInput');
 
$inputPage = new page('Scheduler', $scripts, FALSE);
 

	
 
$sch = FALSE;
 
if (isset($_REQUEST['savedkey']) && isset($_SESSION['saved']))
 
  {
 
    $savedkey = (int)$_REQUEST['savedkey'];
 
    if (isset($_SESSION['saved'][$savedkey]))
 
      {
 
	$sch = unserialize($_SESSION['saved'][$savedkey]);
 
      }
 
  }
 

	
0 comments (0 inline, 0 general)