当前位置: 首页>>代码示例>>PHP>>正文


PHP Staff::makeNameUrlFromDn方法代码示例

本文整理汇总了PHP中Staff::makeNameUrlFromDn方法的典型用法代码示例。如果您正苦于以下问题:PHP Staff::makeNameUrlFromDn方法的具体用法?PHP Staff::makeNameUrlFromDn怎么用?PHP Staff::makeNameUrlFromDn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Staff的用法示例。


在下文中一共展示了Staff::makeNameUrlFromDn方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: implode

<form data-ajax="true" action="./pages/si_aj_send_xmpp_message.php">
<div class="L recipients">
<div>
<?php 
if (is_array($_COOKIE['xmpp_list']) && $XMPP_MESSAGE_LISTS_ENABLE) {
    /*foreach($_COOKIE['xmpp_list'] AS $key=>$value)
      {
      echo "<div>".Staff::makeUserLinkByLogin($value)."</div>";
      }*/
    $Filter = "(&(|(" . $GLOBALS['LDAP_USERPRINCIPALNAME_FIELD'] . "=" . implode(")(" . $GLOBALS['LDAP_USERPRINCIPALNAME_FIELD'] . "=", $_COOKIE['xmpp_list']) . ")))";
    $Recipients = $ldap->getArray($OU, $Filter, array($GLOBALS['LDAP_DISTINGUISHEDNAME_FIELD'], $GLOBALS['DISPLAY_NAME_FIELD'], $GLOBALS['LDAP_USERPRINCIPALNAME_FIELD']));
    $i = 0;
    foreach ($Recipients[$LDAP_DISTINGUISHEDNAME_FIELD] as $key => $value) {
        echo "<div><input type=\"checkbox\" name=\"resipients[" . $i . "]\" value=\"" . $Recipients[$GLOBALS['LDAP_USERPRINCIPALNAME_FIELD']][$key] . "\" data-xmpp-item=\"true\" checked=\"checked\"/>" . Staff::makeNameUrlFromDn($Recipients[$LDAP_DISTINGUISHEDNAME_FIELD][$key], $Recipients[$DISPLAY_NAME_FIELD][$key]) . "</div>";
        $i++;
    }
}
if ($XMPP_LDAP_GROUPS_ENABLE) {
    $ou = $XMPP_LDAP_GROUPS_OU ? $XMPP_LDAP_GROUPS_OU : $OU;
    $Filter = $XMPP_LDAP_GROUPS_SUBSTR ? "(&(" . $LDAP_CN_FIELD . "=*{$XMPP_LDAP_GROUPS_SUBSTR}*))" : "(&(" . LDAP::getEmptyFilter() . "))";
    $Groups = $ldap->getArray($ou, $Filter, array($LDAP_XMMP_GROUP_TITLE_FIELD, $LDAP_DISTINGUISHEDNAME_FIELD), array($LDAP_XMMP_GROUP_TITLE_FIELD), "ASC", true);
    $i = 0;
    foreach ($Groups[$LDAP_DISTINGUISHEDNAME_FIELD] as $key => $value) {
        if ($i == 0) {
            echo "<div class=\"xmpp_groups\">";
        }
        echo "<div><input id=\"group_" . $i . "\" type=\"checkbox\" name=\"groups[" . $i . "]\" value=\"" . $Groups[$LDAP_DISTINGUISHEDNAME_FIELD][$key] . "\"/><label for=\"group_" . $i . "\">" . $Groups[$LDAP_XMMP_GROUP_TITLE_FIELD][$key] . "</label></div>";
        $i++;
    }
    if ($i > 0) {
        echo "</div>";
开发者ID:mihailsta,项目名称:eight,代码行数:31,代码来源:si_send_xmpp_message.php

示例2: printDeputyInList

	public static function printDeputyInList($DN, $Title='')
		{
		if($GLOBALS['SHOW_DEPUTY'] && $DN && $GLOBALS['SHOW_DEPUTY_IN_LISTS'])
			echo "<span class=\"unimportant\"> ".$GLOBALS['L']->l("deputy")." </span><span class=\"deputy\">".Staff::makeNameUrlFromDn($DN, $Title)."</span>";
		}
开发者ID:smale3,项目名称:eight,代码行数:5,代码来源:staff.php

示例3: LDAPTable

    if (!((date("Y") - $Date[2]) % 5)) {
        $Jubilee = "<div>" . $L->l('round_date') . "</div>";
    }
    if (!((date("Y") - $Date[2]) % 10)) {
        $Jubilee = "<div>" . $L->l('jubilee') . "</div>";
    }
    echo "<div class=\"birthday\"><h6>" . $L->l('birthday') . ":</h6> " . (int) $Date[0] . " " . $MONTHS[(int) $Date[1]] . ". " . @$Jubilee . "</div>";
}
//-----------------------------------------------------------------------------
$ManDN = $ldap->getValue($dn, $LDAP_MANAGER_FIELD);
if ($ManDN) {
    echo "<div class=\"employee\"><h6>" . $L->l('immediate_supervisor') . ":</h6><br>";
    if ($USE_DISPLAY_NAME) {
        echo Staff::makeNameUrlFromDn($ManDN, $ldap->getValue($ManDN, $DISPLAY_NAME_FIELD));
    } else {
        echo Staff::makeNameUrlFromDn($ManDN);
    }
    echo "</div>";
}
if (isset($Manager)) {
    echo $Manager;
}
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan='2'>";
echo "<div class=\"staff\" id=\"people\"><h6>Подчиненные:</h6></div>";
$table = new LDAPTable($LDAPServer, $LDAPUser, $LDAPPassword, false, false);
if ($USE_DISPLAY_NAME) {
    $table->addColumn($DISPLAY_NAME_FIELD . ", distinguishedname", "ФИО", true, 0, false, "ad_def_full_name");
} else {
开发者ID:mihailsta,项目名称:eight,代码行数:31,代码来源:si_employeeview.php


注:本文中的Staff::makeNameUrlFromDn方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。