當前位置: 首頁>>代碼示例>>PHP>>正文


PHP projects::getMembersList方法代碼示例

本文整理匯總了PHP中projects::getMembersList方法的典型用法代碼示例。如果您正苦於以下問題:PHP projects::getMembersList方法的具體用法?PHP projects::getMembersList怎麽用?PHP projects::getMembersList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在projects的用法示例。


在下文中一共展示了projects::getMembersList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: isset

    }
}

if (isset($_POST['projectidfromposition']))
{
    $projects->project_foo = new project_foo();
    $projects->project_foo->pr_id = $_POST['projectidfromposition'];
    $onLoadElement = ' onload="x_getProjectData('.$projects->project_foo->pr_id.')"';
    $archivestyle = $projects->isDeletable($projects->project_foo->pr_id) ? 'inline' : 'none';
}

$projectlist = $projects->GetList($psortfield,$psortorder,$psearchstring,$pstatus);
$pr_id = isset($projects->project_foo->pr_id) ? $projects->project_foo->pr_id : $pr_formvars->pr_id;
if ($projects->getMembersInProject($pr_id))
$pr_formvars->membersInProjectArray = $projects->membersInProjectArray;
if ($projects->getMembersList($pr_id))
$pr_formvars->membersArray = $projects->membersArray;

$membid = $user->empl_position < 100 ? $user->empl_id : 0;
$taet = new taet();
$taet->getMemberProjects($membid);
$formvars->projectsArray = $taet->projectsArray;

$timestamp = time();
$thisMonth  = (int) date('m',$timestamp);
$thisYear   = (int) date('Y',$timestamp);
$lastDayOfMonth = (int) date('t',$timestamp);
$startThisMonth = mktime(0,0,0,$thisMonth,1,$thisYear);
$finishThisMonth = mktime(23,59,59,$thisMonth,$lastDayOfMonth,$thisYear);
$formvars->expstart  = date(DATEFIELD,$startThisMonth);
$formvars->expfinish = date(DATEFIELD,$finishThisMonth);
開發者ID:blowfishJ,項目名稱:galaxyCode,代碼行數:31,代碼來源:projects.app.php

示例2: setNewMemberList

function setNewMemberList()
{
    global $objResponse, $dict;
    if (!($projects = new projects())) {
        header('HTTP/1.0 500 Internal Server Error');
    }
    $objResponse->addScript("clearSelection('list1')");
    $objResponse->addScript("clearSelection('list2')");
    if ($projects->getMembersList()) {
        foreach ($projects->membersArray as $empl_id => $empl_fullname) {
            $objResponse->addScript("addOption('list2','" . $empl_fullname . "','" . $empl_id . "')");
        }
    }
    return $objResponse->getXML();
}
開發者ID:ExeErik,項目名稱:Test,代碼行數:15,代碼來源:todo.server.php


注:本文中的projects::getMembersList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。