Changeset - e5541919cd1d
[Not reviewed]
default
0 2 0
ethanzonca - 15 years ago 2010-10-08 23:32:05

Trivial coloration/wording changes
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -305,49 +305,49 @@ class Schedule
 
	$items = explode(',', $_REQUEST['print']);
 
	foreach($items as $item){
 
	  echo 'jQuery(\'#section'.$item.'\').show();';
 
	}
 
      }
 

	
 
      echo 'jQuery(\'#selectItemsInput\').hide();
 
			      jQuery(\'#selectItems\').click( function() {
 
				jQuery(\'#selectItemsInput\').show();
 
			      });
 
			      jQuery(\'#cancelItems\').click( function() {
 
				jQuery(\'#selectItemsInput\').hide();
 
			      });';
 
      echo '}); '; /* Close document.ready for jquery */
 
      echo 'window.print(); </script>';
 

	
 
      echo '<p><span id="selectItems"><a href="#">Select Schedules to Print</a></span> :: <a href="'.$_SERVER['SCRIPT_NAME'].'?s=' . $this->id_get() . '">Return to normal view</a> :: <a href="input.php">Home</a></p>';
 
      echo '<div  id="selectItemsInput"><p><form action="'.$_SERVER["SCRIPT_NAME"].'?s=' . $this->id_get() . '"><label><strong>Schedules to Print</strong> <em>(seperate with commas, "all" for all)</em></label><br /><input type="text" name="print" value="'.$_REQUEST['print'].'" /><input type="submit" value="submit" /><span id="cancelItems"><input type="button" value="cancel" /></span></form></p></div>';
 
    }
 
    else {
 
      echo '<script type="text/javascript">';
 
      echo 'jQuery(document).ready( function() {';
 
      echo 'jQuery("#tabs").tabs();';
 
      echo '});</script>'; /* Close document.ready for jquery */
 
      echo '<p><a href="'.$_SERVER["SCRIPT_NAME"].'?s=' . $this->id_get() . '&amp;print=all">Print</a> :: <a href="input.php">Home</a></p><p class="centeredtext"><em>Tip: You can use the left and right arrow keys to switch between schedules</em></p>';
 
      echo '<p><a href="'.$_SERVER["SCRIPT_NAME"].'?s=' . $this->id_get() . '&amp;print=all">Print</a> :: <a href="input.php">Home</a></p><p class="centeredtext" style="color: #999;"><em>Keyboard Shortcut: Left and right arrow keys switch between schedules</em></p>';
 
    }		
 

	
 

	
 

	
 
    if($this->nPermutations > 0)
 
      {
 
	$table .= "<div id=\"tabs\">\n"
 
	  . "  <ul>\n";
 
			
 
	for($nn = 1; $nn <= $this->nPermutations; $nn++)
 
	  {
 
	    $table .= "<li><a href=\"#tabs-" . $nn . "\">&nbsp;" . $nn . "&nbsp;</a></li>\n";
 
	  }
 
			
 
	$table .= "    </ul><div class=\"clear\"><p> </p> </div>\n  \n"
 
	  . "  <div class=\"scroller\">"
 
	  . "    <div class=\"scontent\">";
 
		
 
	for($i = 0; $i < $this->nPermutations; $i++)
 
	  {
 
	    $table .= "<div class=\"section\" id=\"tabs-" . ($i+1) . "\">";
 
  
 
	    // Beginning of table
 
	    $table .= "<table style=\"empty-cells:show;\" border=\"1\" cellspacing=\"0\">";
input.php
Show inline comments
 
@@ -21,49 +21,49 @@ if (isset($_REQUEST['s']))
 
if ($sch)
 
{
 
  $nclasses = $sch->nclasses_get();
 
  $my_hc = '<script type="text/javascript">
 
var classNum = ' . $nclasses . ';
 
/* holds number of sections for each class */
 
var sectionsOfClass = new Array();
 
';
 
  for ($class_key = 0; $class_key < $nclasses; $class_key ++)
 
    $my_hc .= 'sectionsOfClass[' . $class_key . '] = ' . $sch->class_get($class_key)->getnsections() . ";\n";
 
  $my_hc .= '// </script>';
 
  $inputPage->headcode_add('scheduleInput', $my_hc, TRUE);
 
}
 
else
 
  $inputPage->headcode_add('schduleInput', '<script type="text/javascript">
 
var classNum = 0;
 
/* holds number of sections for each class */
 
var sectionsOfClass = Array();
 
// </script>', TRUE);
 

	
 
$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>
 
<p style="color: #CCC"><em>Keyboard Shortcut: Press "c" to add a class</em></p>
 
<p style="color: #999"><em>Keyboard Shortcut: Press "c" to add a class</em></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">
 
	<!-- Header -->
 
	<tr>
 
		<td>Class</td>
 
		<td class="center" id="letterNumber">Section</td>
 
		<td class="center">Start Time</td>
 
		<td class="center">End Time</td>
 
		<td class="center">M</td>
 
		<td class="center">Tu</td>
 
		<td class="center">W</td>
 
		<td class="center">Th</td>
 
		<td class="center">F</td>
 
		<td class="center"></td>
 
		<td class="center"></td>
 
	</tr>
0 comments (0 inline, 0 general)