本文整理汇总了PHP中PMA_getHtmlToChooseUserGroup函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_getHtmlToChooseUserGroup函数的具体用法?PHP PMA_getHtmlToChooseUserGroup怎么用?PHP PMA_getHtmlToChooseUserGroup使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PMA_getHtmlToChooseUserGroup函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PMA_getHtmlForUserGroupDialog
/**
* Get Html for User Group Dialog
*
* @param string $username username
* @param bool $is_menuswork Is menuswork set in configuration
*
* @return string html
*/
function PMA_getHtmlForUserGroupDialog($username, $is_menuswork)
{
$html = '';
if (!empty($_REQUEST['edit_user_group_dialog']) && $is_menuswork) {
$dialog = PMA_getHtmlToChooseUserGroup($username);
$response = PMA_Response::getInstance();
if ($GLOBALS['is_ajax_request']) {
$response->addJSON('message', $dialog);
exit;
} else {
$html .= $dialog;
}
}
return $html;
}
示例2: testPMAGetHtmlToChooseUserGroup
/**
* Test for PMA_getHtmlToChooseUserGroup
*
* @return void
*/
public function testPMAGetHtmlToChooseUserGroup()
{
$username = "pma_username";
//PMA_getHtmlToChooseUserGroup
$html = PMA_getHtmlToChooseUserGroup($username);
$this->assertContains('<form class="ajax" id="changeUserGroupForm"', $html);
//PMA_URL_getHiddenInputs
$params = array('username' => $username);
$html_output = PMA_URL_getHiddenInputs($params);
$this->assertContains($html_output, $html);
//__('User group')
$this->assertContains(__('User group'), $html);
}