Ejemplo n.º 1
0
        $arParams["ROOT_SECTION_ID"] = __wd_get_root_section($IBLOCK_ID, $object, $object_id);
        if ($arParams["ROOT_SECTION_ID"] === true) {
            // created new
            $arParams["ROOT_SECTION_ID"] = __wd_get_root_section($IBLOCK_ID, $object, $object_id);
        }
        $ob = new CWebDavIblock($IBLOCK_ID, '/', $arParams + array("ATTRIBUTES" => $object == "user" ? array('user_id' => $object_id) : array('group_id' => $object_id)));
        ?>
	<tr class="section">
		<td colspan="2" align="center"><b><?php 
        echo GetMessage("WD_TAB15_TITLE");
        ?>
</b></td>
	</tr>
<?php 
        $UF_ENTITY = $ob->GetUfEntity();
        $arUserField = $ob->GetUfFields();
        $backUrl = "/";
        if (isset($_REQUEST["back_url"])) {
            $backUrl = $_REQUEST["back_url"];
        }
        foreach ($arUserField as $fieldCode => $field) {
            $name = $fieldCode;
            if (!empty($field['EDIT_FORM_LABEL'])) {
                $name = $field['EDIT_FORM_LABEL'];
            }
            $type = '';
            if (!empty($field['USER_TYPE']['DESCRIPTION'])) {
                $type = $field['USER_TYPE']['DESCRIPTION'];
            }
            ?>
	<tr>