本文整理汇总了PHP中Staff::showComputerName方法的典型用法代码示例。如果您正苦于以下问题:PHP Staff::showComputerName方法的具体用法?PHP Staff::showComputerName怎么用?PHP Staff::showComputerName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Staff
的用法示例。
在下文中一共展示了Staff::showComputerName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$CompanyNameLdapFilter = Application::getCompanyNameLdapFilter();
//-------------------------------------------------------------------------------------------------------------
$LdapListAttrs = array($LDAP_DISTINGUISHEDNAME_FIELD, $DisplayName, $LDAP_MAIL_FIELD, $LDAP_INTERNAL_PHONE_FIELD, $LDAP_CITY_PHONE_FIELD, $LDAP_ST_DATE_VACATION_FIELD, $LDAP_END_DATE_VACATION_FIELD, $LDAP_TITLE_FIELD, $LDAP_DEPARTMENT_FIELD, $LDAP_CELL_PHONE_FIELD, $LDAP_MANAGER_FIELD, $LDAP_COMPUTER_FIELD, $LDAP_DEPUTY_FIELD, $LDAP_GUID_FIELD, $LDAP_CREATED_DATE_FIELD, $LDAP_USERPRINCIPALNAME_FIELD);
//Получаем правильно отсортированных сотрудников с необходимыми атрибутами LDAP
$Staff = $ldap->getArray($OU, "(&" . $CompanyNameLdapFilter . "(" . $LDAP_CREATED_DATE_FIELD . ">=" . date('Ymd', time() - $NEW_USERS_NUM_DAYS * 24 * 60 * 60) . "000000.0Z)(" . $LDAP_CN_FIELD . "=*)" . $DIS_USERS_COND . ")", $LdapListAttrs, array($LDAP_CREATED_DATE_FIELD), 'DESC');
if (is_array($Staff)) {
// Шапка таблицы
//-------------------------------------------------------------------------------------------------------------
echo "\n\t\t<table class=\"sqltable\" cellpadding=\"4\">\n\t\t<th><div>ФИО</div></th>\n\t\t<th><div>Должность</div></th>\n\t\t<th><div>E-mail</div></th>\n\t\t<th><div>" . $L->l('intrenal_phone') . "</div></th>\n\t\t";
if (!$HIDE_CITY_PHONE_FIELD) {
echo "<th><div>" . $L->l('city_phone') . "</div></th>";
}
if (!$HIDE_CELL_PHONE_FIELD) {
echo "<th><div>" . $L->l('cell_phone') . "</div></th>";
}
if (Staff::showComputerName($Login)) {
//Если сотрудник является администратором справочника
echo "<th><div>Компьютер</div></th>";
}
if ($GLOBALS['XMPP_ENABLE'] && $GLOBALS['XMPP_MESSAGE_LISTS_ENABLE'] && !empty($_COOKIE['dn'])) {
echo "<th><div></div></th>";
}
if ($FAVOURITE_CONTACTS && $_COOKIE['dn']) {
echo "<th><div></div></th>";
}
echo "<th><div></div></th>";
if (empty($_COOKIE['dn']) && $ENABLE_DANGEROUS_AUTH) {
echo Application::getCollTitle();
}
//-------------------------------------------------------------------------------------------------------------
$FavouriteDNs = $ldap->getAttrValue($_COOKIE['dn'], $LDAP_FAVOURITE_USER_FIELD);
示例2:
// Шапка таблицы
//-------------------------------------------------------------------------------------------------------------
echo "
<table class=\"sqltable\" cellpadding=\"4\">
<th><div>ФИО</div></th>
<th><div>Должность</div></th>
<th><div>E-mail</div></th>
";
if(!$HIDE_ROOM_NUMBER)
echo "<th><div>".$L->l('room_number')."</div></th>";
echo "<th><div>".$L->l('intrenal_phone')."</div></th>";
if(!$HIDE_CITY_PHONE_FIELD)
echo "<th><div>".$L->l('city_phone')."</div></th>";
if(!$HIDE_CELL_PHONE_FIELD)
echo "<th><div>".$L->l('cell_phone')."</div></th>";
if(Staff::showComputerName($Login)) //Если сотрудник является администратором справочника
echo "<th><div>Компьютер</div></th>";
if($GLOBALS['XMPP_ENABLE'] && $GLOBALS['XMPP_MESSAGE_LISTS_ENABLE'] && !empty($_COOKIE['dn']))
echo "<th><div></div></th>";
if($FAVOURITE_CONTACTS && $_COOKIE['dn'])
echo "<th><div></div></th>";
echo "<th><div></div></th>";
if(empty($_COOKIE['dn']) && $ENABLE_DANGEROUS_AUTH)
echo Application::getCollTitle();
//-------------------------------------------------------------------------------------------------------------
$FavouriteDNs=$ldap->getAttrValue($_COOKIE['dn'], $LDAP_FAVOURITE_USER_FIELD);
$row=0; // переменная, используемая для нумерации строк таблицы
示例3: 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();
//-------------------------------------------------------------------------------------------------------------
示例4:
<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");
?>
</div>
<?php
//Печатаем контейнер в который JS будет класть ссылки для быстрого перехода на отделы
if($BLOCK_VIS[$menu_marker]['fast_move'])
{
echo "<br/>
<span id=\"ALPH_ITEM_IN_LINE\" class=\"h\">".$DEP_ITEM_IN_COL."</span>
<fieldset id=\"move_to_dep\">
<legend>".$L->l('fast_move_to_department')."</legend>
</fieldset>
";
}
?>
</form>
<?php
//=================================================================================================================