本文整理匯總了PHP中categories::moveDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP categories::moveDown方法的具體用法?PHP categories::moveDown怎麽用?PHP categories::moveDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類categories
的用法示例。
在下文中一共展示了categories::moveDown方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: categories
<?php
// +----------------------------------------------------------------------
// | Demila [ Beautiful Digital Content Trading System ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015 http://demila.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Email author@demila.org
// +----------------------------------------------------------------------
_setView(__FILE__);
_setTitle($langArray['list']);
$cms = new categories();
if (isset($_GET['up']) || isset($_GET['down'])) {
$cms->tableName = 'attributes_categories';
$cms->idColumn = 'id';
if (isset($_GET['up']) && is_numeric($_GET['up'])) {
$cms->moveUp($_GET['up']);
} elseif (isset($_GET['down']) && is_numeric($_GET['down'])) {
$cms->moveDown($_GET['down']);
}
}
$data = $cms->getAll(START, LIMIT);
abr('data', $data);
$p = paging("?m=" . $_GET['m'] . "&c=list&p=", "", PAGE, LIMIT, $cms->foundRows);
abr('paging', $p);
require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';