# HG changeset patch
# User ethanzonca
# Date 2010-09-23 23:28:46
# Node ID 986e496149ed7b5e54283c9926b10841d60c1e36
# Parent 1ada80542b2a229cd36e205aab608c75ddb33223
Additional minor changes
diff --git a/class.schedule.php b/class.schedule.php
--- a/class.schedule.php
+++ b/class.schedule.php
@@ -245,28 +245,29 @@ class Schedule
"\n\n
".
*/
- $headcode = array('outputStyle', 'gliderHeadcode');
+ $footcloser = '';
+
+ if(isset($_REQUEST['print'])){
+ $headcode = array('outputStyle', 'outputPrintStyle');
+ }
+ else {
+ $footcloser .="
";
+ $headcode = array('outputStyle', 'gliderHeadcode');
+ }
$outputPage = new page($this->getName(), $headcode);
-
-
-
-
-
-
-
-
-
-
-
-
+ if(isset($_REQUEST['print'])){
+ echo '';
+ echo 'Return to normal view :: Home
';
+ }
+ else {
+ echo 'Print :: Home
';
+ }
echo "There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.
";
-
- $footcloser .="";
-
+
if($this->nPermutations > 0)
{
diff --git a/inc/class.page.php b/inc/class.page.php
--- a/inc/class.page.php
+++ b/inc/class.page.php
@@ -33,6 +33,7 @@ class page {
$this->headCode['jQuery'] = '';
$this->headCode['jValidate'] = '';
$this->headCode['schedInput'] = '';
+ $this->headCode['outputPrintStyle'] = ' ';
$this->headCode['outputStyle'] = ' ';
$this->headCode['gliderHeadcode'] = ' ';
diff --git a/input.php b/input.php
--- a/input.php
+++ b/input.php
@@ -22,7 +22,7 @@ include_once 'inc/class.page.php';
- Section Numbering Style: Custom Numbered Lettered
+ Custom Section Labels Numbered Section Labels Lettered Section Labels
@@ -53,7 +53,9 @@ include_once 'inc/class.page.php';
TODO:
- Add print stylesheet and button to output page
+ Autoincrement section num/letter/custom labels
+ Make output and print output formatting look nicer
+ Make printing work for saved jobs where jobkey != 0
After selecting a start time, set the end time to one hour after the start time
Append sections
Move the add class button to somewhere nicer, maybe a gray row at the bottom. Make the submit button more obvious.