Changeset - d0b954ceb988
[Not reviewed]
default
1 3 0
ethanzonca - 15 years ago 2010-07-13 23:32:41

Fixed tracking issues
4 files changed with 11 insertions and 17 deletions:
0 comments (0 inline, 0 general)
analyticstracking.php
Show inline comments
 
deleted file
class.schedule.php
Show inline comments
 
@@ -227,25 +227,25 @@ class Schedule
 
			"\n<script type=\"text/javascript\" charset=\"utf-8\">".
 
			"\n\tgoogle.load(\"jquery\", \"1.3.2\");".
 
			"\n\tgoogle.load(\"jqueryui\", \"1.7.2\");".
 
			"\n</script>".
 

	
 
			"\n<link rel=\"stylesheet\" href=\"styles/general.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">".
 

	
 
			"\n<link rel=\"stylesheet\" href=\"styles/glider.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\">".
 
			"\n<script src=\"scripts/prototype.js\" type=\"text/javascript\" charset=\"utf-8\"></script>". 
 
			"\n<script src=\"scripts/effects.js\" type=\"text/javascript\" charset=\"utf-8\"></script>".
 
			"\n<script src=\"scripts/glider.js\" type=\"text/javascript\" charset=\"utf-8\"></script>".
 
			
 
			"\n</head><body><?php include_once("analyticstracking.php") ?>".
 
			"\n</head><body>".
 

	
 
			"<p>There were a total of " . $this->possiblePermutations . " possible permutations. Only " . $this->nPermutations . " permutations had no class conflicts.</p>".
 

	
 
			"\n\n<div id=\"header\">\n<h1><em>SlatePermutate</em> - Scheduler</h1><h3>Schedule name: " . $this->getName() . "</h3>\n</div><div id=\"content\">";
 
			
 
		$footer .="</div></div><script type=\"text/javascript\" charset=\"utf-8\">". 
 
			"\n\tvar my_glider = new Glider('my-glider', {duration:0});".
 
			"\n</script>\n\n</div><div id=\"footer\">\n<h5>&copy; " . Date("Y") . " <a href=\"http://protofusion.org/~nathang/\">Nathan Gelderloos</a><br />".
 
			"\nwith special thanks to <a href=\"http://ethanzonca.com\">Ethan Zonca</a></h5>\n</div>";
 

	
 
		$footer .="\n\n</body></html>";
 

	
inc/class.page.php
Show inline comments
 
@@ -7,25 +7,34 @@ class page {
 
  private $base_title = 'SlatePermutate';
 
  private $doctype = 'html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"';
 
  private $htmlargs = 'xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"';
 
  private $bodyargs = '';
 
  public $lastJobTable = '';
 

	
 
  private $isMobile = false; // Have a basic view when this is true
 

	
 
  private $pageGenTime = 0;
 

	
 
  private $indexpath = 'http://protofusion.org/SlatePermutate/'; // full url to index for php header redirection
 

	
 
  private $trackingcode = ''; // Google analytics ga.js tracking code
 
  private $trackingcode = '<script type="text/javascript">
 
				  var _gaq = _gaq || [];
 
				  _gaq.push([\'_setAccount\', \'UA-17441156-1\']);
 
				  _gaq.push([\'_trackPageview\']);
 
				  (function() {
 
				    var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
 
				    ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
 
				    var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
 
				  })();
 
				</script>'; // Google analytics ga.js tracking code
 

	
 
  public $tablestripe = '<script type="text/javascript">
 
			  $(document).ready(function(){
 
			    $(".tablestripe tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
 
			    $(".tablestripe tr:even").addClass("alt");
 
			    $(".tablestripe tr:odd").addClass("alto");
 
			  });
 
			  </script>';
 

	
 
  private $title = ''; // Title of page
 
  private $scripts = ''; // Scripts to include on page
 

	
input.php
Show inline comments
 
@@ -259,26 +259,24 @@ include_once 'class.section.php';
 
            jQuery(this).val($(this)[0].title);
 
        }
 
    });
 
    jQuery(".defText").blur();    
 

	
 
});
 

	
 
</script>
 

	
 
</head>
 
<body>
 

	
 
<?php include_once("analyticstracking.php") ?>
 

	
 
<div id="header">
 
	<h1>
 
		<em>
 
			SlatePermutate
 
		</em>
 
		-  Scheduler
 
	</h1>
 
</div>
 

	
 
<div id="content">
 
	<p>
 

	
0 comments (0 inline, 0 general)