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

@ -60,7 +60,7 @@ class config_panel extends admin_module{
$panel->content.="<h2 class=\"accordion_toggle\">".$key."</h2>
<div class=\"accordion_content\"><table width=\"700px\">";
foreach($val as $v){
$panel->content.="<tr><td><strong>".$v["title"]."</strong><br /><span style=\"font-size:small;\">".$v["description"]."</span><br />".$this->get_option($v["option"],$v["name"])."</td></tr>";
$panel->content.="<tr><td><strong>".$v["title"]."</strong><br /><span style=\"font-size:small;\">".$v["description"]."</span><br />".$panel->get_option($v["option"],$v["name"])."</td></tr>";
}
$panel->content.="</table></div>";
@ -74,99 +74,6 @@ class config_panel extends admin_module{
//bottomAccordion.activate($$(\'vertical_container .accordion_toggle\')[0]);
</script>';
}
function get_option($option,$name) {
global $config,$db,$panel,$userinfo,$admin,$root,$firephp,$lang;
if($option=="yesno"){
$checked["yes"]="";
$checked["no"]="";
if($config[$name]==1||$config[$name]==True||$config[$name]=="yes"){
$checked["yes"]='checked="checked"';
}else{
$checked["no"]='checked="checked"';
}
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),$checked["yes"],TRUE);
$yn.="Ja";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),$checked["no"],TRUE);
$yn.="Nein";
return $yn;
}
if($option=="onoff"){
$checked["on"]="";
$checked["off"]="";
if($config[$name]==1||$config[$name]==True||$config[$name]=="on"){
$checked["on"]='checked="checked"';
}else{
$checked["off"]='checked="checked"';
}
$yn=$panel->radio(array("name"=>$name,"value"=>"1"),$checked["on"],TRUE);
$yn.="An";
$yn.=$panel->radio(array("name"=>$name,"value"=>"0"),$checked["off"],TRUE);
$yn.="Aus";
return $yn;
}
if($option=="language"){
$langs=$lang->getlanguages();
foreach($langs as $lang){
$values[$lang['name']]=$lang['short'];
}
$select=$panel->select($values,$config[$name],$name,"",TRUE);
return $select;
}
if($option=="text"){
$text=$panel->field(array("name"=>$name,"typ"=>"text","value"=>$config[$name]),"",TRUE);
return $text;
}
if(str_contains($option, "wysiwyg")){
$string=str_replace("wysiwyg(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$a_name[]=$substr[0];
$value[]=$substr[1];
}
if(is_array($sarr)){
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name], $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"class=\"mceEditor\"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name]),"class=\"mceEditor\"",TRUE);
}
return $text;
}
if(str_contains($option, "textarea")){
$string=str_replace("textarea(","",substr($option, 0, -1));
$sarr=explode(";",$string);
if(count($sarr)>1) {
foreach ($sarr as $str) {
$substr = explode("|", $str);
$a_name[] = $substr[0];
$value[] = $substr[1];
}
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name], $a_name[0]=>$value[0],$a_name[1]=>$value[1]),"",TRUE);
}else{
$text=$panel->textarea(array("name"=>$name,"value"=>$config[$name]),"",TRUE);
}
return $text;
}
if(str_contains($option, "select")){
//$text=$panel->field("text",$name,"value=\"".$config[$name]."\"",TRUE);
$string=str_replace("select(","",substr($option, 0, -1));
$sarr=explode(";",$string);
foreach($sarr as $str){
$substr=explode("|",$str);
$values[$substr[0]]=$substr[1];
}
$select=$panel->select($values,$config[$name],$name,"",TRUE);
return $select;
}
}
function meta() {
global $module,$config,$db,$panel,$userinfo,$admin,$root;
$meta='<script type="text/javascript" src="/thirdparty/tiny/tiny_mce_gzip.js"></script>

View file

@ -97,7 +97,7 @@ class editgroup_panel extends admin_module{
$role[]=$row;
}
$panel->title="Vorhandene Rollen";
$panel->content.="<table class=\"sortable\" width=\"90%\" cellspacing=\"2\">
$panel->content.="<table class=\"sortable\" style=\"width: 90%; border-spacing: 2px;\">
<tr>
<th style=\"text-align: center;\">ID</th>
<th style=\"text-align: center;\">Name</th>

View file

@ -46,7 +46,7 @@ class editusers_panel extends admin_module{
if($_POST["password"]!=""){
$pwd=", `password`='".hash("sha256",$salt.$db->escape($_POST["password"]))."', `loginkey`='".$_POST['key']."',`salt` = '".$salt."'";
}
$plugin->run_hook('admin_user_before_update',array('data'=>$_POST,'key'=>$key,'user_fid'=>$session->userdata['fuid']));
$plugin->run_hook('admin_user_before_update',array('data'=>$_POST,'user_fid'=>$session->userdata['fuid']));
$db->query("UPDATE `" . $config["prefix"] . "users` SET `username`='".$db->escape($_POST["name"])."',`realname`='".$db->escape($_POST["realname"])."',`email`='".$db->escape($_POST["email"])."',`from`='".$db->escape($_POST["from"])."',`gender`='".$db->escape($_POST["gender"])."',`bio`='".$db->escape($_POST["bio"])."',`homepage`='".$db->escape($_POST["homepage"])."',`role`='".$db->escape($_POST["role"])."',`active`='".$db->escape($_POST["active"])."',".$pwd." WHERE `uid`='".intval($_POST["uid"])."'");
$_POST['user_fid']=$session->userdata['fuid'];
$plugin->run_hook('admin_user_after_update',array('data'=>$_POST));

View file

@ -74,11 +74,11 @@ class versions_panel extends admin_module{
foreach($versions as $v){
if($v["name"]==$mod["name"]){
if($mod["ver"]<$v["ver"]){
$panel->content.="<td style=\"text-align='center';\"><a href=\"https://code.ehwurscht.at/genuineparts/BeCastWebEngine/src/branch/main/inc/".urlencode($v["file"])."\">Neue Version verf&uuml;gbar!</a></td>";
$panel->content.="<td style=\"text-align: center;\"><a href=\"https://code.ehwurscht.at/genuineparts/BeCastWebEngine/src/branch/main/inc/".urlencode($v["file"])."\">Neue Version verf&uuml;gbar!</a></td>";
}elseif($mod["ver"]==$v["ver"]){
$panel->content.="<td style=\"text-align='center';\">Aktuell</td>";
$panel->content.="<td style=\"text-align: center;\">Aktuell</td>";
}else{
$panel->content.="<td style=\"text-align='center';\">Modified file?</td>";
$panel->content.="<td style=\"text-align: center;\">Modified file?</td>";
}
}
}
@ -92,11 +92,11 @@ class versions_panel extends admin_module{
foreach($versions as $v){
if($v["name"]==$mod["name"]){
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"]){
$panel->content.="<td style=\"text-align:'center';\">Aktuell</td>";
$panel->content.="<td style=\"text-align: center;\">Aktuell</td>";
}else{
$panel->content.="<td style=\"text-align:'center';\">Modified file?</td>";
$panel->content.="<td style=\"text-align: center;\">Modified file?</td>";
}
}
}

View file

@ -184,11 +184,6 @@ class Core{
$nav_content=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$nav_content);
$nav_content=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$nav_content);
}
if($session->userdata['allow_grimdark']!=0){
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$nav_content);
}else{
$nav_content=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$nav_content);
}
if(trim($nav_content)!=''){
$navtpl->assign('navtitle', $nav_title);
@ -301,6 +296,7 @@ class Core{
*
*/
function get_navbits(){
$navs = "";
foreach($this->navbits as $key => $nav){
if(isset($this->navbits[$key+1])){
if($nav['url']==''){
@ -316,7 +312,7 @@ class Core{
}
}
if(!$navs){
if(empty($navs)){
$navs=$bit;
}else{
$navs.=' / '.$bit;
@ -442,11 +438,6 @@ class Core{
$row['content']=preg_replace("/\{logged_in\}(.*?)\{\/logged_in\}/si","",$row['content']);
$row['content']=preg_replace("/\{logged_out\}(.*?)\{\/logged_out\}/si","\\1",$row['content']);
}
if($session->userdata['allow_grimdark']!=0){
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","\\1",$row['content']);
}else{
$row['content']=preg_replace("/\{allow_gd\}(.*?)\{\/allow_gd\}/si","",$row['content']);
}
$content.=$row['content'];
}
}

View file

@ -26,7 +26,7 @@
*/
$module["panel"]["name"]="Panel Class";
$module["panel"]["ver"]="0.3.7";
$module["panel"]["ver"]="0.3.8";
class panel {
var string $sidebar="";
var string $page="";

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">