$rgb_off = $theme->bgcolor1; $dirs = listdirs($path, array(".", "..", "CVSROOT", "Attic")); $files = listfiles($path); sort($dirs); sort($files); echo $theme->opentable(); if (isset($file) && $file != "") { checkout($path . $file, $file); } else { if (count($conf['cvsreps']) > 1) { echo $htmlform->start($modulehref); for ($i = 0; $i < count($conf['cvsreps']); $i++) { $data[] = array(urlencode($conf['cvsreps'][$i]), htmlspecialchars($conf['cvsreps'][$i])); } echo $htmlform->selectlist("cvsrep", $data, urlencode($cvsrep)); echo $htmlform->input("submit", " Go ", "submit"); echo $htmlform->stop(); echo "</center>"; } drawtop($dirs, $dir); drawbottom($files, $dir, $path); drawstats($files, $dirs, $path); } echo $theme->closetable(); // echo $theme->footer(); echo "<!-- End browsecvs -->"; } echo " </td></tr>"; $block1->closeContent(); $block1->headingForm_close(); require_once "../themes/" . THEME . "/footer.php";
<?php include '../../include.php'; echo drawtop(); $t = new table('ldcodes', drawHeader(false, 'Long Distance Codes')); $t->set_column('code', 'c', 'Code'); $t->set_column('user', 'l', 'User'); $result = db_table('SELECT l.code, (SELECT CONCAT_WS(",", u.lastname, u.firstname, u.id) FROM users u WHERE u.longDistanceCode = l.code AND u.is_active = 1) user FROM ldcodes l ORDER BY user'); foreach ($result as &$r) { if ($r['user']) { $r['group'] = 'Assigned'; list($lastname, $firstname, $id) = explode(',', $r['user']); $r['user'] = draw_link('/staff/view.php?id=' . $id, $lastname . ', ' . $firstname); } else { $r['group'] = 'Unassigned Codes'; } } echo $t->draw($result, 'There are no long distance codes'); echo drawBottom();