Changeset - 40a1f91f9104
[Not reviewed]
default
0 5 0
Ethan Zonca - 15 years ago 2010-10-19 00:17:02
ez@ethanzonca.com
Added share modal window / link for schedules
5 files changed with 17 insertions and 4 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -236,8 +236,13 @@ class Schedule
 
      echo '<script type="text/javascript">';
 
      echo 'jQuery(document).ready( function() {';
 
      echo 'jQuery("#tabs").tabs();';
 
      echo 'jQuery("#sharedialog").dialog({ modal: true, width: 550, resizable: false, draggable: false, autoOpen: false });';
 
      echo 'jQuery("#share").click( function() {
 
              jQuery("#sharedialog").dialog("open");
 
            });';
 
      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">Having problems? <a href="feedback.php">Let us know</a>.</p><p class="centeredtext" style="color: #999;"><em>Keyboard Shortcut: Left and right arrow keys switch between schedules</em></p>';
 
      echo '<div id="sharedialog" title="Share Schedule"><p>You can share your schedule with the URL below:</p><p>http://' . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'].'</p></div>';
 
      echo '<p><a href="'.$_SERVER["SCRIPT_NAME"].'?s=' . $this->id_get() . '&amp;print=all">Print</a> :: <span id="share"><a href="#">Share</a></span> :: <a href="input.php">Home</a></p><p class="centeredtext">Having problems? <a href="feedback.php">Let us know</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)
feedback.php
Show inline comments
 
@@ -12,7 +12,7 @@
 
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
 
<h2>Feedback Form</h2>
 
Name: <input type="text" name="nameis" size="20" /><br />
 
Email:&nbsp; <input type="text" name="visitormail" size="20" /><br />
 
Email:&nbsp; <input type="text" name="visitormail" size="20" /><span class="graytext"> (if you want us to get back to you)</span><br />
 

	
 

	
 
<br/> Overall Rating:<br/> <input checked="checked" name="rating" type="radio" value="Good" />Good <input name="rating" type="radio" value="Buggy" />Buggy  <input name="rating" type="radio" value="Needs more features" />Needs more features <input name="rating" type="radio" value="Don't know" />Don't Know
 
@@ -22,7 +22,7 @@ Email:&nbsp; <input type="text" name="vi
 
<p>
 
<textarea name="feedback" rows="6" cols="40"></textarea>
 
</p>
 
<input type="submit" value="Submit Feedback" />
 
<input class="gray" type="submit" value="Submit Feedback" />
 
</form>
 

	
 

	
scripts/scheduleInput.js
Show inline comments
 
@@ -328,4 +328,6 @@ jQuery(document).ready(function() {
 
		jQuery('#showadvanced').hide();
 
		jQuery('.advanced').slideToggle();
 
	});
 

	
 

	
 
});
styles/general.css
Show inline comments
 
@@ -177,3 +177,9 @@ td.center {
 
.centeredtext {
 
  text-align: center;
 
}
 
.graytext {
 
  color: #999;
 
}
 
#sharedialog {
 
  display: none;
 
}
styles/output.css
Show inline comments
 
@@ -96,5 +96,5 @@ margin-bottom: 2px;
 
  max-width: 650px;
 
  margin: auto;
 
}
 
#tabs li, .ui-corner-all, .ui-corner-top { background: none!important; }
 
#tabs li /* , .ui-corner-all, .ui-corner-top */ { background: none!important; }
 
#tabs li { border: none!important; }
0 comments (0 inline, 0 general)