$record = new Staff($ok_record_id, '', TRUE); // show feedback if it isn't already set if (!$feedback) { $feedback = $record->getMessage(); } echo "<div class=\"feedback\">{$feedback}</div><br /><br />"; } $record->outputSelfEditForm(); //$record->deBug(); include "../includes/footer.php"; ?> <script type="text/javascript"> var headshot_location = "<?php print $record->getHeadshotLoc(); ?> "; $(function (){ //////////////// // Check Submit // When the form has been submitted, check required fields //////////////// $("#new_record").submit( function () { // If a required field is empty, set zonk to 1, and change the bg colour // of the offending field var alerter = 0;
open: true, href: 'includes/firstTimeUpdate.php' }); }); </script> <?php unset($_SESSION['firstUpdate']); } include "includes/footer.php"; ?> <script type="text/javascript"> var headshot_location = "<?php print $user->getHeadshotLoc(); ?> "; $(document).ready(function(){ $('a[id*=css-]').on('click', function(){ var css_class = $(this).attr("id").split("-"); var new_css = "<?php print $AssetPath; ?> css/theme/" + css_class[1] + ".css"; console.log(new_css);