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

@ -60,7 +60,7 @@ class addgroup_panel extends admin_module{
$panel->content.="<h3>Gruppename:</h3>"; $panel->content.="<h3>Gruppename:</h3>";
$panel->field(array("name"=>"name","typ"=>"text","value"=>"")); $panel->field(array("name"=>"name","typ"=>"text","value"=>""));
$panel->content.="<br /><br />"; $panel->content.="<br /><br />";
$panel->content.="<table width=\"90%\" cellspacing=\"2\"> $panel->content.="<table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th><strong>Rechte</strong></th> <th><strong>Rechte</strong></th>
</tr>"; </tr>";

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: astat - simple site engine * Project: astat - simple site engine
* File: /admin/editusers.apnl.php * File: /admin/editusers.apnl.php
@ -54,27 +54,27 @@ class banips_panel extends admin_module{
$ips[]=$row; $ips[]=$row;
} }
$panel->title=$lang->_('BANNEDIPS'); $panel->title=$lang->_('BANNEDIPS');
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th align=\"center\">".$lang->_('ID')."</th> <th style=\"text-align: center;\">".$lang->_('ID')."</th>
<th class=\"sortable-text\" align=\"center\">".$lang->_('IP')."</th> <th class=\"sortable-text\" style=\"text-align: center;\">".$lang->_('IP')."</th>
<th align=\"center\">".$lang->_('DATE')."</th> <th style=\"text-align: center;\">".$lang->_('DATE')."</th>
<th align=\"center\">".$lang->_('REASON')."</th> <th style=\"text-align: center;\">".$lang->_('REASON')."</th>
<th class=\"nosort\" align=\"center\">".$lang->_('ACTION')."</th> <th class=\"nosort\" style=\"text-align: center;\">".$lang->_('ACTION')."</th>
</tr>"; </tr>";
if(!empty($ips)){ if(!empty($ips)){
foreach($ips as $i){ foreach($ips as $i){
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\">".$i['id']."</td> <td style=\"text-align: center;\">".$i['id']."</td>
<td align=\"center\">".$i['ip']."</td> <td style=\"text-align: center;\">".$i['ip']."</td>
<td align=\"center\">".date('d.m.Y, H:i',$i['date'])."</td> <td style=\"text-align: center;\">".date('d.m.Y, H:i',$i['date'])."</td>
<td align=\"center\">".$i['reason']."</td>"; <td style=\"text-align: center;\">".$i['reason']."</td>";
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Delete this ban?')\" href=\"".$config["path"]."/admin/index.php?panel=banips&amp;action=delete&amp;id=".$i["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Delete this ban?')\" href=\"".$config["path"]."/admin/index.php?panel=banips&amp;action=delete&amp;id=".$i["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a></td>
</tr>"; </tr>";
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">".$lang->_('NOBANNEDIPS')."</td> <td style=\"text-align: center;\" colspan=\"5\">".$lang->_('NOBANNEDIPS')."</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";

View file

@ -61,7 +61,7 @@ class editgroup_panel extends admin_module{
$panel->content.="<h3>Gruppename:</h3>"; $panel->content.="<h3>Gruppename:</h3>";
$panel->field(array("name"=>"name","typ"=>"text","value"=>$data["role_name"])); $panel->field(array("name"=>"name","typ"=>"text","value"=>$data["role_name"]));
$panel->content.="<br /><br />"; $panel->content.="<br /><br />";
$panel->content.="<table width=\"90%\" cellspacing=\"2\"> $panel->content.="<table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th><strong>Rechte</strong></th> <th><strong>Rechte</strong></th>
</tr>"; </tr>";
@ -99,26 +99,26 @@ class editgroup_panel extends admin_module{
$panel->title="Vorhandene Rollen"; $panel->title="Vorhandene Rollen";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\">
<tr> <tr>
<th align=\"center\">ID</th> <th style=\"text-align: center;\">ID</th>
<th align=\"center\">Name</th> <th style=\"text-align: center;\">Name</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th> <th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>"; </tr>";
if(!empty($role)){ if(!empty($role)){
foreach($role as $u){ foreach($role as $u){
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td> <td style=\"text-align: center;\">".$u["id"]."</td>
<td align=\"center\">".$u["role_name"]."</td>"; <td style=\"text-align: center;\">".$u["role_name"]."</td>";
if(!$u["special_group"]){ if(!$u["special_group"]){
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Gruppe ".$u["role_name"]." l&ouml;schen? Alle Mitglieder dieser Gruppe werden der Gruppe User zugeordnet')\" href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;action=delete&amp;group=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Gruppe ".$u["role_name"]." l&ouml;schen? Alle Mitglieder dieser Gruppe werden der Gruppe User zugeordnet')\" href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;action=delete&amp;group=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
}else{ }else{
$panel->content.="<td align=\"center\"><a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td></td> $panel->content.="<td style=\"text-align: center;\"><a href=\"".$config["path"]."/admin/index.php?panel=editgroup&amp;editgroup=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td></td>
</tr>"; </tr>";
} }
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Rollen vorhanden.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Rollen vorhanden.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";

View file

@ -108,15 +108,15 @@ class editusers_panel extends admin_module{
$user[]=$row; $user[]=$row;
} }
$panel->title=$lang->_('USERS'); $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> <thead>
<tr> <tr>
<th style=\"text-align='center';\">".$lang->_('ID')."</th> <th style=\"text-align: center;\">".$lang->_('ID')."</th>
<th style=\"text-align='center';\">".$lang->_('USERNAME')."</th> <th style=\"text-align: center;\">".$lang->_('USERNAME')."</th>
<th style=\"text-align='center';\">".$lang->_('REALNAME')."</th> <th style=\"text-align: center;\">".$lang->_('REALNAME')."</th>
<th style=\"text-align='center';\">".$lang->_('ROLE')."</th> <th style=\"text-align: center;\">".$lang->_('ROLE')."</th>
<th style=\"text-align='center';\">".$lang->_('STATUS')."</th> <th style=\"text-align: center;\">".$lang->_('STATUS')."</th>
<th style=\"text-align='center';\">".$lang->_('ACTION')."</th> <th style=\"text-align: center;\">".$lang->_('ACTION')."</th>
</tr></thead><tbody>"; </tr></thead><tbody>";
if(!empty($user)){ if(!empty($user)){
foreach($user as $u){ foreach($user as $u){
@ -131,22 +131,22 @@ class editusers_panel extends admin_module{
$u['activestyle']='style="font-style:italic;"'; $u['activestyle']='style="font-style:italic;"';
} }
$panel->content.="<tr ".$u['activestyle']."> $panel->content.="<tr ".$u['activestyle'].">
<td style=\"text-align='center';\">".$u["uid"]."</td> <td style=\"text-align: center;\">".$u["uid"]."</td>
<td style=\"text-align='center';\">".$u["username"]."</td> <td style=\"text-align: center;\">".$u["username"]."</td>
<td style=\"text-align='center';\">".$u["realname"]."</td> <td style=\"text-align: center;\">".$u["realname"]."</td>
<td style=\"text-align='center';\">".$u["role_name"]."</td> <td style=\"text-align: center;\">".$u["role_name"]."</td>
<td style=\"text-align='center';\">".$u['activetext']."</td>"; <td style=\"text-align: center;\">".$u['activetext']."</td>";
if($u["uid"]==$session->userdata["uid"]){ 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>"; </tr>";
}else{ }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>"; </tr>";
} }
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\" colspan=\"5\">".$lang->_('NOUSERS')."</td> <td style=\"text-align: center;\" colspan=\"5\">".$lang->_('NOUSERS')."</td>
</tr>"; </tr>";
} }
$panel->content.="</tbody></table><br />"; $panel->content.="</tbody></table><br />";

View file

@ -65,13 +65,13 @@ class module_panel extends admin_module{
$panel->title="Modulverwaltung"; $panel->title="Modulverwaltung";
$panel->content.="<h2>Installierte Module</h2><br /> $panel->content.="<h2>Installierte Module</h2><br />
<table width=\"90%\" cellspacing=\"2\"> <table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th style=\"text-align='center';\">Modul</th> <th style=\"text-align: center;\">Modul</th>
<th style=\"text-align='center';\">Version</th> <th style=\"text-align: center;\">Version</th>
<th style=\"text-align='center';\">Autor</th> <th style=\"text-align: center;\">Autor</th>
<th style=\"text-align='center';\">Homepage</th> <th style=\"text-align: center;\">Homepage</th>
<th style=\"text-align='center';\">Aktion</th> <th style=\"text-align: center;\">Aktion</th>
</tr>"; </tr>";
if(!empty($core->mod_)){ if(!empty($core->mod_)){
foreach($core->mod_ as $mod){ foreach($core->mod_ as $mod){
@ -88,11 +88,11 @@ class module_panel extends admin_module{
$depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps; $depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps;
} }
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$mod["name"].$depends."</td> <td style=\"text-align: center;\">".$mod["name"].$depends."</td>
<td style=\"text-align='center';\">".$mod["version"]."</td> <td style=\"text-align: center;\">".$mod["version"]."</td>
<td style=\"text-align='center';\">".$mod["author"]."</td> <td style=\"text-align: center;\">".$mod["author"]."</td>
<td style=\"text-align='center';\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td> <td style=\"text-align: center;\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this, 'Willst du wirklich das Modul ".$mod["name"]." deinstallieren? Alle Daten diese Plugins werden gel&ouml;scht!')\" href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=uninstall&amp;module=".$mod["file"]."\">Deinstallieren</a></td> <td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich das Modul ".$mod["name"]." deinstallieren? Alle Daten diese Plugins werden gel&ouml;scht!')\" href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=uninstall&amp;module=".$mod["file"]."\">Deinstallieren</a></td>
</tr>"; </tr>";
unset($deps); unset($deps);
unset($depends); unset($depends);
@ -100,19 +100,19 @@ class module_panel extends admin_module{
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Module verf&uuml;gbar.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Module verf&uuml;gbar.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";
$panel->content.="<h2>Nicht Installierte Module</h2><br />"; $panel->content.="<h2>Nicht Installierte Module</h2><br />";
$panel->content.="<table width=\"90%\" cellspacing=\"2\"> $panel->content.="<table style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th style=\"text-align='center';\">Modul</th> <th style=\"text-align: center;\">Modul</th>
<th style=\"text-align='center';\">Version</th> <th style=\"text-align: center;\">Version</th>
<th style=\"text-align='center';\">Autor</th> <th style=\"text-align: center;\">Autor</th>
<th style=\"text-align='center';\">Homepage</th> <th style=\"text-align: center;\">Homepage</th>
<th style=\"text-align='center';\">Aktion</th> <th style=\"text-align: center;\">Aktion</th>
</tr>"; </tr>";
$modules=$this->avaiable_modules(); $modules=$this->avaiable_modules();
@ -131,11 +131,11 @@ class module_panel extends admin_module{
$depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps; $depends.='<br /><span style="font-size: xx-small;">h&auml;ngt ab von: '.$deps;
} }
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$mod["name"].$depends."</td> <td style=\"text-align: center;\">".$mod["name"].$depends."</td>
<td style=\"text-align='center';\">".$mod["version"]."</td> <td style=\"text-align: center;\">".$mod["version"]."</td>
<td style=\"text-align='center';\">".$mod["author"]."</td> <td style=\"text-align: center;\">".$mod["author"]."</td>
<td style=\"text-align='center';\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td> <td style=\"text-align: center;\"><a href=\"".$mod["url"]."\">".$mod["url"]."</a></td>
<td style=\"text-align='center';\"><a href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=install&amp;module=".$mod["file"]."\">Installieren</a></td> <td style=\"text-align: center;\"><a href=\"".$config["path"]."/admin/index.php?panel=module&amp;action=install&amp;module=".$mod["file"]."\">Installieren</a></td>
</tr>"; </tr>";
unset($deps); unset($deps);
unset($depends); unset($depends);
@ -143,7 +143,7 @@ class module_panel extends admin_module{
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Module verf&uuml;gbar.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Module verf&uuml;gbar.</td>
</tr>"; </tr>";
} }
$panel->content.="</table>"; $panel->content.="</table>";

View file

@ -1,4 +1,4 @@
<?php <?php global $session;
/** /**
* Project: BeCast WebEngine - simple site engine * Project: BeCast WebEngine - simple site engine
* File: /admin/navigation.apnl.php * File: /admin/navigation.apnl.php

View file

@ -58,19 +58,19 @@ class versions_panel extends admin_module{
} }
$vers=$core->ver_major.".".$core->ver_minor.".".$core->ver_rev; $vers=$core->ver_major.".".$core->ver_minor.".".$core->ver_rev;
$panel->title="Moduleversionen"; $panel->title="Moduleversionen";
$panel->content.="<table style=\"width='80%';\"> $panel->content.="<table style=\"width: 80%;\">
<tr> <tr>
<th style=\"text-align='center';\">Modul</th> <th style=\"text-align: center;\">Modul</th>
<th style=\"text-align='center';\">Version</th> <th style=\"text-align: center;\">Version</th>
<th style=\"text-align='center';\">Update</th> <th style=\"text-align: center;\">Update</th>
</tr>"; </tr>";
if($out["release"]["version"]>$vers){ if($out["release"]["version"]>$vers){
$panel->content.="<tr><td colspan=\"3\">Diese Version ist nicht mehr aktuell.<br />Besuche <a href=\"https://webengine.becast.at\">die Projektseite</a> f&uuml;r ein Update</td></tr>"; $panel->content.="<tr><td colspan=\"3\">Diese Version ist nicht mehr aktuell.<br />Besuche <a href=\"https://webengine.becast.at\">die Projektseite</a> f&uuml;r ein Update</td></tr>";
}else{ }else{
foreach($module as $mod){ foreach($module as $mod){
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$mod["name"]."</td> <td style=\"text-align: center;\">".$mod["name"]."</td>
<td style=\"text-align='center';\">".$mod["ver"]."</td>"; <td style=\"text-align: center;\">".$mod["ver"]."</td>";
foreach($versions as $v){ foreach($versions as $v){
if($v["name"]==$mod["name"]){ if($v["name"]==$mod["name"]){
if($mod["ver"]<$v["ver"]){ if($mod["ver"]<$v["ver"]){
@ -87,16 +87,16 @@ class versions_panel extends admin_module{
} }
foreach($core->mod_ as $mod){ foreach($core->mod_ as $mod){
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\"><a href=\"".$mod["url"]."\">".$mod["name"]."<a></td> <td style=\"text-align: center;\"><a href=\"".$mod["url"]."\">".$mod["name"]."<a></td>
<td align=\"center\">".$mod["version"]."</td>"; <td style=\"text-align: center;\">".$mod["version"]."</td>";
foreach($versions as $v){ foreach($versions as $v){
if($v["name"]==$mod["name"]){ if($v["name"]==$mod["name"]){
if($mod["version"]<$v["ver"]){ if($mod["version"]<$v["ver"]){
$panel->content.="<td style=\"text-align='center';\"><a href=\"http://projectx.becast.at/get_file.php?file=".urlencode($v["name"])."\">Neue Version verf&uuml;gbar!</a></td>"; $panel->content.="<td style=\"text-align:'center';\"><a href=\"http://projectx.becast.at/get_file.php?file=".urlencode($v["name"])."\">Neue Version verf&uuml;gbar!</a></td>";
}elseif($mod["version"]==$v["ver"]){ }elseif($mod["version"]==$v["ver"]){
$panel->content.="<td style=\"text-align='center';\">Aktuell</td>"; $panel->content.="<td style=\"text-align:'center';\">Aktuell</td>";
}else{ }else{
$panel->content.="<td style=\"text-align='center';\">Modified file?</td>"; $panel->content.="<td style=\"text-align:'center';\">Modified file?</td>";
} }
} }
} }
@ -108,34 +108,34 @@ class versions_panel extends admin_module{
}else{ }else{
$panel->title="Moduleversionen"; $panel->title="Moduleversionen";
$panel->content.="Die Versionpr&uuml;fung ist fehlgeschlagen."; $panel->content.="Die Versionpr&uuml;fung ist fehlgeschlagen.";
$panel->content.="<table style=\"width='80%';\"> $panel->content.="<table style=\"width: 80%;\">
<tr> <tr>
<th style=\"text-align='center';\">Modul</th> <th style=\"text-align: center;\">Modul</th>
<th style=\"text-align='center';\">Version</th> <th style=\"text-align: center;\">Version</th>
</tr>"; </tr>";
foreach($module as $mod){ foreach($module as $mod){
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$mod["name"]."</td> <td style=\"text-align: center;\">".$mod["name"]."</td>
<td style=\"text-align='center';\">".$mod["ver"]."</td>"; <td style=\"text-align: center;\">".$mod["ver"]."</td>";
$panel->content.="</tr>"; $panel->content.="</tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";
$panel->parse_page(); $panel->parse_page();
} }
$panel->title="Datei Infos"; $panel->title="Datei Infos";
$panel->content.="<table style=\"width='80%';\"> $panel->content.="<table style=\"width: 80%;\">
<tr> <tr>
<th style=\"text-align='center';\">Datei</th> <th style=\"text-align: center;\">Datei</th>
<th style=\"text-align='center';\">Gr&ouml;&szlig;e</th> <th style=\"text-align: center;\">Gr&ouml;&szlig;e</th>
<th style=\"text-align='center';\">zuletzt Ge&auml;ndert</th> <th style=\"text-align: center;\">zuletzt Ge&auml;ndert</th>
</tr>"; </tr>";
foreach($dir_objects as $files){ foreach($dir_objects as $files){
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$files["name"]."</td> <td style=\"text-align: center;\">".$files["name"]."</td>
<td style=\"text-align='center';\">".$files["size"]."</td> <td style=\"text-align: center;\">".$files["size"]."</td>
<td style=\"text-align='center';\">".$files["time"]."</td> <td style=\"text-align: center;\">".$files["time"]."</td>
</tr>"; </tr>";
} }

View file

@ -125,31 +125,31 @@ class editcategory_news_panel extends admin_module{
$articles[]=$row; $articles[]=$row;
} }
$panel->title="Vorhandene Kategorien"; $panel->title="Vorhandene Kategorien";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\"> $panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr> <tr>
<th style=\"text-align='center';\">ID</th> <th style=\"text-align: center;\">ID</th>
<th style=\"text-align='center';\">Name</th> <th style=\"text-align: center;\">Name</th>
<th style=\"text-align='center';\">Bild</th> <th style=\"text-align: center;\">Bild</th>
<th style=\"text-align='center';\">Aktiv</th> <th style=\"text-align: center;\">Aktiv</th>
<th class=\"nosort sortcol\" style=\"text-align='center';\" width=\"18%\">Aktionen</th> <th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>"; </tr>";
if(!empty($articles)){ if(!empty($articles)){
foreach($articles as $u){ foreach($articles as $u){
$panel->content.="<tr> $panel->content.="<tr>
<td style=\"text-align='center';\">".$u["id"]."</td> <td style=\"text-align: center;\">".$u["id"]."</td>
<td style=\"text-align='center';\">".$u["name"]."</td> <td style=\"text-align: center;\">".$u["name"]."</td>
<td style=\"text-align='center';\">".$u["picture"]."</td>"; <td style=\"text-align: center;\">".$u["picture"]."</td>";
if($u["active"]=="true"){ if($u["active"]=="true"){
$panel->content.="<td style=\"text-align='center';\">Ja</td>"; $panel->content.="<td style=\"text-align: center;\">Ja</td>";
}else{ }else{
$panel->content.="<td style=\"text-align='center';\">Nein</td>"; $panel->content.="<td style=\"text-align: center;\">Nein</td>";
} }
$panel->content.="<td style=\"text-align='center';\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Kategorie ".$u["categoryname"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td> $panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich die Kategorie ".$u["categoryname"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=delete&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/delete.png\" /></a> <a href=\"".$config["path"]."/admin/index.php?panel=editcategory_news&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>"; </tr>";
} }
}else{ }else{
$panel->content.="<tr> $panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Kategorien vorhanden.</td> <td style=\"text-align: center;\" colspan=\"5\">Keine Kategorien vorhanden.</td>
</tr>"; </tr>";
} }
$panel->content.="</table><br />"; $panel->content.="</table><br />";