Beispiel #1
0
        Option::set(ADMIN_MODULE_NAME, "max_image_size", $request->getPost('max_image_size'));
        CAdminMessage::showMessage(array("MESSAGE" => Loc::getMessage("REFERENCES_OPTIONS_SAVED"), "TYPE" => "OK"));
    } else {
        CAdminMessage::showMessage(Loc::getMessage("REFERENCES_INVALID_VALUE"));
    }
}
$tabControl->begin();
?>

<form method="post" action="<?php 
echo sprintf('%s?mid=%s&lang=%s', $request->getRequestedPage(), urlencode($mid), LANGUAGE_ID);
?>
">
    <?php 
echo bitrix_sessid_post();
$tabControl->beginNextTab();
?>
    <tr>
        <td width="40%">
            <label for="max_image_size"><?php 
echo Loc::getMessage("REFERENCES_MAX_IMAGE_SIZE");
?>
:</label>
        <td width="60%">
            <input type="text"
                   size="50"
                   maxlength="5"
                   name="max_image_size"
                   value="<?php 
echo String::htmlEncode(Option::get(ADMIN_MODULE_NAME, "max_image_size", 500));
?>