#196 Add template name to table
This commit is contained in:
parent
81553d4885
commit
cc58d84311
@ -198,7 +198,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
<th><b><i><?php echo $hesklang['name']; ?></i></b></th>
|
<th><b><i><?php echo $hesklang['name']; ?></i></b></th>
|
||||||
<th><b><i><?php echo $hesklang['email']; ?></i></b></th>
|
<th><b><i><?php echo $hesklang['email']; ?></i></b></th>
|
||||||
<th><b><i><?php echo $hesklang['username']; ?></i></b></th>
|
<th><b><i><?php echo $hesklang['username']; ?></i></b></th>
|
||||||
<th><b><i><?php echo $hesklang['administrator']; ?></i></b></th>
|
<th><b><i><?php echo $hesklang['permission_template']; ?></i></b></th>
|
||||||
<?php
|
<?php
|
||||||
/* Is user rating enabled? */
|
/* Is user rating enabled? */
|
||||||
if ($hesk_settings['rating'])
|
if ($hesk_settings['rating'])
|
||||||
@ -310,12 +310,20 @@ while ($myuser = hesk_dbFetchAssoc($res))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$templateName = $hesklang['custom'];
|
||||||
|
if ($myuser['permission_template'] != -1) {
|
||||||
|
$result = hesk_dbQuery("SELECT `name` FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."permission_templates` WHERE `id` = ".intval($myuser['permission_template']));
|
||||||
|
$row = hesk_dbFetchAssoc($result);
|
||||||
|
$templateName = $row['name'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
echo <<<EOC
|
echo <<<EOC
|
||||||
<tr>
|
<tr>
|
||||||
<td>$myuser[name]</td>
|
<td>$myuser[name]</td>
|
||||||
<td><a href="mailto:$myuser[email]">$myuser[email]</a></td>
|
<td><a href="mailto:$myuser[email]">$myuser[email]</a></td>
|
||||||
<td>$myuser[user]</td>
|
<td>$myuser[user]</td>
|
||||||
<td>$myuser[isadmin]</td>
|
<td>$templateName</td>
|
||||||
|
|
||||||
EOC;
|
EOC;
|
||||||
|
|
||||||
|
@ -100,6 +100,7 @@ $hesklang['permission_tpl_man'] = 'Manage permission templates'; // Menu link
|
|||||||
$hesklang['permission_templates'] = 'Permission Templates';
|
$hesklang['permission_templates'] = 'Permission Templates';
|
||||||
$hesklang['can_man_permission_tpl'] = 'Can manage permission templates';
|
$hesklang['can_man_permission_tpl'] = 'Can manage permission templates';
|
||||||
$hesklang['permission_template_colon'] = 'Permission Template:';
|
$hesklang['permission_template_colon'] = 'Permission Template:';
|
||||||
|
$hesklang['permission_template'] = 'Permission Template';
|
||||||
$hesklang['custom'] = 'Custom';
|
$hesklang['custom'] = 'Custom';
|
||||||
|
|
||||||
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
|
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user