exit('No direct script access allowed'); } /** * Course Section Roster View * * @license GPLv3 * * @since 4.0.9 * @package eduTrac SIS * @author Joshua Parker <*****@*****.**> */ $app = \Liten\Liten::getInstance(); $app->view->extend('_layouts/dashboard'); $app->view->block('dashboard'); $flash = new \app\src\Core\etsis_Messages(); $templates_header = get_templates_header(APP_PATH . 'views/section/templates/roster/'); $screen = 'sros'; ?> <script type="text/javascript"> $(window).load(function() { $("#terms").jCombo({url: "<?php echo get_base_url(); ?> sect/regTermLookup/" }); $("#section").jCombo({ url: "<?php echo get_base_url(); ?> sect/defSecLookup/", input_param: "term",
} /** * Transcript View * * @license GPLv3 * * @since 3.0.0 * @package eduTrac SIS * @author Joshua Parker <*****@*****.**> */ $app = \Liten\Liten::getInstance(); $app->view->extend('_layouts/dashboard'); $app->view->block('dashboard'); $screen = 'tran'; $flash = new \app\src\Core\etsis_Messages(); $templates_header = get_templates_header(APP_PATH . 'views/student/templates/transcript/'); ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#stuID').live('change', function(event) { $.ajax({ type : 'POST', url : '<?php echo get_base_url(); ?> sect/stuLookup/', dataType: 'json', data : $('#validateSubmitForm').serialize(), cache: false, success: function( data ) {
/** * Returns the template header information * * @since 6.0.00 * @param * string (optional) $template_dir loads templates from specified folder * @return mixed */ function get_templates_header($template_dir = '') { $templates_header = []; if ($handle = opendir($template_dir)) { while ($file = readdir($handle)) { if (is_file($template_dir . $file)) { if (strpos($template_dir . $file, '.template.php')) { $fp = fopen($template_dir . $file, 'r'); // Pull only the first 8kiB of the file in. $template_data = fread($fp, 8192); fclose($fp); preg_match('|Template Name:(.*)$|mi', $template_data, $name); preg_match('|Template Slug:(.*)$|mi', $template_data, $template_slug); foreach (array('name', 'template_slug') as $field) { if (!empty(${$field})) { ${$field} = trim(${$field}[1]); } else { ${$field} = ''; } } $template_data = array('filename' => $file, 'Name' => $name, 'Title' => $name, 'Slug' => $template_slug); $templates_header[] = $template_data; } } else { if (is_dir($template_dir . $file) && $file != '.' && $file != '..') { get_templates_header($template_dir . $file . '/'); } } } closedir($handle); } return $templates_header; }