本文整理汇总了PHP中DAO::fetchStaffName方法的典型用法代码示例。如果您正苦于以下问题:PHP DAO::fetchStaffName方法的具体用法?PHP DAO::fetchStaffName怎么用?PHP DAO::fetchStaffName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAO
的用法示例。
在下文中一共展示了DAO::fetchStaffName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getStaffID
$rs = getThreadContent($_REQUEST['tid']);
$dao = new DAO();
foreach ($rs as $rows) {
echo "";
foreach ($rows as $col_values) {
echo "Comment/discussion Content: " . $dao->fetchThreadContent($col_values) . '    ThreadName: ' . $dao->fetchThreadName($col_values) . '<br>';
}
}
}
if ($ttid != null) {
$dao = new DAO();
$rs = getStaffID($_REQUEST['ttid']);
foreach ($rs as $rows) {
echo "";
foreach ($rows as $col_values) {
echo "Staffs on duty on mondays: " . $dao->fetchStaffName($col_values) . '    type: ' . $dao->fetchStaffTypeName($dao->fetchstaffType($col_values)) . ' schedule: ' . $dao->fetchStaffStartTime($col_values) . ' ' . $dao->fetchStaffEndTime($col_values) . '<br>';
}
}
}
function getStaffID($tid)
{
$dao = new DAO();
$q = "select workerid from schedule where theatreid = {$tid} and q8(workerid)>0";
$stid = oci_parse($dao->con, $q);
oci_execute($stid, OCI_DEFAULT);
oci_fetch_all($stid, $rs);
return $rs;
}
function getThreadContent($TID)
{
$dao = new DAO();
示例2: displayManagerInfo
function displayManagerInfo()
{
$dao = new DAO();
$rs = $dao->fetchManagerIDsWithoutRights();
echo 'Manager have not rights to update movie: <br>';
echo '<table border=0>';
foreach ($rs as $row) {
foreach ($row as $id) {
echo '<tr>';
$changeLink = "<a href=\"staff.php?cmd=addRight&staffid={$id}\">" . 'addRights' . '</a>';
echo '<td> Manager: ' . $dao->fetchStaffName($id) . '</td><td> ' . $changeLink . '</td><td>';
echo '</tr>';
}
}
echo '</table>';
$rss = $dao->fetchManagerIDsWithRights();
echo 'Manager have rights to update movie: <br>';
echo '<table border=0>';
foreach ($rss as $row) {
foreach ($row as $id) {
echo '<tr>';
$changeLink = "<a href=\"staff.php?cmd=delRight&staffid={$id}\">" . 'delRights' . '</a>';
echo '<td> Manager: ' . $dao->fetchStaffName($id) . '</td><td> ' . $changeLink . '</td><td>';
echo '</tr>';
}
}
echo '</table>';
}