mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Merge branch 'master' into udf
This commit is contained in:
@@ -21,3 +21,4 @@ tests/codeception/tests/unit.suite.yml
|
||||
bin
|
||||
/application/logs/
|
||||
/sparks/*
|
||||
/webdav/google.php
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- **[FAS]** Studierendensuche erweitert für leichteres auffinden von Personen mit Sonderzeichen;Suche nach EMail (#email),Telefon(#tel)
|
||||
- **[FAS]** Die Anzahl der angezeigten Studiensemester im Menübaum ist pro User konfigurierbar
|
||||
- **[CIS]** Im Coodle können nun auch Gruppen zu Umfragen hinzugefügt werden.
|
||||
- **[CIS]** Reservierungen im Stundenplan prüft nun die Verfügbarkeit des Raums im Stundenplandev
|
||||
- **[FAS]** Projektarbeiten können als Final markiert werden
|
||||
- **[FAS]** Verwaltung von Rechnungsadressen
|
||||
@@ -12,6 +15,9 @@
|
||||
### CHANGED
|
||||
- **[CORE]** Berechtigungsprüfung wurde angepasst damit deaktiverte Benutzer keine Berechtigungen mehr haben
|
||||
|
||||
### Updateinfo
|
||||
- **[CORE]** Infoscreen wurde umbenannt (informationsbildschirm.php)
|
||||
|
||||
## [3.2]
|
||||
|
||||
### Added
|
||||
|
||||
@@ -34,11 +34,11 @@ class Prestudent extends APIv1_Controller
|
||||
public function getPrestudent()
|
||||
{
|
||||
$prestudentID = $this->get('prestudent_id');
|
||||
|
||||
|
||||
if (isset($prestudentID))
|
||||
{
|
||||
$result = $this->PrestudentModel->load($prestudentID);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -46,18 +46,18 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getPrestudentByPersonID()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->PrestudentModel->load(array('person_id' => $person_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -65,7 +65,7 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -73,14 +73,14 @@ class Prestudent extends APIv1_Controller
|
||||
{
|
||||
$prestudent_id = $this->get('prestudent_id');
|
||||
$titel = $this->get('titel');
|
||||
|
||||
|
||||
if (isset($prestudent_id) && isset($titel))
|
||||
{
|
||||
// Loads model Notiz_model
|
||||
$this->load->model('person/Notiz_model', 'NotizModel');
|
||||
|
||||
|
||||
$result = $this->NotizModel->getSpecialization($prestudent_id, $titel);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -88,7 +88,7 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -98,7 +98,7 @@ class Prestudent extends APIv1_Controller
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
$status_kurzbz = $this->get('status_kurzbz');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->PrestudentModel->getLastStatuses(
|
||||
@@ -107,7 +107,7 @@ class Prestudent extends APIv1_Controller
|
||||
$studiengang_kz,
|
||||
$status_kurzbz
|
||||
);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -115,21 +115,56 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all Persons with a Status in the define Timerange
|
||||
* Additionally ALL Prestudents of this person are included.
|
||||
* (Not only the ones with the status)
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function getPrestudentsPerStatus()
|
||||
{
|
||||
$this->load->model('person/person_model', 'PersonModel');
|
||||
$status_kurzbz = $this->get('status_kurzbz');
|
||||
$von = $this->get('von');
|
||||
$bis = $this->get('bis');
|
||||
|
||||
if (isset($status_kurzbz) && isset($von) && isset($bis))
|
||||
{
|
||||
$result = $this->PersonModel->getPersonFromStatus(
|
||||
$status_kurzbz,
|
||||
$von,
|
||||
$bis
|
||||
);
|
||||
|
||||
// Remove person images from result array to reduce useless traffic
|
||||
foreach($result->retval as $key=>$val)
|
||||
{
|
||||
unset($result->retval[$key]->foto);
|
||||
}
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postRmSpecialization()
|
||||
{
|
||||
$notiz_id = $this->post()['notiz_id'];
|
||||
|
||||
|
||||
if (isset($notiz_id))
|
||||
{
|
||||
// Loads model Notiz_model
|
||||
$this->load->model('person/Notiz_model', 'NotizModel');
|
||||
|
||||
|
||||
$result = $this->NotizModel->rmSpecialization($notiz_id);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -137,7 +172,7 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -146,14 +181,14 @@ class Prestudent extends APIv1_Controller
|
||||
$prestudent_id = $this->post()['prestudent_id'];
|
||||
$titel = $this->post()['titel'];
|
||||
$text = $this->post()['text'];
|
||||
|
||||
|
||||
if (isset($prestudent_id) && isset($titel) && isset($text))
|
||||
{
|
||||
// Loads model Notiz_model
|
||||
$this->load->model('person/Notiz_model', 'NotizModel');
|
||||
|
||||
|
||||
$result = $this->NotizModel->addSpecialization($prestudent_id, $titel, $text);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -168,7 +203,7 @@ class Prestudent extends APIv1_Controller
|
||||
public function postPrestudent()
|
||||
{
|
||||
$prestudent = $this->post();
|
||||
|
||||
|
||||
if ($this->_validate($this->post()))
|
||||
{
|
||||
if (isset($prestudent['prestudent_id']))
|
||||
@@ -179,7 +214,7 @@ class Prestudent extends APIv1_Controller
|
||||
{
|
||||
$result = $this->PrestudentModel->insert($prestudent);
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -187,7 +222,7 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -196,7 +231,7 @@ class Prestudent extends APIv1_Controller
|
||||
if ($this->_validate($this->delete()))
|
||||
{
|
||||
$result = $this->PrestudentModel->delete($this->delete()['prestudent_id']);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -204,28 +239,28 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postAddReihungstest()
|
||||
{
|
||||
$ddReihungstest = $this->post();
|
||||
|
||||
|
||||
if ($this->_validateReihungstest($ddReihungstest))
|
||||
{
|
||||
if(isset($ddReihungstest['new']) && $ddReihungstest['new'] == true)
|
||||
{
|
||||
// Remove new parameter to avoid DB insert errors
|
||||
unset($ddReihungstest['new']);
|
||||
|
||||
|
||||
$result = $this->reihungstestlib->insertPersonReihungstest($ddReihungstest);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->reihungstestlib->updatePersonReihungstest($ddReihungstest);
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -233,18 +268,18 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function postDelReihungstest()
|
||||
{
|
||||
$ddReihungstest = $this->post();
|
||||
|
||||
|
||||
if (isset($ddReihungstest['rt_person_id']))
|
||||
{
|
||||
$result = $this->reihungstestlib->deletePersonReihungstest($ddReihungstest);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -252,19 +287,19 @@ class Prestudent extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($prestudent = NULL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
private function _validateReihungstest($ddReihungstest = NULL)
|
||||
{
|
||||
if (!isset($ddReihungstest['person_id']) || !isset($ddReihungstest['rt_id']) || !isset($ddReihungstest['studienplan_id']))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ class Prestudentstatus extends APIv1_Controller
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$status_kurzbz = $this->get('status_kurzbz');
|
||||
$prestudent_id = $this->get('prestudent_id');
|
||||
|
||||
|
||||
if (isset($ausbildungssemester) && isset($studiensemester_kurzbz) && isset($status_kurzbz) && isset($prestudent_id))
|
||||
{
|
||||
$result = $this->PrestudentstatusModel->load(array($ausbildungssemester, $studiensemester_kurzbz, $status_kurzbz, $prestudent_id));
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -47,7 +47,7 @@ class Prestudentstatus extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -56,11 +56,11 @@ class Prestudentstatus extends APIv1_Controller
|
||||
$prestudent_id = $this->get("prestudent_id");
|
||||
$studiensemester_kurzbz = $this->get("studiensemester_kurzbz");
|
||||
$status_kurzbz = $this->get("status_kurzbz");
|
||||
|
||||
|
||||
if (isset($prestudent_id))
|
||||
{
|
||||
$result = $this->PrestudentstatusModel->getLastStatus($prestudent_id, $studiensemester_kurzbz, $status_kurzbz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -75,14 +75,14 @@ class Prestudentstatus extends APIv1_Controller
|
||||
public function postPrestudentstatus()
|
||||
{
|
||||
$prestudentstatus = $this->post();
|
||||
|
||||
|
||||
if ($this->_validate($prestudentstatus))
|
||||
{
|
||||
if(isset($prestudentstatus['new']) && $prestudentstatus['new'] == true)
|
||||
{
|
||||
// Remove new parameter to avoid DB insert errors
|
||||
unset($prestudentstatus['new']);
|
||||
|
||||
|
||||
$result = $this->PrestudentstatusModel->insert($prestudentstatus);
|
||||
}
|
||||
else
|
||||
@@ -95,7 +95,7 @@ class Prestudentstatus extends APIv1_Controller
|
||||
|
||||
$result = $this->PrestudentstatusModel->update($pksArray, $prestudentstatus);
|
||||
}
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -103,14 +103,14 @@ class Prestudentstatus extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function deletePrestudentstatus()
|
||||
{
|
||||
$prestudentstatus = $this->delete();
|
||||
|
||||
|
||||
if ($this->_validate($prestudentstatus))
|
||||
{
|
||||
$pksArray = array($prestudentstatus['ausbildungssemester'],
|
||||
@@ -120,7 +120,7 @@ class Prestudentstatus extends APIv1_Controller
|
||||
);
|
||||
|
||||
$result = $this->PrestudentstatusModel->delete($pksArray);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -128,9 +128,34 @@ class Prestudentstatus extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function _validate($prestudentstatus = null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of Status entries of a prestudent according to the filter
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function getStatusByFilter()
|
||||
{
|
||||
$prestudent_id = $this->get("prestudent_id");
|
||||
$status_kurzbz = $this->get("status_kurzbz");
|
||||
$ausbildungssemester = $this->get("ausbildungssemester");
|
||||
$studiensemester_kurzbz = $this->get("studiensemester_kurzbz");
|
||||
|
||||
if (isset($prestudent_id))
|
||||
{
|
||||
$result = $this->PrestudentstatusModel->getStatusByFilter($prestudent_id, $status_kurzbz, $ausbildungssemester, $studiensemester_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ class Prestudent_model extends DB_Model
|
||||
$this->dbTable = 'public.tbl_prestudent';
|
||||
$this->pk = 'prestudent_id';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -24,7 +24,7 @@ class Prestudent_model extends DB_Model
|
||||
return $isEntitled;
|
||||
if (($isEntitled = $this->isEntitled('public.tbl_status', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
return $isEntitled;
|
||||
|
||||
|
||||
$query = 'SELECT *
|
||||
FROM public.tbl_prestudent p
|
||||
JOIN (
|
||||
@@ -37,33 +37,33 @@ class Prestudent_model extends DB_Model
|
||||
WHERE ps.ausbildungssemester = 1';
|
||||
|
||||
$parametersArray = array($person_id);
|
||||
|
||||
|
||||
if ($studiensemester_kurzbz != '')
|
||||
{
|
||||
array_push($parametersArray, $studiensemester_kurzbz);
|
||||
$query .= ' AND ps.studiensemester_kurzbz = ?';
|
||||
}
|
||||
|
||||
|
||||
if (isset($studiengang_kz))
|
||||
{
|
||||
array_push($parametersArray, $studiengang_kz);
|
||||
$query .= ' AND p.studiengang_kz = ?';
|
||||
}
|
||||
|
||||
|
||||
if ($status_kurzbz != '')
|
||||
{
|
||||
array_push($parametersArray, $status_kurzbz);
|
||||
$query .= ' AND ps.status_kurzbz = ?';
|
||||
}
|
||||
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function updateAufnahmegruppe($prestudentIdArray, $aufnahmegruppe)
|
||||
{
|
||||
{
|
||||
return $this->execQuery(
|
||||
'UPDATE public.tbl_prestudent
|
||||
SET aufnahmegruppe_kurzbz = ?
|
||||
@@ -74,7 +74,7 @@ class Prestudent_model extends DB_Model
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns a list of prestudent with additional information:
|
||||
* - person_id
|
||||
@@ -104,7 +104,7 @@ class Prestudent_model extends DB_Model
|
||||
aufnahmegruppe_kurzbz,
|
||||
SUM(rtp.punkte) AS punkte'
|
||||
);
|
||||
|
||||
|
||||
$this->addJoin('public.tbl_person p', 'person_id', 'LEFT');
|
||||
$this->addJoin(
|
||||
'(
|
||||
@@ -123,39 +123,39 @@ class Prestudent_model extends DB_Model
|
||||
$this->addJoin('lehre.tbl_studienordnung so', 'studienordnung_id');
|
||||
$this->addJoin('public.tbl_studiengang sg', 'sg.studiengang_kz = so.studiengang_kz');
|
||||
$this->addJoin('public.tbl_studiengangstyp sgt', 'typ');
|
||||
|
||||
|
||||
$this->addJoin('public.tbl_rt_person rtp', 'rtp.person_id = p.person_id AND rtp.studienplan_id = s.studienplan_id', 'LEFT');
|
||||
|
||||
|
||||
$this->addOrder('p.person_id', 'ASC');
|
||||
$this->addOrder('prestudent_id', 'ASC');
|
||||
|
||||
|
||||
$parametersArray = array('p.aktiv' => true, 'ps.status_kurzbz' => 'Interessent');
|
||||
|
||||
|
||||
if ($studiengang != null)
|
||||
{
|
||||
$parametersArray['public.tbl_prestudent.studiengang_kz'] = $studiengang;
|
||||
}
|
||||
|
||||
|
||||
if ($studiensemester != null)
|
||||
{
|
||||
$parametersArray['ps.studiensemester_kurzbz'] = $studiensemester;
|
||||
}
|
||||
|
||||
|
||||
if ($gruppe != null)
|
||||
{
|
||||
$parametersArray['aufnahmegruppe_kurzbz'] = $gruppe;
|
||||
}
|
||||
|
||||
|
||||
if ($reihungstest != null)
|
||||
{
|
||||
$parametersArray['rtp.rt_id'] = $reihungstest;
|
||||
}
|
||||
|
||||
|
||||
if ($stufe != null)
|
||||
{
|
||||
$parametersArray['ps.rt_stufe'] = $stufe;
|
||||
}
|
||||
|
||||
|
||||
$this->addGroupBy(
|
||||
array(
|
||||
'p.person_id',
|
||||
@@ -174,7 +174,7 @@ class Prestudent_model extends DB_Model
|
||||
'aufnahmegruppe_kurzbz'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
return $this->loadWhere($parametersArray);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class Prestudentstatus_model extends DB_Model
|
||||
$this->pk = array('ausbildungssemester', 'studiensemester_kurzbz', 'status_kurzbz', 'prestudent_id');
|
||||
$this->hasSequence = false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
@@ -25,7 +25,7 @@ class Prestudentstatus_model extends DB_Model
|
||||
return $isEntitled;
|
||||
if (($isEntitled = $this->isEntitled('public.tbl_status', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
return $isEntitled;
|
||||
|
||||
|
||||
$query = 'SELECT tbl_prestudentstatus.*,
|
||||
bezeichnung AS studienplan_bezeichnung,
|
||||
tbl_status.bezeichnung_mehrsprachig
|
||||
@@ -35,7 +35,7 @@ class Prestudentstatus_model extends DB_Model
|
||||
AND prestudent_id = ?';
|
||||
|
||||
$parametersArray = array($prestudent_id);
|
||||
|
||||
|
||||
if ($studiensemester_kurzbz != '')
|
||||
{
|
||||
array_push($parametersArray, $studiensemester_kurzbz);
|
||||
@@ -46,17 +46,17 @@ class Prestudentstatus_model extends DB_Model
|
||||
array_push($parametersArray, $status_kurzbz);
|
||||
$query .= ' AND status_kurzbz = ?';
|
||||
}
|
||||
|
||||
|
||||
$query .= ' ORDER BY datum DESC, insertamum DESC, ext_id DESC LIMIT 1';
|
||||
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function updateStufe($prestudentIdArray, $stufe)
|
||||
{
|
||||
{
|
||||
return $this->execQuery(
|
||||
'UPDATE public.tbl_prestudentstatus
|
||||
SET rt_stufe = ?
|
||||
@@ -68,4 +68,51 @@ class Prestudentstatus_model extends DB_Model
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all Prestudent status entries according to the given filter
|
||||
*
|
||||
* @param prestudent_id ID of the Prestudent.
|
||||
* @param $status_kurzbz kurzbz of the status.
|
||||
* @param $ausbildungssemester ausbildungssemester of the status.
|
||||
* @param $studiensemester_kurzbz studiensemster of the status.
|
||||
*
|
||||
* @return result object with all the status entries
|
||||
*/
|
||||
public function getStatusByFilter($prestudent_id, $status_kurzbz = '', $ausbildungssemester = '', $studiensemester_kurzbz = '')
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (($isEntitled = $this->isEntitled('public.tbl_prestudentstatus', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
return $isEntitled;
|
||||
|
||||
$query = '
|
||||
SELECT
|
||||
tbl_prestudentstatus.*
|
||||
FROM
|
||||
public.tbl_prestudentstatus
|
||||
WHERE
|
||||
prestudent_id = ?';
|
||||
|
||||
$parametersArray = array($prestudent_id);
|
||||
|
||||
if ($studiensemester_kurzbz != '')
|
||||
{
|
||||
array_push($parametersArray, $studiensemester_kurzbz);
|
||||
$query .= ' AND studiensemester_kurzbz = ?';
|
||||
}
|
||||
if ($status_kurzbz != '')
|
||||
{
|
||||
array_push($parametersArray, $status_kurzbz);
|
||||
$query .= ' AND status_kurzbz = ?';
|
||||
}
|
||||
if ($ausbildungssemester != '')
|
||||
{
|
||||
array_push($parametersArray, $ausbildungssemester);
|
||||
$query .= ' AND ausbildungssemester = ?';
|
||||
}
|
||||
|
||||
$query .= ' ORDER BY datum DESC, insertamum DESC, ext_id DESC';
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
class Person_model extends DB_Model
|
||||
{
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
@@ -11,16 +11,16 @@ class Person_model extends DB_Model
|
||||
$this->dbTable = 'public.tbl_person';
|
||||
$this->pk = 'person_id';
|
||||
}
|
||||
|
||||
|
||||
public function getPersonKontaktByZugangscode($zugangscode, $email)
|
||||
{
|
||||
$this->addJoin('public.tbl_kontakt', 'person_id');
|
||||
|
||||
|
||||
return $this->loadWhere(array('zugangscode' => $zugangscode, 'kontakt' => $email));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
public function checkBewerbung($email, $studiensemester_kurzbz = null)
|
||||
{
|
||||
@@ -34,10 +34,10 @@ class Person_model extends DB_Model
|
||||
return $isEntitled;
|
||||
if (($isEntitled = $this->isEntitled('public.tbl_prestudentstatus', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
return $isEntitled;
|
||||
|
||||
|
||||
$checkBewerbungQuery = '';
|
||||
$parametersArray = array($email, $email, $email);
|
||||
|
||||
|
||||
if (is_null($studiensemester_kurzbz))
|
||||
{
|
||||
$checkBewerbungQuery = 'SELECT DISTINCT p.person_id, p.zugangscode, p.insertamum
|
||||
@@ -60,13 +60,13 @@ class Person_model extends DB_Model
|
||||
AND studiensemester_kurzbz = ?
|
||||
ORDER BY p.insertamum DESC
|
||||
LIMIT 1';
|
||||
|
||||
|
||||
array_push($parametersArray, $studiensemester_kurzbz);
|
||||
}
|
||||
|
||||
|
||||
return $this->execQuery($checkBewerbungQuery, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
public function updatePerson($person)
|
||||
{
|
||||
if (isset($person['svnr']) && $person['svnr'] != '')
|
||||
@@ -88,7 +88,46 @@ class Person_model extends DB_Model
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $this->PersonModel->update($person['person_id'], $person);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function getPersonFromStatus($status_kurzbz, $von, $bis)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (($isEntitled = $this->isEntitled('public.tbl_prestudent', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
return $isEntitled;
|
||||
if (($isEntitled = $this->isEntitled('public.tbl_prestudentstatus', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)) !== true)
|
||||
return $isEntitled;
|
||||
|
||||
$this->addJoin('public.tbl_prestudent', 'person_id');
|
||||
|
||||
$result = $this->loadTree(
|
||||
'public.tbl_person',
|
||||
array(
|
||||
'public.tbl_prestudent'
|
||||
),
|
||||
'EXISTS (
|
||||
SELECT
|
||||
1
|
||||
FROM
|
||||
public.tbl_prestudentstatus
|
||||
JOIN public.tbl_prestudent USING(prestudent_id)
|
||||
WHERE
|
||||
person_id=tbl_person.person_id
|
||||
AND status_kurzbz='.$this->escape($status_kurzbz).'
|
||||
AND datum >= '.$this->escape($von).'
|
||||
AND datum <= '.$this->escape($bis).'
|
||||
)',
|
||||
array(
|
||||
'prestudenten'
|
||||
)
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ $aktuellerContentIdx=0;
|
||||
//Cookie erhaelt zusaetzlich die IP im Namen damit bei der Preview keine Konflikte entstehen
|
||||
$cookie = 'infoscreenContent'.str_replace('-','',str_replace('.','',$ip));
|
||||
|
||||
//zuletzt angezeigte Seite des Terminals ermitteln
|
||||
//zuletzt angezeigte Seite des Terminals ermitteln
|
||||
if(isset($_COOKIE[$cookie]))
|
||||
{
|
||||
$lastinfoscreencontent = $_COOKIE[$cookie];
|
||||
@@ -57,7 +57,7 @@ else
|
||||
$lastinfoscreencontent = -1;
|
||||
$aktuellerContentIdx = 0;
|
||||
}
|
||||
|
||||
|
||||
if($infoscreen->getInfoscreen($ip))
|
||||
{
|
||||
$infoscreen_id = $infoscreen->infoscreen_id;
|
||||
@@ -72,14 +72,14 @@ if($infoscreen->getInfoscreen($ip))
|
||||
{
|
||||
$aktuellerContentIdx=$i+1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
if($aktuellerContentIdx>$i)
|
||||
$aktuellerContentIdx=0;
|
||||
|
||||
if(isset($refreshzeiten[$aktuellerContentIdx]) && $refreshzeiten[$aktuellerContentIdx]!='')
|
||||
$refreshzeit = $refreshzeiten[$aktuellerContentIdx];
|
||||
$refreshzeit = $refreshzeiten[$aktuellerContentIdx];
|
||||
|
||||
if(isset($infoscreen_content) && isset($infoscreen_content[$aktuellerContentIdx]))
|
||||
{
|
||||
@@ -105,7 +105,7 @@ function initialize()
|
||||
{
|
||||
startit()
|
||||
}
|
||||
|
||||
|
||||
function scrollwindow()
|
||||
{
|
||||
if (document.all)
|
||||
@@ -134,12 +134,12 @@ function scrollwindow()
|
||||
window.scroll(0,currentpos)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function startit()
|
||||
{
|
||||
setInterval("scrollwindow()",40) <!--Zeit in ms bis zum naechsten Bildwechsel 1000=1sek-->
|
||||
}
|
||||
|
||||
|
||||
window.onload=initialize
|
||||
</script>';
|
||||
$scroll= "<script>
|
||||
@@ -155,22 +155,22 @@ window.onload=scrolldown;
|
||||
//echo $scroll;
|
||||
|
||||
echo '
|
||||
<title>Infoscreen</title>
|
||||
<title>Informationsbildschirm</title>
|
||||
</head>
|
||||
<body>';
|
||||
echo '<!-- Last content:'.$lastinfoscreencontent.' Infoscreen-ID:'.$infoscreen_id.' IP:'.$ip.'-->';
|
||||
echo '<!-- Last content:'.$lastinfoscreencontent.' ID:'.$infoscreen_id.' IP:'.$ip.'-->';
|
||||
if($infoscreen_id!='' && isset($content[$aktuellerContentIdx]))
|
||||
{
|
||||
|
||||
|
||||
echo '<center style="height: 100%"><iframe id="content" src="../../cms/content.php?content_id='.$content[$aktuellerContentIdx].'" ></iframe></center>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<br><br><br>
|
||||
<center>
|
||||
<h1>Infoscreen - '.CAMPUS_NAME.'</h1>
|
||||
<h1>Informationsbildschirm - '.CAMPUS_NAME.'</h1>
|
||||
<br><br><br>
|
||||
Dieser Infoscreen wurde noch nicht registriert
|
||||
Dieser Informationsbildschirm wurde noch nicht registriert
|
||||
<br><br>
|
||||
IP-Adresse:'.$ip.'
|
||||
</center>';
|
||||
@@ -533,12 +533,41 @@ foreach($noten_obj->result as $row)
|
||||
var rows = data.split("\n");
|
||||
var i=0;
|
||||
var params='';
|
||||
alertMsg = '';
|
||||
|
||||
var gradedata = {};
|
||||
var validGrades = '';
|
||||
|
||||
<?php
|
||||
// If CIS_GESAMTNOTE_PUNKTE is false, check for valid grades
|
||||
// Fill Array $gradesArray with valid grades
|
||||
if(CIS_GESAMTNOTE_PUNKTE == false)
|
||||
{
|
||||
$gradesArray = array();
|
||||
foreach($noten_obj->result as $row_note)
|
||||
{
|
||||
if($row_note->lehre && $row_note->aktiv)
|
||||
$gradesArray[] = '"'.$row_note->anmerkung.'"';
|
||||
}
|
||||
// Output JS variable with valid grades
|
||||
echo 'var validGrades = ['.implode(',', $gradesArray).'];';
|
||||
}
|
||||
?>
|
||||
|
||||
for(row in rows)
|
||||
{
|
||||
zeile = rows[row].split(" ");
|
||||
|
||||
<?php
|
||||
// If CIS_GESAMTNOTE_PUNKTE is false, check for valid grades
|
||||
if(CIS_GESAMTNOTE_PUNKTE == false)
|
||||
echo ' // check for valid grades
|
||||
if (validGrades.indexOf(zeile[1]) === -1 && typeof(zeile[1]) != "undefined" && zeile[1] != "")
|
||||
{
|
||||
alertMsg = alertMsg+"Die Note "+zeile[1]+" ist nicht zulaessig. Die Zeile wurde uebersprungen. \n";
|
||||
continue;
|
||||
}';
|
||||
?>
|
||||
|
||||
if(zeile[0]!='' && zeile[1]!='')
|
||||
{
|
||||
@@ -553,7 +582,10 @@ foreach($noten_obj->result as $row)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (alertMsg != "")
|
||||
alert(alertMsg);
|
||||
|
||||
if(i>0)
|
||||
{
|
||||
|
||||
|
||||
+219
-228
@@ -36,8 +36,8 @@ require_once('../../../include/globals.inc.php');
|
||||
require_once('../../../include/sprache.class.php');
|
||||
|
||||
|
||||
$sprache = getSprache();
|
||||
$lang = new sprache();
|
||||
$sprache = getSprache();
|
||||
$lang = new sprache();
|
||||
$lang->load($sprache);
|
||||
$p = new phrasen($sprache);
|
||||
|
||||
@@ -45,7 +45,6 @@ if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
|
||||
$content_resturlaub = '';
|
||||
$content = '';
|
||||
$resturlaubstage = '0';
|
||||
$mehrarbeitsstunden = '0';
|
||||
$anspruch = '25';
|
||||
@@ -177,52 +176,62 @@ if((isset($_GET['delete']) || isset($_POST['delete'])))
|
||||
//Eintragung speichern
|
||||
if(isset($_GET['speichern']) && isset($_GET['wtag']))
|
||||
{
|
||||
$vertretung=$_GET['vertretung_uid'];
|
||||
$erreichbar=$_GET['erreichbar'];
|
||||
if($erreichbar=='')
|
||||
$vertretung = $_GET['vertretung_uid'];
|
||||
|
||||
$bn = new benutzer();
|
||||
if($vertretung != '' && !$bn->load($vertretung))
|
||||
{
|
||||
$erreichbar='n';
|
||||
$vgmail.='<br><span class="error">'.$p->t('zeitsperre/vertretungNichtKorrekt').'</span>';
|
||||
$error = true;
|
||||
}
|
||||
$wtag=$_GET['wtag'];
|
||||
$akette[0]=$wtag[0];
|
||||
$ekette[0]=$wtag[0];
|
||||
for($i=1,$j=0;$i<count($wtag);$i++)
|
||||
else
|
||||
{
|
||||
//ketten bilden
|
||||
if($wtag[$i]==date("Y-m-d",strtotime("+1 Day",strtotime($wtag[$i-1]))))
|
||||
$erreichbar=$_GET['erreichbar'];
|
||||
if($erreichbar=='')
|
||||
{
|
||||
$ekette[$j]=$wtag[$i];
|
||||
$erreichbar='n';
|
||||
}
|
||||
else
|
||||
$wtag=$_GET['wtag'];
|
||||
$akette[0]=$wtag[0];
|
||||
$ekette[0]=$wtag[0];
|
||||
for($i=1,$j=0;$i<count($wtag);$i++)
|
||||
{
|
||||
$j++;
|
||||
$akette[$j]=$wtag[$i];
|
||||
$ekette[$j]=$wtag[$i];
|
||||
//ketten bilden
|
||||
if($wtag[$i]==date("Y-m-d",strtotime("+1 Day",strtotime($wtag[$i-1]))))
|
||||
{
|
||||
$ekette[$j]=$wtag[$i];
|
||||
}
|
||||
else
|
||||
{
|
||||
$j++;
|
||||
$akette[$j]=$wtag[$i];
|
||||
$ekette[$j]=$wtag[$i];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Pruefen ob bereits ein Urlaub in den markierten Bereichen vorhanden ist und ggf Abbrechen
|
||||
//Das Problem sollte nur beim manuellen Refresh der Seite auftreten
|
||||
$error=false;
|
||||
for($i=0;$i<count($akette);$i++)
|
||||
{
|
||||
$zeitsperre = new zeitsperre();
|
||||
|
||||
if($zeitsperre->UrlaubEingetragen($uid, $akette[$i], $ekette[$i]))
|
||||
//Pruefen ob bereits ein Urlaub in den markierten Bereichen vorhanden ist und ggf Abbrechen
|
||||
//Das Problem sollte nur beim manuellen Refresh der Seite auftreten
|
||||
$error=false;
|
||||
for($i=0;$i<count($akette);$i++)
|
||||
{
|
||||
$vgmail.='<br><span class="error">'.$p->t('zeitsperre/urlaubBereitsEingetragen').'</span>';
|
||||
$error=true;
|
||||
break;
|
||||
$zeitsperre = new zeitsperre();
|
||||
|
||||
if($zeitsperre->UrlaubEingetragen($uid, $akette[$i], $ekette[$i]))
|
||||
{
|
||||
$vgmail.='<br><span class="error">'.$p->t('zeitsperre/urlaubBereitsEingetragen').'</span>';
|
||||
$error=true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$error)
|
||||
{
|
||||
for($i=0;$i<count($akette);$i++)
|
||||
{
|
||||
$zeitsperre = new zeitsperre();
|
||||
|
||||
|
||||
$zeitsperre->new = true;
|
||||
$zeitsperre->zeitsperretyp_kurzbz='Urlaub';
|
||||
$zeitsperre->mitarbeiter_uid=$uid;
|
||||
@@ -239,98 +248,71 @@ if(isset($_GET['speichern']) && isset($_GET['wtag']))
|
||||
$zeitsperre->erreichbarkeit=$erreichbar;
|
||||
$zeitsperre->freigabeamum='';
|
||||
$zeitsperre->freigabevon='';
|
||||
|
||||
|
||||
if(!$zeitsperre->save())
|
||||
{
|
||||
$error = true;
|
||||
echo $zeitsperre->errormsg;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
//Mail an Vorgesetzten
|
||||
$vorgesetzter = $ma->getVorgesetzte($uid);
|
||||
if($vorgesetzter)
|
||||
if(!$error)
|
||||
{
|
||||
$to='';
|
||||
foreach($ma->vorgesetzte as $vg)
|
||||
//Mail an Vorgesetzten
|
||||
$vorgesetzter = $ma->getVorgesetzte($uid);
|
||||
if($vorgesetzter)
|
||||
{
|
||||
if($to!='')
|
||||
$to='';
|
||||
foreach($ma->vorgesetzte as $vg)
|
||||
{
|
||||
$to.=', '.$vg.'@'.DOMAIN;
|
||||
if($to!='')
|
||||
{
|
||||
$to.=', '.$vg.'@'.DOMAIN;
|
||||
}
|
||||
else
|
||||
{
|
||||
$to.=$vg.'@'.DOMAIN;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($uid);
|
||||
$message = $p->t('urlaubstool/diesIstEineAutomatischeMail')."\n".
|
||||
$p->t('urlaubstool/xHatNeuenUrlaubEingetragen',array($benutzer->nachname,$benutzer->vorname)).":\n";
|
||||
|
||||
for($i=0;$i<count($akette);$i++)
|
||||
{
|
||||
$to.=$vg.'@'.DOMAIN;
|
||||
$message.= $p->t('urlaubstool/von')." ".date("d.m.Y", strtotime($akette[$i]))." ".$p->t('urlaubstool/bis')." ".date("d.m.Y", strtotime($ekette[$i]))."\n";
|
||||
}
|
||||
|
||||
//Ab September wird das neue Jahr uebergeben
|
||||
if(date("m",strtotime($akette[0]))>=9)
|
||||
$jahr = date("Y", strtotime($akette[0]))+1;
|
||||
else
|
||||
$jahr = date("Y", strtotime($akette[0]));
|
||||
|
||||
$message.="\n".$p->t('urlaubstool/sieKoennenDiesenUnterFolgenderAdresseFreigeben').":\n".
|
||||
APP_ROOT."cis/private/profile/urlaubsfreigabe.php?uid=$uid&year=".$jahr;
|
||||
|
||||
$mail = new mail($to, 'vilesci@'.DOMAIN,$p->t('urlaubstool/freigabeansuchenUrlaub'), $message);
|
||||
if($mail->send())
|
||||
{
|
||||
$vgmail="<span style='color:green;'>".$p->t('urlaubstool/freigabemailWurdeVersandt',array($to))."</span>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$vgmail="<br><span class='error'>".$p->t('urlaubstool/fehlerBeimSendenAufgetreten',array($to))."!</span>";
|
||||
}
|
||||
}
|
||||
//$to = 'oesi@technikum-wien.at';
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($uid);
|
||||
$message = $p->t('urlaubstool/diesIstEineAutomatischeMail')."\n".
|
||||
$p->t('urlaubstool/xHatNeuenUrlaubEingetragen',array($benutzer->nachname,$benutzer->vorname)).":\n";
|
||||
|
||||
for($i=0;$i<count($akette);$i++)
|
||||
{
|
||||
$message.= $p->t('urlaubstool/von')." ".date("d.m.Y", strtotime($akette[$i]))." ".$p->t('urlaubstool/bis')." ".date("d.m.Y", strtotime($ekette[$i]))."\n";
|
||||
}
|
||||
|
||||
//Ab September wird das neue Jahr uebergeben
|
||||
if(date("m",strtotime($akette[0]))>=9)
|
||||
$jahr = date("Y", strtotime($akette[0]))+1;
|
||||
else
|
||||
$jahr = date("Y", strtotime($akette[0]));
|
||||
|
||||
$message.="\n".$p->t('urlaubstool/sieKoennenDiesenUnterFolgenderAdresseFreigeben').":\n".
|
||||
APP_ROOT."cis/private/profile/urlaubsfreigabe.php?uid=$uid&year=".$jahr;
|
||||
|
||||
$mail = new mail($to, 'vilesci@'.DOMAIN,$p->t('urlaubstool/freigabeansuchenUrlaub'), $message);
|
||||
if($mail->send())
|
||||
{
|
||||
$vgmail="<span style='color:green;'>".$p->t('urlaubstool/freigabemailWurdeVersandt',array($to))."</span>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$vgmail="<br><span class='error'>".$p->t('urlaubstool/fehlerBeimSendenAufgetreten',array($to))."!</span>";
|
||||
$vgmail="<br><span class='error'>".$p->t('urlaubstool/konnteKeinFreigabemailVersendetWerden')."</span>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$vgmail="<br><span class='error'>".$p->t('urlaubstool/konnteKeinFreigabemailVersendetWerden')."</span>";
|
||||
}
|
||||
//Mail an Vertretung. Wird derzeit nicht gewuenscht.
|
||||
/*
|
||||
if($vertretung!='')
|
||||
{
|
||||
$to = $vertretung.'@'.DOMAIN;
|
||||
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($uid);
|
||||
$datumsbereich = '';
|
||||
|
||||
for($i=0;$i<count($akette);$i++)
|
||||
|
||||
if($vertretung=='')
|
||||
{
|
||||
$datumsbereich.="Von ".date("d.m.Y", strtotime($akette[$i]))." bis ".date("d.m.Y", strtotime($ekette[$i]))."\n";
|
||||
$vtmail="<br><span>".$p->t('urlaubstool/keineVertretungEingetragen')."</span>";
|
||||
}
|
||||
|
||||
$message = $p->t('urlaubstool/mailtextVertretung', array ($benutzer->nachname,$benutzer->vorname,$datumsbereich));
|
||||
//"Dies ist eine automatische Mail. \n".
|
||||
// "$benutzer->nachname $benutzer->vorname hat neuen Urlaub eingetragen und sie wurden als Vertretung angegeben:\n";
|
||||
|
||||
|
||||
$mail = new mail($to, 'vilesci@'.DOMAIN,'Urlaubsvertretung für '.$benutzer->nachname.' '.$benutzer->vorname.'', $message);
|
||||
if($mail->send())
|
||||
{
|
||||
$vtmail="".$p->t('urlaubstool/vertretungsmailWurdeVersandt',$to)."!";
|
||||
}
|
||||
else
|
||||
{
|
||||
$vtmail="<br><span class='error'>".$p->t('urlaubstool/fehlerBeimSendenAufgetreten',$to)."!</span>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$vtmail="<br><span>".$p->t('urlaubstool/keineVertretungEingetragen')."</span>";
|
||||
}*/
|
||||
if($vertretung=='')
|
||||
{
|
||||
$vtmail="<br><span>".$p->t('urlaubstool/keineVertretungEingetragen')."</span>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -363,7 +345,7 @@ if ((isset($wmonat) || isset($wmonat))&&(isset($wjahr) || isset($wjahr)))
|
||||
{
|
||||
$wvon=date("Y-m-d",mktime(0, 0, 0, 12 , $mendev-($wotag-1), ($jahre[$wjahr])-1));
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$wvon=date("Y-m-d",mktime(0, 0, 0, ($wmonat) , $mendev-($wotag-1), ($jahre[$wjahr])));
|
||||
}
|
||||
@@ -371,7 +353,7 @@ if ((isset($wmonat) || isset($wmonat))&&(isset($wjahr) || isset($wjahr)))
|
||||
{
|
||||
$wbis=date("Y-m-d",mktime(0, 0, 0, 1 , (7-($ttt['wday']==0?7:$ttt['wday'])), $jahre[$wjahr]+1));
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$wbis=date("Y-m-d",mktime(0, 0, 0, ($wmonat+2) , (7-($ttt['wday']==0?7:$ttt['wday'])), $jahre[$wjahr]));
|
||||
}
|
||||
@@ -433,16 +415,14 @@ $PHP_SELF = $_SERVER['PHP_SELF'];
|
||||
|
||||
$datum_obj = new datum();
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery-ui-1.9.2.custom.min.css" type="text/css">
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
|
||||
<?php
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
@@ -450,30 +430,33 @@ $addon_obj->loadAddons();
|
||||
foreach($addon_obj->result as $addon)
|
||||
{
|
||||
if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php'))
|
||||
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
|
||||
{
|
||||
echo '
|
||||
<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
|
||||
}
|
||||
}
|
||||
|
||||
// Wenn Seite fertig geladen ist Addons aufrufen
|
||||
echo '
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
{
|
||||
if(typeof addon !== \'undefined\')
|
||||
{
|
||||
for(i in addon)
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
{
|
||||
addon[i].init("cis/private/profile/urlaubstool.php", {uid:\''.$uid.'\'});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>';
|
||||
if(typeof addon !== \'undefined\')
|
||||
{
|
||||
for(i in addon)
|
||||
{
|
||||
addon[i].init("cis/private/profile/urlaubstool.php", {uid:\''.$uid.'\'});
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>';
|
||||
?>
|
||||
<script language="Javascript">
|
||||
function conf_del()
|
||||
{
|
||||
return confirm('<?php echo $p->t('urlaubstool/eintragWirklichLoeschen');?>');
|
||||
}
|
||||
|
||||
|
||||
function checkval()
|
||||
{
|
||||
if(document.getElementById('vertretung_uid').value=='')
|
||||
@@ -484,7 +467,7 @@ $( document ).ready(function()
|
||||
else
|
||||
return true;
|
||||
}
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#vertretung").autocomplete({
|
||||
source: "urlaubstool_autocomplete.php?autocomplete=mitarbeiter",
|
||||
@@ -529,17 +512,17 @@ $( document ).ready(function()
|
||||
$mehrarbeitsstunden = $resturlaub->mehrarbeitsstunden;
|
||||
$anspruch = $resturlaub->urlaubstageprojahr;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$resturlaubstage=0;
|
||||
$mehrarbeitsstunden=0;
|
||||
// wenn mitarbeiter ist kein fixangestellter --> kein urlaubsanspruch
|
||||
$mitarbeiter_anspruch = new mitarbeiter();
|
||||
$mitarbeiter_anspruch = new mitarbeiter();
|
||||
$mitarbeiter_anspruch->load($uid);
|
||||
if($mitarbeiter_anspruch->fixangestellt == true)
|
||||
$anspruch=25;
|
||||
else
|
||||
$anspruch = 0;
|
||||
$anspruch = 25;
|
||||
else
|
||||
$anspruch = 0;
|
||||
}
|
||||
|
||||
$jahr=date('Y');
|
||||
@@ -573,34 +556,57 @@ $( document ).ready(function()
|
||||
if($gebuchterurlaub=='')
|
||||
$gebuchterurlaub=0;
|
||||
|
||||
$content_resturlaub.='<div id="resturlaub">';
|
||||
$content_resturlaub.="<table><tr><td nowrap><h3>".$p->t('urlaubstool/urlaubImGeschaeftsjahr')." $geschaeftsjahr</h3></td><td></td></tr>";
|
||||
$content_resturlaub.="<tr><td nowrap>".$p->t('urlaubstool/anspruch')."</td><td align='right' nowrap>$anspruch ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap>  ( ".$p->t('urlaubstool/jaehrlich')." )</td></tr>";
|
||||
$content_resturlaub.="<tr><td nowrap>+ ".$p->t('urlaubstool/resturlaub')."</td><td align='right' nowrap>$resturlaubstage ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( ".$p->t('urlaubstool/stichtag').": $datum_beginn )</td>";
|
||||
$content_resturlaub.="<tr><td nowrap>- ".$p->t('urlaubstool/aktuellGebuchterUrlaub')." </td><td align='right' nowrap>$gebuchterurlaub ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( $datum_beginn - $datum_ende )</td>";
|
||||
$content_resturlaub .="</tr>";
|
||||
$content_resturlaub.="<tr><td style='border-top: 1px solid black;' nowrap>".$p->t('urlaubstool/aktuellerStand')."</td><td style='border-top: 1px solid black;' align='right' nowrap>".($anspruch+$resturlaubstage-$gebuchterurlaub)." ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( ".$p->t('urlaubstool/stichtag').": $datum_ende )</td></tr>";
|
||||
$content_resturlaub.="</table>";
|
||||
$content_resturlaub.='</div>';
|
||||
$content_resturlaub .= '<div id="resturlaub">';
|
||||
$content_resturlaub .= "<table><tr><td nowrap><h3>".$p->t('urlaubstool/urlaubImGeschaeftsjahr')." $geschaeftsjahr</h3></td><td></td></tr>";
|
||||
$content_resturlaub .= "<tr><td nowrap>".$p->t('urlaubstool/anspruch')."</td><td align='right' nowrap>$anspruch ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( ".$p->t('urlaubstool/jaehrlich')." )</td></tr>";
|
||||
$content_resturlaub .= "<tr><td nowrap>+ ".$p->t('urlaubstool/resturlaub')."</td><td align='right' nowrap>$resturlaubstage ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( ".$p->t('urlaubstool/stichtag').": $datum_beginn )</td>";
|
||||
$content_resturlaub .= "<tr><td nowrap>- ".$p->t('urlaubstool/aktuellGebuchterUrlaub')." </td><td align='right' nowrap>$gebuchterurlaub ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( $datum_beginn - $datum_ende )</td>";
|
||||
$content_resturlaub .= "</tr>";
|
||||
$content_resturlaub .= "<tr><td style='border-top: 1px solid black;' nowrap>".$p->t('urlaubstool/aktuellerStand')."</td><td style='border-top: 1px solid black;' align='right' nowrap>".($anspruch+$resturlaubstage-$gebuchterurlaub)." ".$p->t('urlaubstool/tage')."</td><td class='grey' nowrap> ( ".$p->t('urlaubstool/stichtag').": $datum_ende )</td></tr>";
|
||||
$content_resturlaub .= "</table>";
|
||||
$content_resturlaub .= '</div>';
|
||||
|
||||
//Formular Auswahl Monat und Jahr für Kalender
|
||||
echo '<table width="95%" align="left">';
|
||||
echo "<td class='tdvertical' align='left' colspan='2'>$content_resturlaub</td>";
|
||||
echo '</td>';
|
||||
echo '<td style="vertical-align:top; width: 20%;"><table cellspacing="0" cellpadding="0"><tr>
|
||||
<td class="menubox" height="10px">
|
||||
<p><a href="zeitsperre_resturlaub.php">'.$p->t("urlaubstool/meineZeitsperren").'</a></p>';
|
||||
echo '
|
||||
<table width="95%" align="left">
|
||||
<tr>
|
||||
<td class="tdvertical" align="left" colspan="2">'.$content_resturlaub.'</td>
|
||||
<td style="vertical-align:top; width: 20%;">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="menubox" height="10px">
|
||||
<p><a href="zeitsperre_resturlaub.php">'.$p->t("urlaubstool/meineZeitsperren").'</a></p>';
|
||||
|
||||
if ($p->t("dms_link/handbuchUrlaubsverwaltung")!='')
|
||||
{
|
||||
echo '<p><a href="../../../cms/dms.php?id='.$p->t("dms_link/handbuchUrlaubsverwaltung").'">'.$p->t("urlaubstool/handbuchUrlaubserfassung").'</a></p>';
|
||||
echo '
|
||||
<p>
|
||||
<a href="../../../cms/dms.php?id='.$p->t("dms_link/handbuchUrlaubsverwaltung").'">
|
||||
'.$p->t("urlaubstool/handbuchUrlaubserfassung").'</a>
|
||||
</p>';
|
||||
}
|
||||
echo '<p><a href="#" onclick="alert(\''.$p->t('urlaubstool/anspruchAnzahlDerUrlaubstage').'\');">'.$p->t("urlaubstool/hilfe").'</a></p>
|
||||
</td></tr></table></td>';
|
||||
echo '</tr>';
|
||||
echo '<tr><td nowrap>';
|
||||
$content= '<form action="'.$_SERVER['PHP_SELF'].'" method="GET">';
|
||||
$content.='<INPUT name="links" type="image" src="../../../skin/images/left_lvplan.png" style="vertical-align: middle;" alt="links"> ';
|
||||
$content.='<SELECT name="wmonat">';
|
||||
|
||||
echo '
|
||||
<p>
|
||||
<a href="#" onclick="alert(\''.$p->t('urlaubstool/anspruchAnzahlDerUrlaubstage').'\');">
|
||||
'.$p->t("urlaubstool/hilfe").'
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">'.$vgmail.' '.$vtmail.'</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="GET">
|
||||
<INPUT name="links" type="image" src="../../../skin/images/left_lvplan.png"
|
||||
style="vertical-align: middle;" alt="links">
|
||||
<SELECT name="wmonat">';
|
||||
|
||||
for($i=0;$i<12;$i++)
|
||||
{
|
||||
if($wmonat==$i)
|
||||
@@ -611,13 +617,12 @@ for($i=0;$i<12;$i++)
|
||||
{
|
||||
$selected='';
|
||||
}
|
||||
$content.="<option value='$i' $selected>".$monatsname[$lang->index][$i]."</option>";
|
||||
echo "<option value='$i' $selected>".$monatsname[$lang->index][$i]."</option>";
|
||||
}
|
||||
$content.='</SELECT>';
|
||||
echo "</SELECT>\n";
|
||||
|
||||
|
||||
$content.=' <INPUT name="rechts" type="image" src="../../../skin/images/right_lvplan.png" style="vertical-align: middle;" alt="rechts">';
|
||||
$content.=' <SELECT name="wjahr">';
|
||||
echo ' <INPUT name="rechts" type="image" src="../../../skin/images/right_lvplan.png" style="vertical-align: middle;" alt="rechts">';
|
||||
echo ' <SELECT name="wjahr">';
|
||||
for($i=0;$i<5;$i++)
|
||||
{
|
||||
if($wjahr==$i)
|
||||
@@ -628,40 +633,23 @@ for($i=0;$i<5;$i++)
|
||||
{
|
||||
$selected='';
|
||||
}
|
||||
$content.="<option value='$i' $selected>$jahre[$i]</option>";
|
||||
echo "<option value='$i' $selected>$jahre[$i]</option>";
|
||||
}
|
||||
$content.='</SELECT>';
|
||||
$content.=" <INPUT type='submit' name='ok' value='".$p->t('urlaubstool/ok')."'> ";
|
||||
$content.='</form></td>';
|
||||
$content.='<form action="'.$_SERVER['PHP_SELF'].'" method="GET">';
|
||||
$content.= "<td align='center' nowrap>";
|
||||
echo '</SELECT>
|
||||
<INPUT type="submit" name="ok" value="'.$p->t('urlaubstool/ok').'">
|
||||
</form>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="GET">
|
||||
'.$p->t('urlaubstool/vertretung').':
|
||||
<input type="text" id="vertretung" placeholder="'.$p->t('lvplan/nameEingeben').'"
|
||||
name="vertretung_uid" value="'.$vertretung.'">
|
||||
<SELECT name="erreichbar" id="erreichbarkeit_kurzbz">';
|
||||
|
||||
$content.= $p->t('urlaubstool/vertretung').": <input type='text' id='vertretung' placeholder='".$p->t('lvplan/nameEingeben')."' name='vertretung_uid' value='".$vertretung."'>";
|
||||
//dropdown fuer vertretung. Ersetzt durch AutoComplete
|
||||
/*$qry = "SELECT * FROM campus.vw_mitarbeiter WHERE uid not LIKE '\\\_%' ORDER BY nachname, vorname";
|
||||
|
||||
$content.= "<SELECT name='vertretung_uid' id='vertretung_uid'><OPTION value=''>-- ".$p->t('urlaubstool/vertretung')." --</OPTION>\n";
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
if($vertretung == $row->uid)
|
||||
{
|
||||
$content.= "<OPTION value='$row->uid' selected>$row->nachname $row->vorname ($row->uid)</OPTION>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$content.= "<OPTION value='$row->uid'>$row->nachname $row->vorname ($row->uid)</OPTION>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
$content.= '</SELECT>';*/
|
||||
$content.= " <SELECT name='erreichbar' id='erreichbarkeit_kurzbz'>";
|
||||
//dropdown fuer Erreichbarkeit
|
||||
$qry = "SELECT * FROM campus.tbl_erreichbarkeit ORDER BY erreichbarkeit_kurzbz";
|
||||
|
||||
$content.= "<OPTION value=''>-- ".$p->t('urlaubstool/erreichbarkeit')." --</OPTION>\n";
|
||||
echo "<OPTION value=''>-- ".$p->t('urlaubstool/erreichbarkeit')." --</OPTION>\n";
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
@@ -669,16 +657,15 @@ if($result = $db->db_query($qry))
|
||||
{
|
||||
if($erreichbar == $row->erreichbarkeit_kurzbz)
|
||||
{
|
||||
$content.= "<OPTION value='$row->erreichbarkeit_kurzbz' selected>$row->beschreibung</OPTION>\n";
|
||||
echo "<OPTION value='$row->erreichbarkeit_kurzbz' selected>$row->beschreibung</OPTION>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$content.= "<OPTION value='$row->erreichbarkeit_kurzbz'>$row->beschreibung</OPTION>\n";
|
||||
echo "<OPTION value='$row->erreichbarkeit_kurzbz'>$row->beschreibung</OPTION>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
$content.= '</SELECT>';
|
||||
$content.='</td>';
|
||||
echo '</SELECT>';
|
||||
|
||||
//Tage
|
||||
$mbeginn=mktime(0, 0, 0, ($wmonat+1) , 1, $jahre[$wjahr]);
|
||||
@@ -713,7 +700,7 @@ for($i=1;$i<43;$i++)
|
||||
{
|
||||
$tage[$i]=date("d.m.Y", mktime(0, 0, 0, 12 , $mendev+$i-($wotag-1), $jahre[$wjahr]-1));
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$tage[$i]=date("d.m.Y", mktime(0, 0, 0, ($wmonat) , $mendev+$i-($wotag-1), $jahre[$wjahr]));
|
||||
}
|
||||
@@ -724,84 +711,88 @@ for($i=1;$i<43;$i++)
|
||||
{
|
||||
$tage[$i]=date("d.m.Y", mktime(0, 0, 0, 1 , $i-$mende-$wotag+1, $jahre[$wjahr+1]));
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$tage[$i]=date("d.m.Y", mktime(0, 0, 0, ($wmonat+2) , $i-$mende-$wotag+1, $jahre[$wjahr]));
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$tage[$i]='';
|
||||
$tage[$i]='';
|
||||
}
|
||||
}
|
||||
|
||||
$content.='<td>';
|
||||
$content.='<input type="submit" name="speichern" value="'.$p->t('urlaubstool/eintragungenSpeichern').'">';
|
||||
$content.='<input type="hidden" name="wmonat" value="'.$wmonat.'">';
|
||||
$content.='<input type="hidden" name="wjahr" value="'.$wjahr.'">';
|
||||
$content.='</td></tr><tr><td> </td></tr>';
|
||||
$content.='</table>';
|
||||
$content.='<table border=0 width="95%" align="left" class="urlaube">';
|
||||
echo ' <input type="submit" name="speichern" value="'.$p->t('urlaubstool/eintragungenSpeichern').'">
|
||||
<input type="hidden" name="wmonat" value="'.$wmonat.'">
|
||||
<input type="hidden" name="wjahr" value="'.$wjahr.'">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 width="95%" align="left" class="urlaube">
|
||||
<tr>';
|
||||
|
||||
$content.='<th style="width:14%; height:20px; background-color: #A5AFB6">'.$tagbez[$lang->index][1].'</th><th style="width:14%; background-color: #A5AFB6">'.$tagbez[$lang->index][2].'</th><th style="width:14%; background-color: #A5AFB6">'.$tagbez[$lang->index][3].'</th><th style="width:14%; background-color: #A5AFB6">'.$tagbez[$lang->index][4].'</th><th style="width:14%; background-color: #A5AFB6">'.$tagbez[$lang->index][5].'</th><th style="width:14%; background-color: #A5AFB6">'.$tagbez[$lang->index][6].'</th><th style="width:14%; background-color: #A5AFB6">'.$tagbez[$lang->index][7].'</th>';
|
||||
for($i=1;$i<=7;$i++)
|
||||
echo "\n".'<th style="width:14%; background-color: #A5AFB6">'.$tagbez[$lang->index][$i].'</th>';
|
||||
|
||||
echo '</tr>';
|
||||
for ($i=0;$i<6;$i++)
|
||||
{
|
||||
$content.='<tr height="50" style="font-family:Arial,sans-serif; font-size:30px; color:black">';
|
||||
echo "\n".'<tr height="50" style="font-family:Arial,sans-serif; font-size:30px; color:black">';
|
||||
for ($j=1;$j<8;$j++)
|
||||
{
|
||||
echo "\n";
|
||||
if(strlen(stristr($tage[$j+7*$i],"."))>0)
|
||||
{
|
||||
$content.='<td align="center" valign="center" style="font-size:16px; color:grey; background-color: '.$hgfarbe[$j+7*$i].'">';
|
||||
echo '<td align="center" valign="center" style="font-size:16px; color:grey; background-color: '.$hgfarbe[$j+7*$i].'">';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$content.='<td align="center" valign="center" style="background-color: '.$hgfarbe[$j+7*$i].'">';
|
||||
echo '<td align="center" valign="center" style="background-color: '.$hgfarbe[$j+7*$i].'">';
|
||||
}
|
||||
if($tage[$j+7*$i]!='')
|
||||
{
|
||||
if($hgfarbe[$j+7*$i]=='#FFFC7F')
|
||||
{
|
||||
$content.='<b title='.$p->t('urlaubstool/vertretung').': '.$vertretung_uid[$j+7*$i].' - '.$p->t('urlaubstool/erreichbar').': '.$erreichbarkeit_kurzbz[$j+7*$i].'">'.$tage[$j+7*$i].'</b><br>';;
|
||||
echo '<b title='.$p->t('urlaubstool/vertretung').': '.$vertretung_uid[$j+7*$i].' - '.$p->t('urlaubstool/erreichbar').': '.$erreichbarkeit_kurzbz[$j+7*$i].'">'.$tage[$j+7*$i].'</b><br>';;
|
||||
$k=$j+7*$i;
|
||||
$content.="<a href='$PHP_SELF?wmonat=$wmonat&wjahr=$wjahr&delete=$datensatz[$k]' onclick='return conf_del()'>";
|
||||
$content.='<img src="../../../skin/images/delete_x.png" alt="loeschen" title="'.$p->t('urlaubstool/eintragungLoeschen').'"></a></td>';
|
||||
echo "<a href='$PHP_SELF?wmonat=$wmonat&wjahr=$wjahr&delete=$datensatz[$k]' onclick='return conf_del()'>";
|
||||
echo '<img src="../../../skin/images/delete_x.png" alt="loeschen" title="'.$p->t('urlaubstool/eintragungLoeschen').'"></a></td>';
|
||||
}
|
||||
elseif($hgfarbe[$j+7*$i]=='#E9ECEE')
|
||||
{
|
||||
$content.='<b>'.$tage[$j+7*$i].'</b><br>';
|
||||
echo '<b>'.$tage[$j+7*$i].'</b><br>';
|
||||
if(strlen(stristr($tage[$j+7*$i],"."))>0)
|
||||
{
|
||||
$content.='<input type="checkbox" name="wtag[]" value="'.date("Y-m-d",mktime(0, 0, 0, substr($tage[$j+7*$i],3,2) , substr($tage[$j+7*$i],0,2), substr($tage[$j+7*$i],6,4))).'"></td>';
|
||||
echo '<input type="checkbox" name="wtag[]" value="'.date("Y-m-d",mktime(0, 0, 0, substr($tage[$j+7*$i],3,2) , substr($tage[$j+7*$i],0,2), substr($tage[$j+7*$i],6,4))).'"></td>';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$content.='<input type="checkbox" name="wtag[]" value="'.date("Y-m-d",mktime(0, 0, 0, ($wmonat+1) , $tage[$j+7*$i], $jahre[$wjahr])).'"></td>';
|
||||
echo '<input type="checkbox" name="wtag[]" value="'.date("Y-m-d",mktime(0, 0, 0, ($wmonat+1) , $tage[$j+7*$i], $jahre[$wjahr])).'"></td>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$content.='<b title="'.$p->t('urlaubstool/vertretung').': '.$vertretung_uid[$j+7*$i].' - '.$p->t('urlaubstool/erreichbar').': '.$erreichbarkeit_kurzbz[$j+7*$i].'">'.$tage[$j+7*$i].'</b><br>';
|
||||
echo '<b title="'.$p->t('urlaubstool/vertretung').': '.$vertretung_uid[$j+7*$i].' - '.$p->t('urlaubstool/erreichbar').': '.$erreichbarkeit_kurzbz[$j+7*$i].'">'.$tage[$j+7*$i].'</b><br>';
|
||||
if(isset($freigabeamum[$j+7*$i]))
|
||||
{
|
||||
$content.='<img src="../../../skin/images/flag-green.png" alt="freigegeben" title="'.$p->t('urlaubstool/freigegebenDurchAm', array($freigabevon[$j+7*$i])).' '.date("d-m-Y",strtotime($freigabeamum[$j+7*$i])).'"></td>';
|
||||
echo '<img src="../../../skin/images/flag-green.png" alt="freigegeben" title="'.$p->t('urlaubstool/freigegebenDurchAm', array($freigabevon[$j+7*$i])).' '.date("d-m-Y",strtotime($freigabeamum[$j+7*$i])).'"></td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$content.='<img src="../../../skin/images/flag-green.png" alt="freigegeben" title="'.$p->t('urlaubstool/freigegebenDurch', array($freigabevon[$j+7*$i])).': '.$freigabevon[$j+7*$i].'"></td>';
|
||||
echo '<img src="../../../skin/images/flag-green.png" alt="freigegeben" title="'.$p->t('urlaubstool/freigegebenDurch', array($freigabevon[$j+7*$i])).': '.$freigabevon[$j+7*$i].'"></td>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$content.='<b> </b><br>';
|
||||
echo '<b> </b><br>';
|
||||
}
|
||||
}
|
||||
$content.='</tr>';
|
||||
echo '</tr>';
|
||||
}
|
||||
$content.='</table></form>';
|
||||
echo $content;
|
||||
echo "<table width='100%'><tr><td><br>".$vgmail;
|
||||
echo "<br>".$vtmail."</td></tr></table>";
|
||||
echo '</table></form>';
|
||||
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -186,7 +186,7 @@ echo ']>
|
||||
<template>
|
||||
<treechildren flex="1" >
|
||||
<treeitem uri="rdf:*">
|
||||
<treerow>
|
||||
<treerow properties="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#properties">
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#datum"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#stufe"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studiensemester"/>
|
||||
|
||||
@@ -26,9 +26,13 @@ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Pragma: no-cache");
|
||||
header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../config/global.config.inc.php');
|
||||
require_once('../../include/variable.class.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
|
||||
$user=get_uid();
|
||||
|
||||
$variable = new variable();
|
||||
if(!$variable->loadVariables($user))
|
||||
{
|
||||
@@ -213,8 +217,24 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<hbox><textbox id="student-detail-textbox-gruppe" disabled="true" maxlength="1" size="1"/></hbox>
|
||||
</row>
|
||||
<row>
|
||||
<?php
|
||||
// Wenn Alias Erstellung deaktiviert ist dann ist das Feld readonly
|
||||
// Es sei den die Person hat die Rechte es zu aendern
|
||||
if(defined('GENERATE_ALIAS_STUDENT') && GENERATE_ALIAS_STUDENT===false)
|
||||
{
|
||||
$readonly='readonly="true"';
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
if($rechte->isBerechtigt('student/alias'))
|
||||
$readonly='';
|
||||
}
|
||||
else
|
||||
{
|
||||
$readonly='';
|
||||
}
|
||||
?>
|
||||
<label value="Alias" control="student-detail-textbox-alias" />
|
||||
<textbox id="student-detail-textbox-alias" disabled="true" maxlength="256" />
|
||||
<textbox id="student-detail-textbox-alias" <?php echo $readonly;?> disabled="true" maxlength="256" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
@@ -373,23 +373,23 @@ else
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxX +=55;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'Ergebnis <= 50 Pkte = 5',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'< 50% = 5',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'50 < Ergebnis < 65 = 4',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 50% und < 63% = 4',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'65 <= Ergebnis < 78 = 3',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 63% und < 75% = 3',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'78 <= Ergebnis < 91 = 2',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 75% und < 88% = 2',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'91 Pkte <= Ergebnis = 1',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 88% = 1',1,'C',0);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=85;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(315,12,'1 Gruppe < 50 Punkte => Masterarbeit gesamt negativ','LB','L',0);
|
||||
$pdf->MultiCell(470,12,'Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Bachelorarbeit insgesamt als negativ zu beurteilen.','LB','L',0);
|
||||
$maxX +=315;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(80,12,'','TB','C',0);
|
||||
@@ -659,23 +659,23 @@ else
|
||||
$pdf->SetFont('Arial','',8);
|
||||
$maxX +=55;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'Ergebnis <= 50 Pkte = 5',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'< 50% = 5',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'50 < Ergebnis < 65 = 4',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 50% und < 63% = 4',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'65 <= Ergebnis < 78 = 3',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 63% und < 75% = 3',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'78 <= Ergebnis < 91 = 2',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 75% und < 88% = 2',1,'C',0);
|
||||
$maxX +=95;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(95,12,'91 Pkte <= Ergebnis = 1',1,'C',0);
|
||||
$pdf->MultiCell(95,12,'>= 88% = 1',1,'C',0);
|
||||
$maxY=$pdf->GetY();
|
||||
$maxX=85;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(315,12,'1 Gruppe < 50 Punkte => Masterarbeit gesamt negativ','LB','L',0);
|
||||
$pdf->MultiCell(470,12,'Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Masterarbeit insgesamt als negativ zu beurteilen.','LB','L',0);
|
||||
$maxX +=315;
|
||||
$pdf->SetXY($maxX,$maxY);
|
||||
$pdf->MultiCell(80,12,'','TB','C',0);
|
||||
@@ -844,19 +844,19 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
if(document.getElementById("summe2").value<=50)
|
||||
if(document.getElementById("summe2").value<50)
|
||||
{
|
||||
ergebnis=5;
|
||||
}
|
||||
else if(document.getElementById("summe2").value<65)
|
||||
else if(document.getElementById("summe2").value<63)
|
||||
{
|
||||
ergebnis=4;
|
||||
}
|
||||
else if(document.getElementById("summe2").value<78)
|
||||
else if(document.getElementById("summe2").value<75)
|
||||
{
|
||||
ergebnis=3;
|
||||
}
|
||||
else if(document.getElementById("summe2").value<91)
|
||||
else if(document.getElementById("summe2").value<88)
|
||||
{
|
||||
ergebnis=2;
|
||||
}
|
||||
@@ -884,15 +884,15 @@ else
|
||||
{
|
||||
ergebnis=5;
|
||||
}
|
||||
else if(document.getElementById("summe2").value<65)
|
||||
else if(document.getElementById("summe2").value<63)
|
||||
{
|
||||
ergebnis=4;
|
||||
}
|
||||
else if(document.getElementById("summe2").value<78)
|
||||
else if(document.getElementById("summe2").value<75)
|
||||
{
|
||||
ergebnis=3;
|
||||
}
|
||||
else if(document.getElementById("summe2").value<91)
|
||||
else if(document.getElementById("summe2").value<88)
|
||||
{
|
||||
ergebnis=2;
|
||||
}
|
||||
@@ -1058,14 +1058,14 @@ else
|
||||
$htmlstr .="</table>";
|
||||
|
||||
$htmlstr .= "<br><table border='1' align='center' width='70%'>";
|
||||
$htmlstr .= "<tr><td>Ergebnis <=50 Punkte : Note 5</td><td>50< Ergebnis <65 : Note 4</td><td>65<= Ergebnis <78 : Note 3</td><td>78<= Ergebnis <91 : Note 2</td><td>91<= Ergebnis : Note 1</td></tr>";
|
||||
$htmlstr .= "<tr><td>< 50% <b>Nicht genügend</b></td><td>>= 50% und <63% <b>Genügend</b></td><td>>= 63% und < 75% <b>Befriedigend</b></td><td>>= 75% und < 88% <b>Gut</b></td><td>>= 88% <b>Sehr Gut</b></td></tr>";
|
||||
if($row->projekttyp_kurzbz!='Bachelor')
|
||||
{
|
||||
$htmlstr .= "<tr><td colspan='5'>Ein Kriterium mit weniger als 50 Punkten ⇒ Masterarbeit gesamt negativ</td></tr>";
|
||||
$htmlstr .= "<tr><td colspan='5'>Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Masterarbeit insgesamt als negativ zu beurteilen.</td></tr>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$htmlstr .= "<tr><td colspan='5'>Ein Kriterium mit weniger als 50 Punkten ⇒ Bachelorarbeit gesamt negativ</td></tr>";
|
||||
$htmlstr .= "<tr><td colspan='5'>Liegt die Punkteanzahl bei einem Kriterium unter 50%, ist die Bachelorarbeit insgesamt als negativ zu beurteilen.</td></tr>";
|
||||
}
|
||||
$htmlstr .= "</table>";
|
||||
if($row->projekttyp_kurzbz!='Bachelor')
|
||||
|
||||
@@ -41,4 +41,5 @@ $this->phrasen['zeitsperre/legendeGrund']='G...Grund';
|
||||
$this->phrasen['zeitsperre/legendeErreichbarkeit']='E...Erreichbarkeit (n=nicht erreichbar, t=telefonisch, e=eMail, et=eMail oder telefonisch)';
|
||||
$this->phrasen['zeitsperre/legendeVertretung']='V...Vertretung';
|
||||
$this->phrasen['zeitsperre/legendeDurchwahl']='(123)...Durchwahl';
|
||||
$this->phrasen['zeitsperre/vertretungNichtKorrekt']='Die angegebene Vertretung kann nicht gefunden werden. Bitte prüfen Sie die Vertretung und versuchen Sie es erneut.';
|
||||
?>
|
||||
|
||||
@@ -41,4 +41,5 @@ $this->phrasen['zeitsperre/legendeGrund']='R...Reason';
|
||||
$this->phrasen['zeitsperre/legendeErreichbarkeit']='A...Availability (n=not available, t=telephone, e=eMail, et=eMail or telephone)';
|
||||
$this->phrasen['zeitsperre/legendeVertretung']='S...Substitute';
|
||||
$this->phrasen['zeitsperre/legendeDurchwahl']='(123)...Extension';
|
||||
$this->phrasen['zeitsperre/vertretungNichtKorrekt']='The selected substitute is invalid. Please check the substitute an try again.';
|
||||
?>
|
||||
|
||||
@@ -46,6 +46,12 @@ $prestudent_id = filter_input(INPUT_GET, 'prestudent_id');
|
||||
$rt_person_id = filter_input(INPUT_GET, 'rt_person_id');
|
||||
|
||||
$oRdf->sendHeader();
|
||||
$reihungstest_obj_arr = array();
|
||||
$studienplan_obj_arr = array();
|
||||
$studienordnung_obj_arr = array();
|
||||
$stsem_arr = array();
|
||||
$youngest_rt_stsem = '';
|
||||
$zuordnung_fuer_selben_studiengang = array();
|
||||
|
||||
if($prestudent_id!='')
|
||||
{
|
||||
@@ -56,6 +62,43 @@ if($prestudent_id!='')
|
||||
$reihungstest = new reihungstest();
|
||||
$reihungstest->getReihungstestPerson($prestudent->person_id);
|
||||
|
||||
foreach($reihungstest->result as $row)
|
||||
{
|
||||
// Reihungstest laden
|
||||
if(!isset($reihungstest_obj_arr[$row->reihungstest_id]))
|
||||
{
|
||||
$reihungstest_obj_arr[$row->reihungstest_id] = new reihungstest();
|
||||
$reihungstest_obj_arr[$row->reihungstest_id]->load($row->reihungstest_id);
|
||||
}
|
||||
|
||||
// Studienplan laden
|
||||
if(!isset($studienplan_obj_arr[$row->studienplan_id]))
|
||||
{
|
||||
$studienplan_obj_arr[$row->studienplan_id] = new studienplan();
|
||||
$studienplan_obj_arr[$row->studienplan_id]->loadStudienplan($row->studienplan_id);
|
||||
}
|
||||
|
||||
// Studienordnung laden
|
||||
$studienordnung_id = $studienplan_obj_arr[$row->studienplan_id]->studienordnung_id;
|
||||
if(!isset($studienordnung_obj_arr[$studienordnung_id]))
|
||||
{
|
||||
$studienordnung_obj_arr[$studienordnung_id] = new studienordnung();
|
||||
$studienordnung_obj_arr[$studienordnung_id]->loadStudienordnung($studienordnung_id);
|
||||
}
|
||||
|
||||
// Pruefen ob das ein Reihungstest fuer den Studiengang des Prestudenten ist
|
||||
if($studienordnung_obj_arr[$studienordnung_id]->studiengang_kz == $prestudent->studiengang_kz)
|
||||
{
|
||||
$zuordnung_fuer_selben_studiengang[] = $row->rt_person_id;
|
||||
$stsem_arr[] = $reihungstest_obj_arr[$row->reihungstest_id]->studiensemester_kurzbz;
|
||||
}
|
||||
}
|
||||
if(count($stsem_arr) > 0)
|
||||
{
|
||||
$studiensemester = new studiensemester();
|
||||
$youngest_rt_stsem = $studiensemester->getYoungestFromArray($stsem_arr);
|
||||
}
|
||||
|
||||
foreach($reihungstest->result as $row)
|
||||
{
|
||||
drawrow($row);
|
||||
@@ -65,23 +108,39 @@ elseif($rt_person_id!='')
|
||||
{
|
||||
$reihungstest = new reihungstest();
|
||||
if($reihungstest->loadReihungstestPerson($rt_person_id))
|
||||
{
|
||||
$reihungstest_obj_arr[$reihungstest->reihungstest_id] = new reihungstest();
|
||||
$reihungstest_obj_arr[$reihungstest->reihungstest_id]->load($reihungstest->reihungstest_id);
|
||||
drawrow($reihungstest);
|
||||
}
|
||||
else
|
||||
die($reihungstest->errormsg);
|
||||
}
|
||||
|
||||
function drawrow($row)
|
||||
{
|
||||
global $oRdf, $datum_obj;
|
||||
global $oRdf, $datum_obj, $reihungstest_obj_arr, $youngest_rt_stsem, $zuordnung_fuer_selben_studiengang;
|
||||
global $studienplan_obj_arr, $studienordnung_obj_arr;
|
||||
|
||||
$reihungstest_obj = new reihungstest();
|
||||
$reihungstest_obj->load($row->reihungstest_id);
|
||||
$reihungstest_obj = $reihungstest_obj_arr[$row->reihungstest_id];
|
||||
|
||||
$studienplan = new studienplan();
|
||||
$studienplan->loadStudienplan($row->studienplan_id);
|
||||
if(!isset($studienplan_obj_arr[$row->studienplan_id]))
|
||||
{
|
||||
$studienplan = new studienplan();
|
||||
$studienplan->loadStudienplan($row->studienplan_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$studienplan = $studienplan_obj_arr[$row->studienplan_id];
|
||||
}
|
||||
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($studienplan->studienordnung_id);
|
||||
if(!isset($studienordnung_obj_arr[$studienplan->studienordnung_id]))
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($studienplan->studienordnung_id);
|
||||
}
|
||||
else
|
||||
$studienordnung = $studienordnung_obj_arr[$studienplan->studienordnung_id];
|
||||
|
||||
$stpl_stg = new studiengang();
|
||||
$stpl_stg->load($studienordnung->studiengang_kz);
|
||||
@@ -104,6 +163,14 @@ function drawrow($row)
|
||||
$oRdf->obj[$i]->setAttribut('datum',$datum_obj->formatDatum($reihungstest_obj->datum,'d.m.Y'),true);
|
||||
$oRdf->obj[$i]->setAttribut('datum_iso',$reihungstest_obj->datum,true);
|
||||
|
||||
// Es wird der neueste Reihungstest im Studiengang des Prestudenten markiert damit im FAS erkennbar ist welches
|
||||
// Eintraege zur Punkteberechnung verwendet werden
|
||||
if($reihungstest_obj->studiensemester_kurzbz == $youngest_rt_stsem
|
||||
&& in_array($row->rt_person_id,$zuordnung_fuer_selben_studiengang))
|
||||
$oRdf->obj[$i]->setAttribut('properties','makeItMarked',true);
|
||||
else
|
||||
$oRdf->obj[$i]->setAttribut('properties','',true);
|
||||
|
||||
$oRdf->addSequence($row->rt_person_id);
|
||||
}
|
||||
|
||||
|
||||
@@ -940,6 +940,8 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml")
|
||||
// return true wenn neue note genommen werden soll
|
||||
function checkNote($note_alt, $note_neu)
|
||||
{
|
||||
$priority_neu = 9999;
|
||||
$priority_alt = 9999;
|
||||
$arrayNotenPriority = array(
|
||||
'0' => '1',
|
||||
'1' => '2',
|
||||
@@ -968,4 +970,4 @@ function checkNote($note_alt, $note_neu)
|
||||
return false;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
+4
-4
@@ -25,10 +25,6 @@ menubar,menupopup,toolbar,tabpanels,tabbox,iframe,box,hbox,vbox,tree,label,descr
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
menubar
|
||||
{
|
||||
background-color: #ff8040;
|
||||
}
|
||||
menupopup
|
||||
{
|
||||
border: 1px solid black;
|
||||
@@ -194,3 +190,7 @@ treechildren::-moz-tree-cell-text(Lektor_inaktiv)
|
||||
color: grey;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
treechildren::-moz-tree-row(makeItMarked)
|
||||
{
|
||||
background-color: #ceffb0;
|
||||
}
|
||||
|
||||
@@ -19,20 +19,20 @@
|
||||
* Authors: Karl Burkhart <burkhart@technikum-wien.at>
|
||||
*/
|
||||
|
||||
require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/konto.class.php');
|
||||
require_once('../include/betriebsmittelperson.class.php');
|
||||
require_once('../include/studiensemester.class.php');
|
||||
require_once('../include/benutzer.class.php');
|
||||
require_once('../include/webservicelog.class.php');
|
||||
require_once('../include/datum.class.php');
|
||||
require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/konto.class.php');
|
||||
require_once('../include/betriebsmittelperson.class.php');
|
||||
require_once('../include/studiensemester.class.php');
|
||||
require_once('../include/benutzer.class.php');
|
||||
require_once('../include/webservicelog.class.php');
|
||||
require_once('../include/datum.class.php');
|
||||
require_once('../include/addon.class.php');
|
||||
require_once('../include/'.EXT_FKT_PATH.'/serviceterminal.inc.php');
|
||||
|
||||
ini_set("soap.wsdl_cache_enabled", "0");
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT.'soap/kartenverlaengerung.wsdl.php?'.microtime());
|
||||
$SOAPServer->addFunction('getNumber');
|
||||
$SOAPServer = new SoapServer(APP_ROOT.'soap/kartenverlaengerung.wsdl.php?'.microtime(true));
|
||||
$SOAPServer->addFunction('getNumber');
|
||||
$SOAPServer->handle();
|
||||
|
||||
function getNumber($cardNr)
|
||||
@@ -40,10 +40,10 @@ function getNumber($cardNr)
|
||||
// Fehler wenn keine Kartennummer übergeben wurde
|
||||
if($cardNr == '')
|
||||
{
|
||||
$objArray = array('datum'=>'', 'errorMessage'=>'keine gültige Nummer übergeben.');
|
||||
return $objArray;
|
||||
$objArray = array('datum'=>'', 'errorMessage'=>'keine gültige Nummer übergeben.');
|
||||
return $objArray;
|
||||
}
|
||||
|
||||
|
||||
$addon_externeAusweise = false;
|
||||
$addon = new addon();
|
||||
$addon->loadAddons();
|
||||
@@ -62,26 +62,26 @@ function getNumber($cardNr)
|
||||
if($idCard->loadByCardnumber($cardNr))
|
||||
{
|
||||
return ServiceTerminalGetDrucktext($cardNr, $cardNr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Karte ist noch nicht ausgegeben
|
||||
$cardUser = new betriebsmittelperson();
|
||||
$cardUser = new betriebsmittelperson();
|
||||
if(!$cardUser->getKartenzuordnung($cardNr))
|
||||
{
|
||||
$objArray = array('datum'=>'', 'errorMessage'=>'Konnte Karte keiner Person zuweisen. Bitte wenden Sie sich an den Service Desk.');
|
||||
return $objArray;
|
||||
$objArray = array('datum'=>'', 'errorMessage'=>'Konnte Karte keiner Person zuweisen. Bitte wenden Sie sich an den Service Desk.');
|
||||
return $objArray;
|
||||
}
|
||||
|
||||
|
||||
// User zur Karte konnte nicht geladen werden
|
||||
$cardPerson = new benutzer();
|
||||
$cardPerson = new benutzer();
|
||||
if(!$cardPerson->load($cardUser->uid))
|
||||
{
|
||||
$objArray = array('datum'=>'', 'errorMessage'=>'Die Person kann nicht geladen werden. Bitte wenden Sie sich an den Service Desk.');
|
||||
return $objArray;
|
||||
$objArray = array('datum'=>'', 'errorMessage'=>'Die Person kann nicht geladen werden. Bitte wenden Sie sich an den Service Desk.');
|
||||
return $objArray;
|
||||
}
|
||||
|
||||
return ServiceTerminalGetDrucktext($cardUser->uid);
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* Authors: Karl Burkhart <burkhart@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/webservicerecht.class.php');
|
||||
@@ -31,52 +31,52 @@ require_once('../include/studiengang.class.php');
|
||||
|
||||
ini_set("soap.wsdl_cache_enabled", "0");
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/lehrveranstaltung.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/lehrveranstaltung.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("getLehrveranstaltungFromId");
|
||||
$SOAPServer->addFunction("getLehrveranstaltungFromStudiengang");
|
||||
$SOAPServer->handle();
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
* Funktion getLehrveranstaltungFromId liefert eine LV zurück
|
||||
* @param lehrveranstaltung_id - Lehrveranstaltungs ID -> Pflichtfeld
|
||||
* @param semester - SemesterKurzbz -> Optional
|
||||
* @param authentifizierung - Array mit Username und Passwort -> Pflichtfeld
|
||||
*
|
||||
* @param authentifizierung - Array mit Username und Passwort -> Pflichtfeld
|
||||
*
|
||||
*/
|
||||
function getLehrveranstaltungFromId($lehrveranstaltung_id, $semester, $authentifizierung)
|
||||
{
|
||||
if($lehrveranstaltung_id == '')
|
||||
return new SOAPFault("Server", "lehrveranstaltungs_id must be set");
|
||||
|
||||
$user = $authentifizierung->username;
|
||||
|
||||
$user = $authentifizierung->username;
|
||||
$passwort = $authentifizierung->passwort;
|
||||
$lv_id = $lehrveranstaltung_id;
|
||||
$lv_id = $lehrveranstaltung_id;
|
||||
|
||||
// User authentifizieren
|
||||
if(!check_user($user, $passwort))
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
// darf user überhaupt was von Methode sehen
|
||||
$recht = new webservicerecht();
|
||||
$recht = new webservicerecht();
|
||||
if(!$recht->isUserAuthorized($user, 'getLehrveranstaltungFromId'))
|
||||
return new SoapFault("Server", "No permission");
|
||||
|
||||
|
||||
// Daten für Lehrveranstaltung
|
||||
$lv = new lehrveranstaltung();
|
||||
$lv = new lehrveranstaltung();
|
||||
if(!$lv->load($lv_id))
|
||||
return new SoapFault("Server", "Error loading Lv");
|
||||
|
||||
class foo{};
|
||||
return new SoapFault("Server", "Error loading Lv");
|
||||
|
||||
class foo{};
|
||||
$mitarbeiterlehreinheit = array(); // uids aller mitarbeiter
|
||||
$gruppelehreinheit = array(); // objekte aller gruppen
|
||||
$moodleArray = array(); // ids aller moodle kurse
|
||||
|
||||
|
||||
// wenn semester nicht übergeben wurde, gib nur bezeichnung und lehreverzeichnis aus
|
||||
if($semester != '')
|
||||
{
|
||||
// hole alle Lehreinheiten von Lehrveranstaltung
|
||||
$lehreinheit = new lehreinheit();
|
||||
$lehreinheit = new lehreinheit();
|
||||
if(!$lehreinheit->load_lehreinheiten($lv_id, $semester))
|
||||
return new SoapFault("Server", $lehreinheit->errormsg);
|
||||
|
||||
@@ -86,39 +86,39 @@ function getLehrveranstaltungFromId($lehrveranstaltung_id, $semester, $authentif
|
||||
$mitarbeiter = new lehreinheitmitarbeiter();
|
||||
$mitarbeiter->getLehreinheitmitarbeiter($l->lehreinheit_id);
|
||||
foreach($mitarbeiter->lehreinheitmitarbeiter as $m)
|
||||
$mitarbeiterlehreinheit[]=$m->mitarbeiter_uid;
|
||||
$mitarbeiterlehreinheit[]=$m->mitarbeiter_uid;
|
||||
|
||||
// alle gruppen einer lehreinheit
|
||||
$gruppe = new lehreinheitgruppe();
|
||||
$gruppe = new lehreinheitgruppe();
|
||||
$gruppe->getLehreinheitgruppe($l->lehreinheit_id);
|
||||
foreach($gruppe->lehreinheitgruppe as $g)
|
||||
{
|
||||
$grp = new foo();
|
||||
$grp->studiengang_kz = $g->studiengang_kz;
|
||||
$grp->semester=$g->semester;
|
||||
$grp->verband=$g->verband;
|
||||
$grp->gruppe=$g->gruppe;
|
||||
$grp->grupppe_kurzbz=$g->gruppe_kurzbz;
|
||||
$gruppelehreinheit[] = $grp;
|
||||
$grp = new foo();
|
||||
$grp->studiengang_kz = $g->studiengang_kz;
|
||||
$grp->semester=$g->semester;
|
||||
$grp->verband=$g->verband;
|
||||
$grp->gruppe=$g->gruppe;
|
||||
$grp->grupppe_kurzbz=$g->gruppe_kurzbz;
|
||||
$gruppelehreinheit[] = $grp;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// alle moodle kurse einer lv
|
||||
$moodleArray = $lv->getMoodleKurse($lehrveranstaltung_id, $semester);
|
||||
|
||||
}
|
||||
|
||||
$LvObject = new foo();
|
||||
$LvObject->bezeichnung = $lv->bezeichnung;
|
||||
$LvObject->lehreverzeichnis = $lv->lehreverzeichnis;
|
||||
$LvObject->moodle_id = $moodleArray;
|
||||
$LvObject->lektoren = $mitarbeiterlehreinheit;
|
||||
$LvObject->gruppen= $gruppelehreinheit;
|
||||
|
||||
// lösche alle Attribute für die user keine Berechtigung hat
|
||||
|
||||
$LvObject = new foo();
|
||||
$LvObject->bezeichnung = $lv->bezeichnung;
|
||||
$LvObject->lehreverzeichnis = $lv->lehreverzeichnis;
|
||||
$LvObject->moodle_id = $moodleArray;
|
||||
$LvObject->lektoren = $mitarbeiterlehreinheit;
|
||||
$LvObject->gruppen= $gruppelehreinheit;
|
||||
|
||||
// lösche alle Attribute für die user keine Berechtigung hat
|
||||
$LvObject = $recht->clearResponse($user, 'getLehrveranstaltungFromId', $LvObject);
|
||||
|
||||
return $LvObject;
|
||||
return $LvObject;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -127,90 +127,90 @@ function getLehrveranstaltungFromId($lehrveranstaltung_id, $semester, $authentif
|
||||
* @param semester - Semester_kurzbz -> Pflichtfeld
|
||||
* @param ausbildungssemester - Ausbildungssemester -> Optional
|
||||
* @param authentifizierung - Array mit Username und Passwort -> Pflichtfeld
|
||||
*
|
||||
*
|
||||
*/
|
||||
function getLehrveranstaltungFromStudiengang($studiengang, $semester, $ausbildungssemester, $authentifizierung)
|
||||
{
|
||||
|
||||
$user = $authentifizierung->username;
|
||||
$user = $authentifizierung->username;
|
||||
$passwort = $authentifizierung->passwort;
|
||||
|
||||
|
||||
if($studiengang == '' || $semester == '')
|
||||
return new SOAPFault("Server", "studiengang | semester must be set");
|
||||
|
||||
|
||||
// User authentifizieren
|
||||
if(!check_user($user, $passwort))
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
// darf user überhaupt was von Methode sehen
|
||||
$recht = new webservicerecht();
|
||||
$recht = new webservicerecht();
|
||||
if(!$recht->isUserAuthorized($user, 'getLehrveranstaltungFromStudiengang'))
|
||||
return new SoapFault("Server", "No permission");
|
||||
|
||||
|
||||
// Daten für Lehrveranstaltung
|
||||
$lehrveranstaltung = new lehrveranstaltung();
|
||||
$stud = new studiengang();
|
||||
|
||||
$lehrveranstaltung = new lehrveranstaltung();
|
||||
$stud = new studiengang();
|
||||
|
||||
if(!$stud->load($studiengang))
|
||||
return new SoapFault ("Server", "Error loading Studiengang");
|
||||
|
||||
|
||||
if(!$lehrveranstaltung->load_lva_le($stud->studiengang_kz, $semester, $ausbildungssemester))
|
||||
return new SoapFault("Server", "Error loading Lv");
|
||||
|
||||
return new SoapFault("Server", "Error loading Lv");
|
||||
|
||||
class bar{};
|
||||
$lvFromStudiengang= array();
|
||||
$lvFromStudiengang= array();
|
||||
|
||||
foreach($lehrveranstaltung->lehrveranstaltungen as $lv)
|
||||
{
|
||||
$mitarbeiterlehreinheit = array(); // uids aller mitarbeiter der lehreinheit
|
||||
$gruppelehreinheit = array(); // ids aller grupper der lehreinheit
|
||||
$moodleArray = array();
|
||||
|
||||
|
||||
// hole alle Lehreinheiten von Lehrveranstaltung
|
||||
$lehreinheit = new lehreinheit();
|
||||
$lehreinheit = new lehreinheit();
|
||||
if(!$lehreinheit->load_lehreinheiten($lv->lehrveranstaltung_id, $semester))
|
||||
return new SoapFault("Server", $lehreinheit->errormsg);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
foreach($lehreinheit->lehreinheiten as $l)
|
||||
{
|
||||
{
|
||||
// alle mitarbeiter der lehreinheit
|
||||
$mitarbeiter = new lehreinheitmitarbeiter();
|
||||
$mitarbeiter->getLehreinheitmitarbeiter($l->lehreinheit_id);
|
||||
foreach($mitarbeiter->lehreinheitmitarbeiter as $m)
|
||||
$mitarbeiterlehreinheit[]=$m->mitarbeiter_uid;
|
||||
$mitarbeiterlehreinheit[]=$m->mitarbeiter_uid;
|
||||
|
||||
// alle gruppen der lehreinheit
|
||||
$gruppe = new lehreinheitgruppe();
|
||||
$gruppe = new lehreinheitgruppe();
|
||||
$gruppe->getLehreinheitgruppe($l->lehreinheit_id);
|
||||
foreach($gruppe->lehreinheitgruppe as $g)
|
||||
{
|
||||
$grp = new bar();
|
||||
$grp->studiengang_kz = $g->studiengang_kz;
|
||||
$grp->semester=$g->semester;
|
||||
$grp->verband=$g->verband;
|
||||
$grp->gruppe=$g->gruppe;
|
||||
$grp->grupppe_kurzbz=$g->gruppe_kurzbz;
|
||||
$gruppelehreinheit[] = $grp;
|
||||
$grp = new bar();
|
||||
$grp->studiengang_kz = $g->studiengang_kz;
|
||||
$grp->semester=$g->semester;
|
||||
$grp->verband=$g->verband;
|
||||
$grp->gruppe=$g->gruppe;
|
||||
$grp->grupppe_kurzbz=$g->gruppe_kurzbz;
|
||||
$gruppelehreinheit[] = $grp;
|
||||
}
|
||||
}
|
||||
// alle moodlekurse der lehrveranstaltung
|
||||
$moodleArray = $lv->getMoodleKurse($lv->lehrveranstaltung_id, $semester);
|
||||
|
||||
|
||||
// LV Object für Rückgabe
|
||||
$lehrveranstaltungen = new bar();
|
||||
$lehrveranstaltungen->bezeichnung = $lv->bezeichnung;
|
||||
$lehrveranstaltungen->lehreverzeichnis = $lv->lehreverzeichnis;
|
||||
$lehrveranstaltungen->moodle_id = $moodleArray;
|
||||
$lehrveranstaltungen = new bar();
|
||||
$lehrveranstaltungen->bezeichnung = $lv->bezeichnung;
|
||||
$lehrveranstaltungen->lehreverzeichnis = $lv->lehreverzeichnis;
|
||||
$lehrveranstaltungen->moodle_id = $moodleArray;
|
||||
$lehrveranstaltungen->lektoren = $mitarbeiterlehreinheit;
|
||||
$lehrveranstaltungen->gruppen = $gruppelehreinheit;
|
||||
|
||||
$lehrveranstaltungen->gruppen = $gruppelehreinheit;
|
||||
|
||||
$lehrveranstaltungen = $recht->clearResponse($user, 'getLehrveranstaltungFromStudiengang', $lehrveranstaltungen);
|
||||
|
||||
$lvFromStudiengang[] = $lehrveranstaltungen;
|
||||
|
||||
$lvFromStudiengang[] = $lehrveranstaltungen;
|
||||
}
|
||||
return ($lvFromStudiengang);
|
||||
return ($lvFromStudiengang);
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
header("Content-type: text/xml");
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
?>
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
|
||||
|
||||
<wsdl:message name="GetLehrveranstaltungFromIdRequest">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="lehrveranstaltung_id" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="semester" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetLehrveranstaltungFromIdResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetLehrveranstaltungFromId" type="tns:GetLehrveranstaltungFromId"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="GetLehrveranstaltungFromId">
|
||||
<s:element minOccurs="0" maxOccurs="1" name="bezeichnung" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="lehreverzeichnis" type="s:string"/>
|
||||
@@ -28,18 +28,18 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<s:element minOccurs="0" maxOccurs="1" name="lektoren" type="tns:ArrayOfLektorenItem"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="gruppen" type="tns:ArrayOfGruppenItem"/>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<wsdl:message name="GetLehrveranstaltungFromStudiengangRequest">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="studiengang" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="semester" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="ausbildungssemester" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetLehrveranstaltungFromStudiengangResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="unbounded" name="GetLehrveranstaltungFromStudiengang" type="tns:GetLehrveranstaltungFromStudiengang"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="GetLehrveranstaltungFromStudiengang">
|
||||
<s:element minOccurs="0" maxOccurs="1" name="bezeichnung" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="lehreverzeichnis" type="s:string"/>
|
||||
@@ -47,15 +47,15 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<s:element minOccurs="0" maxOccurs="1" name="lektoren" type="tns:ArrayOfLektorenItem"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="gruppen" type="tns:ArrayOfGruppenItem"/>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
|
||||
|
||||
<s:complexType name="GetAuthentifizierung">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="passwort" type="s:string"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfLektorenItem">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="LektorItem" nillable="true" type="tns:LektorItem"/>
|
||||
@@ -77,9 +77,9 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<s:element minOccurs="0" maxOccurs="1" name="semester" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="verband" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="gruppe" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="gruppe_kurzbz" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="gruppe_kurzbz" type="s:string"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
</s:complexType>
|
||||
<s:complexType name="ArrayOfMoodleItem">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="MoodleItem" nillable="true" type="tns:MoodleItem"/>
|
||||
@@ -101,7 +101,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output message="tns:GetLehrveranstaltungFromStudiengangResponse"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="getLehrveranstaltungFromId">
|
||||
@@ -121,12 +121,12 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output>
|
||||
<soap:body use="encoded" namespace="http://technikum-wien.at" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
|
||||
<wsdl:service name="Lehrveranstaltung">
|
||||
<wsdl:port name="ConfigWebservicePort" binding="tns:ConfigBinding">
|
||||
<soap:address location="<?php echo APP_ROOT."/soap/lehrveranstaltung.soap.php?".microtime();?>"/>
|
||||
<soap:address location="<?php echo APP_ROOT."/soap/lehrveranstaltung.soap.php?".microtime(true);?>"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
</wsdl:definitions>
|
||||
|
||||
+20
-20
@@ -1,42 +1,42 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
header("Content-type: text/xml");
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
?>
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
|
||||
|
||||
<wsdl:message name="GetLVPlanFromUserRequest">
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="uid" type="s:string"/>
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="von" type="s:string"/>
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="bis" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetLVPlanFromUserResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetLVPlanFromUser" type="tns:ArrayOfLVPlan"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="GetAuthentifizierung">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="passwort" type="s:string"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfLVPlan">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="lvplan" type="tns:LVPlanItem"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<s:complexType name="LVPlanItem">
|
||||
<s:sequence>
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="anmerkung" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="lehrform" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="titel" type="s:string"/>
|
||||
@@ -87,7 +87,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="studiensemester_kurzbz" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetLVPlanFromLVResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="LVPlan" type="tns:ArrayOfLVPlan"/>
|
||||
</wsdl:message>
|
||||
@@ -102,7 +102,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="bis" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetLVPlanFromStgResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="LVPlan" type="tns:ArrayOfLVPlan"/>
|
||||
</wsdl:message>
|
||||
@@ -113,11 +113,11 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="bis" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetLVPlanFromOrtResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="LVPlan" type="tns:ArrayOfLVPlan"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:portType name="ConfigPortType">
|
||||
<wsdl:operation name="getLVPlanFromUser">
|
||||
<wsdl:input message="tns:GetLVPlanFromUserRequest"/>
|
||||
@@ -136,7 +136,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output message="tns:GetLVPlanFromOrtResponse"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="getLVPlanFromUser">
|
||||
@@ -176,10 +176,10 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
|
||||
<wsdl:service name="LVPlan">
|
||||
<wsdl:port name="ConfigWebservicePort" binding="tns:ConfigBinding">
|
||||
<soap:address location="<?php echo APP_ROOT."soap/lvplan.soap.php?".microtime();?>"/>
|
||||
<soap:address location="<?php echo APP_ROOT."soap/lvplan.soap.php?".microtime(true);?>"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
|
||||
+21
-21
@@ -1,25 +1,25 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
header("Content-type: text/xml");
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
?>
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
|
||||
|
||||
<wsdl:message name="GetMitarbeiterFromUIDRequest">
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="uid" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetMitarbeiterFromUIDResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetMitarbeiterFromUID" type="tns:Mitarbeiter"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="Mitarbeiter">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="vorname" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="nachname" type="s:string"/>
|
||||
@@ -28,14 +28,14 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="uid" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="email" type="s:string"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="GetAuthentifizierung">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="passwort" type="s:string"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfMitarbeiter">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="MitarbeiterItems" type="tns:MitarbeiterItem"/>
|
||||
@@ -45,26 +45,26 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:message name="GetMitarbeiterRequest">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetMitarbeiterResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="Mitarbeiter" type="tns:ArrayOfMitarbeiter"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfMitarbeiter">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="MitarbeiterItem" type="tns:Mitarbeiter"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<wsdl:message name="SearchMitarbeiterRequest">
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="filter" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="SearchMitarbeiterResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="Mitarbeiter" type="tns:ArrayOfMitarbeiter"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:portType name="ConfigPortType">
|
||||
<wsdl:operation name="GetMitarbeiterFromUID">
|
||||
<wsdl:input message="tns:GetMitarbeiterFromUIDRequest"/>
|
||||
@@ -79,7 +79,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output message="tns:SearchMitarbeiterResponse"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="GetMitarbeiterFromUID">
|
||||
@@ -110,10 +110,10 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
|
||||
<wsdl:service name="Mitarbeiter">
|
||||
<wsdl:port name="ConfigWebservicePort" binding="tns:ConfigBinding">
|
||||
<soap:address location="<?php echo APP_ROOT."soap/mitarbeiter.soap.php?".microtime();?>"/>
|
||||
<soap:address location="<?php echo APP_ROOT."soap/mitarbeiter.soap.php?".microtime(true);?>"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
</wsdl:definitions>
|
||||
|
||||
+1
-3
@@ -32,7 +32,7 @@ require_once('../include/functions.inc.php');
|
||||
require_once('../include/benutzerberechtigung.class.php');
|
||||
require_once('../include/dms.class.php');
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/notiz.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/notiz.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("saveNotiz");
|
||||
$SOAPServer->addFunction("deleteNotiz");
|
||||
$SOAPServer->addFunction("deleteDokument");
|
||||
@@ -190,5 +190,3 @@ function setErledigt($notiz_id, $erledigt)
|
||||
return new SoapFault("Server", "Fehler beim Laden");
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
+25
-25
@@ -1,45 +1,45 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
header("Content-type: text/xml");
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
?>
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
|
||||
|
||||
<wsdl:message name="GetOrtFromKurzbzRequest">
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="ort_kurzbz" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetOrtFromKurzbzResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetLehrveranstaltungFromId" type="tns:GetOrtFromKurzbz"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetOrtFromKurzbz">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="bezeichnung" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="stockwerk" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="sitzplaetze" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="raumtyp" type="tns:ArrayOfRaumtyp"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="raumtyp" type="tns:ArrayOfRaumtyp"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="GetAuthentifizierung">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="passwort" type="s:string"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfRaumtyp">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="RaumtypItem" type="tns:ArrayOfRaumtypItem"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfRaumtypItem">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="raumtyp_kurzbz" type="s:string"/>
|
||||
@@ -52,17 +52,17 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="raumtyp_kurzbz" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetRaeumeResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="Raeume" type="tns:ArrayOfRaeume"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfRaeume">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="RaumtypItem" type="tns:Raum"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<wsdl:message name="Raum">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="ort_kurzbz" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="bezeichnung" type="s:string"/>
|
||||
@@ -71,9 +71,9 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="aktiv" type="s:boolean"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="lehre" type="s:boolean"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="reservieren" type="s:boolean"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="stockwerk" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="stockwerk" type="s:string"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="SearchRaumRequest">
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="datum" type="s:string"/>
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="von_zeit" type="s:string"/>
|
||||
@@ -83,11 +83,11 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="reservierung" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="SearchRaumResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="Raeume" type="tns:ArrayOfRaeume"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:portType name="ConfigPortType">
|
||||
<wsdl:operation name="getOrtFromKurzbz">
|
||||
<wsdl:input message="tns:GetOrtFromKurzbzRequest"/>
|
||||
@@ -102,7 +102,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output message="tns:SearchRaumResponse"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="getOrtFromKurzbz">
|
||||
@@ -133,10 +133,10 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
|
||||
<wsdl:service name="Ort">
|
||||
<wsdl:port name="ConfigWebservicePort" binding="tns:ConfigBinding">
|
||||
<soap:address location="<?php echo APP_ROOT."soap/ort.soap.php?".microtime();?>"/>
|
||||
<soap:address location="<?php echo APP_ROOT."soap/ort.soap.php?".microtime(true);?>"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
</wsdl:definitions>
|
||||
|
||||
+17
-17
@@ -1,41 +1,41 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
header("Content-type: text/xml");
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
?>
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
|
||||
|
||||
<wsdl:message name="GetPersonFromUIDRequest">
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="uid" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetPersonFromUIDResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetPersonFromUID" type="tns:Person"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="SearchPersonRequest">
|
||||
<wsdl:part minOccurs="1" maxOccurs="1" name="searchItems" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="SearchPersonResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="Person" type="tns:ArrayOfPerson"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="GetAuthentifizierung">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string"/>
|
||||
<s:element minOccurs="0" maxOccurs="1" name="passwort" type="s:string"/>
|
||||
</s:sequence>
|
||||
</s:complexType>
|
||||
|
||||
|
||||
<wsdl:portType name="ConfigPortType">
|
||||
<wsdl:operation name="GetPersonFromUID">
|
||||
<wsdl:input message="tns:GetPersonFromUIDRequest"/>
|
||||
@@ -46,7 +46,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output message="tns:SearchPersonResponse"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="GetPersonFromUID">
|
||||
@@ -68,10 +68,10 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
|
||||
<wsdl:service name="Person">
|
||||
<wsdl:port name="ConfigWebservicePort" binding="tns:ConfigBinding">
|
||||
<soap:address location="<?php echo APP_ROOT."soap/person.soap.php?".microtime();?>"/>
|
||||
<soap:address location="<?php echo APP_ROOT."soap/person.soap.php?".microtime(true);?>"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
</wsdl:definitions>
|
||||
|
||||
@@ -32,7 +32,7 @@ require_once('../include/dms.class.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/benutzerberechtigung.class.php');
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekt.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/projekt.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("saveProjekt");
|
||||
$SOAPServer->addFunction("saveProjektdokumentZuordnung");
|
||||
$SOAPServer->handle();
|
||||
@@ -111,5 +111,3 @@ function saveProjektdokumentZuordnung($username, $passwort, $projekt_kurzbz, $pr
|
||||
return new SoapFault("Server", $dms->errormsg);
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ require_once('../include/datum.class.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/benutzerberechtigung.class.php');
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/projektphase.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/projektphase.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("saveProjektphase");
|
||||
$SOAPServer->addFunction("deleteProjektphase");
|
||||
$SOAPServer->handle();
|
||||
@@ -117,4 +117,4 @@ function deleteProjektphase($username, $passwort, $projektphase_id)
|
||||
else
|
||||
return new SoapFault("Server", $phase->errormsg);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -31,7 +31,7 @@ require_once('../include/datum.class.php');
|
||||
require_once('../include/benutzerberechtigung.class.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("saveRessource");
|
||||
$SOAPServer->handle();
|
||||
|
||||
@@ -82,5 +82,3 @@ function saveRessource($username, $passwort, $ressource)
|
||||
return new SoapFault("Server", $ressourceNew->errormsg);
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ require_once('../include/datum.class.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/benutzerberechtigung.class.php');
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource_projekt.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/ressource_projekt.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("saveProjektRessource");
|
||||
$SOAPServer->addFunction("deleteProjektRessource");
|
||||
$SOAPServer->handle();
|
||||
@@ -123,5 +123,3 @@ function deleteProjektRessource($username, $passwort, $projektRessource)
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -17,144 +17,144 @@
|
||||
*
|
||||
* Authors: Karl Burkhart <burkhart@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/student.class.php');
|
||||
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/student.class.php');
|
||||
require_once('../include/benutzer.class.php');
|
||||
require_once('../include/adresse.class.php');
|
||||
require_once('../include/person.class.php');
|
||||
require_once('../include/webservicelog.class.php');
|
||||
require_once('../include/adresse.class.php');
|
||||
require_once('../include/person.class.php');
|
||||
require_once('../include/webservicelog.class.php');
|
||||
|
||||
ini_set("soap.wsdl_cache_enabled", "0");
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime());
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("verifyData");
|
||||
$SOAPServer->handle();
|
||||
|
||||
$fehler = '';
|
||||
$fehler = '';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Nimmt Anfrage entgegen und überprüft ob Student auch wirklich Student ist (anhand Matrikelnummer)
|
||||
*
|
||||
* Nimmt Anfrage entgegen und überprüft ob Student auch wirklich Student ist (anhand Matrikelnummer)
|
||||
* @param $parameters
|
||||
*/
|
||||
function verifyData($parameters)
|
||||
{
|
||||
global $fehler;
|
||||
{
|
||||
global $fehler;
|
||||
class foo{};
|
||||
|
||||
$obj = new foo();
|
||||
|
||||
|
||||
$obj = new foo();
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
|
||||
// Eintrag in der LogTabelle anlegen
|
||||
$log = new webservicelog();
|
||||
$log->request_data = file_get_contents('php://input');
|
||||
$log->webservicetyp_kurzbz = 'wienerlinien';
|
||||
$log->request_id = $parameters->token;
|
||||
$log->beschreibung = "Semesterticketanfrage";
|
||||
$log = new webservicelog();
|
||||
$log->request_data = file_get_contents('php://input');
|
||||
$log->webservicetyp_kurzbz = 'wienerlinien';
|
||||
$log->request_id = $parameters->token;
|
||||
$log->beschreibung = "Semesterticketanfrage";
|
||||
$log->save(true);
|
||||
|
||||
if(!validateRequest($parameters))
|
||||
{
|
||||
$obj->result = 'false';
|
||||
$obj->fehler = $fehler;
|
||||
$obj->fehler = $fehler;
|
||||
}
|
||||
else
|
||||
{
|
||||
$student = new student();
|
||||
$student_uid = $student->getUidFromMatrikelnummer($parameters->Matrikelnummer);
|
||||
|
||||
$student = new student();
|
||||
$student_uid = $student->getUidFromMatrikelnummer($parameters->Matrikelnummer);
|
||||
|
||||
// überprüfe ob Benutzer aktiv ist
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($student_uid);
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($student_uid);
|
||||
if(!$benutzer->bnaktiv)
|
||||
{
|
||||
$obj->result = 'false';
|
||||
$obj->fehler ='1';
|
||||
return $obj;
|
||||
}
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
||||
// überprüfe vorname
|
||||
if($benutzer->vorname != $parameters->Vorname)
|
||||
{
|
||||
// es wurde keine übereinstimmung gefunden
|
||||
$obj->result = 'false';
|
||||
$obj->fehler = '6';
|
||||
return $obj;
|
||||
$obj->fehler = '6';
|
||||
return $obj;
|
||||
}
|
||||
|
||||
|
||||
if($benutzer->nachname != $parameters->Name)
|
||||
{
|
||||
// es wurde keine übereinstimmung gefunden
|
||||
$obj->result = 'false';
|
||||
$obj->fehler = '7';
|
||||
return $obj;
|
||||
$obj->fehler = '7';
|
||||
return $obj;
|
||||
}
|
||||
|
||||
|
||||
// Überprüfe PLZ
|
||||
$adresse = new adresse();
|
||||
$adresse->load_pers($benutzer->person_id);
|
||||
|
||||
$foundAdr = false;
|
||||
$adresse = new adresse();
|
||||
$adresse->load_pers($benutzer->person_id);
|
||||
|
||||
$foundAdr = false;
|
||||
foreach($adresse->result as $adr)
|
||||
{
|
||||
if($adr->plz == $parameters->Postleitzahl && $adr->typ == 'h')
|
||||
$foundAdr = true;
|
||||
$foundAdr = true;
|
||||
}
|
||||
if($foundAdr == false)
|
||||
{
|
||||
// es wurde keine übereinstimmung gefunden
|
||||
$obj->result = 'false';
|
||||
$obj->fehler = '5';
|
||||
return $obj;
|
||||
$obj->fehler = '5';
|
||||
return $obj;
|
||||
}
|
||||
|
||||
|
||||
// Überprüfe Geburtsdatum
|
||||
$person = new person();
|
||||
$person->load($benutzer->person_id);
|
||||
$person = new person();
|
||||
$person->load($benutzer->person_id);
|
||||
if($person->gebdatum != $parameters->Geburtsdatum)
|
||||
{
|
||||
$obj->result = 'false';
|
||||
$obj->result = 'false';
|
||||
$obj->fehler = '4';
|
||||
return $obj;
|
||||
}
|
||||
|
||||
return $obj;
|
||||
}
|
||||
|
||||
// hole prestudentID
|
||||
$student->load($student_uid);
|
||||
$student->load($student_uid);
|
||||
if($student->prestudent_id == '')
|
||||
{
|
||||
// es wurde kein student gefunden
|
||||
$obj->result = 'false';
|
||||
$obj->fehler = '3';
|
||||
return $obj;
|
||||
$obj->fehler = '3';
|
||||
return $obj;
|
||||
}
|
||||
|
||||
|
||||
// Übergabe von studiensemester -> z.b 11W, 12S auf WS2011, SS2012
|
||||
$year = mb_substr($parameters->Semesterkuerzel, 0,2);
|
||||
$semester = mb_substr($parameters->Semesterkuerzel,2,1);
|
||||
$year = mb_substr($parameters->Semesterkuerzel, 0,2);
|
||||
$semester = mb_substr($parameters->Semesterkuerzel,2,1);
|
||||
if($semester == 'S')
|
||||
{
|
||||
$semester = 'SS';
|
||||
$semester = 'SS';
|
||||
}
|
||||
else if($semester == 'W')
|
||||
{
|
||||
$semester= 'WS';
|
||||
$semester= 'WS';
|
||||
}
|
||||
else
|
||||
{
|
||||
// ungültiges Semester
|
||||
$obj->result = 'false';
|
||||
$obj->fehler = '8';
|
||||
return $obj;
|
||||
$obj->fehler = '8';
|
||||
return $obj;
|
||||
}
|
||||
$studiensemester = $semester.'20'.$year;
|
||||
|
||||
$studiensemester = $semester.'20'.$year;
|
||||
|
||||
// letzten Status holen
|
||||
$qry = "Select public.get_rolle_prestudent ('".$student->prestudent_id."', '".$studiensemester."')";
|
||||
|
||||
$qry = "Select public.get_rolle_prestudent ('".$student->prestudent_id."', '".$studiensemester."')";
|
||||
|
||||
if($db->db_query($qry))
|
||||
{
|
||||
if($row = $db->db_fetch_object())
|
||||
@@ -165,20 +165,20 @@ function verifyData($parameters)
|
||||
// Status Student und Diplomand gültig
|
||||
if($status == 'Student' || $status == 'Diplomand')
|
||||
{
|
||||
$obj->result = 'true';
|
||||
$obj->result = 'true';
|
||||
$obj->fehler = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$obj->result = 'false';
|
||||
$obj->fehler ='1';
|
||||
}
|
||||
}
|
||||
}
|
||||
return $obj;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Prüft die übergebenen Parameter auf Richtigkeit
|
||||
* @param $parameter
|
||||
*/
|
||||
@@ -196,34 +196,32 @@ function validateRequest($parameter)
|
||||
* 8: Fehler Semester
|
||||
* 9: Fehler Matrikelnummer
|
||||
*/
|
||||
|
||||
global $fehler;
|
||||
|
||||
|
||||
global $fehler;
|
||||
|
||||
if(mb_strlen($parameter->Postleitzahl) > 10)
|
||||
{
|
||||
$fehler = '5';
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
if(mb_strlen($parameter->Vorname) > 255)
|
||||
{
|
||||
$fehler = '6';
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
if(mb_strlen($parameter->Name) > 255)
|
||||
{
|
||||
$fehler = '7';
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(mb_strlen($parameter->Matrikelnummer) >15 || $parameter->Matrikelnummer == '')
|
||||
{
|
||||
$fehler = '9';
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
header("Content-type: text/plain");
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
?>
|
||||
<wsdl:definitions
|
||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
<wsdl:definitions
|
||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
|
||||
<wsdl:types>
|
||||
@@ -66,7 +66,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
|
||||
<wsdl:service name="SemesterTicketService">
|
||||
<wsdl:port name="SemesterTicketServicePort" binding="SemesterTicketServicePortSoapBinding">
|
||||
<wsdlsoap:address location="<?php echo APP_ROOT."soap/semesterticket.soap.php?".microtime();?>" />
|
||||
<wsdlsoap:address location="<?php echo APP_ROOT."soap/semesterticket.soap.php?".microtime(true);?>" />
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
</wsdl:definitions>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
|
||||
$getuid = get_uid();
|
||||
$getuid = get_uid();
|
||||
if(!check_lektor($getuid))
|
||||
die('Sie haben keine Berechtigung für diese Seite');
|
||||
die('Sie haben keine Berechtigung für diese Seite');
|
||||
|
||||
$db = new basis_db();
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<script type="text/javascript" src="../include/js/jqSOAPClient.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jqSOAPClient.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<title>Semesterticket-Client</title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -61,16 +61,16 @@ $db = new basis_db();
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if(isset($_REQUEST['submit']))
|
||||
{
|
||||
$client = new SoapClient(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime());
|
||||
|
||||
$client = new SoapClient(APP_ROOT."/soap/semesterticket.wsdl.php?".microtime(true));
|
||||
|
||||
try
|
||||
{
|
||||
class foo {};
|
||||
$obj = new foo();
|
||||
class foo {};
|
||||
$obj = new foo();
|
||||
$obj->Token = $_REQUEST['token'];
|
||||
$obj->Matrikelnummer = $_REQUEST['matrikelnummer'];
|
||||
$obj->Name = $_REQUEST['name'];
|
||||
@@ -78,16 +78,16 @@ if(isset($_REQUEST['submit']))
|
||||
$obj->Geburtsdatum = $_REQUEST['geburtsdatum'];
|
||||
$obj->Postleitzahl = $_REQUEST['postleitzahl'];
|
||||
$obj->Semesterkuerzel = $_REQUEST['semesterkuerzel'];
|
||||
|
||||
|
||||
$response = $client->verifyData($obj);
|
||||
//$response = $client->verifyData(array('token'=>$_REQUEST['token'], 'matrikelnummer'=>$_REQUEST['matrikelnummer'], 'name'=>$_REQUEST['name'], 'vorname'=>$_REQUEST['vorname'], 'geburtsdatum'=>$_REQUEST['geburtsdatum'], 'postleitzahl'=>$_REQUEST['postleitzahl'], 'semesterkuerzel'=>$_REQUEST['semesterkuerzel']));
|
||||
var_dump($response);
|
||||
}
|
||||
catch(SoapFault $fault)
|
||||
catch(SoapFault $fault)
|
||||
{
|
||||
echo "SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+103
-103
@@ -17,47 +17,47 @@
|
||||
*
|
||||
* Authors: Karl Burkhart <burkhart@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../config/global.config.inc.php');
|
||||
require_once('../config/global.config.inc.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
require_once('../include/prestudent.class.php');
|
||||
require_once('../include/student.class.php');
|
||||
require_once('../include/student.class.php');
|
||||
require_once('../include/konto.class.php');
|
||||
require_once('../include/datum.class.php');
|
||||
require_once('../include/benutzer.class.php');
|
||||
require_once('../include/webservicelog.class.php');
|
||||
require_once('../include/webservicelog.class.php');
|
||||
require_once('../include/mail.class.php');
|
||||
require_once('../include/abschlusspruefung.class.php');
|
||||
require_once('../include/note.class.php');
|
||||
require_once('stip.class.php');
|
||||
require_once('stip.class.php');
|
||||
|
||||
ini_set("soap.wsdl_cache_enabled", "0");
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/stip.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/stip.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("GetStipendienbezieherStip");
|
||||
$SOAPServer->addFunction("SendStipendienbezieherStipError");
|
||||
$SOAPServer->handle();
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Funktion nimmt Anfragen entgegen und bearbeitet diese
|
||||
* @param $parameters -> XML SOAP File
|
||||
*/
|
||||
function GetStipendienbezieherStip($parameters)
|
||||
{
|
||||
$anfrageDaten = $parameters->anfrageDaten;
|
||||
$Stipendiumsbezieher = $anfrageDaten->Stipendiumsbezieher;
|
||||
|
||||
$ErhalterKz = $anfrageDaten->ErhKz;
|
||||
$AnfrageDatenID = $anfrageDaten->AnfragedatenID;
|
||||
|
||||
{
|
||||
$anfrageDaten = $parameters->anfrageDaten;
|
||||
$Stipendiumsbezieher = $anfrageDaten->Stipendiumsbezieher;
|
||||
|
||||
$ErhalterKz = $anfrageDaten->ErhKz;
|
||||
$AnfrageDatenID = $anfrageDaten->AnfragedatenID;
|
||||
|
||||
// Eintrag in der LogTabelle anlegen
|
||||
$log = new webservicelog();
|
||||
$log->request_data = file_get_contents('php://input');
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Anfrage von Stip";
|
||||
$log = new webservicelog();
|
||||
$log->request_data = file_get_contents('php://input');
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Anfrage von Stip";
|
||||
$log->save(true);
|
||||
|
||||
$username = $parameters->userName;
|
||||
@@ -66,17 +66,17 @@ function GetStipendienbezieherStip($parameters)
|
||||
if(!($username==STIP_USER_NAME && $passwort==STIP_USER_PASSWORD))
|
||||
{
|
||||
// Eintrag in der LogTabelle anlegen
|
||||
$log = new webservicelog();
|
||||
$log = new webservicelog();
|
||||
$log->request_data = 'SOAP FAULT - Invalid Credentials';
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Antwort an Stip";
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Antwort an Stip";
|
||||
$log->save(true);
|
||||
|
||||
return new SoapFault("Server", 'Invalid Credentials');
|
||||
return new SoapFault("Server", 'Invalid Credentials');
|
||||
}
|
||||
|
||||
$StipBezieherAntwort = array();
|
||||
$StipBezieherAntwort = array();
|
||||
|
||||
$i=0;
|
||||
if(!is_array($Stipendiumsbezieher->StipendiumsbezieherAnfrage))
|
||||
@@ -85,33 +85,33 @@ function GetStipendienbezieherStip($parameters)
|
||||
// läuft alle Anfragedaten durch
|
||||
foreach($Stipendiumsbezieher->StipendiumsbezieherAnfrage as $BezieherStip)
|
||||
{
|
||||
$prestudentID;
|
||||
$studentUID;
|
||||
$studSemester;
|
||||
$prestudentID;
|
||||
$studentUID;
|
||||
$studSemester;
|
||||
$StipBezieher = new stip();
|
||||
$datum_obj = new datum();
|
||||
$datum_obj = new datum();
|
||||
|
||||
if($StipBezieher->validateStipDaten($anfrageDaten->ErhKz, $anfrageDaten->AnfragedatenID, $BezieherStip))
|
||||
{
|
||||
$StipBezieher->Semester = $BezieherStip->Semester;
|
||||
$StipBezieher->Studienjahr = $BezieherStip->Studienjahr;
|
||||
$StipBezieher->PersKz = $BezieherStip->PersKz;
|
||||
$StipBezieher->SVNR = $BezieherStip->SVNR;
|
||||
$StipBezieher->Familienname = $BezieherStip->Familienname;
|
||||
$StipBezieher->Vorname = $BezieherStip->Vorname;
|
||||
$StipBezieher->Typ = $BezieherStip->Typ;
|
||||
|
||||
$StipBezieher->Semester = $BezieherStip->Semester;
|
||||
$StipBezieher->Studienjahr = $BezieherStip->Studienjahr;
|
||||
$StipBezieher->PersKz = $BezieherStip->PersKz;
|
||||
$StipBezieher->SVNR = $BezieherStip->SVNR;
|
||||
$StipBezieher->Familienname = $BezieherStip->Familienname;
|
||||
$StipBezieher->Vorname = $BezieherStip->Vorname;
|
||||
$StipBezieher->Typ = $BezieherStip->Typ;
|
||||
|
||||
// Studiensemester_kurzbz auslesen
|
||||
if($BezieherStip->Semester == "WS" || $BezieherStip->Semester == "ws")
|
||||
{
|
||||
$year = mb_substr($BezieherStip->Studienjahr, 0,4);
|
||||
$studSemester = "WS".$year;
|
||||
$year = mb_substr($BezieherStip->Studienjahr, 0,4);
|
||||
$studSemester = "WS".$year;
|
||||
}elseif ($BezieherStip->Semester == "SS" || $BezieherStip->Semester == "ss")
|
||||
{
|
||||
$year = mb_substr($BezieherStip->Studienjahr, 0,2).mb_substr($BezieherStip->Studienjahr, 5,7);
|
||||
$studSemester = "SS".$year;
|
||||
$year = mb_substr($BezieherStip->Studienjahr, 0,2).mb_substr($BezieherStip->Studienjahr, 5,7);
|
||||
$studSemester = "SS".$year;
|
||||
}
|
||||
|
||||
|
||||
if(!$prestudentID = $StipBezieher->searchPersonKz($BezieherStip->PersKz))
|
||||
if(!$prestudentID = $StipBezieher->searchSvnr($BezieherStip->SVNR))
|
||||
$prestudentID = $StipBezieher->searchVorNachname($BezieherStip->Vorname, $BezieherStip->Familienname);
|
||||
@@ -119,29 +119,29 @@ function GetStipendienbezieherStip($parameters)
|
||||
// Student wurde gefunden
|
||||
if($StipBezieher->AntwortStatusCode == 1)
|
||||
{
|
||||
$prestudent = new prestudent();
|
||||
$prestudent->load($prestudentID);
|
||||
$prestudent->getLastStatus($prestudentID);
|
||||
$prestudent = new prestudent();
|
||||
$prestudent->load($prestudentID);
|
||||
$prestudent->getLastStatus($prestudentID);
|
||||
$prestudentStatus = new prestudent();
|
||||
|
||||
$student = new student();
|
||||
$studentUID = $student->getUID($prestudentID);
|
||||
$student = new student();
|
||||
$studentUID = $student->getUID($prestudentID);
|
||||
|
||||
$abschlusspruefung = new abschlusspruefung();
|
||||
$abschlusspruefung->getLastAbschlusspruefung($studentUID);
|
||||
|
||||
$student->load($studentUID);
|
||||
$studiengang_kz = $student->studiengang_kz;
|
||||
|
||||
$konto = new konto();
|
||||
|
||||
$student->load($studentUID);
|
||||
$studiengang_kz = $student->studiengang_kz;
|
||||
|
||||
$konto = new konto();
|
||||
$studGebuehr = $konto->getStudiengebuehrGesamt($studentUID, $studSemester, $studiengang_kz);
|
||||
// , als Dezimaltrennzeichen
|
||||
$studGebuehr = str_replace('.', ',', $studGebuehr);
|
||||
|
||||
$studGebuehr = str_replace('.', ',', $studGebuehr);
|
||||
|
||||
// wenn nicht bezahlt
|
||||
if($studGebuehr == "")
|
||||
$studGebuehr = "0,00";
|
||||
|
||||
|
||||
if(!$prestudentStatus->getLastStatus($prestudentID,$studSemester))
|
||||
$StipBezieher->Inskribiert = 'n';
|
||||
else
|
||||
@@ -150,61 +150,61 @@ function GetStipendienbezieherStip($parameters)
|
||||
if($prestudentStatus->status_kurzbz == 'Interessent')
|
||||
$StipBezieher->Inskribiert = 'n';
|
||||
else
|
||||
$StipBezieher->Inskribiert = 'j';
|
||||
$StipBezieher->Inskribiert = 'j';
|
||||
}
|
||||
|
||||
|
||||
if($BezieherStip->Typ == "as" || $BezieherStip->Typ == "AS")
|
||||
{
|
||||
$StipBezieher->getOrgFormTeilCode($studentUID, $studSemester, $prestudentID);
|
||||
$StipBezieher->Studienbeitrag = $studGebuehr;
|
||||
|
||||
$StipBezieher->Studienbeitrag = $studGebuehr;
|
||||
|
||||
// Wenn letzter Status von Semester Interessent ist -> Semester = null
|
||||
if($prestudentStatus->status_kurzbz != 'Interessent')
|
||||
$StipBezieher->Ausbildungssemester = $StipBezieher->getSemester($prestudentID, $studSemester);
|
||||
$StipBezieher->Ausbildungssemester = $StipBezieher->getSemester($prestudentID, $studSemester);
|
||||
else
|
||||
$StipBezieher->Ausbildungssemester = null;
|
||||
|
||||
$StipBezieher->Ausbildungssemester = null;
|
||||
|
||||
$StipBezieher->StudStatusCode = $StipBezieher->getStudStatusCode($prestudentID, $studSemester);
|
||||
|
||||
|
||||
// Ausgeschieden ohne Abschluss
|
||||
if($StipBezieher->StudStatusCode==4)
|
||||
$StipBezieher->BeendigungsDatum = $datum_obj->formatDatum($prestudent->datum,'dmY');
|
||||
else if($StipBezieher->StudStatusCode==3) // Absolvent -> letzte Prüfung nehmen
|
||||
$StipBezieher->BeendigungsDatum = $datum_obj->formatDatum($abschlusspruefung->datum,'dmY');
|
||||
else
|
||||
$StipBezieher->BeendigungsDatum = null;
|
||||
|
||||
$StipBezieher->BeendigungsDatum = null;
|
||||
|
||||
$StipBezieher->Erfolg = $StipBezieher->getErfolg($prestudentID, $studSemester);
|
||||
}
|
||||
elseif($BezieherStip->Typ =="ag" || $BezieherStip->Typ == "AG")
|
||||
{
|
||||
$StipBezieher->Ausbildungssemester = null;
|
||||
$StipBezieher->StudStatusCode = null;
|
||||
$StipBezieher->BeendigungsDatum = null;
|
||||
$StipBezieher->Studienbeitrag = null;
|
||||
$StipBezieher->OrgFormTeilCode = null;
|
||||
$StipBezieher->StudStatusCode = null;
|
||||
$StipBezieher->BeendigungsDatum = null;
|
||||
$StipBezieher->Studienbeitrag = null;
|
||||
$StipBezieher->OrgFormTeilCode = null;
|
||||
}
|
||||
|
||||
$StipBezieherAntwort[$i] = $StipBezieher;
|
||||
|
||||
$StipBezieherAntwort[$i] = $StipBezieher;
|
||||
$i++;
|
||||
|
||||
}
|
||||
else if($StipBezieher->AntwortStatusCode == 2)
|
||||
{
|
||||
// Student wurde nicht gefunden
|
||||
$StipBezieher->PersKz_Antwort = null;
|
||||
$StipBezieher->SVNR_Antwort = null;
|
||||
$StipBezieher->Familienname_Antwort = null;
|
||||
$StipBezieher->Vorname_Antwort = null;
|
||||
$StipBezieher->Ausbildungssemester = null;
|
||||
$StipBezieher->StudStatusCode = null;
|
||||
$StipBezieher->BeendigungsDatum = null;
|
||||
$StipBezieher->VonNachPersKz = null;
|
||||
$StipBezieher->Studienbeitrag = null;
|
||||
$StipBezieher->Inskribiert = null;
|
||||
$StipBezieher->Erfolg = null;
|
||||
$StipBezieher->OrgFormTeilCode = null;
|
||||
$StipBezieherAntwort[$i] = $StipBezieher;
|
||||
$StipBezieher->PersKz_Antwort = null;
|
||||
$StipBezieher->SVNR_Antwort = null;
|
||||
$StipBezieher->Familienname_Antwort = null;
|
||||
$StipBezieher->Vorname_Antwort = null;
|
||||
$StipBezieher->Ausbildungssemester = null;
|
||||
$StipBezieher->StudStatusCode = null;
|
||||
$StipBezieher->BeendigungsDatum = null;
|
||||
$StipBezieher->VonNachPersKz = null;
|
||||
$StipBezieher->Studienbeitrag = null;
|
||||
$StipBezieher->Inskribiert = null;
|
||||
$StipBezieher->Erfolg = null;
|
||||
$StipBezieher->OrgFormTeilCode = null;
|
||||
$StipBezieherAntwort[$i] = $StipBezieher;
|
||||
$i++;
|
||||
}
|
||||
|
||||
@@ -212,46 +212,46 @@ function GetStipendienbezieherStip($parameters)
|
||||
else
|
||||
{
|
||||
// Eintrag in der LogTabelle anlegen
|
||||
$log = new webservicelog();
|
||||
$log = new webservicelog();
|
||||
$log->request_data = 'SOAP FAULT - ValidationError: '.$StipBezieher->errormsg;
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Antwort an Stip";
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Antwort an Stip";
|
||||
$log->save(true);
|
||||
|
||||
return new SoapFault("Server", $StipBezieher->errormsg);
|
||||
return new SoapFault("Server", $StipBezieher->errormsg);
|
||||
}
|
||||
}
|
||||
|
||||
$ret = array("GetStipendienbezieherStipResult" =>array("ErhKz"=>$ErhalterKz,"AnfragedatenID"=>$AnfrageDatenID, "Stipendiumsbezieher"=>$StipBezieherAntwort));
|
||||
|
||||
// Eintrag in der LogTabelle anlegen
|
||||
$log = new webservicelog();
|
||||
$log = new webservicelog();
|
||||
$log->request_data = print_r($ret,true);
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Antwort an Stip";
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Antwort an Stip";
|
||||
$log->save(true);
|
||||
|
||||
return $ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Funktion nimmt Fehler entgegen und sendet sie an Admin
|
||||
* @param $parameters -> XML SOAP File
|
||||
*/
|
||||
function SendStipendienbezieherStipError($parameters)
|
||||
{
|
||||
$xmlData = file_get_contents('php://input');
|
||||
|
||||
$log = new webservicelog();
|
||||
$log->request_data = file_get_contents('php://input');
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
//$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Stip Error";
|
||||
$xmlData = file_get_contents('php://input');
|
||||
|
||||
$log = new webservicelog();
|
||||
$log->request_data = file_get_contents('php://input');
|
||||
$log->webservicetyp_kurzbz = 'stip';
|
||||
//$log->request_id = $AnfrageDatenID;
|
||||
$log->beschreibung = "Stip Error";
|
||||
$log->save(true);
|
||||
|
||||
|
||||
//1=successful; 2=incomplete xml document; 3=incomplete processing; 4=system-error
|
||||
if($parameters->errorReport->ErrorStatusCode!=1)
|
||||
{
|
||||
|
||||
+17
-17
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/* Copyright (C) 2012 FH Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -20,7 +20,7 @@
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
require_once('stip.class.php');
|
||||
require_once('stip.class.php');
|
||||
$getuid=get_uid();
|
||||
if(!check_lektor($getuid))
|
||||
die('Sie haben keine Berechtigung für diese Seite.');
|
||||
@@ -29,7 +29,7 @@ $db = new basis_db();
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<title>STIP-Client</title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -93,37 +93,37 @@ $db = new basis_db();
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if(isset($_REQUEST['submit']))
|
||||
{
|
||||
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime());
|
||||
|
||||
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime(true));
|
||||
|
||||
$username = $_REQUEST['username'];
|
||||
$passwort = $_REQUEST['password'];
|
||||
|
||||
|
||||
$ErhKz = $_REQUEST['ErhKz'];
|
||||
$AnfragedatenID = $_REQUEST['AnfragedatenID'];
|
||||
|
||||
$bezieher = new stip();
|
||||
$AnfragedatenID = $_REQUEST['AnfragedatenID'];
|
||||
|
||||
$bezieher = new stip();
|
||||
$bezieher->Semester = $_REQUEST['Semester'];
|
||||
$bezieher->Studienjahr = $_REQUEST['Studienjahr'];
|
||||
$bezieher->PersKz= $_REQUEST['PersKz'];
|
||||
$bezieher->SVNR= $_REQUEST['Svnr'];
|
||||
$bezieher->SVNR= $_REQUEST['Svnr'];
|
||||
$bezieher->Familienname= $_REQUEST['Familienname'];
|
||||
$bezieher->Vorname= $_REQUEST['Vorname'];
|
||||
$bezieher->Typ = $_REQUEST['Typ'];
|
||||
$bezieher1 = new stip();
|
||||
$bezieher1 = new stip();
|
||||
$bezieher1->Semester = $_REQUEST['Semester'];
|
||||
$bezieher1->Studienjahr = $_REQUEST['Studienjahr'];
|
||||
$bezieher1->PersKz= $_REQUEST['PersKz'];
|
||||
$bezieher1->SVNR= $_REQUEST['Svnr'];
|
||||
$bezieher1->SVNR= $_REQUEST['Svnr'];
|
||||
$bezieher1->Familienname= $_REQUEST['Familienname'];
|
||||
$bezieher1->Vorname= $_REQUEST['Vorname'];
|
||||
$bezieher1->Typ = $_REQUEST['Typ'];
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
{
|
||||
$response_stip = $client->GetStipendienbezieherStip(array("userName"=>$username,"passWord"=>$passwort,"anfrageDaten"=>array("ErhKz"=>$ErhKz, "AnfragedatenID"=>$AnfragedatenID,"Stipendiumsbezieher"=>array($bezieher))));
|
||||
echo '<h2>Single Request Result</h2>';
|
||||
echo '<pre>'.print_r($response_stip->GetStipendienbezieherStipResult,true).'</pre>';
|
||||
@@ -131,11 +131,11 @@ if(isset($_REQUEST['submit']))
|
||||
$response_stip = $client->GetStipendienbezieherStip(array("userName"=>$username,"passWord"=>$passwort,"anfrageDaten"=>array("ErhKz"=>$ErhKz, "AnfragedatenID"=>$AnfragedatenID,"Stipendiumsbezieher"=>array($bezieher, $bezieher1))));
|
||||
echo '<pre>'.print_r($response_stip->GetStipendienbezieherStipResult, true).'</pre>';
|
||||
}
|
||||
catch(SoapFault $fault)
|
||||
catch(SoapFault $fault)
|
||||
{
|
||||
echo "SOAP Fault: (faultcode: ".$fault->faultcode.", faultstring: ".$fault->faultstring.")", E_USER_ERROR;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+13
-13
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/* Copyright (C) 2015 fhcomplete.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@@ -23,7 +23,7 @@
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
require_once('stip.class.php');
|
||||
require_once('stip.class.php');
|
||||
$getuid=get_uid();
|
||||
if(!check_lektor($getuid))
|
||||
die('Sie haben keine Berechtigung für diese Seite.');
|
||||
@@ -32,7 +32,7 @@ $db = new basis_db();
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<title>STIP-Client</title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -81,7 +81,7 @@ $db = new basis_db();
|
||||
<td align="right">JobID:</td>
|
||||
<td><input name="jobid" type="text" size="30" maxlength="30" value="<?php echo $db->convert_html_chars((isset($_REQUEST['jobid']) ? $_REQUEST['jobid'] : ""));?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td align="right"></td>
|
||||
<td>
|
||||
<input type="submit" value=" Absenden " name="submit">
|
||||
@@ -91,31 +91,31 @@ $db = new basis_db();
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if(isset($_REQUEST['submit']))
|
||||
{
|
||||
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime());
|
||||
|
||||
$client = new SoapClient(APP_ROOT."/soap/stip.wsdl.php?".microtime(true));
|
||||
|
||||
$username = $_REQUEST['username'];
|
||||
$passwort = $_REQUEST['password'];
|
||||
|
||||
|
||||
$ErhKz = $_REQUEST['ErhKz'];
|
||||
$statecode = $_REQUEST['statecode'];
|
||||
$jobid = $_REQUEST['jobid'];
|
||||
$jobid = $_REQUEST['jobid'];
|
||||
$statemessage = $_REQUEST['statemessage'];
|
||||
$errorstatuscode = $_REQUEST['errorstatuscode'];
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
{
|
||||
$response_stip = $client->SendStipendienbezieherStipError(array("userName"=>$username,"passWord"=>$passwort,"errorReport"=>array("ErhKz"=>$ErhKz, "StateCode"=>$statecode,"StateMessage"=>$statemessage,"ErrorStatusCode"=>$errorstatuscode,"JobID"=>$jobid)));
|
||||
echo '<h2>Error Request Result sent</h2>';
|
||||
}
|
||||
catch(SoapFault $fault)
|
||||
catch(SoapFault $fault)
|
||||
{
|
||||
echo "SOAP Fault: (faultcode: ".$fault->faultcode.", faultstring: ".$fault->faultstring.")", E_USER_ERROR;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+68
-68
@@ -26,7 +26,7 @@ require_once('../include/webservicerecht.class.php');
|
||||
require_once('../include/studiensemester.class.php');
|
||||
ini_set("soap.wsdl_cache_enabled", "0");
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/student.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."/soap/student.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("getStudentFromUid");
|
||||
$SOAPServer->addFunction("getStudentFromMatrikelnummer");
|
||||
$SOAPServer->addFunction("getStudentFromStudiengang");
|
||||
@@ -39,43 +39,43 @@ $SOAPServer->handle();
|
||||
*/
|
||||
function getStudentFromUid($student_uid, $authentifizierung)
|
||||
{
|
||||
$recht = new webservicerecht();
|
||||
$recht = new webservicerecht();
|
||||
$user = $authentifizierung->username;
|
||||
$passwort = $authentifizierung->passwort;
|
||||
|
||||
$passwort = $authentifizierung->passwort;
|
||||
|
||||
// User authentifizieren
|
||||
if(!check_user($user, $passwort))
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
// darf User überhaupt Methode verwenden
|
||||
$recht = new webservicerecht();
|
||||
$recht = new webservicerecht();
|
||||
if(!$recht->isUserAuthorized($user, 'getStudentFromUid'))
|
||||
return new SoapFault("Server", "No permission");
|
||||
|
||||
|
||||
$studentObj = new student(); // Studentendaten
|
||||
$student = new foo(); // Rückgabeobjekt
|
||||
$preStudent = new prestudent(); // StudentenStatus
|
||||
|
||||
if(!$studentObj->load($student_uid))
|
||||
return new SoapFault("Server", "Kein Student mit übergebener Uid gefunden");
|
||||
|
||||
return new SoapFault("Server", "Kein Student mit übergebener Uid gefunden");
|
||||
|
||||
$preStudent->getLastStatus($studentObj->prestudent_id);
|
||||
|
||||
|
||||
$student->studiengang_kz = $studentObj->studiengang_kz;
|
||||
$student->person_id = $studentObj->person_id;
|
||||
$student->semester = $studentObj->semester;
|
||||
$student->verband = $studentObj->verband;
|
||||
$student->gruppe = $studentObj->gruppe;
|
||||
$student->vorname = $studentObj->vorname;
|
||||
$student->nachname = $studentObj->nachname;
|
||||
$student->uid = $studentObj->uid;
|
||||
$student->person_id = $studentObj->person_id;
|
||||
$student->semester = $studentObj->semester;
|
||||
$student->verband = $studentObj->verband;
|
||||
$student->gruppe = $studentObj->gruppe;
|
||||
$student->vorname = $studentObj->vorname;
|
||||
$student->nachname = $studentObj->nachname;
|
||||
$student->uid = $studentObj->uid;
|
||||
$student->status = $preStudent->status_kurzbz;
|
||||
$student->personenkennzeichen = $studentObj->matrikelnr;
|
||||
$student->email = $student->uid.'@'.DOMAIN;
|
||||
|
||||
|
||||
$student = $recht->clearResponse($user, 'getStudentFromUid', $student);
|
||||
|
||||
return $student;
|
||||
|
||||
return $student;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,48 +85,48 @@ function getStudentFromUid($student_uid, $authentifizierung)
|
||||
*/
|
||||
function getStudentFromMatrikelnummer($matrikelnummer, $authentifizierung)
|
||||
{
|
||||
$recht = new webservicerecht();
|
||||
$recht = new webservicerecht();
|
||||
$user = $authentifizierung->username;
|
||||
$passwort = $authentifizierung->passwort;
|
||||
|
||||
$passwort = $authentifizierung->passwort;
|
||||
|
||||
// User authentifizieren
|
||||
if(!check_user($user, $passwort))
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
// darf User überhaupt Methode verwenden
|
||||
$recht = new webservicerecht();
|
||||
$recht = new webservicerecht();
|
||||
if(!$recht->isUserAuthorized($user, 'getStudentFromMatrikelnummer'))
|
||||
return new SoapFault("Server", "No permission");
|
||||
|
||||
|
||||
$studentObj = new student(); // Studentendaten
|
||||
$student = new foo(); // Rückgabeobjekt
|
||||
$preStudent = new prestudent(); // StudentenStatus
|
||||
|
||||
|
||||
$student_uid = $studentObj->getUidFromMatrikelnummer($matrikelnummer);
|
||||
if(!$studentObj->load($student_uid))
|
||||
return new SoapFault("Server", "Kein Student mit übergebener Matrikelnummer gefunden");
|
||||
|
||||
return new SoapFault("Server", "Kein Student mit übergebener Matrikelnummer gefunden");
|
||||
|
||||
$preStudent->getLastStatus($studentObj->prestudent_id);
|
||||
|
||||
|
||||
$student->studiengang_kz = $studentObj->studiengang_kz;
|
||||
$student->person_id = $studentObj->person_id;
|
||||
$student->semester = $studentObj->semester;
|
||||
$student->verband = $studentObj->verband;
|
||||
$student->gruppe = $studentObj->gruppe;
|
||||
$student->vorname = $studentObj->vorname;
|
||||
$student->nachname = $studentObj->nachname;
|
||||
$student->uid = $studentObj->uid;
|
||||
$student->person_id = $studentObj->person_id;
|
||||
$student->semester = $studentObj->semester;
|
||||
$student->verband = $studentObj->verband;
|
||||
$student->gruppe = $studentObj->gruppe;
|
||||
$student->vorname = $studentObj->vorname;
|
||||
$student->nachname = $studentObj->nachname;
|
||||
$student->uid = $studentObj->uid;
|
||||
$student->status = $preStudent->status_kurzbz;
|
||||
$student->personenkennzeichen = $studentObj->matrikelnr;
|
||||
$student->email = $student->uid.'@'.DOMAIN;
|
||||
|
||||
|
||||
$student = $recht->clearResponse($user, 'getStudentFromMatrikelnummer', $student);
|
||||
|
||||
return $student;
|
||||
|
||||
return $student;
|
||||
}
|
||||
|
||||
/**
|
||||
* Lädt alle Studenten eines gewissen Kriteriums
|
||||
* Lädt alle Studenten eines gewissen Kriteriums
|
||||
* @param $studiengang
|
||||
* @param $semester
|
||||
* @param $verband
|
||||
@@ -134,51 +134,51 @@ function getStudentFromMatrikelnummer($matrikelnummer, $authentifizierung)
|
||||
* @param $authentifizierung
|
||||
*/
|
||||
function getStudentFromStudiengang($studiengang, $semester = null, $verband = null, $gruppe = null, $authentifizierung)
|
||||
{
|
||||
$recht = new webservicerecht();
|
||||
{
|
||||
$recht = new webservicerecht();
|
||||
$user = $authentifizierung->username;
|
||||
$passwort = $authentifizierung->passwort;
|
||||
|
||||
$passwort = $authentifizierung->passwort;
|
||||
|
||||
// User authentifizieren
|
||||
if(!check_user($user, $passwort))
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
return new SoapFault("Server", "Invalid Credentials");
|
||||
|
||||
// darf User überhaupt Methode verwenden
|
||||
$recht = new webservicerecht();
|
||||
$recht = new webservicerecht();
|
||||
if(!$recht->isUserAuthorized($user, 'getStudentFromStudiengang'))
|
||||
return new SoapFault("Server", "No permission");
|
||||
|
||||
$studentObj = new student(); // Studentendaten
|
||||
$preStudent = new prestudent(); // StudentenStatus
|
||||
|
||||
|
||||
$studiensemester = new studiensemester(); // aktuelles Studiensemester
|
||||
$studSemester = $studiensemester->getakt();
|
||||
|
||||
|
||||
$studentObj->result = $studentObj->getStudents($studiengang, $semester, $verband, $gruppe, null, $studSemester);
|
||||
|
||||
$studentArray = array();
|
||||
|
||||
|
||||
$studentArray = array();
|
||||
|
||||
foreach($studentObj->result as $stud)
|
||||
{
|
||||
{
|
||||
$student = new foo(); // Rückgabeobjekt
|
||||
$preStudent->getLastStatus($stud->prestudent_id);
|
||||
|
||||
|
||||
$student->studiengang_kz = $stud->studiengang_kz;
|
||||
$student->person_id = $stud->person_id;
|
||||
$student->semester = $stud->semester;
|
||||
$student->verband = $stud->verband;
|
||||
$student->gruppe = $stud->gruppe;
|
||||
$student->vorname = $stud->vorname;
|
||||
$student->nachname = $stud->nachname;
|
||||
$student->uid = $stud->uid;
|
||||
$student->status = $preStudent->status_kurzbz;
|
||||
$student->person_id = $stud->person_id;
|
||||
$student->semester = $stud->semester;
|
||||
$student->verband = $stud->verband;
|
||||
$student->gruppe = $stud->gruppe;
|
||||
$student->vorname = $stud->vorname;
|
||||
$student->nachname = $stud->nachname;
|
||||
$student->uid = $stud->uid;
|
||||
$student->status = $preStudent->status_kurzbz;
|
||||
$student->personenkennzeichen = $stud->matrikelnr;
|
||||
$student->email = $stud->uid.'@'.DOMAIN;
|
||||
|
||||
|
||||
$student = $recht->clearResponse($user, 'getStudentFromStudiengang', $student);
|
||||
$studentArray[] = $student;
|
||||
$studentArray[] = $student;
|
||||
}
|
||||
return $studentArray;
|
||||
return $studentArray;
|
||||
}
|
||||
|
||||
class foo{}
|
||||
class foo{}
|
||||
|
||||
+20
-20
@@ -1,21 +1,21 @@
|
||||
<?php
|
||||
<?php
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
header("Content-type: text/xml");
|
||||
echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
?>
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
|
||||
xmlns:tns="http://technikum-wien.at"
|
||||
xmlns:s="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
||||
targetNamespace="http://technikum-wien.at"
|
||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
||||
|
||||
|
||||
<wsdl:message name="GetStudentFromUidRequest">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="student_uid" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetStudentFromUidResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetStudentFromUid" type="tns:Student"/>
|
||||
</wsdl:message>
|
||||
@@ -24,11 +24,11 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="student_uid" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetStudentFromMatrikelnummerResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetStudentFromUid" type="tns:Student"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
|
||||
<wsdl:message name="GetStudentFromStudiengangRequest">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="studiengang" type="s:string"/>
|
||||
@@ -37,11 +37,11 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="gruppe" type="s:string"/>
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="authentifizierung" type="tns:GetAuthentifizierung"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<wsdl:message name="GetStudentFromStudiengangResponse">
|
||||
<wsdl:part minOccurs="0" maxOccurs="1" name="GetStudentFromStudiengang" type="tns:ArrayOfStudentItem"/>
|
||||
</wsdl:message>
|
||||
|
||||
|
||||
<s:complexType name="ArrayOfStudentItem">
|
||||
<s:sequence>
|
||||
<s:element minOccurs="0" maxOccurs="unbounded" name="StudentItem" nillable="true" type="tns:Student"/>
|
||||
@@ -83,7 +83,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output message="tns:GetStudentFromStudiengangResponse"/>
|
||||
</wsdl:operation>
|
||||
</wsdl:portType>
|
||||
|
||||
|
||||
<wsdl:binding name="ConfigBinding" type="tns:ConfigPortType">
|
||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
||||
<wsdl:operation name="getStudentFromUid">
|
||||
@@ -94,7 +94,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output>
|
||||
<soap:body use="encoded" namespace="http://technikum-wien.at" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getStudentFromMatrikelnummer">
|
||||
<soap:operation soapAction="<?php echo APP_ROOT."soap/getStudentFromMatrikelnummer";?>" />
|
||||
<wsdl:input>
|
||||
@@ -103,7 +103,7 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output>
|
||||
<soap:body use="encoded" namespace="http://technikum-wien.at" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:operation>
|
||||
<wsdl:operation name="getStudentFromStudiengang">
|
||||
<soap:operation soapAction="<?php echo APP_ROOT."soap/getStudentFromStudiengang";?>" />
|
||||
<wsdl:input>
|
||||
@@ -112,12 +112,12 @@ echo "<?xml version='1.0' encoding='utf-8' ?>";
|
||||
<wsdl:output>
|
||||
<soap:body use="encoded" namespace="http://technikum-wien.at" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
||||
</wsdl:output>
|
||||
</wsdl:operation>
|
||||
</wsdl:operation>
|
||||
</wsdl:binding>
|
||||
|
||||
|
||||
<wsdl:service name="Student">
|
||||
<wsdl:port name="ConfigWebservicePort" binding="tns:ConfigBinding">
|
||||
<soap:address location="<?php echo APP_ROOT."/soap/student.soap.php?".microtime();?>"/>
|
||||
<soap:address location="<?php echo APP_ROOT."/soap/student.soap.php?".microtime(true);?>"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
</wsdl:definitions>
|
||||
|
||||
+1
-3
@@ -27,7 +27,7 @@ header("Pragma: no-cache");
|
||||
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
|
||||
$SOAPServer = new SoapServer(APP_ROOT."soap/test.wsdl.php?".microtime());
|
||||
$SOAPServer = new SoapServer(APP_ROOT."soap/test.wsdl.php?".microtime(true));
|
||||
$SOAPServer->addFunction("myTest");
|
||||
$SOAPServer->handle();
|
||||
|
||||
@@ -44,5 +44,3 @@ function myTest($foo)
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
<?php
|
||||
// touched by Christian Paminger
|
||||
@@ -155,6 +155,7 @@ $berechtigungen = array(
|
||||
array('soap/studienordnung','Recht für Studienordnung Webservice'),
|
||||
array('soap/benutzer','Berechtigung für Bentutzerabfrage Addon Kontoimport'),
|
||||
array('soap/buchungen','Berechtigung für Buchungsabfrage Addon Kontoimport'),
|
||||
array('student/alias','Berechtigung zum Aendern von Alias falls deaktiviert '),
|
||||
array('student/bankdaten','Bankdaten des Studenten'),
|
||||
array('student/anrechnung','Anrechnungen des Studenten'),
|
||||
array('student/anwesenheit','Anwesenheiten im FAS'),
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
/* Copyright (C) 2017 fhcomplete.org
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Andreas Oesterreicher <oesi@technikum-wien.at>
|
||||
*/
|
||||
/**
|
||||
* Script to Test the System Environment
|
||||
* Tests if all PHP-Modules, Configfiles, CommandlineTools, etc are installed
|
||||
*/
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/benutzerberechtigung.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
if(!$rechte->isBerechtigt('admin'))
|
||||
die($rechte->errormsg);
|
||||
|
||||
echo '<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>FH-Complete - Environment</title>';
|
||||
|
||||
include('../include/meta/jquery.php');
|
||||
include('../include/meta/jquery-tablesorter.php');
|
||||
|
||||
echo '
|
||||
<style>
|
||||
.fail{
|
||||
color:red;
|
||||
}
|
||||
.ok {
|
||||
color:green;
|
||||
}
|
||||
</style>
|
||||
<script language="Javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t1").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]],
|
||||
widgets: ["zebra"],
|
||||
headers: {1:{sorter: false}}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>FH-Complete Environment</h1>
|
||||
<table id="t1" class="tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Module</th>
|
||||
<th>Version/Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
';
|
||||
// Apache
|
||||
printVersion("Apache", apache_get_version());
|
||||
|
||||
// PHP version
|
||||
printVersion("php", phpversion());
|
||||
|
||||
// PHP module
|
||||
printVersion("php-xsl", phpversion('xsl'));
|
||||
printVersion("php-gd", phpversion('gd'));
|
||||
printVersion("php-pgsql", phpversion('pgsql'));
|
||||
printVersion("php-ldap", phpversion('ldap'));
|
||||
printVersion("php-mcrypt", phpversion('mcrypt'));
|
||||
printVersion("php-mbstring", phpversion('mbstring'));
|
||||
printVersion("php-soap", phpversion('soap'));
|
||||
printVersion("php-curl", phpversion('curl'));
|
||||
|
||||
// Unoconv version
|
||||
$returnArray = array();
|
||||
exec('unoconv --version',$returnArray);
|
||||
if(isset($returnArray[0]))
|
||||
$unoconvVersion = explode(' ',$returnArray[0])[1];
|
||||
else
|
||||
$unoconvVersion = null;
|
||||
|
||||
printVersion("Unoconv", $unoconvVersion, "0.7");
|
||||
|
||||
// Codeigniter Environment Variable CI_ENV
|
||||
$CI_ENV = getenv('CI_ENV');
|
||||
printVersion("CI_ENV", $CI_ENV);
|
||||
|
||||
// ZIP
|
||||
printVersion("zip", checkInstalled('zip'));
|
||||
|
||||
// Composer
|
||||
printVersion("composer", checkInstalled('composer'));
|
||||
|
||||
// Composer / Vendor
|
||||
$vendorFileExists = file_exists('../vendor/codeigniter/framework/index.php');
|
||||
printVersion("Composer Status", ($vendorFileExists?'ok':'out of date'));
|
||||
|
||||
// Config Files
|
||||
$ConfigExists = file_exists('../config/cis.config.inc.php');
|
||||
if(!$ConfigExists)
|
||||
$ConfigExists = file_exists('../config/vilesci.config.inc.php');
|
||||
|
||||
printVersion("ConfigFile CIS/Vilesci", ($ConfigExists?'ok':'missing'));
|
||||
|
||||
$ConfigExists = file_exists('../config/global.config.inc.php');
|
||||
printVersion("ConfigFile Global", ($ConfigExists?'ok':'missing'));
|
||||
|
||||
if($CI_ENV == '')
|
||||
$CI_ENV = 'production';
|
||||
$ConfigExists = file_exists('../application/config/'.$CI_ENV.'/config.php');
|
||||
printVersion("ConfigFile Codeigniter", ($ConfigExists?'ok':'missing'));
|
||||
|
||||
// Htaccess Files
|
||||
$htaccessExists = file_exists('../cis/private/.htaccess');
|
||||
printVersion("htaccess File CIS", ($htaccessExists?'ok':'missing'));
|
||||
$htaccessExists = file_exists('../content/.htaccess');
|
||||
printVersion("htaccess File Content", ($htaccessExists?'ok':'missing'));
|
||||
$htaccessExists = file_exists('../vilesci/.htaccess');
|
||||
printVersion("htaccess File Vilesci", ($htaccessExists?'ok':'missing'));
|
||||
$htaccessExists = file_exists('../system/.htaccess');
|
||||
printVersion("htaccess File System", ($htaccessExists?'ok':'missing'));
|
||||
$htaccessExists = file_exists('../rdf/.htaccess');
|
||||
printVersion("htaccess File RDF", ($htaccessExists?'ok':'missing'));
|
||||
|
||||
echo '
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>';
|
||||
|
||||
function printVersion($module, $currentVersion, $expectedVersion = '')
|
||||
{
|
||||
$failed = false;
|
||||
|
||||
if ($currentVersion == null)
|
||||
$failed = true;
|
||||
|
||||
if ($currentVersion == '')
|
||||
$currentVersion = 'missing';
|
||||
if ($expectedVersion != '' && $currentVersion != $expectedVersion)
|
||||
$failed = true;
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$module.'</td>
|
||||
<td><span class="'.($failed?'fail':'ok').'">'.$currentVersion.'</span>';
|
||||
if($failed && $expectedVersion != '')
|
||||
echo ' (should be '.$expectedVersion.')';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
function checkInstalled($tool)
|
||||
{
|
||||
$returnArray = array();
|
||||
$returnValue = null;
|
||||
exec('which '.$tool, $returnArray, $returnValue);
|
||||
if($returnValue==0)
|
||||
return 'ok';
|
||||
else
|
||||
return 'missing';
|
||||
}
|
||||
Binary file not shown.
@@ -1287,7 +1287,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
</text:sequence-decls>
|
||||
<text:p text:style-name="P60">
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr5" draw:name="Bild2" text:anchor-type="paragraph" svg:y="8.82cm" svg:width="11.45cm" svg:height="12.61cm" draw:z-index="20">
|
||||
<draw:image xlink:href="Pictures/bundesadler.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
<draw:image xlink:href="Pictures/bundesadler.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</text:p>
|
||||
<text:p text:style-name="P2"/>
|
||||
@@ -2836,12 +2836,12 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P22"/>
|
||||
<text:p text:style-name="P78">
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr6" draw:name="Bild1" text:anchor-type="paragraph" svg:y="8.82cm" svg:width="11.45cm" svg:height="12.61cm" draw:z-index="20">
|
||||
<draw:image xlink:href="Pictures/bundesadler.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
<draw:image xlink:href="Pictures/bundesadler.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</text:p>
|
||||
<text:p text:style-name="P78">
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr7" draw:name="Bild5" text:anchor-type="paragraph" svg:y="8.82cm" svg:width="11.45cm" svg:height="12.61cm" draw:z-index="21">
|
||||
<draw:image xlink:href="Pictures/bundesadler.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
<draw:image xlink:href="Pictures/bundesadler.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</text:p>
|
||||
|
||||
|
||||
@@ -1291,7 +1291,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
</text:sequence-decls>
|
||||
<text:p text:style-name="P60">
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr5" draw:name="Bild2" text:anchor-type="paragraph" svg:y="8.82cm" svg:width="11.45cm" svg:height="12.61cm" draw:z-index="20">
|
||||
<draw:image xlink:href="Pictures/bundesadler.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
<draw:image xlink:href="Pictures/bundesadler.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</text:p>
|
||||
<text:p text:style-name="P2"/>
|
||||
@@ -2839,12 +2839,12 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P22"/>
|
||||
<text:p text:style-name="P78">
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr6" draw:name="Bild1" text:anchor-type="paragraph" svg:y="8.82cm" svg:width="11.45cm" svg:height="12.61cm" draw:z-index="20">
|
||||
<draw:image xlink:href="Pictures/bundesadler.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
<draw:image xlink:href="Pictures/bundesadler.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</text:p>
|
||||
<text:p text:style-name="P78">
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr7" draw:name="Bild5" text:anchor-type="paragraph" svg:y="8.82cm" svg:width="11.45cm" svg:height="12.61cm" draw:z-index="21">
|
||||
<draw:image xlink:href="Pictures/bundesadler.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
<draw:image xlink:href="Pictures/bundesadler.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</text:p>
|
||||
|
||||
|
||||
@@ -8,29 +8,29 @@ use Other\Error as OtherError;
|
||||
class Throws
|
||||
{
|
||||
|
||||
/**
|
||||
* Test throws
|
||||
*
|
||||
* @throws Exception An expection happened.
|
||||
* @throws FHComplete\Boom A boom went off.
|
||||
* @throws FHComplete\Error\Boom Oh, shucks, another boom.
|
||||
* @throws Other\Crap Oh boy.
|
||||
* @throws Other\Error\Issue A missing tissue for your PSR-2 issues.
|
||||
* @return void
|
||||
*/
|
||||
public function test()
|
||||
{
|
||||
switch ($a) {
|
||||
case 1:
|
||||
throw new Boom();
|
||||
case 2:
|
||||
throw new Error\Boom();
|
||||
case 3:
|
||||
throw new OtherError\Issue();
|
||||
case 4:
|
||||
throw new Crap();
|
||||
default:
|
||||
throw new \Exception();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Test throws
|
||||
*
|
||||
* @throws Exception An expection happened.
|
||||
* @throws FHComplete\Boom A boom went off.
|
||||
* @throws FHComplete\Error\Boom Oh, shucks, another boom.
|
||||
* @throws Other\Crap Oh boy.
|
||||
* @throws Other\Error\Issue A missing tissue for your PSR-2 issues.
|
||||
* @return void
|
||||
*/
|
||||
public function test()
|
||||
{
|
||||
switch ($a) {
|
||||
case 1:
|
||||
throw new Boom();
|
||||
case 2:
|
||||
throw new Error\Boom();
|
||||
case 3:
|
||||
throw new OtherError\Issue();
|
||||
case 4:
|
||||
throw new Crap();
|
||||
default:
|
||||
throw new \Exception();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,25 @@
|
||||
<?php
|
||||
|
||||
for ($i = 0; $i < 10; $i++) {
|
||||
for ($i = 0; $i < 10; $i++)
|
||||
{
|
||||
echo 'hello';
|
||||
}
|
||||
|
||||
if ($i < 10) {
|
||||
if ($i < 10)
|
||||
{
|
||||
echo 'hello2';
|
||||
} elseif ($i > 100) {
|
||||
}
|
||||
elseif ($i > 100)
|
||||
{
|
||||
echo 'i > 100';
|
||||
}
|
||||
|
||||
while (false) {
|
||||
while (false)
|
||||
{
|
||||
echo 'false';
|
||||
}
|
||||
|
||||
do {
|
||||
do
|
||||
{
|
||||
echo 'dowhile test';
|
||||
} while (false);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
do
|
||||
{
|
||||
echo 'dowhile test';
|
||||
}
|
||||
while (false);
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<?php
|
||||
if (isset($a)) {
|
||||
if (isset($a))
|
||||
{
|
||||
echo 'a isset';
|
||||
} else if (isset($b)) {
|
||||
}
|
||||
elseif (isset($b))
|
||||
{
|
||||
echo 'b isset';
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
if ($value) {
|
||||
if ($value)
|
||||
{
|
||||
$thing = 'test';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
if(isset($test)) {
|
||||
if(isset($test))
|
||||
{
|
||||
echo 'hello';
|
||||
}
|
||||
|
||||
@@ -11,22 +11,23 @@ namespace App\Person\Patient;
|
||||
*/
|
||||
class Foo extends Bar
|
||||
{
|
||||
/**
|
||||
* What are your thoughts?
|
||||
*
|
||||
* @var array $brain
|
||||
*/
|
||||
public $brain = array();
|
||||
/**
|
||||
* What are your thoughts?
|
||||
*
|
||||
* @var array $brain
|
||||
*/
|
||||
public $brain = array();
|
||||
|
||||
/**
|
||||
* Tell me your thoughts.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function dumpThoughts()
|
||||
{
|
||||
foreach ($thoughts as $thought) {
|
||||
echo $thought;
|
||||
}
|
||||
}
|
||||
public function dumpThoughts()
|
||||
{
|
||||
foreach ($thoughts as $thought)
|
||||
{
|
||||
echo $thought;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@ $anotherThing = 'what';
|
||||
* What happens with If's?
|
||||
*
|
||||
*/
|
||||
if ($anotherThing !== 'notfun') {
|
||||
if ($anotherThing !== 'notfun')
|
||||
{
|
||||
$anotherThing = 'Oh no.';
|
||||
}
|
||||
|
||||
|
||||
@@ -8,22 +8,23 @@ namespace FHC;
|
||||
*/
|
||||
class Foo extends Bar
|
||||
{
|
||||
/**
|
||||
* What are your thoughts?
|
||||
*
|
||||
* @var array $brain
|
||||
*/
|
||||
public $brain = array();
|
||||
/**
|
||||
* What are your thoughts?
|
||||
*
|
||||
* @var array $brain
|
||||
*/
|
||||
public $brain = array();
|
||||
|
||||
/**
|
||||
* Tell me your thoughts.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function dumpThoughts()
|
||||
{
|
||||
foreach ($thoughts as $thought) {
|
||||
echo $thought;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tell me your thoughts.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function dumpThoughts()
|
||||
{
|
||||
foreach ($thoughts as $thought)
|
||||
{
|
||||
echo $thought;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ namespace Beakman;
|
||||
|
||||
class Foo
|
||||
{
|
||||
/**
|
||||
* [doThing description]
|
||||
*
|
||||
* @param string $foo Foo foo foo.
|
||||
* @return void
|
||||
*/
|
||||
public function doThing($foo)
|
||||
{
|
||||
}
|
||||
/**
|
||||
* [doThing description]
|
||||
*
|
||||
* @param string $foo Foo foo foo.
|
||||
* @return void
|
||||
*/
|
||||
public function doThing($foo)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
class Foo {
|
||||
/**
|
||||
* There is a (disallowed) trailing space after the opening ** in this doc block.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function bar()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
<?php
|
||||
|
||||
class Foo {
|
||||
/**
|
||||
* Some sentence.
|
||||
*
|
||||
* @param integer $param Some Param.
|
||||
* @param boolean $otherParam Some Other Param.
|
||||
* @return string Something.
|
||||
*/
|
||||
public function bar($param, $otherParam)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
<?php
|
||||
namespace Beakman;
|
||||
|
||||
class Foo
|
||||
{
|
||||
/**
|
||||
* Some sentence.
|
||||
*
|
||||
* @param int $param Some Param.
|
||||
* @param bool $otherParam Some Other Param.
|
||||
* @return void
|
||||
*/
|
||||
public function bar($param, $otherParam)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Description
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function baz()
|
||||
{
|
||||
if ($something) {
|
||||
return;
|
||||
}
|
||||
return 'foo';
|
||||
}
|
||||
|
||||
/**
|
||||
* Description
|
||||
*
|
||||
* @return void|string
|
||||
*/
|
||||
public function foo()
|
||||
{
|
||||
if ($something) {
|
||||
return;
|
||||
}
|
||||
return 'foo';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function inherited($param)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
if ($indented) {
|
||||
$var = array(
|
||||
'space' => 'after 2 tabs'
|
||||
);
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<?php
|
||||
use FHC\Test,
|
||||
FHC\Fail;
|
||||
|
||||
class Foo {
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
namespace Beakman;
|
||||
|
||||
use FHC\Test as Test;
|
||||
use Testing\Ok;
|
||||
|
||||
class Foo
|
||||
{
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
$foo = -1;
|
||||
|
||||
switch($foo) {
|
||||
case -1:
|
||||
break;
|
||||
case 'negative':
|
||||
return -1;
|
||||
switch($foo)
|
||||
{
|
||||
case -1:
|
||||
break;
|
||||
case 'negative':
|
||||
return -1;
|
||||
}
|
||||
$bar = isset($foo) ? -2 : 0;
|
||||
$foo = isset($bar) ? 0 : -2;
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<?php
|
||||
$var = 'space and tab';
|
||||
$var = 'space and tab';
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
use One;
|
||||
use Two;
|
||||
|
||||
class Foo {
|
||||
|
||||
use LogTrait;
|
||||
use FirstTrait;
|
||||
|
||||
class Foo
|
||||
{
|
||||
use LogTrait;
|
||||
use FirstTrait;
|
||||
}
|
||||
|
||||
@@ -7,9 +7,10 @@ use FHC\More;
|
||||
class Foo
|
||||
{
|
||||
|
||||
use BarTrait;
|
||||
use FirstTrait {
|
||||
foo as bar;
|
||||
config as protected _config;
|
||||
}
|
||||
use BarTrait;
|
||||
use FirstTrait
|
||||
{
|
||||
foo as bar;
|
||||
config as protected _config;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
$isActive = (boolean)$value;
|
||||
$count = (integer)$someNumber;
|
||||
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
$isActive = (bool)$value;
|
||||
$count = (int)$someNumber;
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
namespace Beakman;
|
||||
|
||||
class TraitUser
|
||||
{
|
||||
|
||||
use FunctionsTrait;
|
||||
|
||||
/**
|
||||
* [doThing description]
|
||||
*
|
||||
* @param callable $callback The description.
|
||||
* @return void
|
||||
*/
|
||||
public function doThing(callable $callback)
|
||||
{
|
||||
$visitor = function ($expression) use (&$visitor, $callback) {
|
||||
echo 'It works';
|
||||
};
|
||||
$visitor($this);
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
$foo = 'bar';
|
||||
$bar = 'foo';
|
||||
|
||||
$zum = function () use ($foo, $bar) {
|
||||
return $foo;
|
||||
};
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
|
||||
use FHC\Routing\Router;
|
||||
use FHC\Error;
|
||||
use FHC\Utility\Hash;
|
||||
|
||||
class Foo {
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<?php
|
||||
namespace BryanCrowe;
|
||||
|
||||
use FHC\Routing\RouteCollection;
|
||||
use FHC\Routing\Router;
|
||||
use FHC\Routing\Route\Route;
|
||||
|
||||
class Foo
|
||||
{
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
use FHC\Routing\Router, FHC\Error;
|
||||
|
||||
class Foo
|
||||
{
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
namespace Beakman;
|
||||
|
||||
class VariablenamePass
|
||||
{
|
||||
public $passing;
|
||||
|
||||
public $passingPublic = 'defined';
|
||||
|
||||
protected $underScoredStart = 'OK';
|
||||
|
||||
protected $underScored;
|
||||
|
||||
private $doubleUnderscore = 'applications';
|
||||
|
||||
public static $publicStatic = true;
|
||||
|
||||
protected static $protectedStatic = true;
|
||||
|
||||
private static $privateStatic = true;
|
||||
|
||||
/**
|
||||
* [setVariables description]
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setVariables()
|
||||
{
|
||||
$this->passingPublic = 'changed';
|
||||
$this->underscored = 'has value now';
|
||||
$this->doubleUnderscore = 'not recommended';
|
||||
}
|
||||
|
||||
/**
|
||||
* [setStatics description]
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function setStatics()
|
||||
{
|
||||
self::$publicStatic = true;
|
||||
self::$protectedStatic = true;
|
||||
self::$privateStatic = true;
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
<?php
|
||||
echo implode('', array_map('chr', array_map('hexdec',array_filter(explode($delimiter, $string)))));
|
||||
@@ -1,2 +0,0 @@
|
||||
<?php
|
||||
echo implode('', array_map('chr', array_map('hexdec' , array_filter(explode($delimiter, $string)))));
|
||||
@@ -1,2 +0,0 @@
|
||||
<?php
|
||||
echo implode('', array_map('chr', array_map('hexdec', array_filter(explode($delimiter, $string)))));
|
||||
@@ -40,8 +40,34 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/fhcomplete.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<title>Profilfoto Check</title>
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">';
|
||||
|
||||
include('../../include/meta/jquery.php');
|
||||
|
||||
echo' <title>Profilfoto Check</title>
|
||||
<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
var img = document.getElementById("image");
|
||||
|
||||
img.onload = function()
|
||||
{
|
||||
var width = img.naturalWidth;
|
||||
if (width < 240)
|
||||
width = "<span style=\'color: red\'>"+width+"</span>";
|
||||
|
||||
var height = img.naturalHeight;
|
||||
if (height < 320)
|
||||
height = "<span style=\'color: red\'>"+height+"</span>";
|
||||
$("#imagesize").html(width+" x "+height);
|
||||
}
|
||||
});
|
||||
function RefreshImage()
|
||||
{
|
||||
document.getElementById("image").src = document.getElementById("image").src+"&foo";
|
||||
document.getElementById("imagepreview").src = document.getElementById("imagepreview").src+"&foo";
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.hoverbox
|
||||
{
|
||||
@@ -83,13 +109,17 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
border-color: #000;
|
||||
height: 100px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.hoverbox .image
|
||||
{
|
||||
width: 75px;
|
||||
height: 100px;
|
||||
width: 150px;
|
||||
height: 200px;
|
||||
}
|
||||
input
|
||||
{
|
||||
padding: 2px 4px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -116,13 +146,13 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
border-color: #000;
|
||||
height: 100px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.hoverbox .image
|
||||
{
|
||||
width: 75px;
|
||||
height: 100px;
|
||||
width: 150px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.hoverbox a:hover .preview
|
||||
@@ -154,7 +184,7 @@ if(!$rechte->isBerechtigt('basis/fhausweis','suid'))
|
||||
die('Sie haben keine Berechtigung für diese Seite');
|
||||
}
|
||||
$error = false;
|
||||
$person_id='';
|
||||
|
||||
if(isset($_POST['person_id']))
|
||||
{
|
||||
$person_id=$_POST['person_id'];
|
||||
@@ -312,10 +342,12 @@ $qry_anzahl_mitarbeiter = "
|
||||
FROM
|
||||
public.tbl_person
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
LEFT JOIN public.tbl_mitarbeiter ON (uid=mitarbeiter_uid)
|
||||
JOIN public.tbl_akte USING (person_id)
|
||||
LEFT JOIN public.tbl_mitarbeiter ON (tbl_benutzer.uid=mitarbeiter_uid)
|
||||
WHERE
|
||||
foto is not NULL
|
||||
AND tbl_benutzer.aktiv
|
||||
AND tbl_akte.dokument_kurzbz='Lichtbil'
|
||||
AND 'akzeptiert' NOT IN(SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND 'abgewiesen' NOT IN (SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
@@ -335,15 +367,17 @@ $qry_anzahl_studenten = "
|
||||
FROM
|
||||
public.tbl_person
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
LEFT JOIN public.tbl_mitarbeiter ON (uid=mitarbeiter_uid)
|
||||
JOIN public.tbl_akte USING (person_id)
|
||||
LEFT JOIN public.tbl_mitarbeiter ON (tbl_benutzer.uid=mitarbeiter_uid)
|
||||
WHERE
|
||||
foto is not NULL
|
||||
AND tbl_benutzer.aktiv
|
||||
AND tbl_akte.dokument_kurzbz='Lichtbil'
|
||||
AND 'akzeptiert' NOT IN(SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND 'abgewiesen' NOT IN (SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND uid NOT IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)
|
||||
AND tbl_benutzer.uid NOT IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)
|
||||
";
|
||||
$anzahl_std = '';
|
||||
if($result_anzahl = $db->db_query($qry_anzahl_studenten))
|
||||
@@ -358,9 +392,11 @@ $qry_anzahl_gesamt = "
|
||||
FROM
|
||||
public.tbl_person
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
JOIN public.tbl_akte USING (person_id)
|
||||
WHERE
|
||||
foto is not NULL
|
||||
AND tbl_benutzer.aktiv
|
||||
AND tbl_akte.dokument_kurzbz='Lichtbil'
|
||||
AND 'akzeptiert' NOT IN(SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND 'abgewiesen' NOT IN (SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
@@ -434,10 +470,13 @@ if($result = $db->db_query($qry))
|
||||
<table style="position: relative;">
|
||||
<tr>
|
||||
<td class="hoverbox">
|
||||
<a href="#"><p class="previewtext">Originalvorschau</p><img class="image" src="../../content/bild.php?src=akte&person_id='.$row->person_id.'"><img src="../../content/bild.php?src=akte&person_id='.$row->person_id.'" class="preview"></a>
|
||||
<a href="#"><p class="previewtext">Originalvorschau</p><img id="image" class="image" src="../../content/bild.php?src=akte&person_id='.$row->person_id.'"><img id="imagepreview" src="../../content/bild.php?src=akte&person_id='.$row->person_id.'" class="preview"></a>
|
||||
<br>
|
||||
<div id="imagesize"></div>
|
||||
</td>
|
||||
<td> </td>
|
||||
<td>
|
||||
Person ID: '.$db->convert_html_chars($row->person_id).'<br>
|
||||
Vorname: '.$db->convert_html_chars($row->vorname).'<br>
|
||||
Nachname: '.$db->convert_html_chars($row->nachname).'<br>
|
||||
'.($row->mitarbeiter=='1'?'MitarbeiterIn':'StudentIn').'
|
||||
@@ -455,8 +494,11 @@ if($result = $db->db_query($qry))
|
||||
echo '</form>';
|
||||
echo '<br><br><br>';
|
||||
echo '<a href="#FotoUpload" onclick="window.open(\'../../content/bildupload.php?person_id='.$row->person_id.'\',\'BildUpload\', \'height=50,width=600,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes\'); return false;">Bild Upload</a>';
|
||||
echo '<br><br>';
|
||||
echo '<a href="#dms_download" onclick="window.open(\''.APP_ROOT.'cms/dms.php?id='.$row->dms_id.'\',\'DmsDownload\', \'height=800,width=900,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes\'); return false;">DMS Download</a>';
|
||||
if ($row->dms_id !='')
|
||||
{
|
||||
echo '<br><br>';
|
||||
echo '<a href="#dms_download" onclick="window.open(\''.APP_ROOT.'cms/dms.php?id='.$row->dms_id.'\',\'DmsDownload\', \'height=800,width=900,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes\'); return false;">DMS Download</a>';
|
||||
}
|
||||
echo '</center>';
|
||||
}
|
||||
else
|
||||
|
||||
@@ -225,7 +225,7 @@ if(isset($_REQUEST['btn_submitStudent']))
|
||||
{
|
||||
foreach($studiengang->result as $stud)
|
||||
{
|
||||
if($stud->studiengang_kz >= '10000' || $stud->studiengang_kz < '0')
|
||||
if($stud->studiengang_kz >= '10000' || $stud->studiengang_kz < '0' || $stud->studiengang_kz == '9005')
|
||||
$studenten->getStudentsStudiengang($stud->studiengang_kz, $semester);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,10 +48,12 @@ function checkLength()
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#erweitertesuche").hide();
|
||||
|
||||
$("#t1").tablesorter(
|
||||
{
|
||||
sortList: [[0,0],[1,0],[2,0]],
|
||||
@@ -100,13 +102,13 @@ $benutzerart = (isset($_GET['benutzerart'])?$_GET['benutzerart']:'');
|
||||
$benutzeraktiv = (isset($_GET['aktiv'])?$_GET['aktiv']:'aktiv');
|
||||
$berechtigung_kurzbz = (isset($_GET['berechtigung_kurzbz'])?$_GET['berechtigung_kurzbz']:'');
|
||||
$rolle_kurzbz = (isset($_GET['rolle_kurzbz'])?$_GET['rolle_kurzbz']:'');
|
||||
|
||||
|
||||
$htmlstr='
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<form accept-charset="UTF-8" name="searchbenutzer" method="GET" onsubmit="return checkLength();">
|
||||
BenutzerIn suchen:
|
||||
BenutzerIn suchen:
|
||||
<input type="text" id="searchbox" name="searchstr" size="30" value="'.$searchstr.'" placeholder="Name oder UID eingeben">
|
||||
<select id="benutzerart" name="benutzerart">
|
||||
<option value="" '.($benutzerart == ''?'selected':'').'>Alle BenutzerInnen</option>
|
||||
@@ -119,9 +121,13 @@ $htmlstr='
|
||||
<option value="inaktiv" '.($benutzeraktiv == 'inaktiv'?'selected':'').'>Inaktiv</option>
|
||||
</select>
|
||||
<input type="submit" value="Suchen">
|
||||
</form><hr>
|
||||
|
||||
<span style="float:right"><a href="#" onclick="$(\'#erweitertesuche\').toggle();">Erweiterte Suchoptionen ein-/ausblenden</a></span>
|
||||
</form>
|
||||
<div id="erweitertesuche">
|
||||
<hr>
|
||||
<form accept-charset="UTF-8" name="searchrechte" method="GET">
|
||||
Berechtigung:
|
||||
Berechtigung:
|
||||
<select id="berechtigung_kurzbz" name="berechtigung_kurzbz">
|
||||
<option value=""></option>';
|
||||
$berechtigung = new berechtigung();
|
||||
@@ -130,7 +136,7 @@ $htmlstr='
|
||||
{
|
||||
if ($berechtigung_kurzbz == $berechtigung->berechtigung_kurzbz)
|
||||
$selected = 'selected="selected"';
|
||||
else
|
||||
else
|
||||
$selected = '';
|
||||
$htmlstr .= '<option value="'.$berechtigung->berechtigung_kurzbz.'" title="'.$berechtigung->beschreibung.'" '.$selected.'>'.$berechtigung->berechtigung_kurzbz.'</option>';
|
||||
}
|
||||
@@ -138,7 +144,7 @@ $htmlstr='
|
||||
<input type="submit" value="Suchen">
|
||||
</form><hr>
|
||||
<form accept-charset="UTF-8" name="searchrollen" method="GET">
|
||||
Rollen:
|
||||
Rollen:
|
||||
<select id="rolle_kurzbz" name="rolle_kurzbz">
|
||||
<option value=""></option>';
|
||||
$rollen = new berechtigung();
|
||||
@@ -147,13 +153,14 @@ $htmlstr='
|
||||
{
|
||||
if ($rolle_kurzbz == $rolle->rolle_kurzbz)
|
||||
$selected = 'selected="selected"';
|
||||
else
|
||||
else
|
||||
$selected = '';
|
||||
$htmlstr .= '<option value="'.$rolle->rolle_kurzbz.'" title="'.$rolle->beschreibung.'" '.$selected.'>'.$rolle->rolle_kurzbz.'</option>';
|
||||
}
|
||||
$htmlstr .= '</select>
|
||||
<input type="submit" value="Suchen">
|
||||
</form><hr>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -161,8 +168,8 @@ $htmlstr='
|
||||
|
||||
//Benutzer suchen und Tabelle anzeigen
|
||||
if(isset($_GET['searchstr']))
|
||||
{
|
||||
$benutzer = new benutzer();
|
||||
{
|
||||
$benutzer = new benutzer();
|
||||
$searchItems = explode(' ',$searchstr);
|
||||
if ($benutzeraktiv == 'aktiv')
|
||||
$benutzer->search($searchItems,"",true);
|
||||
@@ -170,9 +177,9 @@ if(isset($_GET['searchstr']))
|
||||
$benutzer->search($searchItems,"",false);
|
||||
if ($benutzeraktiv == '')
|
||||
$benutzer->search($searchItems,"",null);
|
||||
|
||||
|
||||
if(count($benutzer->result)!=0)
|
||||
{
|
||||
{
|
||||
$htmlstr .= "<table id='t1' class='tablesorter'><thead><tr>\n";
|
||||
$htmlstr .= "<th>Nachname</th><th>Vorname</th><th>UID</th><th>Aktiv</th><th>Aktion</th>";
|
||||
$htmlstr .= "</tr></thead><tbody>\n";
|
||||
@@ -185,14 +192,14 @@ if(isset($_GET['searchstr']))
|
||||
{
|
||||
$benutzerrolle = new benutzerberechtigung();
|
||||
$benutzerrolle->loadBenutzerRollen($row->uid);
|
||||
$aktiv = new benutzer();
|
||||
$aktiv = new benutzer();
|
||||
$aktiv->load($row->uid);
|
||||
|
||||
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>".$row->nachname."</td>\n";
|
||||
$htmlstr .= " <td>".$row->vorname."</td>\n";
|
||||
$htmlstr .= " <td>".$row->uid."</td>\n";
|
||||
$htmlstr .= " <td>".($aktiv->bnaktiv?"Ja":"Nein")."</td>\n";
|
||||
$htmlstr .= " <td>".$row->uid."</td>\n";
|
||||
$htmlstr .= " <td>".($aktiv->bnaktiv?"Ja":"Nein")."</td>\n";
|
||||
$htmlstr .= " <td><a href='benutzerberechtigung_details.php?uid=".$row->uid."' target='vilesci_detail'>".(count($benutzerrolle->berechtigungen)!=0?"Rechte bearbeiten":"Rechte vergeben")."</a></td>\n";
|
||||
$htmlstr .= " </tr>\n";
|
||||
}
|
||||
@@ -203,7 +210,7 @@ if(isset($_GET['searchstr']))
|
||||
$benutzerrolle->loadBenutzerRollen($row->uid);
|
||||
$aktiv = new benutzer();
|
||||
$aktiv->load($row->uid);
|
||||
|
||||
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>".$row->nachname."</td>\n";
|
||||
$htmlstr .= " <td>".$row->vorname."</td>\n";
|
||||
@@ -218,7 +225,7 @@ if(isset($_GET['searchstr']))
|
||||
$benutzerrolle->loadBenutzerRollen($row->uid);
|
||||
$aktiv = new benutzer();
|
||||
$aktiv->load($row->uid);
|
||||
|
||||
|
||||
$htmlstr .= " <tr>\n";
|
||||
$htmlstr .= " <td>".$row->nachname."</td>\n";
|
||||
$htmlstr .= " <td>".$row->vorname."</td>\n";
|
||||
@@ -230,7 +237,7 @@ if(isset($_GET['searchstr']))
|
||||
}
|
||||
$htmlstr .= "</tbody></table>\n";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= "Es wurden keine Übereinstimmungen mit Ihrem Suchbegriff gefunden";
|
||||
}
|
||||
@@ -252,9 +259,9 @@ if($berechtigung_kurzbz != '')
|
||||
{
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($row->uid);
|
||||
|
||||
|
||||
$heute = strtotime(date('Y-m-d'));
|
||||
|
||||
|
||||
if ($row->ende!='' && strtotime($row->ende) < $heute)
|
||||
{
|
||||
$color1 = '#f79c9c';
|
||||
@@ -282,7 +289,7 @@ if($berechtigung_kurzbz != '')
|
||||
-webkit-border-radius: 10;
|
||||
-moz-border-radius: 10;
|
||||
border-radius: 10px;
|
||||
|
||||
|
||||
border: solid #999 1px;
|
||||
text-decoration: none;
|
||||
"></div>';
|
||||
@@ -330,9 +337,9 @@ if($rolle_kurzbz != '')
|
||||
{
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($row->uid);
|
||||
|
||||
|
||||
$heute = strtotime(date('Y-m-d'));
|
||||
|
||||
|
||||
if ($row->ende!='' && strtotime($row->ende) < $heute)
|
||||
{
|
||||
$color1 = '#f79c9c';
|
||||
@@ -360,7 +367,7 @@ if($rolle_kurzbz != '')
|
||||
-webkit-border-radius: 10;
|
||||
-moz-border-radius: 10;
|
||||
border-radius: 10px;
|
||||
|
||||
|
||||
border: solid #999 1px;
|
||||
text-decoration: none;
|
||||
"></div>';
|
||||
|
||||
@@ -590,7 +590,7 @@ if(isset($_GET['excel']))
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bezeichnung;
|
||||
ui.content[i].label=ui.content[i].bezeichnung+' ('+ui.content[i].status+')';
|
||||
ui.content[i].label=ui.content[i].bezeichnung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
@@ -1862,10 +1862,10 @@ $studienplaene_list = implode(',', array_keys($studienplaene_arr));
|
||||
<td></td>
|
||||
<td>
|
||||
<button type="submit" name="speichern"><?php echo $val ?></button>
|
||||
<?php
|
||||
<?php
|
||||
if(!$neu)
|
||||
echo '<button type="submit" name="kopieren" onclick="return confirm (\'Eine Kopie dieses Tests (ohne Raumzuordnung) erstellen?\')">Kopie erstellen</button>';
|
||||
|
||||
|
||||
if($rechte->isBerechtigt('lehre/reihungstest', null, 'suid'))
|
||||
{
|
||||
$anzahl_teilnehmer = new reihungstest();
|
||||
@@ -1873,9 +1873,9 @@ $studienplaene_list = implode(',', array_keys($studienplaene_arr));
|
||||
|
||||
if (isset($orte) && count($orte->result) == 0 && isset($studienplaene) && count($studienplaene->result) == 0 && $anzahl_teilnehmer == 0 && $reihungstest_id != '')
|
||||
echo '<button type="submit" name="deleteReihungstest" onclick="return confirm (\'Diesen Reihungstesttermin löschen?\')">Termin löschen</button>';
|
||||
else
|
||||
else
|
||||
echo '<button type="submit" name="" disabled="disabled" title="Entfernen Sie zuerst alle Raumzuteilungen, Studienpläne und TeilnehmerInnen">Termin löschen</button>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -85,7 +85,7 @@ if(isset($_GET['action']) && $_GET['action']=='save')
|
||||
|
||||
}
|
||||
|
||||
if($studiengang_kz==334)
|
||||
if(in_array($studiengang_kz,array(334,257)))
|
||||
{
|
||||
$benutzerfunktion = new benutzerfunktion();
|
||||
$benutzerfunktion->getOeFunktionen($stg->oe_kurzbz, 'Leitung');
|
||||
@@ -180,9 +180,9 @@ echo '
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
if($stg->studiengang_kz==334)
|
||||
if(in_array($stg->studiengang_kz, array(334,257)))
|
||||
{
|
||||
// Studiengang MIT / MSC kann auch die Leitung aktivieren/deaktivieren
|
||||
// Studiengang MIT / MSC und BIF kann auch die Leitung aktivieren/deaktivieren
|
||||
echo '<tr>';
|
||||
echo '<td valign="top">Leitung</td>';
|
||||
echo '<td>';
|
||||
@@ -222,4 +222,4 @@ echo '
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user