diff --git a/vilesci/stammdaten/firma_details.php b/vilesci/stammdaten/firma_details.php
index b16295dec..b413159f8 100644
--- a/vilesci/stammdaten/firma_details.php
+++ b/vilesci/stammdaten/firma_details.php
@@ -357,6 +357,7 @@ function getFirmadetail($firma_id,$adresstyp_arr,$user)
$htmlstr.="
\n";
$htmlstr.="Gesperrt: ";
+
$htmlstr.=" gesperrt?' style="background-color: #FFF4F4;" ':' style="background-color: #E3FDEE;" ')." type='checkbox' name='gesperrt' ".($firma->gesperrt?'checked':'')."> \n";
$htmlstr.=" \n";
@@ -631,7 +632,7 @@ function getAnmerkungen($firma_id,$user)
$htmlstr.=" \n";
else
$htmlstr.=" \n";
- $htmlstr.= " ";
+ $htmlstr.= " ";
$htmlstr.="\n";
return $htmlstr;
}
diff --git a/vilesci/stammdaten/firma_detailwork.php b/vilesci/stammdaten/firma_detailwork.php
index 78770e266..5aea0c626 100644
--- a/vilesci/stammdaten/firma_detailwork.php
+++ b/vilesci/stammdaten/firma_detailwork.php
@@ -54,6 +54,7 @@ if(!$rechte->isBerechtigt('admin') && !$rechte->isBerechtigt('basis/firma'))
// Parameter einlesen
$errorstr='';
+$tabselect=0;
$standort_id = (isset($_REQUEST['standort_id'])?$_REQUEST['standort_id']:'');
$adresse_id = (isset($_REQUEST['adresse_id'])?$_REQUEST['adresse_id']:'');
@@ -397,6 +398,7 @@ function setOrtData()
success: function(phpData)
{
$("div#"+wohin).html(phpData);
+
}
}
);
@@ -514,25 +516,32 @@ div.css-panes div div{
{
case 'listKontakte':
$htmlcode=listKontakte($firma_id,$standort_id,$adresse_id,$kontakt_id,$adresstyp_arr,$user,$rechte);
+ $tabselect=2;
break;
case 'eingabeKontakt':
$htmlcode=eingabeKontakt($firma_id,$standort_id,$adresse_id,$kontakt_id,$adresstyp_arr,$user,$rechte);
+ $tabselect=2;
break;
case 'saveKontakt':
$htmlcode=saveKontakt($firma_id,$standort_id,$adresse_id,$kontakt_id,$adresstyp_arr,$user,$rechte,$rechte);
+ $tabselect=2;
break;
case 'listPersonenfunktionen':
$htmlcode=getlistPersonenfunktionen($firma_id,$standort_id,$personfunktionstandort_id,$adresstyp_arr,$user,$rechte);
+ $tabselect=1;
break;
case 'eingabePersonenfunktionen':
$htmlcode=eingabePersonenfunktionen($firma_id,$standort_id,$personfunktionstandort_id,$adresstyp_arr,$user,$rechte);
+ $tabselect=1;
break;
case 'savePersonenfunktionen':
$htmlcode=savePersonenfunktionen($firma_id,$standort_id,$personfunktionstandort_id,$adresstyp_arr,$user,$rechte);
+ $tabselect=1;
break;
case 'saveStandort':
$htmlcode=saveStandort($firma_id,$standort_id,$adresse_id,$adresstyp_arr,$user,$rechte);
+ $tabselect=0;
break;
case 'saveFirmaorganisationseinheit':
@@ -564,15 +573,15 @@ div.css-panes div div{
if ($showmenue)
echo '
-
+
';
else
echo $htmlcode;
@@ -807,12 +816,19 @@ function saveKontakt($firma_id,$standort_id,$adresse_id,$kontakt_id,$adresstyp_a
return 'Fehler beim Speichern des Kontakt '.$kontakttyp .' '.$kontakt.' ID '. $kontakt_id.' :'.$kontakt_obj->errormsg;
if ($kontakt_obj->new)
$kontakt_id=$kontakt_obj->kontakt_id;
+
+ //frame reloaden, um wieder zur liste zu kommen
+ echo '';
return 'Kontakt: '.$kontakttyp .' '.$kontakt.' ID '. $kontakt_id.' gespeichert';
}
#-------------------------------------------------------------------------------------------------------------------------------------------------------------#
/*
- Kontakte zu Firmen,Standorte in Listenform
+ Kontakte zu Firmen, Standorte in Listenform
*/
function listKontakte($firma_id,$standort_id,$adresse_id,$kontakt_id,$adresstyp_arr,$user,$rechte)
{
@@ -957,7 +973,7 @@ function eingabeKontakt($firma_id,$standort_id,$adresse_id,$kontakt_id,$adressty
$htmlstr.=" ";
$htmlstr.=" \n";
@@ -1032,6 +1048,11 @@ function savePersonenfunktionen($firma_id,$standort_id,$personfunktionstandort_i
if ($standort_obj->new)
$personfunktionstandort_id=$standort_obj->personfunktionstandort_id;
+ echo '';
return 'Funktion der Person am Standort : '.$funktion_kurzbz .' '.$position.' ID '. $personfunktionstandort_id.' gespeichert';
}
#-------------------------------------------------------------------------------------------------------------------------------------------------------------#
@@ -1081,7 +1102,7 @@ function getlistPersonenfunktionen($firma_id,$standort_id,$personfunktionstandor
Position
Anrede
Person
-
+
';
$i=0;
foreach ($standort_obj->result as $row)
@@ -1097,12 +1118,11 @@ function getlistPersonenfunktionen($firma_id,$standort_id,$personfunktionstandor
$htmlstr.= ''.$row->anrede.' ';
$person=($row->person_anrede?$row->person_anrede.' ':'').($row->titelpre?$row->titelpre.' ':'').($row->vorname?$row->vorname.' ':'').($row->nachname?$row->nachname.' ':'');
- if (empty($person))
- $person=$row->personen_id;
$htmlstr.= ''.$person.' ';
- $htmlstr.= ' ';
- $htmlstr.= "standort_id."&personfunktionstandort_id=".$row->personfunktionstandort_id."&firma_id=".$firma_id."' onclick='return confdel()'> ";
+ $htmlstr.= ' ';
+ $htmlstr.= " ";
+ $htmlstr.= "standort_id."&personfunktionstandort_id=".$row->personfunktionstandort_id."&firma_id=".$firma_id."' onclick='return confdel()'> ";
$htmlstr.= '';
}
$htmlstr.= '';
@@ -1176,19 +1196,16 @@ function eingabePersonenfunktionen($firma_id,$standort_id,$personfunktionstandor
{
return row[0] + ' ' + row[1] + ' ';
}
- //$(document).ready(function()
- //{
- $('#position').autocomplete('stammdaten_autocomplete.php',
- {
- minChars:1,
- matchSubset:1,matchContains:1,
- width:400,
- formatItem:formatItem,
- extraParams:{'work':'position'
+ $('#position').autocomplete('stammdaten_autocomplete.php',
+ {
+ minChars:1,
+ matchSubset:1,matchContains:1,
+ width:400,
+ formatItem:formatItem,
+ extraParams:{'work':'position'
,'funktion_kurzbz':$('#funktion_kurzbz').val()
- }
- });
- //});
+ }
+ });
";
@@ -1203,17 +1220,15 @@ function eingabePersonenfunktionen($firma_id,$standort_id,$personfunktionstandor
{
return row[0] + ' ' + row[1] + ' ';
}
- //$(document).ready(function()
- //{
- $('#person_id').autocomplete('stammdaten_autocomplete.php',
- {
- minChars:2,
- matchSubset:1,matchContains:1,
- width:400,
- formatItem:formatItem,
- extraParams:{'work':'person'}
- });
- //});
+ $('#person_id').autocomplete('stammdaten_autocomplete.php',
+ {
+ minChars:2,
+ matchSubset:1,matchContains:1,
+ width:400,
+ formatItem:formatItem,
+ extraParams:{'work':'person'}
+ });
+
";
@@ -1223,10 +1238,13 @@ function eingabePersonenfunktionen($firma_id,$standort_id,$personfunktionstandor
$htmlstr.="\n";
// Submit-Knopf Zeile
+ $tabselect=1;
$htmlstr.=" ";
$htmlstr.=" \n";
@@ -1396,7 +1414,7 @@ function getStandort($firma_id,$standort_id,$adresse_id,$adresstyp_arr,$user,$re
$htmlstr.="\n";
$htmlstr.=" ";
$htmlstr.=" \n";
$htmlstr.=" \n";
diff --git a/vilesci/stammdaten/firma_uebersicht.php b/vilesci/stammdaten/firma_uebersicht.php
index b45cd1081..d9e5b3e68 100644
--- a/vilesci/stammdaten/firma_uebersicht.php
+++ b/vilesci/stammdaten/firma_uebersicht.php
@@ -15,32 +15,32 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
- * Authors: Christian Paminger < christian.paminger@technikum-wien.at >
+ * Authors: Christian Paminger < christian.paminger@technikum-wien.at >
* Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at >
- * Rudolf Hangl < rudolf.hangl@technikum-wien.at >
+ * Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
- require_once('../../config/vilesci.config.inc.php');
- require_once('../../include/functions.inc.php');
- require_once('../../include/firma.class.php');
- require_once('../../include/benutzerberechtigung.class.php');
-
- if (!$db = new basis_db())
- die('Es konnte keine Verbindung zum Server aufgebaut werden.');
-
- $user = get_uid();
-
- //Berechtigung pruefen
- $rechte = new benutzerberechtigung();
- $rechte->getBerechtigungen($user);
- $berechtigung_kurzbz = 'basis/firma';
- if(!$rechte->isBerechtigt($berechtigung_kurzbz))
- die('Sie haben keine Berechtigung fuer diese Seite ');
-
- // Parameter uebernehmen
- $suchen = (isset($_GET['suchen'])?$_GET['suchen']:null);
- $filter = (isset($_GET['filter'])?$_GET['filter']:'');
- $firmentypfilter = (isset($_GET['firmentypfilter'])?$_GET['firmentypfilter']:'');
+require_once('../../config/vilesci.config.inc.php');
+require_once('../../include/functions.inc.php');
+require_once('../../include/firma.class.php');
+require_once('../../include/benutzerberechtigung.class.php');
+
+if (!$db = new basis_db())
+ die('Es konnte keine Verbindung zum Server aufgebaut werden.');
+
+$user = get_uid();
+
+//Berechtigung pruefen
+$rechte = new benutzerberechtigung();
+$rechte->getBerechtigungen($user);
+$berechtigung_kurzbz = 'basis/firma';
+if(!$rechte->isBerechtigt($berechtigung_kurzbz))
+ die('Sie haben keine Berechtigung fuer diese Seite ');
+
+// Parameter uebernehmen
+$suchen = (isset($_GET['suchen'])?$_GET['suchen']:null);
+$filter = (isset($_GET['filter'])?$_GET['filter']:'');
+$firmentypfilter = (isset($_GET['firmentypfilter'])?$_GET['firmentypfilter']:'');
?>
@@ -118,9 +118,10 @@ function creatList($suchen,$filter,$firmentypfilter)
$htmlstr .= " Strasse ";
$htmlstr .= " Typ ";
+ $htmlstr .= " Aktiv ";
+ $htmlstr .= " Gesperrt ";
$htmlstr .= " Schule ";
- $htmlstr .= " Gesperrt ";
- $htmlstr .= " Aktiv ";
+
$htmlstr .= " Ext ID ";
$htmlstr .= " \n";
@@ -141,9 +142,9 @@ function creatList($suchen,$filter,$firmentypfilter)
$htmlstr .= " $row->ort \n";
$htmlstr .= " $row->strasse \n";
$htmlstr .= " $row->firmentyp_kurzbz \n";
- $htmlstr .= " ".($row->gesperrt=='t'?'Ja':'Nein')." \n";
- $htmlstr .= " ".($row->schule=='t'?'Ja':'Nein')." \n";
- $htmlstr .= " ".($row->aktiv=='t'?'Ja':'Nein')." \n";
+ $htmlstr .= " ".($row->aktiv=='t'?'Ja':'Nein')." \n";
+ $htmlstr .= " ".($row->gesperrt=='t'?'Ja':'Nein')." \n";
+ $htmlstr .= " ".($row->schule=='t'?'Ja':'Nein')." \n";
$htmlstr .= " $row->ext_id \n";
$htmlstr .= " \n";
$i++;