本文整理汇总了PHP中Staff::getSurname方法的典型用法代码示例。如果您正苦于以下问题:PHP Staff::getSurname方法的具体用法?PHP Staff::getSurname怎么用?PHP Staff::getSurname使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Staff
的用法示例。
在下文中一共展示了Staff::getSurname方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$Favourites = $ldap->getArray($OU, $Filter, $LdapListAttrs);
if (is_array($Favourites)) {
$row = 0;
foreach ($Favourites[$LDAP_DISTINGUISHEDNAME_FIELD] as $key => $value) {
$Vars['row_css'] = $row % 2 ? "even favourite" : "odd favourite";
$Vars['current_login'] = $Login;
$Vars['display_name'] = $DisplayName;
$Vars['ldap_conection'] = $ldap;
$Vars['favourite_dns'] = $FavouriteDNs;
$Vars['data_parent_id'] = true;
$Vars['id'] = false;
Staff::printUserTableRow($Favourites, $key, $Vars);
$row++;
}
}
}
$row = 0;
// переменная, используемая для нумерации строк таблицы
//Перебираем всех выбраных пользователей
foreach ($Staff[$LDAP_DISTINGUISHEDNAME_FIELD] as $key => $value) {
$Surname = Staff::getSurname($Staff[$DisplayName][$key]);
if (mb_substr($Surname, 0, 1, 'UTF-8') != @$FiLe) {
$FiLe = mb_substr($Surname, 0, 1, 'UTF-8');
//Сохраняем первую букву ФИО для дальнейше проверки
echo "\r\t\t\t<tr>\r\t\t\t\t<td colspan=\"" . Staff::getNumStaffTableColls() . "\">\r\t\t\t\t\t<a href=\"#move_to_letter\" class=\"in_link uarr\" >↑</a>\r\t\t\t\t\t<span class=\"sep_letter\" id=\"s_l_" . $row . "\">" . $FiLe . "</span>\r\t\t\t\t</td>\r\t\t\t</tr>\r\t\t\t";
// и печатаем разделитель
}
$Vars['row_css'] = $row % 2 ? "even" : "odd";
$Vars['current_login'] = $Login;
$Vars['display_name'] = $DisplayName;
$Vars['ldap_conection'] = $ldap;
示例2: LDAP
<form class="heads" method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<?php
//Получаем переменные для сортировки
@$_GET['sortcolumn']=($_GET['sortcolumn'])?$_GET['sortcolumn']:"ФИО";
@$_GET['sorttype']=($_GET['sorttype'])?$_GET['sorttype']:"ASC";
?>
<div class="heads">
<?php
if($BLOCK_VIS[$menu_marker]['birthdays'])
include("./libs/birth.php");
if($BLOCK_VIS[$menu_marker]['search'])
include("./libs/search.php");
if($BLOCK_VIS[$menu_marker]['profile'])
include("./libs/profile.php");
if($BLOCK_VIS[$menu_marker]['fast_move'])
{
echo"<br/>";
Alphabet::printGeneralLetters(); //Печатаем буквы алфавита, для быстрого перехода на сотрудников
}
?>
</div>
</form>
<?php
$ldap=new LDAP($LDAPServer, $LDAPUser, $LDAPPassword); //Соединяемся с сервером
// Делаем фильтр для выборки сотрудников нужных компаний
//-------------------------------------------------------------------------------------------------------------
$CompanyNameLdapFilter=Application::getCompanyNameLdapFilter();
//-------------------------------------------------------------------------------------------------------------