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

Some changes
5 files changed with 43 insertions and 64 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
 
@@ -4,8 +4,8 @@
 
?>
 

	
 
<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
 
@@ -43,26 +43,15 @@ var sectionsOfClass = Array();
 
?>
 
<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>
 
@@ -85,12 +74,11 @@ var sectionsOfClass = Array();
 
  <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
 
@@ -215,46 +215,13 @@
 
	});
 
	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();
 
      jQuery('.advanced').slideToggle();
 
    });
 
	//--------------------------------------------------
 
	// Show/Hide advanced items
 
	//--------------------------------------------------
 
	jQuery('.advanced').hide();    
 
	jQuery('#showadvanced').click( function() {
 
	  jQuery('#showadvanced').hide();
 
	  jQuery('.advanced').slideToggle();
 
	});
 

	
 
});
styles/general.css
Show inline comments
 
@@ -10,6 +10,8 @@ body {
 
  background: transparent;
 
  width: 80%;
 
  margin:auto;
 
  min-width: 900px;
 
  max-width: 1100px;
 
}
 
#content {
 
  background: #fff;
 
@@ -74,6 +76,9 @@ td.center {
 

	
 
/* Input Formatting */
 

	
 
#container {
 
  margin-left: 2em;
 
}
 
.defaultText { 
 
  width: 300px;
 
}
 
@@ -116,6 +121,19 @@ td.center {
 
  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 */
 

	
 
@@ -123,5 +141,11 @@ td.center {
 
  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)