コード例 #1
0
    $strLabel = 'Edit User: <b>' . $userRec->strSafeName . '</b>';
}
$attributes = array('name' => 'formMUser', 'id' => 'frmAddEdit');
if ($bAsAdmin) {
    echoT(form_open('admin/accts/addEdit/' . $lUserID, $attributes));
} else {
    echoT(form_open('more/user_acct/edit/' . $lUserID, $attributes));
}
$lTableWidth = 500;
$lLabelWidth = 105;
$clsForm = new generic_form();
$clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
$clsForm->strTitleClass = 'enpViewTitle';
$clsForm->strEntryClass = 'enpView';
$clsForm->bValueEscapeHTML = false;
showUserInfo($clsForm, $lTableWidth, $lLabelWidth, $strLabel, $userRec, $bNew, $bAsAdmin);
showAccountType($clsForm, $lTableWidth, $lLabelWidth, $strLabel, $userRec, $bNew, $bAsAdmin);
showUserContactInfo($clsForm, $lTableWidth, $lLabelWidth, $userRec, $bNew);
echoT(form_close('<br><br>'));
echoT('<script type="text/javascript">frmAddEdit.addEditEntry.focus();</script>');
function showAccountType(&$clsForm, $lTableWidth, $lLabelWidth, $strLabel, &$userRec, $bNew, $bAsAdmin)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    openBlock('Account', '');
    echoT('<table class="enpView" >');
    $clsForm->strStyleExtraLabel = 'vertical-align: top; padding-top: 4pt; width: ' . $lLabelWidth . 'pt;';
    //------------------------
    // Admin user?
    //------------------------
コード例 #2
0
ファイル: szu.php プロジェクト: hscale/SiteZilla
                    $userdata['password'] = NULL;
                    sysMsg(MSG00181);
                    userForm($userdata);
                }
            }
        }
        if ($savedetails == true) {
            saveUser($userdata);
            $showindex = true;
        }
    } else {
        sysMsg(MSG00033);
    }
} elseif (isset($_GET['user']) && $_GET['user'] == 'hidehelp' && $userid != 0) {
    disableUserHelp($userid);
    $showindex = true;
} elseif (isset($_GET['user']) && $_GET['user'] == 'showhelp' && $userid != 0) {
    enableUserHelp($userid);
    $showindex = true;
} elseif (isset($_GET['user']) && $_GET['user'] == 'edit' && $userid != 0) {
    $showindex = false;
    $userdata['id'] = $userid;
    userForm($userdata);
}
if ($showindex == true && $userid != 0) {
    showUserInfo($userid);
}
//START FUNCTIONS
if (!isset($_GET['preview'])) {
    include_once 'admin_template/footer.php';
}
コード例 #3
0
/**
 *  Main program procedure
 */
function main()
{
    global $client, $user;
    if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
        procSystem('cls');
    } else {
        procSystem('clear');
    }
    try {
        $user = $client->user->get();
    } catch (\ErrorException $e) {
        error($e);
    }
    showUserInfo();
    showMainMenu();
}
コード例 #4
0
ファイル: admin.php プロジェクト: hscale/SiteZilla
if ($inv_view == false) {
    include_once 'admin_template/header.php';
}
// foreach($_GET as $page => $value) echo $page; exit();
// print_r($url); exit();
if ($admin_page == 'users') {
    if (isset($url[2]) && $url[2] == 'view') {
        if (isset($_GET['delsite'])) {
            $siteid = cleanGet($_GET['delsite']);
            deleteWebsite($siteid);
        } elseif (isset($_GET['editsite'])) {
            $siteid = cleanGet($_GET['editsite']);
            editWebsite($siteid);
        }
        $id = $url[3];
        showUserInfo($id);
    } elseif (isset($url[2]) && $url[2] == 'websites') {
        $user = $url[3];
        showClientWebsites($user);
    } elseif (isset($url[2]) && $url[2] == 'edit') {
        $edit = $url[3];
        $user['id'] = $edit;
        userForm($user);
    } elseif (isset($url[2]) && $url[2] == 'del') {
        $id = $url[3];
        deleteUser($id);
        getUsersList('0', '0', '10');
    } elseif (isset($_GET['action']) && isset($_GET['save'])) {
        $save = cleanGet($_GET['save']);
        $user = array();
        if ($_POST['id'] != '' && $_POST['username'] != '' && $_POST['fullnames'] != '' && $_POST['phone'] != '' && $_POST['email'] != '') {