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


PHP SortingEx函数代码示例

本文整理汇总了PHP中SortingEx函数的典型用法代码示例。如果您正苦于以下问题:PHP SortingEx函数的具体用法?PHP SortingEx怎么用?PHP SortingEx使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: array

}
/******************************************************************/
$arResult["ERROR_MESSAGE"] = $strError;
CPageOption::SetOptionString("main", "nav_page_in_session", "N");
$db_res = CForumUser::GetList(array($by => $order), $arFilter, array("bDescPageNumbering" => false, "nPageSize" => $arParams["USERS_PER_PAGE"], "bShowAll" => false, "sNameTemplate" => $arParams["NAME_TEMPLATE"]));
$arParams["SHOW_USER_STATUS"] = "Y";
if ($db_res) {
    $db_res->NavStart($arParams["USERS_PER_PAGE"], false);
    $arResult["NAV_STRING"] = $db_res->GetPageNavStringEx($navComponentObject, GetMessage("LU_TITLE_USER"), $arParams["PAGE_NAVIGATION_TEMPLATE"]);
    $arResult["NAV_RESULT"] = $db_res;
    $arResult["SHOW_RESULT"] = "Y";
    $arResult["SortingEx"]["SHOW_ABC"] = SortingEx("SHOW_ABC", $APPLICATION->GetCurPageParam());
    $arResult["SortingEx"]["NUM_POSTS"] = SortingEx("NUM_POSTS", $APPLICATION->GetCurPageParam());
    $arResult["SortingEx"]["POINTS"] = SortingEx("POINTS", $APPLICATION->GetCurPageParam());
    $arResult["SortingEx"]["DATE_REGISTER"] = SortingEx("DATE_REGISTER", $APPLICATION->GetCurPageParam());
    $arResult["SortingEx"]["LAST_VISIT"] = SortingEx("LAST_VISIT", $APPLICATION->GetCurPageParam());
    if ($res = $db_res->GetNext()) {
        do {
            $arUserGroup = array();
            $UserPerm = array();
            $res["AUTHOR_STATUS"] = "";
            $res["AUTHOR_STATUS_CODE"] = "";
            // geting max permisson of User from all forums
            if ($arParams["SHOW_USER_STATUS"] == "Y") {
                $arUserGroup = CUser::GetUserGroup($res["USER_ID"]);
                sort($arUserGroup);
                foreach ($arForums as $forum) {
                    $UserPerm[] = CForumNew::GetUserPermission($forum["ID"], $arUserGroup);
                }
                rsort($UserPerm);
                list($res["AUTHOR_STATUS_CODE"], $res["AUTHOR_STATUS"]) = ForumGetUserForumStatus($res["USER_ID"], $UserPerm[0]);
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例2: elseif

********************************************************************/
$arResult["StatusUser"] = "AUTHOR";
$arResult["InputOutput"] = "AUTHOR_ID";
$SortingField = "AUTHOR_NAME";
if ($arParams["FID"] <= 1) {
    $arResult["StatusUser"] = "SENDER";
    $arResult["InputOutput"] = "AUTHOR_ID";
    $SortingField = "AUTHOR_NAME";
} elseif (1 < $arParams["FID"] && $arParams["FID"] <= 3) {
    $arResult["StatusUser"] = "RECIPIENT";
    $arResult["InputOutput"] = "RECIPIENT_ID";
    $SortingField = "RECIPIENT_NAME";
}
$arResult["SortingEx"]["POST_SUBJ"] = SortingEx("post_subj");
$arResult["SortingEx"]["AUTHOR_NAME"] = SortingEx(strToLower($SortingField));
$arResult["SortingEx"]["POST_DATE"] = SortingEx("post_date");
$arFilter = array("USER_ID" => $arParams["UID"], "FOLDER_ID" => $arParams["FID"]);
if ($arParams["FID"] == 2) {
    //If this is outbox folder
    $arFilter = array("OWNER_ID" => $arParams["UID"]);
}
$dbrMessages = CForumPrivateMessage::GetListEx(array($by => $order), $arFilter);
$dbrMessages->NavStart($arParams["PM_PER_PAGE"]);
$dbrMessages->bShowAll = false;
$dbrMessages->nPageWindow = $arParams["PAGE_NAVIGATION_WINDOW"];
$arResult["NAV_RESULT"] = $dbrMessages;
$arResult["NAV_STRING"] = $dbrMessages->GetPageNavStringEx($navComponentObject, GetMessage("PM_TITLE_PAGES"), $arParams["PAGE_NAVIGATION_TEMPLATE"]);
if ($dbrMessages && ($arMsg = $dbrMessages->GetNext())) {
    do {
        $arMsg["POST_SUBJ"] = wordwrap($arMsg["POST_SUBJ"], 100, " ", 1);
        $arMsg["~SHOW_NAME"] = GetUserName($arMsg[$arResult["InputOutput"]], $arParams["NAME_TEMPLATE"]);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php

示例3: CAdminException

        $e = new CAdminException(array_reverse($arError));
        $GLOBALS["APPLICATION"]->ThrowException($e);
        $err = $GLOBALS['APPLICATION']->GetException();
        $arResult["ERROR_MESSAGE"] = $err->GetString();
    }
}
/********************************************************************
				/Action
********************************************************************/
/********************************************************************
				Data
********************************************************************/
$arResult["count"] = CForumPrivateMessage::PMSize($USER->GetID(), COption::GetOptionInt("forum", "MaxPrivateMessages", 100));
$arResult["count"] = round($arResult["count"] * 100);
$arResult["SortingExTitle"] = SortingEx("title");
$arResult["SortingExCount"] = SortingEx("count");
$arResult["FORUM_SystemFolder"] = FORUM_SystemFolder;
$arResult["SYSTEM_FOLDER"] = array();
$arResult["USER_FOLDER"] = array();
$arResult["sessid"] = bitrix_sessid_post();
$arResult["FID"] = is_array($_REQUEST["FID"]) && !empty($_REQUEST["FID"]) ? $_REQUEST["FID"] : $arParams["FID"];
$arResult["action"] = $arParams["mode"] == "new" ? "save" : "update";
$arResult["FOLDER"] = array();
/*******************************************************************/
if ($arParams["mode"] == "edit" || $arParams["mode"] == "new") {
    if (intVal($arParams["FID"]) > 0) {
        $db_res = CForumPMFolder::GetByID($arParams["FID"]);
        if ($db_res && ($res = $db_res->GetNext())) {
            $arResult["FOLDER"] = $res;
            $arResult["POST_VALUES"]["FOLDER_TITLE"] = $res["TITLE"];
        }
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:component.php

示例4: GetMessage

		<th align="center"><?php 
echo GetMessage("STPCL_PAY_SYS");
?>
<br /><?php 
echo SortingEx("PAY_SYSTEM_ACTION_ID");
?>
</th>
		<th align="center"><?php 
echo GetMessage("STPCL_CEXP");
?>
</th>
		<th align="center"><?php 
echo GetMessage("STPCL_ACTIV");
?>
<br /><?php 
echo SortingEx("ACTIVE");
?>
</th>
		<th align="center"><?php 
echo GetMessage("STPCL_ACTIONS");
?>
</th>
	</tr>
	<?php 
foreach ($arResult["CARDS"] as $val) {
    ?>
		<tr>
			<td align="center"><b><?php 
    echo $val["ID"];
    ?>
</b></td>
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:template.php

示例5: InitSorting

				/Actions
********************************************************************/
/********************************************************************
				Default params # 2
********************************************************************/
global $by, $order;
InitSorting();
if (!$by) {
    ForumGetTopicSort($by, $order, $arResult["FORUM"]);
}
$by = $by == "ABS_LAST_POST_DATE" ? "LAST_POST_DATE" : $by;
$arResult["SortingEx"]["TITLE"] = SortingEx("TITLE");
$arResult["SortingEx"]["USER_START_NAME"] = SortingEx("USER_START_NAME");
$arResult["SortingEx"]["POSTS"] = SortingEx("POSTS");
$arResult["SortingEx"]["VIEWS"] = SortingEx("VIEWS");
$arResult["SortingEx"]["LAST_POST_DATE"] = SortingEx("LAST_POST_DATE");
$by = $by == "LAST_POST_DATE" && $arParams["PERMISSION"] >= "Q" ? "ABS_LAST_POST_DATE" : $by;
$parser = new forumTextParser(false, false, false, "light");
$parser->MaxStringLen = $arParams["WORD_LENGTH"];
$arResult["TOPICS"] = array();
if ($arParams["PERMISSION"] > "E") {
    $arResult["CanUserAddTopic"] = CForumTopic::CanUserAddTopic($arParams["FID"], $USER->GetUserGroupArray(), $USER->GetID(), $arResult["FORUM"], $arParams["PERMISSION"]);
} else {
    $arResult["CanUserAddTopic"] = false;
}
$arResult["URL"] = array("TOPIC_NEW" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_TOPIC_EDIT"], array("FID" => $arParams["FID"], "TID" => "new", "ACTION" => "new", "MESSAGE_TYPE" => "NEW", "UID" => $arParams["USER_ID"], "GID" => $arParams["SOCNET_GROUP_ID"])));
/********************************************************************
				/Default params # 2
********************************************************************/
/********************************************************************
				Data
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例6: GetMessage

?>
</td>
						</tr>
						<? 
						} 
						else
						{?>
						<tr>
							<td><?php 
echo GetMessage("FORM_USER");
?>
</td>
						</tr>
						<tr>
							<td><?php 
echo SortingEx("s_user_id");
?>
</td>
						</tr>
						<? 
						} //endif(isStatisticIncluded);
						?>
					</table>
				</th>
				<? 
				} //endif;($F_RIGHT>=25)
				?>
				<?
				$colspan = 4;
				if (is_array($arResult["arrColumns"])) 
				{
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:template.php

示例7: SortingEx

<br /><?php 
echo SortingEx("DATE_UPDATE");
?>
</th>
		<th><?php 
echo GetMessage("P_NAME");
?>
<br /><?php 
echo SortingEx("NAME");
?>
</th>
		<th><?php 
echo GetMessage("P_PERSON_TYPE");
?>
<br /><?php 
echo SortingEx("PERSON_TYPE_ID");
?>
</th>
		<th><?php 
echo GetMessage("SALE_ACTION");
?>
</th>
	</tr>
	<?php 
foreach ($arResult["PROFILES"] as $val) {
    ?>
		<tr>
			<td><b><?php 
    echo $val["ID"];
    ?>
</b></td>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:template.php

示例8: GetMessage

}
?>
		<td valign="top" align="center" nowrap class="tablehead2">
			<font class="tableheadtext"><?php 
echo GetMessage("STAT_COUNTER");
?>
<br><?php 
echo SortingEx("s_counter");
?>
</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 
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:adv_events.php

示例9: SortingEx

echo SortingEx("SORT");
?>
</label></li>
                            <li><label class="tree-toggler nav-header"><?php 
echo GetMessage("AQW_SHOP_PO_BRENDU");
echo SortingEx("PROPERTY_VENDOR");
?>
</label></li>
                            <!--<li><label class="tree-toggler nav-header"><?php 
echo GetMessage("AQW_SHOP_PO_CENE");
echo SortingEx("PRICE");
?>
</label></li>-->
                            <li><label class="tree-toggler nav-header"><?php 
echo GetMessage("AQW_SHOP_PO_NAZVANIU");
echo SortingEx("NAME");
?>
</label></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <? $APPLICATION->IncludeComponent("aqw:store.menu", ".default", array(), false); ?>
    </div>
    <div class="span9">
        <?
        if (is_array($arResult['ITEMS'])):
            ?>
            <ul class="thumbnails">
                <? foreach ($arResult['ITEMS'] as $item): ?>
开发者ID:ASDAFF,项目名称:bitrix_marketplace_module,代码行数:31,代码来源:template.php

示例10: array

 /********************************************************************
 				Data
 ********************************************************************/
 $db_res = CForumNew::GetListEx(array(), $arFilter);
 if ($db_res && ($res = $db_res->GetNext())) {
     do {
         $res["URL"] = array("LIST" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_LIST"], array("FID" => $res["ID"])), "~LIST" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_LIST"], array("FID" => $res["ID"])));
         $res["list"] = $res["URL"]["list"];
         // for custom
         $arForums[$res["ID"]] = $res;
     } while ($res = $db_res->GetNext());
 }
 if (!empty($arForums)) {
     // it need for custom components
     foreach (array("TITLE", "USER_START_NAME", "POSTS", "VIEWS", "LAST_POST_DATE") as $res) {
         $arResult["SortingEx"][$res] = SortingEx($res, false, "by" . $orderIndex, "order" . $orderIndex);
     }
     // /it need for custom components
     $db_res = CForumTopic::GetListEx($arSort, array("@FORUM_ID" => array_keys($arForums), "APPROVED" => "Y"), false, false, $arNavParams);
     if ($db_res) {
         $db_res->NavStart($arParams["TOPICS_PER_PAGE"], false);
         $arResult["NAV_STRING"] = $db_res->GetPageNavStringEx($navComponentObject, $arParams["PAGER_TITLE"], $arParams["PAGER_TEMPLATE"], $arParams["PAGER_SHOW_ALWAYS"]);
         //$arResult["NAV_CACHED_DATA"] = $navComponentObject->GetTemplateCachedData();
         $arResult["NAV_RESULT"] = $db_res;
         while ($res = $db_res->GetNext()) {
             if (strLen(trim($res["LAST_POST_DATE"])) > 0) {
                 $res["LAST_POST_DATE"] = CForumFormat::DateFormat($arParams["DATE_TIME_FORMAT"], MakeTimeStamp($res["LAST_POST_DATE"], CSite::GetDateFormat()));
             }
             $res["URL"] = array("AUTHOR" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["USER_START_ID"])), "~AUTHOR" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_PROFILE_VIEW"], array("UID" => $res["USER_START_ID"])), "READ" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_MESSAGE"], array("FID" => $res["FORUM_ID"], "TID" => $res["ID"], "MID" => intVal($res["LAST_MESSAGE_ID"]))) . "#message" . intVal($res["LAST_MESSAGE_ID"]), "~READ" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_MESSAGE"], array("FID" => $res["FORUM_ID"], "TID" => $res["ID"], "MID" => intVal($res["LAST_MESSAGE_ID"]))) . "#message" . intVal($res["LAST_MESSAGE_ID"]));
             $res["user_start_id_profile"] = $res["URL"]["AUTHOR"];
             // For custom
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php

示例11: array

// $arParams["DISPLAY_PANEL"] = ($arParams["DISPLAY_PANEL"] == "Y" ? "Y" : "N");
/********************************************************************
				/Input params
********************************************************************/
/********************************************************************
				Default values
********************************************************************/
$arResult["FORUM"] = array();
$arResult["FORUMS"] = array();
$arResult["GROUPS"] = CForumGroup::GetByLang(LANGUAGE_ID);
$arResult["GROUPS_FORUMS"] = array();
$arResult["TOPICS"] = array();
$arResult["SHOW_RESULT"] = "N";
$arResult["ERROR_MESSAGE"] = "";
$arResult["OK_MESSAGE"] = "";
$arResult["SortingEx"] = array("TITLE" => SortingEx("TITLE"), "FORUM_ID" => SortingEx("FORUM_ID"), "USER_START_NAME" => SortingEx("USER_START_NAME"), "POSTS" => SortingEx("POSTS"), "VIEWS" => SortingEx("VIEWS"), "LAST_POST_DATE" => SortingEx("LAST_POST_DATE"));
$parser = new forumTextParser(false, false, false, "light");
$parser->MaxStringLen = $arParams["WORD_LENGTH"];
$parser->userPath = $arParams["URL_TEMPLATES_PROFILE_VIEW"];
$parser->userNameTemplate = $arParams["NAME_TEMPLATE"];
$cache = new CPHPCache();
$cache_path_main = str_replace(array(":", "//"), "/", "/" . SITE_ID . "/" . $componentName . "/");
$arFilter = array();
$arForums = array();
$by = is_set($arResult["SortingEx"], $by) ? $by : "LAST_POST_DATE";
$order = $order != "asc" ? "desc" : "asc";
/************** Filter *********************************************/
$FilterArr = array("find_date1", "find_date2", "find_forum");
$set_default = !is_set($_REQUEST, "find_forum") ? empty($_SESSION["SESS_ADMIN"]["LAST_TOPICS_LIST"]) ? "Y" : "N" : "N";
$set_filter = is_set($_REQUEST, "set_filter") || $set_default == "Y" ? "set" : "get";
$find_date1 = $_REQUEST["find_date1"];
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:component.php

示例12: array

/********************************************************************
				Data
********************************************************************/
$arResult["SortingEx"] = array("TITLE", "POSTS", "VIEWS", "USER_START_NAME", "LAST_POST_DATE");
global $by, $order;
InitSorting($APPLICATION->GetCurPage() . "?PAGE_NAME=list&FID=" . $arParams["FID"]);
if (!in_array($by, $arResult["SortingEx"])) {
    ForumGetTopicSort($by, $order, $arResult["FORUM"]);
}
$by = $by == "ABS_LAST_POST_DATE" ? "LAST_POST_DATE" : $by;
if ($by == "LAST_POST_DATE" && $arResult["PERMISSION"] >= "Q") {
    $by = "ABS_LAST_POST_DATE";
}
$arResult["SortingEx"] = array_flip($arResult["SortingEx"]);
foreach ($arResult["SortingEx"] as $key => $val) {
    $arResult["SortingEx"][$key] = SortingEx($key);
}
$arFilter = array("FORUM_ID" => $arParams["FID"]);
if ($USER->IsAuthorized()) {
    $arFilter["USER_ID"] = $USER->GetID();
}
if ($arResult["PERMISSION"] < "Q") {
    $arFilter["APPROVED"] = "Y";
}
/*******************************************************************
				CACHE
*******************************************************************/
$cache = new CPHPCache();
global $NavNum;
$PAGEN_NAME = "PAGEN_" . ($NavNum + 1);
global ${$PAGEN_NAME};
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:component.php

示例13: SortingEx

<br /><?php 
echo SortingEx("PRIOR_DATE");
?>
</th>
		<th align="center"><?php 
echo GetMessage("STPSL_DATE_NEXT");
?>
<br /><?php 
echo SortingEx("NEXT_DATE");
?>
</th>
		<th align="center"><?php 
echo GetMessage("STPSL_LAST_SUCCESS");
?>
<br /><?php 
echo SortingEx("SUCCESS_PAYMENT");
?>
</th>
		<th align="center"><?php 
echo GetMessage("STPSL_ACTIONS");
?>
</th>
	</tr>
	<?php 
foreach ($arResult["RECURRING"] as $val) {
    ?>
		<tr>
			<td align="center"><b><?php 
    echo $val["ID"];
    ?>
</b></td>
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:template.php

示例14: GetMessage

				<tr>
					<td nowrap><font class="tableheadtext"><?php 
echo GetMessage("SALE_LAST_NAME");
?>
</font></td>
					<td><?php 
echo SortingEx("last_name");
?>
</td>
				</tr>
			</table></td>
		<td valign="top" align="center" class="tablehead2" nowrap><font class="tableheadtext"><?php 
echo GetMessage('SALE_EMAIL');
?>
<br><?php 
echo SortingEx("email");
?>
</font></td>
		<td valign="top" align="center" class="tablehead3" nowrap><font class="tableheadtext"><?php 
echo GetMessage('SALE_ACTION');
?>
</font>
		</td>
	</tr>
	<?php 
while ($rsUsers->NavNext(true, "f_")) {
    ?>
	<tr valign="top">
		<td align="center" class="tablebody1"><input type="hidden" name="USER_ID[]" value="<?php 
    echo $f_ID;
    ?>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:user_search.php


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