示例#1
0
    function __CrmFieldMultiEditRenderItem($item, $mnemonic, $typeID, $referenceData, $editorID)
    {
        $itemID = isset($item['ID']) ? $item['ID'] : '';
        $itemVal = isset($item['VALUE']) ? $item['VALUE'] : '';
        ?>
<div class="bx-crm-edit-fm-item">
		<input type="text" class="bx-crm-edit-input" name="<?php 
        echo htmlspecialcharsbx($mnemonic);
        ?>
[<?php 
        echo htmlspecialcharsbx($typeID);
        ?>
][<?php 
        echo htmlspecialcharsbx($itemID);
        ?>
][VALUE]" value="<?php 
        echo htmlspecialcharsbx($itemVal);
        ?>
"><?php 
        echo SelectBoxFromArray(CUtil::JSEscape($mnemonic) . '[' . htmlspecialcharsbx($typeID) . '][' . htmlspecialcharsbx($itemID) . '][VALUE_TYPE]', $referenceData, isset($item['VALUE_TYPE']) ? $item['VALUE_TYPE'] : '', '', "class='bx-crm-edit-input bx-crm-edit-input-small'");
        ?>
<div class="delete-action" onclick="BX.CrmFieldMultiEditor.items['<?php 
        echo CUtil::addslashes($editorID);
        ?>
'].deleteItem('<?php 
        echo CUtil::addslashes($itemID);
        ?>
');" title="<?php 
        echo GetMessage('CRM_STATUS_LIST_DELETE');
        ?>
"></div>
		</div><?php 
    }
    public function GetSettingsHTML($arFields, $strHTMLControlName, &$arPropertyFields)
    {
        $arPropertyFields = array("HIDE" => array("ROW_COUNT", "COL_COUNT", "MULTIPLE_CNT"), 'USER_TYPE_SETTINGS_TITLE' => GetMessage('BT_UT_SKU_SETTING_TITLE'));
        $arSettings = self::PrepareSettings($arFields);
        $strResult = '<tr>
		<td>' . GetMessage('BT_UT_SKU_SETTING_VIEW') . '</td>
		<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[VIEW]', self::GetPropertyViewsList(true), htmlspecialcharsbx($arSettings['VIEW'])) . '</td>
		</tr>
		<tr>
		<td>' . GetMessage('BT_UT_SKU_SETTING_MAX_WIDTH') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_WIDTH]" value="' . intval($arSettings['MAX_WIDTH']) . '">&nbsp;' . GetMessage('BT_UT_SKU_SETTING_COMMENT_MAX_WIDTH') . '</td>
		</tr>
		<tr>
		<td>' . GetMessage('BT_UT_SKU_SETTING_MIN_HEIGHT') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MIN_HEIGHT]" value="' . intval($arSettings['MIN_HEIGHT']) . '">&nbsp;' . GetMessage('BT_UT_SKU_SETTING_COMMENT_MIN_HEIGHT') . '</td>
		</tr>
		<tr>
		<td>' . GetMessage('BT_UT_SKU_SETTING_MAX_HEIGHT') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_HEIGHT]" value="' . intval($arSettings['MAX_HEIGHT']) . '">&nbsp;' . GetMessage('BT_UT_SKU_SETTING_COMMENT_MAX_HEIGHT') . '</td>
		</tr>
		<tr>
		<td>' . GetMessage('BT_UT_SKU_SETTING_BAN_SYMBOLS') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[BAN_SYM]" value="' . htmlspecialcharsbx($arSettings['BAN_SYM']) . '"></td>
		</tr>
		<tr>
		<td>' . GetMessage('BT_UT_SKU_SETTING_REP_SYMBOL') . '</td>
		<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[REP_SYM]', parent::GetReplaceSymList(true), htmlspecialcharsbx($arSettings['REP_SYM'])) . '&nbsp;<input type="text" name="' . $strHTMLControlName["NAME"] . '[OTHER_REP_SYM]" size="1" maxlength="1" value="' . $arSettings['OTHER_REP_SYM'] . '"></td>
		</tr>';
        return $strResult;
    }
 function GetAdminListEditHTML($arUserField, $arHtmlControl)
 {
     $ar = CCrmStatus::GetStatusList($arUserField['SETTINGS']['ENTITY_TYPE']);
     foreach ($ar as $key => $name) {
         $arr['reference'][] = $name;
         $arr['reference_id'][] = $key;
     }
     return SelectBoxFromArray($arHtmlControl['NAME'], $arr, $arHtmlControl['VALUE']);
 }
示例#4
0
    function __GroupRightsShowRow($titleCol, $groupID, $group_id, $ar, $v, $site_id_tmp, $arRightsUseSites, $arSites, $useDefault = true)
    {
        if ($groupID) {
            $arUsedGroups[$groupID] = true;
        }
        ?>
		<tr>
			<td width="40%"><?php 
        echo $titleCol;
        ?>
</td>
			<td width="40%"><?php 
        echo '<input type="hidden" name="GROUPS[]" value="' . $group_id . '">';
        $strReturnBox = '<select class="typeselect" name="RIGHTS[]" onchange="__GroupRightsChangeSite(this)" >';
        $ref = $ar["reference"];
        $ref_id = $ar["reference_id"];
        if (!is_array($ref)) {
            $ref = $ar["REFERENCE"];
        }
        if (!is_array($ref_id)) {
            $ref_id = $ar["REFERENCE_ID"];
        }
        if ($useDefault) {
            $strReturnBox .= '<option value="">' . GetMessage("MAIN_DEFAULT") . '</option>';
        }
        for ($i = 0, $n = count($ref); $i < $n; $i++) {
            $strReturnBox .= '<option';
            if (strcasecmp($ref_id[$i], htmlspecialcharsbx($v)) == 0) {
                $strReturnBox .= ' selected';
            }
            $strReturnBox .= ' value="' . htmlspecialcharsbx($ref_id[$i]) . '">' . htmlspecialcharsbx($ref[$i]) . '</option>';
        }
        echo $strReturnBox . '</select>';
        ?>
</td><td width="20%"><span style="display: <?php 
        echo in_array($v, $arRightsUseSites) ? "inline-block" : "none";
        ?>
;"><?php 
        echo SelectBoxFromArray("SITES[]", $arSites, htmlspecialcharsbx($site_id_tmp), GetMessage("group_rights_sites_all"), "class='typeselect' style='width: 150px;'");
        ?>
</span></td>
			<td width="0%"><a href="javascript:void(0)" onClick="__GroupRightsDeleteRow(this)"><img src="/bitrix/themes/.default/images/actions/delete_button.gif" border="0" width="20" height="20"></a></td>
		</tr>
		<?php 
    }
示例#5
0
    echo $bReadOnly ? ' disabled readonly' : '';
    ?>
/>
		</td>
	</tr>
	<tr>
		<td width="40%">
			<?php 
    echo GetMessage("CAT_VAT");
    ?>
:
		</td>
		<td width="60%">
			<?php 
    $arVATRef = CatalogGetVATArray(array(), true);
    echo SelectBoxFromArray('CAT_VAT_ID', $arVATRef, $str_CAT_VAT_ID, "", $bReadOnly ? "disabled readonly" : '');
    ?>
		</td>
	</tr>
	<tr>
		<td width="40%"><label for="CAT_VAT_INCLUDED"><?php 
    echo GetMessage("CAT_VAT_INCLUDED");
    ?>
</label>:</td>
		<td width="60%">
			<input type="hidden" name="CAT_VAT_INCLUDED" id="CAT_VAT_INCLUDED_N" value="N">
			<input type="checkbox" name="CAT_VAT_INCLUDED" id="CAT_VAT_INCLUDED" value="Y" <?php 
    echo $str_CAT_VAT_INCLUDED == 'Y' ? 'checked="checked"' : '';
    ?>
 <?php 
    echo $bReadOnly ? 'disabled readonly' : '';
示例#6
0
		?>
	</td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_AGENT_FLT_LAST_EXEC")?>:</td>
	<td><?echo CalendarDate("find_last_exec", htmlspecialcharsbx($find_last_exec), "find_form")?></td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_AGENT_FLT_NEXT_EXEC")?>:</td>
	<td><?echo CalendarDate("find_next_exec", htmlspecialcharsbx($find_next_exec), "find_form")?></td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_AGENT_FLT_IS_PERIOD")?>:</td>
	<td><?
		$arr = array("reference"=>array(GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id"=>array("Y","N"));
		echo SelectBoxFromArray("find_is_period", $arr, htmlspecialcharsbx($find_is_period), GetMessage('MAIN_ALL'));
		?>
	</td>
</tr>

<?
$oFilter->Buttons(array("table_id"=>$sTableID, "url"=>$APPLICATION->GetCurPage(), "form"=>"find_form"));
$oFilter->End();
?>
</form>
<?

$lAdmin->DisplayList();

require($_SERVER["DOCUMENT_ROOT"].FX_ROOT."/modules/main/include/epilog_admin.php");
?>
示例#7
0
    public function GetSettingsHTML($arFields, $strHTMLControlName, &$arPropertyFields)
    {
        $arPropertyFields = array("HIDE" => array("ROW_COUNT", "COL_COUNT", "MULTIPLE_CNT"), 'USER_TYPE_SETTINGS_TITLE' => Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_TITLE'));
        $arSettings = self::PrepareSettings($arFields);
        return '<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_VIEW') . '</td>
		<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[VIEW]', self::GetPropertyViewsList(true), htmlspecialcharsbx($arSettings['VIEW'])) . '</td>
		</tr>
		<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_SHOW_ADD') . '</td>
		<td>' . InputType('checkbox', $strHTMLControlName["NAME"] . '[SHOW_ADD]', 'Y', htmlspecialcharsbx($arSettings["SHOW_ADD"])) . '</td>
		</tr>
		<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_IBLOCK_MESS') . '</td>
		<td>' . InputType('checkbox', $strHTMLControlName["NAME"] . '[IBLOCK_MESS]', 'Y', htmlspecialcharsbx($arSettings["IBLOCK_MESS"])) . '</td>
		</tr>
		<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MAX_WIDTH') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_WIDTH]" value="' . (int) $arSettings['MAX_WIDTH'] . '">&nbsp;' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MAX_WIDTH') . '</td>
		</tr>
		<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MIN_HEIGHT') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MIN_HEIGHT]" value="' . (int) $arSettings['MIN_HEIGHT'] . '">&nbsp;' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MIN_HEIGHT') . '</td>
		</tr>
		<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_MAX_HEIGHT') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[MAX_HEIGHT]" value="' . (int) $arSettings['MAX_HEIGHT'] . '">&nbsp;' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_COMMENT_MAX_HEIGHT') . '</td>
		</tr>
		<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_BAN_SYMBOLS') . '</td>
		<td><input type="text" name="' . $strHTMLControlName["NAME"] . '[BAN_SYM]" value="' . htmlspecialcharsbx($arSettings['BAN_SYM']) . '"></td>
		</tr>
		<tr>
		<td>' . Loc::getMessage('BT_UT_EAUTOCOMPLETE_SETTING_REP_SYMBOL') . '</td>
		<td>' . SelectBoxFromArray($strHTMLControlName["NAME"] . '[REP_SYM]', self::GetReplaceSymList(true), htmlspecialcharsbx($arSettings['REP_SYM'])) . '&nbsp;<input type="text" name="' . $strHTMLControlName["NAME"] . '[OTHER_REP_SYM]" size="1" maxlength="1" value="' . $arSettings['OTHER_REP_SYM'] . '"></td>
		</tr>
		';
    }
		</tr>
		<?php 
        $displayTypes = CIBlockSectionPropertyLink::getDisplayTypes($arProperty["PROPERTY_TYPE"], $arProperty["USER_TYPE"]);
        if ($displayTypes) {
            ?>
		<tr id="tr_DISPLAY_TYPE" style="display: <?php 
            echo $arProperty['SECTION_PROPERTY'] != 'N' ? 'table-row' : 'none';
            ?>
">
			<td width="40%"><?php 
            echo GetMessage("BT_ADM_IEP_PROP_DISPLAY_TYPE");
            ?>
</td>
			<td>
		<?php 
            echo SelectBoxFromArray('PROPERTY_DISPLAY_TYPE', array("REFERENCE_ID" => array_keys($displayTypes), "REFERENCE" => array_values($displayTypes)), $arProperty["DISPLAY_TYPE"], '', '');
            ?>
			</td>
		</tr>
		<?php 
        }
        ?>
		<tr id="tr_DISPLAY_EXPANDED" style="display: <?php 
        echo $arProperty['SECTION_PROPERTY'] != 'N' ? 'table-row' : 'none';
        ?>
">
			<td width="40%"><label for="PROPERTY_DISPLAY_EXPANDED_Y"><?php 
        echo GetMessage("BT_ADM_IEP_PROP_DISPLAY_EXPANDED");
        ?>
</label></td>
			<td>
	<td><input type="text" name="find_subject" size="47" value="<?php 
echo htmlspecialcharsbx($find_subject);
?>
"><?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("MAIN_F_BODY_TYPE");
?>
</td>
	<td><?php 
$arr = array("reference" => array(GetMessage("MAIN_TEXT"), GetMessage("MAIN_HTML")), "reference_id" => array("text", "html"));
echo SelectBoxFromArray("find_body_type", $arr, htmlspecialcharsbx($find_body_type), GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("MAIN_F_MESSAGE_BODY");
?>
</td>
	<td><input type="text" name="find_body" size="47" value="<?php 
echo htmlspecialcharsbx($find_body);
?>
"><?php 
echo ShowFilterLogicHelp();
?>
</td>
示例#10
0
					<td><input type="text" name="MESSAGE_<?php 
        echo $i;
        ?>
" value="<?php 
        echo $message;
        ?>
" style="width:100%" onchange="jsFormValidatorSettings.UpdateAll();" /></td>
					<td><input type="text" name="VALUE_<?php 
        echo $i;
        ?>
" value="<?php 
        echo $value;
        ?>
" size="16" /></td>
					<td nowrap="nowrap"><?php 
        echo SelectBoxFromArray("FIELD_TYPE_" . $i, CFormAnswer::GetTypeList(), $ftype, "", "onchange=\"FIELD_TYPE_CHANGE(" . $i . "); jsFormValidatorSettings.UpdateAll();\"");
        ?>
</td>
					<td nowrap="nowrap"><input <?php 
        if ($ftype != "text" && $ftype != "textarea" && $ftype != "image" && $ftype != "date" && $ftype != 'email') {
            echo "disabled";
        }
        ?>
 type="text" id="FIELD_WIDTH_<?php 
        echo $i;
        ?>
" name="FIELD_WIDTH_<?php 
        echo $i;
        ?>
" value="<?php 
        echo $width;
示例#11
0
<tr>
	<td><?php 
echo GetMessage("USERTYPE_EDIT_IN_LIST");
?>
:</td>
	<td>
		<?php 
echo SelectBoxFromArray("find_edit_in_list", $arrYN, $find_edit_in_list, GetMessage("MAIN_ALL"), "");
?>
	</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("USERTYPE_IS_SEARCHABLE");
?>
:</td>
	<td>
		<?php 
echo SelectBoxFromArray("find_is_searchable", $arrYN, $find_is_searchable, GetMessage("MAIN_ALL"), "");
?>
	</td>
</tr>
<?
$oFilter->Buttons(array("table_id"=>$sTableID,"url"=>$APPLICATION->GetCurPage(),"form"=>"find_form"));
$oFilter->End();
?>
</form>

<?$lAdmin->DisplayList();?>

<?require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/epilog_admin.php");?>
示例#12
0
 function GetDropDownField($FIELD_NAME, $arDropDown, $VALUE, $PARAM = "")
 {
     if (strlen($PARAM) <= 0) {
         $PARAM = " class=\"inputselect\" ";
     }
     return SelectBoxFromArray("form_dropdown_" . $FIELD_NAME, $arDropDown, $VALUE, "", $PARAM);
 }
示例#13
0
    echo htmlspecialcharsbx($arSites["NAME"]);
    ?>
</option><?php 
}
?>
			</select></td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("rub_f_is_public");
?>
:</td>
		<td>
			<?php 
$arr = array("reference" => array(GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_is_public", $arr, $find_is_public, GetMessage("MAIN_ALL"), "");
?>
		</td>
	</tr>
<?php 
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form"));
$oFilter->End();
?>
</form>


<?php 
$lAdmin->DisplayList();
?>

<?php 
示例#14
0
:</td><td style="text-align: left; width: 75%;"><input type="text" name="OF_IBLOCK_NAME" value="<?php 
                echo $str_OF_IBLOCK_NAME;
                ?>
" style="width: 100%;" /></td></tr>
			<tr><td style="text-align: left; width: 100%;" colspan="2" class="field-name"><input type="radio" value="N" id="OF_CREATE_IBLOCK_TYPE_ID_N" name="OF_CREATE_IBLOCK_TYPE_ID" <?php 
                echo 'N' == $str_OF_CREATE_IBLOCK_TYPE_ID ? 'checked="checked"' : '';
                ?>
 onclick="change_offers_ibtype(this);"><label for="CREATE_OFFERS_TYPE_N"><?php 
                echo GetMessage('IB_E_OF_PR_OLD_IBTYPE');
                ?>
</label></td></tr>
			<tr><td style="text-align: right; width: 25%;" class="field-name"><?php 
                echo GetMessage('IB_E_OF_PR_OFFERS_TYPE');
                ?>
:</td><td style="text-align: left; width: 75%;"><?php 
                echo SelectBoxFromArray('OF_IBLOCK_TYPE_ID', array('REFERENCE' => $arIBlockTypeNameList, 'REFERENCE_ID' => $arIBlockTypeIDList), $str_OF_IBLOCK_TYPE_ID, '', 'N' == $str_OF_CREATE_IBLOCK_TYPE_ID ? '' : 'disabled="disabled"');
                ?>
</td></tr>
			<tr><td style="text-align: left; width: 100%;" colspan="2" class="field-name"><input type="radio" value="Y" id="OF_CREATE_IBLOCK_TYPE_ID_Y" name="OF_CREATE_IBLOCK_TYPE_ID" <?php 
                echo 'Y' == $str_OF_CREATE_IBLOCK_TYPE_ID ? 'checked="checked"' : '';
                ?>
 onclick="change_offers_ibtype(this);"><label for="CREATE_OFFERS_TYPE_Y"><?php 
                echo GetMessage('IB_E_OF_PR_OFFERS_NEW_IBTYPE');
                ?>
</label></td></tr>
			<tr><td style="text-align: right; width: 25%;" class="field-name"><?php 
                echo GetMessage('IB_E_OF_PR_OFFERS_NEWTYPE');
                ?>
:</td><td style="text-align: left; width: 75%;"><input type="text" name="OF_NEW_IBLOCK_TYPE_ID" id="OF_NEW_IBLOCK_TYPE_ID" value="" style="width: 100%;" <?php 
                echo 'Y' == $str_OF_CREATE_IBLOCK_TYPE_ID ? '' : 'disabled="disabled"';
                ?>
示例#15
0
foreach($arGROUPS as $group):
	if($arUsedGroups[$group["ID"]] == true)
		continue;
?>
		<option value="<?php 
echo $group["ID"];
?>
"><?php 
echo $group["NAME"] . " [" . $group["ID"] . "]";
?>
</option>
<?endforeach?>
	</select></td>
		<td>
		<?
		echo SelectBoxFromArray("", $arTasks, "", GetMessage("MAIN_DEFAULT"), 'onchange="taskSelectOnchange(this)"');
		?>
		<div style="display:none">
			<div style="padding:6px 0 6px 0"><?php 
echo GetMessage('SUBORDINATE_GROUPS');
?>
:</div>
			<select name="" multiple size="6">
			<?
			foreach($arGROUPS as $v_gr)
			{
				?><option value="<?php 
echo $v_gr['ID'];
?>
"><? echo $v_gr['NAME'].' ['.$v_gr['ID'].']'?></option><?
			}
示例#16
0
		<input type="text" name="find_name" size="47" value="<?php 
echo htmlspecialcharsbx($find_name);
?>
">
	</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("sender_mailing_chain_adm_field_status");
?>
:</td>
	<td>
		<?php 
$arStatus = \Bitrix\Sender\MailingChainTable::getStatusList();
$arr = array("reference" => array_values($arStatus), "reference_id" => array_keys($arStatus));
echo SelectBoxFromArray("find_status", $arr, $find_status, GetMessage("MAIN_ALL"), "");
?>
	</td>
</tr>
<?php 
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage() . "?MAILING_ID=" . $MAILING_ID, "form" => "find_form"));
$oFilter->End();
?>
</form>

<?php 
//******************************
// Send mailing and show progress
//******************************
if ($_REQUEST['action'] == "send") {
    $canSend = \Bitrix\Sender\MailingChainTable::isReadyToSend($ID);
示例#17
0
</tr>
<tr valign="top">
	<td><?php 
echo GetMessage("VOTE_F_DIAGRAM");
?>
</td>
	<td><?php 
$arr = array("reference" => array(GetMessage("VOTE_YES"), GetMessage("VOTE_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_diagram", $arr, htmlspecialcharsbx($find_diagram), GetMessage("VOTE_ALL"));
?>
</td>
</tr>
<tr valign="top">
	<td><?php 
echo GetMessage("VOTE_F_REQUIRED");
?>
</td>
	<td><?php 
$arr = array("reference" => array(GetMessage("VOTE_YES"), GetMessage("VOTE_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_required", $arr, htmlspecialcharsbx($find_required), GetMessage("VOTE_ALL"));
?>
</td>
</tr>
<?php 
$oFilter->Buttons(array("table_id" => $sTableID, "url" => "/bitrix/admin/vote_question_list.php?lang=" . LANGUAGE_ID . "&VOTE_ID={$VOTE_ID}", "form" => "form1"));
$oFilter->End();
?>
</form>
<?php 
$lAdmin->DisplayList();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
	<td><?php 
echo GetMessage("SEC_IP_LIST_ACTIVE");
?>
</td>
	<td><?php 
echo SelectBoxFromArray("find_active", $arYesNo, htmlspecialcharsbx($find_active), GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("SEC_IP_LIST_ADMIN_SECTION");
?>
</td>
	<td><?php 
echo SelectBoxFromArray("find_admin_section", $arYesNo, htmlspecialcharsbx($find_admin_section), GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("SEC_IP_LIST_SITE_ID");
?>
</td>
	<td><?php 
echo CLang::SelectBox("find_site_id", $find_admin_section, GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr>
	<td><?php 
示例#19
0
	</script>

	<?php 
    $tabControl->BeginNextTab();
    foreach ($arOPTIONS["TAB5"] as $key => $Option) {
        if (!is_array($Option)) {
            if ($key == "ADV_EVENTS_DEFAULT") {
                ?>
				<tr>
					<td width="40%"><?php 
                echo GetMessage("STAT_OPT_ADV_EVENTS_DEFAULT");
                ?>
</td>
					<td nowrap width="60%"><?php 
                $arr = array("reference" => array(GetMessage("STAT_OPT_ADV_EVENTS_SHOW_LINK"), GetMessage("STAT_OPT_ADV_EVENTS_SHOW_LIST"), GetMessage("STAT_OPT_ADV_EVENTS_GROUP_BY_EVENT1"), GetMessage("STAT_OPT_ADV_EVENTS_GROUP_BY_EVENT2")), "reference_id" => array("link", "list", "event1", "event2"));
                echo SelectBoxFromArray("ADV_EVENTS_DEFAULT", $arr, htmlspecialcharsbx($ADV_EVENTS_DEFAULT));
                ?>
</td>
				</tr>
			<?php 
            } else {
                ?>
				<tr class="heading">
					<td valign="top" colspan="2" align="center"><b><?php 
                echo $Option;
                ?>
</b></td>
				</tr>
			<?php 
            }
        } else {
示例#20
0
echo htmlspecialcharsbx($find_subject);
?>
">&nbsp;<?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("POST_F_BODY_TYPE");
?>
:</td>
	<td>
		<?php 
$arr = array("reference" => array(GetMessage("POST_TEXT"), GetMessage("POST_HTML")), "reference_id" => array("text", "html"));
echo SelectBoxFromArray("find_body_type", $arr, $find_body_type, GetMessage("MAIN_ALL"), "");
?>
	</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("POST_F_BODY");
?>
:</td>
	<td><input type="text" name="find_body" size="47" value="<?php 
echo htmlspecialcharsbx($find_body);
?>
"><?php 
echo ShowFilterLogicHelp();
?>
</td>
示例#21
0
				<tr><td style="text-align: right; width: 25%;"><? echo Loc::getMessage('CAT_IBLOCK_OFFERS_NEWTYPE'); ?>:</td><td style="text-align: left; width: 75%;"><input type="text" name="OFFERS_NEWTYPE_<? echo $res["ID"]; ?>" value="" style="width: 98%; margin: 0 1%;" disabled="disabled" /></td></tr>
			</tbody></table></div></td><?
			if (CBXFeatures::IsFeatureEnabled('SaleRecurring'))
			{
				?><td align="center" style="text-align: center;"><input type="hidden" name="IS_CONTENT_<?echo $res["ID"] ?>" id="IS_CONTENT_<?echo $res["ID"] ?>_N" value="N"><input type="checkbox" name="IS_CONTENT_<?echo $res["ID"] ?>" id="IS_CONTENT_<?echo $res["ID"] ?>_Y" onclick="ib_checkFldActivity('<?php 
echo $res['ID'];
?>
', 1)" <?if ('Y' == $res["IS_CONTENT"]) echo "checked"?> value="Y" /></td><?
			}
			else
			{
				?><input type="hidden" name="IS_CONTENT_<?echo $res["ID"] ?>" value="N" id="IS_CONTENT_<?echo $res["ID"] ?>_N"><?
			}
			?><td align="center" style="text-align: center;"><input type="hidden" name="YANDEX_EXPORT_<?echo $res["ID"] ?>" id="YANDEX_EXPORT_<?echo $res["ID"] ?>_N"><input type="checkbox" name="YANDEX_EXPORT_<?echo $res["ID"] ?>" id="YANDEX_EXPORT_<?echo $res["ID"] ?>_Y" <?if ('N' == $res['IS_CATALOG']) echo 'disabled="disabled"';?> <?if ('Y' == $res["YANDEX_EXPORT"]) echo "checked"?> value="Y" /></td>
			<td align="center"><?php 
echo SelectBoxFromArray('VAT_ID_' . $res['ID'], $arVATRef, $res['VAT_ID'], '', 'N' == $res['IS_CATALOG'] ? 'disabled="disabled"' : '');
?>
</td>
		</tr>
		<?
	}
	if (isset($res))
		unset($res);
	?>
</table>
</td></tr>
<?
	if ($USER->IsAdmin())
	{
		if (CBXFeatures::IsFeatureEnabled('SaleRecurring'))
		{
"><?php 
echo InputType("checkbox", "find_id_exact_match", "Y", $find_id_exact_match, false, "", "title='" . GetMessage("AD_EXACT_MATCH") . "'");
?>
&nbsp;<?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("AD_F_LAMP");
?>
:</td>
	<td><?php 
$arr = array("reference" => array(GetMessage("AD_RED"), GetMessage("AD_GREEN")), "reference_id" => array("red", "green"));
echo SelectBoxFromArray("find_lamp", $arr, htmlspecialcharsbx($find_lamp), GetMessage("AD_ALL"));
?>
</td>
</tr>
<tr>
	<td valign="top"><?php 
echo GetMessage("AD_F_STATUS");
?>
:<br><img src="/bitrix/images/advertising/mouse.gif" width="44" height="21" border=0 alt=""></td>
	<td><?php 
$arrStatus = CAdvBanner::GetStatusList();
echo SelectBoxMFromArray("find_status_sid[]", $arrStatus, $find_status_sid, "", false, "3");
?>
</td>
</tr>
<tr>
示例#23
0
		<td>ID:</b></td>
		<td><input type="text" name="filter_id" value="<?php 
echo htmlspecialcharsbx($filter_id);
?>
" size="47"></td>
	</tr>

	<tr>
		<td><?php 
echo GetMessage("LEARNING_ADMIN_GROUPS_ACTIVE");
?>
:</td>
		<td>
			<?php 
$arr = array("reference" => array(GetMessage("LEARNING_YES"), GetMessage("LEARNING_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("filter_active", $arr, htmlspecialcharsex($filter_active), GetMessage('LEARNING_ALL'));
?>
		</td>
	</tr>

	<tr>
		<td><b><?php 
echo GetMessage("LEARNING_ADMIN_GROUPS_CODE");
?>
:</b></td>
		<td align="left">
			<input type="text" name="filter_code" value="<?php 
echo htmlspecialcharsex($filter_code);
?>
" size="30">
		</td>
示例#24
0
?>
:</td>
	<td><?php 
$arr = array("reference" => array(GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id" => array("Y", "N"));
echo SelectBoxFromArray("find_active", $arr, htmlspecialcharsbx($find_active), GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("POST_F_FORMAT");
?>
:</td>
	<td><?php 
$arr = array("reference" => array(GetMessage("POST_TEXT"), GetMessage("POST_HTML")), "reference_id" => array("text", "html"));
echo SelectBoxFromArray("find_format", $arr, htmlspecialcharsbx($find_format), GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr valign="top">
	<td><?php 
echo GetMessage("POST_F_DISTRIBUTION");
?>
:</td>
	<td><?php 
$ref = array();
$ref_id = array();
$rsRubric = CRubric::GetList(array("LID" => "ASC", "SORT" => "ASC", "NAME" => "ASC"), array("ACTIVE" => "Y"));
while ($arRubric = $rsRubric->Fetch()) {
    $ref[] = "[" . $arRubric["ID"] . "] (" . $arRubric["LID"] . ") " . $arRubric["NAME"];
    $ref_id[] = $arRubric["ID"];
示例#25
0
<tr>
	<td><?php 
echo GetMessage("rub_f_list");
?>
:</td>
	<td>
		<?php 
$arr = array();
$arr['reference'][] = GetMessage("SENDER_CONTACT_ADM_FILTER_WITHOUT");
$arr['reference_id'][] = 'NONE';
$listDb = \Bitrix\Sender\ListTable::getList(array('select' => array('REFERENCE' => 'NAME', 'REFERENCE_ID' => 'ID')));
while ($arList = $listDb->fetch()) {
    $arr['reference'][] = $arList['REFERENCE'];
    $arr['reference_id'][] = $arList['REFERENCE_ID'];
}
echo SelectBoxFromArray("find_list", $arr, $find_list, GetMessage("MAIN_ALL"), "");
?>
	</td>
</tr>
<?php 
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form"));
$oFilter->End();
?>
</form>


<?php 
//******************************
// Import addresses from connectors
//******************************
if ($_REQUEST['action'] == "pull") {
示例#26
0
?>
</td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_F_TIMESTAMP").":"?></td>
	<td><?echo CalendarPeriod("find_timestamp_1", htmlspecialcharsbx($find_timestamp_1), "find_timestamp_2", htmlspecialcharsbx($find_timestamp_2), "find_form","Y")?></td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_F_LAST_LOGIN").":"?></td>
	<td><?echo CalendarPeriod("find_last_login_1", htmlspecialcharsbx($find_last_login_1), "find_last_login_2", htmlspecialcharsbx($find_last_login_2), "find_form","Y")?></td>
</tr>
<tr>
	<td><?echo GetMessage("F_ACTIVE")?></td>
	<td><?
		$arr = array("reference"=>array(GetMessage("MAIN_YES"), GetMessage("MAIN_NO")), "reference_id"=>array("Y","N"));
		echo SelectBoxFromArray("find_active", $arr, htmlspecialcharsbx($find_active), GetMessage('MAIN_ALL'));
		?>
	</td>
</tr>
<tr>
	<td><?echo GetMessage("F_LOGIN")?></td>
	<td><input type="text" name="find_login" size="47" value="<?echo htmlspecialcharsbx($find_login)?>"><?php 
echo ShowFilterLogicHelp();
?>
</td>
</tr>
<tr>
	<td><?echo GetMessage("MAIN_F_EMAIL")?></td>
	<td><input type="text" name="find_email" value="<?echo htmlspecialcharsbx($find_email)?>" size="47"><?php 
echo ShowFilterLogicHelp();
?>
?>
</td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("IBP_ADM_XML_ID");
?>
:</td>
		<td><input type="text" name="find_xml_id" value="<?php 
echo htmlspecialcharsbx($find_xml_id);
?>
" size="40"></td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("IBP_ADM_PROPERTY_TYPE");
?>
:</td>
		<td><?php 
echo SelectBoxFromArray("find_property_type", array("reference_id" => array_keys($arPropType), "reference" => array_values($arPropType)), htmlspecialcharsex($find_filtrable), GetMessage('IBLOCK_ALL'));
?>
</td>
	</tr>
<?php 
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage() . '?IBLOCK_ID=' . urlencode($arIBlock["ID"]), "form" => "find_form"));
$oFilter->End();
?>
</form>
<?php 
$lAdmin->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例#28
0
文件: tools.php 项目: nProfessor/Mytb
function CalendarPeriod($sFromName, $sFromVal, $sToName, $sToVal, $sFormName="skform", $show_select="N", $field_select="class=\"typeselect\"", $field_input="class=\"typeinput\"", $size="10")
{
	if(class_exists("CAdminCalendar"))
		return CAdminCalendar::CalendarPeriod($sFromName, $sToName, $sFromVal, $sToVal, ($show_select=="Y"), $size, ($size > 10));

	$arr = array();
	$str = "";
	if ($show_select=="Y")
	{
		$sname = $sFromName."_DAYS_TO_BACK";
		$str = "
<script type=\"text/javascript\">
function ".$sFromName."_SetDate()
{
	var number = document.".$sFormName.".".$sname.".selectedIndex-1;
	document.".$sFormName.".".$sFromName.".disabled = false;
	if (number>=0)
	{
		document.".$sFormName.".".$sFromName.".value = dates[number];
		document.".$sFormName.".".$sFromName.".disabled = true;
	}
}
</script>
";
		global $$sname;
		$value = $$sname;
		if (strlen($value)>0 && $value!="NOT_REF") $ds="disabled";
		?><script type="text/javascript">
			var dates = new Array();
		<?
		for ($i=0; $i<=90; $i++)
		{
			$prev_date = GetTime(time()-86400*$i);
			?>dates[<?php 
echo $i;
?>
]="<?php 
echo $prev_date;
?>
";<?
			if (!is_array($arr["reference"])) $arr["reference"] = array();
			if (!is_array($arr["reference_id"])) $arr["reference_id"] = array();
			$arr["reference"][] = $i." ".GetMessage("TOOLS_DN");
			$arr["reference_id"][] = $i;
		}
		?></script><?
		$str .= SelectBoxFromArray($sname, $arr, $value , "&nbsp;", "onchange=\"".$sFromName."_SetDate()\" ".$field_select);
		$str .= "&nbsp;";
	}
	$str .=
		'<input '.$ds.' '.$field_input.' type="text" name="'.$sFromName.'" id="'.$sFromName.'" size="'.$size.'" value="'.htmlspecialcharsbx($sFromVal).'" /> '."\n".
		Calendar($sFromName, $sFormName, $sFromName, $sToName).' ... '."\n".
		'<input '.$field_input.' type="text" name="'.$sToName.'" id="'.$sToName.'" size="'.$size.'" value="'.htmlspecialcharsbx($sToVal).'" /> '."\n".
		Calendar($sToName, $sFormName, $sFromName, $sToName)."\n";

	return '<span style="white-space: nowrap;">'.$str.'</span>';
}
示例#29
0
	/**
	 * Shows data form in admin part when you edit or add usertype.
	 * @param bool $arUserField
	 * @param string $arHtmlControl
	 * @param bool $bVarsFromForm
	 * @return string
	 */
	function GetSettingsHTML($arUserField = false, $arHtmlControl, $bVarsFromForm)
	{
		if (!CModule::IncludeModule("vote"))
			return '';
		$value = "";
		if($bVarsFromForm)
			$value = $GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_ID"];
		elseif(is_array($arUserField)){
			$value = $arUserField["SETTINGS"]["CHANNEL_ID"];
			$GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] = $arUserField["SETTINGS"]["NOTIFY"];
		}
		$value = (!empty($value) ? intval($value) : "add");
		$db_res = CVoteChannel::GetList($by = "", $order = "", array("ACTIVE" => "Y"), $is_filtered);
		$arVoteChannels = array("reference" => array(GetMessage("V_NEW_CHANNEL")), "reference_id" => array("add"));
		if ($db_res && $res = $db_res->Fetch())
		{
			do
			{
				$arVoteChannels["reference"][] = $res["TITLE"];
				$arVoteChannels["reference_id"][] = $res["ID"];
			} while ($res = $db_res->Fetch());
		}

		ob_start();
?>
	<tr>
		<td><?php 
echo GetMessage("V_CHANNEL_ID_COLON");
?>
</td>
		<td><?php 
echo str_replace("<select", "<select onchange='if(this.value!=\"add\"){BX.hide(BX(\"channel_create\"));BX.show(this.nextSibling);}" . "else{BX(\"channel_create\").style.display=\"\";BX.hide(this.nextSibling);}' ", SelectBoxFromArray($arHtmlControl["NAME"] . "[CHANNEL_ID]", $arVoteChannels, $value));
?>
<a style="margin-left: 1em;" href="" rel="/bitrix/admin/vote_channel_edit.php?ID=#id#" <?
			?>onmousedown="this.href=this.rel.replace('#id#',this.previousSibling.value);"><?php 
echo GetMessage("V_CHANNEL_ID_EDIT");
?>
</a></td>
	</tr>
	<tbody id="channel_create" style="<?if ($value != "add") {?>display:none;<?}?>">
	<tr class="adm-detail-required-field">
		<td class="adm-detail-content-cell-l" width="40%"><?php 
echo GetMessage("V_CHANNEL_ID_TITLE");
?>
</td>
		<td class="adm-detail-content-cell-r" width="60%"><input type="text" name="<?php 
echo $arHtmlControl["NAME"];
?>
[CHANNEL_TITLE]" <?
			?>value="<?php 
echo htmlspecialcharsbx($GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_TITLE"]);
?>
" /></td>
	</tr>
	<tr class="adm-detail-required-field">
		<td class="adm-detail-content-cell-l"><?php 
echo GetMessage("V_CHANNEL_ID_SYMBOLIC_NAME");
?>
</td>
		<td class="adm-detail-content-cell-r"><input type="text" name="<?php 
echo $arHtmlControl["NAME"];
?>
[CHANNEL_SYMBOLIC_NAME]" <?
			?>value="<?php 
echo htmlspecialcharsbx($GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_SYMBOLIC_NAME"]);
?>
" /></td>
	</tr>
	<tr>
		<td class="adm-detail-content-cell-l">&nbsp;</td>
		<td class="adm-detail-content-cell-r"><input type="checkbox" name="<?php 
echo $arHtmlControl["NAME"];
?>
[CHANNEL_USE_CAPTCHA]" <?
			?>id="CHANNEL_USE_CAPTCHA" <?if ($GLOBALS[$arHtmlControl["NAME"]]["CHANNEL_USE_CAPTCHA"] == "Y"){?> checked <?}
			?>value="Y" /> <label for="CHANNEL_USE_CAPTCHA"><?php 
echo GetMessage("V_CHANNEL_ID_USE_CAPTCHA");
?>
</label></td>
	</tr><?
	$db_res = CGroup::GetList($by = "sort", $order = "asc", Array("ADMIN" => "N"));
	while ($group = $db_res->GetNext())
	{
		if($bVarsFromForm)
			$value = $GLOBALS[$arHtmlControl["NAME"]]["GROUP_ID"][$group["ID"]];
		else
			$value = ($group["ID"] == 2 ? 1 : ($group["ID"] == 1 ? 4 : 2));
?>
	<tr>
		<td class="adm-detail-content-cell-l"><?php 
echo $group["NAME"] . ":";
?>
</td>
		<td class="adm-detail-content-cell-r"><?php 
echo SelectBoxFromArray("GROUP_ID[" . $group["ID"] . "]", $GLOBALS["aVotePermissions"], $value);
?>
</td>
	</tr><?
	}

?>
	</tbody>
<?
		if($bVarsFromForm)
		{
			$GLOBALS[$arHtmlControl["NAME"]]['UNIQUE'] = is_array($GLOBALS[$arHtmlControl["NAME"]]['UNIQUE']) ?
				$GLOBALS[$arHtmlControl["NAME"]]['UNIQUE'] : array();
			$uniqType = 0;
			foreach ($GLOBALS[$arHtmlControl["NAME"]]['UNIQUE'] as $res)
				$uniqType |= $res;
		}
		else
		{
			$uniqType = ($arUserField["SETTINGS"]["UNIQUE"] ? $arUserField["SETTINGS"]["UNIQUE"] : 13);
			if (is_array($arUserField["SETTINGS"]["UNIQUE"])) {
				foreach ( $arUserField["SETTINGS"]["UNIQUE"] as $res) {
					$uniqType |= $res; }
				$uniqType += 5;
			}
			$uniqType -=5;
		}
?>
<script language="javascript">
function __utch(show)
{
	if (BX("UNIQUE_TYPE_IP").checked)
		BX.show(BX("DELAY_TYPE"), "");
	else
		BX.hide(BX("DELAY_TYPE"));

	var
		show = BX("UNIQUE_TYPE_USER_ID").checked,
		res = BX("UNIQUE_TYPE_USER_ID_NEW");
	res.disabled = !show;
	if (!!show)
		BX.show(res.parentNode.parentNode, "");
	else
		BX.hide(res.parentNode.parentNode);
}
</script>
	<tr>
		<td class="adm-detail-content-cell-l adm-detail-valign-top" width="40%"><?php 
echo GetMessage("VOTE_NOTIFY");
?>
</td>
		<td class="adm-detail-content-cell-r" width="60%"><?
			$GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] = (
				$GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] != "I" && $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] != "Y" ?
					"N" : $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"]);
			if (IsModuleInstalled("im")){?>
				<?php 
echo InputType("radio", $arHtmlControl["NAME"] . "[NOTIFY]", "I", $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"], false, GetMessage("VOTE_NOTIFY_IM"));
?>
<br /><?
			} else {
				$GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] = ($GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"] == "I" ?
					"N" : $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"]);
			}?>
			<?php 
echo InputType("radio", $arHtmlControl["NAME"] . "[NOTIFY]", "Y", $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"], false, GetMessage("VOTE_NOTIFY_EMAIL"));
?>
<br />
			<?php 
echo InputType("radio", $arHtmlControl["NAME"] . "[NOTIFY]", "N", $GLOBALS[$arHtmlControl["NAME"]]["NOTIFY"], false, GetMessage("VOTE_NOTIFY_N"));
?>
<?
			?></td>
	</tr>
	<tr>
		<td class="adm-detail-content-cell-l adm-detail-valign-top"><?php 
echo GetMessage("V_UNIQUE");
?>
</td>
		<td class="adm-detail-content-cell-r">
			<? if (IsModuleInstalled('statistic')) { ?>
			<input type="checkbox" name="<?php 
echo $arHtmlControl["NAME"];
?>
[UNIQUE][]" id="UNIQUE_TYPE_SESSION" value="1" <?php 
echo $uniqType & 1 ? " checked" : "";
?>
 />
			<label for="UNIQUE_TYPE_SESSION"><?php 
echo GetMessage("V_UNIQUE_SESSION");
?>
</label><br />
			<? } ?>
			<input type="checkbox" name="<?php 
echo $arHtmlControl["NAME"];
?>
[UNIQUE][]" id="UNIQUE_TYPE_COOKIE" value="2" <?php 
echo $uniqType & 2 ? " checked" : "";
?>
 />
			<label for="UNIQUE_TYPE_COOKIE"><?php 
echo GetMessage("V_UNIQUE_COOKIE_ONLY");
?>
</label><br />
			<input type="checkbox" name="<?php 
echo $arHtmlControl["NAME"];
?>
[UNIQUE][]" id="UNIQUE_TYPE_IP" onclick="__utch()" value="4" <?
				?><?php 
echo $uniqType & 4 ? " checked" : "";
?>
 />
			<label for="UNIQUE_TYPE_IP"><?php 
echo GetMessage("V_UNIQUE_IP_ONLY");
?>
</label><br />
			<input type="checkbox" name="<?php 
echo $arHtmlControl["NAME"];
?>
[UNIQUE][]" id="UNIQUE_TYPE_USER_ID" onclick="__utch();" value="8" <?
				?><?php 
echo $uniqType & 8 ? " checked" : "";
?>
 />
			<label for="UNIQUE_TYPE_USER_ID"><?php 
echo GetMessage("V_UNIQUE_USER_ID_ONLY");
?>
</label><br />
		</td>
	</tr>
	<tr>
		<td class="adm-detail-content-cell-l" width="40%">&nbsp;</td>
		<td class="adm-detail-content-cell-r" width="60%"><input type="checkbox" name="<?php 
echo $arHtmlControl["NAME"];
?>
[UNIQUE][]" id="UNIQUE_TYPE_USER_ID_NEW" value="16" <?
			?><?php 
echo $uniqType & 16 ? " checked " : "";
?>
<?
			?><?php 
echo $uniqType & 8 ? "" : " disabled";
?>
 /> <label for="UNIQUE_TYPE_USER_ID_NEW"><?php 
echo GetMessage("V_UNIQUE_USER_ID_NEW");
?>
</label>
		</td>
	</tr>
	<?
		if($bVarsFromForm)
			$value = $GLOBALS[$arHtmlControl["NAME"]]["UNIQUE_IP_DELAY"];
		else
			$value = (is_array($arUserField) ?
				$arUserField["SETTINGS"]["UNIQUE_IP_DELAY"] :
					array("DELAY" => "10", "DELAY_TYPE" => "D"));
		?>
	<tr id="DELAY_TYPE">
		<td class="adm-detail-content-cell-l" width="40%"><?php 
echo GetMessage("V_UNIQUE_IP_DELAY");
?>
</td>
		<td class="adm-detail-content-cell-r" width="60%">
			<input type="text" name="<?php 
echo $arHtmlControl["NAME"];
?>
[UNIQUE_IP_DELAY][DELAY]" value="<?php 
echo htmlspecialcharsbx($value["DELAY"]);
?>
" />
			<?php 
echo SelectBoxFromArray($arHtmlControl["NAME"] . "[UNIQUE_IP_DELAY][DELAY_TYPE]", array("reference_id" => array("S", "M", "H", "D"), "reference" => array(GetMessage("V_SECONDS"), GetMessage("V_MINUTES"), GetMessage("V_HOURS"), GetMessage("V_DAYS"))), $value["DELAY_TYPE"]);
?>
<script type="text/javascript">
BX.ready(function(){
	if (!!document.forms.post_form.MULTIPLE)
		BX.hide(document.forms.post_form.MULTIPLE.parentNode.parentNode);
	__utch();
});
</script>

		</td>
	</tr>
	<?
	return ob_get_clean();
	}
示例#30
0
if ($MAILING_ID > 0) {
    ?>
	<tr>
		<td><?php 
    echo GetMessage("sender_stat_flt_mailing_chain");
    ?>
:</td>
		<td valign="middle">
			<?php 
    $arr = array();
    $mailingChainDb = \Bitrix\Sender\MailingChainTable::getList(array('select' => array('REFERENCE' => 'SUBJECT', 'REFERENCE_ID' => 'ID'), 'filter' => array('MAILING_ID' => $MAILING_ID)));
    while ($arMailingChain = $mailingChainDb->fetch()) {
        $arr['reference'][] = $arMailingChain['REFERENCE'];
        $arr['reference_id'][] = $arMailingChain['REFERENCE_ID'];
    }
    echo SelectBoxFromArray("find_mailing_chain_id", $arr, $ID, false, "");
    ?>
		</td>
	</tr>
	<?php 
}
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage(), "form" => "find_form"));
$oFilter->End();
?>
</form>

<?php 
$lAdmin->DisplayList();
?>

<?php