Changeset 19743 for trunk/www/dch
- Timestamp:
- 10/08/19 09:04:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/dch/shiftinfo.php
r18880 r19743 14 14 Who is on shift? 15 15 (from <a href='https://www.fact-project.org/shift'>FACT shift plan<a> 16 and <a href='https://www.fact-project.org/logbook/memberlist.php'>FACT logbook<a>) 17 16 and <a href='https://www.fact-project.org/logbook/memberlist.php'>FACT logbook<a>)<br> 18 17 <?php 19 18 … … 67 66 68 67 69 function get_expertinfo($db )68 function get_expertinfo($db, $type) 70 69 { 71 70 $query="SELECT username as login, usertitle as name, email, fid5 as mobile, fid7 as skype, fid8 as contactinfo, fid6 as availability … … 74 73 LEFT JOIN memberlist.experts 75 74 ON (ufid=userid) 76 WHERE now() < stop and now() > start ";75 WHERE now() < stop and now() > start AND not isnull (".$type.")"; 77 76 $result = $db->query($query); 78 77 $all = $result->fetch_all(MYSQLI_ASSOC); … … 128 127 } 129 128 } 130 echo "</ul>\n <br>\n <br>\n";129 echo "</ul>\n <br>\n"; 131 130 $result->free(); 131 132 echo "Remark for MAGIC shifters: please keep in mind that FACT shifters and experts will \n "; 133 echo "usually be asleep during the night, so that messages on skype or by email might stay \n "; 134 echo "unnoticed until the next morning.<br>\n <br>\n "; 135 132 136 133 137 echo "Expert-On-Call Contact Info: <br>\n <ul>\n"; 134 138 135 foreach (get_expertinfo($db) as $expertinfo) 139 foreach (get_expertinfo($db, "expert") as $expertinfo) 140 { 141 echo "<li>".userinfo_to_string($expertinfo)."</li><br>\n"; 142 143 } 144 echo "</ul>\n"; 145 146 echo "Flare-Expert-On-Call Contact Info: <br>\n <ul>\n"; 147 148 foreach (get_expertinfo($db, "flare") as $expertinfo) 149 { 150 echo "<li>".userinfo_to_string($expertinfo)."</li><br>\n"; 151 152 } 153 echo "</ul>\n"; 154 155 echo "SH-Expert-On-Call Contact Info: <br>\n <ul>\n"; 156 157 foreach (get_expertinfo($db, "sh") as $expertinfo) 158 { 159 echo "<li>".userinfo_to_string($expertinfo)."</li><br>\n"; 160 161 } 162 echo "</ul>\n"; 163 164 echo "Fallback-Shifter Contact Info: <br>\n <ul>\n"; 165 166 foreach (get_expertinfo($db, "fallback") as $expertinfo) 136 167 { 137 168 echo "<li>".userinfo_to_string($expertinfo)."</li><br>\n";
Note:
See TracChangeset
for help on using the changeset viewer.