Beispiel #1
0
$website_title = $GLOBALS['s3db_info']['server']['site_title'] . '  - view user account';
$site_intro = $GLOBALS['s3db_info']['server']['site_intro'];
include S3DB_SERVER_ROOT . '/s3style.php';
include S3DB_SERVER_ROOT . '/tabs.php';
if (!empty($_REQUEST['id'])) {
    //echo $_GET['id'];
    $account_id = $_GET['id'];
    $userviewed = URIinfo('U' . $account_id, $user_id, $key, $db);
    $account_addr_id = $userviewed['account_addr_id'];
}
$s3ql = compact('user_id', 'db');
$s3ql['select'] = '*';
$s3ql['from'] = 'groups';
$s3ql['where']['user_id'] = $userviewed['account_id'];
$groups = S3QLaction($s3ql);
$account_groups = create_static_group_list($groups, $userviewed['account_id']);
$view_message = 'View User Account';
$content_width = '70%';
$button = '<input type="button" name="back" value="Back to User Account List" onClick="window.location=\'' . $action['listusers'] . '\'">';
$account_lid = $userviewed['account_lid'];
$account_status = $userviewed['account_status'];
if ($userviewed['account_status'] == 'A') {
    $account_status = 'Active';
    //$checked= 'checked');
} else {
    $account_status = 'Inactive';
}
$account_uname = $userviewed['account_uname'];
if ($userviewed['account_type'] == 'u') {
    $account_type = 'User';
}
Beispiel #2
0
        case 6:
            $tpl->set_var('password2_required', '*');
            $tpl->set_var('message', 'You need to re-type your password to confirm');
            break;
        case 7:
            $tpl->set_var('password_required', '*');
            $tpl->set_var('password2_required', '*');
            $tpl->set_var('message', 'Re-typed password does not match');
            break;
        case 8:
            $tpl->set_var('message', 'User' . $useredited['account_lid'] . 'already exists');
            break;
    }
}
$tpl->set_var('image_path', '..');
$tpl->set_var('group_list', create_static_group_list($groups, $useredited['account_id']));
$tpl->set_var('section_num', '2');
$tpl->set_var('action_url', 'changeprofile.php');
$tpl->set_var('website_title', $GLOBALS['s3db_info']['server']['site_title'] . ' - change profile');
$tpl->set_var('edit_message', 'My Profile');
$tpl->set_var('content_width', '70%');
$tpl->set_var('action', '<input type="submit" name="submit" value="Update My Profile">');
$tpl->set_var('account_lid', $useredited['account_lid']);
$tpl->set_var('account_status', $useredited['account_status'] == 'A' ? 'Active' : 'Inactive');
$tpl->set_var('account_uname', $useredited['account_uname']);
$tpl->set_var('account_type', $useredited['account_type'] == 'u' ? 'User' : 'Group');
$tpl->set_var('account_last_login_on', substr($useredited['account_last_login_on'], 0, 19));
$tpl->set_var('account_last_login_from', $useredited['account_last_login_from']);
$tpl->set_var('account_last_pwd_changed_on', substr($useredited['account_last_pwd_changed_on'], 0, 19));
$tpl->set_var('account_last_pwd_changed_by', $useredited['account_last_pwd_changed_by']);
$tpl->set_var('created_on', substr($useredited['created_on'], 0, 19));