Skip to content

Instantly share code, notes, and snippets.

@jbutters
Last active August 29, 2015 14:15
Show Gist options
  • Save jbutters/c546ec07aca495f20cb7 to your computer and use it in GitHub Desktop.
Save jbutters/c546ec07aca495f20cb7 to your computer and use it in GitHub Desktop.
add custom alert to /teachers/classattendance.html
<!-- Start of custom alert-->
~[tlist_sql;select CASE customalert WHEN 1 THEN '<a class="dialogDivC" title="customalert Student" href="#hiddenDivDialog"><img src="/images/alert_customalert.gif"></a>' ELSE '' END from ps.students s join ps.U_customalertDBextension i on s.DCID = i.STUDENTSDCID join ps.cc cc on cc.STUDENTID = s.ID where cc.id = '[ccid]';]~(studentid;)[/tlist_sql]
<div id="hiddenDivDialog" class="hide"><div class="studentAlert" id="alert-customalert~(studentfrn)">
<img class="alertImage" src="/images/alert_customalert.gif" />
<div class="alertContent"><p class="alertHeader">customalert Student</p></div></div>
<!-- End of custom alert -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment