Changeset - 2e1da4fcc1b6
[Not reviewed]
default
0 3 0
ethanzonca - 15 years ago 2010-09-23 21:44:22

Made classes seperate from sections, added nonworking numerous option
3 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
index.php
Show inline comments
 
@@ -4,7 +4,7 @@
 
?>
 

	
 
<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>
 
<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> and <a href="http://cedarville.edu/">Cedarville University</a> students, although it may work for other schools as well.</p>
 

	
 

	
 
<?
input.php
Show inline comments
 
@@ -20,7 +20,7 @@ include_once 'inc/class.page.php';
 
		</td>
 
	</tr>
 
	<tr>
 
		<td colspan="11" style="padding-bottom: 2em;">Sections at my school are <select id="isNumeric" type="text" class="required" name="isnumbered" ><option value="numbered">Numbered</option><option value="lettered">Lettered</option></select>
 
		<td colspan="11" style="padding-bottom: 2em;">Sections at my school are <select id="isNumeric" type="text" class="required" name="isnumbered" ><option value="numbered">Numbered</option><option value="lettered">Lettered</option><option value="numerous">Incredibly numerous</option></select>
 

	
 
	<!-- Header -->
 
	<tr>
 
@@ -48,6 +48,10 @@ include_once 'inc/class.page.php';
 
<h3>TODO:</h3>
 

	
 
<ul>
 
	<li>After selecting a start time, set the end time to one hour after the start time</li>
 
        <li><strong>Append</strong> sections</li>
 
        <li>Move the add class button to somewhere nicer, maybe a gray row at the bottom. Make the submit button more obvious.</li>
 
	<li><strong>Switch from dropdown for section identifier to entry field</strong></li>
 
	<li>Form validation to ensure endtime is after starttime, at least one day is checked.</li>
 
	<li>Auto-populate form based on saved schedule?</li>
 
        <li>Grab data from school sites such as <a href="http://www.cedarville.edu/courses/schedule/2010fa_be_bebl.htm" target="_blank">this?</a></li>
scripts/scheduleInput.js
Show inline comments
 
@@ -133,7 +133,7 @@
 
	//--------------------------------------------------
 
	function addRow(){
 
		sectionsOfClass[classNum] = 0; // This is class 0, initialize at 0
 
		jQuery('#jsrows').append('<tr title="' + classNum + '" class="class class' + classNum + '"><td><input type="text" class="required defText" title="Class Name" name="postData[' + classNum + '][name]" /></td>' + getCommonInputs(classNum) + '<td><div class="addSection"><input type="button" value="Add section" /></div></td><td><div class="deleteClass"><input type="button" value="Delete" /></div></td></tr>');
 
		jQuery('#jsrows').append('<tr title="' + classNum + '" class="class class' + classNum + '"><td><input type="text" class="required defText" title="Class Name" name="postData[' + classNum + '][name]" /></td><td colspan="8"></td><td><div class="addSection"><input type="button" value="Add section" /></div></td><td><div class="deleteClass"><input type="button" value="Delete" /></div></td></tr>');
 
		classNum++;
 
	};
 
	
0 comments (0 inline, 0 general)