Fixed up css

This commit is contained in:
genuineparts 2025-06-24 21:25:19 +02:00
parent 2ea54af6f7
commit 1fef0be197
8 changed files with 99 additions and 99 deletions

View file

@ -108,15 +108,15 @@ class editusers_panel extends admin_module{
$user[]=$row;
}
$panel->title=$lang->_('USERS');
$panel->content.="<table id=\"users\" width=\"90%\" cellspacing=\"2\">
$panel->content.="<table id=\"users\" style=\"width: 90%; border-spacing: 2px;\">
<thead>
<tr>
<th style=\"text-align='center';\">".$lang->_('ID')."</th>
<th style=\"text-align='center';\">".$lang->_('USERNAME')."</th>
<th style=\"text-align='center';\">".$lang->_('REALNAME')."</th>
<th style=\"text-align='center';\">".$lang->_('ROLE')."</th>
<th style=\"text-align='center';\">".$lang->_('STATUS')."</th>
<th style=\"text-align='center';\">".$lang->_('ACTION')."</th>
<th style=\"text-align: center;\">".$lang->_('ID')."</th>
<th style=\"text-align: center;\">".$lang->_('USERNAME')."</th>
<th style=\"text-align: center;\">".$lang->_('REALNAME')."</th>
<th style=\"text-align: center;\">".$lang->_('ROLE')."</th>
<th style=\"text-align: center;\">".$lang->_('STATUS')."</th>
<th style=\"text-align: center;\">".$lang->_('ACTION')."</th>
</tr></thead><tbody>";
if(!empty($user)){
foreach($user as $u){
@ -131,22 +131,22 @@ class editusers_panel extends admin_module{
$u['activestyle']='style="font-style:italic;"';
}
$panel->content.="<tr ".$u['activestyle'].">
<td style=\"text-align='center';\">".$u["uid"]."</td>
<td style=\"text-align='center';\">".$u["username"]."</td>
<td style=\"text-align='center';\">".$u["realname"]."</td>
<td style=\"text-align='center';\">".$u["role_name"]."</td>
<td style=\"text-align='center';\">".$u['activetext']."</td>";
<td style=\"text-align: center;\">".$u["uid"]."</td>
<td style=\"text-align: center;\">".$u["username"]."</td>
<td style=\"text-align: center;\">".$u["realname"]."</td>
<td style=\"text-align: center;\">".$u["role_name"]."</td>
<td style=\"text-align: center;\">".$u['activetext']."</td>";
if($u["uid"]==$session->userdata["uid"]){
$panel->content.="<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this,'".$lang->_('BADIDEA')."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
$panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this,'".$lang->_('BADIDEA')."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>";
}else{
$panel->content.="<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this, '".sprintf($lang->_('DELETEUSER'),$u["username"])."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
$panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, '".sprintf($lang->_('DELETEUSER'),$u["username"])."')\" href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;action=delete&amp;user=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editusers&amp;edituser=".$u["uid"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>";
}
}
}else{
$panel->content.="<tr>
<td style=\"text-align='center';\" colspan=\"5\">".$lang->_('NOUSERS')."</td>
<td style=\"text-align: center;\" colspan=\"5\">".$lang->_('NOUSERS')."</td>
</tr>";
}
$panel->content.="</tbody></table><br />";