<?php if ($isEditor) { $urlBase = '&csmode=0&occindex=0&occid=&q_processingstatus=&q_recordedby=&q_recordnumber=&q_eventdate=&q_catalognumber=&q_othercatalognumbers=' . '&q_observeruid=&q_datelastmodified=&q_imgonly=&q_withoutimg=&q_customfield1=&q_customtype1=EQUALS&q_customvalue1=' . '&q_customfield2=&q_customtype2=EQUALS&q_customvalue2=&q_customfield3=&q_customtype3=&q_customvalue3='; $eUrl = '../editor/occurrenceeditor.php?collid=' . $collid; $beUrl = '../editor/occurrencetabledisplay.php?collid=' . $collid; if ($menu == 'user') { ?> <div style="margin:15px 0px 25px 15px;"> <table class="styledtable" style="width:500px;"> <tr> <th>User</th> <th>Processing Status</th> <th>Count</th> </tr> <?php if ($userStats = $procManager->getUserStats()) { $orderArr = array('unprocessed', 'stage 1', 'stage 2', 'stage 3', 'pending duplicate', 'pending review', 'expert required', 'reviewed', 'closed', 'empty status'); foreach ($userStats as $username => $psArr) { $eUrlInner = $eUrl . '&q_recordenteredby=' . $username . str_replace(array('&q_recordenteredby='), '', $urlBase); $beUrlInner = $beUrl . '&q_recordenteredby=' . $username . '&bufieldname=processingstatus' . str_replace(array('&q_recordenteredby='), '', $urlBase); foreach ($orderArr as $ps) { if (array_key_exists($ps, $psArr)) { echo '<tr>'; echo '<td>' . $username . '</td>'; echo '<td>' . $ps . '</td>'; echo '<td>'; echo $psArr[$ps]; if ($psArr[$ps]) { $eUrlInner2 = $eUrlInner . '&q_processingstatus=' . $ps; $beUrlInner2 = $beUrlInner . '&q_processingstatus=' . $ps . '&buoldvalue=' . $ps; echo '<span style="margin-left:10px;"><a href="' . $eUrlInner2 . '" target="_blank" title="Edit Records"><img src="../../images/edit.png" style="width:12px;" /></a></span>';