当前位置: 首页>>代码示例>>PHP>>正文


PHP CAdminMessage::Show方法代码示例

本文整理汇总了PHP中CAdminMessage::Show方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminMessage::Show方法的具体用法?PHP CAdminMessage::Show怎么用?PHP CAdminMessage::Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAdminMessage的用法示例。


在下文中一共展示了CAdminMessage::Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: outProgress

 public static function outProgress($msg, $val, $total)
 {
     $val = (int) $val;
     $total = (int) $total;
     self::$needEol = true;
     if (self::canOutAsAdminMessage()) {
         if (self::canOutProgressBar()) {
             $mess = array("MESSAGE" => $msg, "DETAILS" => "#PROGRESS_BAR#", "HTML" => true, "TYPE" => "PROGRESS", "PROGRESS_TOTAL" => $total, "PROGRESS_VALUE" => $val);
         } else {
             $mess = array("MESSAGE" => $msg . ' ' . round($val / $total * 100) . '%', 'HTML' => true, 'TYPE' => 'OK');
         }
         $m = new \CAdminMessage($mess);
         echo '<div class="migration-bar">' . $m->Show() . '</div>';
     } elseif (self::canOutAsHtml()) {
         $msg = self::prepareToHtml($msg);
         echo '<div class="migration-bar">' . "{$msg} {$val}/{$total}" . '</div>';
     } else {
         $msg = self::prepareToConsole($msg);
         fwrite(STDOUT, "\r{$msg} {$val}/{$total}");
     }
 }
开发者ID:andreyryabin,项目名称:sprint.migration,代码行数:21,代码来源:Out.php

示例2: intval

<?php

require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/support/include.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/support/prolog.php";
IncludeModuleLangFile(__FILE__);
if (!check_bitrix_sessid("b_sessid")) {
    die;
}
if (isset($_REQUEST["action"]) && $_REQUEST["action"] === 'reindex' && isset($_REQUEST["data"]) && is_array($_REQUEST["data"])) {
    $interval = intval($_REQUEST["data"]["interval"]);
    $firstID = $_REQUEST["data"]["firstID"];
    $lastID = CSupportSearch::reindexAllTickets($firstID, $interval ?: 10);
    // build progress bar
    $maxID = CTicket::getMaxId();
    $progressBar = new CAdminMessage(array("DETAILS" => str_replace(array('#LAST_ID#', '#MAX_ID#'), array($lastID, $maxID), GetMessage('SUP_SEARCH_NDX_PROGRESS_BAR')), "HTML" => true, "TYPE" => "PROGRESS", "PROGRESS_TOTAL" => $maxID, "PROGRESS_VALUE" => $lastID));
    $progressBarHtml = $progressBar->Show();
    echo CUtil::PhpToJSObject(array('LAST_ID' => $lastID, 'BAR' => $progressBarHtml));
} elseif ($_REQUEST['MY_AJAX'] == 'restartAgentsAJAX') {
    CTicketReminder::StartAgent();
    echo json_encode(array("ALL_OK" => "OK"));
} else {
    echo '{};';
}
开发者ID:Satariall,项目名称:izurit,代码行数:24,代码来源:ticket_messages_reindex.php

示例3: array

if ($ID > 0) {
    $aMenu[] = array("SEPARATOR" => "Y");
    $aMenu[] = array("TEXT" => GetMessage("sender_mailing_edit_add"), "TITLE" => GetMessage("sender_mailing_edit_add_title"), "LINK" => "sender_mailing_edit.php?lang=" . LANG, "ICON" => "btn_new");
    $aMenu[] = array("TEXT" => GetMessage("sender_mailing_edit_del"), "TITLE" => GetMessage("sender_mailing_edit_del_title"), "LINK" => "javascript:if(confirm('" . GetMessage("sender_mailing_edit_del_confirm") . "'))window.location='sender_mailing_admin.php?ID=" . $ID . "&action=delete&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . "';", "ICON" => "btn_delete");
    $aMenu[] = array("SEPARATOR" => "Y");
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
?>

<?php 
if ($_REQUEST["mess"] == "ok" && $ID > 0) {
    CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("sender_mailing_edit_saved"), "TYPE" => "OK"));
}
if ($message) {
    echo $message->Show();
} elseif ($rubric->LAST_ERROR != "") {
    CAdminMessage::ShowMessage($rubric->LAST_ERROR);
}
?>

<form method="POST" Action="<?php 
echo $APPLICATION->GetCurPage();
?>
" name="post_form">
<?php 
$tabControl->Begin();
$tabControl->BeginNextTab();
?>
	<tr>
		<td colspan="2">
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:mailing_edit.php

示例4: ShowMessage

	function ShowMessage($message)
	{
		if(!empty($message))
		{
			$m = new CAdminMessage($message);
			echo $m->Show();
		}
	}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:8,代码来源:admin_lib.php

示例5: ShowErrors

 static function ShowErrors()
 {
     global $APPLICATION;
     if (self::$canNotRead) {
         $aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("SUP_BACK_TO_ADMIN"), "LINK" => self::LIST_URL . "?lang=" . LANG, "TITLE" => GetMessage("SUP_BACK_TO_ADMIN")));
         $context = new CAdminContextMenu($aContext);
         $context->Show();
         CAdminMessage::ShowMessage(GetMessage("SUP_TIMETABLE_NOT_FOUND"));
         return true;
     }
     if ($e = $APPLICATION->GetException()) {
         self::$isErrors = true;
         $errorMessage = new CAdminMessage(GetMessage("SUP_ERROR"), $e);
         echo $errorMessage->Show();
     }
     return false;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:17,代码来源:ticket_holidays_edit.php

示例6: Header

    }
    Header('Content-type: application/json; charset=' . LANG_CHARSET);
    echo \Bitrix\Main\Web\Json::encode($res);
} elseif (isset($_REQUEST['get'])) {
    switch ($_REQUEST['get']) {
        case 'original_text_form':
            $arSettings = $engine->getSettings();
            $arDomains = \CSeoUtils::getDomainsList();
            foreach ($arDomains as $key => $domain) {
                if (!isset($arSettings['SITES'][$domain['DOMAIN']])) {
                    unset($arDomains[$key]);
                }
            }
            if (count($arDomains) <= 0) {
                $msg = new CAdminMessage(array('MESSAGE' => Loc::getMessage('SEO_YANDEX_ERROR'), 'HTML' => 'Y'));
                echo $msg->Show();
            } else {
                ?>
<div id="seo_original_text_form_form">
<form name="seo_original_text_form" style="padding:0;margin: 0;">
	<b><?php 
                echo Loc::getMessage('SEO_YANDEX_DOMAIN');
                ?>
: </b><select name="domain">
<?php 
                foreach ($arDomains as $domain) {
                    $domainView = \CBXPunycode::ToUnicode($domain['DOMAIN'], $errors = null);
                    $domainEnc = Converter::getHtmlConverter()->encode($domain['DOMAIN']);
                    $domainViewEnc = Converter::getHtmlConverter()->encode($domainView);
                    ?>
		<option value="<?php 
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:seo_yandex.php

示例7: array

require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php';
$contextMenuItems = array(array('ICON' => 'btn_list', 'TEXT' => Loc::getMessage('BX_SALE_DISCOUNT_COUPONT_CONTEXT_COUPON_LIST'), 'LINK' => 'sale_discount_coupons.php?lang=' . LANGUAGE_ID . GetFilterParams('filter_')));
if (!$subWindow && !$readOnly && $couponID > 0) {
    if (!$copy) {
        $contextMenuItems[] = array('SEPARATOR' => 'Y');
        $contextMenuItems[] = array('ICON' => 'btn_new', 'TEXT' => Loc::getMessage('BX_SALE_DISCOUNT_COUPONT_CONTEXT_NEW'), 'LINK' => 'sale_discount_coupon_edit.php?lang=' . LANGUAGE_ID . GetFilterParams('filter_'));
        $contextMenuItems[] = array('ICON' => 'btn_copy', 'TEXT' => Loc::getMessage('BX_SALE_DISCOUNT_COUPONT_CONTEXT_COPY'), 'LINK' => 'sale_discount_coupon_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $couponID . '&action=copy' . GetFilterParams('filter_'));
        $contextMenuItems[] = array('ICON' => 'btn_delete', 'TEXT' => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_CONTEXT_DELETE'), 'LINK' => "javascript:if(confirm('" . CUtil::JSEscape(Loc::getMessage('BX_SALE_DISCOUNT_COUPON_CONTEXT_DELETE_CONFIRM')) . "')) window.location='/bitrix/admin/sale_discount_coupons.php?lang=" . LANGUAGE_ID . "&ID=" . $couponID . "&action=delete&" . bitrix_sessid_get() . "';", 'WARNING' => 'Y');
    }
}
$contextMenu = new CAdminContextMenu($contextMenuItems);
$contextMenu->Show();
unset($contextMenu, $contextMenuItems);
if (!empty($errors)) {
    $errorMessage = new CAdminMessage(array('DETAILS' => implode('<br>', $errors), 'TYPE' => 'ERROR', 'MESSAGE' => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_ERR_SAVE'), 'HTML' => true));
    echo $errorMessage->Show();
    unset($errorMessage);
}
$selectFields = array();
if (!$multiCoupons) {
    $defaultValues = array('DISCOUNT_ID' => '', 'COUPON' => '', 'ACTIVE' => 'Y', 'ACTIVE_FROM' => null, 'ACTIVE_TO' => null, 'TYPE' => Internals\DiscountCouponTable::TYPE_ONE_ORDER, 'MAX_USE' => 0, 'USE_COUNT' => 0, 'USER_ID' => 0, 'DESCRIPTION' => '');
    $selectFields = array('ID', 'DISCOUNT_NAME' => 'DISCOUNT.NAME');
    $selectFields = array_merge($selectFields, array_keys($defaultValues));
} else {
    $defaultValues = array('COUNT' => '', array('DISCOUNT_ID' => '', 'ACTIVE_FROM' => null, 'ACTIVE_TO' => null, 'TYPE' => Internals\DiscountCouponTable::TYPE_ONE_ORDER, 'MAX_USE' => 0));
}
$coupon = array();
if (!$multiCoupons && $couponID > 0) {
    $couponIterator = Internals\DiscountCouponTable::getList(array('select' => $selectFields, 'filter' => array('=ID' => $couponID)));
    if (!($coupon = $couponIterator->fetch())) {
        $couponID = 0;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:discount_coupon_edit.php

示例8: saveStep

 public function saveStep()
 {
     if (!isset($_SESSION[$this->sessID]) || !is_array($_SESSION[$this->sessID])) {
         $_SESSION[$this->sessID] = array();
     }
     if ($this->errorCounter > 0) {
         if (!empty($this->stepErrors)) {
             $this->errors = $this->stepErrors;
         }
         $_SESSION[$this->sessID]['ERRORS_COUNTER'] = $this->errorCounter;
     }
     $messageParams = array('MESSAGE' => '', 'PROGRESS_TOTAL' => $this->allCounter, 'PROGRESS_VALUE' => $this->allOperationCounter, 'TYPE' => 'PROGRESS', 'DETAILS' => str_replace(array('#ALL#', '#COUNT#'), array($this->allCounter, $this->allOperationCounter), $this->progressTemplate), 'HTML' => true);
     if (!$this->finishOperation) {
         if ($this->maxExecutionTime > 2 * (time() - $this->startOperationTime)) {
             $this->maxOperationCounter = $this->maxOperationCounter * 2;
         }
     }
     $message = new CAdminMessage($messageParams);
     return array('sessID' => $this->sessID, 'maxExecutionTime' => $this->maxExecutionTime, 'maxOperationCounter' => $this->maxOperationCounter, 'lastID' => $this->lastID, 'allCounter' => $this->allCounter, 'allOperationCounter' => $this->allOperationCounter, 'errorCounter' => $this->errorCounter, 'errors' => !empty($this->stepErrors) ? '<p>' . implode('</p><p>', $this->stepErrors) . '</p>' : '', 'finishOperation' => $this->finishOperation, 'message' => $message->Show());
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:20,代码来源:step_operations.php

示例9: OnAdminListDisplayHandler

 public static function OnAdminListDisplayHandler(&$list)
 {
     $strCurPage = $GLOBALS['APPLICATION']->GetCurPage();
     $bElemPage = $strCurPage == '/bitrix/admin/iblock_element_admin.php' || $strCurPage == '/bitrix/admin/cat_product_admin.php';
     $bSectPage = $strCurPage == '/bitrix/admin/iblock_section_admin.php' || $strCurPage == '/bitrix/admin/cat_section_admin.php';
     $bMixPage = $strCurPage == '/bitrix/admin/iblock_list_admin.php';
     $bRightPage = $bElemPage || $bSectPage || $bMixPage;
     if ($bRightPage && !empty($list->arActions)) {
         CJSCore::Init(array('asd_iblock'));
         $strSomeScripts = '<script type="text/javascript">sListTable = \'' . $list->table_id . '\';</script>';
         $list->arActions['asd_checkbox_manager'] = array('type' => 'html', 'value' => $strSomeScripts);
     }
     if ($bMixPage || $strCurPage == '/bitrix/admin/iblock_element_admin.php' || $strCurPage == '/bitrix/admin/iblock_section_admin.php') {
         $list->context->additional_items[] = array('TEXT' => GetMessage('ASD_IBLOCK_SETT_SECT_MODE'), 'TITLE' => GetMessage('ASD_IBLOCK_SETT_SECT_MODE_TITLE'), 'GLOBAL_ICON' => 'adm-menu-setting', 'ONCLICK' => "location.href='" . htmlspecialcharsbx($GLOBALS['APPLICATION']->GetCurPageParam('action=asd_reverse&' . bitrix_sessid_get(), array('action'))) . "'");
     }
     if ($bRightPage && CModule::IncludeModule('iblock')) {
         if (strlen(CASDiblock::$error)) {
             $message = new CAdminMessage(array('TYPE' => 'ERROR', 'MESSAGE' => CASDiblock::$error));
             echo $message->Show();
         }
         $lAdmin = new CAdminList($list->table_id, $list->sort);
         $IBLOCK_ID = intval($_REQUEST['IBLOCK_ID']);
         $find_section = intval($_REQUEST['find_section_section']);
         if ($find_section < 0) {
             $find_section = 0;
         }
         $boolSectionCopy = CASDIblockRights::IsSectionSectionCreate($IBLOCK_ID, $find_section);
         $boolElementCopy = CASDIblockRights::IsSectionElementCreate($IBLOCK_ID, $find_section);
         $copyMessageId = 'ASD_ACTION_POPUP_COPY';
         $copyContextMessageId = 'ASD_ACTION_COPY';
         $moveContextMessageId = 'ASD_ACTION_MOVE';
         if (CModule::IncludeModule('catalog')) {
             $productIBlock = CCatalog::GetList(array(), array('PRODUCT_IBLOCK_ID' => $IBLOCK_ID), false, false, array('IBLOCK_ID'))->Fetch();
             if (!empty($productIBlock)) {
                 $copyMessageId = 'ASD_ACTION_POPUP_COPY_WITHOUT_SKU';
                 $copyContextMessageId = 'ASD_ACTION_COPY_WITHOUT_SKU';
                 $moveContextMessageId = 'ASD_ACTION_MOVE_WITHOUT_SKU';
             }
             unset($productIBlock);
         }
         if ($bElemPage) {
             if ($boolElementCopy) {
                 foreach ($list->aRows as $id => $v) {
                     $arnewActions = array();
                     foreach ($v->aActions as $i => $act) {
                         $arnewActions[] = $act;
                         if ($act['ICON'] == 'copy') {
                             $arnewActions[] = array('ICON' => 'copy', 'TEXT' => GetMessage($copyMessageId), 'ACTION' => $lAdmin->ActionDoGroup($v->id, 'asd_copy_in_list', '&type=' . urlencode($_REQUEST['type']) . '&lang=' . LANGUAGE_ID . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=' . $find_section));
                         }
                     }
                     $v->aActions = $arnewActions;
                 }
             }
         } elseif ($bSectPage) {
             if ($boolSectionCopy) {
                 foreach ($list->aRows as $id => $v) {
                     $arnewActions = array();
                     foreach ($v->aActions as $i => $act) {
                         $arnewActions[] = $act;
                         if ($act['ICON'] == 'edit') {
                             $arnewActions[] = array('ICON' => 'copy', 'TEXT' => GetMessage('ASD_ACTION_POPUP_COPY'), 'ACTION' => $lAdmin->ActionDoGroup($v->id, 'asd_copy_in_list', '&type=' . urlencode($_REQUEST['type']) . '&lang=' . LANGUAGE_ID . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=' . $find_section));
                         }
                     }
                     $v->aActions = $arnewActions;
                 }
             }
         } else {
             foreach ($list->aRows as $id => $v) {
                 $strPrefix = substr($v->id, 0, 1);
                 if ($strPrefix == 'E') {
                     if ($boolElementCopy) {
                         $arnewActions = array();
                         foreach ($v->aActions as $i => $act) {
                             $arnewActions[] = $act;
                             if ($act['ICON'] == 'copy') {
                                 $arnewActions[] = array('ICON' => 'copy', 'TEXT' => GetMessage($copyMessageId), 'ACTION' => $lAdmin->ActionDoGroup($v->id, 'asd_copy_in_list', '&type=' . urlencode($_REQUEST['type']) . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=' . $find_section));
                             }
                         }
                         $v->aActions = $arnewActions;
                     }
                 } elseif ($strPrefix == 'S') {
                     if ($boolSectionCopy) {
                         $arnewActions = array();
                         foreach ($v->aActions as $i => $act) {
                             $arnewActions[] = $act;
                             if ($act['ICON'] == 'edit') {
                                 $arnewActions[] = array('ICON' => 'copy', 'TEXT' => GetMessage('ASD_ACTION_POPUP_COPY'), 'ACTION' => $lAdmin->ActionDoGroup($v->id, 'asd_copy_in_list', '&type=' . urlencode($_REQUEST['type']) . '&lang=' . LANGUAGE_ID . '&IBLOCK_ID=' . $IBLOCK_ID . '&find_section_section=' . $find_section));
                             }
                         }
                         $v->aActions = $arnewActions;
                     }
                 }
             }
         }
         $arIBtypes = array();
         $rsIBtype = CIBlockType::GetList();
         while ($arIBtype = $rsIBtype->Fetch()) {
             if ($arIBTypeLang = CIBlockType::GetByIDLang($arIBtype['ID'], LANGUAGE_ID)) {
                 $arIBtypes[$arIBTypeLang['IBLOCK_TYPE_ID']] = $arIBTypeLang['NAME'];
             }
//.........这里部分代码省略.........
开发者ID:Hawkart,项目名称:megatv,代码行数:101,代码来源:iblock_interface.php

示例10: array

	if($str_IS_CUSTOM)
		$aMenu[] = array(
			"TEXT"=>GetMessage("HK_DELETE"),
			"TITLE"=>GetMessage("HK_DELETE_TITLE"),
			"LINK"=>"javascript:if(confirm('".GetMessage("HK_DEL_CONFIRM")."')) window.location='hot_keys_list.php?ID=".$ID."&action=delete&lang=".LANG."&".freetrix_sessid_get()."';",
			"ICON"=>"btn_delete",
		);
}
$context = new CAdminContextMenu($aMenu);
$context->Show();

if($_GET["applied"]=="ok")
	CAdminMessage::ShowMessage(array("MESSAGE"=>GetMessage("HK_EDIT_SUCCESS"), "TYPE"=>"OK"));

if($errMess)
	echo $errMess->Show();

$aTabs = array(
	array("DIV" => "edit1", "TAB" => GetMessage("HK_EDIT_TAB"), "TITLE"=>GetMessage("HK_EDIT_TAB_TITLE")),
);
$tabControl = new CAdminTabControl("tabControl", $aTabs);


?>

<form method="POST" action="<?php 
echo $APPLICATION->GetCurPage();
?>
" name="hkform">
<?php 
echo freetrix_sessid_post();
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:hot_keys_edit.php

示例11: array

?>

<?php 
$aMenu = array();
$aMenu[] = array("TEXT" => str_replace("#TID#", $TICKET_ID, GetMessage("SUP_TICKET_EDIT")), "LINK" => "/bitrix/admin/ticket_edit.php?lang=" . LANGUAGE_ID . "&ID=" . $TICKET_ID);
if (intval($arTicket["MESSAGES"]) > 1) {
    $aMenu[] = array("SEPARATOR" => "Y");
    $aMenu[] = array("TEXT" => GetMessage("SUP_DELETE_MESSAGE"), "LINK" => "javascript:if(confirm('" . GetMessage("SUP_DELETE_MESSAGE_CONFIRM") . "')) window.location='/bitrix/admin/ticket_edit.php?ID=" . $TICKET_ID . "&mdel_id=" . $ID . "&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . "&set_default=Y';", "WARNING" => "Y");
}
//echo ShowSubMenu($aMenu);
$context = new CAdminContextMenu($aMenu);
$context->Show();
//echo ShowError($strError);
//echo ShowNote($strNote);
if ($strError) {
    echo $strError->Show();
}
/***************************************************************************
								HTML форма
****************************************************************************/
?>
<form name="form1" method="POST" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?ID=<?php 
echo $ID;
?>
&TICKET_ID=<?php 
echo $TICKET_ID;
?>
&lang=<?php 
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:ticket_message_edit.php

示例12: CAdminMessage

// Page header
$APPLICATION->SetTitle(GetMessage("SALE_REPORT_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
// <editor-fold defaultstate="collapsed" desc="--------- Page output ---------">
if ($errorMessage) {
    $errAdmMessage = new CAdminMessage(array("DETAILS" => $errorMessage, "TYPE" => "ERROR", "MESSAGE" => GetMessage('SALE_REPORT_ERROR_GETREPORTLIST'), "HTML" => true));
    echo $errAdmMessage->Show();
} else {
    ?>
	<?php 
    if ($nReports == 0) {
        ?>

		<?php 
        $arMessageNoReps = new CAdminMessage(array('MESSAGE' => GetMessage('SALE_REPORT_EMPTY_LIST'), 'TYPE' => 'OK'));
        echo $arMessageNoReps->Show();
        ?>

		<form action="" method="POST">
			<input type="hidden" name="CREATE_DEFAULT" value="1" />
			<input class="adm-btn-save" type="submit" value="<?php 
        echo GetMessage('SALE_REPORT_CREATE_DEFAULT');
        ?>
" />
		</form>

	<?php 
    } else {
        ?>
	<?php 
        if ($needDisplayUpdate14_5_2message) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:report.php

示例13: GetFilterParams

    $arDDMenu[] = array("TEXT" => "<b>" . Loc::getMessage('SOPEN_4NEW_PROMT') . "</b>", "ACTION" => false);
    foreach ($personTypes as $row) {
        $arDDMenu[] = array('TEXT' => "[{$row['ID']}] {$row['NAME']} ({$row['LID']})", 'ACTION' => "window.location = 'sale_order_props_edit.php?lang=" . LANG . "&PERSON_TYPE_ID={$row['ID']}';");
    }
    $aMenu[] = array("TEXT" => Loc::getMessage('SOPEN_NEW_PROPS'), "ICON" => "btn_new", "MENU" => $arDDMenu);
    $aMenu[] = array("TEXT" => Loc::getMessage('SOPEN_DELETE_PROPS'), "LINK" => "javascript:if(confirm('" . Loc::getMessage('SOPEN_DELETE_PROPS_CONFIRM') . "')) window.location='/bitrix/admin/sale_order_props.php?action=delete&ID[]=" . $propertyId . "&lang=" . LANG . "&" . bitrix_sessid_get() . "#tb';", "ICON" => "btn_delete");
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if ($errors) {
    $message = '';
    foreach ($errors as $v) {
        $message .= $v . '<br>';
    }
    $m = new CAdminMessage($message);
    echo $m->Show();
}
?>

<form method="POST" action="<?php 
echo $APPLICATION->GetCurPage();
?>
?lang=<?php 
echo LANG;
?>
&PERSON_TYPE_ID=<?php 
echo $personTypeId;
echo GetFilterParams("filter_", false);
?>
" name="form1" id="form1" enctype="multipart/form-data">
	<script type="text/javascript">function reloadForm(){document.getElementById('form1').submit();}</script>
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:order_props_edit.php

示例14: BeginNote

                        if (file_exists($_SERVER['DOCUMENT_ROOT'] . $strSetupFileName) && is_file($_SERVER['DOCUMENT_ROOT'] . $strSetupFileName)) {
                            if ($APPLICATION->GetFileAccessPermission($strSetupFileName) >= "R") {
                                echo "<p>" . GetMessage("CES_EXPORT_FILE") . " <a href=\"" . htmlspecialcharsbx($strSetupFileName) . "\">" . htmlspecialcharsex($strSetupFileName) . "</a></p>";
                            }
                        }
                    }
                }
                unset($_SESSION[$_SESSION['BX_EXP_TMP_ID'][$strKey]]);
                unset($_SESSION['BX_EXP_TMP_ID'][$strKey]);
            }
        }
    }
}
if (!empty($cronErrors)) {
    $cronMessage = new CAdminMessage(array('MESSAGE' => GetMessage('CES_CRON_AGENT_ERRORS'), 'DETAILS' => implode('<br>', $cronErrors), 'TYPE' => 'OK', 'HTML' => true));
    echo $cronMessage->Show();
    unset($cronMessage);
}
$lAdmin->DisplayList();
echo BeginNote();
echo GetMessage("export_setup_cat");
?>
 <?php 
echo CATALOG_PATH2EXPORTS;
?>
<br><br>
	<?php 
echo GetMessage("CES_NOTES1");
?>
<br><br>
	<?php 
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:export_setup.php

示例15: array

        if (!$boolCopy) {
            $aMenu[] = array("TEXT" => GetMessage("BT_CAT_DISC_SAVE_EDIT_CONT_NAME_COPY"), "TITLE" => GetMessage("BT_CAT_DISC_SAVE_EDIT_CONT_TITLE_COPY"), "LINK" => "/bitrix/admin/cat_discsave_edit.php?ID=" . $ID . "&action=copy&lang=" . urlencode(LANGUAGE_ID), "ICON" => "btn_copy");
            $aMenu[] = array("TEXT" => GetMessage("BT_CAT_DISC_SAVE_EDIT_CONT_NAME_DELETE"), "TITLE" => GetMessage("BT_CAT_DISC_SAVE_EDIT_CONT_TITLE_DELETE"), "LINK" => "javascript:if(confirm('" . GetMessage("BT_CAT_DISC_SAVE_EDIT_CONT_CONF_DELETE") . "'))window.location='/bitrix/admin/cat_discsave_admin.php?ID=" . $ID . "&action=delete&lang=" . urlencode(LANGUAGE_ID) . "&" . bitrix_sessid_get() . "';", "ICON" => "btn_delete");
        }
    }
}
$context = new CAdminContextMenu($aMenu);
$context->Show();
if ($_REQUEST["mess"] == "ok" && $ID > 0) {
    CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("BT_CAT_DISC_SAVE_EDIT_MESS_OK2"), "TYPE" => "OK"));
}
$obMessages = false;
if ($bVarsFromForm) {
    if ($ex = $APPLICATION->GetException()) {
        $obMessages = new CAdminMessage(GetMessage('BT_CAT_DISC_SAVE_EDIT_ERR_SAVE2'), $ex);
        echo $obMessages->Show();
    }
}
?>

<?php 
$arSiteList = array();
$rsSites = CSite::GetList($by = 'sort', $order = 'asc');
while ($arSite = $rsSites->Fetch()) {
    $arSiteList[$arSite['LID']] = '(' . $arSite['LID'] . ') ' . $arSite['NAME'];
}
$arCurrencyList = array();
$rsCurrencies = CCurrency::GetList($by2 = 'sort', $order2 = 'asc');
while ($arCurrency = $rsCurrencies->Fetch()) {
    $arCurrencyList[$arCurrency['CURRENCY']] = $arCurrency['CURRENCY'];
}
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_discsave_edit.php


注:本文中的CAdminMessage::Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。