Changeset - 4384f5bb4a40
[Not reviewed]
default
0 4 1
ethanzonca - 15 years ago 2010-10-02 23:05:42

Some changes
5 files changed with 35 insertions and 56 deletions:
0 comments (0 inline, 0 general)
images/get-started.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
index.php
Show inline comments
 
<?php 
 
	include_once 'inc/class.page.php'; 
 
	$mypage = new page('Welcome');
 
?>
 

	
 
<h3>Find the schedule that works for you!</h3>
 
<p>View <a href="schedulecreator.php">demo output</a> or get <a href="input.php">started on your own</a>. This program was created by <a href="http://www.calvin.edu">Calvin College</a> and <a href="http://cedarville.edu/">Cedarville University</a> students. SlatePermutate is institution-apathetic.</p>
 

	
 
<p>View <a href="schedulecreator.php">demo output</a> or <a href="input.php">get started on your own</a>. This program was created by <a href="http://www.calvin.edu">Calvin College</a> and <a href="http://cedarville.edu/">Cedarville University</a> students. SlatePermutate works with any college or university.</p>
 
<p class="righttext"><a href="input.php"><img class="noborder" src="images/get-started.png" alt="Get Started" /></a></p>
 

	
 
<?php
 
$mypage->foot();
input.php
Show inline comments
 
@@ -40,32 +40,21 @@ var sectionsOfClass = Array();
 

	
 
$inputPage->head();
 
$inputPage->showSavedScheds($_SESSION);
 
?>
 
<p>Welcome to SlatePermutate! To get started, enter in some of your classes, and add available sections for each class.</p>
 
<form method="post" action="process.php" id="scheduleForm">
 
<br />
 
<label>Schedule Name</label><br />
 
<input id="scheduleName" style="margin-bottom: 1em;" class="defText required" type="text" size="25" title="(e.g., Spring <?php echo Date('Y'); ?>)" name="postData[name]"
 
<?php if ($sch) echo 'value="' . str_replace('"', '&quot;', $sch->getName()) . '"'; /*"*/ ?>
 
/>
 

	
 
<table id="container">
 
  <tr><td>
 
    <table id="jsrows">
 
      <tr>
 
	<td colspan="11">
 
	  <input id="scheduleName" style="margin-bottom: 2em;" class="defText required" type="text" size="25" title="Schedule Name (e.g., Spring <?php echo Date('Y'); ?>)" name="postData[name]"
 
		 <?php if ($sch) echo 'value="' . str_replace('"', '&quot;', $sch->getName()) . '"'; /*"*/ ?>
 
		 />
 
	</td>
 
      </tr>
 
      <tr>
 
	<td class="advanced" colspan="11" style="padding-bottom: 2em;">
 
	  Section Labels are <select id="isNumeric" class="required" name="isnumbered">
 
	    <?php $isSelected = 'selected="selected"'; ?>
 
	    <option value="numerous" <?php if(!$sch || $sch->section_format == "numerous") echo $isSelected ?> >Custom</option>
 
	    <option value="numbered" <?php if($sch && $sch->section_format == "numbered") echo $isSelected ?> >Numbered</option>
 
	    <option value="lettered" <?php if($sch && $sch->section_format == "lettered") echo $isSelected ?> >Lettered</option>
 
	  </select>
 
	</td>
 
	</tr>
 
	<!-- Header -->
 
	<tr>
 
		<td>Class</td>
 
		<td class="center" id="letterNumber">Section</td>
 
		<td class="center">Start Time</td>
 
		<td class="center">End Time</td>
 
@@ -82,15 +71,14 @@ var sectionsOfClass = Array();
 
  </td>
 
  </tr>
 
  
 
  <tr><td> <span class="gray" style="padding: 0 3.5em 0 3.5em;" id="addclass">Add Class</span></td></tr>
 
</table>
 

	
 
<!-- <div class="paddingtop" id="classage"><input type="button" value="Add class" /></div> -->
 
<div class="paddingtop"><input style="float:left;" type="submit" value="Find a schedule" /></div>
 
<div class="paddingtop"><input class="green" style="margin:0;padding:0;" type="submit" value="Find a schedule" /></div>
 

	
 
</form>
 

	
 
<p>&nbsp;<br /><br /><br /></p>
 
<p><span id="showadvanced" style="margin-left: 1em;"><a href="#">Advanced</a></span></p>
 
<?php /* RE-enable if advanced options added: <p><span id="showadvanced" style="margin-left: 1em;"><a href="#">Advanced</a></span></p> */ ?>
 
<?php
 
$inputPage->foot();
scripts/scheduleInput.js
Show inline comments
 
@@ -212,45 +212,12 @@
 
		jQuery(this).addClass("defaultTextActive");
 
		jQuery(this).val($(this)[0].title);
 
	    }
 
	});
 
	jQuery(".defText").blur();
 

	
 

	
 
    //--------------------------------------------------
 
    // Change section identifier type (from dropdown)
 
    //--------------------------------------------------
 
    jQuery("#isNumeric").live('change', function() {
 
      if(this.value == "lettered"){
 
         /* Replace with lettered */
 
         jQuery(".sectionIdentifier").each( function(index) {
 
           var name = jQuery("select", this).attr("name");
 
           jQuery(this).empty();
 
           jQuery(this).append(letteredIds(name));
 
         });
 
      }
 
      else if(this.value == "numbered"){
 
         /* Replace with numbered */
 
         jQuery(".sectionIdentifier").each( function(index) {
 
           var name = jQuery("select", this).attr("name");
 
           jQuery(this).empty();
 
           jQuery(this).append(numberedIds(name));
 
         });
 
      }
 
      else {
 
         /* Replace with custom */
 
         jQuery(".sectionIdentifier").each( function(index) {
 
           var name = jQuery("select", this).attr("name");
 
           jQuery(this).empty();
 
           jQuery(this).append(customIds(name));
 
         });
 

	
 
      }
 

	
 
    });
 

	
 
    //--------------------------------------------------
 
    // Show/Hide advanced items
 
    //--------------------------------------------------
 
    jQuery('.advanced').hide();    
 
    jQuery('#showadvanced').click( function() {
 
      jQuery('#showadvanced').hide();
styles/general.css
Show inline comments
 
@@ -7,12 +7,14 @@ body {
 

	
 
#page {
 
  font: normal 14px sans-serif;
 
  background: transparent;
 
  width: 80%;
 
  margin:auto;
 
  min-width: 900px;
 
  max-width: 1100px;
 
}
 
#content {
 
  background: #fff;
 
  padding: 12px;
 
}
 
#header {
 
@@ -71,12 +73,15 @@ td.center {
 
  background: #70a97c;
 
}
 

	
 

	
 
/* Input Formatting */
 

	
 
#container {
 
  margin-left: 2em;
 
}
 
.defaultText { 
 
  width: 300px;
 
}
 
.defaultTextActive { 
 
  color: #a1a1a1; 
 
  font-style: italic; 
 
@@ -113,15 +118,34 @@ td.center {
 
  cursor:default;
 
}
 
.gray:hover {
 
  background: #DDD!important;
 
}
 

	
 
.green {
 
  border-radius: 5px;
 
  -moz-border-radius: 5px;
 
  -webkit-border-radius: 5px;
 
  border: 1px solid #999;
 
  text-align: center!important;
 
  background: #92a689!important;
 
  cursor:default;
 
}
 
.green:hover {
 
  background: #68a64a!important;
 
}
 

	
 

	
 
/* General Classes */
 

	
 
.clear {
 
  clear: all;
 
}
 
.noborder {
 
  border: none;
 
  border: none!important;
 
}
 
.righttext {
 
  text-align: right;
 
}
 
.centeredtext {
 
  text-align: center;
 
}
 
\ No newline at end of file
0 comments (0 inline, 0 general)