Getting rid of PHP Warnings
This commit is contained in:
parent
a0229c48d6
commit
e2ca126d56
5 changed files with 44 additions and 44 deletions
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php global $session;
|
||||
/**
|
||||
* Project: BeCast WebEngine - simple site engine
|
||||
* File: /admin/addgroup.apnl.php
|
||||
|
@ -53,25 +53,25 @@ class addgroup_panel extends admin_module{
|
|||
}
|
||||
|
||||
}else{
|
||||
$result = $db->query("SELECT * FROM " . $config["prefix"] . "role_values");
|
||||
$panel->title="Gruppe anlegen";
|
||||
$panel->content='Hier kann man Benutzergruppen anlegen.';
|
||||
$panel->form(array("action"=>$config["path"]."/admin/index.php?panel=addgroup"));
|
||||
$panel->content.="<h3>Gruppename:</h3>";
|
||||
$panel->field(array("name"=>"name","typ"=>"text","value"=>$data["name"]));
|
||||
$panel->content.="<br /><br />";
|
||||
$panel->content.="<table width=\"90%\" cellspacing=\"2\">
|
||||
<tr>
|
||||
<th><strong>Rechte</strong></th>
|
||||
</tr>";
|
||||
while ($row = $db->fetch_array($result)){
|
||||
$panel->content.="<tr><td><strong>".$row["text"].":</strong><br />".$this->get_option($row["type"],$row["id"])."</td></tr>";
|
||||
}
|
||||
$panel->content.="</table><br />";
|
||||
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
|
||||
$panel->content.="<br />";
|
||||
$panel->submit();
|
||||
$panel->formClose();
|
||||
$result = $db->query("SELECT * FROM " . $config["prefix"] . "role_values");
|
||||
$panel->title="Gruppe anlegen";
|
||||
$panel->content='Hier kann man Benutzergruppen anlegen.';
|
||||
$panel->form(array("action"=>$config["path"]."/admin/index.php?panel=addgroup"));
|
||||
$panel->content.="<h3>Gruppename:</h3>";
|
||||
$panel->field(array("name"=>"name","typ"=>"text","value"=>""));
|
||||
$panel->content.="<br /><br />";
|
||||
$panel->content.="<table width=\"90%\" cellspacing=\"2\">
|
||||
<tr>
|
||||
<th><strong>Rechte</strong></th>
|
||||
</tr>";
|
||||
while ($row = $db->fetch_array($result)){
|
||||
$panel->content.="<tr><td><strong>".$row["text"].":</strong><br />".$this->get_option($row["type"],$row["id"])."</td></tr>";
|
||||
}
|
||||
$panel->content.="</table><br />";
|
||||
$panel->field(array("name"=>"send","typ"=>"hidden","value"=>"1"));
|
||||
$panel->content.="<br />";
|
||||
$panel->submit();
|
||||
$panel->formClose();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue