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


PHP CAdminResult::GetNext方法代码示例

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


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

示例1: CXDILFScheme

                break;
            case "deactivate":
            case "activate":
                $cData = new CXDILFScheme();
                $cData->Update($ID, array("ACTIVE" => $action == "deactivate" ? "N" : "Y"));
                break;
            default:
                break;
        }
    }
}
$arHeaders = array(array("id" => "ID", "content" => GetMessage("LFP_SCHEME_LIST_ID"), "sort" => "ID", "align" => "right", "default" => true), array("id" => "NAME", "content" => GetMessage("LFP_SCHEME_LIST_NAME"), "sort" => "NAME", "align" => "left", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("LFP_SCHEME_LIST_ACTIVE"), "sort" => "ACTIVE", "align" => "left", "default" => true), array("id" => "SORT", "content" => GetMessage("LFP_SCHEME_LIST_SORT"), "sort" => "SORT", "align" => "left", "default" => true), array("id" => "LID", "content" => GetMessage("LFP_SCHEME_LIST_LID"), "sort" => "LID", "align" => "left", "default" => true), array("id" => "TYPE", "content" => GetMessage("LFP_SCHEME_LIST_TYPE"), "sort" => "TYPE", "align" => "left", "default" => true));
$lAdmin->AddHeaders($arHeaders);
$rsData = CXDILFScheme::GetList(array($by => $order));
$rsData = new CAdminResult($rsData, $sTableID);
while (is_array($arRes = $rsData->GetNext())) {
    $row =& $lAdmin->AddRow($arRes["ID"], $arRes);
    $row->AddInputField("NAME", array("size" => 20));
    $row->AddViewField("NAME", '<a href="xdi_lf_scheme_edit.php?ID=' . $arRes["ID"] . '&amp;lang=' . LANG . '">' . $arRes["NAME"] . '</a>');
    $row->AddEditField("LID", CLang::SelectBox("FIELDS[" . $arRes["ID"] . "][LID]", $arRes["LID"]));
    $row->AddInputField("SORT", array("size" => 20));
    $row->AddCheckField("ACTIVE");
    $row->AddViewField("ID", '<a href="xdi_lf_scheme_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $arRes["ID"] . '">' . $arRes["ID"] . '</a>');
    $row->AddViewField("TYPE", GetMessage("LFP_SCHEME_LIST_" . $arRes["TYPE"]));
    $arActions = array(array("ICON" => "edit", "DEFAULT" => true, "TEXT" => GetMessage("LFP_SCHEME_LIST_EDIT"), "ACTION" => $lAdmin->ActionRedirect('xdi_lf_scheme_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $arRes["ID"])));
    $arActions[] = array("SEPARATOR" => "Y");
    if ($arRes["ACTIVE"] === "Y") {
        $arActions[] = array("TEXT" => GetMessage("LFP_SCHEME_LIST_DEACTIVATE"), "ACTION" => "if(confirm('" . GetMessage("LFP_SCHEME_LIST_DEACTIVATE_CONF") . "')) " . $lAdmin->ActionDoGroup($arRes["ID"], "deactivate"));
    } else {
        $arActions[] = array("TEXT" => GetMessage("LFP_SCHEME_LIST_ACTIVATE"), "ACTION" => $lAdmin->ActionDoGroup($arRes["ID"], "activate"));
    }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:lf_scheme_list.php

示例2: TxtToHtml

	array("id"=>"PERSONAL_PHONE", 	"content"=>GetMessage("PERSONAL_PHONE"), "sort"=>"personal_phone"),
	array("id"=>"PERSONAL_MOBILE", 	"content"=>GetMessage("PERSONAL_MOBILE"), "sort"=>"personal_mobile"),
	array("id"=>"PERSONAL_CITY", 		"content"=>GetMessage("PERSONAL_CITY"), "sort"=>"personal_city"),
	array("id"=>"PERSONAL_STREET", 	"content"=>GetMessage("PERSONAL_STREET"), "sort"=>"personal_street"),
	array("id"=>"WORK_COMPANY", 		"content"=>GetMessage("WORK_COMPANY"), "sort"=>"work_company"),
	array("id"=>"WORK_DEPARTMENT", 	"content"=>GetMessage("WORK_DEPARTMENT"), "sort"=>"work_department"),
	array("id"=>"WORK_POSITION", 		"content"=>GetMessage("WORK_POSITION"), "sort"=>"work_position"),
	array("id"=>"WORK_WWW", 			"content"=>GetMessage("WORK_WWW"), "sort"=>"work_www"),
	array("id"=>"WORK_PHONE", 		"content"=>GetMessage("WORK_PHONE"), "sort"=>"work_phone"),
	array("id"=>"WORK_CITY", 		"content"=>GetMessage("WORK_CITY"), "sort"=>"work_city"),
	array("id"=>"XML_ID", 			"content"=>GetMessage("XML_ID"), "sort"=>"external_id"),
	array("id"=>"EXTERNAL_AUTH_ID",	"content"=>GetMessage("EXTERNAL_AUTH_ID")),
));


while($arRes = $rsData->GetNext())
{
	$f_ID = $arRes['ID'];
	$row =& $lAdmin->AddRow($f_ID, $arRes);
	$row->AddViewField("ID", $f_ID);
	$row->AddCheckField("ACTIVE", false);
	$row->AddViewField("LOGIN", "<a href=\"javascript:SetValue('".$f_ID."');\" title=\"".GetMessage("MAIN_CHANGE")."\">".$arRes["LOGIN"]."</a>");
	$row->AddViewField("NAME", $arRes["NAME"]);
	$row->AddViewField("LAST_NAME", $arRes["LAST_NAME"]);
	$row->AddViewField("EMAIL", TxtToHtml($arRes["EMAIL"]));
	$row->AddViewField("PERSONAL_PROFESSION", $arRes[""]);
	$row->AddViewField("PERSONAL_WWW", TxtToHtml($arRes["PERSONAL_WWW"]));
	$row->AddViewField("PERSONAL_ICQ", $arRes["PERSONAL_ICQ"]);
	$row->AddViewField("PERSONAL_GENDER", $arRes["PERSONAL_GENDER"]);
	$row->AddViewField("PERSONAL_PHONE", $arRes["PERSONAL_PHONE"]);
	$row->AddViewField("PERSONAL_MOBILE", $arRes["PERSONAL_MOBILE"]);
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:user_search.php

示例3: htmlspecialcharsEx

while ($arCur = $dbCur->Fetch()) {
    $arCurrency[$arCur["CURRENCY"]] = htmlspecialcharsEx($arCur["FULL_NAME"]);
    if (in_array($arCur["CURRENCY"], $arCurUsed)) {
        foreach ($arPrices as $v) {
            $arHeaders[] = array("id" => $v . "_" . $arCur["CURRENCY"], "content" => GetMessage("SALE_" . $v, array("#CURRENCY#" => htmlspecialcharsEx($arCur["FULL_NAME"]))), "sort" => $v . "_" . $arCur["CURRENCY"], "default" => true, "align" => "right");
        }
    }
}
$lAdmin->AddHeaders($arHeaders);
$arVisibleColumns = $lAdmin->GetVisibleHeaderColumns();
$dbResult = new CDBResult();
$dbResult->InitFromArray($arResult);
$dbResult = new CAdminResult($dbResult, $sTableID);
$dbResult->NavStart();
$lAdmin->NavText($dbResult->GetNavPrint(""));
while ($arResult = $dbResult->GetNext()) {
    $row =& $lAdmin->AddRow($arResult["PRODUCT_ID"], $arResult);
    $row->AddViewField("PRODUCT_ID", $arResult["PRODUCT_ID"]);
    $row->AddViewField("NAME", $arResult["NAME"]);
    $row->AddViewField("COUNT", $arResult["COUNT"]);
    $row->AddViewField("ORDER_COUNT", $arResult["ORDER_COUNT"]);
    $row->AddViewField("QUANTITY", $arResult["QUANTITY"]);
    $row->AddViewField("ORDER_QUANTITY", $arResult["ORDER_QUANTITY"]);
    $row->AddViewField("BASKET_QUANTITY", $arResult["BASKET_QUANTITY"]);
    $row->AddViewField("PAYED", $arResult["PAYED"]);
    if (IntVal($arResult["ORDER_COUNT"]) > 0) {
        $row->AddViewField("PAYED_PROC", roundEx($arResult["PAYED"] * 100 / $arResult["ORDER_COUNT"], 0));
        $row->AddViewField("ALLOW_DELIVERY_PROC", roundEx($arResult["ALLOW_DELIVERY"] * 100 / $arResult["ORDER_COUNT"], 0));
    } else {
        $row->AddViewField("PAYED_PROC", 0);
        $row->AddViewField("ALLOW_DELIVERY_PROC", 0);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:stat_products.php

示例4: CAdminList

$lAdmin = new CAdminList($sTableID, $oSort);
$lAdmin->InitFilter($arFilterFields);
$arFilter = array("IBLOCK_TYPE_ID" => $IBLOCK_TYPE_ID, "CHECK_PERMISSIONS" => "Y", "MIN_PERMISSION" => "R");
$arHeader = array();
$arHeader[] = array("id" => "ID", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_ID"), "sort" => "ID", "align" => "right", "default" => true);
$arHeader[] = array("id" => "IBLOCK_TYPE_ID", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_IBLOCK_TYPE_ID"), "sort" => "IBLOCK_TYPE_ID", "default" => true);
$arHeader[] = array("id" => "NAME", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_NAME"), "sort" => "NAME", "default" => true);
$arHeader[] = array("id" => "ACTIVE", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_ACTIVE"), "sort" => "ACTIVE");
$arHeader[] = array("id" => "XML_ID", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_XML_ID"), "sort" => "XML_ID");
$arHeader[] = array("id" => "CODE", "content" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_HEAD_CODE"), "sort" => "CODE");
$lAdmin->AddHeaders($arHeader);
$rsIBlocks = CIBlock::GetList(array($by => $order), $arFilter);
$rsIBlocks = new CAdminResult($rsIBlocks, $sTableID);
$rsIBlocks->NavStart();
$lAdmin->NavText($rsIBlocks->GetNavPrint(GetMessage("BX_MOD_CATALOG_ADMIN_CIS_NAV")));
while ($arRes = $rsIBlocks->GetNext()) {
    $row =& $lAdmin->AddRow($arRes["ID"], $arRes);
    $row->AddViewField("NAME", $arRes["NAME"] . "<input type=hidden name='n" . $arRes["ID"] . "' id='name_" . $arRes["ID"] . "' value='" . CUtil::JSEscape(htmlspecialcharsbx($arRes["NAME"])) . "'>");
    $row->AddViewField("IBLOCK_TYPE_ID", $arRes["IBLOCK_TYPE_ID"]);
    $row->AddCheckField("ACTIVE", false);
    $row->AddViewField("XML_ID", $arRes["XML_ID"]);
    $row->AddViewField("CODE", $arRes["CODE"]);
    $row->AddActions(array(array("DEFAULT" => "Y", "TEXT" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_SELECT"), "ACTION" => "javascript:SelEl('" . CUtil::JSEscape($arRes["ID"]) . "', '" . CUtil::JSEscape($arRes["NAME"]) . "')")));
}
$lAdmin->AddFooter(array(array("title" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_MAIN_ADMIN_LIST_SELECTED"), "value" => $rsIBlocks->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
if ($boolMultiSelect) {
    $lAdmin->AddGroupActionTable(array(array("action" => "SelAll()", "value" => "select", "type" => "button", "name" => GetMessage("BX_MOD_CATALOG_ADMIN_CIS_SELECT"))), array("disable_action_target" => true));
}
$lAdmin->AddAdminContextMenu(array(), false);
$lAdmin->CheckListMode();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_popup_admin.php";
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:cat_iblock_search.php

示例5: GetMessage

        echo "<p>" . GetMessage("PERFMON_EXPLAIN_F_OPTIMIZER") . ": " . $arPlan["OPTIMIZER"] . "</p>";
        echo "<p>" . GetMessage("PERFMON_EXPLAIN_F_COST") . ": " . $arPlan["POSITION"] . "</p>";
    }
    $lAdmin->EndPrologContent();
} else {
    $rsData = new CDBResult();
    $rsData->InitFromArray(array());
    $lAdmin->BeginPrologContent();
    $message = new CAdminMessage(array("MESSAGE" => GetMessage("PERFMON_EXPLAIN_SQL_ERROR"), "TYPE" => "ERROR"));
    echo $message->Show();
    $lAdmin->EndPrologContent();
}
$Comment = "";
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
while ($arRes = $rsData->GetNext(true, "f_")) {
    if (array_key_exists("DEPTH", $arRes)) {
        $arRes["OPERATION"] = str_repeat("&nbsp;&nbsp;", $arRes["DEPTH"]) . $arRes["OPERATION"];
    }
    if (array_key_exists("select_type", $arRes)) {
        $arRes["select_type"] = $arRes["id"] . " " . $arRes["select_type"];
    }
    $row =& $lAdmin->AddRow($arRes["ID"], $arRes);
    if (array_key_exists("Comment", $arRes)) {
        $Comment .= $arRes["Comment"] . "\n";
    }
}
if ($Comment) {
    $lAdmin->BeginEpilogContent();
    $message = new CAdminMessage(array("MESSAGE" => $Comment, "TYPE" => "OK"));
    echo $message->Show();
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:perfmon_explain.php

示例6: switch

            continue;
        }
        switch ($_REQUEST['action']) {
            case "delete":
                \Xpage\Seofilter\PropertyTable::delete($ID);
                break;
        }
    }
}
$obGroups = \Xpage\Seofilter\PropertyTable::getList(['order' => ['ID' => 'ASC'], 'select' => ['ID', 'TITLE', 'SORT', 'PROPERTY_ID', 'PROPERTY_NAME' => 'PROPERTY.NAME']]);
$obGroups = new CAdminResult($obGroups, $listTableId);
$obGroups->NavStart();
$adminList->NavText($obGroups->GetNavPrint("Разделы"));
$colHeaders = [["id" => 'ID', "content" => 'ID', "sort" => 1, "default" => true], ["id" => 'TITLE', "content" => 'TITLE', "sort" => 2, "default" => true], ["id" => 'SORT', "content" => 'SORT', "sort" => 3, "default" => true], ["id" => 'PROPERTY_NAME', "content" => 'PROPERTY_NAME', "sort" => 4, "default" => true]];
$adminList->AddHeaders($colHeaders);
$visibleHeaderColumns = $adminList->GetVisibleHeaderColumns();
$arUsersCache = [];
while ($arRes = $obGroups->GetNext()) {
    $row =& $adminList->AddRow($arRes["ID"], $arRes);
    $arActions = [["ICON" => "delete", "TEXT" => "Удалить", "ACTION" => $adminList->ActionDoGroup($arRes["ID"], "delete")], ["ICON" => "edit", "TEXT" => "Редактировать", "ACTION" => $adminList->ActionRedirect("seofilter_property_edit.php?ID=" . $arRes["ID"] . "&lang=" . LANGUAGE_ID), "DEFAULT" => true], ["ICON" => "", "TEXT" => "Замена", "ACTION" => $adminList->ActionRedirect("seofilter_property_values_edit.php?ID=" . $arRes["PROPERTY_ID"] . "&lang=" . LANGUAGE_ID)]];
    $row->AddActions($arActions);
}
$adminList->AddFooter([["title" => "Всего", "value" => $obGroups->SelectedRowsCount()], ["counter" => true, "title" => "Отмечено", "value" => "0"]]);
$adminList->AddGroupActionTable(["delete" => "Удалить"]);
$aContext = [["TEXT" => GetMessage("MAIN_ADD"), "LINK" => "seofilter_property_edit.php", "TITLE" => GetMessage("POST_ADD_TITLE"), "ICON" => "btn_new"]];
$adminList->AddAdminContextMenu($aContext);
$adminList->CheckListMode();
$APPLICATION->SetTitle("Свойства сеофильтра");
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$adminList->DisplayList();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
开发者ID:HannibalLecktor,项目名称:alfa74,代码行数:31,代码来源:seofilter_property.php

示例7: CAdminResult

                break;
        }
    }
}
$rsData = CSupportUserGroup::GetList(array($by => $order), $arFilter);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart(50);
$lAdmin->NavText($rsData->GetNavPrint(GetMessage('SUP_GL_PAGES')));
$arHeaders = array();
$arHeaders[] = array('id' => 'ID', 'content' => 'ID', 'default' => true, 'sort' => 'ID');
$arHeaders[] = array('id' => 'NAME', 'content' => GetMessage('SUP_GL_NAME'), 'default' => true, 'sort' => 'NAME');
$arHeaders[] = array('id' => 'SORT', 'content' => GetMessage('SUP_GL_SORT'), 'default' => true, 'sort' => 'SORT');
$arHeaders[] = array('id' => 'XML_ID', 'content' => GetMessage('SUP_GL_XML_ID'), 'default' => false, 'sort' => 'XML_ID');
$arHeaders[] = array('id' => 'IS_TEAM_GROUP', 'content' => GetMessage('SUP_GL_IS_TEAM_GROUP'), 'default' => true, 'sort' => 'IS_TEAM_GROUP');
$lAdmin->AddHeaders($arHeaders);
while ($arGroup = $rsData->GetNext()) {
    $row =& $lAdmin->AddRow($arGroup['ID'], $arGroup);
    $row->AddViewField('NAME', '<a href="' . $EDIT_URL . '?lang=' . LANGUAGE_ID . '&amp;ID=' . $arGroup['ID'] . '">' . $arGroup['NAME'] . '</a>');
    $row->AddInputField('XML_ID');
    $row->AddInputField('SORT', array('size' => '5'));
    $row->AddCheckField('IS_TEAM_GROUP');
    $arActions = array();
    $arActions[] = array('ICON' => 'edit', 'DEFAULT' => 'Y', 'TEXT' => GetMessage('SUP_GL_EDIT'), 'ACTION' => $lAdmin->ActionRedirect($EDIT_URL . '?lang=' . LANGUAGE_ID . '&ID=' . $arGroup['ID']));
    $arActions[] = array("SEPARATOR" => true);
    $arActions[] = array('ICON' => 'delete', 'TEXT' => GetMessage('SUP_GL_DELETE'), 'ACTION' => 'if(confirm(\'' . GetMessage('SUP_GL_DELETE_CONFIRMATION') . '\')) ' . $lAdmin->ActionDoGroup($arGroup['ID'], 'delete'));
    $row->AddActions($arActions);
}
$lAdmin->AddFooter(array(array('title' => GetMessage('MAIN_ADMIN_LIST_SELECTED'), 'value' => $rsData->SelectedRowsCount()), array('counter' => true, 'title' => GetMessage('MAIN_ADMIN_LIST_CHECKED'), 'value' => '0')));
$lAdmin->AddGroupActionTable(array('delete' => GetMessage('MAIN_ADMIN_LIST_DELETE')));
$aContext = array(array('ICON' => 'btn_new', 'TEXT' => GetMessage('SUP_GL_ADD'), 'LINK' => $EDIT_URL . '?lang=' . LANG, 'TITLE' => GetMessage('SUP_GL_ADD')));
$lAdmin->AddAdminContextMenu($aContext);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:ticket_group_list.php

示例8: CAdminResult

         $arCacheFuser[] = $arBasket["FUSER_ID"];
         CSaleBasket::UpdateBasketPrices($arBasket["FUSER_ID"], $arBasket["LID"]);
     }
 }
 $dbBasketList = \Bitrix\Sale\Internals\BasketTable::getList(array('order' => array_merge(array("SET_PARENT_ID" => "DESC", "TYPE" => "DESC"), $arBasketSort), 'filter' => $arBasketFilter));
 $dbBasketList = new CAdminResult($dbBasketList, $sTableID_tab4);
 $dbBasketList->NavStart();
 $lAdmin_tab4->NavText($dbBasketList->GetNavPrint(GetMessage('BUYER_BASKET_BASKET')));
 $BasketHeader = array(array("id" => "DATE_INSERT", "content" => GetMessage("BUYER_BH_DATE_INSERT"), "sort" => "DATE_INSERT", "default" => true), array("id" => "NAME", "content" => GetMessage("BUYER_BH_NAME"), "sort" => "NAME", "default" => true), array("id" => "DELAY", "content" => GetMessage("BUYER_BH_DELAY"), "sort" => "DELAY", "default" => true), array("id" => "PRICE", "content" => GetMessage("BUYER_BH_PRICE"), "sort" => "PRICE", "default" => true), array("id" => "QUANTITY", "content" => GetMessage("BUYER_BH_QUANTITY"), "sort" => "QUANTITY", "default" => true));
 if (count($arSites) > 1) {
     $BasketHeader[] = array("id" => "LID", "content" => GetMessage("BUYER_BH_LID"), "sort" => "LID", "default" => true);
 }
 $lAdmin_tab4->AddHeaders($BasketHeader);
 $arSetData = array();
 $arBasketData = array();
 while ($arBasket = $dbBasketList->GetNext()) {
     if (CSaleBasketHelper::isSetItem($arBasket)) {
         $arSetData[$arBasket["SET_PARENT_ID"]][] = $arBasket;
         continue;
     }
     $arBasketData[] = $arBasket;
 }
 foreach ($arBasketData as $arBasket) {
     $row =& $lAdmin_tab4->AddRow($arBasket["PRODUCT_ID"], $arBasket, '', '');
     $status = "";
     if ($arBasket["DELAY"] == "N" && $arBasket["CAN_BUY"] == "Y") {
         $status = GetMessage("BUYER_B_STATUS_ADD");
     }
     if ($arBasket["DELAY"] == "Y" && $arBasket["CAN_BUY"] == "Y") {
         $status = GetMessage("BUYER_B_STATUS_DELAY");
     }
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:buyers_profile.php

示例9: CAdminResult

    $arFilter["<=CREATED"] = $find_created_to;
}
$myData = \Softbalance\Callback\CallbackTable::getList(array('filter' => $arFilter, 'order' => $arOrder));
$myData = new CAdminResult($myData, $listTableId);
$myData->NavStart();
$lAdmin->NavText($myData->GetNavPrint(GetMessage("MY_STAT_ADMIN_NAV")));
$cols = \Softbalance\Callback\CallbackTable::getMap();
$colHeaders = array();
foreach ($cols as $colId => $col) {
    $colHeaders[] = array("id" => $colId, "content" => $col["title"], "sort" => $colId, "default" => true);
}
$lAdmin->AddHeaders($colHeaders);
$visibleHeaderColumns = $lAdmin->GetVisibleHeaderColumns();
$arUsersCache = array();
$status = array("new" => GetMessage("SB_CALLBACK_STATUS_NEW"), "dialing" => GetMessage("SB_CALLBACK_STATUS_DIALING"), "completed" => GetMessage("SB_CALLBACK_STATUS_COMPLETED"));
while ($arRes = $myData->GetNext()) {
    $arRes["STATUS"] = $status[$arRes["STATUS"]];
    $row =& $lAdmin->AddRow($arRes["ID"], $arRes);
    $StatusHTML = '<select name="FIELDS[' . $arRes["ID"] . '][STATUS]">';
    foreach ($status as $key => $value) {
        $selected = "";
        if ($key == $arRes["~STATUS"]) {
            $selected = "selected";
        }
        $StatusHTML .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>';
    }
    $StatusHTML .= '</select>';
    $row->AddEditField("STATUS", $StatusHTML);
    $row->AddViewField("ID", $arRes["ID"]);
    $row->AddInputField("NAME", array("SIZE" => "30"));
    $row->AddViewField("CREATED", CDatabase::FormatDate($f_DATETIME, "YYYY-MM-DD HH:MI:SS", CSite::GetDateFormat("FULL")));
开发者ID:ASDAFF,项目名称:callback.form,代码行数:31,代码来源:list.php

示例10: array

$rsData->NavStart(50);
// установка строки навигации
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("MAIL_LOG_NAVIGATION")));
$arHeaders = array();
$arHeaders[] = array("id" => "DATE_INSERT", "content" => GetMessage("MAIL_LOG_TIME"), "default" => true, "sort" => "date_insert");
$arHeaders[] = array("id" => "MESSAGE", "content" => GetMessage("MAIL_LOG_TEXT"), "default" => true, "sort" => "message");
$arHeaders[] = array("id" => "MAILBOX_NAME", "content" => GetMessage("MAIL_LOG_MBOX"), "default" => true, "sort" => "mailbox_name");
if ($find_show_filt == "Y") {
    $arHeaders[] = array("id" => "FILTER_NAME", "content" => GetMessage("MAIL_LOG_RULE"), "default" => true, "sort" => "filter_name");
}
if ($find_show_mess == "Y") {
    $arHeaders[] = array("id" => "MESSAGE_SUBJECT", "content" => GetMessage("MAIL_LOG_MSG"), "default" => true, "sort" => "message_subject");
}
$lAdmin->AddHeaders($arHeaders);
// построение списка
while ($arRes = $rsData->GetNext(true, false)) {
    $arRes = CMailLog::ConvertRow($arRes);
    $row =& $lAdmin->AddRow($f_ID, $arRes);
    //print_r($arRes);
    if ($arRes["STATUS_GOOD"] == "Y") {
        if (strpos($arRes["MESSAGE_TEXT"], "&gt;") === 0) {
            $str = '<span style="color:green">' . $arRes["MESSAGE_TEXT"] . '</span>';
        } elseif (strpos($arRes["MESSAGE_TEXT"], "&lt;") === 0) {
            $str = '<span style="color:blue">' . $arRes["MESSAGE_TEXT"] . '</span>';
        } else {
            $str = $arRes["MESSAGE_TEXT"];
        }
    } else {
        $str = '<span style="color:red">' . $arRes["MESSAGE_TEXT"] . '</span>';
    }
    $row->AddViewField("MESSAGE", $str);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:mail_log.php

示例11: array

$arHeaders[] = array('id' => 'DATE_CREATE', 'content' => GetMessage('SUP_CL_DATE_CREATE'), 'default' => false, 'sort' => 'DATE_CREATE');
$arHeaders[] = array('id' => 'ACTIVE', 'content' => GetMessage('SUP_CL_ACTIVE'), 'default' => true, 'sort' => 'ACTIVE');
$arHeaders[] = array('id' => 'ACTIVE_FROM', 'content' => GetMessage('SUP_CL_ACTIVE_FROM'), 'default' => true, 'sort' => 'ACTIVE_FROM');
$arHeaders[] = array('id' => 'ACTIVE_TO', 'content' => GetMessage('SUP_CL_ACTIVE_TO'), 'default' => true, 'sort' => 'ACTIVE_TO');
$arHeaders[] = array('id' => 'CREATED_USER_ID', 'content' => GetMessage('SUP_CL_CREATED_USER_ID'), 'default' => false, 'sort' => 'CREATED_USER_ID');
$arHeaders[] = array('id' => 'CREATED_LOGIN', 'content' => GetMessage('SUP_CL_CREATED_LOGIN'), 'default' => false, 'sort' => 'CREATED_LOGIN');
$arHeaders[] = array('id' => 'CREATED_FIRST_NAME', 'content' => GetMessage('SUP_CL_CREATED_FIRST_NAME'), 'default' => false, 'sort' => 'CREATED_FIRST_NAME');
$arHeaders[] = array('id' => 'CREATED_LAST_NAME', 'content' => GetMessage('SUP_CL_CREATED_LAST_NAME'), 'default' => false, 'sort' => 'CREATED_LAST_NAME');
$arHeaders[] = array('id' => 'UPDATED_USER_ID', 'content' => GetMessage('SUP_CL_UPDATED_USER_ID'), 'default' => false, 'sort' => 'UPDATED_USER_ID');
$arHeaders[] = array('id' => 'UPDATED_LOGIN', 'content' => GetMessage('SUP_CL_UPDATED_LOGIN'), 'default' => false, 'sort' => 'UPDATED_LOGIN');
$arHeaders[] = array('id' => 'UPDATED_FIRST_NAME', 'content' => GetMessage('SUP_CL_UPDATED_FIRST_NAME'), 'default' => false, 'sort' => 'UPDATED_FIRST_NAME');
$arHeaders[] = array('id' => 'UPDATED_LAST_NAME', 'content' => GetMessage('SUP_CL_UPDATED_LAST_NAME'), 'default' => false, 'sort' => 'UPDATED_LAST_NAME');
$arHeaders[] = array('id' => 'SLA_ID', 'content' => GetMessage('SUP_CL_SLA_ID'), 'default' => false, 'sort' => 'SLA_ID');
$arHeaders[] = array('id' => 'SLA_NAME', 'content' => GetMessage('SUP_CL_SLA_NAME'), 'default' => true, 'sort' => 'SLA_NAME');
$lAdmin->AddHeaders($arHeaders);
while ($arCoupon = $rsData->GetNext()) {
    $row =& $lAdmin->AddRow($arCoupon['ID'], $arCoupon);
    $row->AddInputField('COUNT_TICKETS', array('size' => '5'));
    $row->AddCheckField('ACTIVE');
    $arActions = array();
    $arActions[] = array('ICON' => 'edit', 'DEFAULT' => 'Y', 'TEXT' => GetMessage('SUP_CL_EDIT'), 'ACTION' => $lAdmin->ActionRedirect($EDIT_URL . '?lang=' . LANGUAGE_ID . '&ID=' . $arCoupon['ID']));
    $arActions[] = array('ICON' => 'delete', 'TEXT' => GetMessage('SUP_CL_DELETE'), 'ACTION' => 'if(confirm(\'' . GetMessage('SUP_CL_DELETE_CONFIRMATION') . '\')) ' . $lAdmin->ActionDoGroup($arCoupon['ID'], 'delete'));
    $arActions[] = array('SEPARATOR' => true);
    $arActions[] = array('TEXT' => GetMessage('SUP_CL_LOG'), 'ACTION' => $lAdmin->ActionRedirect('ticket_coupon_log.php?lang=' . LANGUAGE_ID . '&set_filter=Y&FIND_COUPON_ID=' . $arCoupon['ID']));
    $row->AddActions($arActions);
    $row->AddViewField("SLA_NAME", $arCoupon['SLA_NAME']);
}
$lAdmin->AddFooter(array(array('title' => GetMessage('MAIN_ADMIN_LIST_SELECTED'), 'value' => $rsData->SelectedRowsCount()), array('counter' => true, 'title' => GetMessage('MAIN_ADMIN_LIST_CHECKED'), 'value' => '0')));
$lAdmin->AddGroupActionTable(array('delete' => GetMessage('MAIN_ADMIN_LIST_DELETE')));
$aContext = array(array('ICON' => 'btn_new', 'TEXT' => GetMessage('SUP_CL_ADD'), 'LINK' => $EDIT_URL . '?lang=' . LANG, 'TITLE' => GetMessage('SUP_CL_ADD_TITLE')));
$lAdmin->AddAdminContextMenu($aContext);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:ticket_coupon_list.php


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