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


PHP CDBResult::NavNext方法代码示例

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


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

示例1: krsort

            $arFiles[$key] = $ar;
        }
    }
}
if ($order == 'desc') {
    krsort($arFiles);
} else {
    ksort($arFiles);
}
$rsDirContent = new CDBResult();
$rsDirContent->InitFromArray($arFiles);
$rsDirContent->NavStart(20);
$lAdmin->NavText($rsDirContent->GetNavPrint(GetMessage("MAIN_DUMP_FILE_PAGES")));
$lAdmin->AddHeaders(array(array("id" => "NAME", "content" => GetMessage("MAIN_DUMP_FILE_NAME"), "sort" => "name", "default" => true), array("id" => "SIZE", "content" => GetMessage("MAIN_DUMP_FILE_SIZE1"), "sort" => "size", "default" => true), array("id" => "PLACE", "content" => GetMessage("MAIN_DUMP_LOCATION"), "sort" => "location", "default" => true), array("id" => "DATE", "content" => GetMessage('MAIN_DUMP_FILE_TIMESTAMP'), "sort" => "timestamp", "default" => true)));
$arWriteBucket = CBackup::GetBucketList($arFilter = array('READ_ONLY' => 'N'));
while ($f = $rsDirContent->NavNext(true, "f_")) {
    $BUCKET_ID = intval($f['BUCKET_ID']);
    $row =& $lAdmin->AddRow($BUCKET_ID . '_' . $f['NAME'], $f);
    $c = $arParts[$BUCKET_ID . $f['NAME']];
    if ($c > 1) {
        $parts = ' (' . GetMessage("MAIN_DUMP_PARTS") . $c . ')';
        $size = $arSize[$BUCKET_ID . $f['NAME']];
    } else {
        $parts = '';
        $size = $f['SIZE'];
    }
    $row->AddField("NAME", $f['NAME'] . $parts);
    $row->AddField("SIZE", CFile::FormatSize($size));
    $row->AddField("PLACE", $f['PLACE']);
    if ($f['DATE']) {
        $row->AddField("DATE", ($t = time() - $f['DATE']) < 86400 && $t > 0 ? HumanTime($t) . ' ' . GetMessage('DUMP_BACK') : ConvertTimeStamp($f['DATE'], 'FULL'));
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:dump_list.php

示例2: GetMessage

</font></td>
		<td valign="top" align="center" class="tablehead3">
			<font class="tableheadtext"><?php 
echo GetMessage("STAT_COUNTER_BACK");
?>
<br><?php 
echo SortingEx("s_counter_back");
?>
</font></td>
	</tr>
	<?php 
$bs = 2;
if ($find_group == "event1" || $find_group == "event2") {
    $bs = 1;
}
while ($events->NavNext(true, "f_")) {
    ?>
	<tr align="left" valign="top">
		<?php 
    if ($find_group == "NOT_REF") {
        ?>
		<td align="center" class="tablebody1"><font class="tablebodytext">&nbsp;<?php 
        echo $f_ID;
        ?>
</font></td>
		<?php 
    }
    ?>
		<?php 
    if ($find_group == "NOT_REF" || $find_group == "event1") {
        ?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:adv_events.php

示例3: array

     $arRID_tmp = array();
     if (is_array($arResult["arRID"]) && count($arResult["arRID"]) > 0) {
         $i = 0;
         foreach ($arResult["arRID"] as $rid) {
             if ($i >= $pagen_from && $i < $pagen_from + $page_split) {
                 $arRID_tmp[] = $rid;
                 // array of IDs of results for the page
             }
             $i++;
         }
     }
     $arResult["arRID"] = $arRID_tmp;
 }
 $arResult["arrResults"] = array();
 $arrUsers = array();
 while ($arRes = $rsResults->NavNext(false)) {
     $arRes["arrRESULT_PERMISSION"] = CFormResult::GetPermissions($arRes["ID"], $v);
     $arRes["can_view"] = false;
     $arRes["can_edit"] = false;
     $arRes["can_delete"] = false;
     if ($arParams["F_RIGHT"] >= 20 || $arParams["F_RIGHT"] >= 15 && $arParams["USER_ID"] == $arRes["USER_ID"]) {
         if (in_array("VIEW", $arRes["arrRESULT_PERMISSION"])) {
             $arRes["can_view"] = true;
         }
         if (in_array("EDIT", $arRes["arrRESULT_PERMISSION"])) {
             $arRes["can_edit"] = true;
         }
         if (in_array("DELETE", $arRes["arrRESULT_PERMISSION"])) {
             $arRes["can_delete"] = true;
         }
     }
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例4: die

IncludeModuleLangFile(__FILE__);
if (!isset($arFilter) || !is_array($arFilter)) {
    die("Wrong use 1");
}
$filter = array('filter' => $arFilter, 'select' => array("ID", "LID", "PERSON_TYPE_ID", "PAYED", "DATE_PAYED", "EMP_PAYED_ID", "CANCELED", "DATE_CANCELED", "EMP_CANCELED_ID", "REASON_CANCELED", "STATUS_ID", "DATE_STATUS", "PAY_VOUCHER_NUM", "PAY_VOUCHER_DATE", "EMP_STATUS_ID", "PRICE_DELIVERY", "ALLOW_DELIVERY", "DATE_ALLOW_DELIVERY", "EMP_ALLOW_DELIVERY_ID", "PRICE", "CURRENCY", "DISCOUNT_VALUE", "SUM_PAID", "USER_ID", "PAY_SYSTEM_ID", "DELIVERY_ID", "DATE_INSERT", "DATE_INSERT_FORMAT", "DATE_UPDATE", "USER_DESCRIPTION", "ADDITIONAL_INFO", 'PS_STATUS' => 'PAYMENT.PS_STATUS', 'PS_STATUS_CODE' => 'PAYMENT.PS_STATUS_CODE', 'PS_STATUS_DESCRIPTION' => 'PAYMENT.PS_STATUS_DESCRIPTION', 'PS_STATUS_MESSAGE' => 'PAYMENT.PS_STATUS_MESSAGE', 'PS_SUM' => 'PAYMENT.PS_SUM', 'PS_CURRENCY' => 'PAYMENT.PS_CURRENCY', 'PS_RESPONSE_DATE' => 'PAYMENT.PS_RESPONSE_DATE', "COMMENTS", "TAX_VALUE", "STAT_GID", "RECURRING_ID"), 'runtime' => $runtimeFields);
if (!empty($by)) {
    $order = !empty($order) && $order == "DESC" ? "DESC" : "ASC";
    $filter['order'] = array($by => $order);
}
$dbOrderList = new CDBResult(\Bitrix\Sale\Internals\OrderTable::getList($filter));
ob_start();
echo "<" . "?xml version=\"1.0\" encoding=\"" . LANG_CHARSET . "\"?" . ">\n";
echo "<BizTalk xmlns=\"urn:schemas-biztalk-org:biztalk/biztalk-0.81.xml\"><Route><From locationID=\"\" locationType=\"\" process=\"\" path=\"\" handle=\"\"/><To locationID=\"\" locationType=\"\" process=\"\" path=\"\" handle=\"\"/></Route><Body>\n";
echo "\t<" . GetMessage("CommerceInfo") . " xmlns=\"urn:CommerceML\">\n";
$arContra = array();
while ($dbOrderList->NavNext(true, "f_")) {
    echo "\t\t<" . GetMessage("Document") . " " . GetMessage("Operation") . "=\"Order\" " . GetMessage("NumberDoc") . "=\"" . $f_ID . "\" ";
    echo "" . GetMessage("DateDoc") . "=\"" . CDatabase::FormatDate($f_DATE_INSERT, CLang::GetDateFormat("FULL", LANG), "Y-M-D") . "\" " . GetMessage("TimeDoc") . "=\"" . CDatabase::FormatDate($f_DATE_INSERT, CLang::GetDateFormat("FULL", LANG), "HH:MI:SS") . "\" " . GetMessage("PaymentDate") . "=\"\" ";
    echo "" . GetMessage("Sum") . "=\"" . $f_PRICE . "\" " . GetMessage("Comment") . "=\"\" " . GetMessage("Currency") . "=\"" . $f_CURRENCY . "\">\n";
    echo "\t\t\t<" . GetMessage("CompanyInDocument") . " " . GetMessage("Role") . "=\"Saler\" " . GetMessage("Company") . "=\"" . $SALER_COMPANY_XML_ID . "\"/>\n";
    echo "\t\t\t<" . GetMessage("CompanyInDocument") . " " . GetMessage("Role") . "=\"Buyer\" " . GetMessage("Company") . "=\"BC" . $f_USER_ID . "\"/>\n";
    $dbOrderTax = CSaleOrderTax::GetList(array(), array("ORDER_ID" => $f_ID), false, false, array("ID", "TAX_NAME", "VALUE", "VALUE_MONEY", "CODE", "IS_IN_PRICE"));
    while ($arOrderTax = $dbOrderTax->Fetch()) {
        echo "\t\t\t<" . GetMessage("TaxSum") . " " . GetMessage("Tax") . "=\"" . htmlspecialcharsbx($arOrderTax["TAX_NAME"]) . "\" " . GetMessage("TaxRate") . "=\"" . htmlspecialcharsbx($arOrderTax["VALUE"]) . "\" " . GetMessage("Sum") . "=\"" . htmlspecialcharsbx($arOrderTax["VALUE_MONEY"]) . "\" " . GetMessage("IncludedInSum") . "=\"" . ($arOrderTax["IS_IN_PRICE"] == "Y" ? 1 : 0) . "\"/>\n";
    }
    $dbBasket = CSaleBasket::GetList(array("NAME" => "ASC"), array("ORDER_ID" => $f_ID));
    while ($arBasket = $dbBasket->Fetch()) {
        $CATALOG_XML_ID = $arBasket["CATALOG_XML_ID"];
        $PRODUCT_XML_ID = $arBasket["PRODUCT_XML_ID"];
        if (strlen($PRODUCT_XML_ID) <= 0 && strlen($CATALOG_XML_ID) <= 0) {
            $dbBasketProps = CSaleBasket::GetPropsList(array("CODE" => "ASC"), array("BASKET_ID" => $arBasket["ID"]));
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:commerceml.php


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