Exemple #1
0
		<tfoot>
			<tr>
				<td colspan="8"><?php 
echo $this->pagination($this->total, $this->filters['start'], $this->filters['limit']);
?>
</td>
			</tr>
		</tfoot>
		<tbody>
		<?php 
$k = 0;
$i = 0;
foreach ($this->rows as $row) {
    if (isset($row->username)) {
        $reason = new \Components\Groups\Tables\Reason($database);
        $reason->loadReason($row->username, $this->filters['gidNumber']);
        $reasonforjoin = '';
        if ($reason) {
            $reasonforjoin = stripslashes($reason->reason);
        }
    }
    $status = $row->role;
    ?>
			<tr class="<?php 
    echo "row{$k}";
    ?>
">
				<td>
					<input type="checkbox" name="id[]" id="cb<?php 
    echo $i;
    ?>
Exemple #2
0
             }
         }
     }
     if ($this->membership_control == 1) {
         if (($this->authorized == 'manager' || $this->authorized == 'admin') && !$roles) {
             $html .= '<strong>' . Lang::txt('PLG_GROUPS_MEMBERS_MEMBER_ROLES') . ':</strong> ';
             $html .= '<span class="roles-list" id="roles-list-' . $u->get('uidNumber') . '"></span>';
             $html .= ' <a class="assign-role" href="' . Route::url('index.php?option=' . $option . '&cn=' . $this->group->cn . '&active=members&action=assignrole&uid=' . $u->get('uidNumber')) . '">' . Lang::txt('PLG_GROUPS_MEMBERS_ASSIGN_ROLE') . '</a>';
         }
     }
     $html .= '</span>';
 }
 if ($this->filter == 'pending') {
     $database = App::get('db');
     $row = new Components\Groups\Tables\Reason($database);
     $row->loadReason($u->get('uidNumber'), $this->group->gidNumber);
     if ($row) {
         $html .= '<span class="reason" data-title="' . Lang::txt('PLG_GROUPS_MEMBERS_REASON_FOR_REQUEST') . '">';
         $html .= '<span class="reason-reason">' . stripslashes($row->reason) . '</span>';
         $html .= '<span class="reason-date">' . Date::of($row->date)->toLocal('F d, Y @ g:ia') . '</span>';
         $html .= '</span>';
     }
 } else {
     //$html .= '<span class="activity">Activity: </span>';
 }
 $html .= '</td>' . "\n";
 if ($this->authorized == 'manager' || $this->authorized == 'admin') {
     switch ($this->filter) {
         case 'invitees':
             if ($this->membership_control == 1) {
                 if (!$inviteemail) {