コード例 #1
0
ファイル: template.php プロジェクト: mrdeadmouse/u136006
    ShowError($arResult["ERROR_MESSAGE"]);
}
if (!empty($arResult["NOTIFY_MESSAGE"])) {
    ShowNote($arResult["NOTIFY_MESSAGE"]);
}
if (empty($arResult['ERROR_MESSAGE'])) {
    $title = '';
    $dropped = $createdFile = false;
    if ($ob->_isInMeta($arResult["ELEMENT"]["ID"], "DROPPED")) {
        $savedMetaData = CWebDavIblock::getDroppedMetaData();
        $title = GetMessage('WD_MY_LIBRARY');
        $title .= ' / ' . $savedMetaData['alias'];
        $dropped = true;
    } elseif (isset($ob->attributes['user_id']) && $ob->attributes['user_id'] == $GLOBALS['USER']->GetID()) {
        $title = GetMessage('WD_MY_LIBRARY');
        if (CIBlockWebdavSocnet::isCreatedDocFolder($ob->IBLOCK_ID, $arResult['ELEMENT']['IBLOCK_SECTION_ID'], $GLOBALS['USER']->GetID())) {
            $createdFile = true;
            $title .= ' / ' . CIBlockWebdavSocnet::getNameCreatedDocFolder();
        }
    } elseif (isset($ob->attributes['group_id'])) {
        $title = $ob->arRootSection['NAME'];
        if ($title == GetMessage("SONET_GROUP_PREFIX")) {
            $arGroup = CSocNetGroup::GetByID($ob->attributes['group_id']);
            $title = GetMessage("SONET_GROUP_PREFIX") . $arGroup['NAME'];
        }
    } else {
        $title = $arParams['STR_TITLE'];
    }
    ?>
<table>
	<tr class="wd-inline-file" id="wd-doc<?php