當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。