示例#1
0
                            <?php 
    foreach (Translations::$languages as $lang => $label) {
        echo '<option value="' . $lang . '"';
        if (isset($options["language"]) && $options["language"] == $lang) {
            echo ' selected="selected"';
        }
        echo '>' . $label . '</option>';
    }
    ?>
                            </select><br/>
                            <?php 
    displayYesNoOption("speedfix", $options);
    ?>
<br/>
                            <?php 
    displayYesNoOption("autoplay-next", $options);
    ?>
<br/>
                            <br/>
                            <input type="button" class="action button" data-action="save-options" value="<?php 
    echo t("save");
    ?>
"/>
                        </form>
                    </div>
                </div>
                <div class="files">
                    <div class="status-line"><b><?php 
    echo t("status");
    ?>
:</b> <span id="status"><?php 
示例#2
0
                foreach ($arSites as $arSite) {
                    $aTabs2[] = Array('DIV' => 'stetab' . $arSite['ID'], 'TAB' => '[' . $arSite['ID'] . '] ' . ($arSite['NAME']), 'TITLE' => '[' . $arSite['ID'] . '] ' . ($arSite['NAME']));
                }

                $tabControl2 = new CAdminViewTabControl('tabControl2', $aTabs2);
                $tabControl2->Begin();

                foreach ($arSites as $arSite) {
                    $tabControl2->BeginNextTab();
                    $arFieldDescription = CDadataSuggestionsSettings::GetFieldNames($arSite['ID']);
                    $arFieldValues = CDadataSuggestionsSettings::GetFieldsFromMapping($arSite['ID'], unserialize(COption::GetOptionString($module_id, 'mapping', "", $arSite['ID'])));
                    ?>
                    <table cellspacing="5" cellpadding="0" border="0" width="100%" align="center">

                        <?displayYesNoOption($module_id, $arSite, "ENABLED", "N"); ?>
                        <?displayYesNoOption($module_id, $arSite, "JQUERY", "Y"); ?>
                        <?displayStringOption($module_id, $arSite, "APIKEY", "", 32); ?>

                        <?
                        // Для каждого типа контрагента
                        foreach ($arSaleProps as $arSaleType)
                            if (in_array($arSite['ID'], $arSaleType['LIDS'])): ?>
                                <tr class="heading">
                                    <td colspan="2"><?php 
echo $arSaleType['NAME'];
?>
</td>
                                </tr>
                                <?
                                // Для каждого свойства типа
                                foreach ($arSaleType['PROPERTIES'] as $arSaleProp): ?>