本文整理汇总了PHP中CAdminViewTabControl::Begin方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminViewTabControl::Begin方法的具体用法?PHP CAdminViewTabControl::Begin怎么用?PHP CAdminViewTabControl::Begin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminViewTabControl
的用法示例。
在下文中一共展示了CAdminViewTabControl::Begin方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ConvertTimeStamp
$date_before_last_month2 = ConvertTimeStamp(AddToTimeStamp(array("MM" => -1, "DD" => -1, "YYYY" => 0, "HH" => 0, "MI" => 0, "SS" => 0), mktime(0, 0, 0, date("n"), 1, date("Y"))));
?>
<script type="text/javascript">
var gdSaleTabControl_<?php
echo $arGadgetParams["RND_STRING"];
?>
= false;
</script><?php
$aTabs = array(array("DIV" => "bx_gd_sale_stats_" . $arGadgetParams["RND_STRING"], "TAB" => GetMessage("GD_ORDERS_TAB_STATS"), "ICON" => "", "TITLE" => "", "ONSELECT" => "gdSaleTabControl_" . $arGadgetParams["RND_STRING"] . ".SelectTab('bx_gd_sale_stats_" . $arGadgetParams["RND_STRING"] . "');"), array("DIV" => "bx_gd_sale_orders_" . $arGadgetParams["RND_STRING"], "TAB" => GetMessage("GD_ORDERS_TAB_ORDERS"), "ICON" => "", "TITLE" => "", "ONSELECT" => "gdSaleTabControl_" . $arGadgetParams["RND_STRING"] . ".SelectTab('bx_gd_sale_orders_" . $arGadgetParams["RND_STRING"] . "');"));
$tabControl = new CAdminViewTabControl("saleTabControl_" . $arGadgetParams["RND_STRING"], $aTabs);
?>
<div class="bx-gadgets-tabs-wrap" id="bx_gd_tabset_sale_<?php
echo $arGadgetParams["RND_STRING"];
?>
"><?php
$tabControl->Begin();
$countTabs = count($aTabs);
for ($i = 0; $i < $countTabs; $i++) {
$tabControl->BeginNextTab();
}
$tabControl->End();
?>
<div class="bx-gadgets-tabs-cont"><?php
$countTab = count($aTabs);
for ($i = 0; $i < $countTab; $i++) {
?>
<div id="<?php
echo $aTabs[$i]["DIV"];
?>
_content" style="display: <?php
echo $i == 0 ? "block" : "none";
示例2: urlencode
echo urlencode(LANGUAGE_ID);
?>
">
<?
$tabControl->Begin();
$tabControl->BeginNextTab();
?>
<tr><td colspan="2">
<?
$aSiteTabs = array(array("DIV" => "opt_common", "TAB" => GetMessage("socserv_sett_common"), 'TITLE' => GetMessage("socserv_sett_common_title"), 'ONSELECT'=>"document.forms['socserv_settings'].siteTabControl_active_tab.value='opt_common'"));
foreach($arSites as $arSite)
$aSiteTabs[] = array("DIV" => "opt_site_".$arSite["ID"], "TAB" => '['.$arSite["ID"].'] '.htmlspecialcharsbx($arSite["NAME"]), 'TITLE' => GetMessage("socserv_sett_site").' ['.$arSite["ID"].'] '.htmlspecialcharsbx($arSite["NAME"]), 'ONSELECT'=>"document.forms['socserv_settings'].siteTabControl_active_tab.value='opt_site_".$arSite["ID"]."'");
$siteTabControl = new CAdminViewTabControl("siteTabControl", $aSiteTabs);
$siteTabControl->Begin();
$arUseOnSites = unserialize(COption::GetOptionString("socialservices", "use_on_sites", ""));
foreach($arSiteList as $site):
$suffix = ($site <> ''? '_bx_site_'.$site:'');
$hash = COption::GetOptionString("socialservices", "twitter_search_hash".$suffix, "#b24");
$twitHashInput = "<input type=\"text\" name=\"twitter_search_hash".$suffix."\" id=\"twitter_search_hash".$suffix."\" size=15 value=\"".htmlspecialcharsbx($hash)."\">";
$siteTabControl->BeginNextTab();
?>
<?if($site <> ''):?>
<table cellpadding="0" cellspacing="0" border="0" class="edit-table">
<tr>
<td width="50%" class="field-name"><label for="use_on_sites<?php
echo $suffix;
?>
示例3: array
$title = $dir;
} else {
$title .= " (" . $dir . ")";
}
}
$arSystemPSActions[] = array("PATH" => $path2SystemPSFiles . $dir, "TITLE" => $title, "DESCRIPTION" => $description, "NEW_FORMAT" => $newFormat);
}
@closedir($handle);
}
$tabControl->BeginNextTab();
?>
<tr>
<td colspan="2">
<?php
$tabControl1 = new CAdminViewTabControl("tabControl1", $aTabs1);
$tabControl1->Begin();
foreach ($arPersonTypeList as $arPersonType) {
$tabControl1->BeginNextTab();
?>
<script language="JavaScript">
<!--
arPropFieldsList[<?php
echo $arPersonType["ID"];
?>
] = new Array();
arPropFieldsNameList[<?php
echo $arPersonType["ID"];
?>
] = new Array();
<?php
$dbOrderProps = CSaleOrderProps::GetList(array("SORT" => "ASC", "NAME" => "ASC"), array("PERSON_TYPE_ID" => $arPersonType["ID"]), false, false, array("ID", "CODE", "NAME", "TYPE", "SORT"));
示例4: GetMessage
echo GetMessage("SONETP_INSTALL_EMAIL");
?>
:</label></td>
<td width="50%"><input type="checkbox" name="install_templates" value="Y" id="id_install_templates" checked></td>
</tr-->
<tr>
<td width="50%" align="right"><label for="id_install_smiles"><?php
echo GetMessage("SONETP_INSTALL_SMILES");
?>
:</label></td>
<td width="50%"><input type="checkbox" name="install_smiles" value="Y" id="id_install_smiles" checked></td>
</tr>
</table>
<br/>
<?php
$arSiteTabControl->Begin();
foreach ($arSites as $arSite) {
$arSiteTabControl->BeginNextTab();
?>
<table class="list-table">
<tr>
<td width="50%" align="right"><?php
echo GetMessage("SONETP_COPY_PUBLIC_FILES");
?>
:</td>
<td><input type="checkbox" name="install_site_id_<?php
echo $arSite["SITE_ID"];
?>
" id="install_site_id_<?php
echo $arSite["SITE_ID"];
?>
示例5: GetMessage
?>
"
name="MAX_UPLOAD_FILES_IN_COMMENTS">
</td>
</tr>
<tr class="heading">
<td colspan="2"><?php
echo GetMessage("TASKS_OPTION_PATHS");
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
$dbSites = CSite::GetList($b = "", $o = "", array("ACTIVE" => "Y"));
$subTabControl->Begin();
foreach ($arSites as $site) {
$subTabControl->BeginNextTab();
?>
<table width="75%" align="center">
<?php
foreach ($arDefaultValues as $key => $value) {
?>
<tr>
<td align="right"><?php
echo GetMessage("TASKS_" . strtoupper($key));
?>
:</td>
<td><input type="text" size="40" value="<?php
echo COption::GetOptionString("tasks", $key, $value, $site["LID"]);
?>
示例6: array
$APPLICATION->IncludeComponent('bitrix:sale.ajax.delivery.calculator', 'input', $arParams);
?>
</td>
</tr>
<?php
$obDeliveryHandlers = ob_get_contents();
ob_end_clean();
/***************************************************************/
if ($bUseDelivery && $bUseDeliveryHandlers) {
$aSubTabs = array(array("DIV" => "delivery", "TAB" => GetMessage('SOE_DELIVERY_TAB'), "ONSELECT" => 'document.forms.forder_edit.DELIVERY_type.value=\'\''), array("DIV" => "delivery_handler", "TAB" => GetMessage('SOE_DELIVERY_HANDLER_TAB'), "ONSELECT" => 'document.forms.forder_edit.DELIVERY_type.value=\'handler\''));
$childTabControl = new CAdminViewTabControl("childTabControl", $aSubTabs);
?>
<tr>
<td colspan="2"><input type="hidden" name="DELIVERY_type" value="" />
<?php
$childTabControl->Begin();
// simple delivery services
$childTabControl->BeginNextTab();
?>
<table width="100%"><tr><?php
echo $obDelivery;
?>
</tr></table>
<?php
// automated delivery services
$childTabControl->BeginNextTab();
?>
<table width="100%"><tr><?php
echo $obDeliveryHandlers;
?>
</tr></table>
示例7: GetMessage
</script><?
?><div style="padding-top: 5px;"><a href="javascript:void(0)" class="bx-action-href" onclick="ShowToAllAccessPopup(arToAllRights);"><?php
echo GetMessage("SONET_LOG_TOALL_RIGHTS_ADD");
?>
</a></div>
</td></tr><?
}
endfor;
?><tr><td colspan="2"> </td></tr><?
}
?><tr>
<td colspan="2"><?
$arChildTabControlSite->Begin();
for($j = 1; $j < $siteCount; $j++)
{
$arChildTabControlSite->BeginNextTab();
?><table cellspacing="7" cellpadding="0" border="0" width="100%"><?
$tmp_count = count($arAllOptions);
for ($i = 0; $i < $tmp_count; $i++):
$Option = $arAllOptions[$i];
$val = COption::GetOptionString("socialnetwork", $Option[0], $Option[2], $siteList[$j]["ID"]);
$type = $Option[3];
if ($type[0] == "select_fields" || $type[0] == "select_properties" || $type[0] == "select_rating"):
if($type[1] == true) // multiple select
$val = unserialize($val);
else
示例8: array
<tr>
<td valign="top" colspan="2">
<?php
$aTabs1 = array();
$aTabs1[] = array("DIV" => "subcat_edit1", "TAB" => GetMessage("C2IT_PRICES"), "TITLE" => GetMessage("C2IT_PRICES_D"));
$aTabs1[] = array("DIV" => "subcat_edit3", "TAB" => GetMessage("C2IT_PARAMS"), "TITLE" => GetMessage("C2IT_PARAMS_D"));
if ($arCatalog["SUBSCRIPTION"] == "Y") {
$aTabs1[] = array("DIV" => "subcat_edit4", "TAB" => GetMessage("C2IT_GROUPS"), "TITLE" => GetMessage("C2IT_GROUPS_D"));
}
$aTabs1[] = array("DIV" => "subcat_edit6", "TAB" => GetMessage("C2IT_DISCOUNTS"), "TITLE" => GetMessage("C2IT_DISCOUNTS_D"));
$aTabs1[] = array("DIV" => "subcat_edit5", "TAB" => GetMessage("C2IT_STORE"), "TITLE" => GetMessage("C2IT_STORE_D"));
if ($bUseStoreControl) {
$aTabs1[] = array("DIV" => "subcat_edit7", "TAB" => GetMessage("C2IT_BAR_CODE"), "TITLE" => GetMessage("C2IT_BAR_CODE_D"));
}
$subtabControl1 = new CAdminViewTabControl("subtabControl1", $aTabs1);
$subtabControl1->Begin();
// Define boundaries
$arProductFilter = array("PRODUCT_ID" => $PRODUCT_ID);
if (!CBXFeatures::IsFeatureEnabled('CatMultiPrice')) {
$arProductFilter['BASE'] = 'Y';
}
$arPriceBoundariesError = array();
$arPriceBoundaries = array();
$dbPrice = CPrice::GetList(array("BASE" => "DESC", "CATALOG_GROUP_ID" => "ASC", "QUANTITY_FROM" => "ASC", "QUANTITY_TO" => "ASC"), $arProductFilter);
while ($arPrice = $dbPrice->Fetch()) {
if ($arPrice["BASE"] == "Y") {
$arPriceBoundaries[] = array("FROM" => intval($arPrice["QUANTITY_FROM"]), "TO" => intval($arPrice["QUANTITY_TO"]));
if (intval($arPrice["QUANTITY_FROM"]) > intval($arPrice["QUANTITY_TO"]) && intval($arPrice["QUANTITY_TO"]) != 0) {
$arPriceBoundariesError[] = str_replace("#RIGHT#", $arPrice["QUANTITY_TO"], str_replace("#LEFT#", $arPrice["QUANTITY_FROM"], GetMessage("C2IT_BOUND_LR")));
}
} else {
示例9: unserialize
<tr>
<td colspan="2">
<?php
$reminder = COption::GetOptionString("sale", "pay_reminder", "");
$arReminder = unserialize($reminder);
$arSubscribeProd = array();
$subscribeProd = COption::GetOptionString("sale", "subscribe_prod", "");
if (strlen($subscribeProd) > 0) {
$arSubscribeProd = unserialize($subscribeProd);
}
$aTabs2 = array();
foreach ($siteList as $val) {
$aTabs2[] = array("DIV" => "reminder" . $val["ID"], "TAB" => "[" . $val["ID"] . "] " . $val["NAME"], "TITLE" => "[" . $val["ID"] . "] " . $val["NAME"]);
}
$tabControl2 = new CAdminViewTabControl("tabControl2", $aTabs2);
$tabControl2->Begin();
foreach ($siteList as $val) {
$arStores = array();
if (CModule::IncludeModule("catalog")) {
$dbStore = CCatalogStore::GetList(array("SORT" => "DESC", "ID" => "ASC"), array("ACTIVE" => "Y", "SHIPPING_CENTER" => "Y", "+SITE_ID" => $val["ID"]));
while ($arStore = $dbStore->GetNext()) {
$arStores[] = $arStore;
}
}
$tabControl2->BeginNextTab();
?>
<table cellspacing="5" cellpadding="0" border="0" width="100%" align="center">
<!-- default store -->
<?php
$deductStore = COption::GetOptionString("sale", "deduct_store_id", "", $val["ID"]);
示例10: array
</td>
</tr>
<tr id="bx-cal-opt-sites-pathes-tr" <?php
if ($commonForSites) {
echo 'style="display:none;"';
}
?>
>
<td colSpan="2" align="center">
<?php
$aSubTabs = array();
foreach ($arSites as $siteId => $siteName) {
$aSubTabs[] = array("DIV" => "opt_cal_path_" . $siteId, "TAB" => $siteName, 'TITLE' => $siteName);
}
$arChildTabControlUserCommon = new CAdminViewTabControl("childTabControlUserCommon", $aSubTabs);
$arChildTabControlUserCommon->Begin();
?>
<?php
foreach ($arSites as $siteId => $siteName) {
?>
<?php
$arChildTabControlUserCommon->BeginNextTab();
?>
<table>
<?php
foreach ($arPathes as $pathName) {
$val = $SET['pathes'][$siteId][$pathName];
if (!isset($val) || empty($val)) {
$val = $SET[$pathName];
}
?>
示例11: array
if ($arRatingsTmp['AUTHORITY'] == 'Y')
$arRatingsTmp['NAME'] = '<span class="required">[A]</span> '.$arRatingsTmp['NAME'];
$aTabs2[] = array("DIV"=>"rating_".$i, "TAB" => $arRatingsTmp['NAME'], "TITLE" => GetMessage('RATING_TAB_INFO'));
$arRatings[$arRatingsTmp['ID']] = $arRatingsTmp;
$i++;
}
if (is_array($arRatings) && !empty($arRatings))
{
$ratingWeightType = COption::GetOptionString("main", "rating_weight_type", "auto");
$authorityRatingId = CRatings::GetAuthorityRating();
$arAuthorityUserProp = CRatings::GetRatingUserPropEx($authorityRatingId, $ID);
$viewTabControl = new CAdminViewTabControl("tabControlRating", $aTabs2);
$viewTabControl->Begin();
foreach($arRatings as $ratingId => $arRating)
{
$arRatingResult = CRatings::GetRatingResult($ratingId, $ID);
$arRatingUserProp = CRatings::GetRatingUserPropEx($ratingId, $ID);
if ($ratingId == $authorityRatingId && $arRatingUserProp['BONUS'] == 0)
$arRatingUserProp['BONUS'] = COption::GetOptionString("main", "rating_start_authority", 3);
$viewTabControl->BeginNextTab();
?>
<table cellspacing="7" cellpadding="0" border="0" width="100%" class="edit-table">
<? if ($USER->CanDoOperation('edit_ratings') && ($selfEdit || $ID!=$uid)): ?>
<tr>
<td class="field-name" width="40%"><?php
示例12: reset
echo CAdminMessage::ShowMessage(GetMessage("AD_GD_NOT_INSTALLED"));
} else {
reset($arShow);
$aTabs = array();
$i = 0;
foreach ($arShow as $ctype) {
$counter_type = strtoupper($ctype);
if (${"sum_" . strtolower($counter_type)} > 0) {
$i++;
$aTabs[] = array("DIV" => "ttab" . $i, "TAB" => GetMessage("AD_" . $counter_type . "_DIAGRAM"), "TITLE" => GetMessage("AD_CONTRACT_DIAGRAM_TITLE"));
}
}
reset($arShow);
$viewTabContract = new CAdminViewTabControl("viewTabContract", $aTabs);
if (count($aTabs) > 0) {
$viewTabContract->Begin();
}
foreach ($arShow as $ctype) {
$counter_type = strtoupper($ctype);
if (${"sum_" . strtolower($counter_type)} > 0) {
?>
<?php
$viewTabContract->BeginNextTab();
?>
<div class="graph">
<table cellspacing=0 cellpadding=2 class="graph">
<tr>
<td valign="top"><img class="graph" src="/bitrix/admin/adv_diagram.php?<?php
echo GetFilterParams($FilterArr);
?>
&diagram_type=<?php
示例13: reset
echo CAdminMessage::ShowMessage(GetMessage("AD_GD_NOT_INSTALLED") . "<br>");
} else {
reset($arShow);
$aTabs = array();
$i = 0;
foreach ($arShow as $ctype) {
$counter_type = strtoupper($ctype);
if (${"sum_" . strtolower($counter_type)} > 0) {
$i++;
$aTabs[] = array("DIV" => "tttab" . $i, "TAB" => GetMessage("AD_" . $counter_type . "_DIAGRAM"), "TITLE" => GetMessage("AD_GROUP_DIAGRAM_TITLE"));
}
}
reset($arShow);
$viewTabGroup = new CAdminViewTabControl("viewTabGroup", $aTabs);
if (count($aTabs) > 0) {
$viewTabGroup->Begin();
}
foreach ($arShow as $ctype) {
$counter_type = strtoupper($ctype);
if (in_array($ctype, $arShow) && ${"sum_" . $ctype} > 0) {
$viewTabGroup->BeginNextTab();
?>
<div class="graph">
<table cellspacing=0 cellpadding=0 class="graph">
<tr>
<td valign="top"><img class="graph" src="/bitrix/admin/adv_diagram.php?<?php
echo GetFilterParams($FilterArr);
?>
&diagram_type=<?php
echo $diagram_type;
?>
示例14: date
: <?php
echo date('r');
?>
</td>
</tr>
<tr class="heading">
<td colspan="2"><?php
echo GetMessage('INTR_OPTION_PATHS');
?>
</td>
</tr>
<tr>
<td colspan="2">
<?php
$childTabControl_1->Begin();
foreach ($arSites as $SITE_ID => $SITE) {
$childTabControl_1->BeginNextTab();
?>
<table width="100%" align="center">
<tr>
<td valign="top" align="right"><?php
echo GetMessage('INTR_OPTION_PATHS_USER');
?>
: </td>
<td><input type="text" name="path_user_<?php
echo $SITE_ID;
?>
" value="<?php
echo htmlspecialcharsbx($path_user[$SITE_ID]);
?>