本文整理汇总了PHP中UserProfile::render方法的典型用法代码示例。如果您正苦于以下问题:PHP UserProfile::render方法的具体用法?PHP UserProfile::render怎么用?PHP UserProfile::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserProfile
的用法示例。
在下文中一共展示了UserProfile::render方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: vf
<?php
if (cfr('USERPROFILE')) {
if (isset($_GET['username'])) {
$login = vf($_GET['username']);
$login = trim($login);
try {
$profile = new UserProfile($login);
show_window(__('User profile'), $profile->render());
} catch (Exception $exception) {
show_window(__('Error'), __('Strange exeption') . ': ' . wf_tag('pre') . $exception->getMessage() . wf_tag('pre', true));
}
} else {
throw new Exception('GET_NO_USERNAME');
}
}
示例2: UserProfile
if (cfr('CORPORATE')) {
// here we show parent user and his controls
if (isset($_GET['userlink'])) {
$userlink = $_GET['userlink'];
$parent_login = cu_GetParentUserLogin($userlink);
$childusers = cu_GetAllChildUsers($userlink);
$group_controls = wf_Link('?module=corporate&userlink=' . $userlink . '&control=cash', 'Cash', false, 'ubButton');
$group_controls .= wf_Link('?module=corporate&userlink=' . $userlink . '&control=tariff', 'Tariff', false, 'ubButton');
$group_controls .= wf_Link('?module=corporate&userlink=' . $userlink . '&control=credit', 'Credit', false, 'ubButton');
show_window(__('Group operations'), $group_controls);
show_window(__('Linked users'), web_UserArrayShower($childusers));
//show parent user profile by default
if (!isset($_GET['control'])) {
$profileObj = new UserProfile($parent_login);
$default_profile = $profileObj->render();
show_window(__('User profile'), $default_profile);
} else {
//show controls
if ($_GET['control'] == 'cash') {
//group cash operations
$allchildusers = cu_GetAllChildUsers($userlink);
//cash add form construct
$cashtypes = zb_CashGetAllCashTypes();
$cashinputs = wf_TextInput('newcash', 'New cash', '', true, 5);
$cashinputs .= web_CashTypeSelector() . ' ' . __('Cash type');
$cashinputs .= '<br>';
$cashinputs .= wf_RadioInput('operation', 'Add cash', 'add', false, true);
$cashinputs .= wf_RadioInput('operation', 'Correct saldo', 'correct', false, false);
$cashinputs .= wf_RadioInput('operation', 'Mock payment', 'mock', false, false);
$cashinputs .= wf_RadioInput('operation', 'Set cash', 'set', true, false);