echo _t('Actions'); ?> </th> </tr> </thead> <!-- // Table heading END --> <!-- Table body --> <tbody> <?php if ($search != '') { foreach ($search as $k => $v) { ?> <tr class="gradeX"> <td class="text-center"><?php echo getSchoolPhoto(_h($v['personID']), _h($v['email']), 48, 'avatar-frame'); ?> </td> <td class="text-center"><?php echo _h($v['personID']); ?> </td> <td class="text-center"><?php echo _h($v['altID']); ?> </td> <td class="text-center"><?php echo _h($v['lname']); ?> </td> <td class="text-center"><?php
echo _t('Actions'); ?> </th> </tr> </thead> <!-- // Table heading END --> <!-- Table body --> <tbody> <?php if ($search != '') { foreach ($search as $k => $v) { ?> <tr class="gradeX"> <td class="text-center"><?php echo getSchoolPhoto(_h($v['staffID']), _h($v['email']), 48, 'avatar-frame'); ?> </td> <td class="text-center"><?php echo _h($v['staffID']); ?> </td> <td class="text-center"><?php echo get_name(_h($v['staffID'])); ?> </td> <td class="text-center"><?php echo _h($v['deptName']); ?> </td> <td class="text-center"><?php
function get_stu_header($stu_id) { $student = get_student($stu_id); ?> <!-- List Widget --> <div class="relativeWrap"> <div class="widget"> <div class="widget-head"> <h4 class="heading glyphicons user"><i></i><?php echo get_name(_h($student->stuID)); ?> </h4> <?php if (!isset($_COOKIE['SWITCH_USERBACK']) && _h($student->stuID) != get_persondata('personID')) { ?> <span<?php echo ae('login_as_user'); ?> class="label label-inverse"><a href="<?php echo get_base_url(); ?> switchUserTo/<?php echo _h($student->stuID); ?> /"><font color="#FFFFFF"><?php echo _t('Switch To'); ?> </font></a></span> <?php } ?> <?php if (get_persondata('personID') == $student->stuID && !hasPermission('access_dashboard')) { ?> <a href="<?php echo get_base_url(); ?> profile/" class="heading pull-right"><?php echo _h($student->stuID); ?> </a> <?php } else { ?> <a href="<?php echo get_base_url(); ?> stu/<?php echo _h($student->stuID); ?> /" class="heading pull-right"><?php echo _h($student->stuID); ?> </a> <?php } ?> </div> <div class="widget-body"> <!-- 4 Column Grid / One Third --> <div class="row"> <!-- One Fifth's Column --> <div class="col-md-2"> <?php echo getSchoolPhoto($student->stuID, $student->email1, '90'); ?> </div> <!-- // One Fifth's Column END --> <!-- Two Fifth's Column --> <div class="col-md-2"> <p><?php echo _h($student->address1); ?> <?php echo _h($student->address2); ?> </p> <p><?php echo _h($student->city); ?> <?php echo _h($student->state); ?> <?php echo _h($student->zip); ?> </p> <p><strong><?php echo _t('Phone:'); ?> </strong> <?php echo _h($student->phone1); ?> </p> </div> <!-- // Two Fifth's Column END --> <!-- Three Fifth's Column --> <div class="col-md-2"> <p><strong><?php echo _t('Email:'); ?> </strong> <a href="mailto:<?php echo _h($student->email1); ?> "><?php echo _h($student->email1); ?> </a></p> <p><strong><?php echo _t('Birth Date:'); ?> </strong> <?php echo _h($student->dob) > '0000-00-00' ? date('D, M d, o', strtotime(_h($student->dob))) : ''; ?> </p> <p><strong><?php echo _t('Status:'); ?> </strong> <?php echo _h($student->stuStatus) == 'A' ? _t('Active') : _t('Inactive'); ?> </p> </div> <!-- // Three Fifth's Column END --> <!-- Four Fifth's Column --> <div class="col-md-2"> <p><strong><?php echo _t('FERPA:'); ?> </strong> <?php echo is_ferpa(_h($student->stuID)); ?> <?php if (is_ferpa(_h($student->stuID)) == 'Yes') { ?> <a href="#FERPA" data-toggle="modal"><img style="vertical-align:top !important;" src="<?php echo get_base_url(); ?> static/common/theme/images/exclamation.png" /></a> <?php } else { ?> <a href="#FERPA" data-toggle="modal"><img style="vertical-align:top !important;" src="<?php echo get_base_url(); ?> static/common/theme/images/information.png" /></a> <?php } ?> </p> <p><strong><?php echo _t('Restriction(s):'); ?> </strong> <?php $rstr = ''; foreach (get_stu_restriction($student->stuID) as $v) { ?> <?php echo $rstr; ?> <span data-toggle="popover" data-title="<?php echo _h($v['description']); ?> " data-content="Contact: <?php echo _h($v['deptName']); ?> <?php echo _h($v['deptEmail']) != '' ? ' | ' . $v['deptEmail'] : ''; echo _h($v['deptPhone']) != '' ? ' | ' . $v['deptPhone'] : ''; echo _h($v['severity']) == 99 ? _t(' | Restricted from registering for courses.') : ''; ?> " data-placement="bottom"><a href="#"><?php echo _h($v['Restriction']); ?> </a></span> <?php $rstr = ', '; } ?> </p> <p><strong><?php echo _t('Entry Date:'); ?> </strong> <?php echo date('D, M d, o', strtotime(_h($student->stuAddDate))); ?> </p> </div> <!-- // Four Fifth's Column END --> <!-- Five Fifth's Column --> <div class="col-md-2"> <p><strong><?php echo _t('SACP:'); ?> </strong> <?php $sacp = ''; foreach (get_sacp($student->stuID) as $v) { ?> <?php echo $sacp; ?> <span data-toggle="popover" data-title="<?php echo _h($v['acadProgTitle']); ?> (<?php echo _h($v['currStatus']) == 'A' ? _t('Active') : _t('Graduated'); ?> )" data-content="<?php echo _h($v['programDesc']); ?> " data-placement="bottom"><a href="#"><?php echo _h($v['SACP']); ?> </a></span> <?php $sacp = ', '; } ?> </p> <p><strong><?php echo _t('Admit Status:'); ?> </strong> </p> <p><strong><?php echo _t('Hiatus:'); ?> </strong> <span data-toggle="popover" data-title="<?php echo get_shis_name(get_stu_shis(_h($student->stuID), 'shisCode')); ?> " data-content="Start Date: <?php echo get_stu_shis(_h($student->stuID), 'startDate'); ?> | End Date: <?php echo get_stu_shis(_h($student->stuID), 'endDate') <= '0000-00-00' ? '' : get_stu_shis(_h($student->stuID), 'endDate'); ?> " data-placement="bottom"><a href="#"><?php echo get_stu_shis(_h($student->stuID), 'shisCode'); ?> </a></span> </p> </div> <!-- // Five Fifth's Column END --> </div> <!-- // 4 Column Grid / One Third END --> </div> </div> </div> <!-- // List Widget END --> <!-- Modal --> <div class="modal fade" id="FERPA"> <div class="modal-dialog"> <div class="modal-content"> <!-- Modal heading --> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 class="modal-title"><?php echo _t('Family Educational Rights and Privacy Act (FERPA)'); ?> </h3> </div> <!-- // Modal heading END --> <!-- Modal body --> <div class="modal-body"> <p><?php echo _t('"FERPA gives parents certain rights with respect to their children\'s education records. These rights transfer to the student when he or she reaches the age of 18 or attends a school beyond the high school level. Students to whom the rights have transferred are \'eligible students.\'"'); ?> </p> <p><?php echo _t('If the FERPA restriction states "Yes", then the student has requested that none of their information be given out without their permission. To get a better understanding of FERPA, visit the U.S. DOE\'s website @ ') . '<a href="http://www2.ed.gov/policy/gen/guid/fpco/ferpa/index.html">http://www2.ed.gov/policy/gen/guid/fpco/ferpa/index.html</a>.'; ?> </p> </div> <!-- // Modal body END --> <!-- Modal footer --> <div class="modal-footer"> <a href="#" class="btn btn-default" data-dismiss="modal"><?php echo _t('Close'); ?> </a> </div> <!-- // Modal footer END --> </div> </div> </div> <!-- // Modal END --> <?php }
staff/<?php echo _h($staffInfo->getStaffID()); ?> /" class="heading pull-right"><?php echo _h($staffInfo->getStaffID()); ?> </a> </div> <div class="widget-body"> <!-- 3 Column Grid / One Third --> <div class="row"> <!-- One Third Column --> <div class="col-md-1"> <?php echo getSchoolPhoto($staffInfo->getStaffID(), $staffInfo->getEmail(), '90'); ?> </div> <!-- // One Third Column END --> <!-- One Third Column --> <div class="col-md-3"> <p><?php echo _h($staffInfo->getAddress1()); ?> <?php echo _h($staffInfo->getAddress2()); ?> </p> <p><?php echo _h($staffInfo->getCity());
/** * Desktop Notifications * * Used to pass notifications to the desktop. * * @since 6.2.11 * @param string $title Give title of notification. * @param string $message Message that should be displayed. * @param bool $hide True if notification hides automatically. */ function etsis_desktop_notify($title, $message, $hide = 'true') { $app = \Liten\Liten::getInstance(); $script = "<script type=\"text/javascript\">\n \$(function(){\n PNotify.desktop.permission();\n (new PNotify({\n title: '{$title}',\n text: '{$message}',\n addclass: 'growl',\n styling: 'fontawesome',\n width: \"400px\",\n type: \"notice\",\n shadow: true,\n hide: {$hide},\n delay: 200000,\n desktop: {\n desktop: true,\n fallback: true,\n icon: '" . getSchoolPhoto(get_persondata('personID'), get_persondata('email')) . "'\n },\n mobile: {\n swipe_dismiss: true,\n styling: true\n }\n }));\n });\n </script>"; return $app->hook->apply_filter('pnotify', $app->flash('pnotify', $script)); }
<ul class="dropdown-menu pull-right"> <li class="profile"> <span> <span class="heading"><?php echo _t('Profile'); ?> <a href="<?php echo get_base_url(); ?> profile/" class="pull-right"><?php echo _t('edit'); ?> </a></span> <span class="media display-block margin-none"> <span class="pull-left display-block thumb"><?php echo getSchoolPhoto(get_persondata('personID'), get_persondata('email'), '38'); ?> </span> <a href="<?php echo get_base_url(); ?> profile/"><?php echo get_persondata('fname') . ' ' . get_persondata('lname'); ?> </a><br /> <?php echo get_persondata('email'); ?> </span> <span class="clearfix"></span> </span>