mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 16:32:20 +00:00
Verwaltung für Raumtypen hinzugefügt
This commit is contained in:
+17
-16
@@ -32,29 +32,28 @@ class ort extends basis_db
|
||||
|
||||
//Tabellenspalten
|
||||
public $ort_kurzbz; // string
|
||||
public $bezeichnung; // string
|
||||
public $planbezeichnung; // string
|
||||
public $bezeichnung; // string
|
||||
public $planbezeichnung;// string
|
||||
public $max_person; // integer
|
||||
public $lehre; // boolean
|
||||
public $reservieren; // boolean
|
||||
public $aktiv; // boolean
|
||||
public $lageplan; // oid
|
||||
public $dislozierung; // smallint
|
||||
public $lehre; // boolean
|
||||
public $reservieren; // boolean
|
||||
public $aktiv; // boolean
|
||||
public $lageplan; // text
|
||||
public $dislozierung; // smallint
|
||||
public $kosten; // numeric(8,2)
|
||||
public $ausstattung;
|
||||
public $stockwerk; // integer
|
||||
public $ausstattung; // text
|
||||
public $stockwerk; // integer
|
||||
public $standort_id; // varchar(16)
|
||||
public $telefonklappe; // varchar(8)
|
||||
public $telefonklappe; // varchar(8)
|
||||
public $updateamum; // timestamp without timezone
|
||||
public $updatevon; // varchar(32)
|
||||
public $insertamum; // timestamp without timezone
|
||||
public $insertvon; // varchar(32)
|
||||
public $content_id;
|
||||
public $content_id; // integer
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
* @param $conn Connection zur DB
|
||||
* $ort_kurzbz Kurzbz des zu ladenden Ortes
|
||||
* @param $ort_kurzbz Kurzbz des zu ladenden Ortes
|
||||
*/
|
||||
public function __construct($ort_kurzbz=null)
|
||||
{
|
||||
@@ -207,7 +206,7 @@ class ort extends basis_db
|
||||
{
|
||||
//Neuen Datensatz anlegen
|
||||
$qry = 'INSERT INTO public.tbl_ort (ort_kurzbz, bezeichnung, planbezeichnung, max_person, aktiv, lehre, reservieren, lageplan,
|
||||
dislozierung, kosten, stockwerk, standort_id, telefonklappe, insertamum, insertvon, updateamum, updatevon, content_id) VALUES ('.
|
||||
dislozierung, kosten, stockwerk, standort_id, telefonklappe, insertamum, insertvon, updateamum, updatevon, content_id,ausstattung) VALUES ('.
|
||||
$this->db_add_param($this->ort_kurzbz).', '.
|
||||
$this->db_add_param($this->bezeichnung).', '.
|
||||
$this->db_add_param($this->planbezeichnung).', '.
|
||||
@@ -225,7 +224,8 @@ class ort extends basis_db
|
||||
$this->db_add_param($this->insertvon).','.
|
||||
$this->db_add_param($this->updateamum).','.
|
||||
$this->db_add_param($this->updatevon).','.
|
||||
$this->db_add_param($this->content_id).');';
|
||||
$this->db_add_param($this->content_id).','.
|
||||
$this->db_add_param($this->ausstattung).');';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -235,6 +235,7 @@ class ort extends basis_db
|
||||
'bezeichnung='.$this->db_add_param($this->bezeichnung).', '.
|
||||
'planbezeichnung='.$this->db_add_param($this->planbezeichnung).', '.
|
||||
'max_person='.$this->db_add_param($this->max_person).', '.
|
||||
'ausstattung='.$this->db_add_param($this->ausstattung).','.
|
||||
'aktiv='.$this->db_add_param($this->aktiv, FHC_BOOLEAN) .', '.
|
||||
'lehre='.$this->db_add_param($this->lehre, FHC_BOOLEAN) .', '.
|
||||
'reservieren='.$this->db_add_param($this->reservieren, FHC_BOOLEAN) .', '.
|
||||
@@ -426,4 +427,4 @@ class ort extends basis_db
|
||||
return true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -27,8 +27,8 @@ require_once(dirname(__FILE__).'/basis_db.class.php');
|
||||
|
||||
class ortraumtyp extends basis_db
|
||||
{
|
||||
public $new; // boolean
|
||||
public $result = array(); // fachbereich Objekt
|
||||
public $new; // boolean
|
||||
public $result = array();
|
||||
|
||||
//Tabellenspalten
|
||||
public $ort_kurzbz; // string
|
||||
@@ -37,8 +37,8 @@ class ortraumtyp extends basis_db
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
* @param $conn Connection zur DB
|
||||
* $ort_kurzbz und hierarchie ID des zu ladenden OrtRaumtyps
|
||||
* @param $ort_kurzbz
|
||||
* @param $hierarchie
|
||||
*/
|
||||
public function __construct($ort_kurzbz=null, $hierarchie=0)
|
||||
{
|
||||
@@ -77,7 +77,8 @@ class ortraumtyp extends basis_db
|
||||
|
||||
/**
|
||||
* Laedt einen OrtRaumtyp
|
||||
* @param $ortraumtyp, hierarchie ID des zu ladenden OrtRaumtyps
|
||||
* @param $ortraumtyp
|
||||
* @param $hierarchie
|
||||
* @return true wenn ok, false im Fehlerfall
|
||||
*/
|
||||
public function load($ort_kurzbz, $hierarchie)
|
||||
@@ -88,7 +89,13 @@ class ortraumtyp extends basis_db
|
||||
return false;
|
||||
}
|
||||
|
||||
$qry = "SELECT * FROM public.tbl_ortraumtyp WHERE ort_kurzbz = '".addslashes($ort_kurzbz)."' AND hierarchie = '".addslashes($hierarchie)."';";
|
||||
$qry = "SELECT
|
||||
*
|
||||
FROM
|
||||
public.tbl_ortraumtyp
|
||||
WHERE
|
||||
ort_kurzbz = ".$this->db_add_param($ort_kurzbz)."
|
||||
AND hierarchie = ".$this->db_add_param($hierarchie).";";
|
||||
|
||||
if(!$this->db_query($qry))
|
||||
{
|
||||
@@ -152,9 +159,9 @@ class ortraumtyp extends basis_db
|
||||
}
|
||||
//Neuen Datensatz anlegen
|
||||
$qry = 'INSERT INTO public.tbl_ortraumtyp (ort_kurzbz, hierarchie, raumtyp_kurzbz) VALUES ('.
|
||||
$this->addslashes($this->ort_kurzbz).', '.
|
||||
$this->addslashes($this->hierarchie).', '.
|
||||
$this->addslashes($this->raumtyp_kurzbz).');';
|
||||
$this->db_add_param($this->ort_kurzbz).', '.
|
||||
$this->db_add_param($this->hierarchie).', '.
|
||||
$this->db_add_param($this->raumtyp_kurzbz).');';
|
||||
|
||||
}
|
||||
else
|
||||
@@ -169,8 +176,8 @@ class ortraumtyp extends basis_db
|
||||
}
|
||||
|
||||
$qry = 'UPDATE public.tbl_ortraumtyp SET '.
|
||||
'raumtyp_kurzbz='.$this->addslashes($this->raumtyp_kurzbz).' '.
|
||||
'WHERE ort_kurzbz = '.$this->addslashes($this->ort_kurzbz).' AND hierarchie = '.$this->addslashes($this->hierarchie).';';
|
||||
'raumtyp_kurzbz='.$this->db_add_param($this->raumtyp_kurzbz).' '.
|
||||
'WHERE ort_kurzbz = '.$this->db_add_param($this->ort_kurzbz).' AND hierarchie = '.$this->db_add_param($this->hierarchie).';';
|
||||
}
|
||||
|
||||
if($this->db_query($qry))
|
||||
@@ -229,5 +236,26 @@ class ortraumtyp extends basis_db
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loescht eine Zuordnung
|
||||
* @param $ort_kurzbz
|
||||
* @param $raumtyp_kurzbz
|
||||
*/
|
||||
public function delete($ort_kurzbz, $raumtyp_kurzbz)
|
||||
{
|
||||
$qry = "DELETE FROM public.tbl_ortraumtyp
|
||||
WHERE ort_kurzbz=".$this->db_add_param($ort_kurzbz)."
|
||||
AND raumtyp_kurzbz=".$this->db_add_param($raumtyp_kurzbz).";";
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Löschen';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -28,7 +28,7 @@ require_once(dirname(__FILE__).'/basis_db.class.php');
|
||||
class raumtyp extends basis_db
|
||||
{
|
||||
public $new; // boolean
|
||||
public $result = array(); // fachbereich Objekt
|
||||
public $result = array(); // raumtyp Objekt
|
||||
|
||||
//Tabellenspalten
|
||||
public $beschreibung; // string
|
||||
@@ -37,7 +37,7 @@ class raumtyp extends basis_db
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
* @param $ort_kurzbz und hierarchie ID des zu ladenden Raumtyps
|
||||
* @param $raumtyp_kurzbz des zu ladenden Raumtyps
|
||||
*/
|
||||
public function __construct($raumtyp_kurzbz=null)
|
||||
{
|
||||
@@ -87,7 +87,7 @@ class raumtyp extends basis_db
|
||||
return false;
|
||||
}
|
||||
|
||||
$qry = "SELECT * FROM public.tbl_raumtyp WHERE raumtyp_kurzbz = '".addslashes($raumtyp_kurzbz)."';";
|
||||
$qry = "SELECT * FROM public.tbl_raumtyp WHERE raumtyp_kurzbz=".$this->db_add_param($raumtyp_kurzbz).";";
|
||||
|
||||
if(!$this->db_query($qry))
|
||||
{
|
||||
@@ -156,16 +156,16 @@ class raumtyp extends basis_db
|
||||
}
|
||||
//Neuen Datensatz anlegen
|
||||
$qry = 'INSERT INTO public.tbl_raumtyp (beschreibung, raumtyp_kurzbz) VALUES ('.
|
||||
$this->addslashes($this->beschreibung).', '.
|
||||
$this->addslashes($this->raumtyp_kurzbz).');';
|
||||
$this->db_add_param($this->beschreibung).', '.
|
||||
$this->db_add_param($this->raumtyp_kurzbz).');';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
//bestehenden Datensatz akualisieren
|
||||
$qry = 'UPDATE public.tbl_raumtyp SET '.
|
||||
'beschreibung='.$this->addslashes($this->beschreibung).' '.
|
||||
'WHERE raumtyp_kurzbz = '.$this->addslashes($this->ort_kurzbz).';';
|
||||
'beschreibung='.$this->db_add_param($this->beschreibung).' '.
|
||||
'WHERE raumtyp_kurzbz = '.$this->db_add_param($this->ort_kurzbz).';';
|
||||
}
|
||||
|
||||
if($this->db_query($qry))
|
||||
@@ -179,4 +179,4 @@ class raumtyp extends basis_db
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
+225
-118
@@ -25,6 +25,9 @@
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/ort.class.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../include/ortraumtyp.class.php');
|
||||
require_once('../../include/raumtyp.class.php');
|
||||
require_once('../../include/standort.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
@@ -33,7 +36,7 @@
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(!$rechte->isBerechtigt('basis/ort'))
|
||||
if(!$rechte->isBerechtigt('basis/ort',null,'suid'))
|
||||
die('Sie haben keine Berechtigung fuer diese Seite');
|
||||
|
||||
$reloadstr = ''; // neuladen der liste im oberen frame
|
||||
@@ -136,130 +139,234 @@
|
||||
$content_id = $sg->content_id;
|
||||
$neu = "false";
|
||||
}
|
||||
|
||||
if($ort_kurzbz != '')
|
||||
$htmlstr .= "<br><div class='kopf'>Raum <b>".$ort_kurzbz."</b></div>\n";
|
||||
else
|
||||
$htmlstr .="<br><div class='kopf'>Neuer Raum</div>\n";
|
||||
$htmlstr .= "<form action='raum_details.php' method='POST' name='raumform'>\n";
|
||||
$htmlstr .= "<table class='detail'>\n";
|
||||
|
||||
|
||||
$htmlstr .= " <tr><td colspan='3'> </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
|
||||
// erste Spalte start
|
||||
$htmlstr .= " <td valign='top'>\n";
|
||||
|
||||
$htmlstr .= " <table>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>Kurzbezeichnung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='ort_kurzbz' size='12' maxlength='16' value='".$ort_kurzbz."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Bezeichnung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='bezeichnung' size='32' maxlength='64' value='".$bezeichnung."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Planbezeichnung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='planbezeichnung' size='12' maxlength='8' value='".$planbezeichnung."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>Max Person</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='max_person' size='12' maxlength='8' value='".$max_person."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Dislozierung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='dislozierung' size='16' maxlength='8' value='".$dislozierung."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Kosten</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='kosten' size='18' maxlength='16' value='".$kosten."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>Stockwerk</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='stockwerk' size='8' maxlength='5' value='".$stockwerk."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Standort</td>\n";
|
||||
$htmlstr .= " <td>";
|
||||
$htmlstr .= " <SELECT name='standort_id'>";
|
||||
$htmlstr.=" <OPTION value=''>-- keine Auswahl --</OPTION>\n";
|
||||
$qry = "SELECT * FROM public.tbl_standort JOIN public.tbl_firma USING(firma_id) WHERE firmentyp_kurzbz='Intern' ORDER BY kurzbz";
|
||||
if($result = $db->db_query($qry))
|
||||
if(isset($_GET['type']) && $_GET['type']=='raumtyp')
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
if($ort_kurzbz=='')
|
||||
die('OrtKurzbz fehlt');
|
||||
|
||||
$ort = new ort();
|
||||
if(!$ort->load($ort_kurzbz))
|
||||
die($ort->errormsg);
|
||||
|
||||
if(isset($_GET['method']))
|
||||
{
|
||||
if($row->standort_id==$standort_id)
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
$htmlstr.=" <OPTION value='$row->standort_id' $selected>$row->kurzbz</OPTION>\n";
|
||||
switch($_GET['method'])
|
||||
{
|
||||
case 'delete':
|
||||
//Zuordnung zu einem Raumtyp entfernen
|
||||
$ortraumtyp = new ortraumtyp();
|
||||
$ortraumtyp->delete($ort_kurzbz, $_GET['raumtyp_kurzbz']);
|
||||
break;
|
||||
case 'add':
|
||||
//Zuordnung zu einem Raumtyp hinzufuegen
|
||||
$ortraumtyp = new ortraumtyp();
|
||||
$ortraumtyp->ort_kurzbz = $ort_kurzbz;
|
||||
$ortraumtyp->raumtyp_kurzbz = $_POST['raumtyp_kurzbz'];
|
||||
$ortraumtyp->hierarchie = $_POST['hierarchie'];
|
||||
$ortraumtyp->new=true;
|
||||
if(!$ortraumtyp->save())
|
||||
$htmlstr.='Fehler beim Speichern '.$ortraumtyp->errormsg;
|
||||
break;
|
||||
case 'neu':
|
||||
// Anlegen eines neuen Raumtyps
|
||||
$raumtyp=new raumtyp();
|
||||
$raumtyp->new=true;
|
||||
$raumtyp->raumtyp_kurzbz=$_POST['raumtyp_kurzbz'];
|
||||
$raumtyp->beschreibung = $_POST['beschreibung'];
|
||||
$raumtyp->save();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$htmlstr.='<h2>Raumtypen - '.$ort->bezeichnung.' ( '.$ort->ort_kurzbz.' )</h2>';
|
||||
|
||||
$ortraumtyp = new ortraumtyp();
|
||||
if($ortraumtyp->getRaumtypen($ort_kurzbz))
|
||||
{
|
||||
$htmlstr.='
|
||||
<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#raumtyptable").tablesorter(
|
||||
{
|
||||
sortList: [[2,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<table class="tablesorter" id="raumtyptable">
|
||||
<thead>
|
||||
<th>Raumtyp</th>
|
||||
<th>Kurzbz</th>
|
||||
<th>Hierarchie</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody>';
|
||||
$hierarchiemax=0;
|
||||
foreach($ortraumtyp->result as $row)
|
||||
{
|
||||
if($row->hierarchie>$hierarchiemax)
|
||||
$hierarchiemax=$row->hierarchie;
|
||||
$htmlstr.= '<tr>';
|
||||
$htmlstr.= '<td>'.$row->beschreibung.'</td>';
|
||||
$htmlstr.= '<td>'.$row->raumtyp_kurzbz.'</td>';
|
||||
$htmlstr.= '<td>'.$row->hierarchie.'</td>';
|
||||
$htmlstr.= '<td><a href="raum_details.php?type=raumtyp&ort_kurzbz='.$ort_kurzbz.'&method=delete&raumtyp_kurzbz='.$row->raumtyp_kurzbz.'">Entfernen</a></td>';
|
||||
$htmlstr.= '</tr>';
|
||||
}
|
||||
$htmlstr.='</tbody></table>';
|
||||
$htmlstr.='<form action="raum_details.php?type=raumtyp&ort_kurzbz='.$ort_kurzbz.'&method=add" method="POST">
|
||||
Raumtyp:<SELECT name="raumtyp_kurzbz">';
|
||||
|
||||
$raumtyp = new raumtyp();
|
||||
$raumtyp->getAll();
|
||||
foreach($raumtyp->result as $row)
|
||||
{
|
||||
$htmlstr.= '<OPTION value="'.$row->raumtyp_kurzbz.'">'.$row->beschreibung.' ('.$row->raumtyp_kurzbz.')</OPTION>';
|
||||
}
|
||||
$htmlstr.='</SELECT>
|
||||
Hierarchie: <input type="text" name="hierarchie" size="1" value="'.($hierarchiemax+1).'">
|
||||
<input type="submit" value="Hinzufügen">
|
||||
</form>';
|
||||
|
||||
$htmlstr.='<br><br><hr>
|
||||
<form action="raum_details.php?type=raumtyp&ort_kurzbz='.$ort_kurzbz.'&method=neu" method="POST">
|
||||
Beschreibung: <input type="text" name="beschreibung" maxlength="256">
|
||||
Kurzbz: <input type="text" name="raumtyp_kurzbz" size="16" maxlength="16">
|
||||
<input type="submit" value="Neuen Raumtyp anlegen">
|
||||
</form>';
|
||||
|
||||
}
|
||||
}
|
||||
$htmlstr .= " </SELECT>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " <td>Telefonklappe</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='telefonklappe' size='3' maxlength='8' value='".$telefonklappe."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td valign='top'>Lehre</td>\n";
|
||||
$htmlstr .= " <td>\n";
|
||||
if($lehre == 't')
|
||||
{
|
||||
$chk1 = "checked";
|
||||
}
|
||||
else
|
||||
{
|
||||
$chk1 = '';
|
||||
}
|
||||
$htmlstr .= " <input type='checkbox' name='lehre' value='t'".$chk1." onchange='submitable()'>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " <td valign='top'>Reservieren</td>\n";
|
||||
$htmlstr .= " <td>\n";
|
||||
if($reservieren == 't')
|
||||
{
|
||||
$chk2 = "checked";
|
||||
}
|
||||
else
|
||||
{
|
||||
$chk2 = '';
|
||||
}
|
||||
$htmlstr .= " <input type='checkbox' name='reservieren' value='t'".$chk2." onchange='submitable()'>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " <td valign='top'>Aktiv</td>\n";
|
||||
$htmlstr .= " <td>\n";
|
||||
if($aktiv == 't')
|
||||
{
|
||||
$chk3 = "checked";
|
||||
}
|
||||
else
|
||||
{
|
||||
$chk3 = '';
|
||||
}
|
||||
$htmlstr .= " <input type='checkbox' name='aktiv' value='t'".$chk3." onchange='submitable()'>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td valign='top'>Lageplan</td>\n";
|
||||
$htmlstr .= " <td><textarea name='lageplan' cols='37' rows='5' onchange='submitable()'>".$lageplan."</textarea></td>\n";
|
||||
//$htmlstr .= " <td>\n</td>\n<td>\n</td>\n";
|
||||
$htmlstr .= " <td valign='top'>Ausstattung</td>\n";
|
||||
$htmlstr .= " <td><textarea name='ausstattung' cols='37' rows='5' onchange='submitable()'>".$ausstattung."</textarea></td>\n";
|
||||
$htmlstr .= " <td valign='top'>ContentID</td>\n";
|
||||
$htmlstr .= " <td valign='top'><input type='text' name='content_id' size='5' onchange='submitable()' value='".$content_id."' /></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= "</table>\n";
|
||||
$htmlstr .= "<br>\n";
|
||||
$htmlstr .= "<div align='right' id='sub'>\n";
|
||||
$htmlstr .= " <span id='submsg' style='color:red; visibility:hidden;'>Datensatz geändert! </span>\n";
|
||||
$htmlstr .= " <input type='hidden' name='neu' value='".$neu."'>";
|
||||
$htmlstr .= " <input type='submit' value='Speichern' name='schick'>\n";
|
||||
$htmlstr .= " <input type='button' value='Reset' onclick='unchanged()'>\n";
|
||||
$htmlstr .= "</div>";
|
||||
$htmlstr .= "</form>";
|
||||
$htmlstr .= "<div class='inserterror'>".$errorstr."</div>"
|
||||
?>
|
||||
{
|
||||
if($ort_kurzbz != '')
|
||||
$htmlstr .= "<br><div class='kopf'>Raum <b>".$ort_kurzbz."</b></div>\n";
|
||||
else
|
||||
$htmlstr .="<br><div class='kopf'>Neuer Raum</div>\n";
|
||||
$htmlstr .= "<form action='raum_details.php' method='POST' name='raumform'>\n";
|
||||
$htmlstr .= "<table class='detail'>\n";
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
$htmlstr .= " <tr><td colspan='3'> </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
|
||||
// erste Spalte start
|
||||
$htmlstr .= " <td valign='top'>\n";
|
||||
|
||||
$htmlstr .= " <table>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>Kurzbezeichnung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='ort_kurzbz' size='12' maxlength='16' value='".$ort_kurzbz."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Bezeichnung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='bezeichnung' size='32' maxlength='64' value='".$bezeichnung."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Planbezeichnung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='planbezeichnung' size='12' maxlength='8' value='".$planbezeichnung."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>Max Person</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='max_person' size='12' maxlength='8' value='".$max_person."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Dislozierung</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='dislozierung' size='16' maxlength='8' value='".$dislozierung."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Kosten</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='kosten' size='18' maxlength='16' value='".$kosten."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>Stockwerk</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='stockwerk' size='8' maxlength='5' value='".$stockwerk."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " <td>Standort</td>\n";
|
||||
$htmlstr .= " <td>";
|
||||
$htmlstr .= " <SELECT name='standort_id'>";
|
||||
$htmlstr.=" <OPTION value=''>-- keine Auswahl --</OPTION>\n";
|
||||
|
||||
$standort = new standort();
|
||||
if($standort->getStandorteWithTyp('Intern'))
|
||||
{
|
||||
foreach($standort->result as $row)
|
||||
{
|
||||
if($row->standort_id==$standort_id)
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
$htmlstr.="<OPTION value='$row->standort_id' $selected>$row->kurzbz</OPTION>\n";
|
||||
}
|
||||
}
|
||||
|
||||
$htmlstr .= " </SELECT>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " <td>Telefonklappe</td>\n";
|
||||
$htmlstr .= " <td><input class='detail' type='text' name='telefonklappe' size='3' maxlength='8' value='".$telefonklappe."' onchange='submitable()'></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td valign='top'>Lehre</td>\n";
|
||||
$htmlstr .= " <td>\n";
|
||||
if($lehre == 't')
|
||||
{
|
||||
$chk1 = "checked";
|
||||
}
|
||||
else
|
||||
{
|
||||
$chk1 = '';
|
||||
}
|
||||
$htmlstr .= " <input type='checkbox' name='lehre' value='t'".$chk1." onchange='submitable()'>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " <td valign='top'>Reservieren</td>\n";
|
||||
$htmlstr .= " <td>\n";
|
||||
if($reservieren == 't')
|
||||
{
|
||||
$chk2 = "checked";
|
||||
}
|
||||
else
|
||||
{
|
||||
$chk2 = '';
|
||||
}
|
||||
$htmlstr .= " <input type='checkbox' name='reservieren' value='t'".$chk2." onchange='submitable()'>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " <td valign='top'>Aktiv</td>\n";
|
||||
$htmlstr .= " <td>\n";
|
||||
if($aktiv == 't')
|
||||
{
|
||||
$chk3 = "checked";
|
||||
}
|
||||
else
|
||||
{
|
||||
$chk3 = '';
|
||||
}
|
||||
$htmlstr .= " <input type='checkbox' name='aktiv' value='t'".$chk3." onchange='submitable()'>";
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td valign='top'>Lageplan</td>\n";
|
||||
$htmlstr .= " <td><textarea name='lageplan' cols='37' rows='5' onchange='submitable()'>".$lageplan."</textarea></td>\n";
|
||||
$htmlstr .= " <td valign='top'>Ausstattung</td>\n";
|
||||
$htmlstr .= " <td><textarea name='ausstattung' cols='37' rows='5' onchange='submitable()'>".$ausstattung."</textarea></td>\n";
|
||||
$htmlstr .= " <td valign='top'>ContentID</td>\n";
|
||||
$htmlstr .= " <td valign='top'><input type='text' name='content_id' size='5' onchange='submitable()' value='".$content_id."' /></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
$htmlstr .= "</table>\n";
|
||||
$htmlstr .= "<br>\n";
|
||||
$htmlstr .= "<div align='right' id='sub'>\n";
|
||||
$htmlstr .= " <span id='submsg' style='color:red; visibility:hidden;'>Datensatz geändert! </span>\n";
|
||||
$htmlstr .= " <input type='hidden' name='neu' value='".$neu."'>";
|
||||
$htmlstr .= " <input type='submit' value='Speichern' name='schick'>\n";
|
||||
$htmlstr .= " <input type='button' value='Reset' onclick='unchanged()'>\n";
|
||||
$htmlstr .= "</div>";
|
||||
$htmlstr .= "</form>";
|
||||
$htmlstr .= "<div class='inserterror'>".$errorstr."</div>";
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Raum - Details</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<script src="../../include/js/mailcheck.js"></script>
|
||||
<script src="../../include/js/datecheck.js"></script>
|
||||
<title>Raum - Details</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
|
||||
<script src="../../include/js/jquery1.9.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function unchanged()
|
||||
{
|
||||
@@ -300,7 +407,7 @@ function submitable()
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="background-color:#eeeeee;">
|
||||
<body>
|
||||
|
||||
<?php
|
||||
echo $htmlstr;
|
||||
@@ -308,4 +415,4 @@ function submitable()
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -33,109 +33,67 @@ $user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(!$rechte->isBerechtigt('basis/ort'))
|
||||
if(!$rechte->isBerechtigt('basis/ort', null, 'suid'))
|
||||
die('Sie haben keine Rechte fuer diese Seite');
|
||||
|
||||
if($rechte->isBerechtigt('basis/ort', 'suid'))
|
||||
$write_admin=true;
|
||||
|
||||
// Speichern der Daten
|
||||
if(isset($_POST['ort_kurzbz']))
|
||||
{
|
||||
// Die Aenderungen werden per Ajax Request durchgefuehrt,
|
||||
// daher wird nach dem Speichern mittels exit beendet
|
||||
if($write_admin)
|
||||
{
|
||||
//Lehre Feld setzen
|
||||
if(isset($_POST['lehre']))
|
||||
{
|
||||
$lv_obj = new ort();
|
||||
if($lv_obj->load($_POST['ort_kurzbz']))
|
||||
{
|
||||
$lv_obj->lehre=($_POST['lehre']=='true'?false:true);
|
||||
$lv_obj->updateamum = date('Y-m-d H:i:s');
|
||||
$lv_obj->updatevon = $user;
|
||||
if($lv_obj->save(false))
|
||||
exit('true');
|
||||
else
|
||||
exit('Fehler beim Speichern:'.$lv_obj->errormsg);
|
||||
}
|
||||
else
|
||||
exit('Fehler beim Laden der LV:'.$lv_obj->errormsg);
|
||||
}
|
||||
|
||||
//Reservieren Feld setzen
|
||||
if(isset($_POST['reservieren']))
|
||||
{
|
||||
$lv_obj = new ort();
|
||||
if($lv_obj->load($_POST['ort_kurzbz']))
|
||||
{
|
||||
$lv_obj->reservieren=($_POST['reservieren']=='true'?false:true);
|
||||
$lv_obj->updateamum = date('Y-m-d H:i:s');
|
||||
$lv_obj->updatevon = $user;
|
||||
if($lv_obj->save(false))
|
||||
exit('true');
|
||||
else
|
||||
exit('Fehler beim Speichern:'.$lv_obj->errormsg);
|
||||
}
|
||||
else
|
||||
exit('Fehler beim Laden der LV:'.$lv_obj->errormsg);
|
||||
}
|
||||
|
||||
//Aktiv Feld setzen
|
||||
if(isset($_POST['aktiv']))
|
||||
{
|
||||
$lv_obj = new ort();
|
||||
if($lv_obj->load($_POST['ort_kurzbz']))
|
||||
{
|
||||
$lv_obj->aktiv=($_POST['aktiv']=='true'?false:true);
|
||||
$lv_obj->updateamum = date('Y-m-d H:i:s');
|
||||
$lv_obj->updatevon = $user;
|
||||
if($lv_obj->save(false))
|
||||
exit('true');
|
||||
else
|
||||
exit('Fehler beim Speichern:'.$lv_obj->errormsg);
|
||||
}
|
||||
else
|
||||
exit('Fehler beim Laden der LV:'.$lv_obj->errormsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($_GET["toggle"]))
|
||||
{
|
||||
if(!$rechte->isBerechtigt('basis/ort', null, 'suid'))
|
||||
die('Sie haben keine Berechtigung fuer diese Aktion');
|
||||
|
||||
if ($_GET["rlehre"] != "" && $_GET["rlehre"] != NULL)
|
||||
//Lehre Feld setzen
|
||||
if(isset($_POST['lehre']))
|
||||
{
|
||||
$rlehre = $_GET["rlehre"];
|
||||
$sg_update = new ort();
|
||||
$qry = "UPDATE public.tbl_ort SET lehre = NOT lehre WHERE ort_kurzbz='".$rlehre."';";
|
||||
if(!$db->db_query($qry))
|
||||
$lv_obj = new ort();
|
||||
if($lv_obj->load($_POST['ort_kurzbz']))
|
||||
{
|
||||
die('Fehler beim Speichern des Datensatzes');
|
||||
}
|
||||
$lv_obj->lehre=($_POST['lehre']=='true'?false:true);
|
||||
$lv_obj->updateamum = date('Y-m-d H:i:s');
|
||||
$lv_obj->updatevon = $user;
|
||||
if($lv_obj->save(false))
|
||||
exit('true');
|
||||
else
|
||||
exit('Fehler beim Speichern:'.$lv_obj->errormsg);
|
||||
}
|
||||
else
|
||||
exit('Fehler beim Laden der LV:'.$lv_obj->errormsg);
|
||||
}
|
||||
if ($_GET["rres"] != "" && $_GET["rres"] != NULL)
|
||||
|
||||
//Reservieren Feld setzen
|
||||
if(isset($_POST['reservieren']))
|
||||
{
|
||||
$rres = $_GET["rres"];
|
||||
$sg_update = new ort();
|
||||
$qry = "UPDATE public.tbl_ort SET reservieren = NOT reservieren WHERE ort_kurzbz='".$rres."';";
|
||||
if(!$db->db_query($qry))
|
||||
$lv_obj = new ort();
|
||||
if($lv_obj->load($_POST['ort_kurzbz']))
|
||||
{
|
||||
die('Fehler beim Speichern des Datensatzes');
|
||||
}
|
||||
$lv_obj->reservieren=($_POST['reservieren']=='true'?false:true);
|
||||
$lv_obj->updateamum = date('Y-m-d H:i:s');
|
||||
$lv_obj->updatevon = $user;
|
||||
if($lv_obj->save(false))
|
||||
exit('true');
|
||||
else
|
||||
exit('Fehler beim Speichern:'.$lv_obj->errormsg);
|
||||
}
|
||||
else
|
||||
exit('Fehler beim Laden der LV:'.$lv_obj->errormsg);
|
||||
}
|
||||
if ($_GET["raktiv"] != "" && $_GET["raktiv"] != NULL)
|
||||
|
||||
//Aktiv Feld setzen
|
||||
if(isset($_POST['aktiv']))
|
||||
{
|
||||
$raktiv = $_GET["raktiv"];
|
||||
$sg_update = new ort();
|
||||
$qry = "UPDATE public.tbl_ort SET aktiv = NOT aktiv WHERE ort_kurzbz='".$raktiv."';";
|
||||
if(!$db->db_query($qry))
|
||||
$lv_obj = new ort();
|
||||
if($lv_obj->load($_POST['ort_kurzbz']))
|
||||
{
|
||||
die('Fehler beim Speichern des Datensatzes');
|
||||
}
|
||||
$lv_obj->aktiv=($_POST['aktiv']=='true'?false:true);
|
||||
$lv_obj->updateamum = date('Y-m-d H:i:s');
|
||||
$lv_obj->updatevon = $user;
|
||||
if($lv_obj->save(false))
|
||||
exit('true');
|
||||
else
|
||||
exit('Fehler beim Speichern:'.$lv_obj->errormsg);
|
||||
}
|
||||
else
|
||||
exit('Fehler beim Laden der LV:'.$lv_obj->errormsg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,10 +101,12 @@ $sg = new ort();
|
||||
if (!$sg->getAll())
|
||||
die($sg->errormsg);
|
||||
|
||||
//$htmlstr = "<table class='liste sortable'>\n";
|
||||
$htmlstr = "<form name='formular'><input type='hidden' name='check' value=''></form><table class='tablesorter' id='t1'>\n";
|
||||
$htmlstr .= " <thead><tr>\n";
|
||||
$htmlstr .= " <th onmouseup='document.formular.check.value=0'>Kurzbezeichnung</th>
|
||||
$htmlstr = "
|
||||
<table class='tablesorter' id='t1'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Kurzbezeichnung</th>
|
||||
<th>Bezeichnung</th>
|
||||
<th>Planbezeichnung</th>
|
||||
<th>Max. Person</th>
|
||||
@@ -154,19 +114,21 @@ $htmlstr .= " <th onmouseup='document.formular.check.value=0'>Kurzbezeichnung
|
||||
<th>Reservieren</th>
|
||||
<th>Aktiv</th>
|
||||
<th>Kosten</th>
|
||||
<th>Stockwerk</th>";
|
||||
$htmlstr .= " </tr></thead><tbody>\n";
|
||||
$i = 0;
|
||||
<th>Stockwerk</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>\n";
|
||||
|
||||
foreach ($sg->result as $twraum)
|
||||
{
|
||||
//$htmlstr .= " <tr class='liste". ($i%2) ."'>\n";
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= ' <td><a href="raum_details.php?type=raumtyp&ort_kurzbz='.$twraum->ort_kurzbz.'" target="detail_raum" title="Raumtyp zuteilen" ><img src="../../skin/images/entitlement-pot.png" height="20px"/></a></td>';
|
||||
$htmlstr .= " <td><a href='raum_details.php?ort_kurzbz=".$twraum->ort_kurzbz."' target='detail_raum'>".$twraum->ort_kurzbz."</a></td>\n";
|
||||
$htmlstr .= " <td>".$twraum->bezeichnung."</td>\n";
|
||||
$htmlstr .= " <td>".$twraum->planbezeichnung."</td>\n";
|
||||
$htmlstr .= " <td>".$twraum->max_person."</td>\n";
|
||||
|
||||
// Lehre bollean setzen
|
||||
// Lehre boolean setzen
|
||||
|
||||
$htmlstr .= " <div style='display: none'>".$db->convert_html_chars($twraum->lehre)."</div> <td align='center'><a href='#Lehre' onclick='changeboolean(\"".$twraum->ort_kurzbz."\",\"lehre\"); return false'>";
|
||||
$htmlstr .= " <input type='hidden' id='lehre".$twraum->ort_kurzbz."' value='".($twraum->lehre=="t"?"true":"false")."'>";
|
||||
@@ -189,8 +151,8 @@ foreach ($sg->result as $twraum)
|
||||
|
||||
$htmlstr .= " <td>".$twraum->kosten."</td>\n";
|
||||
$htmlstr .= " <td>".$twraum->stockwerk."</td>\n";
|
||||
|
||||
$htmlstr .= " </tr>\n";
|
||||
$i++;
|
||||
}
|
||||
$htmlstr .= "</tbody></table>\n";
|
||||
|
||||
@@ -198,83 +160,69 @@ $htmlstr .= "</tbody></table>\n";
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Räume Übersicht</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<!--<link rel="stylesheet" href="../../include/js/tablesort/table.css" type="text/css">
|
||||
<script src="../../include/js/tablesort/table.js" type="text/javascript"></script>-->
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
|
||||
<style>
|
||||
table.tablesorter tbody td
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t1").tablesorter(
|
||||
{
|
||||
sortList: [[2,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
});
|
||||
|
||||
function confdel()
|
||||
{
|
||||
if(confirm("Diesen Datensatz wirklick loeschen?"))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function changeboolean(ort_kurzbz, name)
|
||||
{
|
||||
value=document.getElementById(name+ort_kurzbz).value;
|
||||
|
||||
var dataObj = {};
|
||||
dataObj["ort_kurzbz"]=ort_kurzbz;
|
||||
dataObj[name]=value;
|
||||
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"raum_uebersicht.php",
|
||||
data:dataObj,
|
||||
success: function(data)
|
||||
<title>Räume Übersicht</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
|
||||
<style>
|
||||
table.tablesorter tbody td
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
</style>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t1").tablesorter(
|
||||
{
|
||||
if(data=="true")
|
||||
{
|
||||
//Image und Value aendern
|
||||
if(value=="true")
|
||||
value="false";
|
||||
else
|
||||
value="true";
|
||||
document.getElementById(name+ort_kurzbz).value=value;
|
||||
document.getElementById(name+"img"+ort_kurzbz).src="../../skin/images/"+value+".png";
|
||||
}
|
||||
else
|
||||
alert("ERROR:"+data)
|
||||
},
|
||||
error: function() { alert("error"); }
|
||||
sortList: [[3,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function changeboolean(ort_kurzbz, name)
|
||||
{
|
||||
value=document.getElementById(name+ort_kurzbz).value;
|
||||
|
||||
var dataObj = {};
|
||||
dataObj["ort_kurzbz"]=ort_kurzbz;
|
||||
dataObj[name]=value;
|
||||
|
||||
</script>
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"raum_uebersicht.php",
|
||||
data:dataObj,
|
||||
success: function(data)
|
||||
{
|
||||
if(data=="true")
|
||||
{
|
||||
//Image und Value aendern
|
||||
if(value=="true")
|
||||
value="false";
|
||||
else
|
||||
value="true";
|
||||
document.getElementById(name+ort_kurzbz).value=value;
|
||||
document.getElementById(name+"img"+ort_kurzbz).src="../../skin/images/"+value+".png";
|
||||
}
|
||||
else
|
||||
alert("ERROR:"+data)
|
||||
},
|
||||
error: function() { alert("error"); }
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="background_main">
|
||||
<body>
|
||||
<h2>Räume Übersicht</h2>
|
||||
<a href="raum_details.php" target="detail_raum">Neuer Raum </a>
|
||||
|
||||
|
||||
<?php
|
||||
echo $htmlstr;
|
||||
?>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user