mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
This commit is contained in:
+89
-79
@@ -38,6 +38,7 @@ $aktion ='';
|
||||
<title>WaWi Bestellung</title>
|
||||
<link rel="stylesheet" href="../skin/wawi.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../skin/tablesort.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../skin/style/jquery-ui.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../include/js/jquery.autocomplete.css" type="text/css"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
@@ -85,6 +86,12 @@ $aktion ='';
|
||||
{
|
||||
return confirm('Diese Gruppe wirklich löschen?');
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$( "#datepicker" ).datepicker();
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -107,86 +114,94 @@ if($aktion == 'suche')
|
||||
$konto = new wawi_konto();
|
||||
$konto->getAll();
|
||||
$konto_all = $konto->result;
|
||||
$datum = new datum();
|
||||
$datum=getdate();
|
||||
if ($datum['mon']<=9)
|
||||
{
|
||||
$suchdatum="01.09.".($datum['year']-1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$suchdatum="01.09.".$datum['year'];
|
||||
}
|
||||
|
||||
echo "Bestellung suchen ";
|
||||
echo "<form action ='bestellung.php?method=suche' method='post' name='sucheForm'>";
|
||||
echo "<table border =0>";
|
||||
echo "<tr>";
|
||||
echo "<td>Bestellnummer</td>";
|
||||
echo "<td><input type = 'text' size ='32' maxlength = '16' name = 'bestellnr'></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td>Titel</td>";
|
||||
echo "<td><input type = 'text' size ='32' maxlength = '256' name = 'titel'></td>";
|
||||
echo "<tr>";
|
||||
echo "<tr>";
|
||||
echo "<td>Erstelldatum</td>";
|
||||
echo "<td>von <input type ='text' size ='8' name ='evon'> bis <input type ='text' size ='8' name = 'ebis'></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td>Bestelldatum</td>";
|
||||
echo "<td>von <input type ='text' size ='8' name ='bvon'> bis <input type ='text' size ='8' name = 'bbis'></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td> Firma: </td>";
|
||||
echo "<td> <input id='firmenname' name='firmenname' size='32' maxlength='30' value='' >";
|
||||
echo "</td>";
|
||||
echo "<td> <input id='firma_id' name='firma_id' size='10' maxlength='30' value='' >";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td> Organisationseinheit: </td>";
|
||||
echo "<td><SELECT name='filter_oe_kurzbz'>";
|
||||
echo '<option value="">-- auswählen --</option>';
|
||||
echo "<form action ='bestellung.php?method=suche' method='post' name='sucheForm'>\n";
|
||||
echo "<table border =0>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Bestellnummer</td>\n";
|
||||
echo "<td><input type = 'text' size ='32' maxlength = '16' name = 'bestellnr'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Titel</td>\n";
|
||||
echo "<td><input type = 'text' size ='32' maxlength = '256' name = 'titel'></td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Erstelldatum</td>\n";
|
||||
echo "<td>von <input type ='text' id='datepicker' size ='12' name ='evon' value=$suchdatum> bis <input type ='text' size ='12' name = 'ebis'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Bestelldatum</td>\n";
|
||||
echo "<td>von <input type ='text' size ='12' name ='bvon'> bis <input type ='text' size ='12' name = 'bbis'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td> Firma: </td>\n";
|
||||
echo "<td> <input id='firmenname' name='firmenname' size='32' maxlength='30' value='' >\n";
|
||||
echo "</td>\n";
|
||||
echo "<td> <input type ='hidden' id='firma_id' name='firma_id' size='10' maxlength='30' value='' >\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td> Organisationseinheit: </td>\n";
|
||||
echo "<td><SELECT name='filter_oe_kurzbz'>\n";
|
||||
echo "<option value=''>-- auswählen --</option>\n";
|
||||
foreach ($oeinheiten as $oei)
|
||||
{
|
||||
if($oei->aktiv)
|
||||
{
|
||||
echo '<option value="'.$oei->oe_kurzbz.'" >'.$oei->organisationseinheittyp_kurzbz.' '.$oei->bezeichnung.'</option>';
|
||||
echo '<option value="'.$oei->oe_kurzbz.'" >'.$oei->organisationseinheittyp_kurzbz.' '.$oei->bezeichnung."</option>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<option style="text-decoration:line-through;" value="'.$oei->oe_kurzbz.'">'.$oei->bezeichnung.'</option>';
|
||||
echo '<option style="text-decoration:line-through;" value="'.$oei->oe_kurzbz.'">'.$oei->bezeichnung."</option>\n";
|
||||
}
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</SELECT>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td> Konto: </td>";
|
||||
echo "<td><SELECT name='filter_konto'>";
|
||||
echo '<option value="">-- auswählen --</option>';
|
||||
echo "</td>\n";
|
||||
echo "</SELECT>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td> Konto: </td>\n";
|
||||
echo "<td><SELECT name='filter_konto'>\n";
|
||||
echo "<option value=''>-- auswählen --</option>\n";
|
||||
|
||||
foreach($konto_all as $ko)
|
||||
{
|
||||
echo '<option value='.$ko->konto_id.' >'.$ko->kurzbz.'</option>';
|
||||
echo '<option value='.$ko->konto_id.' >'.$ko->kurzbz."</option>\n";
|
||||
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</SELECT>";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td> Änderung durch: </td>";
|
||||
echo "<td> <input id='mitarbeiter_name' name='mitarbeiter_name' size='32' maxlength='30' value='' >";
|
||||
echo "</td>";
|
||||
echo "<td> <input id='mitarbeiter_uid' name='mitarbeiter_uid' size='10' maxlength='30' value='' >";
|
||||
echo "</td>";
|
||||
echo "</td>\n";
|
||||
echo "</SELECT>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td> Änderung durch: </td>\n";
|
||||
echo "<td> <input id='mitarbeiter_name' name='mitarbeiter_name' size='32' maxlength='30' value='' >\n";
|
||||
echo "</td>\n";
|
||||
echo "<td> <input type ='hidden' id='mitarbeiter_uid' name='mitarbeiter_uid' size='10' maxlength='30' value='' >\n";
|
||||
echo "</td>\n";
|
||||
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td>Nur ohne Rechnung</td>";
|
||||
echo "<td><input type ='checkbox' name ='rechnung'></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr><td> </td></tr>";
|
||||
echo '<tr><td><input type="submit" name ="submit" value="Suche"></td></tr>';
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Nur ohne Rechnung</td>\n";
|
||||
echo "<td><input type ='checkbox' name ='rechnung'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td> </td></tr>\n";
|
||||
echo "<tr><td><input type='submit' name ='submit' value='Suche'></td></tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
//var_dump($_POST);
|
||||
|
||||
{
|
||||
$bestellnummer = $_POST['bestellnr'];
|
||||
$titel = $_POST['titel'];
|
||||
$evon = $_POST['evon'];
|
||||
@@ -219,11 +234,9 @@ if($aktion == 'suche')
|
||||
{
|
||||
$firma = new firma();
|
||||
$date = new datum();
|
||||
|
||||
|
||||
echo '<table id="myTable" class="tablesorter" width ="100%"> <thead>';
|
||||
|
||||
echo '<tr>
|
||||
echo "<table id='myTable' class='tablesorter' width ='100%'> <thead>\n";
|
||||
echo "<tr>
|
||||
<th></th>
|
||||
<th>Bestellnr.</th>
|
||||
<th>Bestell_ID</th>
|
||||
@@ -233,7 +246,7 @@ if($aktion == 'suche')
|
||||
<th>Brutto</th>
|
||||
<th>Titel</th>
|
||||
<th>Letzte Änderung</th>
|
||||
</tr></thead><tbody>';
|
||||
</tr></thead><tbody>\n";
|
||||
|
||||
foreach($bestellung->result as $row)
|
||||
{
|
||||
@@ -245,24 +258,21 @@ if($aktion == 'suche')
|
||||
$freigegeben = 'true';
|
||||
}
|
||||
//Zeilen der Tabelle ausgeben
|
||||
echo '<tr>';
|
||||
echo "<tr>\n";
|
||||
echo "<td nowrap> <a href= \"bestellung.php?method=update&id=$row->bestellung_id\" title=\"Bearbeiten\"> <img src=\"../skin/images/edit.gif\"> </a><a href=\"bestellung.php?method=delete&id=$row->bestellung_id\" onclick='return conf_del()' title='Löschen'> <img src=\"../skin/images/delete.gif\"></a>";
|
||||
echo '<td>'.$row->bestell_nr.'</td>';
|
||||
echo '<td>'.$row->bestellung_id.'</td>';
|
||||
echo '<td>'.$firma->name.'</td>';
|
||||
echo '<td>'.$date->formatDatum($row->insertamum, 'd.m.Y').'</td>';
|
||||
echo '<td>'.$freigegeben.'</td>';
|
||||
echo '<td>'.number_format($brutto,2).'</td>';
|
||||
echo '<td>'.$row->titel.'</td>';
|
||||
echo '<td>'.$row->updateamum.' '.$row->updatevon .'</td>';
|
||||
echo '<td>'.$row->bestell_nr."</td>\n";
|
||||
echo '<td>'.$row->bestellung_id."</td>\n";
|
||||
echo '<td>'.$firma->name."</td>\n";
|
||||
echo '<td>'.$date->formatDatum($row->insertamum, 'd.m.Y')."</td>\n";
|
||||
echo '<td>'.$freigegeben."</td>\n";
|
||||
echo '<td>'.number_format($brutto,2)."</td>\n";
|
||||
echo '<td>'.$row->titel."</td>\n";
|
||||
echo '<td>'.$row->updateamum.' '.$row->updatevon ."</td>\n";
|
||||
|
||||
echo '</tr>';
|
||||
echo "</tr>\n";
|
||||
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
|
||||
|
||||
// Suchergebniss anzeigen
|
||||
echo "</tbody></table>\n";
|
||||
}
|
||||
else
|
||||
echo "Fehler bei der Abfrage!";
|
||||
|
||||
+111
-109
@@ -95,11 +95,11 @@ if(isset($_GET['method']))
|
||||
$checked = 'checked';
|
||||
}
|
||||
|
||||
echo "<form action=\"kontouebersicht.php?method=save&id=$konto->konto_id\" method=\"post\">";
|
||||
echo "<form action=\"kontouebersicht.php?method=save&id=$konto->konto_id\" method=\"post\">\n";
|
||||
echo '<table border=0>';
|
||||
echo '<tr>';
|
||||
echo '<td>Kontonummer</td>';
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kontonummer\" value=\"$konto->kontonr\"></td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kontonummer\" value=\"$konto->kontonr\"></td>\n";
|
||||
echo '</tr>';
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s) // Mehrsprachigkeit
|
||||
@@ -108,32 +108,32 @@ if(isset($_GET['method']))
|
||||
{
|
||||
$headline = $sprache->getSpracheFromIndex($i);
|
||||
echo '<tr>';
|
||||
echo "<td>$headline</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"beschreibung$i\" value=\"".$konto->beschreibung[$i]."\"></td>";
|
||||
echo "</tr>";
|
||||
echo "<td>$headline</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"beschreibung$i\" value=\"".$konto->beschreibung[$i]."\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo '<tr>';
|
||||
echo "<td>Kurzbezeichnung</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kurzbezeichnung\" value=\"$konto->kurzbz\"></td>";
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo "<td>Aktiv?</td>";
|
||||
echo "<td><input type=\"checkbox\" name=\"aktiv\" value=\"aktiv\" $checked>";
|
||||
echo "</tr>";
|
||||
echo "<tr><td> </td><tr>";
|
||||
echo '<tr>';
|
||||
echo '<td><a href=kontouebersicht.php> zurueck </a></td>';
|
||||
echo '<td><input type="submit" value="update"></td>';
|
||||
echo '</tr>';
|
||||
echo '</form>';
|
||||
echo '</table>';
|
||||
echo "<tr>\n";
|
||||
echo "<td>Kurzbezeichnung</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kurzbezeichnung\" value=\"$konto->kurzbz\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Aktiv?</td>\n";
|
||||
echo "<td><input type=\"checkbox\" name=\"aktiv\" value=\"aktiv\" $checked>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td> </td><tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td><a href=kontouebersicht.php> zurueck </a></td>\n";
|
||||
echo "<td><input type='submit' value='update'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</form>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Konto wurde nicht gefunden!';
|
||||
echo "<a href=\"kontouebersicht.php\"> <br>zurück </a>";
|
||||
echo "<a href=\"kontouebersicht.php\"> <br>zurück </a>\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -143,35 +143,35 @@ if(isset($_GET['method']))
|
||||
|
||||
echo '<h1>Konto - Neu</h1>';
|
||||
// neues Konto anlegen
|
||||
echo "<form action=\"kontouebersicht.php?method=save\" method=\"post\">";
|
||||
echo '<table border=0>';
|
||||
echo '<tr>';
|
||||
echo '<td>Kontonummer</td>';
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"kontonummer\" value=\"\"></td>";
|
||||
echo '</tr>';
|
||||
echo "<form action=\"kontouebersicht.php?method=save\" method=\"post\">\n";
|
||||
echo "<table border=0>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Kontonummer</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"kontonummer\" value=\"\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s)
|
||||
{
|
||||
if($s->content == true)
|
||||
{
|
||||
$headline = $sprache->getSpracheFromIndex($i);
|
||||
echo '<tr>';
|
||||
echo "<td>$headline</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"beschreibung$i\" value=\"\"></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr>\n";
|
||||
echo "<td>$headline</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"beschreibung$i\" value=\"\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo "<td>Kurzbezeichnung</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"kurzbezeichnung\" value=\"\"></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr><td> </td><tr>";
|
||||
echo '<tr>';
|
||||
echo '<td><a href=kontouebersicht.php> zurueck </a></td>';
|
||||
echo '<td><input type="submit" value="Anlegen"></td>';
|
||||
echo '</tr>';
|
||||
echo '</form>';
|
||||
echo '</table>';
|
||||
echo "<td>Kurzbezeichnung</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"kurzbezeichnung\" value=\"\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td> </td><tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td><a href=kontouebersicht.php> zurueck </a></td>\n";
|
||||
echo "<td><input type='submit' value='Anlegen'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</form>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
}
|
||||
else if($_GET['method']== "save")
|
||||
@@ -278,42 +278,42 @@ if(isset($_GET['method']))
|
||||
$filter1 = isset($_POST['filter1'])?$_POST['filter1']:'';
|
||||
$filter2 = isset($_POST['filter2'])?$_POST['filter2']:'';
|
||||
|
||||
echo "<form name=\"suche\" action=\"kontouebersicht.php?method=merge\", method=\"POST\">";
|
||||
echo "<table border ='0' width='100%'>";
|
||||
echo "<tr>";
|
||||
echo "<td width='45%%'><input name='filter1' type='text' value=\"$filter1\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>";
|
||||
echo "<td width='10%'><input type='submit' value=' suchen ' ></td>";
|
||||
echo "<td width='45%%'><input name='filter2' type='text' value=\"$filter2\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr><td> </td></tr>";
|
||||
echo "</form>";
|
||||
echo "<form name=\"suche\" action=\"kontouebersicht.php?method=merge\", method=\"POST\">\n";
|
||||
echo "<table border ='0' width='100%'>\n";
|
||||
echo "<tr\n>";
|
||||
echo "<td width='45%%'><input name='filter1' type='text' value=\"$filter1\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>\n";
|
||||
echo "<td width='10%'><input type='submit' value=' suchen ' ></td>\n";
|
||||
echo "<td width='45%%'><input name='filter2' type='text' value=\"$filter2\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td> </td></tr>\n";
|
||||
echo "</form>\n";
|
||||
|
||||
echo '<br><a href=kontouebersicht.php>zurueck</a><br>';
|
||||
echo "</table>";
|
||||
echo "<br><a href=kontouebersicht.php>zurueck</a><br>\n";
|
||||
echo "</table>\n";
|
||||
//Tabellen anzeigen
|
||||
|
||||
echo "<form name='form_table' action='kontouebersicht.php?method=merge' method='POST'>";
|
||||
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' id='myTable' class='tablesorter'>";
|
||||
echo "<tr>";
|
||||
echo "<td valign='top'>Der wird gelöscht:";
|
||||
echo "<form name='form_table' action='kontouebersicht.php?method=merge' method='POST'>\n";
|
||||
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' id='myTable' class='tablesorter'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td valign='top'>Der wird gelöscht:</td>\n";
|
||||
|
||||
//Tabelle 1
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>";
|
||||
echo "<th>Konto ID</th>";
|
||||
echo "<th>Kontonummer</th>";
|
||||
echo "<th>Kurzbezeichnung</th>";
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>\n";
|
||||
echo "<th>Konto ID</th>\n";
|
||||
echo "<th>Kontonummer</th>\n";
|
||||
echo "<th>Kurzbezeichnung</th>\n";
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s)
|
||||
{
|
||||
if($s->content == true)
|
||||
{
|
||||
$headline = $sprache->getSpracheFromIndex($i);
|
||||
echo "<th>$headline</th>";
|
||||
echo "<th>$headline</th>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo "<th>Aktiv</th>";
|
||||
echo "<th> </th></tr></thead><tbody>";
|
||||
echo "<th>Aktiv</th>\n";
|
||||
echo "<th> </th></tr></thead><tbody>\n";
|
||||
|
||||
$konto = new wawi_konto();
|
||||
$konto->getKonto($filter1);
|
||||
@@ -322,73 +322,73 @@ if(isset($_GET['method']))
|
||||
{
|
||||
//Zeilen der Tabelle ausgeben
|
||||
echo '<tr>';
|
||||
echo '<td>'.$row->konto_id.'</td>';
|
||||
echo '<td>'.$row->kontonr.'</td>';
|
||||
echo '<td>'.$row->kurzbz.'</td>';
|
||||
echo '<td>'.$row->konto_id."</td>\n";
|
||||
echo '<td>'.$row->kontonr."</td>\n";
|
||||
echo '<td>'.$row->kurzbz."</td>\n";
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s)
|
||||
{
|
||||
if($s->content == true)
|
||||
{
|
||||
echo '<td>'.$row->beschreibung[$i].'</td>';
|
||||
echo '<td>'.$row->beschreibung[$i]."</td>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'.'</td>';
|
||||
echo "<td><input type='radio' name='radio_1' value='$row->konto_id' ";
|
||||
echo '</tr>';
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'."</td>\n";
|
||||
echo "<td><input type='radio' name='radio_1' value='$row->konto_id' </td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
echo "</tbody>";
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "<td valign='top'><input type='submit' value=' -> '></td>";
|
||||
echo "<td valign='top'>Der bleibt:";
|
||||
echo "</tbody>\n";
|
||||
echo "</table>\n";
|
||||
echo "</td>\n";
|
||||
echo "<td valign='top'><input type='submit' value=' -> '></td>\n";
|
||||
echo "<td valign='top'>Der bleibt:</td>\n";
|
||||
|
||||
//Tabelle 2
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>";
|
||||
echo "<th> </th>";
|
||||
echo "<th>Konto ID</th>";
|
||||
echo "<th>Kontonummer</th>";
|
||||
echo "<th>Kurzbezeichnung</th>";
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>\n";
|
||||
echo "<th> </th>\n";
|
||||
echo "<th>Konto ID</th>\n";
|
||||
echo "<th>Kontonummer</th>\n";
|
||||
echo "<th>Kurzbezeichnung</th>\n";
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s)
|
||||
{
|
||||
if($s->content == true)
|
||||
{
|
||||
$headline = $sprache->getSpracheFromIndex($i);
|
||||
echo "<th>$headline</th>";
|
||||
echo "<th>$headline</th>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo "<th>Aktiv</th>";
|
||||
echo "</tr></thead><tbody>";
|
||||
echo "<th>Aktiv</th>\n";
|
||||
echo "</tr></thead><tbody>\n";
|
||||
|
||||
$konto = new wawi_konto();
|
||||
$konto->getKonto($filter2);
|
||||
foreach($konto->result as $row)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo "<td><input type='radio' name='radio_2' value='$row->konto_id' ";
|
||||
echo "<td>$row->konto_id</td>";
|
||||
echo '<td>'.$row->kontonr.'</td>';
|
||||
echo '<td>'.$row->kurzbz.'</td>';
|
||||
echo "<tr>\n";
|
||||
echo "<td><input type='radio' name='radio_2' value='$row->konto_id' \n";
|
||||
echo "<td>$row->konto_id</td>\n";
|
||||
echo '<td>'.$row->kontonr."</td>\n";
|
||||
echo '<td>'.$row->kurzbz."</td>\n";
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s)
|
||||
{
|
||||
if($s->content == true)
|
||||
{
|
||||
echo '<td>'.$row->beschreibung[$i].'</td>';
|
||||
echo '<td>'.$row->beschreibung[$i]."</td>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'.'</td>';
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'."</td>\n";
|
||||
echo '</tr>';
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
echo "</table>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -400,47 +400,49 @@ else
|
||||
//echo '<a href="kontouebersicht.php?method=update">neues Konto anlegen </a><br>';
|
||||
//echo '<a href="kontouebersicht.php?method=merge">Konten zusammenlegen </a><br><br>';
|
||||
|
||||
echo '<table id="myTable" class="tablesorter"> <thead>';
|
||||
echo '<tr>
|
||||
echo "<table id='myTable' class='tablesorter'> <thead>\n";
|
||||
|
||||
|
||||
echo "<tr>
|
||||
<th></th>
|
||||
<th>Kontonummer</th>
|
||||
<th>Kurzbzeichnung</th>';
|
||||
<th>Kurzbzeichnung</th>\n";
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s)
|
||||
{
|
||||
if($s->content == true)
|
||||
{
|
||||
$headline = $sprache->getSpracheFromIndex($i);
|
||||
echo "<th>$headline</th>";
|
||||
echo "<th>$headline</th>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo '<th>aktiv</th>
|
||||
</tr> </thead><tbody>';
|
||||
echo "<th>aktiv</th>
|
||||
</tr> </thead><tbody>\n";
|
||||
|
||||
foreach($konto->result as $row)
|
||||
{
|
||||
//Zeilen der Tabelle ausgeben
|
||||
echo '<tr>';
|
||||
echo "<td nowrap> <a href= \"kontouebersicht.php?method=update&id=$row->konto_id\" title='Bearbeiten'> <img src=\"../skin/images/edit.gif\"> </a><a href=\"kontouebersicht.php?method=delete&id=$row->konto_id\" onclick='return conf_del()' title='Löschen'> <img src=\"../skin/images/delete.gif\"></a>";
|
||||
echo '<td>'.$row->kontonr.'</td>';
|
||||
echo '<td>'.$row->kurzbz.'</td>';
|
||||
echo "<tr>\n";
|
||||
echo "<td nowrap> <a href= \"kontouebersicht.php?method=update&id=$row->konto_id\" title='Bearbeiten'> <img src=\"../skin/images/edit.gif\"> </a><a href=\"kontouebersicht.php?method=delete&id=$row->konto_id\" onclick='return conf_del()' title='Löschen'> <img src=\"../skin/images/delete.gif\"></a>\n";
|
||||
echo '<td>'.$row->kontonr."</td>\n";
|
||||
echo '<td>'.$row->kurzbz."</td>\n";
|
||||
$i = 1;
|
||||
foreach($sprache->result as $s)
|
||||
{
|
||||
if($s->content == true)
|
||||
{
|
||||
echo '<td>'.$row->beschreibung[$i].'</td>';
|
||||
echo '<td>'.$row->beschreibung[$i]."</td>\n";
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'.'</td>';
|
||||
echo '</tr>';
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'."</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
echo "</tbody></table>\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+160
-150
@@ -76,7 +76,7 @@ if(isset($_GET['method']))
|
||||
//wenn id gesetzt ist --> update ansonsten neue anlegen
|
||||
if(isset($_GET['id']))
|
||||
{
|
||||
echo '<h1>Kostenstelle - Bearbeiten</h1>';
|
||||
echo "<h1>Kostenstelle - Bearbeiten</h1>\n";
|
||||
$id = $_GET['id'];
|
||||
if(!$rechte->isberechtigt('wawi/kostenstelle',null, 'su',$id))
|
||||
die('Sie haben keine Berechtigung für diese Kostenstelle');
|
||||
@@ -98,11 +98,11 @@ if(isset($_GET['method']))
|
||||
$checked = 'checked';
|
||||
}
|
||||
|
||||
echo "<form action=\"kostenstellenuebersicht.php?method=save&id=$kostenstelle->kostenstelle_id\" method=\"post\">";
|
||||
echo "<form action=\"kostenstellenuebersicht.php?method=save&id=$kostenstelle->kostenstelle_id\" method=\"post\">\n";
|
||||
echo '<table border=0>';
|
||||
echo '<tr>';
|
||||
echo " Organisationseinheit: <SELECT name='filter_oe_kurzbz'>";
|
||||
echo '<option value="">-- Keine Auswahl --</option>';
|
||||
echo " Organisationseinheit: <SELECT name='filter_oe_kurzbz'>\n";
|
||||
echo "<option value=''>-- Keine Auswahl --</option>\n";
|
||||
|
||||
foreach ($oeinheiten as $oei)
|
||||
{
|
||||
@@ -113,48 +113,48 @@ if(isset($_GET['method']))
|
||||
|
||||
if($oei->aktiv)
|
||||
{
|
||||
echo '<option value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->organisationseinheittyp_kurzbz.' '.$oei->bezeichnung.'</option>';
|
||||
echo '<option value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->organisationseinheittyp_kurzbz.' '.$oei->bezeichnung."</option>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<option style="text-decoration:line-through;" value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->bezeichnung.'</option>';
|
||||
echo '<option style="text-decoration:line-through;" value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->bezeichnung."</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</SELECT>";
|
||||
echo '<tr>';
|
||||
echo "<td>Bezeichnung</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"bezeichnung\" value=\"$kostenstelle->bezeichnung\"></td>";
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo "<td>Kurzbezeichnung</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kurzbezeichnung\" value=\"$kostenstelle->kurzbz\"></td>";
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo "<td>Budget</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"budget\" value=\"$kostenstelle->budget\"></td>";
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo "<td>Kostenstellen Nr.</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kostenstelle_nr\" value=\"$kostenstelle->kostenstelle_nr\"></td>";
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo "<td>Aktiv?</td>";
|
||||
echo "<td><input type=\"checkbox\" name=\"aktiv\" value=\"aktiv\" $checked>";
|
||||
echo "</tr>";
|
||||
echo "<tr><td> </td><tr>";
|
||||
echo '<tr>';
|
||||
echo '<td><a href=kostenstellenuebersicht.php> zurueck </a></td>';
|
||||
echo '<td><input type="submit" value="update"></td>';
|
||||
echo '</tr>';
|
||||
echo '</form>';
|
||||
echo '</table>';
|
||||
echo "</SELECT>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Bezeichnung</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"bezeichnung\" value=\"$kostenstelle->bezeichnung\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Kurzbezeichnung</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kurzbezeichnung\" value=\"$kostenstelle->kurzbz\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Budget</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"budget\" value=\"$kostenstelle->budget\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Kostenstellen Nr.</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" name=\"kostenstelle_nr\" value=\"$kostenstelle->kostenstelle_nr\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Aktiv?</td>\n";
|
||||
echo "<td><input type=\"checkbox\" name=\"aktiv\" value=\"aktiv\" $checked>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td> </td><tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td><a href=kostenstellenuebersicht.php> zurueck </a></td>\n";
|
||||
echo "<td><input type='submit' value='update'></td>";
|
||||
echo "</tr>\n";
|
||||
echo "</form>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Kostenstelle wurde nicht gefunden!';
|
||||
echo "<a href=\"kostenstellenuebersicht.php\"> <br>zurück </a>";
|
||||
echo "Kostenstelle wurde nicht gefunden!";
|
||||
echo "<a href=\"kostenstellenuebersicht.php\"> <br>zurück </a>\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -175,11 +175,11 @@ if(isset($_GET['method']))
|
||||
$oe->getAll();
|
||||
$oeinheiten= $oe->result;
|
||||
|
||||
echo "<form action=\"kostenstellenuebersicht.php?method=save\" method=\"post\">";
|
||||
echo '<table border=0>';
|
||||
echo '<tr>';
|
||||
echo " Organisationseinheit: <SELECT name='filter_oe_kurzbz'>";
|
||||
echo '<option value="">-- Keine Auswahl --</option>';
|
||||
echo "<form action=\"kostenstellenuebersicht.php?method=save\" method=\"post\">\n";
|
||||
echo "<table border=0>\n";
|
||||
echo "<tr>\n";
|
||||
echo " Organisationseinheit: <SELECT name='filter_oe_kurzbz'>\n";
|
||||
echo "<option value=''>-- Keine Auswahl --</option>\n";
|
||||
|
||||
foreach ($oeinheiten as $oei)
|
||||
{
|
||||
@@ -188,38 +188,38 @@ if(isset($_GET['method']))
|
||||
|
||||
if($oei->aktiv)
|
||||
{
|
||||
echo '<option value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->organisationseinheittyp_kurzbz.' '.$oei->bezeichnung.'</option>';
|
||||
echo '<option value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->organisationseinheittyp_kurzbz.' '.$oei->bezeichnung."</option>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<option style="text-decoration:line-through;" value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->bezeichnung.'</option>';
|
||||
echo '<option style="text-decoration:line-through;" value="'.$oei->oe_kurzbz.'" '.$selected.'>'.$oei->bezeichnung."</option>\n";
|
||||
}
|
||||
}
|
||||
echo "</SELECT>";
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo "<td>Bezeichnung</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"256\" name=\"bezeichnung\" value=\"\"></td>";
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo "<td>Kurzbezeichnung</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"kurzbezeichnung\" value=\"\"></td>";
|
||||
echo "</tr>";
|
||||
echo '<tr>';
|
||||
echo "<td>Budget</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"budget\" value=\"\"></td>";
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo "<td>Kostenstellen Nr.</td>";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"4\" name=\"kostenstelle_nr\" value=\"\"></td>";
|
||||
echo '</tr>';
|
||||
echo "<tr><td> </td><tr>";
|
||||
echo '<tr>';
|
||||
echo '<td><a href=kostenstellenuebersicht.php> zurueck </a></td>';
|
||||
echo '<td><input type="submit" value="Anlegen"></td>';
|
||||
echo '</tr>';
|
||||
echo '</form>';
|
||||
echo '</table>';
|
||||
echo "</SELECT>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Bezeichnung</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"256\" name=\"bezeichnung\" value=\"\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Kurzbezeichnung</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"kurzbezeichnung\" value=\"\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Budget</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"32\" name=\"budget\" value=\"\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td>Kostenstellen Nr.</td>\n";
|
||||
echo "<td><input type=\"text\" size=\"32\" maxlength =\"4\" name=\"kostenstelle_nr\" value=\"\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td> </td><tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td><a href=kostenstellenuebersicht.php> zurueck </a></td>\n";
|
||||
echo "<td><input type='submit' value='Anlegen'></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</form>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
}
|
||||
else if($_GET['method']=='delete')
|
||||
@@ -300,26 +300,27 @@ if(isset($_GET['method']))
|
||||
die('Fehler beim Speichern:<br>'.$kostenstelle->errormsg."<a href=\"kostenstellenuebersicht.php\"> <br>zurück </a>");
|
||||
}
|
||||
echo $ausgabe;
|
||||
echo "<a href=\"kostenstellenuebersicht.php\"> <br>zurück </a>";
|
||||
echo "<a href=\"kostenstellenuebersicht.php\"> <br>zurück </a>\n";
|
||||
}
|
||||
else if ($_GET['method']=="allocate")
|
||||
{
|
||||
if(!$rechte->isberechtigt('wawi/kostenstelle',null, 'su',$_GET['id']))
|
||||
die('Sie haben keine Berechtigung zum Ändern der Kostenstelle');
|
||||
|
||||
echo '<h1>Kostenstelle - Konten zuordnen</h1>';
|
||||
echo '<h1>Kostenstelle - Konten zuordnen</h1><br>';
|
||||
$i = 0;
|
||||
$kostenstelle = new wawi_kostenstelle();
|
||||
$konto = new wawi_konto();
|
||||
|
||||
$kontos = array(); // Array der Konten die einer Kostenstelle zugewiesen sind
|
||||
|
||||
$konto->getAll();
|
||||
$konto->getAll(null, 'beschreibung');
|
||||
$kontouebersicht = $konto->result;
|
||||
$kostenstelle_id = isset($_GET['id'])?$_GET['id']:'';
|
||||
|
||||
echo '<a href="kostenstellenuebersicht.php">zurück</a>';
|
||||
echo "<form name=\"save\" action=\"kostenstellenuebersicht.php?method=allocate&id=$kostenstelle_id\", method=\"POST\">";
|
||||
echo "<table border ='0' width='100%'>";
|
||||
// echo "<a href='kostenstellenuebersicht.php'>zurück</a>\n";
|
||||
echo "<form name=\"save\" action=\"kostenstellenuebersicht.php?method=allocate&id=$kostenstelle_id\", method=\"POST\">\n";
|
||||
echo "<table border =0 width ='80%' ><tr><td><table border ='0' width=33% align=left >\n";
|
||||
|
||||
if(isset($_POST['submit']))
|
||||
{
|
||||
@@ -349,19 +350,28 @@ if(isset($_GET['method']))
|
||||
//sucht nach allen Kontos der Kostenstelle und markiert diese
|
||||
foreach($kontouebersicht as $ko)
|
||||
{
|
||||
|
||||
$checked = '';
|
||||
$kontos = $kostenstelle->get_konto_from_kostenstelle($kostenstelle_id);
|
||||
if(in_array($ko->konto_id,$kontos))
|
||||
{
|
||||
$checked='checked';
|
||||
}
|
||||
|
||||
echo '<tr> <td>';
|
||||
|
||||
if($i % 31 == 0)
|
||||
{
|
||||
//echo $i;
|
||||
echo "</table><table border = '0' width=33% align=left>";
|
||||
}
|
||||
$i ++;
|
||||
echo "<tr> <td>\n";
|
||||
echo '<input type="checkbox" name="checkbox_'.$ko->konto_id.'" value='.$ko->konto_id." $checked>".$ko->beschreibung[1].'<br>';
|
||||
echo '</td> </tr>';
|
||||
}
|
||||
|
||||
echo '<tr><td> </td></tr></table> <input name ="submit" type="submit" value="Speichern"></form>';
|
||||
echo "</table>\n";
|
||||
echo "</td></tr><tr><td> </td></tr></table>";
|
||||
echo "<table border =0 width =100><tr><td><input name ='submit' type='submit' value='Speichern'></form></td></tr></table>\n";
|
||||
}
|
||||
else if ($_GET['method']=="merge")
|
||||
{
|
||||
@@ -402,34 +412,34 @@ if(isset($_GET['method']))
|
||||
$filter1 = isset($_POST['filter1'])?$_POST['filter1']:'';
|
||||
$filter2 = isset($_POST['filter2'])?$_POST['filter2']:'';
|
||||
|
||||
echo "<form name=\"suche\" action=\"kostenstellenuebersicht.php?method=merge\", method=\"POST\">";
|
||||
echo "<table border ='0' width='100%'>";
|
||||
echo "<tr>";
|
||||
echo "<td width='45%%'><input name='filter1' type='text' value=\"$filter1\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>";
|
||||
echo "<td width='10%'><input type='submit' value=' suchen ' ></td>";
|
||||
echo "<td width='45%%'><input name='filter2' type='text' value=\"$filter2\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>";
|
||||
echo "</tr>";
|
||||
echo "<tr><td> </td></tr>";
|
||||
echo "<form name=\"suche\" action=\"kostenstellenuebersicht.php?method=merge\", method=\"POST\">\n";
|
||||
echo "<table border ='0' width='100%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td width='45%%'><input name='filter1' type='text' value=\"$filter1\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>\n";
|
||||
echo "<td width='10%'><input type='submit' value=' suchen ' ></td>\n";
|
||||
echo "<td width='45%%'><input name='filter2' type='text' value=\"$filter2\" size=\"64\" maxlength=\"64\" id ='suchen' onfocus=\"this.value='';\"></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td> </td></tr>\n";
|
||||
|
||||
echo "</form>";
|
||||
echo '<br><a href=kostenstellenuebersicht.php>zurueck</a><br>';
|
||||
echo "</table>";
|
||||
echo "</form>\n";
|
||||
echo "<br><a href=kostenstellenuebersicht.php>zurueck</a><br>\n";
|
||||
echo "</table>\n";
|
||||
//Tabellen anzeigen
|
||||
echo "<form name='form_table' action='kostenstellenuebersicht.php?method=merge' method='POST'>";
|
||||
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' id='myTable' class='tablesorter'>";
|
||||
echo "<tr>";
|
||||
echo "<td valign='top'>Der wird gelöscht:";
|
||||
echo "<form name='form_table' action='kostenstellenuebersicht.php?method=merge' method='POST'>\n";
|
||||
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' id='myTable' class='tablesorter'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td valign='top'>Der wird gelöscht:\n";
|
||||
|
||||
//Tabelle 1
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>";
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>\n";
|
||||
|
||||
echo "<th>Kostenstellen ID</th>";
|
||||
echo "<th>Organisationseinheit</th>";
|
||||
echo "<th>Bezeichnung</th>";
|
||||
echo "<th>Kurzbezeichnung</th>";
|
||||
echo "<th>Kostenstellennummer</th>";
|
||||
echo "<th>Aktiv</th>";
|
||||
echo "<th> </th></tr></thead><tbody>";
|
||||
echo "<th>Kostenstellen ID</th>\n";
|
||||
echo "<th>Organisationseinheit</th>\n";
|
||||
echo "<th>Bezeichnung</th>\n";
|
||||
echo "<th>Kurzbezeichnung</th>\n";
|
||||
echo "<th>Kostenstellennummer</th>\n";
|
||||
echo "<th>Aktiv</th>\n";
|
||||
echo "<th> </th></tr></thead><tbody>\n";
|
||||
|
||||
$kostenstelle = new wawi_kostenstelle();
|
||||
$kostenstelle->getAll($filter1);
|
||||
@@ -439,35 +449,35 @@ if(isset($_GET['method']))
|
||||
foreach($kostenstelle->result as $row)
|
||||
{
|
||||
//Zeilen der Tabelle ausgeben
|
||||
echo '<tr>';
|
||||
echo "<td>$row->kostenstelle_id</td>";
|
||||
echo '<td>'.$row->oe_kurzbz.'</td>';
|
||||
echo '<td>'.$row->bezeichnung.'</td>';
|
||||
echo '<td>'.$row->kurzbz.'</td>';
|
||||
echo '<td>'.$row->kostenstelle_nr.'</td>';
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'.'</td>';
|
||||
echo "<td><input type='radio' name='radio_1' value='$row->kostenstelle_id' ";
|
||||
echo '</tr>';
|
||||
echo "<tr>";
|
||||
echo "<td>$row->kostenstelle_id</td>\n";
|
||||
echo '<td>'.$row->oe_kurzbz."</td>\n";
|
||||
echo '<td>'.$row->bezeichnung."</td>\n";
|
||||
echo '<td>'.$row->kurzbz."</td>\n";
|
||||
echo '<td>'.$row->kostenstelle_nr."</td>\n";
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'."</td>\n";
|
||||
echo "<td><input type='radio' name='radio_1' value='$row->kostenstelle_id' </td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
echo "</tbody>";
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "<td valign='top'><input type='submit' value=' -> '></td>";
|
||||
echo "<td valign='top'>Der bleibt:";
|
||||
echo "</tbody>\n";
|
||||
echo "</table>\n";
|
||||
echo "</td>\n";
|
||||
echo "<td valign='top'><input type='submit' value=' -> '></td>\n";
|
||||
echo "<td valign='top'>Der bleibt:\n";
|
||||
|
||||
//Tabelle 2
|
||||
//echo "<table ><tr class='liste'>";
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>";
|
||||
echo "<th> </th>";
|
||||
echo "<th>Kostenstellen ID</th>";
|
||||
echo "<th>Organisationseinheit</th>";
|
||||
echo "<th>Bezeichnung</th>";
|
||||
echo "<th>Kurzbezeichnung</th>";
|
||||
echo "<th>Kostenstellennummer</th>";
|
||||
echo "<th>Aktiv</th>";
|
||||
echo "<th> </th></tr></thead><tbody>";
|
||||
echo "<table id='myTable' class='tablesorter'><thead> <tr>\n";
|
||||
echo "<th> </th>\n";
|
||||
echo "<th>Kostenstellen ID</th>\n";
|
||||
echo "<th>Organisationseinheit</th>\n";
|
||||
echo "<th>Bezeichnung</th>\n";
|
||||
echo "<th>Kurzbezeichnung</th>\n";
|
||||
echo "<th>Kostenstellennummer</th>\n";
|
||||
echo "<th>Aktiv</th>\n";
|
||||
echo "<th> </th></tr></thead><tbody>\n";
|
||||
|
||||
|
||||
$kostenstelle = new wawi_kostenstelle();
|
||||
@@ -475,28 +485,28 @@ if(isset($_GET['method']))
|
||||
$i=0;
|
||||
foreach($kostenstelle->result as $row)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo "<td><input type='radio' name='radio_2' value='$row->kostenstelle_id' ";
|
||||
echo '<td>'.$row->kostenstelle_id.'</td>';
|
||||
echo '<td>'.$row->oe_kurzbz.'</td>';
|
||||
echo '<td>'.$row->bezeichnung.'</td>';
|
||||
echo '<td>'.$row->kurzbz.'</td>';
|
||||
echo '<td>'.$row->kostenstelle_nr.'</td>';
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'.'</td>';
|
||||
echo '</tr>';
|
||||
echo "<tr>\n";
|
||||
echo "<td><input type='radio' name='radio_2' value='$row->kostenstelle_id' </td>\n";
|
||||
echo '<td>'.$row->kostenstelle_id."</td>\n";
|
||||
echo '<td>'.$row->oe_kurzbz."</td>\n";
|
||||
echo '<td>'.$row->bezeichnung."</td>\n";
|
||||
echo '<td>'.$row->kurzbz."</td>\n";
|
||||
echo '<td>'.$row->kostenstelle_nr."</td>\n";
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'."</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
$i++;
|
||||
}
|
||||
echo "</table>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
echo "</table>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<h1>Kostenstelle - Übersicht</h1>';
|
||||
echo "<h1>Kostenstelle - Übersicht</h1>\n";
|
||||
if(!$rechte->isberechtigt('wawi/kostenstelle',null, 's'))
|
||||
die('Sie haben keine Berechtigung zum Anzeigen der Kostenstellen');
|
||||
|
||||
@@ -505,7 +515,7 @@ else
|
||||
//echo '<a href="kostenstellenuebersicht.php?method=update">neue Kostenstelle anlegen </a><br>';
|
||||
//echo '<a href="kostenstellenuebersicht.php?method=merge">Konten zusammenlegen </a><br><br>';
|
||||
|
||||
echo '<table id="myTable" class="tablesorter"> <thead>';
|
||||
echo "<table id='myTable' class='tablesorter'> <thead>\n";
|
||||
|
||||
echo '<tr>
|
||||
<th></th>
|
||||
@@ -521,19 +531,19 @@ else
|
||||
foreach($kostenstelle->result as $row)
|
||||
{
|
||||
//Zeilen der Tabelle ausgeben
|
||||
echo '<tr>';
|
||||
echo "<td nowrap> <a href=\"kostenstellenuebersicht.php?method=allocate&id=$row->kostenstelle_id\" title=\"Konten zuordnen\"><img src=\"../skin/images/addKonto.png\"></a> <a href= \"kostenstellenuebersicht.php?method=update&id=$row->kostenstelle_id\" title=\"Bearbeiten\"> <img src=\"../skin/images/edit.gif\"> </a><a href=\"kostenstellenuebersicht.php?method=delete&id=$row->kostenstelle_id\" onclick='return conf_del()' title='Löschen'> <img src=\"../skin/images/delete.gif\"></a>";
|
||||
echo '<td>'.$row->kostenstelle_id.'</td>';
|
||||
echo '<td>'.$row->kostenstelle_nr.'</td>';
|
||||
echo '<td>'.$row->bezeichnung.'</td>';
|
||||
echo '<td>'.$row->kurzbz.'</td>';
|
||||
echo '<td>'.$row->budget.'</td>';
|
||||
echo '<td>'.$row->oe_kurzbz.'</td>';
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'.'</td>';
|
||||
echo '</tr>';
|
||||
echo "<tr>\n";
|
||||
echo "<td nowrap> <a href=\"kostenstellenuebersicht.php?method=allocate&id=$row->kostenstelle_id\" title=\"Konten zuordnen\"><img src=\"../skin/images/addKonto.png\"></a> <a href= \"kostenstellenuebersicht.php?method=update&id=$row->kostenstelle_id\" title=\"Bearbeiten\"> <img src=\"../skin/images/edit.gif\"> </a><a href=\"kostenstellenuebersicht.php?method=delete&id=$row->kostenstelle_id\" onclick='return conf_del()' title='Löschen'> <img src=\"../skin/images/delete.gif\"></a>\n";
|
||||
echo '<td>'.$row->kostenstelle_id."</td>\n";
|
||||
echo '<td>'.$row->kostenstelle_nr."</td>\n";
|
||||
echo '<td>'.$row->bezeichnung."</td>\n";
|
||||
echo '<td>'.$row->kurzbz."</td>\n";
|
||||
echo '<td>'.$row->budget."</td>\n";
|
||||
echo '<td>'.$row->oe_kurzbz."</td>\n";
|
||||
echo '<td>'.$aktiv=($row->aktiv)?'ja':'nein'."</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
echo "</tbody></table>\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user