More CSS fixes

This commit is contained in:
genuineparts 2025-06-24 21:56:48 +02:00
parent 3f1708ea79
commit 88135762e6
11 changed files with 62 additions and 163 deletions

View file

@ -11,7 +11,7 @@ class module_contact extends admin_module{
$info["file"]="contact";
$info["author"]="BeCast";
$info["version"]="1.0.1";
$info["url"]="http://www.becast.at";
$info["url"]="https://www.becast.at";
return $info;
}
@ -26,7 +26,7 @@ class module_contact extends admin_module{
);");
$cid=$db->last_id();
$db->query("INSERT INTO `" . $config["prefix"] . "config` (`name`, `value`, `title`, `description`, `option`, `category`) VALUES
('contact_email', 'contact@example.com', 'E-Mailadresse', 'Die E-Mailadresse(n) an die Kontaktanfragen gesendet werden sollen (meherer Adressen mit Komma trennen).', 'text', ".$cid."),
('contact_email', 'contact@example.com', 'E-Mailadresse', 'Die E-Mailadresse(n) an die Kontaktanfragen gesendet werden sollen (mehrere Adressen mit Komma trennen).', 'text', ".$cid."),
('contact_captcha', '1', 'Captcha verwenden?', 'Soll bei der Kontaktaufnahme ein Captcha angezeigt werden?', 'yesno', ".$cid.");");
return TRUE;
}

View file

@ -1,4 +1,4 @@
<?php
<?php global $session;
/**
* Project: astat - simple site engine
* File: /modules/contact/contact.output.php

View file

@ -95,14 +95,14 @@ class edit_news_panel extends admin_module{
$news[]=$row;
}
$panel->title='Vorhandene Artikel';
$panel->content.='<table class="sortable" width="90%" cellspacing="2">
$panel->content.='<table class="sortable" style=\"width: 90%; border-spacing: 2px;\">
<tr>
<th align="center">ID</th>
<th align="center">Name</th>
<th align="center">Kategorien</th>
<th align="center">Aktiv</th>
<th align="center">User</th>
<th class="nosort sortcol" align="center" width="18%">Aktionen</th>
<th style=\"text-align: center;\">ID</th>
<th style=\"text-align: center;\">Name</th>
<th style=\"text-align: center;\">Kategorien</th>
<th style=\"text-align: center;\">Aktiv</th>
<th style=\"text-align: center;\">User</th>
<th class="nosort sortcol" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>';
if(!empty($news)){
foreach($news as $u){
@ -112,17 +112,17 @@ class edit_news_panel extends admin_module{
$u['a']='Nein';
}
$panel->content.='<tr>
<td align="center">'.$u['id'].'</td>
<td align="center">'.$u['title'].'</td>
<td align="center">'.$u['name'].'</td>
<td align="center">'.$u['a'].'</td>
<td align="center">'.$u['username'].'</td>';
$panel->content.='<td align="center"><a onclick="return confirmLink(this, "Willst du wirklich den News '.$u['title'].' l&ouml;schen? ")" href="'.$config['path'].'/admin/index.php?panel=edit_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=edit_news&amp;action=edit&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/wrench.png" /></a></td>
<td style=\"text-align: center;\">'.$u['id'].'</td>
<td style=\"text-align: center;\">'.$u['title'].'</td>
<td style=\"text-align: center;\">'.$u['name'].'</td>
<td style=\"text-align: center;\">'.$u['a'].'</td>
<td style=\"text-align: center;\">'.$u['username'].'</td>';
$panel->content.='<td style=\"text-align: center;\"><a onclick="return confirmLink(this, "Willst du wirklich den News '.$u['title'].' l&ouml;schen? ")" href="'.$config['path'].'/admin/index.php?panel=edit_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=edit_news&amp;action=edit&amp;id='.$u['id'].'"><img src="'.$config['path'].'/admin/images/icons/wrench.png" /></a></td>
</tr>';
}
}else{
$panel->content.='<tr>
<td align="center" colspan="7">Keine News vorhanden.</td>
<td style=\"text-align: center;\" colspan="7">Keine News vorhanden.</td>
</tr>';
}
$panel->content.='</table><br />';

View file

@ -85,7 +85,7 @@ class edit_text_panel extends admin_module{
$panel->select($karray,$_POST["menue"],"menue");
$panel->content.="<br />";
$panel->content.="<h3>Kategorien:</h3>
<table width=\"100%\">
<table style='width: 100%'>
<tr>";
$resultn = $db->query("SELECT `c_id` FROM `" . $config["prefix"] . "article_category` WHERE `a_id`='".intval($_GET['id'])."'");
while($rowa=$db->fetch_array($resultn)){
@ -125,7 +125,7 @@ class edit_text_panel extends admin_module{
$panel->formClose();
}elseif($_GET["action"]=="delete" && $_GET["id"]){
$db->query("DELETE FROM `" . $config["prefix"] . "article` WHERE `id`='".intval($_GET["id"])."'");
$db->query("DELETE FROM `" . $config["prefix"] . "article_menue` where `a_id`='".$id."'");
$db->query("DELETE FROM `" . $config["prefix"] . "article_menue` where `a_id`='".intval($_GET["id"])."'");
$panel->admin_message("Artikel gel&ouml;scht!","Der Artikel wurde erfolgreich gel&ouml;scht.",True,"edit_text",3);
}
@ -144,15 +144,15 @@ class edit_text_panel extends admin_module{
$articles[]=$row;
}
$panel->title="Vorhandene Artikel";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\">
$panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr>
<th align=\"center\">ID</th>
<th align=\"center\">Name</th>
<th align=\"center\">URL</th>
<th align=\"center\">Kategorien</th>
<th align=\"center\">Aktiv</th>
<th align=\"center\">User</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th>
<th style=\"text-align: center;\">ID</th>
<th style=\"text-align: center;\">Name</th>
<th style=\"text-align: center;\">URL</th>
<th style=\"text-align: center;\">Kategorien</th>
<th style=\"text-align: center;\">Aktiv</th>
<th style=\"text-align: center;\">User</th>
<th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>";
if(!empty($articles)){
foreach($articles as $u){
@ -162,18 +162,18 @@ class edit_text_panel extends admin_module{
$u["a"]="Nein";
}
$panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td>
<td align=\"center\">".$u["title"]."</td>
<td align=\"center\">".$u["url"]."</td>
<td align=\"center\">".$u["categoryname"]."</td>
<td align=\"center\">".$u["a"]."</td>
<td align=\"center\">".$u["username"]."</td>";
$panel->content.="<td align=\"center\"><a onclick=\"return confirmLink(this, 'Willst du wirklich den Artikel ".$u["title"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=edit_text&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=edit_text&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
<td style=\"text-align: center;\">".$u["id"]."</td>
<td style=\"text-align: center;\">".$u["title"]."</td>
<td style=\"text-align: center;\">".$u["url"]."</td>
<td style=\"text-align: center;\">".$u["categoryname"]."</td>
<td style=\"text-align: center;\">".$u["a"]."</td>
<td style=\"text-align: center;\">".$u["username"]."</td>";
$panel->content.="<td style=\"text-align: center;\"><a onclick=\"return confirmLink(this, 'Willst du wirklich den Artikel ".$u["title"]." l&ouml;schen? ')\" href=\"".$config["path"]."/admin/index.php?panel=edit_text&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=edit_text&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>";
}
}else{
$panel->content.="<tr>
<td align=\"center\" colspan=\"7\">Keine Artikel vorhanden.</td>
<td style=\"text-align: center;\" colspan=\"7\">Keine Artikel vorhanden.</td>
</tr>";
}
$panel->content.="</table><br />";

View file

@ -125,31 +125,31 @@ class editcategory_text_panel extends admin_module{
$articles[]=$row;
}
$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>
<th align=\"center\">ID</th>
<th align=\"center\">Name</th>
<th align=\"center\">Bild</th>
<th align=\"center\">Aktiv</th>
<th class=\"nosort sortcol\" align=\"center\" width=\"18%\">Aktionen</th>
<th style=\"text-align: center;\">ID</th>
<th style=\"text-align: center;\">Name</th>
<th style=\"text-align: center;\">Bild</th>
<th style=\"text-align: center;\">Aktiv</th>
<th class=\"nosort sortcol\" style=\"text-align: center; width: 18%\">Aktionen</th>
</tr>";
if(!empty($articles)){
foreach($articles as $u){
$panel->content.="<tr>
<td align=\"center\">".$u["id"]."</td>
<td align=\"center\">".$u["categoryname"]."</td>
<td align=\"center\">".$u["picture"]."</td>";
<td style=\"text-align: center;\">".$u["id"]."</td>
<td style=\"text-align: center;\">".$u["categoryname"]."</td>
<td style=\"text-align: center;\">".$u["picture"]."</td>";
if($u["active"]=="true"){
$panel->content.="<td align=\"center\">Ja</td>";
$panel->content.="<td style=\"text-align: center;\">Ja</td>";
}else{
$panel->content.="<td align=\"center\">Nein</td>";
$panel->content.="<td style=\"text-align: center;\">Nein</td>";
}
$panel->content.="<td 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_text&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_text&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_text&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_text&amp;action=edit&amp;id=".$u["id"]."\"><img src=\"".$config["path"]."/admin/images/icons/wrench.png\" /></a></td>
</tr>";
}
}else{
$panel->content.="<tr>
<td align=\"center\" colspan=\"5\">Keine Kategorien vorhanden.</td>
<td style=\"text-align: center;\" colspan=\"5\">Keine Kategorien vorhanden.</td>
</tr>";
}
$panel->content.="</table><br />";
@ -157,7 +157,8 @@ class editcategory_text_panel extends admin_module{
}
function meta(){
$meta.='<script type="text/javascript" src="'.$config["path"].'/js/scriptaculous/prototype.js"></script>
global $config;
$meta ='<script type="text/javascript" src="'.$config["path"].'/js/scriptaculous/prototype.js"></script>
<script src="'.$config["path"].'/js/fastinit.js" type="text/javascript">
</script>
<script src="'.$config["path"].'/js/tablesort.js" type="text/javascript">