b1nary0mega
1/21/2015 - 5:56 PM

Hide the extra shift request links for 334 on and after 24-JAN-15

Hide the extra shift request links for 334 on and after 24-JAN-15

<!--- Give everybody that is not 334, extra shifts (334 stop after 24-JAN-2015 due to move to fillshift) --->
<cfif session.unit_id NEQ "334">
  <li><a href="/medsched/exshftreq.cfm" target="_blank">Extra Shifts</a></li>
<cfelse>
  <cfif DateCompare(Now(), "24-JAN-15", "d") LT 0>
    <li><a href="/medsched/exshftreq.cfm" target="_blank">Extra Shifts</a></li>
  </cfif>
</cfif>

<!--- The below is a snipped from the exshftreq.cfm file to abort before trying to load the page for requesting extra shifts --->
<!--- Give everybody that is not 334, extra shifts (334 stop after 24-JAN-2015 due to move to fillshift) --->
<cfif session.unit_id EQ "334" AND DateCompare(Now(), "24-JAN-15", "d") GTE 0>
  <H1>Your unit is now utilizing FillShift for extra Shift Requirements.</H1>
  <H2>Please visit <a href="https://strong.fillshift.com/">https://strong.fillshift.com</a></H2>
  <cfabort showerror="Extra Shifts Disabled for #session.unit_id#">
</cfif>