Ejemplo n.º 1
0
					}
				}
			</script>
			<table border="0" cellspacing="1" cellpadding="3" id="proptab"  class="internal">
				<tr class="heading">
					<td><?php 
        echo GetMessage("FILEMAN_H_EDIT_PROP");
        ?>
</td>
					<td><?php 
        echo GetMessage("FILEMAN_EDIT_PROPSVAL");
        ?>
</td>
				</tr>
				<?php 
        $arPropTypes = CFileMan::GetPropstypes($site);
        $tag_prop_name = '';
        $search_exist = false;
        if (CModule::IncludeModule("search")) {
            $tag_prop_name = COption::GetOptionString("search", "page_tag_property", "tags");
            $arPropTypes[$tag_prop_name] = GetMessage('FILEMAN_TAGS');
            $search_exist = true;
        }
        $arPropTypes_tmp = $arPropTypes;
        $ind = -1;
        $arAllPropFields = array();
        if (is_array($page_properties)) {
            foreach ($page_properties as $f_CODE => $f_VALUE) {
                $ind++;
                if ($bVarsFromForm) {
                    $f_CODE = $_POST["CODE_" . $ind];
Ejemplo n.º 2
0
		<?php 
        } else {
            if ($_GET['subdialog'] == 'Y') {
                echo "<script>structReload('" . urlencode($pathToEdit) . "');</script>";
                $popupWindow->Close(false);
            } else {
                $popupWindow->Close(true, $relativePath);
            }
        }
        die;
    }
}
//Properties from fileman settings
$arFilemanProperties = array();
if (CModule::IncludeModule("fileman") && is_callable(array("CFileMan", "GetPropstypes"))) {
    $arFilemanProperties = CFileMan::GetPropstypes($site);
}
//Properties from page
$arDirProperties = array();
if ($strWarning != "" && isset($_POST["PROPERTY"]) && is_array($_POST["PROPERTY"])) {
    //Restore post values if error occured
    foreach ($_POST["PROPERTY"] as $arProperty) {
        if (isset($arProperty["VALUE"]) && strlen($arProperty["VALUE"]) > 0) {
            $arDirProperties[$arProperty["CODE"]] = $arProperty["VALUE"];
        }
    }
} else {
    $arPageSlice = ParseFileContent($fileContent);
    $arDirProperties = $arPageSlice["PROPERTIES"];
}
//All file properties. Includes properties from root folders
Ejemplo n.º 3
0
</td>
			<td class="adm-detail-content-cell-r">
			<table cellPadding="2" cellSpacing="2" border="0" width="100%">
			<tr class="heading">
				<td align="center" width="40%"><b><?php 
    echo GetMessage('FILEMAN_OPTION_PROPS_TYPE');
    ?>
</b></td>
				<td align="center" width="60%"><b><?php 
    echo GetMessage('FILEMAN_OPTION_PROPS_NAME');
    ?>
</b></td>
			</tr>
			<?php 
    $i = 0;
    foreach (CFileMan::GetPropstypes($siteList[$j]["ID"]) as $key => $val) {
        ?>
			<tr>
				<td><input type="text" name="propstypes_<?php 
        echo htmlspecialcharsbx($siteList[$j]["ID"]);
        ?>
_<?php 
        echo $i;
        ?>
_type" value="<?php 
        echo htmlspecialcharsbx($key);
        ?>
" style="width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
				<td><input type="text" name="propstypes_<?php 
        echo htmlspecialcharsbx($siteList[$j]["ID"]);
        ?>