本文整理汇总了PHP中Staff::setStaffid方法的典型用法代码示例。如果您正苦于以下问题:PHP Staff::setStaffid方法的具体用法?PHP Staff::setStaffid怎么用?PHP Staff::setStaffid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Staff
的用法示例。
在下文中一共展示了Staff::setStaffid方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
if (!is_numeric($_GET['id'])) {
header("Location: /staff/?id=notFound");
exit;
}
$addsid = $r->addsid;
if (isset($_GET['remove']) && $_GET['remove'] == "y" && isset($_GET['id']) && is_numeric($_GET['id'])) {
db_delete("staff", $_GET['id'], 'staffid');
header("Location: /staff/");
exit;
}
if (isset($_GET['go']) && $_GET['go'] == "y") {
// Add to Address table
$addsid = db_updateAddress($_POST, $addsid);
# Update DB
$staffUpdate = new Staff();
$staffUpdate->setStaffid($_POST['staffid']);
$staffUpdate->setFname($_POST['fname']);
$staffUpdate->setSname($_POST['sname']);
$staffUpdate->setNotes($_POST['notes']);
$staffUpdate->setJobtitle($_POST['jobtitle']);
$staffUpdate->setStatus($_POST['status']);
$staffUpdate->updateDB();
header("Location: /staff/");
exit;
}
$pagetitle = "Edit Staff Member";
include "../tmpl/header.php";
?>
<h1>Edit Staff Members Details</h1>
<?php
示例2: pass
$usr = $parts[0];
$pw = $parts[1];
// $staffid = pass ( $usr, $pw, 'staff' );
if (!isset($_POST['pt']) || $_POST['pt'] == '') {
$staffid = pass($usr, $pw, 'staff');
} else {
$cke = base64_decode($_POST['pt']);
$keywords = preg_split("/\\./", $cke);
if ($keywords[4] == 'ATHENASECCHK') {
$sid = $keywords[0];
$staffid = $keywords[1];
$usr = $keywords[2];
$pw = $keywords[3];
// echo "$staffid, $usr, $pw";
// exit();
}
}
if ($staffid > -1) {
dropCookie($staffid, $usr, $pw);
// logEvent("26",$staffid,"Username:".$user);
// Update DB
$staffUpdate = new Staff();
$staffUpdate->setStaffid($staffid);
$staffUpdate->setLastlogin($_POST['lastlogin']);
$staffUpdate->updateDB();
header("Location: {$staff_url}");
} else {
killCookie();
// logEvent("31",0,"Username:".$user);
header("Location: {$login_url}/?pf=y");
}
示例3: header
include "/srv/athenace/lib/shared/functions_form.php";
if (!is_numeric($_GET['id'])) {
header("Location: /staff/?id=notFound");
exit;
}
if (isset($_GET['go']) && $_GET['go'] == "y") {
$staffDelete = new Staff();
$staffDelete->setStaffid($_GET['id']);
$staffDelete->deleteFromDB();
header("Location: /staff/?ItemDeleted=y");
exit;
}
include "../tmpl/header.php";
$staff = new Staff();
// Load DB data into object
$staff->setStaffid($_GET['id']);
$staff->loadStaff();
$all = $staff->getAll();
if (isset($all)) {
?>
<div class="panel panel-info">
<div class="panel-heading">
<strong>Delete <?php
echo $staff->getFname() . ' ' . $staff->getSname();
?>
?</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal">