Exemplo n.º 1
0
 }
 if ($project->usesWiki()) {
     $head .= '<th>' . $Language->getText('project_admin_userperms', 'wiki') . '</th>';
 }
 if ($project->usesNews()) {
     $head .= '<th>' . $Language->getText('project_admin_userperms', 'news') . '</th>';
 }
 if ($project->usesDocman()) {
     $head .= '<th>' . $Language->getText('project_admin_userperms', 'doc_man') . '</th>';
 }
 if ($project->usesFile()) {
     $head .= '<th>' . $Language->getText('project_admin_userperms', 'file_man') . '</th>';
 }
 if ($project->usesTracker() && $at_arr) {
     for ($j = 0; $j < count($at_arr); $j++) {
         userperms_add_header('<th>' . $Language->getText('project_admin_userperms', 'tracker', $at_arr[$j]->getName()) . '</th>');
     }
 }
 $head .= '<th>' . $Language->getText('project_admin_userperms', 'member_ug') . '</th>';
 $head .= '</tr></thead><tbody>';
 echo $head;
 $i = 0;
 function userperms_add_cell($user_name, $cell)
 {
     global $k;
     if ($k++ % 10 == 0) {
         echo '<td>' . $user_name . '</td>';
     }
     echo $cell;
 }
 $uh = new UserHelper();
Exemplo n.º 2
0
 }
 if ($project->usesWiki()) {
     $head .= '<TD class="boxtitle">' . $Language->getText('project_admin_userperms', 'wiki') . '</TD>';
 }
 if ($project->usesNews()) {
     $head .= '<TD class="boxtitle">' . $Language->getText('project_admin_userperms', 'news') . '</TD>';
 }
 if ($project->usesDocman()) {
     $head .= '<TD class="boxtitle">' . $Language->getText('project_admin_userperms', 'doc_man') . '</TD>';
 }
 if ($project->usesFile()) {
     $head .= '<TD class="boxtitle">' . $Language->getText('project_admin_userperms', 'file_man') . '</TD>';
 }
 if ($project->usesTracker() && $at_arr) {
     for ($j = 0; $j < count($at_arr); $j++) {
         userperms_add_header('<TD class="boxtitle">' . $Language->getText('project_admin_userperms', 'tracker', $at_arr[$j]->getName()) . '</TD>');
     }
 }
 $head .= '<TD class="boxtitle">' . $Language->getText('project_admin_userperms', 'member_ug') . '</TD>';
 $head .= '</tr>';
 echo $head;
 $i = 0;
 function userperms_add_cell($user_name, $cell)
 {
     global $k;
     if ($k++ % 10 == 0) {
         echo '<td>' . $user_name . '</td>';
     }
     echo $cell;
 }
 $uh = new UserHelper();