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


PHP project::getProjectMembers方法代码示例

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


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

示例1: count

 }
 $files = $myfile->getProjectFiles($id);
 $filenum = count($files);
 if (empty($finfiles)) {
     $filenum = 0;
 }
 $myproject = new project();
 $rolesobj = new roles();
 //get folders
 $folders = $myfile->getProjectFolders($id);
 //get all folders
 $allfolders = $myfile->getAllProjectFolders($id);
 //get the project
 $pro = $myproject->getProject($id);
 //get the project members
 $members = $myproject->getProjectMembers($id, 10000);
 //get all roles
 $allroles = $rolesobj->getAllRoles();
 $projectname = $pro["name"];
 $title = $langfile['files'];
 $template->assign("title", $title);
 $template->assign("projectname", $projectname);
 SmartyPaginate::assign($template);
 $template->assign("files", $files);
 $template->assign("filenum", $filenum);
 $template->assign("folders", $folders);
 $template->assign("members", $members);
 $template->assign("roles", $allroles);
 $template->assign("allfolders", $allfolders);
 $template->assign("postmax", $POST_MAX_SIZE);
 $template->display("projectfiles.tpl");
开发者ID:raum01,项目名称:Collabtive,代码行数:31,代码来源:managefile.php

示例2: project

        }
    }
    if (!empty($start) and !empty($end)) {
        $track = $tracker->getProjectTrack($id, $usr, $taski, $start, $end, 50);
    } else {
        $track = $tracker->getProjectTrack($id, $usr, $taski, 0, 0, 50);
    }
    if (!empty($track)) {
        $totaltime = $tracker->getTotalTrackTime($track);
        $template->assign("totaltime", $totaltime);
        $template->assign("fproject", $fproject);
        $template->assign("start", $start);
        $template->assign("end", $end);
    }
    $pro = new project();
    $usrs = $pro->getProjectMembers($id, 1000, false);
    $proj = $pro->getProject($id);
    $projectname = $proj["name"];
    $template->assign("projectname", $projectname);
    $template->assign("users", $usrs);
    $title = $langfile["timetracker"];
    $template->assign("title", $title);
    $template->assign("ptasks", $ptasks);
    $template->assign("start", $start);
    $template->assign("end", $end);
    $template->assign("usr", $usr);
    $template->assign("task", $taski);
    $template->assign("tracker", $track);
    SmartyPaginate::assign($template);
    $template->display("tracker_project.tpl");
}
开发者ID:Setrino,项目名称:collabtive,代码行数:31,代码来源:managetimetracker.php

示例3: project

     die;
 }
 if (!chkproject($userid, $id)) {
     $errtxt = $langfile["notyourproject"];
     $noperm = $langfile["accessdenied"];
     $template->assign("errortext", "{$errtxt}<br>{$noperm}");
     $template->display("error.tpl");
     die;
 }
 $myproject = new project();
 $pro = $myproject->getProject($id);
 $projectname = $pro["name"];
 $title = $langfile['task'];
 $mytask = new task();
 $task = $mytask->getTask($tid);
 $members = $myproject->getProjectMembers($id, $myproject->countMembers($id));
 $tasklist = new tasklist();
 $tasklists = $tasklist->getProjectTasklists($id);
 $tl = $tasklist->getTasklist($task['liste']);
 $task['listid'] = $tl['ID'];
 $task['listname'] = $tl['name'];
 $tmp = $mytask->getUsers($task['ID']);
 if ($tmp) {
     foreach ($tmp as $value) {
         $task['users'][] = $value[0];
     }
 }
 $user = $mytask->getUser($task['ID']);
 $task['username'] = $user[1];
 $task['userid'] = $user[0];
 $template->assign("members", $members);
开发者ID:veganaize,项目名称:Collabtive,代码行数:31,代码来源:managetask.php

示例4: header

        if ($user->edit($id, $name, "", $email, $tel1, $tel2, $company, $zip, $gender, $turl, $address1, $address2, $state, $country, $tags, $locale, "", $rate)) {
            if (!empty($newpass) and !empty($repeatpass)) {
                $user->admin_editpass($id, $newpass, $repeatpass);
            }
            header("Location: admin.php?action=users&mode=edited");
        }
    }
} elseif ($action == "deleteuserform") {
    $usr = $user->getProfile($id);
    // Get user's projects
    $proj = new project();
    $projects = $proj->getMyProjects($id);
    // Get members of each project
    if (!empty($projects)) {
        for ($i = 0; $i < count($projects); $i++) {
            $members = $proj->getProjectMembers($projects[$i]["ID"]);
            $projects[$i]["members"] = $members;
        }
        $title = $langfile["deleteuser"];
        $template->assign("title", $title);
        $template->assign("user", $usr);
        $template->assign("projects", $projects);
        $template->display("admindeluserform.tpl");
    } else {
        if ($user->del($id)) {
            header("Location: admin.php?action=users&mode=deleted");
        }
    }
} elseif ($action == "deleteuser") {
    $id = getArrayVal($_POST, "id");
    $uprojects = getArrayVal($_POST, "uprojects");
开发者ID:veganaize,项目名称:Collabtive,代码行数:31,代码来源:admin.php


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