Difference between revisions of "acc-todayha"

From MGH Learn Pathology
Line 25: Line 25:
 
</td>
 
</td>
 
<td colspan="1">
 
<td colspan="1">
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:A |Attending}}||#000000|}} '''({{#switch: {{#time: N|{{Timezone}}}} | 1|2|3 = {{acc-FACdatetoday|+|0|+|0|}} | 4 = {{acc-FACdatetoday|+|1|-|3|}} | 5 = {{acc-FACdatetoday|+|1|-|3|}} | 6 = {{acc-FACdatetoday|+|0|+|0|}} | 7 = {{acc-FACdatetoday|+|1|-|6|}} | <center>{{ColorText|''Something went wrong!|yellow|red||}}<br>Please check <htmltag tagname="a" href="https://app.qgenda.com/Link/view?linkKey=9a12a547-f1b4-4998-bdca-acf3204a120e&landingPageId=40221bd9-4ac1-4a0b-8a00-da4f05d88f2e" target="_blank">QGenda.</htmltag>''<br><span style="color:red" class="glyphicon glyphicon-warning-sign" aria-hidden="true"></center> }})</center></td></tr></table>
+
<table class='scheduletable'><tr><td bgcolor="#FFFFFF"><center>'''{{ColorText|{{#tip-text:Attending|Attending}}||#000000|}}'''</center></td></tr></table>
{{#switch: {{#time: N|{{Timezone}}}}  
+
{{#arraymap: AUT,BR1,BR2,BST,CV,DPA,DPB,DPC,Frozen Section,HN1,HN2,GI1,GI2,GI3,GUL,GUS,GYL,GYS,HPA,HPB,NP,OB,PP,RP|,|TaskAbbreviation|
| 1|2|3 = {{acc-FACtoday|+|0|+|0|}}  
+
{{#cargo_query: table=scheduleFACservice
| 4 = {{acc-FACtoday|+|1|-|3|}}  
+
|fields=scheduleFACservice.StaffAbbrev,scheduleFACservice.Color,scheduleFACservice.StaffFullName
| 5 = {{acc-FACtoday|+|1|-|3|}}  
+
|where=scheduleFACservice.TaskAbbrev='TaskAbbreviation' AND scheduleFACservice.DayNumber='{{#expr: {{#time: N|{{Timezone}}}} + 0}}' AND scheduleFACservice.WeekNumber='{{#expr: {{#time: W|{{Timezone}}}} + 0}}'
| 6 = {{acc-FACtoday|+|0|+|0|}}  
+
|default={{:schtableempty}}|format=template|template=schtable}}
| 7 = {{acc-FACtoday|+|1|-|6|}}  
+
|}}
| <center>{{ColorText|''Something went wrong!|yellow|red||}}<br>Please check <htmltag tagname="a" href="https://app.qgenda.com/Link/view?linkKey=9a12a547-f1b4-4998-bdca-acf3204a120e&landingPageId=40221bd9-4ac1-4a0b-8a00-da4f05d88f2e" target="_blank">QGenda.</htmltag>''<br><span style="color:red" class="glyphicon glyphicon-warning-sign" aria-hidden="true"></center>
 
}}
 
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>

Revision as of 10:16, October 2, 2019