Hochladen aller Dateien des Projekts.

This commit is contained in:
2024-06-13 22:21:23 +02:00
parent 8af145816f
commit 2e0cd7dee3
650 changed files with 97218 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

205
LDAP_erstes_beispiel.php Executable file
View File

@@ -0,0 +1,205 @@
<?php
echo "<html><head>";
echo "<title>LDAP-Zugriff auf ein Active Directory</title>";
echo "</head><body>";
// *** Parameter für den LDAP-Zugriff ***
// Adresse des Domänencontrollers:
$ldap_server = "ldap://10.11.35.1";
// Konto für den Zugriff:
$auth_user = "condecco@dms01.local";
$auth_pass = "Kx32?t21qay";
// Mit Server verbinden:
if (!($connect=@ldap_connect($ldap_server))) {
die("Keine Verbindung zum Verzeichnis-Server möglich.");
}
// Diese Parameter sind nötig für den Zugriff auf ein Active Directory:
ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($connect, LDAP_OPT_REFERRALS, 0);
// An Server binden:
if (!($bind=@ldap_bind($connect, $auth_user, $auth_pass))) {
die("Bind fehlgeschlagen.");
}
$person="Christ";
//$dn = utf8_encode( "OU=Technik,OU=Münster,OU=Mitarbeiter,DC=DMS01,DC=local");
$dn = utf8_encode( "DC=DMS01,DC=local");
$filter="(CN=calbers)";
$justthese = array( "ou", "sn", "cn", "givenName", "mail", "vorname", "memberOf", "badPasswordTime");
$sr=ldap_search($connect, $dn, $filter, $justthese);
ldap_get_option($connect,LDAP_OPT_ERROR_STRING,$error);
echo $error;
$info = ldap_get_entries($connect, $sr);
print $info["count"]." gefundene Einträge<p>";
echo "name: ".$info[ 0 ][ "sn" ][ 0 ]."<br />";
echo "benutzer_anmeldename: ".$info[ 0 ][ "cn" ][ 0 ]."<br />";
echo "vorname: ".$info[ 0 ][ "givenname" ][ 0 ]."<br />";
echo "Email: ".$info[ 0 ][ "mail" ][ 0 ]."<br />";
foreach( $info[ 0 ][ "memberof" ] as $key=>$element )
{
if ( is_int( $key) )
{ echo "schluessel: ".$key." gruppe: ".$element."<br />";
}
}
echo "<hr />";
var_dump( $info );
//var_dump( $info );
/*
foreach( $info as $key=>$element )
{
if ( is_array( $element ) )
{
foreach( $element as $key_2=>$element_2 )
{
if ( is_array( $element_2 ) )
{
foreach( $element_2 as $key_3=>$element_3 )
{
echo "===>".$key_3."|".$element_3."<===<br />";
}
}
else
{
echo "==>".$key_2."|".$element_2."<==<br />";
}
}
}
else
{
echo "=>".$key."|".$element."<=<br />";
}
}
*/
$username = "calbers";
$passwort = "Lichterc!";
echo "Versuch";
//echo checkNTUser ($username,$passwort);
echo "fertig";
/*
// BaseDN festlegen:
$base_dn = "OU=Vertrieb,DC=dms01,DC=local";
//$base_dn = "";
// LDAP filter setzen: Nur Kontakt- und Benutzer-Objekte sollen zurückgegeben werden
//$filter = "(|(objectClass=contact)(objectClass=user))";
$filter = "uid=*";
// Suche starten:
if (!($search=@ldap_search($connect,$base_dn,$filter))) {
ldap_get_option($connect,LDAP_OPT_ERROR_STRING,$error);
echo $error;
die("Durchsuchen des LDAP-Servers fehlgeschlagen.");
}
*/
$sr=ldap_search($connect, $dn, $filter, $justthese);
$anzahl = ldap_count_entries($connect,$sr);
// Ergebnis der Suche in der Variablen $info ablegen:
$info = ldap_get_entries($connect, $sr);
// Nur die relevanten Teile des $info-Arrays in ein $ergebnis-Array übernehmen:
// (Verbessert die Übersichtlichkeit)
// Hinweis: utf8_decode dekodiert Umlaute richtig.
for ($i=0; $i<$anzahl; $i++) {
$ergebnis[$i]["objectclass"] = $info[$i]["objectclass"][3];
$ergebnis[$i]["displayname"] = utf8_decode($info[$i]["displayname"][0]);
$ergebnis[$i]["givenname"] = utf8_decode($info[$i]["givenname"][0]);
$ergebnis[$i]["sn"] = utf8_decode($info[$i]["sn"][0]);
$ergebnis[$i]["mail"] = $info[$i]["memberOf"][0];
$ergebnis[$i]["telephonenumber"]= $info[$i]["telephonenumber"][0];
// Der distinguishedName, also z.B. CN=blub,OU=...,DC=test,DC=local
// soll dazu verwendet werden, aus den OU-Angaben die Abteilung
// zu erzeugen:
$ergebnis[$i]["abteilung"] = utf8_decode( erzeuge_abteilung($info[$i][dn]) );
}
// Array alphabetisch sortieren, usort erwartet dazu eine Vergleichsfunktion:
//usort($ergebnis, 'vergleich');
// Array $ergebnis in einer Tabelle ausgeben:
echo "<table border=1>";
for ($i=0; $i<$anzahl; $i++) {
echo "<tr>";
echo "<td width=200>displayname" . $ergebnis[$i]["displayname"] . "</td>";
echo "<td width=200>abteilung " . $ergebnis[$i]["abteilung"] . "</td>";
/*
if (empty($ergebnis[$i]["mail"]))
echo "<td width=200> - </td>";
else
echo "<td width=200> " . $ergebnis[$i]["mail"] . "</td>";
*/
if (empty($ergebnis[$i]["telephonenumber"]))
echo "<td width=100> - </td>";
else
echo "<td width=100>telefon" . $ergebnis[$i]["telephonenumber"] . "</td>";
echo "</tr>";
}
echo "</table>";
echo "</body></html>";
function erzeuge_abteilung ($dn) {
// $dn ist z.B.: CN=blub,OU=Nord,OU=Verkauf,OU=Benutzer,DC=test,DC=local
$pos = strpos($dn, ',DC=');
$dn = substr($dn, 0, $pos);
// -> $dn: CN=blub,OU=Nord,OU=Verkauf,OU=Benutzer
$pos = strpos($dn, ',OU=');
$dn = substr($dn, $pos);
// -> $dn: ,OU=Nord,OU=Verkauf,OU=Benutzer
$abteilung = "";
$abteilungen = explode(',OU=', $dn);
// -> $abteilungen: Nord, Verkauf, Benutzer
for ($j = count($abteilungen)-1; $j > 0; $j--) {
$abteilung = $abteilung . "-" . $abteilungen[$j];
}
// -> $abteilung: - Benutzer - Verkauf - Nord
$abteilung = substr($abteilung, 1);
// -> $abteilung: Benutzer - Verkauf - Nord
return $abteilung;
}
function vergleich($wert_a, $wert_b)
{
// Sortierung nach dem displayname
$a = $wert_a["displayname"];
$b = $wert_b["displayname"];
if ($a == $b) {
return 0;
}
return ($a < $b) ? -1 : +1;
}
?>

17
SCHABLONE.php Executable file
View File

@@ -0,0 +1,17 @@
<?php
@session_start();
$_SESSION[ "title" ] = "Ihr Passwort ist abgelaufen.";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
echo "benutzername: ".$_SESSION[ "benutzer_anmeldename" ]."<br />";
echo "passwort: ".$_POST["passwort"]."<br />";
echo "mandant: ".$_POST["mandant"]."<br />";
echo "sprache: ".$_POST["sprache"]."<br />";
include( 'ssi_footer.php' );
?>

92
ad_benutzer.php Executable file
View File

@@ -0,0 +1,92 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_BENUTZER" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Benutzerverwaltung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo "<span>Schnellsuche:</span><input type='text' style='width:200px;' value='Schnellsuche ...' name='schnellsuche' id='schnellsuche' onfocus=\"this.value = ''; fuelle_element( 'ergebnis_1', '' ); \" onblur=\"this.value='Schnellsuche ...';\" onkeyup=\"ajaxFunction( 'su_web.php?cmd=suche_benutzer&mandant_name=".urlencode( $mandant_name )."&konfig_option='+encodeURIComponent( this.value ), 'eintraege_liste' );\" /><br /><br />";
echo '<div id="eintraege_liste" name="eintraege_liste" style=" display:inline;" ><select id="select_style_1" size="20" name="users" onchange="fuelle_element( \'ergebnis_3\', \'\' );ajaxFunction( \'su_web.php?cmd=liefere_benutzerinformationen&benutzer_anmeldename=\'+this.value, \'ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_benutzer_optionen&benutzer_anmeldename=\'+this.value, \'ergebnis_2\' );" >';
//
// Schleife über die Optionen
$ergebnis_1 = liefere_wertemenge_elemente( $mandant_name, "systembenutzer" );
foreach ( $ergebnis_1[ 2 ] as $zeile )
{
$ben = liefere_benutzerinformationen( $mandant_name, $zeile[ "alpha_01" ] );
echo "<option value='".$ben[ 2 ][ "benutzer_anmeldename" ]."'>".$ben[ 2 ][ "benutzer_vorname" ]." ".$ben[ 2 ][ "benutzer_nachname" ]."</option>";
}
$ergebnis = liefere_alle_benutzer_bavn( $mandant_name, false );
foreach ( $ergebnis[ 2 ] as $zeile )
{
if ( ( strlen( $zeile[ "benutzer_vorname" ] ) == 0 ) and ( strlen( $zeile[ "benutzer_nachname" ] ) == 0 ) )
{
$name = $zeile[ "benutzer_anmeldename" ];
}
else
{
$name = $zeile[ "benutzer_vorname" ]." ".$zeile[ "benutzer_nachname" ];
}
echo "<option value='".$zeile[ "benutzer_anmeldename" ]."'>".$name."</option>";
}
?>
</select></div>
<div name="ergebnis_1" id="ergebnis_1" style=" vertical-align:top; position:absolute; display:inline; margin-top:10px;" ></div>
<div name="ergebnis_2" id="ergebnis_2" style=" margin-top:10px;" ><input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="$( '#ergebnis_3' ).load( 'su_web.php?cmd=benutzer_anlegen', function() { $( '.date-pick' ).datepicker( { showAnim: 'clip', buttonImageOnly: true, showOn: 'both', buttonImage: 'img/kalender.png', showWeek: true } ); } ); " /></div>
<?php
echo '<div name="ergebnis_3" id="ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

157
ad_benutzer_erw.php Executable file
View File

@@ -0,0 +1,157 @@
<?php
@session_start();
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_BENUTZER" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$benutzer_anmeldename_udeg = $_GET[ "benutzer_anmeldename" ];
//xlog( 4, "benutzer_anmeldename_udeg: ".$benutzer_anmeldename_udeg );
$benutzer_infos = liefere_benutzerinformationen( $_SESSION[ "mandant_name" ] /* hier ist $mandant_name noch nicht gesetzt */, $benutzer_anmeldename_udeg );
if ( ( strlen( $benutzer_infos[ 2 ][ "benutzer_vorname" ] ) == 0 ) and ( strlen( $benutzer_infos[ 2 ][ "benutzer_nachname" ] ) == 0 ) )
{
$vollname = $benutzer_infos[ 2 ][ "benutzer_anmeldename" ];
}
else
{
$vollname = $benutzer_infos[ 2 ][ "benutzer_vorname" ]." ".$benutzer_infos[ 2 ][ "benutzer_nachname" ];
}
$_SESSION[ "title" ] = "Einstellungen f&uuml;r den Benutzer ".$vollname;
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
$ergebnis_1 = liefere_benutzerspezifische_einstellungen_kategorien( $mandant_name, $benutzer_anmeldename_udeg );
$wertemenge = liefere_wertemenge_elemente( $mandant_name, "wertemengen_liste" );
echo "<h1 style='height:35px;' >Benutzereinstellungen</h1>";
if ( $ergebnis_1[ 0 ] > 0 )
{
foreach( $ergebnis_1[ 2 ] as $kategorie )
{
$ergebnis_2 = liefere_benutzerspezifische_einstellungen_anhand_kategorie_vollstaendig( $mandant_name, $benutzer_anmeldename_udeg, $kategorie );
if ( $ergebnis_2[ 0 ] > 0 )
{
$i = 0;
echo "<a name='".urlencode( $kategorie )."' href='#".urlencode( $kategorie )."'></a>";
echo "<h2>".$kategorie."</h2>";
echo "<form name='form' action='su_web.php?cmd=benutzereinstellungen_aendern_ad&mandant_name=".urlencode( $mandant_name )."&kategorie=".urlencode( $kategorie )."' method='post' accept-charset='UTF-8' >";
echo "<input type='hidden' value='".$benutzer_anmeldename_udeg."' name='benutzer_anmeldename' />";
echo "
<table style=' font-size:90%; '>";
//echo "<tr><th style='width:200px;'>Bezeichnung</th><th>Wert</th><th>Wertemenge</th><th>Benutzer darf Wert &auml;ndern</th></tr>";
foreach ( $ergebnis_2[ 2 ] as $einstellung )
{
$i = bcadd( $i, 1, 0 );
echo "<tr><td style='width:200px;'>".$einstellung[ "bezeichnung" ]."</td><td><input type='hidden' name='bez_a_".liefere_anzahl_zeichen( bcsub( 2, strlen( $i ) ), "0" ).$i."' value='".$einstellung[ "einstellung" ]."' /><input type='text' name='alpha_".liefere_anzahl_zeichen( bcsub( 2, strlen( $i ) ), "0" ).$i."' style='width:200px;' value='".$einstellung[ "wert" ]."' /></td><td ><select style='width:200px;' name='wertemenge_".liefere_anzahl_zeichen( bcsub( 2, strlen( $i ) ), "0" ).$i."' ><option value=''></option>";
if ( $wertemenge[ 0 ] > 0 )
{
foreach ( $wertemenge[ 2 ] as $element )
{
//xlog( 4, $element[ "alpha_01" ] ." wdw ".$einstellung[ "wertemenge" ] );
if ( $element[ "alpha_01" ] == $einstellung[ "wertemenge" ] )
{
echo "<option value='".$element[ "alpha_01" ]."' selected >".$element[ "alpha_02" ]."</option>";
}
else
{
echo "<option value='".$element[ "alpha_01" ]."'>".$element[ "alpha_02" ]."</option>";
}
}
}
if ( $einstellung[ "benutzer_darf_wert_aendern" ] == "ja" )
{
$janein = "<option value='ja' selected >&auml;nderbar</option><option value='nein' >nicht &auml;nderbar</option>";
}
else
{
$janein = "<option value='ja' >&auml;nderbar</option><option value='nein' selected >nicht &auml;nderbar</option>";
}
echo "</select></td><td><select name='aender_".liefere_anzahl_zeichen( bcsub( 2, strlen( $i ) ), "0" ).$i."'>".$janein."</select></td></tr>";
}
echo "</table>
";
echo "<input type='submit' name='".$kategorie."' value='Speichern'>
<input type='button' value='Abbrechen' onclick='document.location.href=\"ad_benutzer.php\";'>";
echo "</form><div name=''>".$_SESSION[ $kategorie ]."</div>";
$_SESSION[ $kategorie ] = "";
}
}
}
echo '<h1 style="height:35px;" >Notizen zum Benutzer '.$vollname.'</h1>
<textarea name="eingabe" id="eingabe" cols="70" rows="5" onfocus="$( \'#eingabe\' ).html( \'\' );" onchange="ajaxFunction( \'su_web.php?cmd=notiz_an_benutzer_anlegen&mandant_name='.urlencode( $mandant_name ).'&benutzer_anmeldename='.urlencode( $benutzer_anmeldename_udeg ).'&kategorie=\'+encodeURIComponent( this.value ), \'anzeige\' ); " >Bitte geben Sie Ihre Notiz hier ein!</textarea><br />
<div name="anzeige" id="anzeige" style="overflow:auto;height: 200px; width: 585px; text-align:left;" >';
//cols="70" rows="5" style="overflow:auto;height: 300px; width: 600px;"
$ergebnis = liefere_notizen_an_element_als_string( $mandant_name, "b", $benutzer_anmeldename_udeg );
echo $ergebnis[ 2 ];
echo '</div>
';
/* Oben wird im onchange der Parameter kategorie der Inhalt der Notiz übergeben */
echo "<div name='' id='f'>".$_SESSION[ $notiz ]."</div>";
$_SESSION[ $notiz ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

107
ad_benutzer_in_gruppen.php Executable file
View File

@@ -0,0 +1,107 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_BENUTZER_GRUPPE" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Benutzer in Gruppen";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo "<form name='benutzer_in_gruppen' action=''>";
echo '<table border="0"><tr><td style="padding-left:20px;">Benutzer</td><td style="padding-left:40px;">Mitglied in Gruppen</td><td></td><td style="padding-left:20px;">nicht Mitglied in Gruppen</td></tr>
<tr><td><select id="select_style_1" size="20" name="select_style_1" onchange="fuelle_element( \'ergebnis_1\', \'\' ); ajaxFunction( \'su_web.php?cmd=benutzer_gruppe_in&benutzer_anmeldename=\'+this.value, \'div_select_2\' ); ajaxFunction( \'su_web.php?cmd=benutzer_gruppe_out&benutzer_anmeldename=\'+this.value, \'div_select_3\' ); " >';
$ergebnis_1 = liefere_wertemenge_elemente( $mandant_name, "systembenutzer" );
foreach ( $ergebnis_1[ 2 ] as $zeile )
{
$ben = liefere_benutzerinformationen( $mandant_name, $zeile[ "alpha_01" ] );
echo "<option value='".$ben[ 2 ][ "benutzer_anmeldename" ]."'>".$ben[ 2 ][ "benutzer_vorname" ]." ".$ben[ 2 ][ "benutzer_nachname" ]."</option>";
}
$ergebnis = liefere_alle_benutzer_bavn( $mandant_name, false );
foreach ( $ergebnis[ 2 ] as $zeile )
{
if ( ( strlen( $zeile[ "benutzer_vorname" ] ) == 0 ) and ( strlen( $zeile[ "benutzer_nachname" ] ) == 0 ) )
{
$name = $zeile[ "benutzer_anmeldename" ];
}
else
{
$name = $zeile[ "benutzer_vorname" ]." ".$zeile[ "benutzer_nachname" ];
}
echo "<option value='".$zeile[ "benutzer_anmeldename" ]."'>".$name."</option>";
}
// onchange="fuelle_element( \'ergebnis_3\', \'\' ); ajaxFunction( \'su_web.php?cmd=liefere_benutzerinformationen&benutzer_anmeldename=\'+this.value, \'ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_benutzer_optionen&benutzer_anmeldename=\'+this.value, \'ergebnis_2\' );"
// onchange="fuelle_element( \'ergebnis_3\', \'\' ); ajaxFunction( \'su_web.php?cmd=liefere_benutzerinformationen&benutzer_anmeldename=\'+this.value, \'ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_benutzer_optionen&benutzer_anmeldename=\'+this.value, \'ergebnis_2\' );"
echo'</select></td>
<td style="padding-left:20px;" ><div id="div_select_2" ><select id="select_style_2" size="20" name="select_style_2" ><div id="div_select_2" /></select></div></td>
<td style="padding-left:10px;" >
<input type="button" value="=>" onclick="benutzer_aus_einer_gruppe_entfernen( document.benutzer_in_gruppen.select_style_1.value, document.benutzer_in_gruppen.select_style_2.value, \'ergebnis_1\', \'div_select_2\', \'div_select_3\' );" />
<br />
<br />
<input type="button" value="<=" onclick="benutzer_einer_gruppe_hinzufuegen( document.benutzer_in_gruppen.select_style_1.value, document.benutzer_in_gruppen.select_style_3.value, \'ergebnis_1\', \'div_select_2\', \'div_select_3\' );" /></td>
<td><div id="div_select_3" ><select id="select_style_3" size="20" name="select_style_3" ></select></div></td>
</tr></table>
</form>
';
echo '<div name="ergebnis_1" id="ergebnis_1" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

78
ad_depot.php Executable file
View File

@@ -0,0 +1,78 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
////////////////////////////////////////
// Javascript-Dateien
$_SESSION[ "javascript_dateien" ] = "jquery.mousewheel.js";
////////////////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Depotverwaltung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
//echo "<span>Schnellsuche:</span><input type='text' style='width:200px;' value='Schnellsuche ...' name='schnellsuche' id='schnellsuche' onfocus=\"this.value = ''; fuelle_element( 'ergebnis_1', '' ); \" onblur=\"this.value='Schnellsuche ...';\" onkeyup=\"ajaxFunction( 'su_web.php?cmd=suche_benutzer&mandant_name=".urlencode( $mandant_name )."&konfig_option='+encodeURIComponent( this.value ), 'eintraege_liste' );\" /><br /><br />";
echo '<div id="eintraege_liste" name="eintraege_liste" style=" display:inline;" ><select id="select_style_1" size="20" name="users" onchange="fuelle_element( \'ergebnis_3\', \'\' );ajaxFunction( \'su_web.php?cmd=liefere_depotinformationen&element=\'+this.value, \'ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_depot_optionen&element=\'+this.value, \'ergebnis_2\' );" >';
//
// Schleife über die Optionen
$ergebnis = welche_depots_gibt_es( $mandant_name );
foreach ( $ergebnis[ 2 ] as $zeile )
{
echo "<option value='".$zeile."'>".$zeile."</option>";
}
?>
</select></div>
<div name="ergebnis_1" id="ergebnis_1" style=" vertical-align:top; position:absolute; display:inline; margin-top:10px;" ></div>
<div name="ergebnis_2" id="ergebnis_2" style=" margin-top:10px;" ><input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="$( '#ergebnis_3' ).load( 'su_web.php?cmd=depot_anlegen' ); " /></div>
<?php
echo '<div name="ergebnis_3" id="ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

82
ad_dokart_erw.php Executable file
View File

@@ -0,0 +1,82 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$dokart_kuerzel = $_GET[ "alpha_01" ];
$_SESSION[ "javascript_startup" ] = "var dokart_kuerzel = '".$dokart_kuerzel."';";
$_SESSION[ "title" ] = "Administratorbereich Dokument-/Aktenartverwaltung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
$_SESSION[ "javascript_startup" ] = "";
$dokart = liefere_dokartinformationen( $mandant_name, $dokart_kuerzel );
if ( ( is_array( $dokart[ 2 ][ "attribute" ] ) ) and ( count( $dokart[ 2 ][ "attribute" ] ) > 0 ) )
{
foreach( $dokart[ 2 ][ "attribute" ] as $attribut )
{
$attribut_liste = $attribut_liste."<option value='".$attribut[ "attrib_name" ]."' >".$attribut[ "attrib_name" ]."</option>";
}
}
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
//echo "<span>Schnellsuche:</span><input type='text' style='width:200px;' value='Schnellsuche ...' name='schnellsuche' id='schnellsuche' onfocus=\"this.value = ''; fuelle_element( 'ergebnis_1', '' ); \" onblur=\"this.value='Schnellsuche ...';\" onkeyup=\"ajaxFunction( 'su_web.php?cmd=suche_benutzer&mandant_name=".urlencode( $mandant_name )."&konfig_option='+encodeURIComponent( this.value ), 'eintraege_liste' );\" /><br /><br />";
echo '<div id="eintraege_liste" name="eintraege_liste" style=" display:inline;" ><select id="select_style_1" size="20" name="users" onchange="fuelle_element( \'ergebnis_3\', \'\' ); ajaxFunction( \'su_web.php?cmd=attrib_detaileinstellungen&alpha_02=\'+this.value+\'&alpha_01=\'+encodeURIComponent( \''.$dokart_kuerzel.'\' ), \'ergebnis_1\' );" >';
echo $attribut_liste;
?>
</select></div>
<div name="ergebnis_1" id="ergebnis_1" style=" vertical-align:top; position:absolute; display:inline; margin-top:10px;" ></div>
<div name="ergebnis_2" id="ergebnis_2" style=" margin-top:10px;" ></div>
<?php
echo '<div name="ergebnis_3" id="ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

191
ad_dokumentart.php Executable file
View File

@@ -0,0 +1,191 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "javascript_startup" ] = "function nach_links()
{
// Elementzugriff regeln
var selr = document.getElementById(\"idselr\"); // rechte Select-Box
var sell = document.getElementById(\"idsell\"); // linke Select-Box
var inpt = document.getElementById(\"idinp\"); // Input-Box
// das ausgewählte Element aus der rechten Select-Box
var zu_uebertragendes_element = selr.selectedIndex;
var rechte_id = selr.options[ zu_uebertragendes_element ].value;
var rechter_value = selr.options[ zu_uebertragendes_element ].text;
// Neues Element erzeugen
var Eintrag = document.createElement(\"option\");
Eintrag.value = rechte_id;
Eintrag.text = rechter_value;
// Eintrag rechts löschen
selr.remove( zu_uebertragendes_element );
// Eintrag links einstellen
sell.add( Eintrag );
// Eintrag in Input-Box machen
inpt.value = inpt.value + \";\" + rechte_id;
}
function nach_rechts()
{
// Elementzugriff regeln
var selr = document.getElementById(\"idselr\"); // rechte Select-Box
var sell = document.getElementById(\"idsell\"); // linke Select-Box
var inpt = document.getElementById(\"idinp\"); // Input-Box
// das ausgewählte Element aus der rechten Select-Box
var zu_uebertragendes_element = sell.selectedIndex;
var linke_id = sell.options[ zu_uebertragendes_element ].value;
var linker_value = sell.options[ zu_uebertragendes_element ].text;
// Neues Element erzeugen
var Eintrag = document.createElement(\"option\");
Eintrag.value = linke_id;
Eintrag.text = linker_value;
// Eintrag rechts löschen
sell.remove( zu_uebertragendes_element );
// Eintrag links einstellen
selr.add( Eintrag );
// Eintrag in Input-Box machen
var neu_value = \"\";
// in suche steht die erste Position des zu entfernenden Elements
var suche = inpt.value.indexOf( linke_id );
// in ende steht die Position des ersten Trennzeichens (Semikolon) nach dem zu entfernenden Element oder -1, falls es das letzte Element war
var ende = inpt.value.indexOf( \";\", suche );
if ( ende > 0 )
{
neu_value = inpt.value.slice( 0, suche - 1 ) + inpt.value.slice( ende );
}
else
{
neu_value = inpt.value.slice( 0, suche - 1 );
}
inpt.value = neu_value;
}
";
$_SESSION[ "title" ] = "Administratorbereich Dokument- und Aktenverwaltung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
$_SESSION[ "javascript_startup" ] = "";
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
//echo "<span>Schnellsuche:</span><input type='text' style='width:200px;' value='Schnellsuche ...' name='schnellsuche' id='schnellsuche' onfocus=\"this.value = ''; fuelle_element( 'ergebnis_1', '' ); \" onblur=\"this.value='Schnellsuche ...';\" onkeyup=\"ajaxFunction( 'su_web.php?cmd=suche_benutzer&mandant_name=".urlencode( $mandant_name )."&konfig_option='+encodeURIComponent( this.value ), 'eintraege_liste' );\" /><br /><br />";
echo '<div id="eintraege_liste" name="eintraege_liste" style=" display:inline;" ><select id="select_style_1" size="20" name="users" onchange="fuelle_element( \'ergebnis_3\', \'\' );ajaxFunction( \'su_web.php?cmd=liefere_dokartinformationen&alpha_01=\'+this.value, \'ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_dokart_optionen&alpha_01=\'+this.value, \'ergebnis_2\' );" >';
//
// Schleife über die Optionen
$ergebnis = liefere_dok_akten_art_liste( $mandant_name );
foreach ( $ergebnis[ 2 ] as $zeile )
{
if ( $zeile[ "dokart_typ" ] == "A" )
{
$akten[ $zeile[ "dokart_kuerzel" ] ] = $zeile[ "dokart_name" ];
}
else
{
$dokarten[ $zeile[ "dokart_kuerzel" ] ] = $zeile[ "dokart_name" ];
}
//echo "<option value='".$zeile[ "dokart_kuerzel" ]."'>".$zeile[ "dokart_name" ]."</option>";
}
if ( count( $akten ) > 0 )
{
$akten_opts = "<optgroup label='Aktenarten'>";
asort( $akten );
foreach( $akten as $dokart_kurz => $dokart_nam )
{
$akten_opts = $akten_opts."<option value='".$dokart_kurz."'>".$dokart_nam."</option>";;
}
$akten_opts = $akten_opts."</optgroup>";
}
if ( count( $dokarten ) > 0 )
{
$dokarten_opts = "<optgroup label='Dokumentarten'>";
asort( $dokarten );
foreach( $dokarten as $dokart_kurz => $dokart_nam )
{
$dokarten_opts = $dokarten_opts."<option value='".$dokart_kurz."'>".$dokart_nam."</option>";;
}
$dokarten_opts = $dokarten_opts."</optgroup>";
}
echo $akten_opts.$dokarten_opts;
?>
</select></div>
<div name="ergebnis_1" id="ergebnis_1" style=" vertical-align:top; position:absolute; display:inline; margin-top:10px;" ></div>
<div name="ergebnis_2" id="ergebnis_2" style=" margin-top:10px;" ><input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="$( '#ergebnis_3' ).load( 'su_web.php?cmd=dokart_anlegen' ); " /></div>
<?php
echo '<div name="ergebnis_3" id="ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

85
ad_gruppe.php Executable file
View File

@@ -0,0 +1,85 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_GRUPPE" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Gruppenverwaltung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo '<select id="select_style_1" size="20" name="gruppen" onchange="fuelle_element( \'ergebnis_3\', \'\' ); ajaxFunction( \'su_web.php?cmd=liefere_gruppeninformationen&gruppen_name=\'+this.value, \'ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_gruppen_optionen&gruppen_name=\'+this.value, \'ergebnis_2\' );" >';
$ergebnis_1 = liefere_wertemenge_elemente( $mandant_name, "systemgruppen" );
foreach ( $ergebnis_1[ 2 ] as $zeile )
{
echo "<option value='".$zeile[ "alpha_01" ]."'>".$zeile[ "alpha_01" ]."</option>";
}
$ergebnis_2 = liefere_alle_gruppen( $mandant_name, false );
if ( $ergebnis_2[ 0 ] > 0 )
{
foreach ( $ergebnis_2[ 2 ] as $gruppe )
{
echo "<option value='".$gruppe."'>".$gruppe."</option>";
}
}
echo "</select>";
?>
<div name="ergebnis_1" id="ergebnis_1" style=" vertical-align:top; position:absolute; display:inline; margin-top:10px;" ></div>
<div name="ergebnis_2" id="ergebnis_2" style=" margin-top:10px;" ><input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="ajaxFunction( 'su_web.php?cmd=gruppe_anlegen', 'ergebnis_3' );" /></div>
<?php
echo '<div name="ergebnis_3" id="ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

73
ad_gruppe_erw.php Executable file
View File

@@ -0,0 +1,73 @@
<?php
@session_start();
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_GRUPPE" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$gruppen_name_udeg = $_GET[ "gruppen_name" ];
$gruppen_infos = liefere_gruppeninformationen( $_SESSION[ "mandant_name" ], $gruppen_name_udeg );
$_SESSION[ "title" ] = "Einstellungen f&uuml;r die Gruppe ".$gruppen_name_udeg; //_GET[ "benutzer_anmeldename" ]." / ".$_SESSION[ "mandant_name" ];
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo '<h1 style="height:35px;" >Notizen zur Gruppe '.$gruppen_name_udeg.'</h1>
<textarea name="eingabe" id="eingabe" cols="70" rows="5" onfocus="$( \'#eingabe\' ).html( \'\' );" onchange="ajaxFunction( \'su_web.php?cmd=notiz_an_gruppe_anlegen&mandant_name='.urlencode( $mandant_name ).'&gruppen_name='.urlencode( $gruppen_name_udeg ).'&kategorie=\'+encodeURIComponent( this.value ), \'anzeige\' ); " >Bitte geben Sie Ihre Notiz hier ein!</textarea><br />
<div name="anzeige" id="anzeige" style="overflow:auto;height: 200px; width: 585px; text-align:left;" >';
//cols="70" rows="5" style="overflow:auto;height: 300px; width: 600px;"
$ergebnis = liefere_notizen_an_element_als_string( $mandant_name, "g", $gruppen_name_udeg );
echo $ergebnis[ 2 ];
echo '</div>
';
/* Oben wird im onchange der Parameter kategorie der Inhalt der Notiz übergeben */
echo "<div name='' id='f'>".$_SESSION[ $notiz ]."</div>";
$_SESSION[ $notiz ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

85
ad_gruppe_systemrechte.php Executable file
View File

@@ -0,0 +1,85 @@
<?php
@session_start();
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Gruppen/Systemrechtzuordnung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo "<form name='systemrechte' action=''>";
echo '<table border="0"><tr><td style="padding-left:20px;">Gruppe</td><td style="padding-left:40px;">Systemrecht zugewiesen</td><td></td><td style="padding-left:20px;">Systemrecht nicht zugewiesen</td></tr>
<tr><td><select id="select_style_1" size="20" name="select_style_1" onchange="fuelle_element( \'ergebnis_1\', \'\' ); ajaxFunction( \'su_web.php?cmd=gruppe_systemrecht_in&gruppen_name=\'+this.value, \'div_select_2\' ); ajaxFunction( \'su_web.php?cmd=gruppe_systemrecht_out&gruppen_name=\'+this.value, \'div_select_3\' ); " >';
$ergebnis_2 = liefere_alle_gruppen( $mandant_name, true );
if ( $ergebnis_2[ 0 ] > 0 )
{
foreach ( $ergebnis_2[ 2 ] as $gruppe )
{
echo "<option value='".$gruppe."'>".$gruppe."</option>";
}
}
echo'</select></td>
<td style="padding-left:20px;" ><div id="div_select_2" ><select id="select_style_2" size="20" name="select_style_2" ><div id="div_select_2" /></select></div></td>
<td style="padding-left:10px;" >
<input type="button" value="=>" onclick="gruppe_ein_systemrecht_entziehen( document.systemrechte.select_style_1.value, document.systemrechte.select_style_2.value, \'ergebnis_1\', \'div_select_2\', \'div_select_3\' );" />
<br />
<br />
<input type="button" value="<=" onclick="gruppe_ein_systemrecht_zuweisen( document.systemrechte.select_style_1.value, document.systemrechte.select_style_3.value, \'ergebnis_1\', \'div_select_2\', \'div_select_3\' );" /></td>
<td><div id="div_select_3" ><select id="select_style_3" size="20" name="select_style_3" ></select></div></td>
</tr></table>
</form>
';
echo '<div name="ergebnis_1" id="ergebnis_1" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

47
ad_gruppen_in_gruppen.php Executable file
View File

@@ -0,0 +1,47 @@
<?php
@session_start();
$_SESSION[ "title" ] = "Administratorbereich Gruppen in Gruppen";
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_GRUPPE" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo "benutzername: ".$_SESSION[ "benutzer_anmeldename" ]."<br />";
echo "passwort: ".$_POST["passwort"]."<br />";
echo "mandant: ".$_POST["mandant"]."<br />";
echo "sprache: ".$_POST["sprache"]."<br />";
echo "<input type='text' class='date-pick' name='datepri' id='datepri' />";
echo "</div>";
include( 'ssi_footer.php' );
?>

53
ad_jobs.php Executable file
View File

@@ -0,0 +1,53 @@
<?php
@session_start();
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Jobverwaltung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
if ( mb_strtoupper( $benutzer_anmeldename, "UTF-8" ) == "SUPERUSER" )
{
include( "su_menu.php" );
}
else
{
include( "ad_menu.php" );
}
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo "benutzername: ".$_SESSION[ "benutzer_anmeldename" ]."<br />";
echo "passwort: ".$_POST["passwort"]."<br />";
echo "mandant: ".$_POST["mandant"]."<br />";
echo "sprache: ".$_POST["sprache"]."<br />";
echo "</div>";
include( 'ssi_footer.php' );
?>

96
ad_konfig.php Executable file
View File

@@ -0,0 +1,96 @@
<?php
@session_start();
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( ( $exec[ 0 ] != 1 ) && ( mb_strtoupper( $_SESSION[ "benutzer_anmeldename" ], "UTF-8" ) != "SUPERUSER" ) )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Systemkonfiguration";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
if ( mb_strtoupper( $_SESSION[ "benutzer_anmeldename" ], "UTF-8" ) == "SUPERUSER" )
{
include( "su_menu.php" );
}
else
{
include( "ad_menu.php" );
}
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'><form action='' name='konfig_aendern' >";
?>
<select size="20" name="kategorie" id="select_style_1" onchange="fuelle_element( 'einst', ' ' ); fuelle_element( 'sys_wert_n', '<input type=\'text\' style=\'width:500px;height:22px; border:0px; display:inline;\' />' ); fuelle_element( 'sys_wert', ' ' ); ajaxFunction( 'su_web.php?cmd=liefere_einstellungen_anhand_kategorie&mandant_name=<?php echo urlencode( $mandant_name ); ?>&kategorie='+encodeURIComponent( this.value ), 'div_select' );" >
<?php
$html = "";
$ergebnis = liefere_systemparameter_kategorien( $_SESSION[ "mandant_name" ] );
foreach ( $ergebnis[ 2 ] as $kategorie )
{
$html = $html."<option value='".$kategorie."'>".$kategorie."</option>";
//echo "<option value='".$kategorie."'>".$kategorie."</option>";
}
//onclick
$html = $html.'</select>';
$html = $html.'<div id="div_select" style="display:inline;" ><select size="20" name="select_style_2" id="select_style_2" onchange="$( \'#einst\' ).html( $( \'#select_style_2\' ).val() ); $( \'#systemeinstellung\' ).val( $( \'#select_style_2\' ).val() ); ajaxFunction( \'su_web.php?cmd=liefere_konfig&mandant_name='.urlencode( $mandant_name ).'&konfig_option=\'+this.value, \'sys_wert\' ); ajaxFunction( \'su_web.php?cmd=liefere_konfig_neu&mandant_name='.urlencode( $mandant_name ).'&konfig_option=\'+this.value, \'sys_wert_n\' ); ajaxFunction( \'su_web.php?cmd=liefere_konfig_beschreibung&mandant_name='.urlencode( $mandant_name ).'&konfig_option=\'+encodeURIComponent( this.value ), \'beschreibung\' );" ></select></div>';
$html = $html.'<br />';
$html = $html.'<table style="font-size:90%"><tr><td style="height:22px;">Systemeinstellung</td><td><div style="border:0px; font-weight:bold;" id="einst" name="einst" ></div><input type="hidden" name="systemeinstellung" id="systemeinstellung" value="" ></input></td></tr>';
$html = $html.'<tr><td>aktueller Wert</td><td style="height:22px;"><span style="width:500px;height:22px; vertical-align: baseline; font-size:100%;" id="sys_wert" name="sys_wert" ></span></td></tr>';
$html = $html.'<tr><td style="height:25px;">neuer Wert</td><td><div id="sys_wert_n" name="sys_wert_n" style="width:500px;" ><input type="text" style="width:500px;height:22px; border:0px; display:inline;" /></div></td><td><input type="button" value="Aktualisieren" style="border:0px; width:90px;" onclick="konfiguration_aendern( \''.urlencode( $mandant_name ).'\', document.konfig_aendern.select_style_2.value, document.konfig_aendern.sys_wert_neu.value, \'meldung\', \'sys_wert\' );" /></td></tr>';
$html = $html.'<tr><td style="vertical-align:top;height:22px;">Beschreibung</td><td colspan="2"><textarea name="beschreibung" id="beschreibung" style="width:600px;border:0px; height:150px; color:black;" disabled="disabled"></textarea></table>';
$html = $html.'<div style="display:none;" id="meldung" name="meldung" ></div></form>';
$_SESSION[ "meldung_ad" ] = '';
echo $html;
echo "</div>";
include( 'ssi_footer.php' );
?>

56
ad_mandant.php Executable file
View File

@@ -0,0 +1,56 @@
<?php
@session_start();
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Mandantverwaltung";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
$mandant_infos = liefere_mandant( $mandant_name );
$html = "<h3 style='margin-left:15px;'>Mandant &auml;ndern</h3>
<span style='font-size:bold;' >Bitte beachten:</span><span> Bei &Auml;nderung des Mandantennamens m&uuml;ssen sich alle Benutzer neu einloggen!</span><p />
<form name='mandant_aendern' action='su_web.php?cmd=mandant_aendern&mandant_name=".urlencode( $mandant_name )."' method='post' accept-charset='UTF-8' ><input type='hidden' name='aufgerufen' value='aufgerufen' />
<table border='0' style='font-size:90%;'>
<tr>
<td>Mandant Name</td>
<td><input type='text' name='mandant_name_neu' value='".$mandant_infos[ 2 ][ "mandant_name" ]."' style='width:300px;'/><input type='hidden' name='mandant_name_alt' value='".$mandant_infos[ 2 ][ "mandant_name" ]."'/></td>
</tr>
<tr>
<td>Lizenz</td>
<td><input type='hidden' name='lizenz_alt' value='".$mandant_infos[ 2 ][ "mandant_lizenz" ]."' /><input type='text' name='lizenz' value='".$mandant_infos[ 2 ][ "mandant_lizenz" ]."' style='width:300px;' /></td>
</tr>
</table>
<input type='submit' value='OK'>
<input type='button' value='Abbrechen' onclick='document.location.href=\"ad_mandant.php\";'>
</form>";
echo $html;
echo "</div>";
include( 'ssi_footer.php' );
?>

198
ad_menu.php Executable file
View File

@@ -0,0 +1,198 @@
<?php
@session_start();
$admin_rechte = welche_systemrechte_besitzt_benutzer( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ] );
$html = '<div style="position:absolute;margin-left:25px; top:115px; left:0px; width:165px; border:0px solid yellow;"><table border="0">';
$i = 0;
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button1" style=" " value="Mandantverwaltung" type="button" onclick="document.location.href=\'ad_mandant.php\';" /></td></tr>';
$i = 1;
break;
}
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMIN_BENUTZER" )
{
$html = $html.'<tr><td><input id="button2" style=" " value="Benutzerverwaltung" type="button" onclick="document.location.href=\'ad_benutzer.php\';" /></td></tr>';
$i = 1;
break;
}
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMIN_GRUPPE" )
{
$html = $html.'<tr><td><input id="button3" style=" " value="Gruppenverwaltung" type="button" onclick="document.location.href=\'ad_gruppe.php\';" /></td></tr>';
$i = 1;
break;
}
}
if ( $i == 1 )
{
$html = $html.'<tr ><td style="height:2px;" ><hr style="border:1px solid silver;" ></hr></td></tr>';
$i = 0;
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMIN_BENUTZER_GRUPPE" )
{
$html = $html.'<tr><td><input id="button4" style=" " value="Benutzer in Gruppen" type="button" onclick="document.location.href=\'ad_benutzer_in_gruppen.php\';" /></td></tr>';
$i = 2;
break;
}
}
/*
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button5" style=" " value="Gruppen in Gruppen" type="button" onclick="document.location.href=\'ad_gruppen_in_gruppen.php\';" /></td></tr>';
$i = 2;
break;
}
}
*/
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button6" style=" " value="Gruppen/Systemrechte" type="button" onclick="document.location.href=\'ad_gruppe_systemrechte.php\';" /></td></tr>';
$i = 2;
break;
}
}
if ( $i == 2 )
{
$html = $html.'<tr ><td style="height:2px;" ><hr style="border:1px solid silver;" ></hr></td></tr>';
$i = 0;
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button7" style=" " value="Attribute" type="button" onclick="document.location.href=\'ad_attribut.php\';" /></td></tr>';
$i = 3;
break;
}
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button8" style=" " value="Dokumentkatalog" type="button" onclick="document.location.href=\'ad_dokumentart.php\';" /></td></tr>';
$i = 3;
break;
}
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button9" style=" " value="Depot" type="button" onclick="document.location.href=\'ad_depot.php\';" /></td></tr>';
$i = 3;
break;
}
}
if ( $i == 3 )
{
$html = $html.'<tr ><td style="height:2px;" ><hr style="border:1px solid silver;" ></hr></td></tr>';
$i = 0;
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMIN_WERTEMENGE" )
{
$html = $html.'<tr><td><input id="button10" style=" " value="Wertemengen" type="button" onclick="document.location.href=\'ad_wertemenge.php\';" /></td></tr>';
$i = 4;
break;
}
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button11" style=" " value="Konfiguration" type="button" onclick="document.location.href=\'ad_konfig.php\';" /></td></tr>';
$i = 4;
break;
}
}
if ( $i == 4 )
{
$html = $html.'<tr ><td style="height:2px;" ><hr style="border:1px solid silver;" ></hr></td></tr>';
$i = 0;
}
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMIN_GRUPPE" )
{
$html = $html.'<tr><td><input id="button3" style=" " value="Reports" type="button" onclick="document.location.href=\'ad_reports.php\';" /></td></tr>';
$i = 1;
break;
}
}
/*
if ( $i == 4 )
{
$html = $html.'<tr ><td style="height:2px;" ><hr style="border:1px solid silver;" ></hr></td></tr>';
$i = 0;
}
*/
/*
foreach( $admin_rechte[ 2 ] as $sysrecht )
{
if ( $sysrecht == "ADMINISTRATOR" )
{
$html = $html.'<tr><td><input id="button11" style=" " value="Jobs" type="button" onclick="document.location.href=\'ad_jobs.php\';" /></td></tr>';
$i = 5;
break;
}
}
if ( $i == 5 )
{
$html = $html.'<tr ><td style="height:2px;" ><hr style="border:1px solid silver;" ></hr></td></tr>';
$i = 0;
}
*/
//$html = $html.'<tr><td><input id="button1" style="" value="Support" type="button" onclick="document.location.href=\'ad_support.php\';" /></td></tr>';
$html = $html."</table></div>";
/*
<tr><td><input id="button1" style="" value="Konfiguration" type="button" onclick="document.location.href=\'su_konfig.php\';" /></td></tr>
<tr><td><input id="button1" style=" " value="Wertemengen" type="button" onclick="document.location.href=\'su_wertemenge.php\';" /></td></tr>
<tr style="height:5px;"><td style="height:5px;"><hr style="border:1px solid silver;" /></td></tr>
<tr><td><input id="button1" style="" value="Support" type="button" onclick="document.location.href=\'su_mandant.php\';" /></td></tr>
</table></div>
';*/
echo $html;
?>

98
ad_reports.php Executable file
View File

@@ -0,0 +1,98 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_GRUPPE" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
if ( isset( $_GET[ "cmd" ] ) )
{
$cmd = $_GET[ "cmd" ];
switch ( $cmd )
{
case "report_anlegen":
$html = "report anlegen";
break;
}
}
else
{
$html = liefere_basisframe();
}
echo $html;
function liefere_basisframe()
{
$_SESSION[ "title" ] = "Administratorbereich Reports";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo '<select id="select_style_1" size="20" name="reports" onchange="fuelle_element( \'ergebnis_3\', \'\' ); ajaxFunction( \'su_web.php?cmd=liefere_gruppeninformationen&gruppen_name=\'+this.value, \'ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_gruppen_optionen&gruppen_name=\'+this.value, \'ergebnis_2\' );" >';
$ergebnis_1 = liefere_wertemenge_elemente( $mandant_name, "systemgruppen" );
foreach ( $ergebnis_1[ 2 ] as $zeile )
{
echo "<option value='".$zeile[ "alpha_01" ]."'>".$zeile[ "alpha_01" ]."</option>";
}
$ergebnis_2 = liefere_alle_gruppen( $mandant_name, false );
if ( $ergebnis_2[ 0 ] > 0 )
{
foreach ( $ergebnis_2[ 2 ] as $gruppe )
{
echo "<option value='".$gruppe."'>".$gruppe."</option>";
}
}
echo "</select>";
echo '<div name="ergebnis_1" id="ergebnis_1" style=" vertical-align:top; position:absolute; display:inline; margin-top:10px;" ></div>';
echo '<div name="ergebnis_2" id="ergebnis_2" style=" margin-top:10px;" ><input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="ajaxFunction( \'ad_reports.php?cmd=report_anlegen\', \'ergebnis_3\' );" /></div>';
echo '<div name="ergebnis_3" id="ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_ad" ].'</div>';
$_SESSION[ "meldung_ad" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
}
?>

54
ad_support.php Executable file
View File

@@ -0,0 +1,54 @@
<?php
@session_start();
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMINISTRATOR" );
if ( $exec[ 0 ] != 1 )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Support";
$_SESSION[ "title" ] = "";
if ( mb_strtoupper( $benutzer_anmeldename, "UTF-8" ) == "SUPERUSER" )
{
include( "su_menu.php" );
}
else
{
include( "ad_menu.php" );
}
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
echo "benutzername: ".$_SESSION[ "benutzer_anmeldename" ]."<br />";
echo "passwort: ".$_POST["passwort"]."<br />";
echo "mandant: ".$_POST["mandant"]."<br />";
echo "sprache: ".$_POST["sprache"]."<br />";
echo "</div>";
include( 'ssi_footer.php' );
?>

57
ad_uebersicht.php Executable file
View File

@@ -0,0 +1,57 @@
<?php
@session_start();
$_SESSION[ "title" ] = "Administratorbereich &Uuml;bersicht";
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = welche_systemrecht_gruppen_besitzt_benutzer( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ] );
$admin = false;
foreach ( $exec[ 2 ] as $rechtegruppe )
{
if ( $rechtegruppe == 1 )
{
$admin = true;
break;
}
}
if ( $admin == false )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
include( "ad_menu.php" );
echo "<div style='margin-left:200px;padding-bottom:30px; min-height:550px; border:0px solid yellow;' >";
/*
echo "benutzername: ".$_SESSION[ "benutzer_anmeldename" ]."<br />";
echo "passwort: ".$_POST["passwort"]."<br />";
echo "mandant: ".$_POST["mandant"]."<br />";
echo "sprache: ".$_POST["sprache"]."<br />";
*/
echo "</div>";
echo "<p style='clear:both;' ></p>";
include( 'ssi_footer.php' );
?>

94
ad_wertemenge.php Executable file
View File

@@ -0,0 +1,94 @@
<?php
@session_start();
$mandant_name = $_SESSION[ "mandant_name" ];
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_WERTEMENGE" );
if ( ( $exec[ 0 ] != 1 ) && ( mb_strtoupper( $_SESSION[ "benutzer_anmeldename" ], "UTF-8" ) != "SUPERUSER" ) )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$_SESSION[ "title" ] = "Administratorbereich Wertemengen";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
if ( mb_strtoupper( $_SESSION[ "benutzer_anmeldename" ], "UTF-8" ) == "SUPERUSER" )
{
include( "su_menu.php" );
}
else
{
include( "ad_menu.php" );
}
// <input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="ajaxFunction( \'su_web.php?cmd=wertemenge_anlegen&mandant_name=\'+encodeURIComponent( \''.$mandant_name.'\' ), \'wertemenge_ergebnis_3\' );" />
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
$kategorien = liefere_wertemengen_kategorien( $mandant_name );
?>
<select size="20" name="users" id="select_style_2" onchange="$( '#wertemenge_ergebnis_2' ).html( $( '#excellent' ).html() ); fuelle_element( 'wertemenge_ergebnis_3', ' ' ); fuelle_element( 'wertemenge_ergebnis_1', ' ' ); ajaxFunction( 'su_web.php?cmd=liefere_wertemenge_kuerzel_nach_kategorien&kategorie='+encodeURIComponent( this.value )+'&mandant_name='+encodeURIComponent( '<?php echo $mandant_name; ?>' ), 'div_select' );" >';
<?php
if ( $kategorien[ 0 ] > 0 )
{
foreach ( $kategorien[ 2 ] as $kategorie )
{
echo "<option value='".$kategorie."'>".$kategorie."</option>";
}
}
echo '</select><div id="div_select" style="display:inline;" >';
echo '<select size="20" name="users" id="select_style_1" onchange="fuelle_element( \'wertemenge_ergebnis_3\', \' \' ); ajaxFunction( \'su_web.php?cmd=liefere_wertemenge&wertemenge_kuerzel=\'+encodeURIComponent( this.value )+\'&mandant_name=\'+encodeURIComponent( \''.$mandant_name.'\' ), \'wertemenge_ergebnis_1\' ); ajaxFunction( \'su_web.php?cmd=liefere_wertemenge_optionen&wertemenge_kuerzel=\'+encodeURIComponent( this.value )+\'&mandant_name=\'+encodeURIComponent( \''.$mandant_name.'\' ), \'wertemenge_ergebnis_2\' ); " >';
echo "</select></div>";
echo '<div name="wertemenge_ergebnis_1" id="wertemenge_ergebnis_1" style=" vertical-align:top; position:absolute; display:inline; margin-top:10px;" ></div>';
echo '<div name="wertemenge_ergebnis_2" id="wertemenge_ergebnis_2" style=" margin-top:10px;" ><input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="ajaxFunction( \'su_web.php?cmd=wertemenge_anlegen&mandant_name=\'+encodeURIComponent( \''.$mandant_name.'\' ), \'wertemenge_ergebnis_3\' );" /></div>';
echo '<div name="excellent" id="excellent" style=" margin-top:10px; display:none;" ><input type="button" value="Anlegen" style="width:150px;margin-left:10px;" onclick="ajaxFunction( \'su_web.php?cmd=wertemenge_anlegen&mandant_name=\'+encodeURIComponent( \''.$mandant_name.'\' ), \'wertemenge_ergebnis_3\' );" /></div>';
echo '<div name="wertemenge_ergebnis_3" id="wertemenge_ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_su" ].'</div>';
$_SESSION[ "meldung_su" ] = "";
echo "</div>";
include( 'ssi_footer.php' );
?>

180
ad_wertemenge_elemente.php Executable file
View File

@@ -0,0 +1,180 @@
<?php
@session_start();
/*if ( strtolower( $_SESSION[ "benutzer_anmeldename" ] ) <> "superuser" )
{
$_SESSION[ "benutzer_anmeldename" ] = "";
header("Location: index.php");
}*/
include_once( "f_admin.php" );
include_once( "f_wfl.php" );
include_once( "kd_einsprungspunkte.php" );
///////////////////////////////
// Darf der Benutzer diese Seite sehen?
$exec = besitzt_benutzer_systemrecht( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "ADMIN_WERTEMENGE" );
if ( ( $exec[ 0 ] != 1 ) && ( mb_strtoupper( $_SESSION[ "benutzer_anmeldename" ], "UTF-8" ) != "SUPERUSER" ) )
{
header( "Location: us_uebersicht.php" );
}
///////////////////////////////
$mandant_name = $_GET[ "mandant_name" ];
$_SESSION[ "title" ] = "Wertemengen-Elemente";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
//$wertemengen = liefere_alle_wertemengen_kuerzel( "Standard", false );
$wertemengen_kuerzel = $_GET[ "wertemenge_kuerzel" ];
if ( mb_strtoupper( $_SESSION[ "benutzer_anmeldename" ], "UTF-8" ) == "SUPERUSER" )
{
include( "su_menu.php" );
}
else
{
include( "ad_menu.php" );
}
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;'>";
//echo $mandant_name." ".$wertemengen_kuerzel;
$elemente = liefere_wertemenge_elemente( $mandant_name, $wertemengen_kuerzel );
$wertemenge = liefere_wertemenge( $mandant_name, $wertemengen_kuerzel );
$i = 0;
$html = "<div name='eintraege_liste' id='eintraege_liste' ><table border='0' style='border:0px solid white; min-width:500px; font-size:90%; padding: 0px; '><tr>";
foreach( $wertemenge[ 2 ] as $key=>$eigenschaft )
{
if ( substr( $key, 0, 12 ) == "bezeichnung_" )
{
if ( strlen( $eigenschaft ) > 0 )
{
$enthalten[ ] = substr( $key, 12 );
$enthalten_string = $enthalten_string.substr( $key, 12 )."|";
$i++;
if ( bccomp( $i, 8, 0 ) > 0 )
{
//nix
}
else
{
$html = $html."<th style='text-align:left;' >".$eigenschaft."</th>";
}
}
}
}
if ( $wertemenge[ 2 ][ "typ" ] == "static" )
{
$html = $html."<th>Optionen</th>";
}
$html = $html."</tr><tr>";
//echo count( $enthalten);
if ( count( $elemente[ 2 ] ) > 0 )
{
foreach ( $elemente[ 2 ] as $element )
{
//xlog( 4, "Element ".$element );
$j = 0;
foreach( $element as $key=>$value )
{
//xlog( 4, "key ".$key." value ".$value );
foreach ( $enthalten as $ele )
{
//xlog( 4, "ele ".$ele." key ".$key );
if ( $ele == $key )
{
if ( bccomp( $j, 7, 0 ) > 0 )
{
//nix
}
else
{
$html = $html. "<td style='margin:0px;'>".$element[ $ele ]."</td>";
}
$j++;
//xlog( 4, "treffer ele ".$ele." key ".$key );
}
}
}
if ( bccomp( $j, $i, 0 ) < 0 )
{
for ( $k = $j; $k < $i; $k++ )
{
$html = $html."<td>&nbsp;</td>";
}
}
if ( $wertemenge[ 2 ][ "typ" ] == "static" )
{
$html = $html."<td style='margin:0px;min-width: 120px; vertical-align:middle;'><input type='button' value='l&ouml;schen' style='width:60px; height:20px; font-size:.8em;' onclick=\"document.location.href='su_web.php?cmd=wertemengen_element_loeschen&mandant_name=".urlencode( $mandant_name )."&wertemenge_kuerzel=".urlencode( $wertemengen_kuerzel )."&element_id=".urlencode( $element[ 'element_id' ] )."';\" ><input type='button' value='&auml;ndern' style='width:60px; height:20px; font-size:.8em;' onclick=\"ajaxFunction( 'su_web.php?cmd=wertemengen_element_aendern&mandant_name=".urlencode( $mandant_name )."&wertemenge_kuerzel=".urlencode( $wertemengen_kuerzel )."&element_id=".urlencode( $element[ 'element_id' ] )."&elemente=".urlencode( $enthalten_string )."', 'wertemenge_anlegen' ); \" ></td>";
}
else
{
$html = $html."<td>&nbsp;</td>";
}
$html = $html."</tr>";
}
}
else
{
$html = $html."<td>Es sind keine Elemente vorhanden.</td>";
}
$html = $html."</tr></table></div>";
//eintraege_liste
echo "<h2>Wertemenge ".$wertemenge[ 2 ][ "bezeichnung" ]."</h2>";
echo "<span>Schnellsuche:</span><input type='text' style='width:400px;' value='Schnellsuche ...' name='schnellsuche' id='schnellsuche' onfocus=\"this.value = '';\" onblur=\"this.value='Schnellsuche ...';\" onkeyup=\"ajaxFunction( 'su_web.php?cmd=suche_wertemengen_elemente&mandant_name=".urlencode( $mandant_name )."&wertemenge_kuerzel=".urlencode( $wertemengen_kuerzel )."&konfig_option='+encodeURIComponent( this.value ), 'eintraege_liste' );\" /><br /><br />";
echo "<input type='button' value='Zur&uuml;ck' style='width:150px;' onclick=\"document.location.href='ad_wertemenge.php'\" /><input type='button' style='width:150px;' value='Element hinzuf&uuml;gen' onclick=\"ajaxFunction( 'su_web.php?cmd=wertemengen_element_hinzufuegen&wertemenge_kuerzel=".urlencode( $wertemengen_kuerzel )."&mandant_name=".urlencode( $mandant_name )."&elemente=".urlencode( $enthalten_string )."', 'wertemenge_anlegen' );\" >";
echo '<div name="wertemenge_anlegen" id="wertemenge_anlegen" style=" border: 0px solid white; margin-top:10px;" ></div>';
echo $html;
?>
<?php
echo '<div name="wertemenge_ergebnis_3" id="wertemenge_ergebnis_3" style=" margin-top:10px;" >'.$_SESSION[ "meldung_su" ].'</div>';
$_SESSION[ "meldung_su" ] = "";
//echo "<p style='height:200px;' />";
echo "</div>";
echo "<p style='clear:both;' />";
include( 'ssi_footer.php' );
?>

33
admin_passwort_abgelaufen.php Executable file
View File

@@ -0,0 +1,33 @@
<?php
@session_start();
$_SESSION[ "title" ] = "Ihr Passwort ist abgelaufen.";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
/*
echo "benutzername: ".$_SESSION[ "benutzer_anmeldename" ]."<br />";
echo "passwort: ".$_SESSION["passwort"]."<br />";
echo "mandant: ".$_SESSION["mandant_name"]."<br />";
echo "sprache: ".$_SESSION["sprache"]."<br />";
echo "eingeloggt_ts: ".$_SESSION[ "eingeloggt_ts" ]."<br />";
*/
echo "<h1>Benutzerpasswort &auml;ndern</h1>
<p />
<form name='passwort_aendern' accept-charset='UTF-8' action='su_web.php?cmd=passwort_aendern' method='post'>
<input type='hidden' name='benutzer_anmeldename' value='".$_SESSION[ "benutzer_anmeldename" ]."' />
<input type='hidden' name='alpha_01' value='t' />
<table id='us_einstellungen'>
<tr><td>neues Passwort</td><td><input type='password' style='width:200px;' name='neues_pwd_1' /></td></tr>
<tr><td>Passwort wiederholen</td><td><input type='password' style='width:200px;' name='neues_pwd_2' /></td></tr>
</table>
<p />
<input type='submit' value='Passwort &auml;ndern' /><input type='reset' value='Abbrechen'></form>";
echo "<p>".$_SESSION[ "meldung_pwd" ]."</p>";
$_SESSION[ "meldung_pwd" ] = "";
include( 'ssi_footer.php' );
?>

10508
f_admin.php Executable file

File diff suppressed because it is too large Load Diff

9429
f_wfl.php Executable file

File diff suppressed because it is too large Load Diff

9231
f_wfl_bak.php Executable file

File diff suppressed because it is too large Load Diff

1
fddtest.txt Executable file
View File

@@ -0,0 +1 @@
awerfaergtae3gfta

BIN
images/Thumbs.db Executable file

Binary file not shown.

BIN
images/down_arrow.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 B

BIN
images/right_arrow.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 B

BIN
img/1/Calendar.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 859 B

BIN
img/1/Clipboard.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

BIN
img/1/Display_16x16.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

BIN
img/1/Earth.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 B

BIN
img/1/Film.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

BIN
img/1/List.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

BIN
img/1/Schedule.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 B

BIN
img/1/Text.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

BIN
img/1/Thumbs.db Executable file

Binary file not shown.

BIN
img/239091_567_powerpoint2013.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
img/32px.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
img/40px.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
img/Icon-Lupe.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/Thumbs.db Executable file

Binary file not shown.

BIN
img/calbers.de.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
img/colorpicker.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
img/computer.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

BIN
img/email_1.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 818 B

BIN
img/email_2.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

BIN
img/email_3.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

BIN
img/empty.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

BIN
img/fav_hinzu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

BIN
img/fav_loesch.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

BIN
img/favicon.ico Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

BIN
img/folder.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 924 B

BIN
img/form.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

BIN
img/full_open.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 B

BIN
img/geht_nicht.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
img/ico_akt.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B

BIN
img/ico_akt_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/ico_app.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

BIN
img/ico_app_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
img/ico_dok.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 990 B

BIN
img/ico_dok_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
img/ico_favoriten.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

BIN
img/ico_gif.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

BIN
img/ico_htm.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

BIN
img/ico_htm_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
img/ico_jpg.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

BIN
img/ico_lupe.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

BIN
img/ico_lupe_papier.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

BIN
img/ico_maf.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 B

BIN
img/ico_neu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

BIN
img/ico_pdf.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 999 B

BIN
img/ico_pdf_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
img/ico_png.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 B

BIN
img/ico_rtf.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 B

BIN
img/ico_rtf_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
img/ico_txt.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

BIN
img/ico_vid.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
img/ico_vid_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/ico_w09.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 B

BIN
img/ico_w09_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
img/ico_wrd.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 B

BIN
img/ico_wrd_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

BIN
img/ico_xdf.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 999 B

BIN
img/ico_xls.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 B

BIN
img/ico_xls_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
img/ico_xml.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

BIN
img/ico_xml_b.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
img/icon-star-clip-art_p.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
img/jpg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
img/kalender.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

BIN
img/notes.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

BIN
img/open.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
img/pspbrwse.jbf Executable file

Binary file not shown.

BIN
img/text_txt-512.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
img/throbber.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
img/uhr.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 887 B

BIN
img/user_female.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Some files were not shown because too many files have changed in this diff Show More