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


PHP Organization::getJoinTableInfo方法代码示例

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


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

示例1: Paging

        $cursort_type = 'ASC';
    } else {
        $cursort_type = 'DESC';
    }
    $orderBy = " {$cursort} {$cursort_type}";
} else {
    $orderBy = " dCreatedDate DESC ";
}
## ENDS HERE ###
/*	if(trim($stype) != '') {
		// if($stype == 'act')
	}
*/
$limit = " LIMIT " . ($page - 1) * $REC_LIMIT_FRONT . ", " . $REC_LIMIT_FRONT . " ";
$jtbl = "LEFT JOIN " . PRJ_DB_PREFIX . "_country_master cm on BINARY org.vCountry=cm.vCountryCode";
$orglist = $orgObj->getJoinTableInfo($jtbl, "org.iOrganizationID,org.vCompanyName,org.vOrganizationCode,org.eOrganizationType,cm.vCountry,org.eStatus,cm.vCountry", $where, $orderBy, '', $limit, 'yes');
//$orglist = $orgObj->getDetails_PG('*',$where,$orderBy,'',$limit);
$count = $orglist['tot'];
//prints($count);exit;
// print "A".$count."A";
unset($orglist['tot']);
if (!isset($pgajxobj)) {
    require_once SITE_CLASS_GEN . "class.paging-ajax.php";
}
$pgajxobj = new Paging($count, $page, "listorgs", $REC_LIMIT_FRONT);
$paging = $pgajxobj->getListPG($page);
$pgmsg = $pgajxobj->setMessage("Records");
$smarty->assign('orglist', $orglist);
$smarty->assign('count', $count);
$smarty->assign('paging', $paging);
$smarty->assign('pgmsg', $pgmsg);
开发者ID:nstungxd,项目名称:F2CA5,代码行数:31,代码来源:aj_organizationlist.php

示例2: GetInbox

//echo $where;
$sql_res = 'CALL GetInbox("SM"," ' . $where . '","","' . $orderBy . '","' . $limit . '")';
// echo $sql_res; exit;
$res = $dbobj->Onlyquery($sql_res);
$smarty->assign("res", $res);
//Prints($res);exit;
// --- Organizations -----------------------------------------------------------------------------------------
if (!isset($orgObj)) {
    require_once SITE_CLASS_APPLICATION . "organization/class.Organization.php";
    $orgObj = new Organization();
}
//	$jTable = Array(" LEFT JOIN ".PRJ_DB_PREFIX."_country_master cm "," LEFT JOIN ".PRJ_DB_PREFIX."_security_manager sm ");
//	$jOn = Array(" org.vCountry=cm.vCountryCode "," org.iVerifiedSMID=sm.iSMID ");
//	$activeorgs = $orgObj->getJoinTableInfo($jTable,$jOn,"org.*,cm.vCountry as vCountryName,CONCAT(sm.vFirstName,' ',sm.vLastName) as vVerifiedBy"," AND org.eStatus='Active'"," dVerifiedDate DESC ",''," LIMIT 0,3",'yes');
$jtbl = " LEFT JOIN " . PRJ_DB_PREFIX . "_country_master cm on org.vCountry=cm.vCountryCode LEFT JOIN " . PRJ_DB_PREFIX . "_security_manager sm on org.iVerifiedSMID=sm.iSMID ";
$activeorgs = $orgObj->getJoinTableInfo($jtbl, "org.*,cm.vCountry as vCountryName,CONCAT(sm.vFirstName,' ',sm.vLastName) as vVerifiedBy", " AND org.eStatus='Active'", " org.dVerifiedDate DESC ", ' org.iOrganizationID ', " LIMIT 0,3", 'yes');
$tot_activeorgs = $activeorgs['tot'];
unset($activeorgs['tot']);
//	$orgstoverify = $orgObj->getDetails("*"," AND (eStatus='Need to Verify' OR eStatus='Modified')"," dVerifiedDate DESC ",''," LIMIT 0,3");
$jtbl = " LEFT JOIN " . PRJ_DB_PREFIX . "_country_master cm on org.vCountry=cm.vCountryCode ";
$orgstoverify = $orgObj->getJoinTableInfo($jtbl, "org.*,cm.vCountry as vCountryName", " AND (org.eStatus='Need to Verify' OR org.eStatus='Modified')", " org.dCreatedDate DESC ", ' org.iOrganizationID ', " LIMIT 0,3", 'yes');
$tot_orgstoverify = $orgstoverify['tot'];
unset($orgstoverify['tot']);
// prints($activeorgs); exit;
$smarty->assign("activeorgs", $activeorgs);
$smarty->assign("tot_activeorgs", $tot_activeorgs);
$smarty->assign("orgstoverify", $orgstoverify);
$smarty->assign("tot_orgstoverify", $tot_orgstoverify);
// -----------------------------------------------------------------------------------------------------------
// --- Organization Associations -----------------------------------------------------------------------------
if (!isset($orgAssocObj)) {
开发者ID:nstungxd,项目名称:F2CA5,代码行数:31,代码来源:smdashboard.php


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