本文整理汇总了PHP中DB_Functions::getReportList方法的典型用法代码示例。如果您正苦于以下问题:PHP DB_Functions::getReportList方法的具体用法?PHP DB_Functions::getReportList怎么用?PHP DB_Functions::getReportList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DB_Functions
的用法示例。
在下文中一共展示了DB_Functions::getReportList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
} else {
$no_of_reports = 0;
}
echo '<li><a>NA</a></li>';
if ($no_of_reports > 0) {
while ($row = mysql_fetch_array($reportNames)) {
echo '<li><a >' . $row["ReportName"] . '</a></li>';
}
} else {
echo '<li>No Reports Added Yet!</li>';
}
}
if ("1" === $currentUserRow["Admin"] || "admin" === strtolower($login_name) || "1" === $currentUserRow["Auditor"]) {
$reports = $db->getAllReportList();
} else {
$reports = $db->getReportList($login_name);
}
if ($reportNames != false) {
$no_of_reportNames = mysql_num_rows($reportNames);
} else {
$no_of_reportNames = 0;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Report List</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/app.css">
示例2: array
$result = $db->deleteUser($_POST["DeleteUserId"]);
}
if (isset($_POST["DeleteReport"])) {
$result = $db->deleteReportRow($_POST["DeleteReport"]);
}
if (isset($_POST["ChangePassword"])) {
$result = $db->changePassword($_POST["ChangePassword"], $_POST["Email"], $_POST["Pass"]);
}
if (isset($_POST["replaceName"])) {
$result = $db->replaceResponsible($_POST["replaceName"], $_POST["newName"]);
}
if (isset($_POST["ChangeEmailId"])) {
$result = $db->editEmail($_POST["ChangeEmailId"], $_POST["NewEmailId"]);
}
if (isset($_POST["ChangePasswordId"])) {
$result = $db->editPasswordById($_POST["ChangePasswordId"], $_POST["NewPassword"]);
}
if (isset($_POST["selectUser"])) {
if ($_POST["selectUser"] == "All") {
$result = $db->getAllReportList();
} else {
$result = $db->getReportList($_POST["selectUser"]);
}
$arr = array();
$count = 0;
while ($row = mysql_fetch_object($result)) {
$arr[$count] = array('name1' => $row->ReportName);
$count++;
}
echo json_encode($arr);
}