for ($i = 0; $i < $t_users_count; $i++) { $t_user = $t_users[$i]; ?> <tr <?php echo helper_alternate_class(); ?> > <td> <?php echo $t_display[$i]; ?> </td> <td> <?php $t_email = user_get_email($t_user['id']); print_email_link($t_email, $t_email); ?> </td> <td> <?php echo get_enum_element('access_levels', $t_user['access_level']); ?> </td> <td class="center"> <?php # You need global or project-specific permissions to remove users # from this project if ($t_can_manage_users && access_has_project_level($t_user['access_level'], $f_project_id)) { if (project_includes_user($f_project_id, $t_user['id'])) { print_button("manage_proj_user_remove.php?project_id={$f_project_id}&user_id=" . $t_user['id'], lang_get('remove_link')); $t_removable_users_exist = true;
> <td> <a href="manage_user_edit_page.php?user_id=<?php echo $u_id; ?> "><?php echo string_display($u_username); ?> </a> </td> <td><?php echo string_display($u_realname); ?> </td> <td><?php print_email_link($u_email, $u_email); ?> </td> <td><?php echo get_enum_element('access_levels', $u_access_level); ?> </td> <td><?php echo trans_bool($u_enabled); ?> </td> <td class="center"> <?php if ($u_protected) { echo " {$t_lock_image}"; } else {
$u_date_created = date( $t_date_format, $u_date_created ); $u_last_visit = date( $t_date_format, $u_last_visit ); if( !isset( $t_access_level[$u_access_level] ) ) { $t_access_level[$u_access_level] = get_enum_element( 'access_levels', $u_access_level ); } ?> <tr> <td><?php if( access_has_global_level( $u_access_level ) ) { ?> <a href="manage_user_edit_page.php?user_id=<?php echo $u_id ?>"><?php echo string_display_line( $u_username ) ?></a><?php } else { echo string_display_line( $u_username ); } ?> </td> <td><?php echo string_display_line( $u_realname ) ?></td> <td><?php print_email_link( $u_email, $u_email ) ?></td> <td><?php echo $t_access_level[$u_access_level] ?></td> <td class="center"><?php echo trans_bool( $u_enabled ) ?></td> <td class="center"><?php if( $u_protected ) { echo ' ' . $t_lock_image; } else { echo ' '; } ?> </td> <td><?php echo $u_date_created ?></td> <td><?php echo $u_last_visit ?></td> </tr> <?php } # end for ?>
function print_sql_error($p_query) { global $g_administrator_email; print error_string(ERROR_SQL); print_email_link($g_administrator_email, lang_get('administrator')); print "<br />{$p_query};<br />"; }
function print_sql_error($p_query) { global $MANTIS_ERROR, $g_administrator_email, $s_administrator; print $MANTIS_ERROR[ERROR_SQL]; print_email_link($g_administrator_email, $s_administrator); print "<p>{$p_query};<p>"; }
function print_sql_error($p_query) { global $MANTIS_ERROR, $g_administrator_email; print $MANTIS_ERROR[ERROR_SQL]; print_email_link($g_administrator_email, lang_get('administrator')); print "<br />{$p_query};<br />"; }