</td>

			<td>
				:
			</td>

			<td>
			</td>
		</tr>

	</table>

	<table id="members_list" >

		<?php 
$member_role = OC_Collaboration_Project::getMembers($_['project_details']['pid']);
if (count($member_role) != 0) {
    ?>
				<tr>
					<th><?php 
    p($l->t('Role'));
    ?>
</th>
					<th><?php 
    p($l->t('Member(s)'));
    ?>
</th>
				</tr>
		<?php 
}
foreach ($member_role as $role => $members) {
				<td>
					<?php 
p($l->t('Members'));
?>
:
				</td>

				<td id="remove_old_member_loading_img" >
				</td>
			</tr>

		</table>

		<?php 
if ($pid != -1) {
    $member_role = OC_Collaboration_Project::getMembers($pid);
    print_unescaped('<span class="old_mem_list" >');
    foreach ($member_role as $role => $members) {
        print_unescaped('<div class="old_members" data-role="' . $role . '" ><div class="old_mem_role" >' . $role . ': </div>');
        if (strcasecmp($role, 'Creator') == 0) {
            print_unescaped('<span>' . $members[0] . '</span>');
        } else {
            foreach ($members as $index => $member) {
                print_unescaped('<span>' . $member . ' <img src="' . OCP\Util::linkTo('core', 'img/actions/delete.png') . '" class="delete_old_member" data-member="' . $member . '" title="' . $l->t('Delete') . '" /><br /></span>');
            }
        }
        print_unescaped('</div>');
    }
    print_unescaped('</span>');
}
?>
*
* @authors Dr.J.Akilandeswari, R.Ramki, R.Sasidharan, P.Suresh
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
*
*/
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
OCP\JSON::checkAppEnabled('collaboration');
if (isset($_POST['pid'])) {
    if (!OC_Collaboration_Project::isMemberWorkingOnProject(OC_User::getUser(), $_POST['pid'])) {
        \OCP\Util::writeLog('collaboration', OC_User::getUser() . ' is trying to access project with Project ID ' . $_POST['pid'], \OCP\Util::WARN);
        OC_JSON::error();
        exit;
    }
    OCP\JSON::success(array('members' => OC_Collaboration_Project::getMembers($_POST['pid'])));
    exit;
}
OC_JSON::error();
exit;