function drawJumpToStaff($selectedID = false) { global $page; $nullable = $selectedID === false; $return = drawPanel(getString('jump_to') . ' ' . drawSelectUser('', $selectedID, $nullable, 0, true, true, 'Staff Member:')); if ($page['is_admin'] && db_grab('SELECT COUNT(*) FROM users_requests WHERE is_active = 1')) { $return = drawMessage('There are pending <a href="requests.php">account requests</a> for you to review.') . $return; } return $return; }
function drawJumpToStaff($selectedID = false) { global $isAdmin; $nullable = $selectedID === false; $return = ' <table class="message"> <tr> <td class="gray">Jump to ' . drawSelectUser("", $selectedID, $nullable, 0, true, true, "Staff Member:") . '</td> </tr> </table>'; if ($isAdmin) { if ($r = db_grab("SELECT COUNT(*) FROM users_requests")) { $return = drawServerMessage("There are pending <a href='requests.php'>account requests</a> for you to review.") . $return; } } return $return; }
<tr> <td colspan="2"><?php echo drawSelectUser("", false, true, 0, true, true, "Jump to Staff Member"); ?> </td> </tr> <tr> <td width="50%"><a href="/staff/">By Name</a></td> <td width="50%"><a href="/staff/organizations.php">By Organization</a></td> </tr> <tr> <td width="50%"><a href="/staff/locations.php">By Location</a></td> <td width="50%"><a href="/staff/skills.php">By Skill</a></td> </tr> <tr> <td width="50%"><a href="/staff/changes.php">Changes</a></td> <td width="50%"> </td> </tr>
function addUser($name = "userID", $desc = "User", $default = 0, $nullable = false, $admin = false) { global $rows, $location; $rows .= '<tr> <td class="left">' . $desc . '</td> <td'; if ($admin) { $rows .= ' class="admin ' . $location . '-hilite"'; } $rows .= '>' . drawSelectUser($name, $default, $nullable) . '</td> </tr>'; }
<?php $return .= '<tr><td colspan="2">' . drawSelectUser('staff', false, true, 0, true, true, "Jump to Staff Member") . '</td></tr>'; $pages = db_table('SELECT url, title' . langExt() . ' title FROM pages WHERE module_id = ' . $m['id'] . ' AND is_active = 1 AND is_hidden <> 1 AND is_admin <> 1 ORDER by precedence'); foreach ($pages as &$p) { $p = draw_link('/staff/' . $p['url'], $p['title']); } $return .= draw_table_rows($pages);
<td class="left">Amount <div style="float:right">$</span></td> <td><input type="text" size="11" class="field" name="txtAmount" value="<?php echo @$r["awardAmount"]; ?> "></td> </tr> <tr> <td class="left">Project Description</td> <td><textarea name="tarDescription" cols="62" rows="8" class="field"><?php echo @$r["awardNotes"]; ?> </textarea></td> </tr> <tr> <td class="left"><nobr>Award Contact:</nobr></td> <td width="99%"> <?php echo drawSelectUser("cboStaff", @$r["staffID"]); ?> </td> </tr> <tr> <td class="bottom" colspan="2"><?php echo draw_form_submit($button); ?> </td> </tr> </form> </table> <?php echo drawBottom();
echo draw_form_text("activityTitle", $r["activityTitle"]); ?> </b></td> </tr> <tr class="helptext" bgcolor="#FFFFFF"> <td bgcolor="#F6F6F6"><nobr>Activity Date:</nobr></td> <td colspan="2" width="99%"><?php echo draw_form_date("activityDate", $r["activityDate"]); ?> </td> </tr> <tr class="helptext" bgcolor="#FFFFFF"> <td bgcolor="#F6F6F6"><nobr>Staff Responsible:</nobr></td> <td colspan="2" width="99%"> <?php echo drawSelectUser("activityAssignedTo", $r["activityAssignedTo"]); ?> </td> </tr> <tr class="helptext" bgcolor="#FFFFFF"> <td bgcolor="#F6F6F6" valign="top"><nobr>Type:</nobr></td> <td colspan="2" width="99%"> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="small"> <tr> <td width="16"><input type="checkbox" name="chkActionItem" onclick="javascript:checkInternal(this);"<?php if ($r["isActionItem"]) { ?> checked<?php } ?> ></td>
function addUser($name = "user_id", $desc = "User", $default = false, $nullable = false, $admin = false) { global $rows; $class = $admin ? "admin hilite" : false; $rows .= draw_container("tr", draw_container("td", $desc, array("class" => "left")) . draw_container("td", drawSelectUser($name, $default, $nullable), array("class" => $class))); }
<tr> <td width="16"><input type="radio" name="isInternal" value="true" checked onclick="javascript:checkReport();"></td> <td width="99%">Internal Deadline</td> </tr> <tr> <td width="16"><input type="radio" name="isInternal" value="false" onclick="javascript:checkReport();"></td> <td width="99%">External Deadline</td> </tr> </table></div> </td> </tr> <tr> <td width="50%" height="50"> STAFF RESPONSIBLE<br> <?php echo drawSelectUser("cboStaff", $_SESSION["user_id"]); ?> </td> <td width="50%"> <div id="report" style="visibility:hidden;"> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="small"> <tr> <td width="16"><?php echo draw_form_checkbox("chkReport", 0); ?> </td> <td width="99%">Is this a Report?</td> </tr> </table></div> </td> </tr>
?> "> <tr> <td class="left">Laptop</td> <td><b><a href="laptop.php?id=<?php echo $_GET["id"]; ?> "><?php echo db_grab("SELECT laptopName FROM it_laptops WHERE laptopID = " . $_GET["id"]); ?> </a></b></td> </tr> <tr> <td class="left">User</td> <td><?php echo drawSelectUser("checkoutUser", false, false, false, true); ?> </td> </tr> <tr> <td class="left">Start</td> <td><?php echo draw_form_date("checkoutStart"); ?> </td> </tr> <tr> <td class="left">End</td> <td> <table class="nospacing"> <tr>