本文整理汇总了PHP中Clients::updateUserList方法的典型用法代码示例。如果您正苦于以下问题:PHP Clients::updateUserList方法的具体用法?PHP Clients::updateUserList怎么用?PHP Clients::updateUserList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Clients
的用法示例。
在下文中一共展示了Clients::updateUserList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Clients
<?php
require_once 'common/config/config.inc.php';
require_once 'classes/class.client.php';
//require_once 'classes/class.adminlogin.php';
require_once 'classes/validator.php';
$objClients = new Clients();
//print_r($_POST);die;
if ($_POST['sbmt_user']) {
$varAffectedID = $objClients->saveUsers($_POST);
//print_r($varAffectedID);die;
if ($varAffectedID) {
$objCore->standardRedirect('registration.php');
} else {
$objCore->standardRedirect('registration.php');
}
}
if ($_POST['frmChangeAction1'] != '' || $_POST['frmChangeAction2'] != '') {
$varReturnID = $objClients->updateUserList($_POST);
if ($varReturnID == 1) {
$objCore->standardRedirect('client_list.php');
die;
} else {
if ($varReturnID == 2 || $varReturnID == 3 || $varReturnID == 4) {
$objCore->standardRedirect($_SESSION['sessRedirectURL']);
die;
}
}
}
示例2: header
$varAffectedID = $objClients->saveUsers($_POST);
if ($varAffectedID) {
$objCore->standardRedirect('client_list.php');
} else {
$objCore->standardRedirect($_SESSION['sessRedirectURL']);
}
}
if ($_POST['frmChangeAction1'] != '' || $_POST['frmChangeAction2'] != '') {
//var_dump($_POST['frmChangeAction1']);die;
if ($_POST['frmChangeAction1'] == 'Delete' || $_POST['frmChangeAction2'] == 'Delete') {
$_SESSION['sessUpdateList'] = $_POST;
header('Location:client_confirm_action.php');
//$varReturnID = $objClients->updateUserList($_SESSION['sessUpdateList']);
exit;
}
$varReturnID = $objClients->updateUserList($_POST);
if ($varReturnID == 1) {
$objCore->standardRedirect('client_list.php');
die;
} else {
if ($varReturnID == 2 || $varReturnID == 3 || $varReturnID == 4) {
$objCore->standardRedirect($_SESSION['sessRedirectURL']);
die;
}
}
}
if ($_SESSION['sessUpdateList'] != '') {
$varReturnID = $objClients->updateUserList($_SESSION['sessUpdateList']);
if ($varReturnID == 1) {
$objCore->standardRedirect('client_list.php');
die;