本文整理匯總了PHP中CMediusers::loadlist方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMediusers::loadlist方法的具體用法?PHP CMediusers::loadlist怎麽用?PHP CMediusers::loadlist使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CMediusers
的用法示例。
在下文中一共展示了CMediusers::loadlist方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CMediusers
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage SSR
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
$keywords = CValue::post("keywords_nom", "%%");
$exclude_without_code = CValue::post("exclude_without_code");
$mediuser = new CMediusers();
$ds = $mediuser->_spec->ds;
$ljoin = array();
$ljoin["users"] = "users.user_id = users_mediboard.user_id";
$ljoin["functions_mediboard"] = "functions_mediboard.function_id = users_mediboard.function_id";
$where = array();
$where[] = "user_last_name " . $ds->prepareLike("{$keywords}%") . "OR user_first_name " . $ds->prepareLike("{$keywords}%");
$where["users_mediboard.actif"] = "= '1'";
if ($exclude_without_code == "true") {
$where["code_intervenant_cdarr"] = "IS NOT NULL";
}
$order = "users.user_last_name ASC, users.user_first_name ASC";
$mediusers = $mediuser->loadlist($where, $order, null, null, $ljoin);
$smarty = new CSmartyDP();
$smarty->assign("mediusers", $mediusers);
$smarty->assign("nodebug", true);
$smarty->assign("keywords", $keywords);
$smarty->display("inc_interv_autocomplete.tpl");