本文整理汇总了PHP中PHPWS_DB::moveRow方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPWS_DB::moveRow方法的具体用法?PHP PHPWS_DB::moveRow怎么用?PHP PHPWS_DB::moveRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPWS_DB
的用法示例。
在下文中一共展示了PHPWS_DB::moveRow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process
//.........这里部分代码省略.........
$this->monthReport(isset($_GET['print']));
break;
case 'visitor_report':
if (!Current_User::allow('checkin', 'assign_visitors')) {
Current_User::disallow();
}
$this->visitorReport(isset($_GET['print']));
break;
case 'reassign':
// Called via ajax
if (Current_User::authorized('checkin', 'assign_visitors')) {
if (isset($_GET['staff_id']) && $_GET['staff_id'] >= 0 && isset($_GET['visitor_id'])) {
$this->loadVisitor($_GET['visitor_id']);
$staff_id = $this->visitor->assigned;
$db = new PHPWS_DB('checkin_visitor');
$db->addValue('assigned', (int) $_GET['staff_id']);
$db->addWhere('id', (int) $_GET['visitor_id']);
PHPWS_Error::logIfError($db->update());
printf('staff_id %s, visitor_id %s', $_GET['staff_id'], $_GET['visitor_id']);
$this->loadStaff($staff_id);
/*
if ($this->staff->status == 3) {
$this->staff->status = 0;
$this->staff->save();
}
*/
}
}
exit;
break;
case 'move_up':
if (Current_User::allow('checkin', 'assign_visitors')) {
$db = new PHPWS_DB('checkin_staff');
$db->moveRow('view_order', 'id', $_GET['staff_id'], 'up');
}
PHPWS_Core::goBack();
break;
case 'move_down':
if (Current_User::allow('checkin', 'assign_visitors')) {
$db = new PHPWS_DB('checkin_staff');
$db->moveRow('view_order', 'id', $_GET['staff_id'], 'down');
}
PHPWS_Core::goBack();
break;
case 'assign':
if (Current_User::allow('checkin', 'assign_visitors')) {
$this->panel->setCurrentTab('assign');
$this->assign();
}
break;
case 'post_note':
$this->loadVisitor();
$this->saveNote();
PHPWS_Core::goBack();
break;
case 'hide_panel':
PHPWS_Cookie::write('checkin_hide_panel', 1);
PHPWS_Core::goBack();
break;
case 'show_panel':
PHPWS_Cookie::delete('checkin_hide_panel');
PHPWS_Core::goBack();
$this->panel->setCurrentTab('assign');
$this->assign();
break;
case 'hide_sidebar':