mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Merge origin/master
Conflicts: cis/testtool/login.php vilesci/stammdaten/reihungstestverwaltung.php
This commit is contained in:
@@ -13,14 +13,17 @@
|
||||
- **[FAS]** Bei Statuswechsel von Studierenden können Gründe für den Statuswechsel angegeben werden
|
||||
- **[ADDONS]** Addons können Menüpunkte im Vilesci anpassen
|
||||
- **[ADDONS]** Addons können Noten für die Gesamtnote vorschlagen
|
||||
- **[CORE]** UserDefinedFields
|
||||
|
||||
### CHANGED
|
||||
- **[CORE]** Berechtigungsprüfung wurde angepasst damit deaktivierte Benutzer keine Berechtigungen mehr haben
|
||||
- **[FAS]** Mitarbeiterexport exportiert jetzt nur noch die markierten Personen
|
||||
- **[CORE]** Has many as possible javascripts and css present in the repository were removed. Their lack is overcome by the packages in the composer. In the meanwhile also the versions were updated
|
||||
|
||||
### Updateinfo
|
||||
- **[CORE]** Infoscreen wurde umbenannt (informationsbildschirm.php)
|
||||
- **[CORE]** Moodle Schnittstelle wurde aus dem Core entfernt und in ein eigenes Addon verschoben. Moodle Versionen < 2.4 werden nicht mehr unterstützt
|
||||
- **[CORE]** Update campus.tbl_templates (contentmittitel and contentohnetitel) with system/templates/contentmittitel_xslt_xhtml.xslt andsystem/templates/contentohnetitel_xslt_xhtml.xslt
|
||||
|
||||
## [3.2]
|
||||
|
||||
|
||||
@@ -243,4 +243,6 @@ $config['fhc_acl'] = array
|
||||
'PhrasesLib.getPhrase' => 'system/PhrasesLib'
|
||||
);
|
||||
|
||||
$config['addons_aufnahme_url'] = 'http://debian.dev/build/addons/aufnahme/cis/index.php';
|
||||
//
|
||||
$config['addons_aufnahme_url'] = array();
|
||||
$config['addons_aufnahme_url']['OE_ROOT'] = 'http://debian.dev/addons/aufnahme/OE_ROOT/cis/index.php';
|
||||
|
||||
@@ -167,9 +167,9 @@ $config['auth_library_function'] = 'basicAuthentication';
|
||||
| $config['auth_override_class_method']['accounts']['user'] = 'basic';
|
||||
| $config['auth_override_class_method']['dashboard']['*'] = 'none|digest|basic';
|
||||
|
|
||||
| Here 'deals', 'accounts' and 'dashboard' are controller names, 'view', 'insert' and 'user' are methods within.
|
||||
* An asterisk may also be used to specify an authentication method for an entire classes methods.
|
||||
* Ex: $config['auth_override_class_method']['dashboard']['*'] = 'basic'; (NOTE: leave off the '_get' or '_post' from the end
|
||||
| Here 'deals', 'accounts' and 'dashboard' are controller names, 'view', 'insert' and 'user' are methods within.
|
||||
* An asterisk may also be used to specify an authentication method for an entire classes methods.
|
||||
* Ex: $config['auth_override_class_method']['dashboard']['*'] = 'basic'; (NOTE: leave off the '_get' or '_post' from the end
|
||||
* of the method name)
|
||||
| Acceptable values are; 'none', 'digest' and 'basic'.
|
||||
|
|
||||
@@ -223,7 +223,7 @@ $config['auth_library_function'] = 'basicAuthentication';
|
||||
| restrict certain methods to IPs in your whitelist
|
||||
|
|
||||
*/
|
||||
$config['rest_ip_whitelist_enabled'] = FALSE;
|
||||
$config['rest_ip_whitelist_enabled'] = TRUE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -238,7 +238,7 @@ $config['rest_ip_whitelist_enabled'] = FALSE;
|
||||
| 127.0.0.1 and 0.0.0.0 are allowed by default
|
||||
|
|
||||
*/
|
||||
$config['rest_ip_whitelist'] = '';
|
||||
$config['rest_ip_whitelist'] = '127.0.0.1';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -25,13 +25,52 @@ class Redirect extends FHC_Controller
|
||||
|
||||
// Loads config file fhcomplete
|
||||
$this->config->load('fhcomplete');
|
||||
|
||||
// Loads message helper
|
||||
$this->load->helper('message');
|
||||
|
||||
// Loads model MessageTokenModel
|
||||
$this->load->model('system/MessageToken_model', 'MessageTokenModel');
|
||||
|
||||
// Loads library OrganisationseinheitLib
|
||||
$this->load->library('OrganisationseinheitLib');
|
||||
}
|
||||
|
||||
/**
|
||||
* redirectByToken
|
||||
*
|
||||
* - Loads the message using a token
|
||||
* - Loads the root of the organisation unit tree using the oe_kurzbz present in the message
|
||||
* - Redirect to the aufnahme related to the found organisation unit
|
||||
*/
|
||||
public function redirectByToken($token)
|
||||
{
|
||||
if (isset($token))
|
||||
$msg = $this->MessageTokenModel->getMessageByToken($token);
|
||||
if ($msg->error)
|
||||
{
|
||||
redirect($this->config->item('addons_aufnahme_url') . '?token=' . $token);
|
||||
show_error($msg->retval);
|
||||
}
|
||||
|
||||
$oe_kurzbz = $msg->retval[0]->oe_kurzbz;
|
||||
|
||||
if ($oe_kurzbz != null && $oe_kurzbz != '')
|
||||
{
|
||||
$rootOE = $this->organisationseinheitlib->getRoot($oe_kurzbz);
|
||||
if ($rootOE->error)
|
||||
{
|
||||
show_error($rootOE->retval);
|
||||
}
|
||||
|
||||
$addonAufnahmeUrls = $this->config->item('addons_aufnahme_url');
|
||||
|
||||
if (isset($token)
|
||||
&& hasData($msg)
|
||||
&& is_array($addonAufnahmeUrls)
|
||||
&& hasData($rootOE)
|
||||
&& isset($addonAufnahmeUrls[$rootOE->retval[0]->oe_kurzbz]))
|
||||
{
|
||||
redirect($addonAufnahmeUrls[$rootOE->retval[0]->oe_kurzbz] . '?token=' . $token);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,28 +11,32 @@
|
||||
* @filesource
|
||||
*/
|
||||
// ------------------------------------------------------------------------
|
||||
if (!defined("BASEPATH")) exit("No direct script access allowed");
|
||||
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Studiengang2 extends APIv1_Controller
|
||||
{
|
||||
/**
|
||||
* Course API constructor.
|
||||
*
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// Load model PersonModel
|
||||
$this->load->model("organisation/studiengang_model", "StudiengangModel");
|
||||
$this->load->model('organisation/studiengang_model', 'StudiengangModel');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getStudiengang
|
||||
*/
|
||||
public function getStudiengang()
|
||||
{
|
||||
$studiengang_kz = $this->get("studiengang_kz");
|
||||
|
||||
$studiengang_kz = $this->get('studiengang_kz');
|
||||
|
||||
if (isset($studiengang_kz))
|
||||
{
|
||||
$result = $this->StudiengangModel->load($studiengang_kz);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -40,32 +44,35 @@ class Studiengang2 extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getAllForBewerbung
|
||||
*/
|
||||
public function getAllForBewerbung()
|
||||
{
|
||||
$this->response($this->StudiengangModel->getAllForBewerbung(), REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Method getStudiengangStudienplan
|
||||
* getStudiengangStudienplan
|
||||
*/
|
||||
public function getStudiengangStudienplan()
|
||||
{
|
||||
// Getting HTTP GET parameters
|
||||
$studiensemester_kurzbz = $this->get("studiensemester_kurzbz");
|
||||
$ausbildungssemester = $this->get("ausbildungssemester");
|
||||
$aktiv = $this->get("aktiv");
|
||||
$onlinebewerbung = $this->get("onlinebewerbung");
|
||||
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$ausbildungssemester = $this->get('ausbildungssemester');
|
||||
$aktiv = $this->get('aktiv');
|
||||
$onlinebewerbung = $this->get('onlinebewerbung');
|
||||
|
||||
// If $studiensemester_kurzbz and $ausbildungssemester are present
|
||||
if (isset($studiensemester_kurzbz) && isset($ausbildungssemester))
|
||||
{
|
||||
// Check & set
|
||||
if (!isset($aktiv)) $aktiv = "TRUE";
|
||||
if (!isset($onlinebewerbung)) $onlinebewerbung = "TRUE";
|
||||
|
||||
if (!isset($aktiv)) $aktiv = 'TRUE';
|
||||
if (!isset($onlinebewerbung)) $onlinebewerbung = 'TRUE';
|
||||
|
||||
$result = $this->StudiengangModel->getStudienplan($studiensemester_kurzbz, $ausbildungssemester, $aktiv, $onlinebewerbung);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -73,33 +80,38 @@ class Studiengang2 extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getStudiengangBewerbung
|
||||
*/
|
||||
public function getStudiengangBewerbung()
|
||||
{
|
||||
$result = $this->StudiengangModel->getStudiengangBewerbung();
|
||||
|
||||
$oe_kurzbz = $this->get('oe_kurzbz');
|
||||
|
||||
$result = $this->StudiengangModel->getStudiengangBewerbung($oe_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* getAppliedStudiengang
|
||||
*/
|
||||
public function getAppliedStudiengang()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$studiensemester_kurzbz = $this->get('studiensemester_kurzbz');
|
||||
$titel = $this->get('titel');
|
||||
|
||||
|
||||
if (isset($person_id) && isset($studiensemester_kurzbz) && isset($titel))
|
||||
{
|
||||
$this->load->model('organisation/Studiengang_model', 'StudiengangModel');
|
||||
|
||||
|
||||
$result = $this->StudiengangModel->getAppliedStudiengang(
|
||||
$person_id,
|
||||
$studiensemester_kurzbz,
|
||||
$titel
|
||||
);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -107,24 +119,24 @@ class Studiengang2 extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* getAppliedStudiengangFromNow
|
||||
*/
|
||||
public function getAppliedStudiengangFromNow()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$titel = $this->get('titel');
|
||||
|
||||
|
||||
if (isset($person_id) && isset($titel))
|
||||
{
|
||||
$this->load->model('organisation/Studiengang_model', 'StudiengangModel');
|
||||
|
||||
|
||||
$result = $this->StudiengangModel->getAppliedStudiengangFromNow(
|
||||
$person_id,
|
||||
$titel
|
||||
);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -132,4 +144,31 @@ class Studiengang2 extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* getAppliedStudiengangFromNowOE
|
||||
*/
|
||||
public function getAppliedStudiengangFromNowOE()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$titel = $this->get('titel');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz');
|
||||
|
||||
if (isset($person_id) && isset($titel) && isset($oe_kurzbz))
|
||||
{
|
||||
$this->load->model('organisation/Studiengang_model', 'StudiengangModel');
|
||||
|
||||
$result = $this->StudiengangModel->getAppliedStudiengangFromNowOE(
|
||||
$person_id,
|
||||
$titel,
|
||||
$oe_kurzbz
|
||||
);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,17 +27,18 @@ class Message extends APIv1_Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* getMessagesByPersonID
|
||||
*/
|
||||
public function getMessagesByPersonID()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
$all = $this->get('all');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->messagelib->getMessagesByPerson($person_id, $all);
|
||||
|
||||
$result = $this->messagelib->getMessagesByPerson($person_id, $oe_kurzbz, $all);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -45,19 +46,20 @@ class Message extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* getMessagesByUID
|
||||
*/
|
||||
public function getMessagesByUID()
|
||||
{
|
||||
$uid = $this->get('uid');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
$all = $this->get('all');
|
||||
|
||||
|
||||
if (isset($uid))
|
||||
{
|
||||
$result = $this->messagelib->getMessagesByUID($uid, $all);
|
||||
|
||||
$result = $this->messagelib->getMessagesByUID($uid, $oe_kurzbz, $all);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -65,18 +67,18 @@ class Message extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* getMessagesByToken
|
||||
*/
|
||||
public function getMessagesByToken()
|
||||
{
|
||||
$token = $this->get('token');
|
||||
|
||||
|
||||
if (isset($token))
|
||||
{
|
||||
$result = $this->messagelib->getMessageByToken($token);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -84,19 +86,20 @@ class Message extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* getSentMessagesByPerson
|
||||
*/
|
||||
public function getSentMessagesByPerson()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
$all = $this->get('all');
|
||||
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->messagelib->getSentMessagesByPerson($person_id, $all);
|
||||
|
||||
$result = $this->messagelib->getSentMessagesByPerson($person_id, $oe_kurzbz, $all);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -104,18 +107,19 @@ class Message extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* getCountUnreadMessages
|
||||
*/
|
||||
public function getCountUnreadMessages()
|
||||
{
|
||||
$person_id = $this->get('person_id');
|
||||
|
||||
$oe_kurzbz = $this->get('oe_kurzbz'); // root organisation unit
|
||||
|
||||
if (isset($person_id))
|
||||
{
|
||||
$result = $this->messagelib->getCountUnreadMessages($person_id);
|
||||
|
||||
$result = $this->messagelib->getCountUnreadMessages($person_id, $oe_kurzbz);
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -123,14 +127,14 @@ class Message extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* postMessage
|
||||
*/
|
||||
public function postMessage()
|
||||
{
|
||||
$validation = $this->_validatePostMessage($this->post());
|
||||
|
||||
|
||||
if (isSuccess($validation))
|
||||
{
|
||||
$result = $this->messagelib->sendMessage(
|
||||
@@ -140,10 +144,10 @@ class Message extends APIv1_Controller
|
||||
$this->post()['body'],
|
||||
PRIORITY_NORMAL,
|
||||
isset($this->post()['relationmessage_id']) ? $this->post()['relationmessage_id'] : null,
|
||||
isset($this->post()['oe_kurzbz']) ? $this->post()['oe_kurzbz'] : null,
|
||||
isset($this->post()['oe_kurzbz']) ? $this->post()['oe_kurzbz'] : null, // Sender organisation unit
|
||||
isset($this->post()['multiPartMime']) ? $this->post()['multiPartMime'] : true
|
||||
);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -151,27 +155,27 @@ class Message extends APIv1_Controller
|
||||
$this->response($validation, REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* postMessageVorlage
|
||||
*/
|
||||
public function postMessageVorlage()
|
||||
{
|
||||
$validation = $this->_validatePostMessageVorlage($this->post());
|
||||
|
||||
|
||||
if (isSuccess($validation))
|
||||
{
|
||||
$result = $this->messagelib->sendMessageVorlage(
|
||||
isset($this->post()['sender_id']) ? $this->post()['sender_id'] : null,
|
||||
isset($this->post()['receiver_id']) ? $this->post()['receiver_id'] : null,
|
||||
$this->post()['vorlage_kurzbz'],
|
||||
isset($this->post()['oe_kurzbz']) ? $this->post()['oe_kurzbz'] : null,
|
||||
isset($this->post()['oe_kurzbz']) ? $this->post()['oe_kurzbz'] : null, // Sender organisation unit
|
||||
$this->post()['data'],
|
||||
isset($this->post()['relationmessage_id']) ? $this->post()['relationmessage_id'] : null,
|
||||
isset($this->post()['orgform_kurzbz']) ? $this->post()['orgform_kurzbz'] : null,
|
||||
isset($this->post()['multiPartMime']) ? $this->post()['multiPartMime'] : true
|
||||
);
|
||||
|
||||
|
||||
$this->response($result, REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
@@ -179,16 +183,16 @@ class Message extends APIv1_Controller
|
||||
$this->response($validation, REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* postChangeStatus
|
||||
*/
|
||||
public function postChangeStatus()
|
||||
{
|
||||
$person_id = $this->post()['person_id'];
|
||||
$message_id = $this->post()['message_id'];
|
||||
$status = $this->post()['status'];
|
||||
|
||||
|
||||
if (isset($person_id) && isset($message_id) && isset($status) &&
|
||||
in_array($status, array(MSG_STATUS_UNREAD, MSG_STATUS_READ, MSG_STATUS_ARCHIVED, MSG_STATUS_DELETED)))
|
||||
{
|
||||
@@ -201,7 +205,10 @@ class Message extends APIv1_Controller
|
||||
$this->response();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* _validatePostMessage
|
||||
*/
|
||||
private function _validatePostMessage($message = null)
|
||||
{
|
||||
if (!isset($message))
|
||||
@@ -220,10 +227,13 @@ class Message extends APIv1_Controller
|
||||
{
|
||||
return error('If a receiver_id is not given a oe_kurzbz must be specified');
|
||||
}
|
||||
|
||||
|
||||
return success('Input data are valid');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* _validatePostMessageVorlage
|
||||
*/
|
||||
private function _validatePostMessageVorlage($message = null)
|
||||
{
|
||||
if (!isset($message))
|
||||
@@ -242,7 +252,7 @@ class Message extends APIv1_Controller
|
||||
{
|
||||
return error('If a receiver_id is not given a oe_kurzbz must be specified');
|
||||
}
|
||||
|
||||
|
||||
return success('Input data are valid');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,29 +2,32 @@
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Messages extends VileSci_Controller
|
||||
class Messages extends VileSci_Controller
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
|
||||
// Loads the message library
|
||||
$this->load->library('MessageLib');
|
||||
|
||||
|
||||
// Loads the widget library
|
||||
$this->load->library('WidgetLib');
|
||||
|
||||
|
||||
$this->load->model('person/Person_model', 'PersonModel');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* write
|
||||
*/
|
||||
public function write($sender_id, $msg_id = null, $receiver_id = null)
|
||||
{
|
||||
$prestudent_id = $this->input->post('prestudent_id');
|
||||
$msg = null;
|
||||
|
||||
|
||||
// Get message data if possible
|
||||
if (is_numeric($msg_id) && is_numeric($receiver_id))
|
||||
{
|
||||
@@ -38,7 +41,7 @@ class Messages extends VileSci_Controller
|
||||
$msg = $msg->retval[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Get variables
|
||||
$this->load->model('system/Message_model', 'MessageModel');
|
||||
$msgVarsDataByPrestudentId = $this->MessageModel->getMsgVarsDataByPrestudentId($prestudent_id);
|
||||
@@ -46,7 +49,7 @@ class Messages extends VileSci_Controller
|
||||
{
|
||||
show_error($msgVarsDataByPrestudentId->retval);
|
||||
}
|
||||
|
||||
|
||||
if (!hasData($variables = $this->MessageModel->getMessageVars()))
|
||||
{
|
||||
unset($variables);
|
||||
@@ -60,11 +63,11 @@ class Messages extends VileSci_Controller
|
||||
$variablesArray['{'.str_replace(" ", "_", strtolower($variables->retval[$i])).'}'] = $variables->retval[$i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
array_shift($variables->retval); // Remove person_id
|
||||
array_shift($variables->retval); // Remove prestudent_id
|
||||
|
||||
// Organisation units
|
||||
|
||||
// Organisation units used to get the templates
|
||||
$oe_kurzbz = array(); // A person can have more organisation units
|
||||
$this->load->model('person/Benutzerfunktion_model', 'BenutzerfunktionModel');
|
||||
$benutzerResult = $this->BenutzerfunktionModel->getByPersonId($sender_id);
|
||||
@@ -75,7 +78,7 @@ class Messages extends VileSci_Controller
|
||||
$oe_kurzbz[] = $val->oe_kurzbz;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Admin or commoner?
|
||||
$this->load->model('system/Benutzerrolle_model', 'BenutzerrolleModel');
|
||||
$isAdmin = $this->BenutzerrolleModel->isAdminByPersonId($sender_id);
|
||||
@@ -83,38 +86,45 @@ class Messages extends VileSci_Controller
|
||||
{
|
||||
show_error($isAdmin->retval);
|
||||
}
|
||||
|
||||
|
||||
$data = array (
|
||||
'sender_id' => $sender_id,
|
||||
'receivers' => $msgVarsDataByPrestudentId->retval,
|
||||
'message' => $msg,
|
||||
'variables' => $variablesArray,
|
||||
'oe_kurzbz' => $oe_kurzbz,
|
||||
'oe_kurzbz' => $oe_kurzbz, // used to get the templates
|
||||
'isAdmin' => $isAdmin->retval
|
||||
);
|
||||
|
||||
|
||||
$v = $this->load->view('system/messageWrite', $data);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* send
|
||||
*/
|
||||
public function send($sender_id)
|
||||
{
|
||||
$error = false;
|
||||
|
||||
|
||||
$subject = $this->input->post('subject');
|
||||
$body = $this->input->post('body');
|
||||
$prestudents = $this->input->post('prestudents');
|
||||
$relationmessage_id = $this->input->post('relationmessage_id');
|
||||
|
||||
|
||||
if (!isset($relationmessage_id) || $relationmessage_id == '')
|
||||
{
|
||||
$relationmessage_id = null;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
$data = $this->MessageModel->getMsgVarsDataByPrestudentId($prestudents);
|
||||
if (hasData($data))
|
||||
|
||||
//
|
||||
$this->load->model('crm/Prestudent_model', 'PrestudentModel');
|
||||
$prestudentsData = $this->PrestudentModel->getOrganisationunits($prestudents);
|
||||
|
||||
//
|
||||
if (hasData($data) && hasData($prestudentsData))
|
||||
{
|
||||
for ($i = 0; $i < count($data->retval); $i++)
|
||||
{
|
||||
@@ -125,10 +135,19 @@ class Messages extends VileSci_Controller
|
||||
$newKey = str_replace(" ", "_", strtolower($key));
|
||||
$dataArray[$newKey] = $dataArray[$key];
|
||||
}
|
||||
|
||||
|
||||
$parsedText = $this->messagelib->parseMessageText($body, $dataArray);
|
||||
|
||||
$msg = $this->messagelib->sendMessage($sender_id, $dataArray['person_id'], $subject, $parsedText, PRIORITY_NORMAL, $relationmessage_id);
|
||||
|
||||
$oe_kurzbz = '';
|
||||
for ($p = 0; $p < count($prestudentsData->retval); $p++)
|
||||
{
|
||||
if ($prestudentsData->retval[$p]->prestudent_id == $data->retval[$i]->prestudent_id)
|
||||
{
|
||||
$oe_kurzbz = $prestudentsData->retval[$p]->oe_kurzbz;
|
||||
}
|
||||
}
|
||||
|
||||
$msg = $this->messagelib->sendMessage($sender_id, $dataArray['person_id'], $subject, $parsedText, PRIORITY_NORMAL, $relationmessage_id, $oe_kurzbz);
|
||||
if ($msg->error)
|
||||
{
|
||||
show_error($msg->retval);
|
||||
@@ -137,20 +156,20 @@ class Messages extends VileSci_Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!$error)
|
||||
{
|
||||
echo "Messages sent successfully";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* getPersonId
|
||||
*/
|
||||
private function getPersonId()
|
||||
{
|
||||
$person_id = null;
|
||||
|
||||
|
||||
if ($this->input->get('person_id') !== null)
|
||||
{
|
||||
$person_id = $this->input->get('person_id');
|
||||
@@ -159,45 +178,45 @@ class Messages extends VileSci_Controller
|
||||
{
|
||||
$person_id = $this->input->get('person_id');
|
||||
}
|
||||
|
||||
|
||||
if (!is_numeric($person_id))
|
||||
{
|
||||
show_error('Person_id is not numeric');
|
||||
}
|
||||
|
||||
|
||||
return $person_id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* getVorlage
|
||||
*/
|
||||
public function getVorlage()
|
||||
{
|
||||
$vorlage_kurzbz = $this->input->get('vorlage_kurzbz');
|
||||
|
||||
|
||||
if (isset($vorlage_kurzbz))
|
||||
{
|
||||
$this->load->model('system/Vorlagestudiengang_model', 'VorlagestudiengangModel');
|
||||
$result = $this->VorlagestudiengangModel->loadWhere(array('vorlage_kurzbz' => $vorlage_kurzbz));
|
||||
|
||||
|
||||
$this->output
|
||||
->set_content_type('application/json')
|
||||
->set_output(json_encode($result));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* parseMessageText
|
||||
*/
|
||||
public function parseMessageText()
|
||||
{
|
||||
$prestudent_id = $this->input->get('prestudent_id');
|
||||
$text = $this->input->get('text');
|
||||
|
||||
|
||||
if (isset($prestudent_id))
|
||||
{
|
||||
$data = $this->MessageModel->getMsgVarsDataByPrestudentId($prestudent_id);
|
||||
|
||||
|
||||
$parsedText = "";
|
||||
if (hasData($data))
|
||||
{
|
||||
@@ -207,13 +226,13 @@ class Messages extends VileSci_Controller
|
||||
$newKey = str_replace(" ", "_", strtolower($key));
|
||||
$dataArray[$newKey] = $dataArray[$key];
|
||||
}
|
||||
|
||||
|
||||
$parsedText = $this->messagelib->parseMessageText($text, $dataArray);
|
||||
}
|
||||
|
||||
|
||||
$this->output
|
||||
->set_content_type('application/json')
|
||||
->set_output(json_encode($parsedText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,12 +62,12 @@ class MessageLib
|
||||
/**
|
||||
* getMessagesByUID() - will return all messages, including the latest status for specified user. It don´t returns Attachments.
|
||||
*/
|
||||
public function getMessagesByUID($uid, $all = false)
|
||||
public function getMessagesByUID($uid, $oe_kurzbz = null, $all = false)
|
||||
{
|
||||
if (empty($uid))
|
||||
return $this->_error('', MSG_ERR_INVALID_MSG_ID);
|
||||
|
||||
$msg = $this->ci->RecipientModel->getMessagesByUID($uid, $all);
|
||||
$msg = $this->ci->RecipientModel->getMessagesByUID($uid, $oe_kurzbz, $all);
|
||||
|
||||
return $msg;
|
||||
}
|
||||
@@ -75,12 +75,12 @@ class MessageLib
|
||||
/**
|
||||
* getMessagesByPerson() - will return all messages, including the latest status for specified user. It don´t returns Attachments.
|
||||
*/
|
||||
public function getMessagesByPerson($person_id, $all = false)
|
||||
public function getMessagesByPerson($person_id, $oe_kurzbz = null, $all = false)
|
||||
{
|
||||
if (empty($person_id))
|
||||
return $this->_error('', MSG_ERR_INVALID_MSG_ID);
|
||||
|
||||
$msg = $this->ci->RecipientModel->getMessagesByPerson($person_id, $all);
|
||||
$msg = $this->ci->RecipientModel->getMessagesByPerson($person_id, $oe_kurzbz, $all);
|
||||
|
||||
return $msg;
|
||||
}
|
||||
@@ -88,12 +88,12 @@ class MessageLib
|
||||
/**
|
||||
* getSentMessagesByPerson() - Get all sent messages from a person identified by person_id
|
||||
*/
|
||||
public function getSentMessagesByPerson($person_id, $all = false)
|
||||
public function getSentMessagesByPerson($person_id, $oe_kurzbz = null, $all = false)
|
||||
{
|
||||
if (empty($person_id))
|
||||
return $this->_error('', MSG_ERR_INVALID_MSG_ID);
|
||||
|
||||
$msg = $this->ci->MessageModel->getMessagesByPerson($person_id, $all);
|
||||
$msg = $this->ci->MessageModel->getMessagesByPerson($person_id, $oe_kurzbz, $all);
|
||||
|
||||
return $msg;
|
||||
}
|
||||
@@ -144,12 +144,12 @@ class MessageLib
|
||||
/**
|
||||
* getCountUnreadMessages
|
||||
*/
|
||||
public function getCountUnreadMessages($person_id)
|
||||
public function getCountUnreadMessages($person_id, $oe_kurzbz = null)
|
||||
{
|
||||
if (!is_numeric($person_id))
|
||||
return $this->_error('', MSG_ERR_INVALID_RECIPIENTS);
|
||||
|
||||
$msg = $this->ci->RecipientModel->getCountUnreadMessages($person_id);
|
||||
$msg = $this->ci->RecipientModel->getCountUnreadMessages($person_id, $oe_kurzbz);
|
||||
|
||||
return $msg;
|
||||
}
|
||||
@@ -422,7 +422,8 @@ class MessageLib
|
||||
for ($i = 0; $i < count($result->retval) && $sent; $i++)
|
||||
{
|
||||
// If the person has an email account
|
||||
if (!is_null($result->retval[$i]->receiver) && $result->retval[$i]->receiver != '')
|
||||
if ((!is_null($result->retval[$i]->receiver) && $result->retval[$i]->receiver != '')
|
||||
|| (!is_null($result->retval[$i]->employeecontact) && $result->retval[$i]->employeecontact != ''))
|
||||
{
|
||||
$href = $this->ci->config->item('message_server').$this->ci->config->item('message_html_view_url').$result->retval[0]->token;
|
||||
// Using a template for the html email body
|
||||
@@ -461,10 +462,17 @@ class MessageLib
|
||||
{
|
||||
$sender = $result->retval[0]->sender;
|
||||
}
|
||||
|
||||
$receiverContanct = $result->retval[$i]->receiver;
|
||||
if (!is_null($result->retval[$i]->employeecontact) && $result->retval[$i]->employeecontact != '')
|
||||
{
|
||||
$receiverContanct = $result->retval[$i]->employeecontact.'@'.DOMAIN;
|
||||
}
|
||||
|
||||
// Sending email
|
||||
$sent = $this->ci->maillib->send(
|
||||
$sender,
|
||||
$result->retval[$i]->receiver,
|
||||
$receiverContanct,
|
||||
$result->retval[$i]->subject,
|
||||
$body,
|
||||
null,
|
||||
@@ -546,6 +554,7 @@ class MessageLib
|
||||
null,
|
||||
$message_id
|
||||
);
|
||||
|
||||
// Checks if errors were occurred
|
||||
if (isSuccess($result))
|
||||
{
|
||||
@@ -553,7 +562,8 @@ class MessageLib
|
||||
if (is_array($result->retval) && count($result->retval) > 0)
|
||||
{
|
||||
// If the person has an email account
|
||||
if (!is_null($result->retval[0]->receiver) && $result->retval[0]->receiver != '')
|
||||
if ((!is_null($result->retval[0]->receiver) && $result->retval[0]->receiver != '')
|
||||
|| (!is_null($result->retval[0]->employeecontact) && $result->retval[0]->employeecontact != ''))
|
||||
{
|
||||
// If it is required use a multi-part message in MIME format
|
||||
if ($multiPartMime === true)
|
||||
@@ -602,10 +612,16 @@ class MessageLib
|
||||
$sender = $result->retval[0]->sender;
|
||||
}
|
||||
|
||||
$receiverContanct = $result->retval[0]->receiver;
|
||||
if (!is_null($result->retval[0]->employeecontact) && $result->retval[0]->employeecontact != '')
|
||||
{
|
||||
$receiverContanct = $result->retval[0]->employeecontact.'@'.DOMAIN;
|
||||
}
|
||||
|
||||
// Sending email
|
||||
$sent = $this->ci->maillib->send(
|
||||
$sender,
|
||||
$result->retval[0]->receiver,
|
||||
$receiverContanct,
|
||||
is_null($subject) ? $result->retval[0]->subject : $subject, // if parameter subject is not null, use it!
|
||||
$bodyMsg,
|
||||
null,
|
||||
|
||||
@@ -10,14 +10,14 @@ class OrganisationseinheitLib
|
||||
public function __construct()
|
||||
{
|
||||
$this->ci =& get_instance();
|
||||
|
||||
|
||||
// Loads model Organisationseinheit_model
|
||||
$this->ci->load->model('organisation/Organisationseinheit_model', 'OrganisationseinheitModel');
|
||||
|
||||
|
||||
// Loads helper message to manage returning messages
|
||||
$this->ci->load->helper('Message');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* treeSearch
|
||||
*
|
||||
@@ -54,7 +54,7 @@ class OrganisationseinheitLib
|
||||
}
|
||||
|
||||
$result = $this->ci->OrganisationseinheitModel->getOneLevel($schema, $table, $select, $where, $orderby, $oe_kurzbz);
|
||||
|
||||
|
||||
if (hasData($result))
|
||||
{
|
||||
if ($result->retval[0]->_ppk != null && $result->retval[0]->oe_kurzbz == null)
|
||||
@@ -62,12 +62,14 @@ class OrganisationseinheitLib
|
||||
return $this->treeSearch($schema, $table, $select, $where, $orderby, $result->retval[0]->_ppk);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* treeSearchEntire
|
||||
*
|
||||
* Like tree search, but it returns all the results found while travelling through the tree structure
|
||||
*/
|
||||
public function treeSearchEntire($table, $alias, $fields, $where, $orderby, $oe_kurzbz)
|
||||
{
|
||||
@@ -89,13 +91,13 @@ class OrganisationseinheitLib
|
||||
}
|
||||
|
||||
$result = $this->ci->OrganisationseinheitModel->getOneLevelAlias($table, $alias, $select, $where, $orderby, $oe_kurzbz);
|
||||
|
||||
|
||||
if (hasData($result))
|
||||
{
|
||||
if ($result->retval[0]->_pk != null && $result->retval[0]->_ppk != null && $result->retval[0]->_jtpk != null)
|
||||
{
|
||||
$tmpResult = $this->treeSearchEntire($table, $alias, $select, $where, $orderby, $result->retval[0]->_ppk);
|
||||
|
||||
|
||||
if (hasData($tmpResult)
|
||||
&& $tmpResult->retval[0]->_pk != null
|
||||
&& $tmpResult->retval[0]->_ppk != null
|
||||
@@ -109,7 +111,25 @@ class OrganisationseinheitLib
|
||||
$result = $this->treeSearchEntire($table, $alias, $select, $where, $orderby, $result->retval[0]->_ppk);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* getRoot - Get the root of the organisation unit tree which belongs the given organisation unit parameter
|
||||
*/
|
||||
public function getRoot($oe_kurzbz)
|
||||
{
|
||||
$result = $this->ci->OrganisationseinheitModel->load($oe_kurzbz);
|
||||
|
||||
if (hasData($result))
|
||||
{
|
||||
if ($result->retval[0]->oe_parent_kurzbz != null)
|
||||
{
|
||||
$result = $this->getRoot($result->retval[0]->oe_parent_kurzbz);
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ class UDFLib
|
||||
const PHRASES_APP_NAME = 'core'; // Name of the app parameter used to retrive phrases
|
||||
|
||||
private $_ci; // Code igniter instance
|
||||
private $UDFs; // Associative array containing names and values of the given UDF parameters
|
||||
|
||||
/**
|
||||
* Loads fhc helper
|
||||
@@ -55,6 +56,8 @@ class UDFLib
|
||||
$this->_ci =& get_instance();
|
||||
|
||||
$this->_ci->load->helper('fhc');
|
||||
|
||||
$this->UDFs = array(); // by default is an empty array
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -88,7 +88,7 @@ class Prestudent_model extends DB_Model
|
||||
)
|
||||
{
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
|
||||
$this->addSelect(
|
||||
'p.person_id,
|
||||
prestudent_id,
|
||||
@@ -179,4 +179,17 @@ class Prestudent_model extends DB_Model
|
||||
|
||||
return $this->loadWhere($parametersArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* getOrganisationunits
|
||||
*/
|
||||
public function getOrganisationunits($prestudent_id)
|
||||
{
|
||||
$query = 'SELECT p.prestudent_id, s.oe_kurzbz
|
||||
FROM public.tbl_prestudent p
|
||||
INNER JOIN public.tbl_studiengang s USING(studiengang_kz)
|
||||
WHERE prestudent_id %s ?';
|
||||
|
||||
return $this->execQuery(sprintf($query, is_array($prestudent_id) ? 'IN' : '='), array($prestudent_id));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
class Organisationseinheit_model extends DB_Model
|
||||
{
|
||||
/**
|
||||
@@ -11,6 +12,9 @@ class Organisationseinheit_model extends DB_Model
|
||||
$this->pk = 'oe_kurzbz';
|
||||
}
|
||||
|
||||
/**
|
||||
* getRecursiveList
|
||||
*/
|
||||
public function getRecursiveList($typ = null)
|
||||
{
|
||||
$qry = "WITH RECURSIVE tree (oe_kurzbz, bezeichnung, path, organisationseinheittyp_kurzbz) AS (
|
||||
@@ -31,17 +35,17 @@ class Organisationseinheit_model extends DB_Model
|
||||
SELECT oe_kurzbz AS id,
|
||||
SUBSTRING(REGEXP_REPLACE(path, '[A-z]+\|', '-', 'g') || bezeichnung, 2) AS description
|
||||
FROM tree";
|
||||
|
||||
|
||||
$parametersArray = array();
|
||||
|
||||
|
||||
if (is_array($typ) && count($typ) > 0)
|
||||
{
|
||||
$parametersArray[] = $typ;
|
||||
$qry .= ' WHERE organisationseinheittyp_kurzbz IN ?';
|
||||
}
|
||||
|
||||
|
||||
$qry .= ' ORDER BY path';
|
||||
|
||||
|
||||
return $this->execQuery($qry, $parametersArray);
|
||||
}
|
||||
|
||||
@@ -78,12 +82,15 @@ class Organisationseinheit_model extends DB_Model
|
||||
) _joined_table ON (orgs._pk = _joined_table._pk)
|
||||
WHERE orgs._pk = ?
|
||||
ORDER BY %s";
|
||||
|
||||
|
||||
$query = sprintf($query, $table, $fields, $schema, $table, $where, $orderby);
|
||||
|
||||
|
||||
return $this->execQuery($query, array($oe_kurzbz));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getOneLevelAlias
|
||||
*/
|
||||
public function getOneLevelAlias($table, $alias, $fields, $where, $orderby, $oe_kurzbz)
|
||||
{
|
||||
$query = "WITH RECURSIVE organizations(_pk, _ppk) AS
|
||||
@@ -103,9 +110,9 @@ class Organisationseinheit_model extends DB_Model
|
||||
) _joined_table ON (orgs._pk = _joined_table._jtpk)
|
||||
WHERE orgs._pk = ?
|
||||
ORDER BY %s";
|
||||
|
||||
|
||||
$query = sprintf($query, $alias, $fields, $table, $where, $orderby);
|
||||
|
||||
|
||||
return $this->execQuery($query, array($oe_kurzbz));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ class Studiengang_model extends DB_Model
|
||||
public function getStudienplan($studiensemester_kurzbz, $ausbildungssemester, $aktiv, $onlinebewerbung)
|
||||
{
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
|
||||
// Join table public.tbl_studiengang with table lehre.tbl_studienordnung on column studiengang_kz
|
||||
$this->addJoin('lehre.tbl_studienordnung', 'studiengang_kz');
|
||||
// Then join with table lehre.tbl_studienplan on column studienordnung_id
|
||||
@@ -138,10 +138,10 @@ class Studiengang_model extends DB_Model
|
||||
/**
|
||||
* getStudiengangBewerbung
|
||||
*/
|
||||
public function getStudiengangBewerbung()
|
||||
public function getStudiengangBewerbung($oe_kurzbz = null)
|
||||
{
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
|
||||
// Join table public.tbl_studiengang with table lehre.tbl_studienordnung on column studiengang_kz
|
||||
$this->addJoin('lehre.tbl_studienordnung', 'studiengang_kz');
|
||||
// Join table lehre.tbl_studienordnung with table lehre.tbl_akadgrad on column akadgrad_id
|
||||
@@ -161,21 +161,45 @@ class Studiengang_model extends DB_Model
|
||||
$this->addOrder('public.tbl_studiengang.bezeichnung');
|
||||
$this->addOrder('lehre.tbl_studienplan.studienplan_id');
|
||||
|
||||
$where = 'public.tbl_studiengang.aktiv = TRUE
|
||||
AND public.tbl_studiengang.onlinebewerbung = TRUE
|
||||
AND (
|
||||
(tbl_bewerbungstermine.beginn <= NOW() AND tbl_bewerbungstermine.ende >= NOW())
|
||||
OR tbl_bewerbungstermine.beginn IS NULL
|
||||
)
|
||||
AND ss.studiensemester_kurzbz IN (
|
||||
SELECT DISTINCT studiensemester_kurzbz
|
||||
FROM public.tbl_bewerbungstermine
|
||||
WHERE beginn <= NOW() AND ende >= NOW()
|
||||
)
|
||||
AND ss.semester = 1
|
||||
AND lehre.tbl_studienplan.aktiv = TRUE';
|
||||
|
||||
if ($oe_kurzbz != null)
|
||||
{
|
||||
$where .= ' AND public.tbl_studiengang.oe_kurzbz IN (
|
||||
WITH RECURSIVE organizations(_pk, _ppk) AS
|
||||
(
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o
|
||||
WHERE o.oe_parent_kurzbz IS NULL
|
||||
AND o.oe_kurzbz = '.$this->escape($oe_kurzbz).'
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o INNER JOIN organizations orgs ON (o.oe_parent_kurzbz = orgs._pk)
|
||||
)
|
||||
SELECT orgs._pk
|
||||
FROM organizations orgs
|
||||
)';
|
||||
}
|
||||
|
||||
$result = $this->loadTree(
|
||||
'public.tbl_studiengang',
|
||||
array(
|
||||
'lehre.tbl_studienplan',
|
||||
'lehre.tbl_akadgrad'
|
||||
),
|
||||
'public.tbl_studiengang.aktiv = TRUE
|
||||
AND public.tbl_studiengang.onlinebewerbung = TRUE
|
||||
AND ((tbl_bewerbungstermine.beginn <= NOW() AND tbl_bewerbungstermine.ende >= NOW()) OR tbl_bewerbungstermine.beginn IS NULL)
|
||||
AND ss.studiensemester_kurzbz IN (
|
||||
SELECT DISTINCT studiensemester_kurzbz FROM public.tbl_bewerbungstermine WHERE beginn <= NOW() AND ende >= NOW()
|
||||
)
|
||||
AND ss.semester = 1
|
||||
AND lehre.tbl_studienplan.aktiv = TRUE'
|
||||
,
|
||||
$where,
|
||||
array(
|
||||
'studienplaene',
|
||||
'akadgrad'
|
||||
@@ -191,7 +215,7 @@ class Studiengang_model extends DB_Model
|
||||
public function getAppliedStudiengang($person_id, $studiensemester_kurzbz, $titel)
|
||||
{
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
|
||||
// Then join with table public.tbl_prestudent
|
||||
$this->addJoin('public.tbl_prestudent', 'studiengang_kz');
|
||||
// Join table public.tbl_prestudentstatus
|
||||
@@ -233,14 +257,14 @@ class Studiengang_model extends DB_Model
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getAppliedStudiengangFromNow
|
||||
*/
|
||||
public function getAppliedStudiengangFromNow($person_id, $titel)
|
||||
{
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
|
||||
// Then join with table public.tbl_prestudent
|
||||
$this->addJoin('public.tbl_prestudent', 'studiengang_kz');
|
||||
// Join table public.tbl_prestudentstatus
|
||||
@@ -257,10 +281,10 @@ class Studiengang_model extends DB_Model
|
||||
'prestudent_id',
|
||||
'LEFT'
|
||||
);
|
||||
|
||||
|
||||
// Ordering by studiengang_kz and studienplan_id
|
||||
$this->addOrder('public.tbl_studiengang.bezeichnung');
|
||||
|
||||
|
||||
$result = $this->loadTree(
|
||||
'public.tbl_studiengang',
|
||||
array(
|
||||
@@ -283,7 +307,74 @@ class Studiengang_model extends DB_Model
|
||||
'notizen'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* getAppliedStudiengangFromNowOE
|
||||
*/
|
||||
public function getAppliedStudiengangFromNowOE($person_id, $titel, $oe_kurzbz)
|
||||
{
|
||||
if (isError($ent = $this->isEntitled($this->dbTable, PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR))) return $ent;
|
||||
|
||||
// Then join with table public.tbl_prestudent
|
||||
$this->addJoin('public.tbl_prestudent', 'studiengang_kz');
|
||||
// Join table public.tbl_prestudentstatus
|
||||
$this->addJoin('public.tbl_prestudentstatus', 'prestudent_id');
|
||||
// Then join with table lehre.tbl_studienplan
|
||||
$this->addJoin('lehre.tbl_studienplan', 'studienplan_id');
|
||||
// Then join with table public.tbl_notizzuordnung + public.tbl_notiz
|
||||
$this->addJoin(
|
||||
'(
|
||||
SELECT public.tbl_notiz.*, public.tbl_notizzuordnung.prestudent_id
|
||||
FROM public.tbl_notiz JOIN public.tbl_notizzuordnung USING(notiz_id)
|
||||
WHERE titel = '.$this->escape($titel).
|
||||
') tbl_notiz',
|
||||
'prestudent_id',
|
||||
'LEFT'
|
||||
);
|
||||
|
||||
// Ordering by studiengang_kz and studienplan_id
|
||||
$this->addOrder('public.tbl_studiengang.bezeichnung');
|
||||
|
||||
$result = $this->loadTree(
|
||||
'public.tbl_studiengang',
|
||||
array(
|
||||
'public.tbl_prestudent',
|
||||
'public.tbl_prestudentstatus',
|
||||
'lehre.tbl_studienplan',
|
||||
'public.tbl_notiz'
|
||||
),
|
||||
'public.tbl_prestudent.person_id = '.$this->escape($person_id).
|
||||
' AND public.tbl_prestudentstatus.studiensemester_kurzbz IN (
|
||||
SELECT studiensemester_kurzbz
|
||||
FROM public.tbl_studiensemester
|
||||
WHERE ende >= NOW()
|
||||
)
|
||||
AND (public.tbl_prestudentstatus.status_kurzbz = \'Interessent\')
|
||||
AND public.tbl_studiengang.oe_kurzbz IN (
|
||||
WITH RECURSIVE organizations(_pk, _ppk) AS
|
||||
(
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o
|
||||
WHERE o.oe_parent_kurzbz IS NULL
|
||||
AND o.oe_kurzbz = '.$this->escape($oe_kurzbz).'
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o INNER JOIN organizations orgs ON (o.oe_parent_kurzbz = orgs._pk)
|
||||
)
|
||||
SELECT orgs._pk
|
||||
FROM organizations orgs
|
||||
)',
|
||||
array(
|
||||
'prestudenten',
|
||||
'prestudentstatus',
|
||||
'studienplaene',
|
||||
'notizen'
|
||||
)
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
@@ -13,11 +13,11 @@ class Message_model extends DB_Model
|
||||
$this->dbTable = 'public.tbl_msg_message';
|
||||
$this->pk = 'message_id';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all sent messages from a person identified by person_id
|
||||
*/
|
||||
public function getMessagesByPerson($person_id, $all)
|
||||
public function getMessagesByPerson($person_id, $oe_kurzbz, $all)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (isError($ent = $this->isEntitled('public.tbl_person', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
@@ -26,7 +26,7 @@ class Message_model extends DB_Model
|
||||
return $ent;
|
||||
if (isError($ent = $this->isEntitled('public.tbl_msg_message', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
return $ent;
|
||||
|
||||
|
||||
$sql = 'SELECT m.message_id,
|
||||
m.person_id,
|
||||
m.subject,
|
||||
@@ -52,9 +52,9 @@ class Message_model extends DB_Model
|
||||
ORDER BY insertamum DESC
|
||||
) s ON (m.message_id = s.message_id AND m.person_id = s.person_id)
|
||||
WHERE m.person_id = ?';
|
||||
|
||||
|
||||
$parametersArray = array($person_id);
|
||||
|
||||
|
||||
if ($all == 'true')
|
||||
{
|
||||
$sql = sprintf($sql, '');
|
||||
@@ -63,17 +63,36 @@ class Message_model extends DB_Model
|
||||
{
|
||||
$sql = sprintf($sql, 'WHERE status >= 3');
|
||||
}
|
||||
|
||||
|
||||
if ($oe_kurzbz != null)
|
||||
{
|
||||
array_push($parametersArray, $oe_kurzbz);
|
||||
$sql .= ' AND m.oe_kurzbz IN (
|
||||
WITH RECURSIVE organizations(_pk, _ppk) AS
|
||||
(
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o
|
||||
WHERE o.oe_parent_kurzbz IS NULL
|
||||
AND o.oe_kurzbz = ?
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o INNER JOIN organizations orgs ON (o.oe_parent_kurzbz = orgs._pk)
|
||||
)
|
||||
SELECT orgs._pk
|
||||
FROM organizations orgs
|
||||
)';
|
||||
}
|
||||
|
||||
return $this->execQuery($sql, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getMessageVars
|
||||
*/
|
||||
public function getMessageVars()
|
||||
{
|
||||
$result = $this->db->query('SELECT * FROM public.vw_msg_vars WHERE 0 = 1');
|
||||
|
||||
|
||||
if ($result)
|
||||
{
|
||||
return success($result->list_fields());
|
||||
@@ -83,14 +102,14 @@ class Message_model extends DB_Model
|
||||
return error($this->db->error(), FHC_DB_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getMsgVarsDataByPrestudentId
|
||||
*/
|
||||
public function getMsgVarsDataByPrestudentId($prestudent_id)
|
||||
{
|
||||
$query = 'SELECT * FROM public.vw_msg_vars WHERE prestudent_id %s ?';
|
||||
|
||||
|
||||
return $this->execQuery(sprintf($query, is_array($prestudent_id) ? 'IN' : '='), array($prestudent_id));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class Recipient_model extends DB_Model
|
||||
$this->pk = array('person_id', 'message_id');
|
||||
$this->hasSequence = false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get data for a received message
|
||||
*/
|
||||
@@ -27,7 +27,7 @@ class Recipient_model extends DB_Model
|
||||
return $ent;
|
||||
if (isError($ent = $this->isEntitled('public.tbl_msg_recipient', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
return $ent;
|
||||
|
||||
|
||||
$query = 'SELECT mr.message_id,
|
||||
mr.person_id,
|
||||
mm.subject,
|
||||
@@ -43,13 +43,13 @@ class Recipient_model extends DB_Model
|
||||
SELECT person_id, kontakt FROM public.tbl_kontakt WHERE kontakttyp = \'email\'
|
||||
) ks ON (ks.person_id = mr.person_id)
|
||||
WHERE mr.message_id = ? AND mr.person_id = ?';
|
||||
|
||||
|
||||
$parametersArray = array($message_id, $person_id);
|
||||
|
||||
|
||||
// Get data of the messages to sent
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get a received message identified by token
|
||||
*/
|
||||
@@ -62,7 +62,7 @@ class Recipient_model extends DB_Model
|
||||
return $ent;
|
||||
if (isError($ent = $this->isEntitled('public.tbl_msg_status', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
return $ent;
|
||||
|
||||
|
||||
$sql = 'SELECT r.message_id,
|
||||
m.person_id as sender_id,
|
||||
r.person_id as receiver_id,
|
||||
@@ -80,14 +80,14 @@ class Recipient_model extends DB_Model
|
||||
) s ON (r.message_id = s.message_id AND r.person_id = s.person_id)
|
||||
WHERE r.token = ?
|
||||
LIMIT 1';
|
||||
|
||||
|
||||
return $this->execQuery($sql, array(MSG_STATUS_DELETED, $token));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all received messages for a person identified by person_id
|
||||
*/
|
||||
public function getMessagesByPerson($person_id, $all)
|
||||
public function getMessagesByPerson($person_id, $oe_kurzbz, $all)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (isError($ent = $this->isEntitled('public.tbl_msg_recipient', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
@@ -98,7 +98,7 @@ class Recipient_model extends DB_Model
|
||||
return $ent;
|
||||
if (isError($ent = $this->isEntitled('public.tbl_msg_status', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
return $ent;
|
||||
|
||||
|
||||
$sql = 'SELECT DISTINCT ON (r.message_id) r.message_id,
|
||||
m.person_id,
|
||||
m.subject,
|
||||
@@ -124,11 +124,10 @@ class Recipient_model extends DB_Model
|
||||
%s
|
||||
ORDER BY insertamum DESC
|
||||
) s ON (m.message_id = s.message_id AND r.person_id = s.person_id)
|
||||
WHERE r.person_id = ?
|
||||
ORDER BY r.message_id DESC, s.status DESC';
|
||||
|
||||
WHERE r.person_id = ?';
|
||||
|
||||
$parametersArray = array($person_id);
|
||||
|
||||
|
||||
if ($all == 'true')
|
||||
{
|
||||
$sql = sprintf($sql, '');
|
||||
@@ -138,17 +137,38 @@ class Recipient_model extends DB_Model
|
||||
array_push($parametersArray, $person_id, $person_id);
|
||||
$sql = sprintf($sql, 'WHERE person_id = ? AND message_id NOT IN (SELECT message_id FROM public.tbl_msg_status WHERE status >= 3 AND person_id = ?)');
|
||||
}
|
||||
|
||||
|
||||
if ($oe_kurzbz != null)
|
||||
{
|
||||
array_push($parametersArray, $oe_kurzbz);
|
||||
$sql .= ' AND m.oe_kurzbz IN (
|
||||
WITH RECURSIVE organizations(_pk, _ppk) AS
|
||||
(
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o
|
||||
WHERE o.oe_parent_kurzbz IS NULL
|
||||
AND o.oe_kurzbz = ?
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o INNER JOIN organizations orgs ON (o.oe_parent_kurzbz = orgs._pk)
|
||||
)
|
||||
SELECT orgs._pk
|
||||
FROM organizations orgs
|
||||
)';
|
||||
}
|
||||
|
||||
$sql .= ' ORDER BY r.message_id DESC, s.status DESC';
|
||||
|
||||
return $this->execQuery($sql, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all received messages for a person identified by uid
|
||||
*/
|
||||
public function getMessagesByUID($uid, $all)
|
||||
public function getMessagesByUID($uid, $oe_kurzbz, $all)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
// @ToDo: Define the special right for reading own messages 'basis/message:own'
|
||||
// TODO: Define the special right for reading own messages 'basis/message:own'
|
||||
// if same user
|
||||
if ($uid === getAuthUID())
|
||||
{
|
||||
@@ -163,15 +183,14 @@ class Recipient_model extends DB_Model
|
||||
}
|
||||
|
||||
// get Data
|
||||
$sql = 'SELECT b.uid,
|
||||
$sql = 'SELECT DISTINCT ON (r.message_id) r.message_id,
|
||||
m.person_id,
|
||||
m.message_id,
|
||||
m.subject,
|
||||
m.body,
|
||||
m.priority,
|
||||
m.insertamum,
|
||||
m.relationmessage_id,
|
||||
m.oe_kurzbz,
|
||||
m.insertamum,
|
||||
p.anrede,
|
||||
p.titelpost,
|
||||
p.titelpre,
|
||||
@@ -185,21 +204,46 @@ class Recipient_model extends DB_Model
|
||||
JOIN public.tbl_person p ON (r.person_id = p.person_id)
|
||||
JOIN public.tbl_benutzer b ON (r.person_id = b.person_id)
|
||||
JOIN (
|
||||
SELECT * FROM public.tbl_msg_status ORDER BY insertamum DESC LIMIT 1
|
||||
) s ON (r.message_id = s.message_id AND r.person_id = s.person_id)
|
||||
SELECT message_id, person_id, status, statusinfo, insertamum
|
||||
FROM public.tbl_msg_status
|
||||
ORDER BY insertamum DESC
|
||||
) s ON (m.message_id = s.message_id AND r.person_id = s.person_id)
|
||||
WHERE b.uid = ?';
|
||||
|
||||
if (! $all)
|
||||
|
||||
$parametersArray = array($uid);
|
||||
|
||||
if ($all == 'true')
|
||||
{
|
||||
$sql .= ' AND (status < 3 OR status IS NULL)';
|
||||
|
||||
return $this->execQuery($sql, array($uid));
|
||||
}
|
||||
|
||||
if ($oe_kurzbz != null)
|
||||
{
|
||||
array_push($parametersArray, $oe_kurzbz);
|
||||
$sql .= ' AND m.oe_kurzbz IN (
|
||||
WITH RECURSIVE organizations(_pk, _ppk) AS
|
||||
(
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o
|
||||
WHERE o.oe_parent_kurzbz IS NULL
|
||||
AND o.oe_kurzbz = ?
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o INNER JOIN organizations orgs ON (o.oe_parent_kurzbz = orgs._pk)
|
||||
)
|
||||
SELECT orgs._pk
|
||||
FROM organizations orgs
|
||||
)';
|
||||
}
|
||||
|
||||
return $this->execQuery($sql, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getMessages
|
||||
*
|
||||
*
|
||||
* Gets all the messages to be sent
|
||||
*
|
||||
*
|
||||
* @param kontaktType specifies the type of the kontakt to get
|
||||
* @param sent specifies the status of the messages to get (NULL never sent, otherwise the shipping date)
|
||||
* @param limit specifies the number of messages to get
|
||||
@@ -214,10 +258,11 @@ class Recipient_model extends DB_Model
|
||||
return $ent;
|
||||
if (isError($ent = $this->isEntitled('public.tbl_kontakt', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
return $ent;
|
||||
|
||||
|
||||
$query = 'SELECT mm.message_id,
|
||||
ks.kontakt as sender,
|
||||
kr.kontakt as receiver,
|
||||
mu.mitarbeiter_uid as employeeContact,
|
||||
mr.person_id as receiver_id,
|
||||
mr.token,
|
||||
mm.subject,
|
||||
@@ -229,10 +274,16 @@ class Recipient_model extends DB_Model
|
||||
) ks ON (ks.person_id = mm.person_id)
|
||||
LEFT JOIN (
|
||||
SELECT person_id, kontakt FROM public.tbl_kontakt WHERE kontakttyp = ?
|
||||
) kr ON (kr.person_id = mr.person_id)';
|
||||
|
||||
) kr ON (kr.person_id = mr.person_id)
|
||||
LEFT JOIN (
|
||||
SELECT b.person_id,
|
||||
m.mitarbeiter_uid
|
||||
FROM public.tbl_benutzer b INNER JOIN public.tbl_mitarbeiter m ON(b.uid = m.mitarbeiter_uid)
|
||||
WHERE b.aktiv = TRUE
|
||||
) mu ON (mu.person_id = mr.person_id)';
|
||||
|
||||
$parametersArray = array($kontaktType, $kontaktType);
|
||||
|
||||
|
||||
if (is_null($sent) || $sent == '')
|
||||
{
|
||||
$query .= ' WHERE mr.sent IS NULL';
|
||||
@@ -242,38 +293,39 @@ class Recipient_model extends DB_Model
|
||||
array_push($parametersArray, $sent);
|
||||
$query .= ' WHERE mr.sent = ?';
|
||||
}
|
||||
|
||||
|
||||
if (!is_null($message_id))
|
||||
{
|
||||
array_push($parametersArray, $message_id);
|
||||
$query .= ' AND mm.message_id = ?';
|
||||
}
|
||||
|
||||
|
||||
$query .= ' ORDER BY mr.insertamum ASC';
|
||||
|
||||
|
||||
if (!is_null($limit))
|
||||
{
|
||||
$query .= ' LIMIT ?';
|
||||
array_push($parametersArray, $limit);
|
||||
}
|
||||
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all unread messages for a person identified by person_id
|
||||
*/
|
||||
public function getCountUnreadMessages($person_id)
|
||||
public function getCountUnreadMessages($person_id, $oe_kurzbz)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (isError($ent = $this->isEntitled('public.tbl_msg_recipient', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
return $ent;
|
||||
if (isError($ent = $this->isEntitled('public.tbl_msg_status', PermissionLib::SELECT_RIGHT, FHC_NORIGHT, FHC_MODEL_ERROR)))
|
||||
return $ent;
|
||||
|
||||
|
||||
$sql = 'SELECT COUNT(r.message_id) AS unreadMessages
|
||||
FROM public.tbl_msg_recipient r JOIN public.tbl_msg_status s
|
||||
ON (r.message_id = s.message_id AND r.person_id = s.person_id)
|
||||
FROM public.tbl_msg_recipient r
|
||||
JOIN public.tbl_msg_status s ON (r.message_id = s.message_id AND r.person_id = s.person_id)
|
||||
JOIN public.tbl_msg_message m ON (r.message_id = m.message_id)
|
||||
WHERE r.person_id = ?
|
||||
AND s.status = ?
|
||||
AND r.message_id NOT IN (
|
||||
@@ -283,9 +335,28 @@ class Recipient_model extends DB_Model
|
||||
WHERE r.person_id = ?
|
||||
AND s.status > ?
|
||||
)';
|
||||
|
||||
|
||||
$parametersArray = array($person_id, MSG_STATUS_UNREAD, $person_id, MSG_STATUS_UNREAD);
|
||||
|
||||
|
||||
if ($oe_kurzbz != null)
|
||||
{
|
||||
array_push($parametersArray, $oe_kurzbz);
|
||||
$sql .= ' AND m.oe_kurzbz IN (
|
||||
WITH RECURSIVE organizations(_pk, _ppk) AS
|
||||
(
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o
|
||||
WHERE o.oe_parent_kurzbz IS NULL
|
||||
AND o.oe_kurzbz = ?
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz
|
||||
FROM public.tbl_organisationseinheit o INNER JOIN organizations orgs ON (o.oe_parent_kurzbz = orgs._pk)
|
||||
)
|
||||
SELECT orgs._pk
|
||||
FROM organizations orgs
|
||||
)';
|
||||
}
|
||||
|
||||
return $this->execQuery($sql, $parametersArray);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$this->load->view('templates/header', array('title' => 'StudienjahrNew', 'jqueryComposer' => true));
|
||||
$this->load->view('templates/header', array('title' => 'StudienjahrNew', 'jqueryCurrent' => true));
|
||||
?>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$this->load->view('templates/header', array('title' => 'StudiensemesterNew', 'jqueryComposer' => true, 'datepicker' => true, 'datepickerclass' => 'dateinput'));
|
||||
$this->load->view('templates/header', array('title' => 'StudiensemesterNew', 'jqueryCurrent' => true, 'datepicker' => true, 'datepickerclass' => 'dateinput'));
|
||||
?>
|
||||
<body>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php $this->load->view("templates/header", array("title" => "Users manager", "jquery19" => true, "tablesort" => true, "jquery_checkboxes" => true, "jquery_custom" => true)); ?>
|
||||
<?php $this->load->view("templates/header", array("title" => "Users manager", "jqueryV1" => true, "tablesort" => true, "jquery_checkboxes" => true, "jquery_custom" => true)); ?>
|
||||
|
||||
<body>
|
||||
<form id="usersFiltersForm" action="" method="post">
|
||||
@@ -56,9 +56,9 @@
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<form id="linkUsersForm" action="" method="post">
|
||||
<?php
|
||||
if ($users != null)
|
||||
@@ -197,14 +197,14 @@
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
$hrefLinkToStufe = str_replace("/system/aufnahme/PrestudentMultiAssign", "/system/aufnahme/PrestudentMultiAssign/linkToStufe", $_SERVER["REQUEST_URI"]);
|
||||
$hrefLinkToAufnahmegruppe = str_replace("/system/aufnahme/PrestudentMultiAssign", "/system/aufnahme/PrestudentMultiAssign/linkToAufnahmegruppe", $_SERVER["REQUEST_URI"]);
|
||||
?>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
if ($("#linkToStufe"))
|
||||
{
|
||||
@@ -243,42 +243,42 @@
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if ($('#studiengangFilter'))
|
||||
{
|
||||
$('#studiengangFilter').change(function() {
|
||||
$('#usersFiltersForm').submit();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if ($('#studiensemesterFilter'))
|
||||
{
|
||||
$('#studiensemesterFilter').change(function() {
|
||||
$('#usersFiltersForm').submit();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if ($('#aufnahmegruppeFilter'))
|
||||
{
|
||||
$('#aufnahmegruppeFilter').change(function() {
|
||||
$('#usersFiltersForm').submit();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if ($('#stufeFilter'))
|
||||
{
|
||||
$('#stufeFilter').change(function() {
|
||||
$('#usersFiltersForm').submit();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if ($('#reihungstestFilter'))
|
||||
{
|
||||
$('#reihungstestFilter').change(function() {
|
||||
$('#usersFiltersForm').submit();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
$(".tablesorter").each(function(i, v) {
|
||||
$("#"+v.id).tablesorter(
|
||||
{
|
||||
@@ -316,8 +316,8 @@
|
||||
$("#mailSendButton").html('Mail an alle senden');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
<?php $this->load->view("templates/footer"); ?>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php $this->load->view("templates/header", array("title" => "MessageReply", "jquery19" => true, "tinymce" => true)); ?>
|
||||
<?php $this->load->view("templates/header", array("title" => "MessageReply", "jqueryV1" => true, "tinymce" => true)); ?>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<?php
|
||||
$href = str_replace("/system/Messages/write", "/system/Messages/send", $_SERVER["REQUEST_URI"]);
|
||||
?>
|
||||
|
||||
|
||||
<form id="sendForm" method="post" action="<?php echo $href; ?>">
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
@@ -47,7 +47,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="80%">
|
||||
@@ -86,7 +86,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
@@ -106,9 +106,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<?php
|
||||
if (isset($receivers) && count($receivers) > 0)
|
||||
{
|
||||
@@ -130,7 +130,7 @@
|
||||
<option value="<?php echo $receiver->prestudent_id; ?>"><?php echo $receiver->Nachname . " " . $receiver->Vorname; ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</select>
|
||||
|
||||
<strong><a href="#" id="refresh">Refresh</a></strong>
|
||||
@@ -151,7 +151,7 @@
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
for($i = 0; $i < count($receivers); $i++)
|
||||
{
|
||||
@@ -159,7 +159,7 @@
|
||||
echo '<input type="hidden" name="prestudents[]" value="' . $receiver->prestudent_id . '">' . "\n";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
if (isset($message))
|
||||
{
|
||||
@@ -168,14 +168,14 @@
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
tinymce.init({
|
||||
selector: "#bodyTextArea"
|
||||
});
|
||||
|
||||
|
||||
tinymce.init({
|
||||
menubar: false,
|
||||
toolbar: false,
|
||||
@@ -183,7 +183,7 @@
|
||||
selector: "#tinymcePreview",
|
||||
statusbar: true
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
if ($("#variables"))
|
||||
{
|
||||
@@ -194,17 +194,17 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if ($("#recipients"))
|
||||
{
|
||||
$("#recipients").change(tinymcePreviewSetContent);
|
||||
}
|
||||
|
||||
|
||||
if ($("#refresh"))
|
||||
{
|
||||
$("#refresh").click(tinymcePreviewSetContent);
|
||||
}
|
||||
|
||||
|
||||
if ($("#sendButton") && $("#sendForm"))
|
||||
{
|
||||
$("#sendButton").click(function() {
|
||||
@@ -218,7 +218,7 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if ($("#vorlageDnD"))
|
||||
{
|
||||
$("#vorlageDnD").change(function() {
|
||||
@@ -227,7 +227,7 @@
|
||||
<?php
|
||||
$url = str_replace("/system/Messages/write", "/system/Messages/getVorlage", $_SERVER["REQUEST_URI"]);
|
||||
?>
|
||||
|
||||
|
||||
$.ajax({
|
||||
dataType: "json",
|
||||
url: "<?php echo $url; ?>",
|
||||
@@ -244,7 +244,7 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
function tinymcePreviewSetContent()
|
||||
{
|
||||
if ($("#tinymcePreview"))
|
||||
@@ -259,14 +259,14 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function parseMessageText(prestudent_id, text)
|
||||
{
|
||||
<?php
|
||||
$url = str_replace("/system/Messages/write", "/system/Messages/parseMessageText", $_SERVER["REQUEST_URI"]);
|
||||
$url = substr($url, 0, strrpos($url, '/'));
|
||||
?>
|
||||
|
||||
|
||||
$.ajax({
|
||||
dataType: "json",
|
||||
url: "<?php echo $url; ?>",
|
||||
@@ -280,7 +280,7 @@
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
<?php $this->load->view("templates/footer"); ?>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
isset($title) ? $title = 'VileSci - '.$title : $title = 'VileSci';
|
||||
!isset($jquery19) ? $jquery19 = false : $jquery19 = $jquery19;
|
||||
!isset($jqueryComposer) ? $jqueryComposer = false : $jqueryComposer = $jqueryComposer;
|
||||
!isset($jqueryV1) ? $jqueryV1 = false : $jqueryV1 = $jqueryV1;
|
||||
!isset($jqueryCurrent) ? $jqueryCurrent = false : $jqueryCurrent = $jqueryCurrent;
|
||||
!isset($jqueryui) ? $jqueryui = false : $jqueryui = $jqueryui;
|
||||
!isset($jquery_checkboxes) ? $jquery_checkboxes = false : $jquery_checkboxes = $jquery_checkboxes;
|
||||
!isset($jquery_custom) ? $jquery_custom = false : $jquery_custom = $jquery_custom;
|
||||
@@ -19,15 +19,15 @@ isset($title) ? $title = 'VileSci - '.$title : $title = 'VileSci';
|
||||
!isset($datepicker) ? $datepicker = false : $datepicker = $datepicker;
|
||||
|
||||
if ($tablesort || $jquery_checkboxes || $jquery_custom)
|
||||
$jquery19 = true;
|
||||
$jqueryV1 = true;
|
||||
|
||||
if($datepicker)
|
||||
$jqueryui = true;
|
||||
|
||||
if($jqueryui)
|
||||
$jqueryComposer = true;
|
||||
$jqueryCurrent = true;
|
||||
|
||||
if($jquery19 && $jqueryComposer)
|
||||
if($jqueryV1 && $jqueryCurrent)
|
||||
show_error("Two JQuery versions used: composer and include folder version");
|
||||
|
||||
?>
|
||||
@@ -42,17 +42,19 @@ if($jquery19 && $jqueryComposer)
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url('skin/tablesort.css'); ?>" />
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($jquery19) : ?>
|
||||
<script type="text/javascript" src="<?php echo base_url('include/js/jquery1.9.min.js'); ?>"></script>
|
||||
<?php if($jqueryV1) : ?>
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/jquery/jqueryV1/jquery-1.12.4.min.js'); ?>"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/christianbach/tablesorter/jquery.tablesorter.min.js'); ?>"></script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($jqueryComposer) : ?>
|
||||
<?php if($jqueryCurrent) : ?>
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/components/jquery/jquery.min.js'); ?>"></script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($jqueryui) : ?>
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/components/jqueryui/jquery-ui.min.js'); ?>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url('vendor/components/jqueryui/themes/base/jquery-ui.min.css'); ?>" />
|
||||
<script type="text/javascript" src="<?php echo base_url('include/js/jquery.ui.datepicker.translation.js'); ?>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url('vendor/components/jqueryui/themes/base/jquery-ui.min.css'); ?>" />
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($jquery_checkboxes) : ?>
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ require_once('../include/phrasen.class.php');
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
?>
|
||||
<script src="../include/js/jquery.min.1.11.1.js"></script>
|
||||
<script src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
+9
-4
@@ -6,7 +6,12 @@
|
||||
<link rel="stylesheet" href="../skin/jquery.css" type="text/css">
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
|
||||
<script src="../include/js/jquery.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
</head>
|
||||
<body class="main">
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
@@ -15,7 +20,7 @@
|
||||
<td class="boxshadow">
|
||||
<table cellspacing="0" cellpadding="0" class="header">
|
||||
<tr>
|
||||
<td align="center" valign="middle" style="background-image: url(../skin/styles/default/header.png); background-position: top; background-repeat: repeat-x;">
|
||||
<td align="center" valign="middle" style="background-image: url(../skin/styles/default/header.png); background-position: top; background-repeat: repeat-x;">
|
||||
<img class="header_logo" src="../skin/styles/default/logo_250x130.png" alt="logo">
|
||||
<img src="../skin/styles/default/cis_logo_text_400x78.png" />
|
||||
<br><br><br>
|
||||
@@ -28,7 +33,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:10%;" >
|
||||
<td align="center" valign="bottom">
|
||||
<td align="center" valign="bottom">
|
||||
<div style="color:grey">Powered by <a href="http://www.fhcomplete.org" target="blank">FH Complete</a></div>
|
||||
<br><br>
|
||||
</td>
|
||||
@@ -39,4 +44,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
+6
-1
@@ -165,7 +165,12 @@ $db = new basis_db();
|
||||
<link rel="stylesheet" href="../skin/jquery.css" type="text/css">
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
|
||||
<script src="../include/js/jquery.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
</head>
|
||||
<script type="text/javascript">
|
||||
function changeSprache(sprache)
|
||||
|
||||
+360
-357
File diff suppressed because it is too large
Load Diff
+7
-3
@@ -40,9 +40,13 @@ ob_start();
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<title>Menu</title>
|
||||
<script type="text/javascript" src="../include/js/flexcroll.js"></script>
|
||||
<link href="../skin/flexcrollstyles.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
function treemenu(obj)
|
||||
{
|
||||
@@ -93,7 +97,7 @@ ob_start();
|
||||
{
|
||||
treemenu($("#menu"));
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
+33
-28
@@ -42,13 +42,18 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../vendor/components/jqueryui/themes/base/jquery-ui.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/simplecropper.css">'.
|
||||
cropCss().'
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.min.1.11.1.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.Jcrop.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.SimpleCropper.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/tapmodo/Jcrop/js/Jcrop.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/tomazdragar/SimpleCropper/scripts/jquery.SimpleCropper.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/cropper.js"></script>
|
||||
<title>'.$p->t('profil/Bildupload').'</title>
|
||||
</head>
|
||||
@@ -59,11 +64,11 @@ function resize($filename, $width, $height)
|
||||
{
|
||||
$ext = explode('.',$_FILES['bild']['name']);
|
||||
$ext = strtolower($ext[count($ext)-1]);
|
||||
|
||||
|
||||
// Hoehe und Breite neu berechnen
|
||||
list($width_orig, $height_orig) = getimagesize($filename);
|
||||
|
||||
if ($width && ($width_orig < $height_orig))
|
||||
|
||||
if ($width && ($width_orig < $height_orig))
|
||||
{
|
||||
$width = ($height / $height_orig) * $width_orig;
|
||||
}
|
||||
@@ -71,19 +76,19 @@ function resize($filename, $width, $height)
|
||||
{
|
||||
$height = ($width / $width_orig) * $height_orig;
|
||||
}
|
||||
|
||||
$image_p = imagecreatetruecolor($width, $height);
|
||||
|
||||
|
||||
$image_p = imagecreatetruecolor($width, $height);
|
||||
|
||||
$image = imagecreatefromjpeg($filename);
|
||||
|
||||
|
||||
//Bild nur verkleinern aber nicht vergroessern
|
||||
if($width_orig>$width || $height_orig>$height)
|
||||
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
|
||||
else
|
||||
else
|
||||
$image_p = $image;
|
||||
|
||||
|
||||
imagejpeg($image_p, $filename, 80);
|
||||
|
||||
|
||||
@imagedestroy($image_p);
|
||||
@imagedestroy($image);
|
||||
}
|
||||
@@ -93,15 +98,15 @@ if(isset($_GET['person_id']))
|
||||
{
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($user);
|
||||
|
||||
|
||||
if($benutzer->person_id!=$_GET['person_id'])
|
||||
die($p->t('global/keineBerechtigungFuerDieseSeite'));
|
||||
|
||||
|
||||
$fs = new fotostatus();
|
||||
if($fs->akzeptiert($benutzer->person_id))
|
||||
die($p->t('profil/profilfotoUploadGesperrt'));
|
||||
}
|
||||
else
|
||||
else
|
||||
die($p->t('global/fehlerBeiDerParameteruebergabe'));
|
||||
|
||||
echo '<br>';
|
||||
@@ -130,7 +135,7 @@ function cropCss() {
|
||||
The outer-most container in a typical Jcrop instance
|
||||
If you are having difficulty with formatting related to styles
|
||||
on a parent element, place any fixes here or in a like selector
|
||||
|
||||
|
||||
You can also style this element if you want to add a border, etc
|
||||
A better method for styling can be seen below with .jcrop-light
|
||||
(Add a class to the holder and style elements for that extended class)
|
||||
@@ -301,24 +306,24 @@ function cropCss() {
|
||||
.simple-cropper-images{
|
||||
width: 820px;
|
||||
margin: 0 auto 20px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.cropme{
|
||||
background-image: url(../../skin/images/photoupload.png);
|
||||
}
|
||||
|
||||
|
||||
.cropme:hover{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
.text{
|
||||
font-family: arial;
|
||||
font-size: 14px;
|
||||
color: #4e4e4e;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
|
||||
.code{
|
||||
font-family: arial;
|
||||
font-size: 14px;
|
||||
@@ -332,7 +337,7 @@ function cropCss() {
|
||||
height:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
|
||||
#modal{
|
||||
z-index: 10;
|
||||
position: fixed;
|
||||
@@ -344,7 +349,7 @@ function cropCss() {
|
||||
opacity: 0.95;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
#preview{
|
||||
z-index: 11;
|
||||
position: fixed;
|
||||
@@ -357,7 +362,7 @@ function cropCss() {
|
||||
font-size: 0px;
|
||||
line-height: 0px;
|
||||
}
|
||||
|
||||
|
||||
#preview .buttons{
|
||||
width: 36px;
|
||||
position: absolute;
|
||||
|
||||
@@ -46,15 +46,18 @@ echo '
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/styles/jquery.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery-ui-1.9.2.custom.min.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery.ui.timepicker.css" type="text/css"/>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="../../../vendor/fgelinas/timepicker/jquery.ui.timepicker.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="../../../include/tiny_mce/tiny_mce.js" type="text/javascript" ></script>
|
||||
<script src="../../../include/js/jquery.ui.timepicker.js" type="text/javascript" ></script>
|
||||
<script src="../../../vendor/fgelinas/timepicker/jquery.ui.timepicker.js" type="text/javascript" ></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$.datepicker.setDefaults( $.datepicker.regional[ "de" ] );
|
||||
$("#datepicker_datum").datepicker(
|
||||
$("#datepicker_datum").datepicker(
|
||||
{
|
||||
changeMonth: true,
|
||||
defaultDate: "+7",
|
||||
@@ -68,7 +71,7 @@ echo '
|
||||
minutes: {starts: 30, ends: 150, interval: 30},
|
||||
rows: 5,
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
@@ -79,12 +82,12 @@ echo '
|
||||
theme : "advanced",
|
||||
language : "de",
|
||||
file_browser_callback: "FHCFileBrowser",
|
||||
|
||||
|
||||
plugins : "spellchecker,pagebreak,style,layer,table,advhr,advimage,advlink,inlinepopups,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
|
||||
|
||||
|
||||
// Theme options
|
||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,|,bullist,pastetext",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,|,bullist,pastetext",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "center",
|
||||
@@ -100,17 +103,17 @@ echo '
|
||||
paste_strip_class_attributes: true,
|
||||
paste_retain_style_properties: "",
|
||||
paste_text_sticky: true,
|
||||
setup : function(ed)
|
||||
{
|
||||
setup : function(ed)
|
||||
{
|
||||
ed.onInit.add(function(ed)
|
||||
{ ed.pasteAsPlainText = true;
|
||||
ed.controlManager.setActive("pastetext", true);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
function checkrequired()
|
||||
{
|
||||
var error = false;
|
||||
@@ -141,9 +144,9 @@ echo '
|
||||
{
|
||||
document.getElementById("datepicker_datum").style.border = "";
|
||||
}
|
||||
|
||||
|
||||
var datum = document.getElementById("datepicker_datum").value;
|
||||
var Tag = datum.substring(0,2);
|
||||
var Tag = datum.substring(0,2);
|
||||
var Monat = datum.substring(3,5);
|
||||
Monat = Monat-1;
|
||||
var Jahr = datum.substring(6,10);
|
||||
@@ -160,7 +163,7 @@ echo '
|
||||
{
|
||||
document.getElementById("datepicker_datum").style.border = "";
|
||||
}
|
||||
|
||||
|
||||
if (error)
|
||||
return false;
|
||||
else
|
||||
@@ -168,7 +171,7 @@ echo '
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
#wrapper
|
||||
#wrapper
|
||||
{
|
||||
width: 80%;
|
||||
padding: 0 10px 15px 10px;
|
||||
@@ -176,21 +179,21 @@ echo '
|
||||
background: #eee;
|
||||
text-align: left;
|
||||
}
|
||||
#wrapper h4
|
||||
#wrapper h4
|
||||
{
|
||||
font-size: 17px;
|
||||
margin-top: 0;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
#weiter
|
||||
{
|
||||
width: 80%;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
|
||||
|
||||
padding: 10px 10px 10px 10px;
|
||||
border: 1px solid #D6E9C6;
|
||||
background: #DFF0D8;
|
||||
@@ -201,7 +204,7 @@ echo '
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
|
||||
|
||||
padding: 10px 10px 10px 10px;
|
||||
border: 1px solid #ccc;
|
||||
background: #ddd;
|
||||
@@ -212,7 +215,7 @@ echo '
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
|
||||
|
||||
padding: 10px 10px 10px 10px;
|
||||
border: 1px solid #ccc;
|
||||
background: #EDCECE;
|
||||
@@ -221,7 +224,7 @@ echo '
|
||||
{
|
||||
text-decoration: none;
|
||||
}
|
||||
.ui-timepicker-table td a
|
||||
.ui-timepicker-table td a
|
||||
{
|
||||
padding:0.2em 0.3em 0.2em 0.3em;
|
||||
width: 1.8em;
|
||||
@@ -242,26 +245,26 @@ if(isset($_POST['save']))
|
||||
$coodle_id = $_POST['coodle_id'];
|
||||
if (isset($_POST['mailversand']))
|
||||
$mailversand = true;
|
||||
else
|
||||
else
|
||||
$mailversand = false;
|
||||
|
||||
|
||||
if (isset($_POST['teilnehmer_anonym']))
|
||||
$teilnehmer_anonym = true;
|
||||
else
|
||||
else
|
||||
$teilnehmer_anonym = false;
|
||||
|
||||
|
||||
if (isset($_POST['termin_anonym']))
|
||||
$termin_anonym = true;
|
||||
else
|
||||
else
|
||||
$termin_anonym = false;
|
||||
|
||||
|
||||
$coodle = new coodle();
|
||||
|
||||
|
||||
if($coodle_id!='')
|
||||
{
|
||||
if(!$coodle->load($coodle_id))
|
||||
die($coodle->errormsg);
|
||||
|
||||
|
||||
if($coodle->ersteller_uid!=$user)
|
||||
{
|
||||
die($p->t('basis/keineBerechtigung'));
|
||||
@@ -276,7 +279,7 @@ if(isset($_POST['save']))
|
||||
$coodle->insertvon = $user;
|
||||
$coodle->coodle_status_kurzbz = 'neu';
|
||||
}
|
||||
|
||||
|
||||
$coodle->titel = $titel;
|
||||
$coodle->beschreibung = $beschreibung;
|
||||
$coodle->dauer = $dauer;
|
||||
@@ -286,7 +289,7 @@ if(isset($_POST['save']))
|
||||
$coodle->mailversand = $mailversand;
|
||||
$coodle->teilnehmer_anonym = $teilnehmer_anonym;
|
||||
$coodle->termine_anonym = $termin_anonym;
|
||||
|
||||
|
||||
if($coodle->save())
|
||||
{
|
||||
$message.= '<span class="ok">'.$p->t('global/erfolgreichgespeichert').'</span>';
|
||||
@@ -294,11 +297,11 @@ if(isset($_POST['save']))
|
||||
if ($coodle->new == true)
|
||||
{
|
||||
$coodletermin = new coodle();
|
||||
|
||||
|
||||
$coodletermin->datum = '1900-01-01';
|
||||
$coodletermin->uhrzeit = '00:00:01';
|
||||
$coodletermin->coodle_id = $coodle->coodle_id;
|
||||
|
||||
|
||||
if (!$coodletermin->saveTermin(true))
|
||||
$message.= '<span class="error">'.$coodletermin->errormsg.'</span>';
|
||||
}
|
||||
@@ -316,10 +319,10 @@ elseif(isset($_GET['coodle_id']))
|
||||
{
|
||||
if($coodle->ersteller_uid!=$user)
|
||||
die($p->t('global/keineBerechtigungFuerDieseSeite'));
|
||||
|
||||
|
||||
if(($coodle->coodle_status_kurzbz!='neu') && ($coodle->coodle_status_kurzbz!='laufend'))
|
||||
{
|
||||
// Wenn bereits abgeschlosse oder storniert,
|
||||
// Wenn bereits abgeschlosse oder storniert,
|
||||
// kann nicht mehr bearbeitet werden
|
||||
die($p->t('coodle/umfrageNichtGueltig'));
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
/**
|
||||
* Coodle Terminauswahl
|
||||
*
|
||||
*
|
||||
* Funktionen:
|
||||
* - hinzufuegen von Ressourcen (Personen, Raeume und externe Personen)
|
||||
* - setzen von Terminvorschlaegen
|
||||
@@ -41,7 +41,7 @@ $datum_obj = new datum();
|
||||
|
||||
if(!check_lektor($uid))
|
||||
die($p->t('global/keineBerechtigung'));
|
||||
|
||||
|
||||
if(!isset($_REQUEST['coodle_id']))
|
||||
die($p->t('global/fehlerBeiDerParameteruebergabe'));
|
||||
|
||||
@@ -97,14 +97,14 @@ if(isset($_POST['action']) && $_POST['action']=='start')
|
||||
echo "Fehler beim Laden des Benutzers ".$db->convert_html_chars($row->uid);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if($benutzer->geschlecht=='w')
|
||||
$anrede = "Sehr geehrte Frau ";
|
||||
else
|
||||
$anrede = "Sehr geehrter Herr ";
|
||||
|
||||
|
||||
$anrede.= $benutzer->titelpre.' '.$benutzer->vorname.' '.$benutzer->nachname.' '.$benutzer->titelpost;
|
||||
|
||||
|
||||
// Interner Teilnehmer
|
||||
$email = $row->uid.'@'.DOMAIN;
|
||||
$link = APP_ROOT.'cis/public/coodle.php?coodle_id='.urlencode($coodle_id).'&uid='.urlencode($row->uid);
|
||||
@@ -113,7 +113,7 @@ if(isset($_POST['action']) && $_POST['action']=='start')
|
||||
{
|
||||
// Externe Teilnehmer
|
||||
$email = $row->email;
|
||||
$anrede='Sehr geehrte(r) Herr/Frau '.$row->name;
|
||||
$anrede='Sehr geehrte(r) Herr/Frau '.$row->name;
|
||||
$link=APP_ROOT.'cis/public/coodle.php?coodle_id='.urlencode($coodle_id).'&zugangscode='.urlencode($row->zugangscode);
|
||||
}
|
||||
else
|
||||
@@ -128,7 +128,7 @@ if(isset($_POST['action']) && $_POST['action']=='start')
|
||||
$benutzer->load($uid);
|
||||
if ($benutzer->alias!='')
|
||||
$von = $benutzer->alias.'@'.DOMAIN;
|
||||
|
||||
|
||||
$html=$anrede.'!<br><br>
|
||||
Sie wurden zu einer Terminumfrage zum Thema "'.$db->convert_html_chars($coodle->titel).'" eingeladen.
|
||||
<br>
|
||||
@@ -138,7 +138,7 @@ if(isset($_POST['action']) && $_POST['action']=='start')
|
||||
Beschreibung:<br><br>
|
||||
'.$coodle->beschreibung.'<br><br>
|
||||
'.nl2br($sign);
|
||||
|
||||
|
||||
$text=$anrede."!\n\nSie wurden zu einer Terminumfrage zum Thema \"".$db->convert_html_chars($coodle->titel)."\" eingeladen.\n
|
||||
Bitte folgen Sie dem Link, um Ihre Terminwünsche bekannt zu geben:\n
|
||||
$link\n\n
|
||||
@@ -146,13 +146,13 @@ if(isset($_POST['action']) && $_POST['action']=='start')
|
||||
".strip_tags($coodle->beschreibung)."
|
||||
\n\n
|
||||
$sign";
|
||||
|
||||
|
||||
$mail = new mail($email, $von,'Terminumfrage - '.$coodle->titel, $text);
|
||||
$mail->setHTMLContent($html);
|
||||
if($mail->send())
|
||||
{
|
||||
echo $p->t('coodle/mailVersandtAn',array($email))."<br>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo '<br><b>'.$p->t('coodle/erfolgreichGestartet').'</b>';
|
||||
@@ -167,7 +167,7 @@ if(isset($_POST['action']) && $_POST['action']=='start')
|
||||
{
|
||||
die($p->t('coodle/keineTermineVorhanden'));
|
||||
}
|
||||
|
||||
|
||||
echo '</body></html>';
|
||||
exit();
|
||||
}
|
||||
@@ -178,21 +178,24 @@ echo '<html>
|
||||
<link rel="stylesheet" href="../../../skin/fhcomplete.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../include/js/fullcalendar/fullcalendar.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../../include/js/fullcalendar/fullcalendar.print.css" media="print" />
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
<script type="text/javascript" src="../../../include/js/fullcalendar/fullcalendar.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.contextmenu.r2.js"></script>
|
||||
<title>'.$p->t('coodle/coodle').' - '.$p->t('coodle/termine').'</title>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
|
||||
#wrap {
|
||||
width: 1100px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
|
||||
#wrap2 {
|
||||
float: left;
|
||||
}
|
||||
@@ -204,7 +207,7 @@ echo '<html>
|
||||
background: #eee;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
#external-events h4 {
|
||||
font-size: 17px;
|
||||
margin-top: 0;
|
||||
@@ -212,7 +215,7 @@ echo '<html>
|
||||
padding-bottom: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
.external-event { /* try to mimick the look of a real event */
|
||||
margin: 10px 0;
|
||||
padding: 2px 4px;
|
||||
@@ -223,13 +226,13 @@ echo '<html>
|
||||
border-radius: 2px;
|
||||
box-shadow: 3px 3px 3px #bbb;
|
||||
}
|
||||
|
||||
|
||||
#external-events p {
|
||||
margin: 1.5em 0;
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
||||
#external-events p input {
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
@@ -239,7 +242,7 @@ echo '<html>
|
||||
float: right;
|
||||
width: 900px;
|
||||
}
|
||||
|
||||
|
||||
#ressourcen {
|
||||
width: 150px;
|
||||
padding: 0 10px;
|
||||
@@ -248,7 +251,7 @@ echo '<html>
|
||||
background: #eee;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
#ressourcen h4 {
|
||||
font-size: 17px;
|
||||
margin-top: 0;
|
||||
@@ -256,7 +259,7 @@ echo '<html>
|
||||
padding-bottom: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
.ressourcen {
|
||||
margin: 10px 0;
|
||||
padding: 2px 4px;
|
||||
@@ -265,13 +268,13 @@ echo '<html>
|
||||
font-size: .85em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
#ressourcen p {
|
||||
margin: 1.5em 0;
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
||||
#ressourcen p input {
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
@@ -285,8 +288,8 @@ echo '<html>
|
||||
{
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
#fertig
|
||||
|
||||
#fertig
|
||||
{
|
||||
width: 150px;
|
||||
padding: 0 10px;
|
||||
@@ -295,8 +298,8 @@ echo '<html>
|
||||
background: #eee;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#fertig h4
|
||||
|
||||
#fertig h4
|
||||
{
|
||||
font-size: 17px;
|
||||
margin-top: 0;
|
||||
@@ -304,31 +307,31 @@ echo '<html>
|
||||
padding-bottom: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#fertig p
|
||||
|
||||
#fertig p
|
||||
{
|
||||
margin: 1.5em 0;
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{
|
||||
// Coodle Termin initialisieren
|
||||
$("#external-events div.external-event").each(function()
|
||||
// Coodle Termin initialisieren
|
||||
$("#external-events div.external-event").each(function()
|
||||
{
|
||||
var eventObject =
|
||||
var eventObject =
|
||||
{
|
||||
title: $.trim($(this).text()), // use the elements text as the event title
|
||||
termin: true
|
||||
};
|
||||
|
||||
|
||||
// store the Event Object in the DOM element so we can get to it later
|
||||
$(this).data("eventObject", eventObject);
|
||||
|
||||
|
||||
// make the event draggable using jQuery UI
|
||||
$(this).draggable(
|
||||
{
|
||||
@@ -338,8 +341,8 @@ echo '<html>
|
||||
scroll: false // behebt ruckeln im IE7
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
// Kalender Initialisieren
|
||||
$("#calendar").fullCalendar(
|
||||
{
|
||||
@@ -353,12 +356,12 @@ echo '<html>
|
||||
timeFormat: {
|
||||
// for agendaWeek and agendaDay
|
||||
agenda: "H:mm{ - H:mm}", // 5:00 - 6:30
|
||||
|
||||
|
||||
// for all other views
|
||||
"": "H:mm"
|
||||
},
|
||||
allDaySlot: true, // Ganztaegig Row anzeigen
|
||||
allDayText: "", //Text in ganztaegig Spalte
|
||||
allDayText: "", //Text in ganztaegig Spalte
|
||||
axisFormat: "H:mm",
|
||||
monthNames: ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
|
||||
monthNamesShort: ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun","Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
|
||||
@@ -388,16 +391,16 @@ echo '<html>
|
||||
editable: true,
|
||||
disableResizing: true,
|
||||
droppable: true, // this allows things to be dropped onto the calendar !!!
|
||||
drop: function(date, allDay)
|
||||
{
|
||||
drop: function(date, allDay)
|
||||
{
|
||||
// Event wird auf Kalender gezogen
|
||||
|
||||
|
||||
// gedropptes Event holen
|
||||
var originalEventObject = $(this).data("eventObject");
|
||||
|
||||
|
||||
// we need to copy it, so that multiple events dont have a reference to the same object
|
||||
var copiedEventObject = $.extend({}, originalEventObject);
|
||||
|
||||
|
||||
// assign it the date that was reported
|
||||
copiedEventObject.start = date;
|
||||
copiedEventObject.allDay = allDay;
|
||||
@@ -430,15 +433,15 @@ echo '<html>
|
||||
// Termin Speichern
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
"work": "addTermin",
|
||||
"datum": datum,
|
||||
"uhrzeit": uhrzeit,
|
||||
"coodle_id": "'.$coodle_id.'"
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
success: function(data)
|
||||
{
|
||||
if(isNaN(data))
|
||||
alert("ERROR:"+data)
|
||||
else
|
||||
@@ -456,10 +459,10 @@ echo '<html>
|
||||
eventDrop: function(event, dayDelta, minuteDelta, allDay, revertFunc, jsEvent, ui, view)
|
||||
{
|
||||
// Verschiebung eines Termins
|
||||
|
||||
|
||||
datum = $.fullCalendar.formatDate(event.start,"yyyy-MM-dd")
|
||||
uhrzeit = $.fullCalendar.formatDate(event.start,"HH:mm:ss")
|
||||
|
||||
|
||||
if(allDay)
|
||||
{
|
||||
// Wenn der Termin in die ganztaegig spalte gezogen wird,
|
||||
@@ -469,7 +472,7 @@ echo '<html>
|
||||
event.allDay=false;
|
||||
$("#calendar").fullCalendar("renderEvent", event, true);
|
||||
}
|
||||
|
||||
|
||||
// Pruefen ob der Termin in der Vergangenheit liegt
|
||||
if(datum+\' \'+uhrzeit<=\''.date('Y-m-d H:i:s').'\')
|
||||
{
|
||||
@@ -481,16 +484,16 @@ echo '<html>
|
||||
// Verschiebung Speichern
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
"work": "moveTermin",
|
||||
"datum": datum,
|
||||
"uhrzeit": uhrzeit,
|
||||
"coodle_termin_id": event.id,
|
||||
"coodle_id": "'.$coodle_id.'"
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
success: function(data)
|
||||
{
|
||||
if(data!="true")
|
||||
{
|
||||
alert("ERROR:"+data)
|
||||
@@ -505,28 +508,28 @@ echo '<html>
|
||||
});
|
||||
}
|
||||
},
|
||||
eventRender: function (event, element)
|
||||
{
|
||||
eventRender: function (event, element)
|
||||
{
|
||||
// Conext Menue nur an Umfragetermine nicht an FreeBusy Eintraege haengen
|
||||
if(event.termin)
|
||||
{
|
||||
element.contextMenu("myContextMenu",
|
||||
{
|
||||
bindings:
|
||||
bindings:
|
||||
{
|
||||
"delete": function(t)
|
||||
"delete": function(t)
|
||||
{
|
||||
// Termin loeschen
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
"work": "removeTermin",
|
||||
"coodle_termin_id": event.id,
|
||||
"coodle_id": "'.$coodle_id.'"
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
success: function(data)
|
||||
{
|
||||
if(data!="true")
|
||||
{
|
||||
alert("ERROR:"+data)
|
||||
@@ -540,11 +543,11 @@ echo '<html>
|
||||
}
|
||||
},
|
||||
error: function() { alert("error"); }
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
dayClick: function(date, allDay, jsEvent, view)
|
||||
{
|
||||
@@ -557,7 +560,7 @@ echo '<html>
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -592,11 +595,11 @@ echo '
|
||||
'.$p->t('coodle/ressource').':<br>
|
||||
<input id="input_ressource" type="text" size="10" />
|
||||
</p>
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{
|
||||
// Autocomplete Feld fuer Ressourcen initialisieren
|
||||
// Autocomplete Feld fuer Ressourcen initialisieren
|
||||
$("#input_ressource").autocomplete({
|
||||
source: "coodle_autocomplete.php?work=ressource",
|
||||
minLength:2,
|
||||
@@ -612,31 +615,31 @@ echo '
|
||||
select: function(event, ui)
|
||||
{
|
||||
//Ausgeaehlte Ressource zuweisen und Textfeld wieder leeren
|
||||
addRessource(ui.item.uid, ui.item.typ, ui.item.bezeichnung);
|
||||
addRessource(ui.item.uid, ui.item.typ, ui.item.bezeichnung);
|
||||
ui.item.value="";
|
||||
ui.item.label="";
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
* Fuegt eine Ressource hinzu
|
||||
*/
|
||||
*/
|
||||
function addRessource(id, typ, bezeichnung)
|
||||
{
|
||||
// Ressource Speichern
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
"work": "addressource",
|
||||
"id": id,
|
||||
"id": id,
|
||||
"typ": typ,
|
||||
"bezeichnung": bezeichnung,
|
||||
"coodle_id": "'.$coodle_id.'"
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
success: function(data)
|
||||
{
|
||||
if(data!="true")
|
||||
alert("ERROR:"+data)
|
||||
else
|
||||
@@ -660,7 +663,7 @@ echo '
|
||||
var text = document.createTextNode(bezeichnung);
|
||||
div.appendChild(text);
|
||||
bezeichnung = div.innerHTML;
|
||||
|
||||
|
||||
// Anzeige der Ressource mit Loeschen Button
|
||||
var code = \'<span class="ressourceItem"> \
|
||||
<a href="#delete" onclick="removeRessource(this, \\\'\'+id+\'\\\',\\\'\'+typ+\'\\\'); return false;"> \
|
||||
@@ -692,15 +695,15 @@ echo '
|
||||
// Ressource entfernen
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
url:"coodle_worker.php",
|
||||
data:{
|
||||
"work": "removeressource",
|
||||
"id": id,
|
||||
"id": id,
|
||||
"typ": typ,
|
||||
"coodle_id": "'.$coodle_id.'"
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
success: function(data)
|
||||
{
|
||||
if(data!="true")
|
||||
alert("ERROR:"+data)
|
||||
else
|
||||
@@ -712,7 +715,7 @@ echo '
|
||||
},
|
||||
error: function() { alert("error"); }
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -720,7 +723,7 @@ echo '
|
||||
*/
|
||||
function removeRessourceFromContent(item, id, typ)
|
||||
{
|
||||
|
||||
|
||||
$("#calendar").fullCalendar("removeEventSource",
|
||||
{
|
||||
url:"coodle_events.php?code="+encodeURIComponent(id+typ),
|
||||
@@ -737,7 +740,7 @@ echo '
|
||||
}';
|
||||
|
||||
echo '
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{';
|
||||
|
||||
// Bereits zugeteilte Ressourcen laden
|
||||
@@ -784,7 +787,7 @@ if(!$coodletermin->getTermine($coodle_id))
|
||||
foreach($coodletermin->result as $row)
|
||||
{
|
||||
echo '
|
||||
var eventObject =
|
||||
var eventObject =
|
||||
{
|
||||
id: "'.$db->convert_html_chars($row->coodle_termin_id).'",
|
||||
title: "'.$db->convert_html_chars($event_titel).'",
|
||||
@@ -810,7 +813,7 @@ echo '
|
||||
$("#externePersonen").hide();
|
||||
$("#ressourcenInput").show();
|
||||
}
|
||||
|
||||
|
||||
function AddExternal()
|
||||
{
|
||||
name=$("#externePersonName").val();
|
||||
|
||||
@@ -23,16 +23,16 @@
|
||||
*/
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../include/coodle.class.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
require_once('../../../include/benutzer.class.php');
|
||||
|
||||
$lang = getSprache();
|
||||
$lang = getSprache();
|
||||
|
||||
$p = new phrasen($lang);
|
||||
$p = new phrasen($lang);
|
||||
|
||||
$uid = get_uid();
|
||||
$uid = get_uid();
|
||||
$message = '';
|
||||
|
||||
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
@@ -45,31 +45,34 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#myTableFiles").tablesorter(
|
||||
{
|
||||
sortList: [[3,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function()
|
||||
});
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#myTableFiles2").tablesorter(
|
||||
{
|
||||
sortList: [[3,1]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<style>
|
||||
.wrapper h4
|
||||
.wrapper h4
|
||||
{
|
||||
font-size: 17px;
|
||||
margin-top: 0;
|
||||
@@ -93,9 +96,9 @@ $method = isset($_GET['method'])?$_GET['method']:'';
|
||||
// coodle umfrage löschen
|
||||
if($method=='delete')
|
||||
{
|
||||
$coodle= new coodle();
|
||||
$coodle= new coodle();
|
||||
$coodle_id = isset($_GET['coodle_id'])?$_GET['coodle_id']:'';
|
||||
|
||||
|
||||
if($coodle->load($coodle_id))
|
||||
{
|
||||
// löschen nur von eigenen Umfragen möglich
|
||||
@@ -142,8 +145,8 @@ echo '
|
||||
</thead><tbody>';
|
||||
|
||||
$beendeteUmfragen='';
|
||||
$datum = new datum();
|
||||
$coodle = new coodle();
|
||||
$datum = new datum();
|
||||
$coodle = new coodle();
|
||||
$coodle->loadStatus();
|
||||
$coodle->getCoodleFromUser($uid);
|
||||
foreach($coodle->result as $c)
|
||||
@@ -158,7 +161,7 @@ foreach($coodle->result as $c)
|
||||
<td>'.$coodle->convert_html_chars($datum->formatDatum($c->endedatum, 'd.m.Y')).'</td>
|
||||
<td nowrap>
|
||||
';
|
||||
|
||||
|
||||
// Bearbeiten Button
|
||||
if((($c->coodle_status_kurzbz=='neu')||($c->coodle_status_kurzbz=='laufend')) && $uid==$c->ersteller_uid)
|
||||
{
|
||||
@@ -166,7 +169,7 @@ foreach($coodle->result as $c)
|
||||
$title=$p->t('coodle/umfrageWurdeBereitsGestartet');
|
||||
else
|
||||
$title=$p->t('coodle/bearbeiten');
|
||||
|
||||
|
||||
$row.= ' <a href="stammdaten.php?coodle_id='.$c->coodle_id.'">
|
||||
<img src="../../../skin/images/edit.png" title="'.$title.'">
|
||||
</a>';
|
||||
@@ -174,10 +177,10 @@ foreach($coodle->result as $c)
|
||||
else
|
||||
{
|
||||
$title=$p->t('global/keineBerechtigung');
|
||||
|
||||
$row.= ' <img src="../../../skin/images/edit_grau.png" title="'.$title.'">';
|
||||
|
||||
$row.= ' <img src="../../../skin/images/edit_grau.png" title="'.$title.'">';
|
||||
}
|
||||
|
||||
|
||||
// Storno Button
|
||||
if($uid==$c->ersteller_uid && $c->coodle_status_kurzbz!='storniert' && $c->coodle_status_kurzbz!='abgeschlossen')
|
||||
{
|
||||
@@ -193,7 +196,7 @@ foreach($coodle->result as $c)
|
||||
// Umfrage Button
|
||||
if($c->coodle_status_kurzbz=='laufend' || $c->coodle_status_kurzbz=='abgeschlossen')
|
||||
{
|
||||
$row.= ' <a href="../../public/coodle.php?coodle_id='.$c->coodle_id.'">
|
||||
$row.= ' <a href="../../public/coodle.php?coodle_id='.$c->coodle_id.'">
|
||||
<img src="../../../skin/images/date_go.png" title="'.$p->t('coodle/zurUmfrage').'">
|
||||
</a>';
|
||||
}
|
||||
@@ -203,14 +206,14 @@ foreach($coodle->result as $c)
|
||||
$title=$p->t('coodle/umfrageNochNichtGestartet');
|
||||
else
|
||||
$title=$p->t('global/keineBerechtigung');
|
||||
|
||||
|
||||
$row.=' <img src="../../../skin/images/date_go_grau.png" title="'.$title.'">';
|
||||
}
|
||||
|
||||
$row.='
|
||||
|
||||
$row.='
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
if($c->coodle_status_kurzbz=='laufend' || $c->coodle_status_kurzbz=='neu')
|
||||
echo $row;
|
||||
else
|
||||
@@ -221,10 +224,10 @@ echo '</tbody></table></div>';
|
||||
if($beendeteUmfragen!='')
|
||||
{
|
||||
echo '<br>
|
||||
|
||||
|
||||
<div class="wrapper">
|
||||
<h4>'.$p->t('coodle/beendeteUmfragen').'</h4>
|
||||
|
||||
|
||||
<table id="myTableFiles2" class="tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -243,4 +246,4 @@ if($beendeteUmfragen!='')
|
||||
}
|
||||
echo '</body>
|
||||
</html>';
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -48,7 +48,12 @@ if(check_lektor($user))
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
|
||||
@@ -45,7 +45,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
|
||||
@@ -45,7 +45,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
|
||||
@@ -65,7 +65,12 @@ if(check_lektor($user))
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<title><?php echo $p->t("telefonverzeichnis/titelTelefonverzeichnis");?></title>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
|
||||
@@ -127,7 +127,12 @@ echo '
|
||||
<title>'.$p->t('abgabetool/abgabetool').'</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function confdel()
|
||||
|
||||
@@ -40,30 +40,35 @@ echo '
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.metadata.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.tablesorter.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery-archive/jquery-metadata/jquery.metadata.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#myTable").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]],
|
||||
widgets: [\'zebra\']
|
||||
});
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
';
|
||||
|
||||
if(isset($_GET['user']))
|
||||
{
|
||||
//Terminliste von anderen Personen darf nur dann angezeigt werden, wenn
|
||||
//Terminliste von anderen Personen darf nur dann angezeigt werden, wenn
|
||||
//die entsprechende Berechtigung vorhanden ist
|
||||
$rechte = new benutzerberechtigung();
|
||||
if(!$rechte->getBerechtigungen($uid))
|
||||
@@ -79,14 +84,14 @@ if(!$lektor->load($user))
|
||||
die($p->t('global/fehlerBeimErmittelnDerUID'));
|
||||
|
||||
$sql_query = "
|
||||
SELECT
|
||||
SELECT
|
||||
distinct tbl_paabgabe.datum, tbl_paabgabe.fixtermin, tbl_paabgabe.kurzbz,
|
||||
person_student.vorname as stud_vorname, person_student.nachname as stud_nachname,
|
||||
person_student.vorname as stud_vorname, person_student.nachname as stud_nachname,
|
||||
person_student.titelpre as stud_titelpre, person_student.titelpost as stud_titelpost,
|
||||
tbl_lehrveranstaltung.semester, UPPER(tbl_studiengang.typ || tbl_studiengang.kurzbz) as stg,
|
||||
tbl_lehrveranstaltung.semester, UPPER(tbl_studiengang.typ || tbl_studiengang.kurzbz) as stg,
|
||||
tbl_paabgabetyp.bezeichnung as typ_bezeichnung
|
||||
FROM
|
||||
campus.tbl_paabgabe
|
||||
FROM
|
||||
campus.tbl_paabgabe
|
||||
JOIN lehre.tbl_projektarbeit USING(projektarbeit_id)
|
||||
JOIN lehre.tbl_projektbetreuer USING(projektarbeit_id)
|
||||
JOIN public.tbl_benutzer bn_student ON(tbl_projektarbeit.student_uid=bn_student.uid)
|
||||
@@ -97,13 +102,13 @@ $sql_query = "
|
||||
JOIN campus.tbl_paabgabetyp USING(paabgabetyp_kurzbz)
|
||||
WHERE
|
||||
tbl_projektbetreuer.person_id='".addslashes($lektor->person_id)."' AND tbl_paabgabe.datum>=now() AND bn_student.aktiv
|
||||
ORDER BY tbl_paabgabe.datum
|
||||
ORDER BY tbl_paabgabe.datum
|
||||
";
|
||||
|
||||
if($result = $db->db_query($sql_query))
|
||||
{
|
||||
echo "<h2>".$p->t('abgabetool/terminuebersicht')." - $lektor->titelpre $lektor->vorname $lektor->nachname $lektor->titelpost</h2>";
|
||||
|
||||
|
||||
if($db->db_num_rows($result)>0)
|
||||
{
|
||||
echo '<table id="myTable" class="tablesorter">';
|
||||
@@ -121,9 +126,9 @@ if($result = $db->db_query($sql_query))
|
||||
</thead>
|
||||
<tbody>
|
||||
';
|
||||
|
||||
|
||||
while($row = $db->db_fetch_object($result))
|
||||
{
|
||||
{
|
||||
echo '<tr>';
|
||||
echo '<td>'.$datum_obj->formatDatum($row->datum,'d.m.Y').'</td>';
|
||||
echo '<td>'.($row->fixtermin=='t'?'Ja':'Nein').'</td>';
|
||||
@@ -131,10 +136,10 @@ if($result = $db->db_query($sql_query))
|
||||
echo '<td>'.$row->kurzbz.'</td>';
|
||||
echo '<td>'.$row->stud_titelpre.' '.$row->stud_vorname.' '.$row->stud_nachname.' '.$row->stud_titelpre.'</td>';
|
||||
echo '<td>'.$row->stg.'</td>';
|
||||
echo '<td>'.$row->semester.'</td>';
|
||||
echo '<td>'.$row->semester.'</td>';
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
|
||||
echo "\n</tbody></table>";
|
||||
}
|
||||
else
|
||||
@@ -142,4 +147,4 @@ if($result = $db->db_query($sql_query))
|
||||
}
|
||||
|
||||
echo '</body></html>';
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -177,7 +177,12 @@ echo '
|
||||
<title>Abgabesystem_Studentensicht</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
$(document).ready(function()
|
||||
|
||||
@@ -103,7 +103,10 @@ echo '<!DOCTYPE HTML>
|
||||
<link href="../../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="../../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
.td_datum
|
||||
|
||||
@@ -47,7 +47,10 @@ echo '<!DOCTYPE HTML>
|
||||
<link href="../../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../../skin/tablesort.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="../../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<title>Grade</title>
|
||||
</head>
|
||||
<body>';
|
||||
|
||||
@@ -156,7 +156,12 @@ $rechte->getBerechtigungen($user);
|
||||
<link href="../../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../../../skin/jquery.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<title><?php echo $p->t('courseInformation/ectsLvInfo');?></title>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function ask() {
|
||||
|
||||
@@ -101,7 +101,10 @@ if (isset($_GET["handbuch"])){
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript" ></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
|
||||
<?php
|
||||
// Angezeigtes Studiensemester ermitteln
|
||||
|
||||
@@ -47,7 +47,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<title>'.$p->t('tools/leistungsbeurteilung').'</title>
|
||||
|
||||
|
||||
@@ -66,8 +66,10 @@ $studiensemester->getAll();
|
||||
<meta charset="UTF-8">
|
||||
<title>Prüfungsanmeldung</title>
|
||||
<script src="../../../../include/js/datecheck.js"></script>
|
||||
<script src="../../../../include/js/jquery1.9.min.js"></script>
|
||||
<script src="../../../../include/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="./pruefung.js.php"></script>
|
||||
<link rel="stylesheet" href="../../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<link rel="stylesheet" href="../../../../skin/fhcomplete.css">
|
||||
|
||||
@@ -49,7 +49,10 @@ $rechte->getBerechtigungen($uid);
|
||||
<html moznomarginboxes="">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script src="../../../../include/js/jquery1.9.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
|
||||
@@ -53,8 +53,10 @@ if(empty($pruefung->result) && !$rechte->isBerechtigt('lehre/pruefungsanmeldungA
|
||||
<meta charset="UTF-8">
|
||||
<title><?php echo $p->t('pruefung/anmeldungenVerwaltenTitle'); ?></title>
|
||||
<script src="../../../../include/js/datecheck.js"></script>
|
||||
<script src="../../../../include/js/jquery1.9.min.js"></script>
|
||||
<script src="../../../../include/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="./pruefung.js.php"></script>
|
||||
<link rel="stylesheet" href="../../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<link rel="stylesheet" href="../../../../skin/fhcomplete.css">
|
||||
@@ -225,7 +227,7 @@ if(empty($pruefung->result) && !$rechte->isBerechtigt('lehre/pruefungsanmeldungA
|
||||
$(document).ready(function(){
|
||||
loadStudiengaenge();
|
||||
$("#filter_studiensemester").css("visibility","visible");
|
||||
console.log($("#filter_studiensemester"));
|
||||
// console.log($("#filter_studiensemester"));
|
||||
$("#raumDialog").dialog({
|
||||
modal: true,
|
||||
autoOpen: false,
|
||||
|
||||
@@ -59,8 +59,10 @@ if(empty($pruefung->result) && !$rechte->isBerechtigt('lehre/pruefungsanmeldungA
|
||||
<meta charset="UTF-8">
|
||||
<title>Prüfungsbewertung</title>
|
||||
<script src="../../../../include/js/datecheck.js"></script>
|
||||
<script src="../../../../include/js/jquery1.9.min.js"></script>
|
||||
<script src="../../../../include/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="./pruefung.js.php"></script>
|
||||
<script src="./pruefungsbewertung.js.php"></script>
|
||||
<link rel="stylesheet" href="../../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
|
||||
@@ -60,7 +60,10 @@ function compareOe($a, $b)
|
||||
<meta charset="UTF-8">
|
||||
<title><?php echo $p->t('pruefung/titlePruefungsfenster') ?></title>
|
||||
<script src="../../../../include/js/datecheck.js"></script>
|
||||
<script src="../../../../include/js/jquery1.9.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<link rel="stylesheet" href="../../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<link rel="stylesheet" href="../../../../skin/fhcomplete.css">
|
||||
<link rel="stylesheet" href="../../../../skin/style.css.php">
|
||||
|
||||
@@ -97,7 +97,7 @@ if (isset($_GET["sendmail"]))
|
||||
$to = $uid.'@'.DOMAIN;
|
||||
$from = 'no-reply@'.DOMAIN;
|
||||
$subject = $p->t('pruefung/emailVerschiebungSubject');
|
||||
$text = $p->t('pruefung/emailVerschiebung', array($lvstr, $datum, $vonzeit));
|
||||
$text = $p->t('pruefung/emailVerschiebung', array($lvstr, $datum, $vonzeit));
|
||||
$msg = new mail($to, $from, $subject, $text);
|
||||
if ($msg->send())
|
||||
$maildebug .= $to." OK<br>";
|
||||
@@ -135,8 +135,10 @@ foreach ($anmeldungen as $row)
|
||||
<meta charset="UTF-8">
|
||||
<title><?php echo $p->t('pruefung/titlePruefungstermin'); ?></title>
|
||||
<script src="../../../../include/js/datecheck.js"></script>
|
||||
<script src="../../../../include/js/jquery1.9.min.js"></script>
|
||||
<script src="../../../../include/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="./pruefung.js.php"></script>
|
||||
<link rel="stylesheet" href="../../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<link rel="stylesheet" href="../../../../skin/fhcomplete.css">
|
||||
|
||||
@@ -59,8 +59,10 @@ if(empty($lehrveranstaltung->lehrveranstaltungen) && !$rechte->isBerechtigt('leh
|
||||
<meta charset="UTF-8">
|
||||
<title><?php echo $p->t('pruefung/titlePruefungstermin'); ?></title>
|
||||
<script src="../../../../include/js/datecheck.js"></script>
|
||||
<script src="../../../../include/js/jquery1.9.min.js"></script>
|
||||
<script src="../../../../include/js/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="./pruefung.js.php"></script>
|
||||
<link rel="stylesheet" href="../../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<link rel="stylesheet" href="../../../../skin/fhcomplete.css">
|
||||
|
||||
@@ -22,18 +22,18 @@
|
||||
* Manfred Kindl <manfred.kindl@technikum-wien.at>
|
||||
* Alexander Nimmervoll <alexander.nimmervoll@technikum-wien.at>
|
||||
*/
|
||||
|
||||
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../config/global.config.inc.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/studiensemester.class.php');
|
||||
require_once('../../../include/studiensemester.class.php');
|
||||
require_once('../../../include/benutzer.class.php');
|
||||
require_once('../../../include/benutzerberechtigung.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$p=new phrasen($sprache);
|
||||
|
||||
$sprache = getSprache();
|
||||
$p=new phrasen($sprache);
|
||||
|
||||
$uid=get_uid();
|
||||
$berechtigung=new benutzerberechtigung();
|
||||
@@ -43,7 +43,7 @@ if ($berechtigung->isBerechtigt('lehre/reservierung:begrenzt', null, 'sui'))
|
||||
else
|
||||
$raumres=false;
|
||||
|
||||
/*$benutzer = new benutzer();
|
||||
/*$benutzer = new benutzer();
|
||||
|
||||
foreach($benutzer->result as $row)
|
||||
{
|
||||
@@ -59,10 +59,10 @@ echo $benutzer;*/
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
|
||||
|
||||
if (!$uid=get_uid())
|
||||
die('Sie sind nicht angemeldet. Es wurde keine Benutzer UID gefunden ! <a href="javascript:history.back()">Zurück</a>');
|
||||
|
||||
|
||||
|
||||
$sql_query="SELECT titelpre, titelpost, uid, nachname, vorname FROM campus.vw_benutzer WHERE uid LIKE '$uid'";
|
||||
//echo $sql_query;
|
||||
@@ -89,20 +89,20 @@ else
|
||||
$sql_query="SELECT studiengang_kz, kurzbz, kurzbzlang, bezeichnung, typ, english FROM public.tbl_studiengang WHERE aktiv ORDER BY typ, kurzbz";
|
||||
$result_stg=$db->db_query($sql_query);
|
||||
if(!$result_stg)
|
||||
die ("Studiengang not found!");
|
||||
die ("Studiengang not found!");
|
||||
$num_rows_stg=$db->db_num_rows($result_stg);
|
||||
|
||||
$sql_query="SELECT ort_kurzbz, bezeichnung FROM public.tbl_ort WHERE aktiv AND lehre ORDER BY ort_kurzbz";
|
||||
$result_ort=$db->db_query($sql_query);
|
||||
if(!$result_ort)
|
||||
die("ort not found!");
|
||||
die("ort not found!");
|
||||
$num_rows_ort=$db->db_num_rows($result_ort);
|
||||
|
||||
/*$sql_query="SELECT student_uid FROM public.tbl_student ORDER BY student_uid";
|
||||
$result_lektor=$db->db_query($sql_query);
|
||||
if(!$result_lektor)
|
||||
die("lektor not found!");
|
||||
|
||||
|
||||
$num_rows_lektor=$db->db_num_rows($result_lektor);*/
|
||||
|
||||
|
||||
@@ -114,7 +114,10 @@ $num_rows_lektor=$db->db_num_rows($result_lektor);*/
|
||||
<title>Lehrveranstaltungsplan</title>
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" language="JavaScript">
|
||||
|
||||
function MM_jumpMenu(targ,selObj,restore){ //v3.0
|
||||
@@ -127,7 +130,7 @@ function jumpKalender(){
|
||||
}
|
||||
else if (document.getElementById('studiensemester').value == '') {
|
||||
alert("<?php echo $p->t('lvplan/bitteEinStudiensemesterAuswaehlen');?>");
|
||||
}
|
||||
}
|
||||
else {window.open ('stpl_kalender.php?type=verband&stg_kz='+document.getElementById('stg_kz_semplan').value+'&sem='+document.getElementById('sem_semplan').value
|
||||
+'&ver='+document.getElementById('ver_semplan').value+'&grp='+document.getElementById('grp_semplan').value+'&begin='+document.getElementById('studiensemester').value+'&format=html', '_blank');
|
||||
}
|
||||
@@ -149,8 +152,8 @@ function checkSetBenutzer(){
|
||||
return true;
|
||||
}
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#benutzer").autocomplete({
|
||||
source: "lvplan_autocomplete.php?autocomplete=benutzer",
|
||||
minLength:2,
|
||||
@@ -193,7 +196,7 @@ function LoadSemester(type)
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function(data)
|
||||
success: function(data)
|
||||
{
|
||||
$("#sem"+type).empty();
|
||||
$("#sem"+type).append('<option value=""><?php echo $p->t('lvplan/sem'); ?></option>');
|
||||
@@ -201,7 +204,7 @@ function LoadSemester(type)
|
||||
$("#sem"+type).append('<option value="'+data+'">'+data+'</option>');
|
||||
});
|
||||
},
|
||||
error: function(data)
|
||||
error: function(data)
|
||||
{
|
||||
alert("Fehler beim Laden der Daten");
|
||||
}
|
||||
@@ -222,7 +225,7 @@ function LoadVerband(type)
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function(data)
|
||||
success: function(data)
|
||||
{
|
||||
$("#ver"+type).empty();
|
||||
$("#ver"+type).append('<option value=""><?php echo $p->t('lvplan/ver'); ?></option>');
|
||||
@@ -230,7 +233,7 @@ function LoadVerband(type)
|
||||
$("#ver"+type).append('<option value="'+data+'">'+data+'</option>');
|
||||
});
|
||||
},
|
||||
error: function(data)
|
||||
error: function(data)
|
||||
{
|
||||
alert("Fehler beim Laden der Daten");
|
||||
}
|
||||
@@ -253,7 +256,7 @@ function LoadGruppe(type)
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
success: function(data)
|
||||
success: function(data)
|
||||
{
|
||||
$("#grp"+type).empty();
|
||||
$("#grp"+type).append('<option value=""><?php echo $p->t('lvplan/grp'); ?></option>');
|
||||
@@ -261,7 +264,7 @@ function LoadGruppe(type)
|
||||
$("#grp"+type).append('<option value="'+data+'">'+data+'</option>');
|
||||
});
|
||||
},
|
||||
error: function(data)
|
||||
error: function(data)
|
||||
{
|
||||
alert("Fehler beim Laden der Daten");
|
||||
}
|
||||
@@ -279,7 +282,7 @@ function LoadGruppe(type)
|
||||
<td class="cmscontent" rowspan="3" valign="top">
|
||||
|
||||
<FORM name="Auswahl" action="stpl_week.php">
|
||||
|
||||
|
||||
<table class="tabcontent"><tr><td valign="top" width="30%">
|
||||
<?php
|
||||
if (isset($uid))
|
||||
@@ -288,13 +291,13 @@ function LoadGruppe(type)
|
||||
echo $p->t('lvplan/nichtVorhanden').' '.$p->t('lvplan/bitteWendenSieSichAn').'<A href="mailto:'.MAIL_ADMIN.'">Admin</A>!';
|
||||
?>
|
||||
<a class="Item" href="stpl_week.php?pers_uid=<?php echo $uid; ?>"><?php echo $p->t("lvplan/persoenlicherLvPlan");?></a><br><br>
|
||||
</td><td valign="top">
|
||||
</td><td valign="top">
|
||||
<?php
|
||||
if(!defined('CIS_LVPLAN_EXPORT_ANZEIGEN') || CIS_LVPLAN_EXPORT_ANZEIGEN)
|
||||
{
|
||||
echo'
|
||||
echo'
|
||||
<h2>'.$p->t('lvplan/persoenlichenAbonnieren').'</h2>
|
||||
<div>
|
||||
<div>
|
||||
<a class="Item" href="../../../cms/content.php?content_id='.$p->t('dms_link/lvplanSyncFAQ').'" target="_blank">'.$p->t('lvplan/anleitungLVPlanSync').'</a>
|
||||
<br>';
|
||||
|
||||
@@ -309,13 +312,13 @@ function LoadGruppe(type)
|
||||
|
||||
echo '
|
||||
</td></tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="30%">
|
||||
<h2>'.$p->t("lvplan/saalplan").'</h2>
|
||||
</td>
|
||||
<td>';
|
||||
|
||||
|
||||
if(!defined('CIS_LVPLAN_PERSONENAUSWAHL_ANZEIGEN') || CIS_LVPLAN_PERSONENAUSWAHL_ANZEIGEN)
|
||||
{
|
||||
echo '<h2>'.$p->t("lvplan/lektorInStudentIn").'</h2>';
|
||||
@@ -330,21 +333,21 @@ function LoadGruppe(type)
|
||||
<option value="stpl_week.php" selected>'.$p->t('lvplan/raumAuswaehlen').'</option>';
|
||||
if(defined('CIS_SAALPLAN_ALLERAEUME_OPTION') && CIS_SAALPLAN_ALLERAEUME_OPTION)
|
||||
echo '<option value="stpl_week.php?type=ort&ort_kurzbz=all" value="all">'.$p->t('lvplan/alleRaeume').'</option>';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
for ($i=0;$i<$num_rows_ort;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object ($result_ort, $i);
|
||||
echo "<option value=\"stpl_week.php?type=ort&ort_kurzbz=$row->ort_kurzbz\">$row->ort_kurzbz ($row->bezeichnung)</option>";
|
||||
}
|
||||
|
||||
|
||||
echo '</select>';
|
||||
|
||||
|
||||
if ($raumres)
|
||||
{
|
||||
echo '<BR><BR><A class="Item" href="stpl_reserve_list.php">'.$p->t("lvplan/reservierungenLoeschen").'</A><BR>';
|
||||
}
|
||||
}
|
||||
|
||||
echo'</td>
|
||||
<td valign="top">';
|
||||
@@ -353,10 +356,10 @@ function LoadGruppe(type)
|
||||
{
|
||||
echo "<input class='search' placeholder='".$p->t('lvplan/nameEingeben')."' type='text' id='benutzer' size='32' value=''>";
|
||||
echo "<input type='hidden' id='mitarbeiter_uid' name='pers_uid'>";
|
||||
echo "<input type='hidden' id='uid' name='type' value='student'>";
|
||||
echo "<input type='hidden' id='uid' name='type' value='student'>";
|
||||
echo "<input type='submit' value='Go' onclick='return checkSetBenutzer();'>";
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
</td>
|
||||
</tr>
|
||||
@@ -373,14 +376,14 @@ function LoadGruppe(type)
|
||||
<td width="20%" valign="middle">
|
||||
<select style="width:200px;" id="stg_kz" name="stg_kz" onchange="LoadSemester()">
|
||||
<option value="" selected>'.$p->t('lvplan/studiengangAuswaehlen').'</option>';
|
||||
|
||||
|
||||
$num_rows=$db->db_num_rows($result_stg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object ($result_stg, $i);
|
||||
echo '<option value="'.$row->studiengang_kz.'">'.strtoupper($row->typ.$row->kurzbz).' ('.($sprache=='English' && $row->english!=''?$row->english:$row->bezeichnung).')</option>';
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
</select>
|
||||
</td>
|
||||
@@ -441,14 +444,14 @@ if(!defined('CIS_LVPLAN_ARCHIVAUSWAHL_ANZEIGEN') || CIS_LVPLAN_ARCHIVAUSWAHL_ANZ
|
||||
<td valign="bottom">
|
||||
<select style="width:200px;" name="stg_kz_semplan" id="stg_kz_semplan" onchange="LoadSemester(\'_semplan\')">
|
||||
<option value="" selected>'.$p->t('lvplan/studiengangAuswaehlen').'</option>';
|
||||
|
||||
|
||||
$num_rows=$db->db_num_rows($result_stg);
|
||||
for ($i=0;$i<$num_rows;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object ($result_stg, $i);
|
||||
echo '<option value="'.$row->studiengang_kz.'">'.strtoupper($row->typ.$row->kurzbz).' ('.($sprache=='English' && $row->english!=''?$row->english:$row->bezeichnung).')</option>';
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
</select>
|
||||
</td>
|
||||
@@ -489,10 +492,10 @@ if(!defined('CIS_LVPLAN_ARCHIVAUSWAHL_ANZEIGEN') || CIS_LVPLAN_ARCHIVAUSWAHL_ANZ
|
||||
</select>
|
||||
</td></tr><tr>
|
||||
<td valign="middle" >';
|
||||
|
||||
|
||||
$studiensemester = new studiensemester();
|
||||
$studiensemester->getFinished();
|
||||
|
||||
$studiensemester->getFinished();
|
||||
|
||||
echo '<SELECT style="width:200px;" name="begin" id="studiensemester">';
|
||||
echo '<OPTION value="" selected>'.$p->t('lvplan/studiensemesterAuswaehlen').'</OPTION>';
|
||||
foreach($studiensemester->studiensemester as $row)
|
||||
@@ -500,9 +503,9 @@ if(!defined('CIS_LVPLAN_ARCHIVAUSWAHL_ANZEIGEN') || CIS_LVPLAN_ARCHIVAUSWAHL_ANZ
|
||||
$studiensemester->getTimestamp($row->studiensemester_kurzbz);
|
||||
echo '<OPTION value="'.$studiensemester->begin->start.'&ende='.$studiensemester->ende->ende.'">'.$row->studiensemester_kurzbz.'</OPTION>';
|
||||
}
|
||||
|
||||
|
||||
echo '</SELECT>';
|
||||
|
||||
|
||||
echo '</td>
|
||||
<td colspan="3" valign="bottom">
|
||||
<input type="button" name="Abschicken" value="'.$p->t('lvplan/semesterplanLaden').'" onClick="jumpKalender()">
|
||||
|
||||
@@ -24,7 +24,7 @@ require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../include/ort.class.php');
|
||||
require_once('../../../include/raumtyp.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
|
||||
$datum = (isset($_POST['datum'])?$_POST['datum']:date('d.m.Y'));
|
||||
$vonzeit = (isset($_POST['vonzeit'])?$_POST['vonzeit']:date('H:i'));
|
||||
@@ -33,8 +33,8 @@ $raumtyp = (isset($_POST['raumtyp'])?$_POST['raumtyp']:'');
|
||||
$anzahlpersonen = (isset($_POST['anzahlpersonen'])?$_POST['anzahlpersonen']:'0');
|
||||
$sent = true; //isset($_POST['sent']);
|
||||
$datum_obj = new datum();
|
||||
|
||||
$sprache = getSprache();
|
||||
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
|
||||
echo '
|
||||
@@ -47,21 +47,25 @@ echo '
|
||||
<link rel="stylesheet" href="../../../skin/fhcomplete.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/flexcrollstyles.css" type="text/css" />
|
||||
<script type="text/javascript" src="../../../include/js/flexcroll.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script language="Javascript">
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#myTable").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
|
||||
|
||||
$( "#datum" ).datepicker($.datepicker.regional["de"]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function checkdata()
|
||||
{
|
||||
if(document.getElementById("datum").value=="")
|
||||
@@ -75,13 +79,13 @@ echo '
|
||||
alert("'.$p->t('lvplan/datumUngueltig').'");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(document.getElementById("vonzeit").value=="")
|
||||
{
|
||||
alert("'.$p->t('lvplan/vonZeitEingeben').'");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(document.getElementById("biszeit").value=="")
|
||||
{
|
||||
alert("'.$p->t('lvplan/bisZeitEingeben').'");
|
||||
@@ -109,9 +113,9 @@ foreach ($raumtyp_obj->result as $row)
|
||||
{
|
||||
if($raumtyp==$row->raumtyp_kurzbz)
|
||||
$selected='selected';
|
||||
else
|
||||
else
|
||||
$selected='';
|
||||
|
||||
|
||||
echo '<OPTION value="'.$row->raumtyp_kurzbz.'" '.$selected.'>'.$row->beschreibung.'</OPTION>';
|
||||
}
|
||||
echo ' </SELECT>
|
||||
@@ -136,7 +140,7 @@ if($sent)
|
||||
echo "<br>".$p->t('lvplan/bisZeitEingeben');
|
||||
$error = true;
|
||||
}
|
||||
|
||||
|
||||
if(!$error)
|
||||
{
|
||||
//Von Zeit pruefen
|
||||
@@ -151,7 +155,7 @@ if($sent)
|
||||
echo "<br>".$p->t('lvplan/bisZeitFormat');
|
||||
$error = true;
|
||||
}
|
||||
|
||||
|
||||
//Datum pruefen
|
||||
if(!$datum_obj->checkDatum($datum))
|
||||
{
|
||||
@@ -164,9 +168,9 @@ if($sent)
|
||||
$ort = new ort();
|
||||
if(!$ort->search($datum_obj->formatDatum($datum), $vonzeit, $biszeit, $raumtyp, $anzahlpersonen, true))
|
||||
{
|
||||
echo $ort->errormsg;
|
||||
echo $ort->errormsg;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<br><table class="tablesorter" id="myTable" style="width: auto">
|
||||
<thead>
|
||||
@@ -198,4 +202,4 @@ if($sent)
|
||||
}
|
||||
}
|
||||
echo '</body></html>';
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -49,8 +49,13 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Anzahl Studenten Lehrveranstaltungsplan FH Technikum-Wien</title>
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script src="../../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery-ui.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script src="../../../vendor/components/jqueryui/jquery-ui.min.js" type="text/javascript"></script>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
li { list-style : outside url("../../../skin/images/right.gif");}
|
||||
|
||||
@@ -57,7 +57,12 @@ if(!$is_lector)
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
|
||||
<title><?php echo $p->t('mailverteiler/mailverteiler');?></title>
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
__js_page_array = new Array();
|
||||
|
||||
+157
-154
@@ -16,14 +16,14 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Karl Burkhart <burkhart@technikum-wien.at>
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/person.class.php');
|
||||
require_once('../../../include/benutzer.class.php');
|
||||
require_once('../../../include/preoutgoing.class.php');
|
||||
require_once('../../../include/preoutgoing.class.php');
|
||||
require_once('../../../include/firma.class.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/mobilitaetsprogramm.class.php');
|
||||
@@ -34,34 +34,34 @@ require_once('../../../include/akte.class.php');
|
||||
$method = (isset($_GET['method'])?$_GET['method']:'');
|
||||
$message = '';
|
||||
$uid=get_uid();
|
||||
$sprache = getSprache();
|
||||
$sprache = getSprache();
|
||||
$p=new phrasen($sprache);
|
||||
$outgoing = new preoutgoing();
|
||||
$outgoing->loadUid($uid);
|
||||
$outgoing = new preoutgoing();
|
||||
$outgoing->loadUid($uid);
|
||||
|
||||
// speichert outgoing
|
||||
if(isset($_REQUEST['submitOutgoing']))
|
||||
{
|
||||
{
|
||||
$ansprechpersonUid = (isset($_REQUEST['ansprechperson_uid']))?$_REQUEST['ansprechperson_uid']:'';
|
||||
|
||||
$datum=new datum();
|
||||
$datum=new datum();
|
||||
$zeitraum_von = $datum->formatDatum($_REQUEST['zeitraum_von'], 'Y-m-d');
|
||||
$zeitraum_bis = $datum->formatDatum($_REQUEST['zeitraum_bis'], 'Y-m-d');
|
||||
|
||||
$preoutgoing = new preoutgoing();
|
||||
|
||||
$preoutgoing = new preoutgoing();
|
||||
$preoutgoing->loadUid($outgoing->uid);
|
||||
|
||||
|
||||
// löschen der Ansprechperson
|
||||
if($_POST['ansprechperson']==' ' || $_POST['ansprechperson']=='' || $_POST['ansprechperson_uid'] == '')
|
||||
$ansprechpersonUid = '';
|
||||
|
||||
$preoutgoing->new = false;
|
||||
$preoutgoing->ansprechperson = $ansprechpersonUid;
|
||||
$preoutgoing->dauer_von = $zeitraum_von;
|
||||
$preoutgoing->dauer_bis = $zeitraum_bis;
|
||||
|
||||
$preoutgoing->new = false;
|
||||
$preoutgoing->ansprechperson = $ansprechpersonUid;
|
||||
$preoutgoing->dauer_von = $zeitraum_von;
|
||||
$preoutgoing->dauer_bis = $zeitraum_bis;
|
||||
$preoutgoing->anmerkung_student = $_POST['anmerkung'];
|
||||
$preoutgoing->updatevon = $uid;
|
||||
|
||||
$preoutgoing->updatevon = $uid;
|
||||
|
||||
if($preoutgoing->save())
|
||||
$message='<span class="ok">'.$p->t('global/erfolgreichgespeichert').'</span>';
|
||||
else
|
||||
@@ -70,11 +70,11 @@ if(isset($_REQUEST['submitOutgoing']))
|
||||
|
||||
// Updated die Daten des Preoutgoing
|
||||
if(isset($_REQUEST['zDaten']))
|
||||
{
|
||||
$preoutgoingZDaten = new preoutgoing();
|
||||
{
|
||||
$preoutgoingZDaten = new preoutgoing();
|
||||
$preoutgoingZDaten->load($outgoing->preoutgoing_id);
|
||||
|
||||
$datum=new datum();
|
||||
$datum=new datum();
|
||||
// wenn sprachkurs gesetzt -> erasmus programm
|
||||
if(isset($_REQUEST['sprachkurs']))
|
||||
{
|
||||
@@ -82,36 +82,36 @@ if(isset($_REQUEST['zDaten']))
|
||||
$preoutgoingZDaten->sprachkurs_bis = $datum->formatDatum($_REQUEST['sprachkurs_bis'], 'Y-m-d');
|
||||
if($_REQUEST['sprachkurs'] == 'vorbereitend')
|
||||
{
|
||||
$preoutgoingZDaten->sprachkurs = true;
|
||||
$preoutgoingZDaten->sprachkurs = true;
|
||||
$preoutgoingZDaten->intensivsprachkurs = false;
|
||||
}
|
||||
else if($_REQUEST['sprachkurs']=='intensiv')
|
||||
{
|
||||
$preoutgoingZDaten->sprachkurs = false;
|
||||
$preoutgoingZDaten->intensivsprachkurs = true;
|
||||
$preoutgoingZDaten->sprachkurs = false;
|
||||
$preoutgoingZDaten->intensivsprachkurs = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$preoutgoingZDaten->sprachkurs = false;
|
||||
$preoutgoingZDaten->sprachkurs = false;
|
||||
$preoutgoingZDaten->intensivsprachkurs = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$preoutgoingZDaten->praktikum_von = $datum->formatDatum($_REQUEST['praktikum_von'], 'Y-m-d');
|
||||
$preoutgoingZDaten->praktikum_bis = $datum->formatDatum($_REQUEST['praktikum_bis'], 'Y-m-d');
|
||||
$preoutgoingZDaten->praktikum = isset($_REQUEST['praktikum'])?true:false;
|
||||
$preoutgoingZDaten->praktikum_bis = $datum->formatDatum($_REQUEST['praktikum_bis'], 'Y-m-d');
|
||||
$preoutgoingZDaten->praktikum = isset($_REQUEST['praktikum'])?true:false;
|
||||
$betreuer = isset($_POST['betreuer_uid'])?$_POST['betreuer_uid']:'';
|
||||
|
||||
|
||||
if($_POST['betreuer']==' ' || $_POST['betreuer']=='' || $_POST['betreuer_uid'] == '')
|
||||
$betreuer = '';
|
||||
$preoutgoingZDaten->bachelorarbeit = isset($_REQUEST['bachelorarbeit'])?true:false;
|
||||
$preoutgoingZDaten->masterarbeit = isset($_REQUEST['masterarbeit'])?true:false;
|
||||
$preoutgoingZDaten->bachelorarbeit = isset($_REQUEST['bachelorarbeit'])?true:false;
|
||||
$preoutgoingZDaten->masterarbeit = isset($_REQUEST['masterarbeit'])?true:false;
|
||||
$preoutgoingZDaten->projektarbeittitel = $_REQUEST['projektarbeittitel'];
|
||||
$preoutgoingZDaten->behinderungszuschuss = isset($_REQUEST['behinderungszuschuss'])?true:false;
|
||||
$preoutgoingZDaten->studienbeihilfe = isset($_REQUEST['studienbeihilfe'])?true:false;
|
||||
$preoutgoingZDaten->betreuer = $betreuer;
|
||||
$preoutgoingZDaten->behinderungszuschuss = isset($_REQUEST['behinderungszuschuss'])?true:false;
|
||||
$preoutgoingZDaten->studienbeihilfe = isset($_REQUEST['studienbeihilfe'])?true:false;
|
||||
$preoutgoingZDaten->betreuer = $betreuer;
|
||||
$preoutgoingZDaten->studienrichtung_gastuniversitaet = isset($_REQUEST['studienrichtungGastuni'])?$_REQUEST['studienrichtungGastuni']:'';
|
||||
$preoutgoingZDaten->new = false;
|
||||
$preoutgoingZDaten->new = false;
|
||||
if(!$preoutgoingZDaten->save())
|
||||
$message='<span class="error">'.$p->t('global/fehlerBeimSpeichernDerDaten').'</span>';
|
||||
else
|
||||
@@ -121,17 +121,17 @@ if(isset($_REQUEST['zDaten']))
|
||||
// neuen Datensatz anlegen
|
||||
if($method=='new')
|
||||
{
|
||||
$preoutgoing = new preoutgoing();
|
||||
$preoutgoing->uid = $uid;
|
||||
$preoutgoing->new = true;
|
||||
$preoutgoing->bachelorarbeit = false;
|
||||
$preoutgoing->masterarbeit = false;
|
||||
$preoutgoing->sprachkurs = false;
|
||||
$preoutgoing->intensivsprachkurs = false;
|
||||
$preoutgoing->praktikum = false;
|
||||
$preoutgoing->behinderungszuschuss = false;
|
||||
$preoutgoing->studienbeihilfe = false;
|
||||
$preoutgoing->insertvon = $uid;
|
||||
$preoutgoing = new preoutgoing();
|
||||
$preoutgoing->uid = $uid;
|
||||
$preoutgoing->new = true;
|
||||
$preoutgoing->bachelorarbeit = false;
|
||||
$preoutgoing->masterarbeit = false;
|
||||
$preoutgoing->sprachkurs = false;
|
||||
$preoutgoing->intensivsprachkurs = false;
|
||||
$preoutgoing->praktikum = false;
|
||||
$preoutgoing->behinderungszuschuss = false;
|
||||
$preoutgoing->studienbeihilfe = false;
|
||||
$preoutgoing->insertvon = $uid;
|
||||
if($preoutgoing->save())
|
||||
{
|
||||
// Email an Auslandsabteilung schicken
|
||||
@@ -144,20 +144,20 @@ if($method=='new')
|
||||
|
||||
// speichert die eingegebene Lehrveranstaltung
|
||||
if(isset($_POST['saveLv']) == 'saveLv')
|
||||
{
|
||||
{
|
||||
$bezeichnung = $_POST['lv_bezeichnung'];
|
||||
$ects = $_POST['lv_ects'];
|
||||
$wochenstunden = $_POST['lv_wochenstunden'];
|
||||
$unitcode = $_POST['lv_unitcode'];
|
||||
|
||||
$preoutgoingLv = new preoutgoing();
|
||||
|
||||
$preoutgoingLv = new preoutgoing();
|
||||
$preoutgoingLv->preoutgoing_id = $outgoing->preoutgoing_id;
|
||||
$preoutgoingLv->bezeichnung = $bezeichnung;
|
||||
$preoutgoingLv->ects = $ects;
|
||||
$preoutgoingLv->wochenstunden = $wochenstunden;
|
||||
$preoutgoingLv->unitcode = $unitcode;
|
||||
$preoutgoingLv->new = true;
|
||||
$preoutgoingLv->insertvon = $uid;
|
||||
$preoutgoingLv->bezeichnung = $bezeichnung;
|
||||
$preoutgoingLv->ects = $ects;
|
||||
$preoutgoingLv->wochenstunden = $wochenstunden;
|
||||
$preoutgoingLv->unitcode = $unitcode;
|
||||
$preoutgoingLv->new = true;
|
||||
$preoutgoingLv->insertvon = $uid;
|
||||
if(!$preoutgoingLv->saveLv())
|
||||
$message='<span class="error">'.$p->t('global/fehlerBeimSpeichernDerDaten').'</span>';
|
||||
else
|
||||
@@ -168,12 +168,12 @@ if(isset($_POST['saveLv']) == 'saveLv')
|
||||
if($method== 'deleteLv')
|
||||
{
|
||||
$lv_id = $_GET['lv_id'];
|
||||
$preoutgoingLv = new preoutgoing();
|
||||
|
||||
$preoutgoingLv = new preoutgoing();
|
||||
|
||||
// Wenn die Lv zum preoutgoing gehört wird sie gelöscht
|
||||
|
||||
|
||||
if($preoutgoingLv->checkLv($lv_id, $outgoing->preoutgoing_id))
|
||||
{
|
||||
{
|
||||
if(!$preoutgoingLv->deleteLv($lv_id))
|
||||
$message ='<span class="error">'.$p->t('incoming/fehlerBeimLoeschenDerLv').'</span>';
|
||||
else
|
||||
@@ -184,15 +184,15 @@ if($method== 'deleteLv')
|
||||
// speichert die ausgewählte Firma
|
||||
if($method=='saveFirma')
|
||||
{
|
||||
$firmaOutgoing = new preoutgoing();
|
||||
$firmaOutgoing = new preoutgoing();
|
||||
|
||||
// Check ob schon 3 Firmen Eingetragen sind
|
||||
if(($firmaOutgoing->getAnzahlFirma($outgoing->preoutgoing_id)) < 3)
|
||||
if(($firmaOutgoing->getAnzahlFirma($outgoing->preoutgoing_id)) < 3)
|
||||
{
|
||||
if(!isset($_GET['firma_id']))
|
||||
{
|
||||
// Freemover wird ausgewählt
|
||||
$firma_id = '';
|
||||
$firma_id = '';
|
||||
$name = $_GET['name'];
|
||||
$firmaOutgoing->mobilitaetsprogramm_code = 202;
|
||||
}
|
||||
@@ -201,29 +201,29 @@ if($method=='saveFirma')
|
||||
// Programm ausgewählt
|
||||
$firma_id = $_GET['firma_id'];
|
||||
$name = '';
|
||||
$firmaOutgoing->mobilitaetsprogramm_code = $_GET['programm'];
|
||||
$firmaOutgoing->mobilitaetsprogramm_code = $_GET['programm'];
|
||||
}
|
||||
|
||||
|
||||
$firmaOutgoing->preoutgoing_id = $outgoing->preoutgoing_id;
|
||||
$firmaOutgoing->firma_id = $firma_id;
|
||||
$firmaOutgoing->name = $name;
|
||||
$firmaOutgoing->auswahl = false;
|
||||
$firmaOutgoing->new = true;
|
||||
$firmaOutgoing->firma_id = $firma_id;
|
||||
$firmaOutgoing->name = $name;
|
||||
$firmaOutgoing->auswahl = false;
|
||||
$firmaOutgoing->new = true;
|
||||
if(!$firmaOutgoing->saveFirma())
|
||||
{
|
||||
die($firmaOutgoing->errormsg);
|
||||
die($firmaOutgoing->errormsg);
|
||||
}
|
||||
$message='<span class="ok">'.$p->t('global/erfolgreichgespeichert').'</span>';
|
||||
}
|
||||
else
|
||||
$message = '<span class="error">'.$p->t('incoming/nichtMehrAlsDreiUniversitaeten').'</span>';
|
||||
$message = '<span class="error">'.$p->t('incoming/nichtMehrAlsDreiUniversitaeten').'</span>';
|
||||
}
|
||||
|
||||
// Löscht die Akte mit übergebener Id
|
||||
if($method == 'files')
|
||||
{
|
||||
$akte = new akte();
|
||||
|
||||
$akte = new akte();
|
||||
|
||||
if(isset($_GET['id']))
|
||||
{
|
||||
if($_GET['mode']=="delete")
|
||||
@@ -242,10 +242,10 @@ if($method =="deleteFirma")
|
||||
if(isset($_GET['outgoingFirma_id']))
|
||||
{
|
||||
$outgoingFirma_id = $_GET['outgoingFirma_id'];
|
||||
$firmaOutgoing = new preoutgoing();
|
||||
$firmaOutgoing = new preoutgoing();
|
||||
if(!$firmaOutgoing->deleteFirma($outgoingFirma_id))
|
||||
$message = '<span class="error">'.$p->t('global/fehlerBeimLoeschenDesEintrags').'</span>';
|
||||
$message ='<span class="ok">'.$p->t('global/erfolgreichgelöscht').'</span>';
|
||||
$message ='<span class="ok">'.$p->t('global/erfolgreichgelöscht').'</span>';
|
||||
}
|
||||
else
|
||||
$message = '<span class="error">'.$p->t('incoming/ungueltigeIdUebergeben').'</span>';
|
||||
@@ -262,36 +262,39 @@ if($method =="deleteFirma")
|
||||
<link href="../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" 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>
|
||||
|
||||
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
$(document).ready(function()
|
||||
{
|
||||
$( "#datepicker_zeitraumvon" ).datepicker($.datepicker.regional['de']);
|
||||
$( "#datepicker_zeitraumbis" ).datepicker($.datepicker.regional['de']);
|
||||
$( "#datepicker_sprachkursvon" ).datepicker($.datepicker.regional['de']);
|
||||
$( "#datepicker_sprachkursbis" ).datepicker($.datepicker.regional['de']);
|
||||
$( "#datepicker_praktikumvon" ).datepicker($.datepicker.regional['de']);
|
||||
$( "#datepicker_praktikumbis" ).datepicker($.datepicker.regional['de']);
|
||||
|
||||
$( "#datepicker_praktikumbis" ).datepicker($.datepicker.regional['de']);
|
||||
|
||||
$("#myTable").tablesorter(
|
||||
{
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
});
|
||||
$("#myTableFiles").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function formatItem(row)
|
||||
|
||||
function formatItem(row)
|
||||
{
|
||||
return row[0] + " " + row[1] + " " + row[2];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$("#ansprechperson").autocomplete({
|
||||
source: "outgoing_autocomplete.php?autocomplete=mitarbeiter",
|
||||
minLength:2,
|
||||
@@ -310,7 +313,7 @@ if($method =="deleteFirma")
|
||||
$("#ansprechperson_uid").val(ui.item.uid);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$("#betreuer").autocomplete({
|
||||
source: "outgoing_autocomplete.php?autocomplete=mitarbeiter",
|
||||
minLength:2,
|
||||
@@ -328,21 +331,21 @@ if($method =="deleteFirma")
|
||||
//Ausgeaehlte Ressource zuweisen und Textfeld wieder leeren
|
||||
$("#betreuer_uid").val(ui.item.uid);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($uid);
|
||||
$outgoing = new preoutgoing();
|
||||
$outgoing->loadUid($uid);
|
||||
$datum = new datum();
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($uid);
|
||||
$outgoing = new preoutgoing();
|
||||
$outgoing->loadUid($uid);
|
||||
$datum = new datum();
|
||||
$zeitraum_von = $datum->formatDatum($outgoing->dauer_von, 'd.m.Y');
|
||||
$zeitraum_bis = $datum->formatDatum($outgoing->dauer_bis, 'd.m.Y');
|
||||
$ansprechperson = new benutzer();
|
||||
@@ -351,12 +354,12 @@ $ansprechperson->load($outgoing->ansprechperson);
|
||||
$name = '';
|
||||
if($benutzer->titelpre !='')
|
||||
$name.=$benutzer->titelpre.' ';
|
||||
$name.= $benutzer->vorname.' '.$benutzer->nachname.' '.$benutzer->titelpost;
|
||||
//
|
||||
$name.= $benutzer->vorname.' '.$benutzer->nachname.' '.$benutzer->titelpost;
|
||||
//
|
||||
if(isset($_GET['ansicht']) == 'auswahl')
|
||||
{
|
||||
|
||||
?>
|
||||
?>
|
||||
<table border ="0" width="100%">
|
||||
<tr>
|
||||
<td align="left" colspan="4"><b><h1><div style="display:block; text-align:left; float:left;"><?php echo $p->t('incoming/outgoingRegistration'); ?></div><div style="display:block; text-align:right; margin-right:6px; "><?php echo((check_lektor($outgoing->uid)!='0')?"Mitarbeiter: ":"Student: ").$name; ?></div></h1></b></td>
|
||||
@@ -364,7 +367,7 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
<tr><td><?php echo $message; ?></td></tr>
|
||||
<tr><td><h3><?php echo $p->t('incoming/programmAuswahl');?>:</h3></td><td><div style="display:block; text-align:right; margin-right:6px; "><a href="<?php echo $_SERVER['PHP_SELF']; ?>?method=new&ansicht=auswahl" align ="left"><?php echo $p->t('incoming/neuenOutgoingAnlegen'); ?></a></div></td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td width="50%">
|
||||
@@ -374,10 +377,10 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
<td><b>ERASMUS</b>: Finanzielle Unterstützung für Studierendenmobilität bei Partnerinstitutionen in den EU-Mitgliedsstaaten, Island, Kroatien, Liechtenstein, Norwegen, der Schweiz und der Türkei.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><SELECT name="auswahl_erasmus" style="width: 90%" onchange="saveFirma(this.value, '7')">
|
||||
<td><SELECT name="auswahl_erasmus" style="width: 90%" onchange="saveFirma(this.value, '7')">
|
||||
<option value="erasmus_auswahl">-- select --</option>
|
||||
<?php
|
||||
$firmaErasmus = new firma();
|
||||
<?php
|
||||
$firmaErasmus = new firma();
|
||||
$firmaErasmus->getFirmenMobilitaetsprogramm('7');
|
||||
foreach($firmaErasmus->result as $fi)
|
||||
echo'<option value="'.$fi->firma_id.'">'.$fi->name.'</option>';
|
||||
@@ -388,12 +391,12 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
<table width="90%" style="border: thin solid black; border-spacing:10px; background-color: lightgray; margin-top:5px">
|
||||
<tr>
|
||||
<td><b>CEEPUS</b>: Finanzielle Unterstützung für Studierendenmobilität bei Partnerinstitutionen im Rahmen unseres Netzwerkes in Albanien, Bosnien-Herzegowina, Bulgarien, Kosovo (Universität Prishtina), Kroatien, Mazedonien, Moldawien, Montenegro, Österreich, Polen, Rumänien, Serbien, der Slowakischen Republik, Slowenien, der Tschechischen Republik und Ungarn.</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><SELECT name="auswahl_ceepus" style="width: 90%" onchange="saveFirma(this.value, '6')" >
|
||||
<td><SELECT name="auswahl_ceepus" style="width: 90%" onchange="saveFirma(this.value, '6')" >
|
||||
<option value="ceepus_auswahl">-- select --</option>
|
||||
<?php
|
||||
$firmaCeepus = new firma();
|
||||
<?php
|
||||
$firmaCeepus = new firma();
|
||||
$firmaCeepus->getFirmenMobilitaetsprogramm('6');
|
||||
foreach($firmaCeepus->result as $fi)
|
||||
echo'<option value="'.$fi->firma_id.'">'.$fi->name.'</option>';
|
||||
@@ -406,10 +409,10 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
<td><b>Sonstige</b>: Bilaterale Abkommen zwischen der FH Technikum Wien und Hochschulen außerhalb Europas zum gegenseitigen geförderten Studierendenaustausch. Eine Liste der Partnerinstitutionen befindet sich auf unserer Homepage. </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><SELECT name="auswahl_sonstige" style="width: 90%" onchange="saveFirma(this.value, '30')">
|
||||
<td><SELECT name="auswahl_sonstige" style="width: 90%" onchange="saveFirma(this.value, '30')">
|
||||
<option value="sonstige_auswahl">-- select --</option>
|
||||
<?php
|
||||
$firmaSonstige = new firma();
|
||||
<?php
|
||||
$firmaSonstige = new firma();
|
||||
$firmaSonstige->getFirmenMobilitaetsprogramm('30');
|
||||
foreach($firmaSonstige->result as $fi)
|
||||
echo'<option value="'.$fi->firma_id.'">'.$fi->name.'</option>';
|
||||
@@ -430,39 +433,39 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
</td>
|
||||
<!-- Rechte Seite -> Ausgewählte Universitäten -->
|
||||
<td valign="top">
|
||||
|
||||
|
||||
<table width="100%" style="border: thin solid black; border-spacing:5px; background-color: lightgray; margin-top:5px;" >
|
||||
<tr><td><b> <?php echo $p->t('incoming/auswahlUniversitaeten'); ?>: </b></td></tr>
|
||||
|
||||
<?php
|
||||
$outgoingFirma = new preoutgoing();
|
||||
|
||||
<?php
|
||||
$outgoingFirma = new preoutgoing();
|
||||
$outgoingFirma->loadAuswahlFirmen($outgoing->preoutgoing_id);
|
||||
$disabledSpeichern = ($outgoing->checkStatus($outgoing->preoutgoing_id, 'freigabe'))?'disabled':'';
|
||||
|
||||
$i = 1;
|
||||
|
||||
$i = 1;
|
||||
|
||||
foreach($outgoingFirma->firmen as $fi)
|
||||
{
|
||||
$firmaAuswahl = new firma();
|
||||
$firmaAuswahl = new firma();
|
||||
$firmaAuswahl->load($fi->firma_id);
|
||||
$style = '';
|
||||
$link = '';
|
||||
|
||||
|
||||
if($fi->auswahl == true)
|
||||
$style = 'style="color:red"';
|
||||
|
||||
$mobilitätsprogramm = new mobilitaetsprogramm();
|
||||
|
||||
$mobilitätsprogramm = new mobilitaetsprogramm();
|
||||
$mobilitätsprogramm->load($fi->mobilitaetsprogramm_code);
|
||||
if($mobilitätsprogramm->kurzbz == '')
|
||||
$mobprogramm = 'SUMMERSCHOOL';
|
||||
else
|
||||
$mobprogramm = $mobilitätsprogramm->kurzbz;
|
||||
|
||||
$mobprogramm = $mobilitätsprogramm->kurzbz;
|
||||
|
||||
if($fi->name == '')
|
||||
{
|
||||
if(!$outgoing->checkStatus($outgoing->preoutgoing_id, 'freigabe'))
|
||||
$link = "<a href='".$_SERVER['PHP_SELF']."?method=deleteFirma&outgoingFirma_id=".$fi->preoutgoing_firma_id."&ansicht=auswahl'>delete</a>";
|
||||
|
||||
|
||||
echo " <tr><td ".$style.">".$i.": ".$firmaAuswahl->name." [".$mobprogramm."] $link </td></tr>";
|
||||
}
|
||||
else // freemover
|
||||
@@ -474,7 +477,7 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</table>
|
||||
<form action="<?php echo $_SERVER['PHP_SELF']."?ansicht=auswahl"; ?>" method ="POST">
|
||||
<table width="100%" style="border: thin solid black; border-spacing:5px; background-color: lightgray; margin-top:5px; margin-bottom:5px;" >
|
||||
@@ -498,13 +501,13 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
<tr>
|
||||
<td><?php
|
||||
if(!$outgoing->checkStatus($outgoing->preoutgoing_id, 'freigabe'))
|
||||
echo '<span class="error">'.$p->t('incoming/warteAufFreigabe').'</span>';
|
||||
echo '<span class="error">'.$p->t('incoming/warteAufFreigabe').'</span>';
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -516,12 +519,12 @@ if(isset($_GET['ansicht']) == 'auswahl')
|
||||
<table width="46%" style="border: thin solid black; border-spacing:10px; background-color: lightgray; margin-top:5px">
|
||||
<tr>
|
||||
<td><b>Summerschool</b>: Meist zwei- bis dreiwöchige wissenschaftliche Fachkurse, die in den Sommerferien von Partnerhochschulen organisiert werden. Ankündigungen von Summer Schools erfolgen auf der CIS-Seite. </td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><SELECT name="auswahl_summerschool" onchange="saveFirma(this.value, '')" style="width: 90%">
|
||||
<option value="summerschool_auswahl">-- select --</option>
|
||||
<?php
|
||||
$firmaSummerschool = new firma();
|
||||
<?php
|
||||
$firmaSummerschool = new firma();
|
||||
$firmaSummerschool->getFirmen('Partneruniversität');
|
||||
foreach($firmaSummerschool->result as $fi)
|
||||
echo'<option value="'.$fi->firma_id.'">'.$fi->name.'</option>';
|
||||
@@ -539,9 +542,9 @@ else
|
||||
// Wenn schon Freigegeben -> dann zusätzliche Felder anzeigen
|
||||
if($outgoing->checkStatus($outgoing->preoutgoing_id, 'freigabe'))
|
||||
{
|
||||
$outgoing_id = $outgoing->preoutgoing_id;
|
||||
$outgoing_id = $outgoing->preoutgoing_id;
|
||||
|
||||
$outgoingAuswahlFirma = new preoutgoing();
|
||||
$outgoingAuswahlFirma = new preoutgoing();
|
||||
$outgoingAuswahlFirma->loadAuswahl($outgoing_id);
|
||||
$bscChecked = $outgoing->bachelorarbeit?'checked':'';
|
||||
$mscChecked = $outgoing->masterarbeit?'checked':'';
|
||||
@@ -564,7 +567,7 @@ else
|
||||
echo '<form name="zusaetzlicheDaten" method="POST" action="'.$_SERVER['PHP_SELF'].'">';
|
||||
echo '<table width="90%" style="border: thin solid black; border-spacing:10px; background-color: lightgray; margin-top:5px; margin-bottom:5px;">';
|
||||
echo '<tr><td><table>';
|
||||
|
||||
|
||||
echo '<tr><td>'.$p->t('incoming/praktikum').': </td><td><input type="checkbox" name="praktikum" value="Praktikum" '.$praktikumChecked.'></td>
|
||||
<td>'.$p->t('incoming/bachelorthesis').': <input type="checkbox" name="bachelorarbeit" '.$bscChecked.'></td>';
|
||||
echo '<td>'.$p->t('incoming/masterthesis').': <input type="checkbox" name="masterarbeit" '.$mscChecked.'></td></tr>';
|
||||
@@ -573,16 +576,16 @@ else
|
||||
echo '<tr><td> </td></tr>';
|
||||
// zusätzliche Felder bei Erasmus
|
||||
if($outgoingAuswahlFirma->mobilitaetsprogramm_code == '7')
|
||||
{
|
||||
{
|
||||
echo '<tr><td>'.$p->t('incoming/sprachkurs').': </td><td><select name="sprachkurs">
|
||||
<option value="kein">'.$p->t('incoming/keiner').'</option>
|
||||
<option value="vorbereitend" '.$sprachkursSelect.'>'.$p->t('incoming/vorbereitenderSprachkurs').'</option>
|
||||
<option value="intensiv" '.$intensivSprachkursSelect.'>'.$p->t('incoming/erasmusIntensivsprachkurs').'</option>
|
||||
</select></td></tr>';
|
||||
echo '<tr><td>'.$p->t('incoming/sprachkursVon').':</td><td> <input type="text" name="sprachkurs_von" id="datepicker_sprachkursvon" value="'.$datum->formatDatum($outgoing->sprachkurs_von, 'd.m.Y').'"></td><td colspan="4">'.$p->t('incoming/studienrichtungGastuniversitaet').': <input type="text" name="studienrichtungGastuni" value="'.$outgoing->studienrichtung_gastuniversitaet.'"></td></tr>';
|
||||
echo '<tr><td>'.$p->t('incoming/sprachkursVon').':</td><td> <input type="text" name="sprachkurs_von" id="datepicker_sprachkursvon" value="'.$datum->formatDatum($outgoing->sprachkurs_von, 'd.m.Y').'"></td><td colspan="4">'.$p->t('incoming/studienrichtungGastuniversitaet').': <input type="text" name="studienrichtungGastuni" value="'.$outgoing->studienrichtung_gastuniversitaet.'"></td></tr>';
|
||||
echo '<tr><td>'.$p->t('incoming/sprachkursBis').': </td><td><input type="text" name="sprachkurs_bis" id="datepicker_sprachkursbis" value="'.$datum->formatDatum($outgoing->sprachkurs_bis, 'd.m.Y').'"></td></tr>';
|
||||
}
|
||||
|
||||
|
||||
echo '<tr><td colspan="6">'.$p->t('incoming/aufgrundEinerBehinderung').': <input type="checkbox" name="behinderungszuschuss" '.$behindChecked.'>';
|
||||
echo '<tr><td colspan="6">'.$p->t('incoming/währendDesAuslandsaufenthaltes').': <input type="checkbox" name="studienbeihilfe" '.$beihilfeChecked.'>';
|
||||
echo '</table>';
|
||||
@@ -591,7 +594,7 @@ else
|
||||
echo '<tr><td><input type="button" value="'.$p->t('global/zurueck').'" onclick="clickZurueck()"></td><td align="right"><input type="submit" value="'.$p->t('global/speichern').'" name="zDaten"></td>';
|
||||
echo '</table>';
|
||||
echo '</form>';
|
||||
|
||||
|
||||
// Bei Mitarbeiter Lehrveranstaltung ausblenden
|
||||
if(check_lektor($outgoing->uid)=='0')
|
||||
{
|
||||
@@ -610,7 +613,7 @@ else
|
||||
<thead>
|
||||
<tr>
|
||||
<th>'.$p->t('global/bezeichnung').'</th>
|
||||
<th>'.$p->t('incoming/wochenstunden').'</th>
|
||||
<th>'.$p->t('incoming/wochenstunden').'</th>
|
||||
<th>'.$p->t('incoming/ects').'</th>
|
||||
<th>'.$p->t('incoming/unitcode').'</th>
|
||||
<th></th>
|
||||
@@ -627,12 +630,12 @@ else
|
||||
echo '<tr><td><input type="button" value="'.$p->t('incoming/learningAgreement').'" onClick="getLearningAgreement();"><input type="button" value="'.$p->t('incoming/geaendertesLA').'" onClick="getLearningAgreementChange();"></td></tr>';
|
||||
echo '</table>';
|
||||
}
|
||||
|
||||
|
||||
echo '<hr>';
|
||||
echo '<h3>'.$p->t('incoming/verwaltungVonDateien').'</h3>';
|
||||
echo '<table>
|
||||
<tr><td><a href="'.APP_ROOT.'cis/private/outgoing/akteupload.php?person_id='.$benutzer->person_id.'" onclick="FensterOeffnen(this.href); return false;">',$p->t('incoming/fileupload'),'</a></td></td></tr>';
|
||||
$akte = new akte();
|
||||
$akte = new akte();
|
||||
$akte->getAktenOutgoing($benutzer->person_id);
|
||||
|
||||
|
||||
@@ -647,20 +650,20 @@ else
|
||||
</thead>
|
||||
<tbody>';
|
||||
foreach ($akte->result as $ak)
|
||||
{
|
||||
{
|
||||
echo '<tr>
|
||||
<td><a href="'.APP_ROOT.'cis/private/outgoing/akte.php?id='.$ak->akte_id.'">'.$ak->titel.'</a></td>
|
||||
<td><a href="'.$_SERVER['PHP_SELF'].'?method=files&mode=delete&id='.$ak->akte_id.'" title="delete">'.$p->t('incoming/loeschen').'</a></td>
|
||||
</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</table>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Lehrveranstaltungen eingragen
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function saveFirma(firma_id, programm)
|
||||
@@ -683,7 +686,7 @@ else
|
||||
{
|
||||
window.location.href="<?php echo $_SERVER['PHP_SELF'] ?>?ansicht=auswahl";
|
||||
}
|
||||
function FensterOeffnen (adresse)
|
||||
function FensterOeffnen (adresse)
|
||||
{
|
||||
MeinFenster = window.open(adresse, "Info", "width=600,height=200");
|
||||
MeinFenster.focus();
|
||||
@@ -691,19 +694,19 @@ else
|
||||
function getLearningAgreement()
|
||||
{
|
||||
var url = "<?php echo APP_ROOT ?>content/pdfExport.php?xsl=OutgoingLearning&xml=learningagreement_outgoing.rdf.php&preoutgoing_id=<?php echo $outgoing->preoutgoing_id;?>&output=pdf";
|
||||
window.location.href= url;
|
||||
window.location.href= url;
|
||||
}
|
||||
function getLearningAgreementChange()
|
||||
{
|
||||
var url = "<?php echo APP_ROOT ?>content/pdfExport.php?xsl=OutgoingChangeL&xml=learningagreement_outgoing.rdf.php&preoutgoing_id=<?php echo $outgoing->preoutgoing_id;?>&output=pdf";
|
||||
window.location.href= url;
|
||||
window.location.href= url;
|
||||
}
|
||||
function test()
|
||||
{
|
||||
alert('test')
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -711,9 +714,9 @@ else
|
||||
function sendMailInternational()
|
||||
{
|
||||
$emailtext= "Dies ist eine automatisch generierte E-Mail.<br><br>";
|
||||
$emailtext.= "Es hat sich ein neuer Outgoing am System registriert.</b>";
|
||||
$emailtext.= "Es hat sich ein neuer Outgoing am System registriert.</b>";
|
||||
$mail = new mail(MAIL_INTERNATIONAL_OUTGOING, 'no-reply', 'New Outgoing', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');
|
||||
$mail->setHTMLContent($emailtext);
|
||||
$mail->send();
|
||||
$mail->setHTMLContent($emailtext);
|
||||
$mail->send();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -50,7 +50,12 @@ echo '
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@ if(!$semester || !array_key_exists($semester, $alle_semester))
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.min.1.11.1.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
</head>
|
||||
<body class="anwesenheit">
|
||||
<?php
|
||||
|
||||
@@ -91,7 +91,7 @@ if($lehreinheit_id)
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.min.1.11.1.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="anwesenheit">
|
||||
|
||||
@@ -49,7 +49,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<title>'.$p->t('freebusy/titel').'</title>
|
||||
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ require_once('../../../include/person.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
require_once('../../../include/betriebsmittel.class.php');
|
||||
require_once('../../../include/betriebsmittelperson.class.php');
|
||||
require_once('../../../include/betriebsmitteltyp.class.php');
|
||||
require_once('../../../include/betriebsmitteltyp.class.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/betriebsmittel_betriebsmittelstatus.class.php');
|
||||
require_once('../../../include/benutzer.class.php');
|
||||
@@ -37,20 +37,20 @@ require_once('../../../include/mitarbeiter.class.php');
|
||||
require_once('../../../include/student.class.php');
|
||||
require_once('../../../include/kontakt.class.php');
|
||||
require_once('../../../include/fotostatus.class.php');
|
||||
require_once('../../../include/addon.class.php');
|
||||
require_once('../../../include/addon.class.php');
|
||||
require_once('../../../include/gruppe.class.php');
|
||||
require_once('../../../include/adresse.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$sprache = getSprache();
|
||||
$p=new phrasen($sprache);
|
||||
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
|
||||
|
||||
$uid=get_uid();
|
||||
|
||||
|
||||
$datum_obj = new datum();
|
||||
|
||||
|
||||
$ansicht=false; //Wenn ein anderer User sich das Profil ansieht (Bei Personensuche)
|
||||
if(isset($_GET['uid']))
|
||||
{
|
||||
@@ -90,7 +90,7 @@ if(!$ansicht && isset($_GET['action']))
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$stg = '';
|
||||
|
||||
$stg_obj = new studiengang();
|
||||
@@ -99,7 +99,7 @@ $stg_obj->getAll('typ, kurzbz', false);
|
||||
$stg_arr = array();
|
||||
foreach ($stg_obj->result as $row)
|
||||
$stg_arr[$row->studiengang_kz]=$row->kurzbzlang;
|
||||
|
||||
|
||||
if(check_lektor($uid))
|
||||
{
|
||||
$user = new mitarbeiter();
|
||||
@@ -119,9 +119,9 @@ if ($type=='mitarbeiter')
|
||||
$vorwahl = '';
|
||||
$kontakt = new kontakt();
|
||||
$kontakt->loadFirmaKontakttyp($user->standort_id,'telefon');
|
||||
$vorwahl = $kontakt->kontakt;
|
||||
$vorwahl = $kontakt->kontakt;
|
||||
}
|
||||
|
||||
|
||||
echo '<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
@@ -129,8 +129,12 @@ echo '<!DOCTYPE HTML>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/flexcrollstyles.css" rel="stylesheet" type="text/css" />
|
||||
<script src="../../../include/js/flexcroll.js" type="text/javascript" ></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
@@ -138,14 +142,14 @@ echo '<!DOCTYPE HTML>
|
||||
{
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t1").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]],
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
});
|
||||
$("#t2").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]],
|
||||
@@ -160,23 +164,23 @@ echo '<!DOCTYPE HTML>
|
||||
<div class="flexcroll" style="outline: none;">
|
||||
<h1>'.$p->t('profil/profil').'</h1>
|
||||
';
|
||||
|
||||
|
||||
if(!$user->bnaktiv)
|
||||
{
|
||||
if(!$ansicht)
|
||||
{
|
||||
|
||||
|
||||
if ($type=='student')
|
||||
$message = $p->t('profil/inaktivStudent');
|
||||
elseif($type=='mitarbeiter')
|
||||
$message = $p->t('profil/inaktivMitarbeiter');
|
||||
else
|
||||
$message = $p->t('profil/inaktivSonstige');
|
||||
$message = $p->t('profil/inaktivSonstige');
|
||||
}
|
||||
else
|
||||
$message = $p->t('profil/AccountInaktiv');
|
||||
|
||||
echo "<span style='color: red;'>$message</span>";
|
||||
|
||||
echo "<span style='color: red;'>$message</span>";
|
||||
}
|
||||
|
||||
echo '
|
||||
@@ -187,7 +191,7 @@ echo '
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td valign="top" width="10%" nowrap style="padding-right:10px;">';
|
||||
|
||||
|
||||
//Foto anzeigen
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($uid);
|
||||
@@ -200,7 +204,7 @@ if($person->foto!='')
|
||||
else
|
||||
echo '<img id="personimage" src="../../../skin/images/profilbild_dummy.jpg" alt="Dummy Picture" height="100px" width="75px">';
|
||||
}
|
||||
else
|
||||
else
|
||||
echo '<img id="personimage" src="../../../skin/images/profilbild_dummy.jpg" alt="Dummy Picture" height="100px" width="75px">';
|
||||
|
||||
if(!$ansicht)
|
||||
@@ -212,7 +216,7 @@ if(!$ansicht)
|
||||
}
|
||||
if($user->foto_sperre)
|
||||
echo '<br><b>'.$p->t('profil/profilfotoGesperrt').'</b>';
|
||||
|
||||
|
||||
if(!$ansicht)
|
||||
{
|
||||
if($user->foto_sperre)
|
||||
@@ -220,7 +224,7 @@ if(!$ansicht)
|
||||
else
|
||||
echo '<br><a href="'.$_SERVER['PHP_SELF'].'?action=foto_sperre" title="'.$p->t('profil/infotextSperre').'">'.$p->t('profil/fotosperren').'</a>';
|
||||
}
|
||||
|
||||
|
||||
echo '</td><td width="30%" valign="top">';
|
||||
|
||||
echo '
|
||||
@@ -236,24 +240,24 @@ else
|
||||
echo '
|
||||
'.$p->t('global/nachname').': '.$user->nachname.'<br>
|
||||
'.$p->t('global/postnomen').': '.$user->titelpost.'<br><br>';
|
||||
|
||||
|
||||
if(!$ansicht)
|
||||
{
|
||||
echo ' '.$p->t('global/geburtsdatum').': '.$datum_obj->formatDatum($user->gebdatum,'d.m.Y')."<br>
|
||||
".$p->t('global/geburtsort').": $user->gebort<br><br>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(!$ansicht)
|
||||
{
|
||||
$adresse = new adresse();
|
||||
$adresse->load_pers($user->person_id);
|
||||
|
||||
|
||||
function sortAdresse($a , $b)
|
||||
{
|
||||
if($a->typ === $b->typ)
|
||||
return 0;
|
||||
|
||||
|
||||
return ($a->typ < $b->typ) ? -1 : 1;
|
||||
}
|
||||
usort($adresse->result, "sortAdresse");
|
||||
@@ -284,9 +288,9 @@ if(!$ansicht)
|
||||
|
||||
$studiengang = new studiengang();
|
||||
if ($type=='student' && (!defined('CIS_PROFIL_STUDIENINFORMATION_ANZEIGEN') || CIS_PROFIL_STUDIENINFORMATION_ANZEIGEN))
|
||||
{
|
||||
{
|
||||
$studiengang->load($user->studiengang_kz);
|
||||
|
||||
|
||||
echo "
|
||||
".$p->t('global/studiengang').": $studiengang->bezeichnung<br>
|
||||
".$p->t('global/semester').": $user->semester <a href='#' onClick='javascript:window.open(\"../stud_in_grp.php?kz=$user->studiengang_kz&sem=$user->semester\",\"_blank\",\"width=600,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes, resizable=1\");return false;'>".$p->t('benotungstool/liste')."</a><br>
|
||||
@@ -296,12 +300,12 @@ if ($type=='student' && (!defined('CIS_PROFIL_STUDIENINFORMATION_ANZEIGEN') || C
|
||||
if($user->studiengang_kz<10000)
|
||||
echo $p->t('profil/martrikelnummer').": $user->matrikelnr<br />";
|
||||
}
|
||||
|
||||
|
||||
if ($type=='mitarbeiter')
|
||||
{
|
||||
echo "<br>
|
||||
".$p->t('profil/kurzzeichen').": $user->kurzbz<BR>";
|
||||
|
||||
|
||||
if($user->telefonklappe!='')
|
||||
{
|
||||
echo $p->t('profil/telefonTw').": $vorwahl - $user->telefonklappe<BR>";
|
||||
@@ -309,11 +313,11 @@ if ($type=='mitarbeiter')
|
||||
}
|
||||
if ($user->ort_kurzbz!='')
|
||||
echo $p->t('profil/buero').': '.$user->ort_kurzbz.'<br>';
|
||||
}
|
||||
}
|
||||
echo '</td>';
|
||||
echo '<td valign="top">';
|
||||
if(!$ansicht && (!defined('CIS_PROFIL_FHAUSWEIS_ANZEIGEN') || CIS_PROFIL_FHAUSWEIS_ANZEIGEN))
|
||||
{
|
||||
{
|
||||
echo '<b>'.$p->t('profil/fhausweisStatus').'</b><br>';
|
||||
$bm = new betriebsmittel();
|
||||
if($bm->zutrittskarteAusgegeben($user->uid))
|
||||
@@ -339,13 +343,13 @@ if(!$ansicht && (!defined('CIS_PROFIL_FHAUSWEIS_ANZEIGEN') || CIS_PROFIL_FHAUSWE
|
||||
{
|
||||
echo '<br>'.$p->t('profil/fhausweisGedrucktAm').' '.$datum_obj->formatDatum($bm->insertamum,'d.m.Y');
|
||||
$geliefertts = $datum_obj->mktime_fromtimestamp($bm->insertamum);
|
||||
$abholungsdatum = $datum_obj->jump_day($geliefertts, 1);
|
||||
echo '<br>'.$p->t('profil/fhausweisAbholbereitAmEmpfangAb').' '.date('d.m.Y',$abholungsdatum);
|
||||
$abholungsdatum = $datum_obj->jump_day($geliefertts, 1);
|
||||
echo '<br>'.$p->t('profil/fhausweisAbholbereitAmEmpfangAb').' '.date('d.m.Y',$abholungsdatum);
|
||||
}
|
||||
else
|
||||
echo '<br>'.$p->t('profil/fhausweisWurdeNochNichtGedruckt');
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
echo '<br><div style="color:red;">'.$p->t('profil/ladenSieBitteEinGueltigesFotoHoch').'</div>';
|
||||
break;
|
||||
@@ -371,12 +375,12 @@ if(!$ansicht)
|
||||
{
|
||||
if($a->kontakttyp === $b->kontakttyp)
|
||||
return 0;
|
||||
|
||||
|
||||
return ($a->kontakttyp < $b->kontakttyp) ? -1 : 1;
|
||||
}
|
||||
echo '<br><br><b>'.$p->t('profil/kontaktPrivat').'</b>';
|
||||
$kontakt = new kontakt();
|
||||
$kontakt->load_pers($user->person_id);
|
||||
$kontakt->load_pers($user->person_id);
|
||||
usort($kontakt->result, "sortKontakt");
|
||||
|
||||
foreach($kontakt->result as $k)
|
||||
@@ -410,17 +414,17 @@ $mail = MAIL_ADMIN;
|
||||
{
|
||||
$user->studiengang_kz = 0;
|
||||
}
|
||||
|
||||
|
||||
//Wenn eine Assistentin fuer diesen Studiengang eingetragen ist,
|
||||
//dann werden die aenderungswuesche an diese Adresse gesendet
|
||||
if($studiengang->email!='')
|
||||
$mail = $studiengang->email;
|
||||
else
|
||||
$mail = MAIL_ADMIN;
|
||||
|
||||
|
||||
if($user->studiengang_kz=='0')
|
||||
$mail = MAIL_GST;
|
||||
|
||||
|
||||
if(!$ansicht)
|
||||
{
|
||||
echo "
|
||||
@@ -430,28 +434,28 @@ if(!$ansicht)
|
||||
%0A%0A***%0DPlatz fuer weitere (nicht angefuehrte Daten)%0D***\">".$p->t('profil/zustaendigeAssistenz')."</a><br><br>";
|
||||
}
|
||||
|
||||
echo '<table width="100%">';
|
||||
echo '<table width="100%">';
|
||||
|
||||
echo '<tr>
|
||||
<td valign="top">';
|
||||
|
||||
if(!defined('CIS_PROFIL_FUNKTIONEN_ANZEIGEN') || CIS_PROFIL_FUNKTIONEN_ANZEIGEN)
|
||||
{
|
||||
{
|
||||
|
||||
|
||||
|
||||
//Funktionen
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
*, tbl_benutzerfunktion.oe_kurzbz as oe_kurzbz, tbl_organisationseinheit.bezeichnung as oe_bezeichnung,
|
||||
tbl_benutzerfunktion.semester, tbl_benutzerfunktion.bezeichnung as bf_bezeichnung
|
||||
FROM
|
||||
public.tbl_benutzerfunktion
|
||||
JOIN public.tbl_funktion USING(funktion_kurzbz)
|
||||
FROM
|
||||
public.tbl_benutzerfunktion
|
||||
JOIN public.tbl_funktion USING(funktion_kurzbz)
|
||||
JOIN public.tbl_organisationseinheit USING(oe_kurzbz)
|
||||
WHERE
|
||||
uid=".$db->db_add_param($uid)." AND
|
||||
WHERE
|
||||
uid=".$db->db_add_param($uid)." AND
|
||||
(tbl_benutzerfunktion.datum_von is null OR tbl_benutzerfunktion.datum_von<=now()) AND
|
||||
(tbl_benutzerfunktion.datum_bis is null OR tbl_benutzerfunktion.datum_bis>=now())";
|
||||
|
||||
|
||||
if($result_funktion = $db->db_query($qry))
|
||||
{
|
||||
if($db->db_num_rows($result_funktion)>0)
|
||||
@@ -473,7 +477,7 @@ if(!$ansicht && (!defined('CIS_PROFIL_BETRIEBSMITTEL_ANZEIGEN') || CIS_PROFIL_BE
|
||||
$oBetriebsmittelperson = new betriebsmittelperson();
|
||||
$oBetriebsmittelperson->result=array();
|
||||
$oBetriebsmittelperson->errormsg='';
|
||||
|
||||
|
||||
if ($oBetriebsmittelperson->getBetriebsmittelPerson($user->person_id))
|
||||
{
|
||||
if (is_array($oBetriebsmittelperson->result) && count($oBetriebsmittelperson->result)>0)
|
||||
@@ -487,13 +491,13 @@ if(!$ansicht && (!defined('CIS_PROFIL_BETRIEBSMITTEL_ANZEIGEN') || CIS_PROFIL_BE
|
||||
<th>'.$p->t('profil/ausgegebenAm').'</th>
|
||||
</tr>
|
||||
</thead><tbody>';
|
||||
|
||||
|
||||
for ($i=0;$i<count($oBetriebsmittelperson->result);$i++)
|
||||
{
|
||||
if (empty($oBetriebsmittelperson->result[$i]->retouram) )
|
||||
{
|
||||
$bm = new betriebsmittel_betriebsmittelstatus();
|
||||
if($bm->load_last_betriebsmittel_id($oBetriebsmittelperson->result[$i]->betriebsmittel_id)
|
||||
if($bm->load_last_betriebsmittel_id($oBetriebsmittelperson->result[$i]->betriebsmittel_id)
|
||||
&& $bm->betriebsmittelstatus_kurzbz<>'vorhanden')
|
||||
{
|
||||
continue;
|
||||
@@ -508,7 +512,7 @@ if(!$ansicht && (!defined('CIS_PROFIL_BETRIEBSMITTEL_ANZEIGEN') || CIS_PROFIL_BE
|
||||
<td>".$oBetriebsmittelperson->result[$i]->nummer.' <a href="mailto:'.$mailtext_inventar.'>'.$oBetriebsmittelperson->result[$i]->inventarnummer."</a></td>
|
||||
<td>".$datum_obj->formatDatum($oBetriebsmittelperson->result[$i]->ausgegebenam,'d.m.Y')."</td>
|
||||
</tr>";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
@@ -531,30 +535,30 @@ if(!$ansicht && (!defined('CIS_PROFIL_BETRIEBSMITTEL_ANZEIGEN') || CIS_PROFIL_BE
|
||||
</thead>
|
||||
<tbody>
|
||||
';
|
||||
|
||||
|
||||
foreach($gruppe->result as $row)
|
||||
{
|
||||
echo '<tr>';
|
||||
echo '<td>'.$row->bezeichnung.'</td>';
|
||||
echo '</tr>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</tbody>
|
||||
</thead>
|
||||
</table>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
|
||||
|
||||
echo '
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>';
|
||||
$menubox='';
|
||||
|
||||
|
||||
//Überprüfung ob Addon vorhanden ist
|
||||
$addon = new addon();
|
||||
|
||||
$addon = new addon();
|
||||
|
||||
foreach($addon->aktive_addons as $ad)
|
||||
{
|
||||
// checken ob es file profil_array.php gibt
|
||||
@@ -567,12 +571,12 @@ if(!$ansicht && (!defined('CIS_PROFIL_BETRIEBSMITTEL_ANZEIGEN') || CIS_PROFIL_BE
|
||||
{
|
||||
foreach($menu as $entry)
|
||||
{
|
||||
$menubox.= "<p><a href=".$entry['link']." target=".$entry['target'].">".$entry['name']."</a></p>";
|
||||
$menubox.= "<p><a href=".$entry['link']." target=".$entry['target'].">".$entry['name']."</a></p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Überprüfung ob Hilfe-Link vorhanden
|
||||
if ($p->t("dms_link/profilhilfe")!='')
|
||||
$menubox.= '<p><a href="../../../cms/content.php?content_id='.$p->t("dms_link/profilhilfe").'" target="_blank">'.$p->t('global/hilfe').'</a></p>';
|
||||
@@ -591,30 +595,30 @@ if(!$ansicht && (!defined('CIS_PROFIL_BETRIEBSMITTEL_ANZEIGEN') || CIS_PROFIL_BE
|
||||
echo "<SMALL>".$p->t('profil/sieSindMitgliedInFolgendenVerteilern').":</SMALL>";
|
||||
else
|
||||
echo "<SMALL>".$p->t('profil/derUserIstInFolgendenVerteilern',array($user->uid)).":</SMALL>";
|
||||
|
||||
|
||||
echo '<table>';
|
||||
|
||||
|
||||
// Mail-Groups
|
||||
$qry_gruppen = "
|
||||
SELECT
|
||||
gruppe_kurzbz, beschreibung
|
||||
FROM
|
||||
campus.vw_persongruppe
|
||||
WHERE
|
||||
mailgrp
|
||||
SELECT
|
||||
gruppe_kurzbz, beschreibung
|
||||
FROM
|
||||
campus.vw_persongruppe
|
||||
WHERE
|
||||
mailgrp
|
||||
AND uid=".$db->db_add_param($uid);
|
||||
|
||||
if(!($erg_mg=$db->db_query($qry_gruppen)))
|
||||
die($db->db_last_error());
|
||||
$nr_mg=$db->db_num_rows($erg_mg);
|
||||
|
||||
|
||||
for($i=0;$i<$nr_mg;$i++)
|
||||
{
|
||||
$row=$db->db_fetch_object($erg_mg,$i);
|
||||
echo '<TR><TD><A href="mailto:'.strtolower(trim($row->gruppe_kurzbz)).'@'.DOMAIN.'">'.strtolower($row->gruppe_kurzbz).' </TD>';
|
||||
echo "<TD> $row->beschreibung</TD></TR>";
|
||||
}
|
||||
|
||||
|
||||
if (isset($user->matrikelnr))
|
||||
{
|
||||
echo '<TR><TD><A href="mailto:'.strtolower(trim($studiengang->kuerzel)).'_std@'.DOMAIN.'">'.strtolower($studiengang->kuerzel).'_std </TD>';
|
||||
|
||||
@@ -119,7 +119,12 @@ require_once('../../../include/benutzerberechtigung.class.php');
|
||||
<title>'.$p->t('lvaliste/titel').'</title>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script language="Javascript">
|
||||
<!--
|
||||
|
||||
@@ -66,7 +66,12 @@ $buchung->getBuchungPerson($benutzer->person_id, $options);
|
||||
<title><?php echo $p->t('buchungen/titel'); ?></title>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script language="Javascript">
|
||||
<!--
|
||||
|
||||
@@ -133,7 +133,11 @@ echo '<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" />
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" />
|
||||
<link rel="stylesheet" href="../../../skin/jquery-ui-1.9.2.custom.min.css" />
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js"></script>';
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
';
|
||||
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
@@ -353,7 +357,7 @@ function drawTree($tree, $depth)
|
||||
{
|
||||
global $uid, $stsem_arr, $noten_arr, $lvangebot_arr, $aktornext;
|
||||
global $datum_obj, $db, $lv_arr, $p, $note_pruef_arr, $student;
|
||||
|
||||
|
||||
foreach($tree as $row_tree)
|
||||
{
|
||||
$style='';
|
||||
@@ -376,7 +380,8 @@ function drawTree($tree, $depth)
|
||||
break;
|
||||
case 'lv':
|
||||
$icon='<img src="../../../skin/images/lv.png"> ';
|
||||
$termine="<a href='../lvplan/stpl_week.php?type=lva&lva=" . $row_tree->lehrveranstaltung_id . "' target='_blank'><img src='../../../skin/images/date_magnify.png' title='Termine' alt='Termine'></a>";
|
||||
if (!defined('CIS_STUDIENPLAN_LVPLANLINK_ANZEIGEN') || CIS_STUDIENPLAN_LVPLANLINK_ANZEIGEN)
|
||||
$termine="<a href='../lvplan/stpl_week.php?type=lva&lva=" . $row_tree->lehrveranstaltung_id . "' target='_blank'><img src='../../../skin/images/date_magnify.png' title='Termine' alt='Termine'></a>";
|
||||
break;
|
||||
default:
|
||||
$icon='';
|
||||
@@ -434,10 +439,10 @@ function drawTree($tree, $depth)
|
||||
echo '<td>';
|
||||
|
||||
// Note zu dieser LV vorhanden?
|
||||
|
||||
|
||||
$lv_kompatibel = new lehrveranstaltung();
|
||||
$kompatibleLVs = $lv_kompatibel->loadLVkompatibel($row_tree->lehrveranstaltung_id);
|
||||
|
||||
|
||||
if(isset($noten_arr[$row_tree->lehrveranstaltung_id]))
|
||||
{
|
||||
// Positive Note fuer diese LV vorhanden?
|
||||
@@ -447,7 +452,7 @@ function drawTree($tree, $depth)
|
||||
if($note_pruef_arr[$note]->positiv)
|
||||
$positiv=true;
|
||||
}
|
||||
|
||||
|
||||
if(!$positiv)
|
||||
{
|
||||
//echo '<span class="error">'.$p->t('studienplan/negativ').'</span>';
|
||||
@@ -478,7 +483,7 @@ function drawTree($tree, $depth)
|
||||
else
|
||||
{
|
||||
echo '<span>'.$p->t('studienplan/offen').'</span>';
|
||||
}
|
||||
}
|
||||
}
|
||||
//check if compatible course has grade
|
||||
elseif(count($kompatibleLVs) > 0)
|
||||
@@ -526,15 +531,15 @@ function drawTree($tree, $depth)
|
||||
}
|
||||
elseif(count($kompatibleLVs) > 0)
|
||||
{
|
||||
|
||||
|
||||
$i = 0;
|
||||
while(!$found && $i < count($kompatibleLVs))
|
||||
{
|
||||
{
|
||||
foreach($kompatibleLVs as $komp)
|
||||
{
|
||||
$anrechnung = new anrechnung();
|
||||
$anrechnung->getAnrechnungPrestudent($student->prestudent_id, $row_tree->lehrveranstaltung_id, $komp);
|
||||
|
||||
|
||||
if(count($anrechnung->result) == 1)
|
||||
{
|
||||
$lv = $anrechnung->result[0]->lehrveranstaltung_id_kompatibel;
|
||||
@@ -582,7 +587,7 @@ function drawTree($tree, $depth)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
foreach($lvkompatibel_arr as $row_lvid)
|
||||
{
|
||||
// Angebot der LV pruefen
|
||||
@@ -661,16 +666,16 @@ function drawTree($tree, $depth)
|
||||
|
||||
function checkKompatibleLvs($kompatibleLVs, $student, $row_tree, $noten_arr, $note_pruef_arr, $p, $uid, $negativeNote= null)
|
||||
{
|
||||
$positiv = false;
|
||||
$positiv = false;
|
||||
$found = false;
|
||||
$i = 0;
|
||||
while(!$found && $i < count($kompatibleLVs))
|
||||
{
|
||||
{
|
||||
foreach($kompatibleLVs as $komp)
|
||||
{
|
||||
|
||||
$anrechnung = new anrechnung();
|
||||
$anrechnung->getAnrechnungPrestudent($student->prestudent_id, $row_tree->lehrveranstaltung_id, $komp);
|
||||
$anrechnung->getAnrechnungPrestudent($student->prestudent_id, $row_tree->lehrveranstaltung_id, $komp);
|
||||
|
||||
if(count($anrechnung->result) == 1)
|
||||
{
|
||||
|
||||
@@ -40,19 +40,19 @@ $rechte->getBerechtigungen($user);
|
||||
|
||||
if(isset($_GET['year']) && is_numeric($_GET['year']))
|
||||
$year = $_GET['year'];
|
||||
else
|
||||
else
|
||||
{
|
||||
//Bis August das aktuelle Jahr anzeigen
|
||||
//Ab September das naechste
|
||||
if(date('m')<9)
|
||||
$year = date('Y');
|
||||
else
|
||||
else
|
||||
$year = date('Y')+1;
|
||||
}
|
||||
|
||||
if(isset($_GET['uid']))
|
||||
$uid=$_GET['uid'];
|
||||
else
|
||||
else
|
||||
$uid='';
|
||||
|
||||
$datum_obj = new datum();
|
||||
@@ -62,7 +62,11 @@ echo '<html>
|
||||
<title>Urlaubsfreigabe</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>';
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
';
|
||||
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
@@ -76,7 +80,7 @@ foreach($addon_obj->result as $addon)
|
||||
// Wenn Seite fertig geladen ist Addons aufrufen
|
||||
echo '
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
$( document ).ready(function()
|
||||
{
|
||||
for(i in addon)
|
||||
{
|
||||
@@ -140,16 +144,16 @@ if(isset($_GET['action']) && $_GET['action']=='freigabe')
|
||||
if(!$zeitsperre->save(false))
|
||||
echo "<b>Fehler bei der Freigabe: $zeitsperre->errormsg</b>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<b>Sie haben keine Berechtigung den Urlaub für diesen Mitarbeiter freizugeben</b>';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<b>Die Zeitsperre konnte nicht geladen werden</b>';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//Speichern der Resturlaubstage
|
||||
@@ -159,16 +163,16 @@ if(isset($_POST['saveresturlaub']))
|
||||
{
|
||||
$resturlaub = new resturlaub();
|
||||
$resturlaub->load($uid);
|
||||
|
||||
|
||||
$resturlaub->resturlaubstage=$_POST['resturlaubstage'];
|
||||
$resturlaub->updateamum=date('Y-m-d H:i:s');
|
||||
$resturlaub->updatevon = $user;
|
||||
if($resturlaub->save())
|
||||
echo 'Resturlaubstage wurden erfolgreich gespeichert';
|
||||
else
|
||||
else
|
||||
echo '<span class="error">Fehler beim Speichern der Resturlaubstage: '.$resturlaub->errormsg.'</span>';
|
||||
}
|
||||
else
|
||||
else
|
||||
echo '<span class="error">Fehler beim Speichern der Resturlaubstage: Resturlaub muss eine gueltige Zahl sein</span>';
|
||||
}
|
||||
|
||||
@@ -176,30 +180,30 @@ if(isset($_POST['saveresturlaub']))
|
||||
function draw_monat($monat)
|
||||
{
|
||||
global $untergebene, $mitarbeiter, $year, $datum_obj, $uid;
|
||||
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Fehler beim Oeffnen der Datenbankverbindung');
|
||||
|
||||
|
||||
|
||||
echo '<td style="border: 1px solid black; height:100px; width: 30%" valign="top">';
|
||||
echo '<center><b>';
|
||||
echo date('F',mktime(0,0,0,$monat,1,date('Y')));
|
||||
echo " ".($monat>8?$year-1:$year);
|
||||
echo '</b></center>';
|
||||
//Alle Anzeigen bei denen das von- oder bisdatum in dieses monat fallen
|
||||
$qry = "SELECT * FROM campus.tbl_zeitsperre WHERE zeitsperretyp_kurzbz='Urlaub'
|
||||
AND
|
||||
$qry = "SELECT * FROM campus.tbl_zeitsperre WHERE zeitsperretyp_kurzbz='Urlaub'
|
||||
AND
|
||||
(
|
||||
(date_part('month', vondatum)='$monat' AND date_part('year', vondatum)='".($monat>8?$year-1:$year)."')
|
||||
OR
|
||||
(date_part('month', vondatum)='$monat' AND date_part('year', vondatum)='".($monat>8?$year-1:$year)."')
|
||||
OR
|
||||
(date_part('month', bisdatum)='$monat' AND date_part('year', bisdatum)='".($monat>8?$year-1:$year)."')
|
||||
)";
|
||||
if($uid=='')
|
||||
$qry.=" AND mitarbeiter_uid in($untergebene)";
|
||||
else
|
||||
else
|
||||
$qry.=" AND mitarbeiter_uid='".addslashes($uid)."'";
|
||||
$qry.="ORDER BY vondatum, mitarbeiter_uid";
|
||||
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
while($row = $db->db_fetch_object($result))
|
||||
@@ -230,9 +234,9 @@ if($uid!='')
|
||||
echo '</td><td style="width:33%">';
|
||||
//echo '<div id="resturlaub"></div>';
|
||||
//echo '</td></tr></table>';
|
||||
|
||||
|
||||
//Anzeige Resturlaubsberechnung
|
||||
|
||||
|
||||
$resturlaub = new resturlaub();
|
||||
|
||||
if($resturlaub->load($uid))
|
||||
@@ -241,17 +245,17 @@ if($uid!='')
|
||||
$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;
|
||||
else
|
||||
$anspruch = 0;
|
||||
}
|
||||
|
||||
$jahr=date('Y');
|
||||
@@ -296,7 +300,7 @@ if($uid!='')
|
||||
echo "<input type='submit' value='OK' name='saveresturlaub'>";
|
||||
echo "</form>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo "$resturlaubstage Tage";
|
||||
}
|
||||
@@ -305,9 +309,9 @@ if($uid!='')
|
||||
echo "<tr><td style='border-top: 1px solid black;' nowrap>aktueller Stand</td><td style='border-top: 1px solid black;' align='right' nowrap>".($anspruch+$resturlaubstage-$gebuchterurlaub)." Tage</td><td class='grey' nowrap> ( Stichtag: $datum_ende )</td></tr>";
|
||||
echo "</table>";
|
||||
echo '</div>';
|
||||
|
||||
|
||||
echo '</td></tr></table>';
|
||||
|
||||
|
||||
}
|
||||
|
||||
echo '<br><center>';
|
||||
|
||||
@@ -422,7 +422,10 @@ $datum_obj = new datum();
|
||||
<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>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<?php
|
||||
// ADDONS laden
|
||||
$addon_obj = new addon();
|
||||
|
||||
@@ -62,7 +62,12 @@
|
||||
<title>'.$p->t('tools/zahlungen').'</title>
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
</head>
|
||||
<style>
|
||||
table.tablesorter
|
||||
|
||||
@@ -35,12 +35,12 @@ require_once('../../../include/mail.class.php');
|
||||
require_once('../../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
|
||||
|
||||
$uid = get_uid();
|
||||
|
||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||
@@ -48,7 +48,7 @@ $PHP_SELF = $_SERVER['PHP_SELF'];
|
||||
if(isset($_GET['type']))
|
||||
$type=$_GET['type'];
|
||||
|
||||
//Wenn User Administrator ist und UID uebergeben wurde, dann die Zeitsperren
|
||||
//Wenn User Administrator ist und UID uebergeben wurde, dann die Zeitsperren
|
||||
//des uebergebenen Users anzeigen
|
||||
if(isset($_GET['uid']))
|
||||
{
|
||||
@@ -58,7 +58,7 @@ if(isset($_GET['uid']))
|
||||
{
|
||||
$uid = $_GET['uid'];
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
die($p->t('global/FuerDieseAktionBenoetigenSieAdministrationsrechte'));
|
||||
}
|
||||
@@ -78,10 +78,13 @@ $num_rows_stunde=$db->db_num_rows($result_stunde);
|
||||
<title><?php echo $p->t('zeitsperre/zeitsperre');?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery.ui.timepicker.js" type="text/javascript" ></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="../../../vendor/fgelinas/timepicker/jquery.ui.timepicker.js" type="text/javascript" ></script>
|
||||
<link href="../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../skin/jquery.ui.timepicker.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../vendor/fgelinas/timepicker/jquery.ui.timepicker.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<?php
|
||||
// ADDONS laden
|
||||
@@ -96,7 +99,7 @@ foreach($addon_obj->result as $addon)
|
||||
// Wenn Seite fertig geladen ist Addons aufrufen
|
||||
echo '
|
||||
<script>
|
||||
$( document ).ready(function()
|
||||
$( document ).ready(function()
|
||||
{
|
||||
if(typeof addon !== \'undefined\')
|
||||
{
|
||||
@@ -105,14 +108,14 @@ $( document ).ready(function()
|
||||
addon[i].init("cis/private/profile/urlaubstool.php", {uid:\''.$uid.'\'});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$( ".datepicker_datum" ).datepicker({
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
changeYear: true,
|
||||
dateFormat: "dd.mm.yy",
|
||||
});
|
||||
|
||||
|
||||
$( ".timepicker" ).timepicker({
|
||||
showPeriodLabels: false,
|
||||
hourText: "'.$p->t("global/stunde").'",
|
||||
@@ -165,43 +168,43 @@ function checkdatum()
|
||||
return false;
|
||||
}
|
||||
|
||||
var Datum, Tag, Monat,Jahr,vonDatum,bisDatum;
|
||||
|
||||
var Datum, Tag, Monat,Jahr,vonDatum,bisDatum;
|
||||
|
||||
Datum=document.getElementById('vondatum').value;
|
||||
Tag=Datum.substring(0,2);
|
||||
Monat=Datum.substring(3,5);
|
||||
Tag=Datum.substring(0,2);
|
||||
Monat=Datum.substring(3,5);
|
||||
if (parseInt(Monat,10)<1 || parseInt(Monat,10)>12)
|
||||
{
|
||||
{
|
||||
alert('<?php echo $p->t('zeitsperre/vonDatumMonat');?>'+ document.getElementById('vondatum').value+ ' <?php echo $p->t('zeitsperre/istNichtRichtig');?>.');
|
||||
document.getElementById('vondatum').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
Jahr=Datum.substring(6,10);
|
||||
|
||||
Jahr=Datum.substring(6,10);
|
||||
|
||||
vonDatum=Jahr+''+Monat+''+Tag;
|
||||
|
||||
|
||||
Datum=document.getElementById('bisdatum').value;
|
||||
Tag=Datum.substring(0,2);
|
||||
Monat=Datum.substring(3,5);
|
||||
Tag=Datum.substring(0,2);
|
||||
Monat=Datum.substring(3,5);
|
||||
if (parseInt(Monat,10)<1 || parseInt(Monat,10)>12)
|
||||
{
|
||||
{
|
||||
alert('<?php echo $p->t('zeitsperre/bisDatumMonat');?>'+ document.getElementById('bisdatum').value+ ' <?php echo $p->t('zeitsperre/istNichtRichtig');?>.');
|
||||
document.getElementById('bisdatum').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
Jahr=Datum.substring(6,10);
|
||||
|
||||
bisDatum=Jahr+''+Monat+''+Tag;
|
||||
|
||||
if (vonDatum>bisDatum)
|
||||
|
||||
Jahr=Datum.substring(6,10);
|
||||
|
||||
bisDatum=Jahr+''+Monat+''+Tag;
|
||||
|
||||
if (vonDatum>bisDatum)
|
||||
{
|
||||
alert('<?php echo $p->t('zeitsperre/vonDatum');?> '+ document.getElementById('vondatum').value+ ' <?php echo $p->t('zeitsperre/istGroesserAlsBisDatum');?> '+document.getElementById('bisdatum').value);
|
||||
document.getElementById('vondatum').focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -222,13 +225,13 @@ function showHideBezeichnungDropDown()
|
||||
str += '<option value="Wohnungswechsel">h) Wohnungswechsel in eigenen Haushalt</option>';
|
||||
str += '<option value="Bundesheer">i) Einberufung Bundesheer</option>';
|
||||
str += '</select>';
|
||||
|
||||
|
||||
sp.innerHTML = str;
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
sp.innerHTML = '<input type="text" name="bezeichnung" maxlength="32" size="32" value="">';
|
||||
}
|
||||
if (dd.options[dd.selectedIndex].value == 'Urlaub')
|
||||
@@ -267,7 +270,7 @@ function setBisDatum()
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
//Zeitsperre Speichern
|
||||
if(isset($_GET['type']) && ($_GET['type']=='edit_sperre' || $_GET['type']=='new_sperre'))
|
||||
{
|
||||
@@ -294,27 +297,27 @@ if(isset($_GET['type']) && ($_GET['type']=='edit_sperre' || $_GET['type']=='new_
|
||||
$date=explode('.',$_POST['vondatum']);
|
||||
if (@checkdate($date[1], $date[0], $date[2]))
|
||||
{
|
||||
$vondatum=$date[2].$date[1].$date[0];
|
||||
}
|
||||
$vondatum=$date[2].$date[1].$date[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$error=true;
|
||||
$error_msg .= $p->t('zeitsperre/vonDatumUngueltig').' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$bisdatum=0;
|
||||
if(isset($_POST['bisdatum']))
|
||||
{
|
||||
$date=explode('.',$_POST['bisdatum']);
|
||||
if (@checkdate($date[1], $date[0], $date[2]))
|
||||
{
|
||||
$bisdatum=$date[2].$date[1].$date[0];
|
||||
}
|
||||
$bisdatum=$date[2].$date[1].$date[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$error=true;
|
||||
@@ -324,16 +327,16 @@ if(isset($_GET['type']) && ($_GET['type']=='edit_sperre' || $_GET['type']=='new_
|
||||
else
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if($vondatum > $bisdatum)
|
||||
{
|
||||
$error=true;
|
||||
$error_msg .= $p->t('zeitsperre/vonDatumGroesserAlsBisDatum').'! ';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$zeitsperre = new zeitsperre();
|
||||
|
||||
if($_GET['type']=='edit_sperre')
|
||||
@@ -418,9 +421,9 @@ if(isset($_GET['type']) && ($_GET['type']=='edit_sperre' || $_GET['type']=='new_
|
||||
$benutzer->load($uid);
|
||||
if($datum_obj->formatDatum($zeitsperre->vondatum, 'm')>=9)
|
||||
$jahr = $datum_obj->formatDatum($zeitsperre->vondatum, 'Y')+1;
|
||||
else
|
||||
else
|
||||
$jahr = $datum_obj->formatDatum($zeitsperre->vondatum, 'Y');
|
||||
|
||||
|
||||
$message = "Dies ist eine automatische Mail! \n".
|
||||
"$benutzer->nachname $benutzer->vorname hat einen neuen Urlaub eingetragen:\n".
|
||||
"$zeitsperre->bezeichnung von ".$datum_obj->formatDatum($zeitsperre->vondatum,'d.m.Y')." bis ".$datum_obj->formatDatum($zeitsperre->bisdatum,'d.m.Y')."\n\n".
|
||||
@@ -494,9 +497,9 @@ if(count($zeit->result)>0)
|
||||
{
|
||||
$i++;
|
||||
//name der vertretung holen
|
||||
$qry = "SELECT vorname || ' ' || nachname as kurzbz FROM public.tbl_mitarbeiter, public.tbl_benutzer, public.tbl_person
|
||||
WHERE tbl_benutzer.uid=tbl_mitarbeiter.mitarbeiter_uid
|
||||
AND tbl_benutzer.person_id=tbl_person.person_id
|
||||
$qry = "SELECT vorname || ' ' || nachname as kurzbz FROM public.tbl_mitarbeiter, public.tbl_benutzer, public.tbl_person
|
||||
WHERE tbl_benutzer.uid=tbl_mitarbeiter.mitarbeiter_uid
|
||||
AND tbl_benutzer.person_id=tbl_person.person_id
|
||||
AND mitarbeiter_uid=".$db->db_add_param($row->vertretung_uid);
|
||||
|
||||
$result_vertretung = $db->db_query($qry);
|
||||
@@ -511,13 +514,13 @@ if(count($zeit->result)>0)
|
||||
<td align='center'>".($row->freigabeamum!=''?'Ja':'')."</td>";
|
||||
if ($row->zeitsperretyp_kurzbz == 'DienstV')
|
||||
$content_table .= '<td> </td>';
|
||||
else
|
||||
else
|
||||
$content_table.="<td><a href='$PHP_SELF?type=edit&id=$row->zeitsperre_id' class='Item'>".$p->t('zeitsperre/edit')."</a></td>";
|
||||
if($row->freigabeamum=='' || $row->zeitsperretyp_kurzbz!='Urlaub')
|
||||
{
|
||||
$content_table.="\n<td><a href='$PHP_SELF?type=delete_sperre&id=$row->zeitsperre_id' onclick='return conf_del()' class='Item'>".$p->t('zeitsperre/loeschen')."</a></td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
$content_table .= '<td> </td>';
|
||||
$content_table.="</tr>";
|
||||
}
|
||||
@@ -679,15 +682,15 @@ $anspruch = '25';
|
||||
$resturlaubstage = $resturlaub->resturlaubstage;
|
||||
$mehrarbeitsstunden = $resturlaub->mehrarbeitsstunden;
|
||||
$anspruch = $resturlaub->urlaubstageprojahr;
|
||||
}else
|
||||
}else
|
||||
{
|
||||
// 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;
|
||||
else
|
||||
$anspruch = 0;
|
||||
}
|
||||
//Den Bereich fuer die Resturlaubstage nur anzeigen wenn dies
|
||||
//im config angegeben ist
|
||||
|
||||
@@ -33,10 +33,10 @@ require_once('../../../include/benutzer.class.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/sprache.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$lang = new sprache();
|
||||
$sprache = getSprache();
|
||||
$lang = new sprache();
|
||||
$lang->load($sprache);
|
||||
$p = new phrasen($sprache);
|
||||
$p = new phrasen($sprache);
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
@@ -62,7 +62,7 @@ $num_rows_stunde=$db->db_num_rows($result_stunde);
|
||||
if (isset($type) && $type=='save')
|
||||
{
|
||||
$zw = new zeitwunsch();
|
||||
|
||||
|
||||
for ($t=1;$t<7;$t++)
|
||||
{
|
||||
for ($i=0;$i<$num_rows_stunde;$i++)
|
||||
@@ -72,23 +72,23 @@ if (isset($type) && $type=='save')
|
||||
continue;
|
||||
$gewicht=$_POST[$var];
|
||||
$stunde=$i+1;
|
||||
|
||||
|
||||
$zw->mitarbeiter_uid = $uid;
|
||||
$zw->stunde = $stunde;
|
||||
$zw->tag = $t;
|
||||
$zw->gewicht = $gewicht;
|
||||
$zw->updateamum = date('Y-m-d H:i:s');
|
||||
$zw->updatevon = $uid;
|
||||
|
||||
|
||||
if (!$zw->exists($uid, $stunde, $t))
|
||||
{
|
||||
$zw->new = true;
|
||||
$zw->insertamum = date('Y-m-d H:i:s');
|
||||
$zw->insertvon = $uid;
|
||||
}
|
||||
else
|
||||
else
|
||||
$zw->new = false;
|
||||
|
||||
|
||||
if(!$zw->save())
|
||||
echo $zw->errormsg;
|
||||
}
|
||||
@@ -115,14 +115,13 @@ if(!$person->load($uid))
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link href="../../../skin/flexcrollstyles.css" rel="stylesheet" type="text/css" />
|
||||
<script src="../../../include/js/flexcroll.js" type="text/javascript" ></script>
|
||||
<script type="text/javascript">
|
||||
// Pruefen ob nur die erlaubten Werte verwendet wurden
|
||||
function checkvalues()
|
||||
{
|
||||
var elem = document.getElementsByTagName('input');
|
||||
var error=false;
|
||||
|
||||
|
||||
for (var i = 0;i<elem.length;i++)
|
||||
{
|
||||
if(elem[i].name.match("^wunsch"))
|
||||
@@ -131,7 +130,7 @@ if(!$person->load($uid))
|
||||
error=true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(error)
|
||||
{
|
||||
alert('<?php echo $p->t('zeitwunsch/falscheWerteEingetragen');?>');
|
||||
@@ -146,10 +145,10 @@ if(!$person->load($uid))
|
||||
<body>
|
||||
<div class="flexcroll" style="outline: none;">
|
||||
<table>
|
||||
<tr>
|
||||
<tr>
|
||||
<td>
|
||||
<h1><?php echo $p->t('zeitwunsch/zeitwunsch');?></h1>
|
||||
<!--Auskommentiert von Kindl, da sich der Hilfetext nicht vom Anleitungtext auf der Seite unterscheidet
|
||||
<!--Auskommentiert von Kindl, da sich der Hilfetext nicht vom Anleitungtext auf der Seite unterscheidet
|
||||
<td class="ContentHeader" align="right">
|
||||
<A onclick="window.open('zeitwunsch_help.php','Hilfe', 'height=320,width=480,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes');" class="hilfe" target="_blank">
|
||||
<font class="ContentHeader">
|
||||
@@ -163,7 +162,7 @@ if(!$person->load($uid))
|
||||
echo '<FORM name="zeitwunsch" method="post" action="zeitwunsch.php?type=save" onsubmit="return checkvalues()">
|
||||
<TABLE>
|
||||
<TR>';
|
||||
|
||||
|
||||
echo '<th>'.$p->t('global/stunde').'<br>'.$p->t('global/beginn').'<br>'.$p->t('global/ende').'</th>';
|
||||
for ($i=0;$i<$num_rows_stunde; $i++)
|
||||
{
|
||||
@@ -174,9 +173,9 @@ if(!$person->load($uid))
|
||||
$stunde=$db->db_result($result_stunde,$i,'"stunde"');
|
||||
echo "<th><div align=\"center\">$stunde<br>$beginn<br>$ende</div></th>";
|
||||
}
|
||||
|
||||
|
||||
echo '</TR>';
|
||||
|
||||
|
||||
for ($j=1; $j<7; $j++)
|
||||
{
|
||||
echo '<TR><TD>'.$tagbez[$lang->index][$j].'</TD>';
|
||||
@@ -193,21 +192,21 @@ if(!$person->load($uid))
|
||||
}
|
||||
echo '</TR>';
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
</TABLE><br>
|
||||
<INPUT type="hidden" name="uid" value="'.$uid.'">
|
||||
<INPUT type="submit" name="Abschicken" value="'.$p->t('global/speichern').'">
|
||||
';
|
||||
|
||||
|
||||
if($zw->updateamum!='')
|
||||
{
|
||||
echo '<font size="x-small">'.$p->t('zeitwunsch/letzteAenderung').': '.$datum_obj->formatDatum($zw->updateamum,'d.m.Y H:i:s').' '.$p->t('zeitwunsch/von').' '.$zw->updatevon.'</font>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</FORM>
|
||||
<hr><?php
|
||||
<hr><?php
|
||||
$href = "<a href='zeitsperre_resturlaub.php' class='Item'>";
|
||||
echo $p->t('zeitwunsch/formularZumEintragenDerZeitsperren', array($href));
|
||||
?>
|
||||
|
||||
@@ -32,7 +32,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
@@ -40,7 +40,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<title>',$p->t('tools/ampelsystem'),'</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -69,7 +69,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../skin/jquery.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<title>',$p->t('tools/ampelsystem'),'</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -15,17 +15,17 @@ require_once('../../../include/basis_db.class.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/File/SearchReplace.php');
|
||||
require_once('../../../include/File/Match.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/phrasen.class.php');
|
||||
require_once('../../../include/authentication.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$p=new phrasen($sprache);
|
||||
$sprache = getSprache();
|
||||
$p=new phrasen($sprache);
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die($p->t("global/fehlerBeimOeffnenDerDatenbankverbindung"));
|
||||
if (!$user=get_uid())
|
||||
die($p->t("global/nichtAngemeldet").'! <a href="javascript:history.back()">'.$p->t("global/zurueck").'</a>');
|
||||
|
||||
|
||||
$mac_result = trim((isset($_REQUEST['mac_result']) ? $_REQUEST['mac_result']:''));
|
||||
$txtUID = trim((isset($_REQUEST['txtUID']) ? $_REQUEST['txtUID']:''));
|
||||
$txtPassword = trim((isset($_REQUEST['txtPassword']) ? $_REQUEST['txtPassword']:''));
|
||||
@@ -35,7 +35,7 @@ if(check_lektor($user))
|
||||
$is_lector=true;
|
||||
else
|
||||
$is_lector=false;
|
||||
|
||||
|
||||
function ip_increment($ip = "")
|
||||
{
|
||||
$ip = split("\.", $ip);
|
||||
@@ -58,7 +58,6 @@ function ip_increment($ip = "")
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/flexcrollstyles.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="../../../include/js/flexcroll.js"></script>
|
||||
</head>
|
||||
|
||||
<body onLoad="document.regMAC.txtMAC.focus();">
|
||||
@@ -97,9 +96,9 @@ function ip_increment($ip = "")
|
||||
{
|
||||
if(isset($txtMAC) && $txtMAC != "")
|
||||
{
|
||||
$sql_query = "SELECT DISTINCT vorname, nachname
|
||||
$sql_query = "SELECT DISTINCT vorname, nachname
|
||||
FROM campus.vw_benutzer WHERE uid=".$db->db_add_param($txtUID)." LIMIT 1";
|
||||
|
||||
|
||||
if($result = $db->db_query($sql_query))
|
||||
{
|
||||
if($row = $db->db_fetch_object($result))
|
||||
@@ -111,14 +110,14 @@ function ip_increment($ip = "")
|
||||
}
|
||||
else
|
||||
die($p->t("global/fehlerBeimErmittelnDerUID"));
|
||||
|
||||
|
||||
$mac = mb_eregi_replace(":", "", mb_eregi_replace("-", "", mb_strtoupper($txtMAC)));
|
||||
|
||||
|
||||
$filename_dat = '../../../../system/dhcp.dat';
|
||||
$filename_ip = '../../../../system/dhcp.ip';
|
||||
|
||||
|
||||
copy($filename_dat, '../../../../system/backup/dhcp_'.date('j-m-Y_H-i-s').'.dat');
|
||||
|
||||
|
||||
unset($mfiles);
|
||||
// leich gepfuscht aber funktioniert
|
||||
$mfiles = new File_Match("/$mac?\s(.{1}) (.*)\s?/", $filename_dat, '', 0, array('#',';'));
|
||||
@@ -135,12 +134,12 @@ function ip_increment($ip = "")
|
||||
if ($fuser != $txtUID)
|
||||
$error = 3;
|
||||
}
|
||||
|
||||
|
||||
unset($mfiles);
|
||||
|
||||
if(!$VLAN)
|
||||
|
||||
if(!$VLAN)
|
||||
$VLAN = 'S';
|
||||
|
||||
|
||||
if (!$error)
|
||||
{
|
||||
if($VLAN != 'S')
|
||||
@@ -150,32 +149,32 @@ function ip_increment($ip = "")
|
||||
else if ($VLAN == 'S')
|
||||
{
|
||||
$mfiles = new File_SearchReplace("/.*?\sS\s$txtUID\s(.*)?\snb-$txtUID\s(.*)/", "$mac S $txtUID $1 nb-$txtUID $name", $filename_dat, '', 0, array("#", ";"));
|
||||
|
||||
|
||||
$mfiles->setSearchFunction('preg');
|
||||
|
||||
|
||||
if(preg_match("/[A-Fa-f0-9]{12}/", $mac) && $mac != '' && mb_strlen($mac) == 12)
|
||||
{
|
||||
$mfiles->doSearch();
|
||||
|
||||
|
||||
// neuen eintrag erzeugen und ip hochzählen
|
||||
if($mfiles->occurences == 0)
|
||||
{
|
||||
//$content = file($filename_dat, "r");
|
||||
//$content = implode('', $content);
|
||||
$content = file_get_contents($filename_dat);
|
||||
|
||||
|
||||
//$ip = file($filename_ip);
|
||||
//$ip = trim($ip[0]);
|
||||
$ip = file_get_contents($filename_ip);
|
||||
|
||||
|
||||
$ip = trim($ip);
|
||||
$ip = ip_increment($ip);
|
||||
|
||||
|
||||
// nachschauen ob, die mac adresse schon
|
||||
// einmal gespeichert wurde
|
||||
$sfiles = new File_Match("/$mac?\s/", $filename_dat, '', 0, array('#',';'));
|
||||
$sfiles->doFind();
|
||||
|
||||
|
||||
if($sfiles->occurences)
|
||||
{
|
||||
echo 'MAC IN USE';
|
||||
@@ -189,12 +188,12 @@ function ip_increment($ip = "")
|
||||
unset($txtMAC);
|
||||
}
|
||||
unset($sfiles);
|
||||
|
||||
|
||||
}
|
||||
else if($mfiles->occurences > 0)
|
||||
{
|
||||
$mac_result = 1;
|
||||
|
||||
|
||||
unset($txtMAC);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,10 +91,13 @@ if($aktion!='zip')
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script src="../../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery-ui.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery.autocomplete.js" type="text/javascript"></script>
|
||||
<script src="../../../include/js/jquery.autocomplete.min.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script src="../../../vendor/components/jqueryui/jquery-ui.min.js" type="text/javascript"></script>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
@@ -183,7 +186,7 @@ if($aktion!='zip')
|
||||
output += '<option value=\"' + json[p].oTermin + '\">' + json[p].oTerminAnzeige + '<\/option>\n';
|
||||
}
|
||||
$('#termin').html(output);
|
||||
$('#termin').result(function(event, data, formatted) {}).focus();
|
||||
$('#termin').focus();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@@ -52,7 +52,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<title>Globale Suche</title>
|
||||
</head>
|
||||
<body>';
|
||||
|
||||
@@ -128,11 +128,14 @@ echo '<!DOCTYPE HTML>
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../skin/jquery.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../skin/jquery.ui.timepicker.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../vendor/fgelinas/timepicker/jquery.ui.timepicker.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" 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>
|
||||
<script src="../../../include/js/jquery.ui.timepicker.js" type="text/javascript" ></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script src="../../../vendor/fgelinas/timepicker/jquery.ui.timepicker.js" type="text/javascript" ></script>
|
||||
';
|
||||
|
||||
// ADDONS laden
|
||||
|
||||
@@ -96,10 +96,10 @@ if(isset($_GET['filter']))
|
||||
$stsemAktOrNext = $stsemAktOrNext->getaktorNext(1);
|
||||
elseif($_GET['filter']=='SSemester')
|
||||
$stsemAktOrNext = $stsemAktOrNext->getaktorNext(2);
|
||||
else
|
||||
else
|
||||
$stsemAktOrNext = $stsemAktOrNext->getaktorNext();
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$stsemAktOrNext = $stsemAktOrNext->getaktorNext();
|
||||
}
|
||||
@@ -118,11 +118,11 @@ $firma->getFirmen('Partneruniversität');
|
||||
|
||||
if (isset($_GET['lang']))
|
||||
$get_url = str_replace('lang='.$_GET['lang'].'&', '', $_SERVER['QUERY_STRING']);
|
||||
else
|
||||
else
|
||||
$get_url = $_SERVER['QUERY_STRING'];
|
||||
|
||||
$filter_url = '';
|
||||
if (isset($_GET['filter']) || isset($_GET['unterrichtssprache']) || isset($_GET['studiengang']))
|
||||
if (isset($_GET['filter']) || isset($_GET['unterrichtssprache']) || isset($_GET['studiengang']))
|
||||
$filter_url = 'filter='.$_GET['filter'].'&unterrichtssprache='.$_GET['unterrichtssprache'].'&studiengang='.$_GET['studiengang'].'&go=Filter&';
|
||||
|
||||
$message = '';
|
||||
@@ -135,49 +135,57 @@ $message = '';
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/tablesort.css" type="text/css"/>
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
<!--<script type="text/javascript" src="../../../include/js/jquery.js"></script>-->
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js"></script>
|
||||
<!--<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>-->
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$.datepicker.setDefaults( $.datepicker.regional[ "" ] );
|
||||
<?php //Wenn Deutsch ausgewaehlt, dann Datepicker auch in Deutsch
|
||||
<?php //Wenn Deutsch ausgewaehlt, dann Datepicker auch in Deutsch
|
||||
if ($sprache=="German")
|
||||
echo '$.datepicker.setDefaults( $.datepicker.regional[ "de" ] );
|
||||
$( "#datepicker" ).datepicker(
|
||||
$( "#datepicker" ).datepicker(
|
||||
{
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
defaultDate: "-6570",
|
||||
maxDate: -5110,
|
||||
yearRange: "-60:+00",
|
||||
}
|
||||
}
|
||||
);
|
||||
$( ".datepicker_exchange" ).datepicker(
|
||||
$( ".datepicker_exchange" ).datepicker(
|
||||
{
|
||||
changeMonth: true,
|
||||
changeYear: true
|
||||
}
|
||||
}
|
||||
);';
|
||||
else
|
||||
else
|
||||
echo '$( "#datepicker" ).datepicker({
|
||||
dateFormat: "dd.mm.yy",
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
defaultDate: "-6570",
|
||||
maxDate: -5110,
|
||||
yearRange: "-60:+00",
|
||||
yearRange: "-60:+00",
|
||||
});
|
||||
$( ".datepicker_exchange" ).datepicker(
|
||||
$( ".datepicker_exchange" ).datepicker(
|
||||
{
|
||||
dateFormat: "dd.mm.yy",
|
||||
changeMonth: true,
|
||||
changeYear: true
|
||||
}
|
||||
}
|
||||
);';
|
||||
?>
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
@@ -248,7 +256,7 @@ function setBisdatum(datum)
|
||||
border-bottom: 6px solid #5cb85c;
|
||||
border-right: 12px solid #5cb85c;
|
||||
border-left: 12px solid #5cb85c;
|
||||
display: inline-block;"
|
||||
display: inline-block;"
|
||||
}
|
||||
.uploadbutton:hover, .uploadbutton:active, .uploadbutton:focus
|
||||
{
|
||||
@@ -264,7 +272,7 @@ function setBisdatum(datum)
|
||||
border-bottom: 6px solid #339B33;
|
||||
border-right: 12px solid #339B33;
|
||||
border-left: 12px solid #339B33;
|
||||
display: inline-block;"
|
||||
display: inline-block;"
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@@ -292,7 +300,7 @@ if($method =="austauschprogram")
|
||||
{
|
||||
$von_datum = $_REQUEST['von'];
|
||||
$bis_datum = $_REQUEST['bis'];
|
||||
|
||||
|
||||
//Datum auf Gueltigkeit pruefen
|
||||
if (($von_datum != '' && !$date->formatDatum($von_datum,'Y-m-d')) || ($bis_datum != '' && !$date->formatDatum($bis_datum,'Y-m-d')))
|
||||
{
|
||||
@@ -302,7 +310,7 @@ if($method =="austauschprogram")
|
||||
{
|
||||
$von_datum = $date->formatDatum($von_datum,'Y-m-d');
|
||||
$bis_datum = $date->formatDatum($bis_datum,'Y-m-d');
|
||||
|
||||
|
||||
$dtstart = new DateTime($von_datum);
|
||||
$dtende = new DateTime($bis_datum);
|
||||
$jetzt = new DateTime();
|
||||
@@ -317,7 +325,7 @@ if($method =="austauschprogram")
|
||||
echo '<span style="color: red"><b>'.$p->t('incoming/endeGroesserStart').'</b></span>';
|
||||
$_REQUEST['bis'] = '';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$preincoming->von = $date->formatDatum($_REQUEST['von'],'Y-m-d');
|
||||
$preincoming->bis = $date->formatDatum($_REQUEST['bis'],'Y-m-d');
|
||||
@@ -328,7 +336,7 @@ if($method =="austauschprogram")
|
||||
else
|
||||
$preincoming->mobilitaetsprogramm_code = $_REQUEST['austausch_kz'];
|
||||
$preincoming->updateamum = date('Y-m-d H:i:s');
|
||||
|
||||
|
||||
if(!$preincoming->save())
|
||||
echo $preincoming->errormsg;
|
||||
else
|
||||
@@ -361,7 +369,7 @@ if($method =="austauschprogram")
|
||||
$anzeigetext = 'Exchange';
|
||||
elseif ($mob->kurzbz=='selbst')
|
||||
$anzeigetext = 'Freemover';
|
||||
else
|
||||
else
|
||||
$anzeigetext = $mob->kurzbz;
|
||||
echo '<option value="'.$mob->mobilitaetsprogramm_code.'" '.$selected.'>'.$anzeigetext."</option>\n";
|
||||
}
|
||||
@@ -417,9 +425,9 @@ else if($method=="lehrveranstaltungen")
|
||||
)
|
||||
AND tbl_prestudentstatus.status_kurzbz = 'Incoming'
|
||||
AND tbl_prestudentstatus.studiensemester_kurzbz = '$stsem->studiensemester_kurzbz'
|
||||
|
||||
|
||||
UNION
|
||||
|
||||
|
||||
SELECT person_id
|
||||
FROM PUBLIC.tbl_preincoming_lehrveranstaltung
|
||||
JOIN PUBLIC.tbl_preincoming using (preincoming_id)
|
||||
@@ -441,7 +449,7 @@ else if($method=="lehrveranstaltungen")
|
||||
) AS anzahl
|
||||
FROM lehre.tbl_lehrveranstaltung
|
||||
WHERE tbl_lehrveranstaltung.lehrveranstaltung_id = ".$id;
|
||||
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if ($db->db_num_rows($result)>0)
|
||||
@@ -452,7 +460,7 @@ else if($method=="lehrveranstaltungen")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$preincoming->checkLehrveranstaltung($preincoming->preincoming_id, $_GET['id']) && $freieplaetze>0)
|
||||
{
|
||||
if($preincoming->addLehrveranstaltung($preincoming->preincoming_id, $_GET['id'], date('Y-m-d H:i:s'), 'Incoming '.$preincoming->preincoming_id))
|
||||
@@ -460,7 +468,7 @@ else if($method=="lehrveranstaltungen")
|
||||
else
|
||||
$message = '<span style="color: red"><b>'.($p->t('global/fehleraufgetreten')).'</b></span>';
|
||||
}
|
||||
else
|
||||
else
|
||||
$message = '<span style="color: red"><b>'.$p->t('incoming/lvVollBelegt').'</b></span>';
|
||||
}
|
||||
// löschen der LV-ID
|
||||
@@ -796,14 +804,14 @@ else if($method=="lehrveranstaltungen")
|
||||
if ($row->typ == 'b' || $row->typ == 'm' || $row->studiengang_kz == '10006')
|
||||
{
|
||||
$selected = '';
|
||||
|
||||
|
||||
if ($typ != $row->typ || $typ=='')
|
||||
{
|
||||
if ($typ!='')
|
||||
echo '</optgroup>';
|
||||
echo '<optgroup label="'.$type[$row->typ].'">';
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET['studiengang']) && $_GET['studiengang'] == $row->studiengang_kz)
|
||||
$selected='selected';
|
||||
|
||||
@@ -835,21 +843,21 @@ else if($method=="lehrveranstaltungen")
|
||||
if(isset($_GET['unterrichtssprache']) && $_GET['unterrichtssprache']!='')
|
||||
$filterqry .= " AND tbl_lehrveranstaltung.sprache='".$_GET['unterrichtssprache']."'";
|
||||
|
||||
|
||||
|
||||
//Uebersicht LVs
|
||||
/* Erklaerung der Datumszeitraeume ab Zeile 857:
|
||||
* |=============== Studiensemester ===============|
|
||||
* |--------------| Incoming beginnt vor SS-Beginn und endet VOR SS-Ende jedoch ueberwiegend innerhalb SS
|
||||
* |--------------| Incoming beginnt VOR SS-Ende und endet NACH SS-Ende, jedoch ueberwiegend innerhalb SS
|
||||
* |--------------| Incoming beginnt VOR SS-Ende und endet NACH SS-Ende, jedoch ueberwiegend innerhalb SS
|
||||
* |----------| Incoming beginnt vor SS-Beginn und endet VOR SS-Ende jedoch ueberwiegend außerhalb SS
|
||||
* |---------| Incoming beginnt VOR SS-Ende und endet NACH SS-Ende, jedoch ueberwiegend außerhalb SS
|
||||
* |---------| Incoming beginnt VOR SS-Ende und endet NACH SS-Ende, jedoch ueberwiegend außerhalb SS
|
||||
* |------------------------------| Incoming ist innerhalb oder GENAU SS da
|
||||
* |------------------------------------------------------| Incoming ist VOR SS-Anfang und NACH SS-Ende da, jedoch ueberwiegend ueberlappend mit SS
|
||||
* |------------------------------------------------------| Incoming ist VOR SS-Anfang und NACH SS-Ende da, jedoch ueberwiegend ueberlappend mit SS
|
||||
* ------------------------------------------------------------ Von und Bis ist NULL
|
||||
* -------------------| Von ist NULL und bis innerhalb SS
|
||||
* |--------------------------- Bis ist NULL und von innerhalb SS
|
||||
* |--------------------------- Bis ist NULL und von innerhalb SS
|
||||
*/
|
||||
|
||||
|
||||
$studiensemester_array = array();
|
||||
$studiensemester = new studiensemester();
|
||||
$studiensemester_array[] = $studiensemester->getakt();
|
||||
@@ -904,29 +912,29 @@ else if($method=="lehrveranstaltungen")
|
||||
(bis IS NULL AND von < '$stsem->ende' AND von >= '$stsem->start')
|
||||
)
|
||||
AND aktiv = true
|
||||
)a ) as anzahl
|
||||
)a ) as anzahl
|
||||
FROM
|
||||
lehre.tbl_lehrveranstaltung
|
||||
JOIN
|
||||
public.tbl_studiengang USING(studiengang_kz)
|
||||
lehre.tbl_lehrveranstaltung
|
||||
JOIN
|
||||
public.tbl_studiengang USING(studiengang_kz)
|
||||
WHERE
|
||||
tbl_lehrveranstaltung.incoming>0 AND
|
||||
tbl_lehrveranstaltung.aktiv AND
|
||||
tbl_lehrveranstaltung.lehre AND
|
||||
tbl_lehrveranstaltung.incoming>0 AND
|
||||
tbl_lehrveranstaltung.aktiv AND
|
||||
tbl_lehrveranstaltung.lehre AND
|
||||
tbl_lehrveranstaltung.lehrveranstaltung_id IN (
|
||||
SELECT lehrveranstaltung_id FROM lehre.tbl_studienplan_lehrveranstaltung
|
||||
JOIN lehre.tbl_studienplan USING (studienplan_id)
|
||||
JOIN lehre.tbl_studienordnung USING (studienordnung_id)
|
||||
SELECT lehrveranstaltung_id FROM lehre.tbl_studienplan_lehrveranstaltung
|
||||
JOIN lehre.tbl_studienplan USING (studienplan_id)
|
||||
JOIN lehre.tbl_studienordnung USING (studienordnung_id)
|
||||
JOIN lehre.tbl_studienplan_semester USING (studienplan_id)
|
||||
WHERE tbl_studienordnung.status_kurzbz='approved'
|
||||
WHERE tbl_studienordnung.status_kurzbz='approved'
|
||||
AND tbl_lehrveranstaltung.lehrveranstaltung_id=tbl_studienplan_lehrveranstaltung.lehrveranstaltung_id
|
||||
AND tbl_studienplan_semester.studiensemester_kurzbz IN ('".$stsem->studiensemester_kurzbz."')
|
||||
AND tbl_lehrveranstaltung.semester=tbl_studienplan_semester.semester)
|
||||
AND tbl_lehrveranstaltung.semester=tbl_studienplan_semester.semester)
|
||||
AND ((tbl_lehrveranstaltung.studiengang_kz>0 AND tbl_lehrveranstaltung.studiengang_kz<10000) OR tbl_lehrveranstaltung.studiengang_kz=10006)";
|
||||
|
||||
|
||||
if (isset($_GET['studiengang']) && $_GET['studiengang'] !='')
|
||||
$qry .= " AND tbl_lehrveranstaltung.studiengang_kz=".$_GET['studiengang'];
|
||||
|
||||
|
||||
$qry .= " AND tbl_studiengang.aktiv ".$filterqry." order by studiengang_kz
|
||||
";
|
||||
|
||||
@@ -958,7 +966,7 @@ else if($method=="lehrveranstaltungen")
|
||||
{
|
||||
$freieplaetze = $row->incoming - $row->anzahl;
|
||||
$style = '';
|
||||
|
||||
|
||||
if ($preincoming->checkLehrveranstaltung($preincoming->preincoming_id, $row->lehrveranstaltung_id))
|
||||
$style = 'style="background-color: #88DD88"';
|
||||
elseif ($freieplaetze<=0)
|
||||
@@ -976,7 +984,7 @@ else if($method=="lehrveranstaltungen")
|
||||
else
|
||||
$typ = '-';
|
||||
echo '<tr>';
|
||||
|
||||
|
||||
if(!$preincoming->checkLehrveranstaltung($preincoming->preincoming_id, $row->lehrveranstaltung_id) && $freieplaetze>0)
|
||||
echo '<td><a href="incoming.php?method=lehrveranstaltungen&mode=add&id='.$row->lehrveranstaltung_id.'&'.$filter_url.'">'.$p->t('global/anmelden').'</a></td>';
|
||||
elseif (!$preincoming->checkLehrveranstaltung($preincoming->preincoming_id, $row->lehrveranstaltung_id) && $freieplaetze<=0)
|
||||
@@ -1006,7 +1014,7 @@ else if($method=="lehrveranstaltungen")
|
||||
echo '<center><b>'.$p->t('incoming/derzeitKeineLehrveranstaltungen').'</b></center>';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
echo '<center><b>'.$p->t('incoming/waehlenSieAusDenOptionen').'</b></center>';
|
||||
}
|
||||
}
|
||||
@@ -1045,10 +1053,10 @@ else if ($method == "university")
|
||||
|
||||
$preincoming->program_name = $_REQUEST['name_of_program'];
|
||||
|
||||
//Pruefen, ob Jahre studiert eine ganze Zahl ist oder leer
|
||||
//Pruefen, ob Jahre studiert eine ganze Zahl ist oder leer
|
||||
if(ctype_digit($_REQUEST['jahre']) || $_REQUEST['jahre'] == '')
|
||||
$preincoming->jahre = $_REQUEST['jahre'];
|
||||
else
|
||||
else
|
||||
echo '<span class="error">'.$p->t('incoming/jahreStudiertMussGanzeZahlSein').'</span><br>';
|
||||
if(isset($_REQUEST['bachelor']))
|
||||
$preincoming->bachelor = true;
|
||||
@@ -2061,14 +2069,14 @@ else if($method == 'files')
|
||||
if (typeof window.screenLeft != "undefined")
|
||||
{ //IE
|
||||
posX = window.screenLeft + offsetX;
|
||||
posY = window.screenTop + offsetY;
|
||||
posY = window.screenTop + offsetY;
|
||||
}
|
||||
else if (typeof window.screenX != "undefined")
|
||||
{ //NS/Moz
|
||||
posX = window.screenX + offsetX;
|
||||
posY = window.screenY + offsetY;
|
||||
}
|
||||
else
|
||||
else
|
||||
{ //default - center of screen
|
||||
posX = screen.availWidth/2 - w/2;
|
||||
posY = screen.availHeight/2 - h/2;
|
||||
@@ -2115,7 +2123,7 @@ else if($method == 'files')
|
||||
}
|
||||
echo '</tbody></table></center>';
|
||||
}
|
||||
else
|
||||
else
|
||||
echo 'foo';
|
||||
}
|
||||
else if($method == 'ende')
|
||||
@@ -2128,16 +2136,16 @@ else if($method == 'ende')
|
||||
// sende Nachricht an Assistenz
|
||||
//$emailtext= "Dies ist eine automatisch generierte E-Mail.<br><br>";
|
||||
$emailtext.= "Der/Die Incoming ".$person->vorname.' '.$person->nachname.' hat seine Registration abgeschlossen';
|
||||
|
||||
|
||||
$emailtext = wordwrap($emailtext,70); //Bricht den Code um, da es sonst zu Anzeigefehlern im Mail kommen kann
|
||||
|
||||
|
||||
$mail = new mail(MAIL_INTERNATIONAL, 'no-reply', 'Incoming '.$person->vorname.' '.$person->nachname.' vollstaendig', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');
|
||||
$mail->setHTMLContent($emailtext);
|
||||
if(!$mail->send())
|
||||
$message = '<span style="color: red"><b>'.($p->t('incoming/fehlerBeimSenden')).'</b></span>';
|
||||
else
|
||||
$message = '<span style="color: green"><b>'.($p->t('incoming/erfolgreichAbgeschickt')).'</b></span>';
|
||||
|
||||
|
||||
}
|
||||
echo '<center>'.$message.'</center>';
|
||||
echo '<br><br><br>
|
||||
@@ -2152,7 +2160,7 @@ else if($method == 'ende')
|
||||
<br><br>
|
||||
<input type="submit" name="submit_ende" value="'.$p->t('global/abschicken').'"></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</form>';
|
||||
}
|
||||
@@ -2205,4 +2213,4 @@ else
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -51,7 +51,10 @@ echo '
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js" ></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
@@ -96,9 +99,9 @@ echo "Studiengang: <SELECT name='studiengang' id='studiengang' onchange='window.
|
||||
$i = 0;
|
||||
$selected = '';
|
||||
$result_count = count($studiengang->result);
|
||||
for ($i = 0; $i < $result_count; $i++)
|
||||
for ($i = 0; $i < $result_count; $i++)
|
||||
{
|
||||
if ($stg_kz == $studiengang->result[$i]->studiengang_kz)
|
||||
if ($stg_kz == $studiengang->result[$i]->studiengang_kz)
|
||||
$selected = 'selected';
|
||||
echo "<OPTION value='".$_SERVER['PHP_SELF']."?stg_kz=".$studiengang->result[$i]->studiengang_kz."' ".$selected.">".strtoupper($studiengang->result[$i]->typ.$studiengang->result[$i]->kurzbz).' ('.$studiengang->result[$i]->bezeichnung.")</OPTION>";
|
||||
$selected = '';
|
||||
@@ -200,14 +203,14 @@ if (isset($_POST['save']) && $_POST['save'] == 'save')
|
||||
if ($db->db_num_rows($result) == 0)
|
||||
{
|
||||
$gebiet = new gebiet();
|
||||
|
||||
|
||||
$bezeichnung_mehrsprachig = array();
|
||||
foreach ($sprache->result as $row_sprache)
|
||||
{
|
||||
$bezeichnung_mehrsprachig[$row_sprache->sprache] = $_POST['bezeichnung_mehrsprachig_'.$row_sprache->sprache];
|
||||
}
|
||||
$gebiet->bezeichnung_mehrsprachig = $bezeichnung_mehrsprachig;
|
||||
|
||||
|
||||
$gebiet->kurzbz = $_POST['kurzbz'];
|
||||
$gebiet->bezeichnung = $_POST['bezeichnung_intern'];
|
||||
$gebiet->beschreibung = $_POST['beschreibung'];
|
||||
@@ -225,7 +228,7 @@ if (isset($_POST['save']) && $_POST['save'] == 'save')
|
||||
$gebiet->insertamum = date('Y-m-d H:i:s');
|
||||
$gebiet->insertvon = $user;
|
||||
$gebiet->antwortenprozeile = $_POST['antworten_pro_zeile'];
|
||||
|
||||
|
||||
if ($gebiet->save(true))
|
||||
{
|
||||
echo 'Daten erfolgreich gespeichert';
|
||||
|
||||
@@ -685,7 +685,10 @@ else
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link type="text/css" rel="stylesheet" href="../../../skin/style.css.php">
|
||||
<link href="../../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="../../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
@@ -42,7 +42,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//DE" "http://www
|
||||
<link rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../../include/js/tablesort/table.css" type="text/css">
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
</head>
|
||||
<body class="Background_main">
|
||||
<h2>Auswertung Reihungstest Detailergebnis PrestudentIn '.$db->convert_html_chars($_GET['prestudent_id']).'</h2>';
|
||||
|
||||
@@ -57,7 +57,10 @@ echo '
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js" ></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
@@ -130,7 +133,7 @@ echo '</tr><tr><td>Semester: </td><td><SELECT name="semester" onchange="document
|
||||
$i=0; $selected='';
|
||||
for ($i=1; $i<11; $i++)
|
||||
{
|
||||
if ($semester == $i)
|
||||
if ($semester == $i)
|
||||
$selected = 'selected';
|
||||
echo '<OPTION value="'.$i.'" '.$selected.' >'.$i.'</OPTION>';
|
||||
$selected = '';
|
||||
@@ -179,12 +182,12 @@ if (isset($_POST['saveAblaufVorgabe']) && $_POST['saveAblaufVorgabe']=='new')
|
||||
$ablauf->content_id = $_POST['content_id'];
|
||||
$ablauf->insertvon = $user;
|
||||
$ablauf->insertamum = date('Y-m-d H:i:s');
|
||||
|
||||
|
||||
if (!$ablauf->saveAblaufVorgabe(true))
|
||||
echo $ablauf->errormsg;
|
||||
}
|
||||
else
|
||||
echo '<span class="error">Die Content ID '.$_POST['content_id'].' existiert nicht</span>';
|
||||
else
|
||||
echo '<span class="error">Die Content ID '.$_POST['content_id'].' existiert nicht</span>';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -217,10 +220,10 @@ if (isset($_GET['action']) && $_GET['action']=='edit')
|
||||
$ablauf_id = $ablauf->result[0];
|
||||
$ablauf = new ablauf($ablauf_id);
|
||||
$ablauf = $ablauf->result[0];
|
||||
|
||||
|
||||
$gebiet = new gebiet($_POST['gebiet_id']);
|
||||
$studiengang = new studiengang($stg_kz);
|
||||
|
||||
|
||||
echo '<table><form action="'.$_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&action=editsave" method="POST">
|
||||
<tr><td>Studiengang_kz: </td><td><input type="text" name="stg_kz" value="'.strtoupper($studiengang->typ.$studiengang->kurzbz).' ('.$studiengang->bezeichnung.')'.'" style="width:98.5%" disabled /></td></tr>
|
||||
<tr><td>Gebiet: </td><td><input type="text" value="'.$gebiet->bezeichnung.' ('.$gebiet->kurzbz.')" style="width:98.5%" disabled /><input type="hidden" name="gebiet_id" value="'.$ablauf->gebiet_id.'"/></td></tr>
|
||||
@@ -268,7 +271,7 @@ if (isset($_GET['action']) && $_GET['action']=='editsave')
|
||||
$ablauf->ablauf_vorgaben_id = $_POST['ablauf_vorgaben_id'];
|
||||
if (isset($_POST['studienplan_id'])) // && $_POST['studienplan_id']!=''
|
||||
$ablauf->studienplan_id = $_POST['studienplan_id'];
|
||||
|
||||
|
||||
if (!$ablauf->save(false))
|
||||
echo $ablauf->errormsg;
|
||||
}
|
||||
@@ -291,13 +294,13 @@ else
|
||||
{
|
||||
if (isset($semester) && $semester!='')
|
||||
$ablauf->getAblaufGebiete($stg_kz, null, $semester);
|
||||
else
|
||||
else
|
||||
$ablauf->getAblaufGebiete($stg_kz);
|
||||
}
|
||||
$gebieteangehaengt = array();
|
||||
|
||||
// Formular zum anlegen einer neuen Ablauf-Vorgabe
|
||||
|
||||
|
||||
echo '<a onclick="document.getElementById(\'vorgabeForm\').style.display=\'block\'">Neue Ablauf-Vorgabe</a>';
|
||||
echo '<div id="vorgabeForm" style="display: none"><table><form action="'.$_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&action=edit" method="POST">
|
||||
<tr><td><input type="hidden" name="stg_kz" value="'.$stg_kz.'"/>
|
||||
@@ -353,7 +356,7 @@ if ($stg_kz != -1)
|
||||
</form></td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
|
||||
$gebiet->getAll();
|
||||
echo '</tbody><tfoot><tr><form action="'.$_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&stp_id='.$stp_id.'&semester='.$semester.'&action=save" method="POST"><input type="hidden" name="stg_kz" value="'.$stg_kz.'" /><td><SELECT name="gebiet_id">';
|
||||
foreach ($gebiet->result as $row)
|
||||
@@ -445,7 +448,7 @@ if(isset($_POST['speichern']))
|
||||
$bezeichnung_mehrsprachig[$row_sprache->sprache]=$_POST['bezeichnung_mehrsprachig_'.$row_sprache->sprache];
|
||||
}
|
||||
$gebiet->bezeichnung_mehrsprachig = $bezeichnung_mehrsprachig;
|
||||
|
||||
|
||||
$gebiet->kurzbz = $_POST['kurzbz'];
|
||||
$gebiet->bezeichnung = $_POST['bezeichnung_mehrsprachig_German'];
|
||||
$gebiet->beschreibung = $_POST['beschreibung'];
|
||||
@@ -516,22 +519,22 @@ function drawStudienplanDropdown($stg_kz, $db, $name='', $autosubmitform=null, $
|
||||
$orgform_arr=array();
|
||||
foreach($orgform_obj->result as $row)
|
||||
$orgform_arr[$row->orgform_kurzbz]=$row->bezeichnung;
|
||||
|
||||
|
||||
foreach($studienplan_obj->result as $row_sto)
|
||||
{
|
||||
$studienordnung_arr[$row_sto->studienordnung_id]['bezeichnung']=$row_sto->bezeichnung_studienordnung;
|
||||
$studienplan_arr[$row_sto->studienordnung_id][$row_sto->studienplan_id]['bezeichnung']=$row_sto->bezeichnung_studienplan;
|
||||
|
||||
|
||||
$studienplan_arr[$row_sto->studienordnung_id][$row_sto->studienplan_id]['orgform_kurzbz']=$row_sto->orgform_kurzbz;
|
||||
$studienplan_arr[$row_sto->studienordnung_id][$row_sto->studienplan_id]['sprache']=$sprachen_arr[$row_sto->sprache];
|
||||
$studienplaene_verwendet[$row_sto->studienplan_id] = $row_sto->bezeichnung_studienplan;
|
||||
}
|
||||
|
||||
|
||||
$selected = isset($_GET['stp_id'])?'':'selected';
|
||||
echo "<SELECT id='studienplan_dropdown' name='".$name."' ";
|
||||
if (isset($autosubmitform) && $autosubmitform!='')
|
||||
echo 'onchange="document.getElementById(\''.$autosubmitform.'\').submit();"';
|
||||
|
||||
|
||||
echo " style='".$style."'>";
|
||||
echo "<OPTION value='' ".$selected.">Studienplan auswaehlen</OPTION>";
|
||||
// Pruefen ob uebergebene StudienplanID in Auswahl enthalten
|
||||
@@ -555,9 +558,9 @@ function drawStudienplanDropdown($stg_kz, $db, $name='', $autosubmitform=null, $
|
||||
foreach($studienordnung_arr as $stoid=>$row_sto)
|
||||
{
|
||||
$selected='';
|
||||
|
||||
|
||||
echo '<option value="" disabled>Studienordnung: '.$db->convert_html_chars($row_sto['bezeichnung']).'</option>';
|
||||
|
||||
|
||||
foreach ($studienplan_arr[$stoid] as $stpid=>$row_stp)
|
||||
{
|
||||
if (isset($_GET['stp_id']) && $_GET['stp_id']==$stpid)
|
||||
@@ -572,4 +575,4 @@ function drawStudienplanDropdown($stg_kz, $db, $name='', $autosubmitform=null, $
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -51,7 +51,10 @@ echo '
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js" ></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
@@ -172,7 +175,7 @@ if (isset($_POST['speichern']))
|
||||
$bezeichnung_mehrsprachig[$row_sprache->sprache]=$_POST['bezeichnung_mehrsprachig_'.$row_sprache->sprache];
|
||||
}
|
||||
$gebiet->bezeichnung_mehrsprachig = $bezeichnung_mehrsprachig;
|
||||
|
||||
|
||||
$gebiet->kurzbz = $_POST['kurzbz'];
|
||||
$gebiet->bezeichnung = $_POST['bezeichnung'];
|
||||
$gebiet->beschreibung = $_POST['beschreibung'];
|
||||
|
||||
@@ -57,7 +57,10 @@ echo '
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js" ></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
@@ -158,7 +161,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'save')
|
||||
{
|
||||
$vorgaben_id = $ablauf_vorgaben->ablauf_vorgaben_id;
|
||||
}
|
||||
else
|
||||
else
|
||||
echo $ablauf_vorgaben->errormsg;
|
||||
}
|
||||
elseif (isset($_POST['ablauf_vorgaben_id']) && $_POST['ablauf_vorgaben_id'] != '')
|
||||
@@ -191,7 +194,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'delete')
|
||||
$ablauf = new ablauf($_POST['ablauf_id']);
|
||||
if ($ablauf->delete($_POST['ablauf_id']))
|
||||
echo $ablauf->errormsg;
|
||||
|
||||
|
||||
// Wenn der Ablauf-Eintrag der letzte war, und die Ablauf-Vorgaben-ID nicht woanders verwendet wird, dann auch diesen löschen
|
||||
if (isset($_POST['ablauf_vorgaben_id']) && $_POST['ablauf_vorgaben_id'] != '')
|
||||
{
|
||||
@@ -203,7 +206,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'delete')
|
||||
if (!$abl_vorgabe->deleteAblaufVorgabe($_POST['ablauf_vorgaben_id']))
|
||||
echo $abl_vorgabe->errormsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Gebiet bearbeiten
|
||||
@@ -225,7 +228,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'edit')
|
||||
<tr><td>Studienplan: </td><td>';
|
||||
drawStudienplanDropdown($stg_kz, $db, $name = 'studienplan_id', null, 'width:100%', $ablauf->result[0]->studienplan_id);
|
||||
echo '</td></tr>
|
||||
<tr><td>Sprache*: </td><td><select name="sprache">';
|
||||
<tr><td>Sprache*: </td><td><select name="sprache">';
|
||||
foreach ($sprache->result as $row)
|
||||
{
|
||||
if ($ablauf->result[0]->sprache == $row->sprache)
|
||||
@@ -259,7 +262,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'editsave')
|
||||
$ablauf->reihung = $_POST['reihung'];
|
||||
$ablauf->gewicht = $_POST['gewicht'];
|
||||
$ablauf->semester = $_POST['semester'];
|
||||
|
||||
|
||||
if (isset($_POST['studienplan_id'])) // && $_POST['studienplan_id'] != ''
|
||||
$ablauf->studienplan_id = $_POST['studienplan_id'];
|
||||
|
||||
@@ -289,12 +292,12 @@ if (isset($_GET['action']) && $_GET['action'] == 'editsave')
|
||||
$ablauf_vorgaben->content_id = $content_id;
|
||||
$ablauf_vorgaben->updateamum = date('Y-m-d H:i:s');
|
||||
$ablauf_vorgaben->updatevon = $user;
|
||||
|
||||
|
||||
if (!$ablauf_vorgaben->saveAblaufVorgabe(false))
|
||||
{
|
||||
echo $ablauf_vorgaben->errormsg;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
echo $ablauf->errormsg;
|
||||
@@ -339,7 +342,7 @@ if ($stg_kz != -1)
|
||||
$studienplan->loadStudienplan($row->studienplan_id);
|
||||
$gebiet = new gebiet($row->gebiet_id);
|
||||
array_push($gebieteangehaengt, $gebiet->gebiet_id);
|
||||
|
||||
|
||||
if ($ablauf_vorgaben_id == '' && $row->ablauf_vorgaben_id != '')
|
||||
$ablauf_vorgaben_id = $row->ablauf_vorgaben_id;
|
||||
echo '<tr>
|
||||
@@ -390,7 +393,7 @@ if ($stg_kz != -1)
|
||||
// Ablauf-Vorgaben können nur beim ersten Eintrag gespeichert werden. Ansonsten werden sie über EDIT geändert.
|
||||
if (count($gebieteangehaengt) == 0)
|
||||
{
|
||||
echo '<td><select name="sprache">';
|
||||
echo '<td><select name="sprache">';
|
||||
foreach ($sprache->result as $row)
|
||||
{
|
||||
echo '<OPTION value="'.$row->sprache.'" '.$selected.'>'.$row->sprache.'</OPTION>';
|
||||
@@ -399,7 +402,7 @@ if ($stg_kz != -1)
|
||||
echo '<td><input type="checkbox" name="sprachwahl" /></td>';
|
||||
echo '<td><input type="text" name="content_id" /></td>';
|
||||
}
|
||||
else
|
||||
else
|
||||
echo '<td></td><td></td><td></td>';
|
||||
echo '<input type="hidden" name="ablauf_vorgaben_id" value="'.$ablauf_vorgaben_id.'" />';
|
||||
echo '<td><input type="submit" value="Speichern"/></td></form></tr></tfoot></table>';
|
||||
|
||||
@@ -34,7 +34,10 @@ if (!$db = new basis_db())
|
||||
<title>Testool Fragen Übersicht</title>
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link href="../../../skin/tablesort.css" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../../../include/js/jquery1.9.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript">
|
||||
function deleteGebiet(id)
|
||||
{
|
||||
|
||||
@@ -409,4 +409,4 @@ if(isset($_POST['save']) && isset($_SESSION['prestudent_id']))
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
+6
-1
@@ -122,7 +122,12 @@ if(isset($_POST['NewContent']))
|
||||
<link href="../skin/fhcomplete.css" rel="stylesheet" type="text/css">
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../include/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function conf_del()
|
||||
|
||||
+110
-102
@@ -16,7 +16,7 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Karl Burkhart <karl.burkhart@technikum-wien.at>
|
||||
*
|
||||
*
|
||||
*/
|
||||
require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
@@ -30,9 +30,9 @@ $rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'suid', null))
|
||||
die('Sie haben keine Berechtigung diese Seite zu sehen.');
|
||||
|
||||
|
||||
$kategorie_kurzbz = isset($_REQUEST['kategorie_kurzbz'])?$_REQUEST['kategorie_kurzbz']:'';
|
||||
|
||||
|
||||
$method = isset($_REQUEST['method'])?$_REQUEST['method']:'';
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//DE"
|
||||
@@ -48,7 +48,12 @@ $method = isset($_REQUEST['method'])?$_REQUEST['method']:'';
|
||||
<link href="../skin/fhcomplete.css" rel="stylesheet" type="text/css">
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../include/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
var __js_page_array = new Array();
|
||||
@@ -59,44 +64,44 @@ $method = isset($_REQUEST['method'])?$_REQUEST['method']:'';
|
||||
var block = "table-row";
|
||||
if (navigator.appName.indexOf('Microsoft') > -1)
|
||||
block = 'block';
|
||||
|
||||
// Aktueller Anzeigemode ermitteln
|
||||
|
||||
// Aktueller Anzeigemode ermitteln
|
||||
var status = __js_page_array[conid];
|
||||
if (status == null)
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
status=document.getElementById(conid).style.display;
|
||||
} else if (document.all && document.all[conid]) {
|
||||
} else if (document.all && document.all[conid]) {
|
||||
status=document.all[conid].style.display;
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
status=document.layers[conid].style.display;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Anzeigen oder Ausblenden
|
||||
if (status == 'none')
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
document.getElementById(conid).style.display = 'block';
|
||||
} else if (document.all && document.all[conid]) {
|
||||
} else if (document.all && document.all[conid]) {
|
||||
document.all[conid].style.display='block';
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
document.layers[conid].style.display='block';
|
||||
}
|
||||
}
|
||||
__js_page_array[conid] = 'block';
|
||||
}
|
||||
else
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
document.getElementById(conid).style.display = 'none';
|
||||
} else if (document.all && document.all[conid]) {
|
||||
} else if (document.all && document.all[conid]) {
|
||||
document.all[conid].style.display='none';
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
document.layers[conid].style.display='none';
|
||||
}
|
||||
}
|
||||
__js_page_array[conid] = 'none';
|
||||
}
|
||||
return false;
|
||||
@@ -107,7 +112,7 @@ $method = isset($_REQUEST['method'])?$_REQUEST['method']:'';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if(isset($_REQUEST['save']))
|
||||
{
|
||||
@@ -116,51 +121,51 @@ if(isset($_REQUEST['save']))
|
||||
// Speichert die Gruppenzugehörigkeit
|
||||
if($_REQUEST['kategorie_kurzbz'] != '')
|
||||
{
|
||||
$dms = new dms();
|
||||
$dms = new dms();
|
||||
$dms->kategorie_kurzbz = $_REQUEST['kategorie_kurzbz'];
|
||||
$dms->gruppe_kurzbz = $_POST['gruppe_kurzbz'];
|
||||
$dms->insertamum = date('Y-m-d H:i:s');
|
||||
$dms->insertvon = $user;
|
||||
|
||||
$dms->insertvon = $user;
|
||||
|
||||
if(!$dms->saveGruppeKategorie())
|
||||
echo '<span class="error">'.$dms->errormsg.'</span>';
|
||||
echo '<span class="error">'.$dms->errormsg.'</span>';
|
||||
else
|
||||
echo '<span class="ok">Gruppe erfolgreich zugeteilt</span>';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Keine gültige Kategorie übergeben</span>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$kategorieSave = new dms();
|
||||
$kategorieSave = new dms();
|
||||
if($_POST['kategorie_kurzbz'] != '')
|
||||
{
|
||||
// wenn keine auswahl getroffen wurde
|
||||
$kategorie_auswahl = (($_POST['kategorie_parent']=='auswahl')?null:$_POST['kategorie_parent']);
|
||||
|
||||
|
||||
if($kategorieSave->loadKategorie($_POST['kategorie_kurzbz']))
|
||||
{
|
||||
// Update
|
||||
$kategorieSave->bezeichnung = $_POST['kategorie_bezeichnung'];
|
||||
$kategorieSave->beschreibung =$_POST['kategorie_beschreibung'];
|
||||
$kategorieSave->parent_kategorie_kurzbz = $kategorie_auswahl;
|
||||
$kategorieSave->new=false;
|
||||
$kategorieSave->new=false;
|
||||
if(!$kategorieSave->saveKategorie())
|
||||
echo '<span class="error">'.$kategorieSave->errormsg.'</span>';
|
||||
else
|
||||
else
|
||||
echo'<span class="ok">Erfolgreich gespeichert</span>';
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
// Neu anlegen
|
||||
$kategorieSave->kategorie_kurzbz = $_POST['kategorie_kurzbz'];
|
||||
$kategorieSave->bezeichnung = $_POST['kategorie_bezeichnung'];
|
||||
$kategorieSave->beschreibung =$_POST['kategorie_beschreibung'];
|
||||
$kategorieSave->parent_kategorie_kurzbz = $kategorie_auswahl;
|
||||
$kategorieSave->new=true;
|
||||
$kategorieSave->new=true;
|
||||
if(!$kategorieSave->saveKategorie())
|
||||
echo '<span class="error">'.$kategorieSave->errormsg.'<span class="error">';
|
||||
else
|
||||
@@ -175,38 +180,38 @@ if(isset($_REQUEST['save']))
|
||||
// Löscht eine Kategorie
|
||||
if(isset($_REQUEST['delete']))
|
||||
{
|
||||
|
||||
|
||||
if($method=='gruppe')
|
||||
{
|
||||
$dms = new dms();
|
||||
$dms = new dms();
|
||||
if(!$dms->deleteGruppe($_REQUEST['kategorie_kurzbz'], $_REQUEST['gruppe_kurzbz']))
|
||||
echo '<span class="error">'.$dms->errormsg.'</span>';
|
||||
else
|
||||
else
|
||||
echo'<span class="ok">Gruppe erfolgreich gelöscht!</span>';
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
if(isset($_REQUEST['kategorie_kurzbz']))
|
||||
{
|
||||
$dms = new dms();
|
||||
$dms = new dms();
|
||||
if(!$dms->deleteKategorie($_REQUEST['kategorie_kurzbz']))
|
||||
echo '<span class="error">'.$dms->errormsg.'</span>';
|
||||
else
|
||||
echo '<span class="ok">Erfolgreich gelöscht</span>';
|
||||
echo '<span class="error">'.$dms->errormsg.'</span>';
|
||||
else
|
||||
echo '<span class="ok">Erfolgreich gelöscht</span>';
|
||||
}
|
||||
else
|
||||
echo "keine Kategorie übergeben";
|
||||
|
||||
else
|
||||
echo "keine Kategorie übergeben";
|
||||
|
||||
$kategorie_kurzbz ='';
|
||||
}
|
||||
}
|
||||
//Kategorien anzeigen
|
||||
$dms = new dms();
|
||||
$dms->getKategorie();
|
||||
|
||||
|
||||
echo' <table cellspacing=0 border="0">
|
||||
<tr>
|
||||
<tr>
|
||||
<td valign="top" nowrap style="border-right: 1px solid lightblue;border-top: 1px solid lightblue;padding-right:5px">
|
||||
<h3>Kategorie:</h3>
|
||||
<table class="tabcontent" border="0">
|
||||
@@ -222,75 +227,78 @@ echo' <table cellspacing=0 border="0">
|
||||
<tr><td> </td></tr>
|
||||
<tr><td colspan="2"><a href ="'.$_SERVER['PHP_SELF'].'">Neue Kategorie anlegen</a></td></tr>
|
||||
|
||||
|
||||
|
||||
</table></td></tr></table>';
|
||||
echo '<script>
|
||||
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
OpenTreeToKategorie("'.$kategorie_kurzbz.'");
|
||||
});
|
||||
|
||||
|
||||
//Klappt den Kategoriebaum auf, damit die ausgewaehlte Kategorie sichtbar ist
|
||||
function OpenTreeToKategorie(kategorie)
|
||||
{
|
||||
elem = document.getElementById(kategorie);
|
||||
if(elem.nodeName=="TABLE")
|
||||
elem.style.display="block";
|
||||
while(true)
|
||||
if (elem != null)
|
||||
{
|
||||
if(!elem.parentNode)
|
||||
break;
|
||||
else
|
||||
elem = elem.parentNode;
|
||||
|
||||
if(elem.nodeName=="TABLE" && elem.className=="tabcontent")
|
||||
if(elem.nodeName=="TABLE")
|
||||
elem.style.display="block";
|
||||
}
|
||||
while(true)
|
||||
{
|
||||
if(!elem.parentNode)
|
||||
break;
|
||||
else
|
||||
elem = elem.parentNode;
|
||||
|
||||
if(elem.nodeName=="TABLE" && elem.className=="tabcontent")
|
||||
elem.style.display="block";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>';
|
||||
echo '</td>
|
||||
<td valign="top" style="border-top: 1px solid lightblue; width: 100%;">
|
||||
<a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'">Eigenschaften</a> | <a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&method=gruppe">Gruppen</a><br><br>';
|
||||
|
||||
|
||||
switch($method)
|
||||
{
|
||||
case 'gruppe':
|
||||
print_rights($kategorie_kurzbz);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
default:
|
||||
drawKategorie($kategorie_kurzbz);
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
echo '
|
||||
</td>
|
||||
</tr>
|
||||
</table>';
|
||||
|
||||
|
||||
|
||||
function drawKategorie($kategorie_kurzbz)
|
||||
{
|
||||
$kategorie = new dms();
|
||||
{
|
||||
$kategorie = new dms();
|
||||
$kategorie_beschreibung = '';
|
||||
$kategorie_bezeichnung = '';
|
||||
$disabled='';
|
||||
|
||||
|
||||
if($kategorie->loadKategorie($kategorie_kurzbz))
|
||||
{
|
||||
// Formular zum Editieren bestehender Kategorien
|
||||
$kategorie_bezeichnung = $kategorie->bezeichnung;
|
||||
$kategorie_bezeichnung = $kategorie->bezeichnung;
|
||||
$kategorie_beschreibung = $kategorie->beschreibung;
|
||||
$disabled = 'disabled="true"';
|
||||
}
|
||||
|
||||
$allKategorien = new dms();
|
||||
}
|
||||
|
||||
$allKategorien = new dms();
|
||||
$allKategorien->getAllKategories();
|
||||
//var_dump($allKategorien->result);
|
||||
echo ' <form action="'.$_SERVER['PHP_SELF'].'?save" method="POST" name="form_kategorie">
|
||||
echo ' <form action="'.$_SERVER['PHP_SELF'].'?save" method="POST" name="form_kategorie">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>Kategorie_kurzbz: </td><td><input type="text" name="kategorie_kurzbz" value="'.$kategorie_kurzbz.'" '.$disabled.' ></td>
|
||||
@@ -309,21 +317,21 @@ function drawKategorie($kategorie_kurzbz)
|
||||
$selected ='';
|
||||
if($kategorienResult->kategorie_kurzbz == $kategorie->parent_kategorie_kurzbz )
|
||||
$selected='selected';
|
||||
if($kategorienResult->kategorie_kurzbz != $kategorie->kategorie_kurzbz)
|
||||
if($kategorienResult->kategorie_kurzbz != $kategorie->kategorie_kurzbz)
|
||||
echo '<option '.$selected.' value="'.$kategorienResult->kategorie_kurzbz.'">'.$kategorienResult->bezeichnung.' ['.$kategorienResult->kategorie_kurzbz.']</option>';
|
||||
}
|
||||
|
||||
|
||||
echo' </select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr></tr>
|
||||
<tr>
|
||||
<td><input type="submit" value="Speichern" onclick="document.form_kategorie.kategorie_kurzbz.disabled=false";></td>
|
||||
<td><input type="submit" value="Speichern" onclick="document.form_kategorie.kategorie_kurzbz.disabled=false";></td>
|
||||
</tr>
|
||||
</table></form>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Erstellt den Karteireiter zum Verwalten der Zugriffsrechte auf einen Content
|
||||
@@ -334,14 +342,14 @@ function print_rights($kategorie_kurzbz)
|
||||
{
|
||||
$dms = new dms();
|
||||
$dms->loadGruppenForKategorie($kategorie_kurzbz);
|
||||
|
||||
|
||||
if(count($dms->result)>0)
|
||||
{
|
||||
echo 'Die Mitglieder der folgenden Gruppen dürfen die Seite ansehen:<br><br>';
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#rights_table").tablesorter(
|
||||
{
|
||||
sortList: [[1,1]],
|
||||
@@ -374,10 +382,10 @@ function print_rights($kategorie_kurzbz)
|
||||
}
|
||||
else
|
||||
echo 'Diese Seite darf von allen angezeigt werden!<br><br>';
|
||||
|
||||
|
||||
$gruppe = new gruppe();
|
||||
$gruppe->getgruppe(null, null, null, null, true);
|
||||
|
||||
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&method=gruppe&save" method="POST">';
|
||||
echo 'Gruppe <select name="gruppe_kurzbz">';
|
||||
foreach($gruppe->result as $row)
|
||||
@@ -392,13 +400,13 @@ function print_rights($kategorie_kurzbz)
|
||||
|
||||
/**
|
||||
* Zeichnet das Kategorie Menu
|
||||
*
|
||||
*
|
||||
* @param $rows DMS Result Object
|
||||
*/
|
||||
function drawKategorieMenue($rows)
|
||||
{
|
||||
{
|
||||
global $kategorie_kurzbz;
|
||||
|
||||
|
||||
//echo '<ul>';
|
||||
foreach($rows as $row)
|
||||
{
|
||||
@@ -406,12 +414,12 @@ function drawKategorieMenue($rows)
|
||||
$class='marked';
|
||||
else
|
||||
$class='';
|
||||
|
||||
|
||||
$dms = new dms();
|
||||
$dms->getKategorie($row->kategorie_kurzbz);
|
||||
|
||||
|
||||
$delete = '<a href="'.$_SERVER['PHP_SELF'].'?delete&kategorie_kurzbz='.$row->kategorie_kurzbz.'"><img src="../skin/images/cross.png" height="12px" title="Kategorie löschen" /></a>';
|
||||
|
||||
|
||||
//Suchen, ob eine Sperre fuer diese Kategorie vorhanden ist
|
||||
$groups = $dms->getLockGroups($row->kategorie_kurzbz);
|
||||
$locked='';
|
||||
@@ -424,7 +432,7 @@ function drawKategorieMenue($rows)
|
||||
}
|
||||
if(count($dms->result)>0)
|
||||
{
|
||||
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
@@ -443,11 +451,11 @@ function drawKategorieMenue($rows)
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class="tdwrap"><a id="'.$row->kategorie_kurzbz.'" href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'" class="Item"><img src="../skin/images/menu_item.gif" alt="menu item" width="7" height="9"> <span class="'.$class.'">'.$row->bezeichnung.' </span></a>'.$delete.$locked.'</td>
|
||||
</tr>';
|
||||
</tr>';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
//echo '</table>';
|
||||
//echo '</ul>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
+79
-66
@@ -18,7 +18,7 @@
|
||||
* Authors: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
|
||||
*/
|
||||
/**
|
||||
* Diese Seite dient zum Anlegen und aendern von Newseintraegen
|
||||
* Diese Seite dient zum Anlegen und aendern von Newseintraegen
|
||||
*/
|
||||
require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
@@ -43,7 +43,7 @@ if(isset($_REQUEST['studiengang_kz']))
|
||||
$studiengang_kz=$_REQUEST['studiengang_kz'];
|
||||
else
|
||||
$studiengang_kz='0';
|
||||
|
||||
|
||||
if(isset($_REQUEST['semester']))
|
||||
$semester = $_REQUEST['semester'];
|
||||
else
|
||||
@@ -53,7 +53,7 @@ if(check_lektor($uid))
|
||||
$is_lector=true;
|
||||
else
|
||||
$is_lector=false;
|
||||
|
||||
|
||||
if(!$rechte->isBerechtigt('basis/news'))
|
||||
$berechtigt=false;
|
||||
else
|
||||
@@ -69,7 +69,7 @@ $news_id = (isset($_REQUEST['news_id'])?$_REQUEST['news_id']:null);
|
||||
if($studiengang_kz=='0' && is_null($semester) && $news_id=='')
|
||||
{
|
||||
if(!$berechtigt)
|
||||
die('Sie haben keine Berechtigung zum Eintragen/Bearbeiten von allgemeinen News');
|
||||
die('Sie haben keine Berechtigung zum Eintragen/Bearbeiten von allgemeinen News');
|
||||
}
|
||||
|
||||
$datum_obj = new datum();
|
||||
@@ -84,16 +84,21 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../skin/styles/jquery.css" type="text/css">
|
||||
<link rel="stylesheet" href="../skin/styles/jquery-ui.css" type="text/css">
|
||||
<link rel="stylesheet" href="../vendor/components/jqueryui/themes/base/jquery-ui.min.css" type="text/css">
|
||||
|
||||
<script src="../include/js/jquery.js" type="text/javascript"></script>
|
||||
<script src="../include/js/jquery-ui.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script src="../vendor/components/jqueryui/jquery-ui.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../include/tiny_mce/tiny_mce.js"></script>
|
||||
|
||||
|
||||
<title>'.$p->t('news/newsverwaltung').'</title>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$( ".datepicker_datum" ).datepicker({
|
||||
changeMonth: true,
|
||||
dateFormat: "dd.mm.yy",
|
||||
@@ -109,12 +114,12 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
theme : "advanced",
|
||||
language : "de",
|
||||
file_browser_callback: "FHCFileBrowser",
|
||||
|
||||
|
||||
plugins : "spellchecker,pagebreak,style,layer,table,advhr,advimage,advlink,inlinepopups,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
|
||||
|
||||
|
||||
// Theme options
|
||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,image,|,bullist,formatselect,fontsizeselect,pastetext",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,image,|,bullist,formatselect,fontsizeselect,pastetext",
|
||||
theme_advanced_buttons2 : "",
|
||||
theme_advanced_buttons3 : "",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "center",
|
||||
@@ -130,17 +135,17 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
paste_strip_class_attributes: true,
|
||||
paste_retain_style_properties: "",
|
||||
paste_text_sticky: true,
|
||||
setup : function(ed)
|
||||
{
|
||||
setup : function(ed)
|
||||
{
|
||||
ed.onInit.add(function(ed)
|
||||
{ ed.pasteAsPlainText = true;
|
||||
ed.controlManager.setActive("pastetext", true);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
function FHCFileBrowser(field_name, url, type, win)
|
||||
function FHCFileBrowser(field_name, url, type, win)
|
||||
{
|
||||
cmsURL = "'.APP_ROOT.'cms/tinymce_dms.php?type="+type;
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
@@ -158,7 +163,7 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>';
|
||||
@@ -168,10 +173,10 @@ if(isset($_GET['action']) && $_GET['action']=='add_uebersetzung')
|
||||
{
|
||||
$news = new news();
|
||||
$news->load($_GET['news_id']);
|
||||
|
||||
|
||||
$content = new content();
|
||||
$content->getContent($news->content_id);
|
||||
|
||||
|
||||
$content->new = true;
|
||||
$content->sichtbar=false;
|
||||
$content->sprache=$_GET['lang'];
|
||||
@@ -182,7 +187,7 @@ if(isset($_GET['action']) && $_GET['action']=='add_uebersetzung')
|
||||
$content->reviewvon='';
|
||||
$content->reviewamum='';
|
||||
$content->gesperrt_uid='';
|
||||
|
||||
|
||||
if($content->saveContentSprache())
|
||||
$message.= '<span class="ok">'.$p->t('global/erfolgreichgespeichert').'</span>';
|
||||
else
|
||||
@@ -194,7 +199,7 @@ if(isset($_GET['action']) && $_GET['action']=='delete')
|
||||
{
|
||||
if(!$rechte->isBerechtigt('basis/news',null, 'suid') && !$is_lector)
|
||||
die($p->t('global/keineBerechtigungFuerDieseSeite'));
|
||||
|
||||
|
||||
if(isset($_GET['news_id']) && is_numeric($_GET['news_id']))
|
||||
{
|
||||
$news_id = $_GET['news_id'];
|
||||
@@ -203,7 +208,7 @@ if(isset($_GET['action']) && $_GET['action']=='delete')
|
||||
{
|
||||
$studiengang_kz=$news->studiengang_kz;
|
||||
$semester = $news->semester;
|
||||
|
||||
|
||||
if($news->delete($news_id))
|
||||
{
|
||||
$message.= '<span class="ok">'.$p->t('global/erfolgreichgelöscht').'</span>';
|
||||
@@ -212,7 +217,7 @@ if(isset($_GET['action']) && $_GET['action']=='delete')
|
||||
else
|
||||
{
|
||||
$message.= '<span class="error">'.$news->errormsg.'</span>';
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -221,8 +226,8 @@ if(isset($_GET['action']) && $_GET['action']=='delete')
|
||||
}
|
||||
else
|
||||
die($p->t('global/fehlerBeiDerParameteruebergabe'));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//Speichern eines Eintrags
|
||||
@@ -231,9 +236,9 @@ if(isset($_POST['save']))
|
||||
$save_error=false;
|
||||
$news_id = $_POST['news_id'];
|
||||
$mail = false;
|
||||
|
||||
|
||||
$news = new news();
|
||||
|
||||
|
||||
if($news_id!='')
|
||||
{
|
||||
$news->load($news_id);
|
||||
@@ -253,12 +258,12 @@ if(isset($_POST['save']))
|
||||
$news->updatevon = $uid;
|
||||
$news->datum = $datum_obj->formatDatum($_POST['datum'],'Y-m-d');
|
||||
$news->datum_bis = $datum_obj->formatDatum($_POST['datum_bis'],'Y-m-d');
|
||||
|
||||
|
||||
if($news->content_id=='')
|
||||
{
|
||||
$studiengang = new studiengang();
|
||||
$studiengang->load($_POST['studiengang_kz']);
|
||||
|
||||
|
||||
$content = new content();
|
||||
$content->template_kurzbz='news';
|
||||
$content->oe_kurzbz=$studiengang->oe_kurzbz;
|
||||
@@ -268,10 +273,10 @@ if(isset($_POST['save']))
|
||||
$content->insertvon = $uid;
|
||||
if(!$content->save(true))
|
||||
die($content->errormsg);
|
||||
|
||||
|
||||
$news->content_id = $content->content_id;
|
||||
}
|
||||
|
||||
|
||||
if(!$news->save())
|
||||
die($news->errormsg);
|
||||
$news_id = $news->news_id;
|
||||
@@ -281,7 +286,7 @@ if(isset($_POST['save']))
|
||||
foreach($_POST as $key=>$value)
|
||||
if(mb_strstr($key,'contentsprache_id_'))
|
||||
$sprachen[] = mb_substr($key, strlen('contentsprache_id_'));
|
||||
|
||||
|
||||
$sprachen = array_unique($sprachen);
|
||||
|
||||
foreach($sprachen as $lang)
|
||||
@@ -289,7 +294,7 @@ if(isset($_POST['save']))
|
||||
$content = new content();
|
||||
if (isset($_POST['sichtbar_'.$lang]))
|
||||
$sichtbar = true;
|
||||
else
|
||||
else
|
||||
$sichtbar = false;
|
||||
|
||||
if(isset($_POST['contentsprache_id_'.$lang]) && $_POST['contentsprache_id_'.$lang]!='')
|
||||
@@ -307,13 +312,13 @@ if(isset($_POST['save']))
|
||||
$content->new = true;
|
||||
$content->sprache = $lang;
|
||||
}
|
||||
|
||||
|
||||
$xml = '<news>';
|
||||
$xml.='<verfasser><![CDATA['.$_POST['verfasser_'.$lang].']]></verfasser>';
|
||||
$xml.='<betreff><![CDATA['.$_POST['betreff_'.$lang].']]></betreff>';
|
||||
$xml.='<text><![CDATA['.$_POST['text_'.$lang].']]></text>';
|
||||
$xml.='</news>';
|
||||
|
||||
|
||||
$content->content = $xml;
|
||||
$content->sichtbar = $sichtbar;
|
||||
$content->updateamum = date('Y-m-d H:i:s');
|
||||
@@ -326,23 +331,23 @@ if(isset($_POST['save']))
|
||||
}
|
||||
if ($sichtbar == true)
|
||||
$message.='<span class="ok">'.$p->t('news/eintragVeroeffentlicht',array($lang)).'</span><br/>';
|
||||
else
|
||||
else
|
||||
$message.='<span class="error">'.$p->t('news/eintragNochNichtVeroeffentlicht',array($lang)).'</span><br/>';
|
||||
}
|
||||
if(!$save_error)
|
||||
{
|
||||
$message.= '<span class="ok">'.$p->t('global/erfolgreichgespeichert').'</span>';
|
||||
}
|
||||
|
||||
|
||||
if ($mail && $_POST['studiengang_kz']=='0' && $_POST['semester']==NULL)
|
||||
{
|
||||
$oe = new studiengang();
|
||||
$oe->load($_POST['studiengang_kz']);
|
||||
$oe_translate = $oe->oe_kurzbz;
|
||||
|
||||
|
||||
$translate = new benutzerfunktion();
|
||||
$translate->getBenutzerFunktionen('translate', $oe_translate);
|
||||
|
||||
|
||||
if(count($translate->result)==0)
|
||||
$translate->getBenutzerFunktionen('translate');
|
||||
$to='';
|
||||
@@ -358,7 +363,7 @@ if(isset($_POST['save']))
|
||||
$subject = $p->t('news/neuerNewseintrag');
|
||||
$text = $p->t('news/mailtext');
|
||||
$texthtml = $p->t('news/mailtextHTML',array(APP_ROOT."cms/newsverwaltung.php?news_id=".$news_id,$content->titel,$_POST['text_'.DEFAULT_LANGUAGE])) ;
|
||||
|
||||
|
||||
$mail = new mail($to, $from, $subject, $text);
|
||||
$mail->setHTMLContent($texthtml);
|
||||
if($mail->send())
|
||||
@@ -382,16 +387,16 @@ $sprachen = array(DEFAULT_LANGUAGE);
|
||||
$news = new news();
|
||||
if($news_id!='')
|
||||
{
|
||||
$news->load($news_id);
|
||||
$news->load($news_id);
|
||||
$sprachen = $content->getLanguages($news->content_id);
|
||||
$studiengang_kz = $news->studiengang_kz;
|
||||
$semester = $news->semester;
|
||||
|
||||
|
||||
if($studiengang_kz=='0' && $semester=='' && !$berechtigt)
|
||||
{
|
||||
die($p->t('global/keineBerechtigungFuerDieseSeite'));
|
||||
die($p->t('global/keineBerechtigungFuerDieseSeite'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if($studiengang_kz=='0' && $semester=='')
|
||||
$type=$p->t('news/allgemein');
|
||||
@@ -424,7 +429,7 @@ if($studiengang_kz!='')
|
||||
{
|
||||
$studiengang = new studiengang();
|
||||
$studiengang->getAll('typ, kurzbz', false);
|
||||
|
||||
|
||||
echo '<table>
|
||||
<tr>
|
||||
<td>'.$p->t('global/studiengang').'</td>
|
||||
@@ -441,20 +446,20 @@ if($studiengang_kz!='')
|
||||
echo ' </SELECT>
|
||||
</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
echo '<tr>
|
||||
<td>'.$p->t('global/semester').'</td>
|
||||
<td>
|
||||
<SELECT name="semester">';
|
||||
echo '<OPTION value="">'.$p->t('news/allesemester').'</OPTION>';
|
||||
|
||||
|
||||
for($i=0;$i<=8;$i++)
|
||||
{
|
||||
if($semester!='' && $i==$semester)
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
|
||||
echo '<OPTION value="'.$i.'" '.$selected.'>'.$p->t('news/xsemester',array($i)).'</OPTION>';
|
||||
}
|
||||
if($studiengang_kz=='10006')
|
||||
@@ -478,7 +483,7 @@ echo '</td><td align="right" valign="top">'.$message.'</td></tr></table>';
|
||||
//Tabs fuer alle vorhandenen Sprachen anlegen
|
||||
echo '<div id="tabs" style="font-size:80%;">
|
||||
<ul class="css-tabs">';
|
||||
|
||||
|
||||
foreach($sprachen as $lang)
|
||||
{
|
||||
$sprache_obj = new sprache();
|
||||
@@ -495,7 +500,7 @@ foreach($sprachen as $lang)
|
||||
{
|
||||
$sprachindex[$lang]=$idx;
|
||||
$idx++;
|
||||
|
||||
|
||||
$verfasser='';
|
||||
$betreff='';
|
||||
$text='';
|
||||
@@ -503,7 +508,7 @@ foreach($sprachen as $lang)
|
||||
if($news->content_id!='')
|
||||
{
|
||||
$content->getContent($news->content_id, $lang, null, null, false);
|
||||
|
||||
|
||||
$xml_inhalt = new DOMDocument();
|
||||
if($content->content!='')
|
||||
{
|
||||
@@ -516,7 +521,7 @@ foreach($sprachen as $lang)
|
||||
$betreff = $xml_inhalt->getElementsByTagName('betreff')->item(0)->nodeValue;
|
||||
if($xml_inhalt->getElementsByTagName('text')->item(0))
|
||||
$text = $xml_inhalt->getElementsByTagName('text')->item(0)->nodeValue;
|
||||
|
||||
|
||||
$sichtbar = $content->sichtbar;
|
||||
}
|
||||
echo '<div id="'.$lang.'">';
|
||||
@@ -539,7 +544,7 @@ foreach($sprachen as $lang)
|
||||
<td><input type="checkbox" name="sichtbar_'.$lang.'" '.($sichtbar==true?'checked':'').'></td>
|
||||
</tr>
|
||||
</table>';
|
||||
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
@@ -552,8 +557,8 @@ if($news->content_id!='')
|
||||
die($content->errormsg);
|
||||
$sprache_obj = new sprache();
|
||||
$sprache_obj->getAll(true);
|
||||
|
||||
//Wenn noch nicht alle Uebersetzungen vorhanden sind,
|
||||
|
||||
//Wenn noch nicht alle Uebersetzungen vorhanden sind,
|
||||
//wird ein Link zum Erstellen der Uebersetzung angezeigt.
|
||||
if(count($vorhandene_sprachen)<count($sprache_obj->result))
|
||||
{
|
||||
@@ -562,7 +567,7 @@ if($news->content_id!='')
|
||||
foreach($sprache_obj->result as $row)
|
||||
{
|
||||
if(!in_array($row->sprache, $vorhandene_sprachen))
|
||||
echo '<br /><a style="color:#008381" href="'.$_SERVER['PHP_SELF'].'?news_id='.$news_id.'&action=add_uebersetzung&lang='.$row->sprache.'">'.$row->bezeichnung_arr[$sprache].'</a>';
|
||||
echo '<br /><a style="color:#008381" href="'.$_SERVER['PHP_SELF'].'?news_id='.$news_id.'&action=add_uebersetzung&lang='.$row->sprache.'">'.$row->bezeichnung_arr[$sprache].'</a>';
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -576,20 +581,28 @@ echo '</div><br />';
|
||||
echo '<input type="hidden" id="tabselect" name="tabselect" value="">';
|
||||
echo '<input type="submit" name="save" value="'.$p->t('global/speichern').'" onclick="var idx=$( \'#tabs\').tabs(\'option\',\'selected\');$(\'#tabselect\').val(idx);">';
|
||||
echo '</form>';
|
||||
if(isset($_POST['tabselect']) && $_POST['tabselect']!='')
|
||||
$tabselect=$_POST['tabselect'];
|
||||
if (isset($_POST['tabselect']) && $_POST['tabselect'] != '')
|
||||
{
|
||||
$tabselect = $_POST['tabselect'];
|
||||
}
|
||||
else
|
||||
{
|
||||
if(isset($_GET['lang']))
|
||||
if (isset($_GET['lang']))
|
||||
{
|
||||
$tabselect = $sprachindex[$_GET['lang']];
|
||||
}
|
||||
else
|
||||
{
|
||||
$tabselect = $sprachindex[DEFAULT_LANGUAGE];
|
||||
}
|
||||
}
|
||||
echo '<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#tabs").tabs();
|
||||
$( "#tabs").tabs( "select", '.$tabselect.');
|
||||
})
|
||||
$(document).ready(function() {
|
||||
$("#tabs").tabs({
|
||||
active: 1
|
||||
});
|
||||
$("#tabs").tabs("option", "active", '.$tabselect.');
|
||||
});
|
||||
</script>
|
||||
';
|
||||
|
||||
@@ -608,4 +621,4 @@ echo '<hr>
|
||||
</tr></table>';
|
||||
echo '</body>
|
||||
</html>';
|
||||
?>
|
||||
?>
|
||||
|
||||
+161
-156
@@ -42,12 +42,17 @@ if(!$rechte->isberechtigt('basis/dms',null, 's', null))
|
||||
<head>
|
||||
<title>FHComplete Document Management System</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../skin/superfish.css" type="text/css">
|
||||
<link rel="stylesheet" href="../vendor/joeldbirch/superfish/dist/css/superfish.css" type="text/css">
|
||||
<link rel="stylesheet" href="../skin/fhcomplete.css" type="text/css">
|
||||
<link rel="stylesheet" href="../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../include/js/superfish.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<script type="text/javascript" src="../vendor/joeldbirch/superfish/dist/js/superfish.min.js"></script>
|
||||
<script type="text/javascript" src="../include/tiny_mce/tiny_mce_popup.js"></script>
|
||||
<style type="text/css">
|
||||
.buttondesign {
|
||||
@@ -88,7 +93,7 @@ if(!$rechte->isberechtigt('basis/dms',null, 's', null))
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
$('document').ready(function() {
|
||||
$('.buttondesign').mouseenter(function() {
|
||||
$(this).animate({
|
||||
@@ -101,25 +106,25 @@ if(!$rechte->isberechtigt('basis/dms',null, 's', null))
|
||||
}, 300);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//tinyMCEPopup.onInit.add(FileBrowserDialog.init, FileBrowserDialog);
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
//$('#divupload').hide();
|
||||
jQuery('ul.sf-menu').superfish({speed:'fast', delay:200});
|
||||
});
|
||||
|
||||
|
||||
function upload(id, name)
|
||||
{
|
||||
$('#divupload').show();
|
||||
|
||||
|
||||
if(typeof(id)!='undefined')
|
||||
{
|
||||
$('#dms_id').val(id);
|
||||
$('#dms_id_import').val(id);
|
||||
$('#dms_id_import').val(id);
|
||||
$('#ueberschrift').html('Neue Version von '+name);
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -137,7 +142,7 @@ if(!$rechte->isberechtigt('basis/dms',null, 's', null))
|
||||
beschreibungstext = beschreibungstext.replace(/6Sl4sh/g, "\\");
|
||||
beschreibungstext = beschreibungstext.replace(/D4n7ührung/g, "\"");
|
||||
beschreibungstext = beschreibungstext.replace(/Ze1l3numxbr/g, "\r\n");
|
||||
document.getElementById("beschreibung-textarea").value = beschreibungstext;
|
||||
document.getElementById("beschreibung-textarea").value = beschreibungstext;
|
||||
}
|
||||
|
||||
var __js_page_array = new Array();
|
||||
@@ -148,44 +153,44 @@ if(!$rechte->isberechtigt('basis/dms',null, 's', null))
|
||||
var block = "table-row";
|
||||
if (navigator.appName.indexOf('Microsoft') > -1)
|
||||
block = 'block';
|
||||
|
||||
// Aktueller Anzeigemode ermitteln
|
||||
|
||||
// Aktueller Anzeigemode ermitteln
|
||||
var status = __js_page_array[conid];
|
||||
if (status == null)
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
status=document.getElementById(conid).style.display;
|
||||
} else if (document.all && document.all[conid]) {
|
||||
} else if (document.all && document.all[conid]) {
|
||||
status=document.all[conid].style.display;
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
status=document.layers[conid].style.display;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Anzeigen oder Ausblenden
|
||||
if (status == 'none')
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
document.getElementById(conid).style.display = 'block';
|
||||
} else if (document.all && document.all[conid]) {
|
||||
} else if (document.all && document.all[conid]) {
|
||||
document.all[conid].style.display='block';
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
document.layers[conid].style.display='block';
|
||||
}
|
||||
}
|
||||
__js_page_array[conid] = 'block';
|
||||
}
|
||||
else
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(conid))
|
||||
{
|
||||
document.getElementById(conid).style.display = 'none';
|
||||
} else if (document.all && document.all[conid]) {
|
||||
} else if (document.all && document.all[conid]) {
|
||||
document.all[conid].style.display='none';
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
} else if (document.layers && document.layers[conid]) {
|
||||
document.layers[conid].style.display='none';
|
||||
}
|
||||
}
|
||||
__js_page_array[conid] = 'none';
|
||||
}
|
||||
return false;
|
||||
@@ -235,17 +240,17 @@ if($importFile != '')
|
||||
{
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'sui', null))
|
||||
die($rechte->errormsg);
|
||||
|
||||
|
||||
$ext = pathinfo($importFile, PATHINFO_EXTENSION);
|
||||
$filename=uniqid();
|
||||
$filename.=".".$ext;
|
||||
$filename=uniqid();
|
||||
$filename.=".".$ext;
|
||||
$dms_id = $_POST['dms_id_import'];
|
||||
|
||||
|
||||
// kopiert aus import Verzeichnis
|
||||
if(copy(IMPORT_PATH.$importFile, DMS_PATH.$filename))
|
||||
{
|
||||
$dms = new dms;
|
||||
|
||||
$dms = new dms;
|
||||
|
||||
if($dms_id!='')
|
||||
{
|
||||
if(!$dms->load($dms_id))
|
||||
@@ -261,61 +266,61 @@ if($importFile != '')
|
||||
}
|
||||
//Mimetype auslesen
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
|
||||
|
||||
$dms->insertamum=date('Y-m-d H:i:s');
|
||||
$dms->insertvon = $user;
|
||||
$dms->mimetype= finfo_file($finfo, IMPORT_PATH.$importFile); //Davor deprecated: mime_content_type(IMPORT_PATH.$importFile);
|
||||
$dms->filename = $filename;
|
||||
$dms->name = $importFile;
|
||||
|
||||
|
||||
if($dms->save(true))
|
||||
{
|
||||
echo 'File wurde erfolgreich hochgeladen. <br>Filename:'.$filename.' <br>ID: <a href="id://'.$dms->dms_id.'/Auswahl" onclick="FileBrowserDialog.mySubmit('.$dms->dms_id.'); return false;" style="font-size: small">'.$dms->dms_id.'</a>';
|
||||
$dms_id=$dms->dms_id;
|
||||
|
||||
|
||||
if($projekt_kurzbz!='' || $projektphase_id!='')
|
||||
{
|
||||
if(!$dms->saveProjektzuordnung($dms_id, $projekt_kurzbz, $projektphase_id))
|
||||
echo $dms->errormsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
echo 'Fehler beim Speichern der Daten';
|
||||
|
||||
|
||||
if(!@chgrp(DMS_PATH.$filename,'dms'))
|
||||
echo '<br>CHGRP failed';
|
||||
if(!@chmod(DMS_PATH.$filename, 0774))
|
||||
echo '<br>CHMOD failed';
|
||||
exec('sudo chown wwwrun '.$filename);
|
||||
|
||||
exec('sudo chown wwwrun '.$filename);
|
||||
|
||||
// Lösche File aus Verzeichnis nachdem es raufgeladen wurde
|
||||
if(!unlink(IMPORT_PATH.$importFile))
|
||||
echo 'Fehler beim Löschen aufgetreten.';
|
||||
echo 'Fehler beim Löschen aufgetreten.';
|
||||
}
|
||||
}
|
||||
if(isset($_POST['fileupload']))
|
||||
{
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'sui', null))
|
||||
die($rechte->errormsg);
|
||||
|
||||
|
||||
$dms_id = $_POST['dms_id'];
|
||||
$beschreibung = $_POST['beschreibung'];
|
||||
$ext = pathinfo($_FILES['userfile']['name'], PATHINFO_EXTENSION);
|
||||
$ext = pathinfo($_FILES['userfile']['name'], PATHINFO_EXTENSION);
|
||||
$filename = uniqid();
|
||||
$filename.=".".$ext;
|
||||
$filename.=".".$ext;
|
||||
$uploadfile = DMS_PATH.$filename;
|
||||
|
||||
|
||||
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile))
|
||||
|
||||
|
||||
if(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile))
|
||||
{
|
||||
if(!@chgrp($uploadfile,'dms'))
|
||||
echo '<br>CHGRP failed';
|
||||
if(!@chmod($uploadfile, 0774))
|
||||
echo '<br>CHMOD failed';
|
||||
exec('sudo chown wwwrun '.$uploadfile);
|
||||
|
||||
exec('sudo chown wwwrun '.$uploadfile);
|
||||
|
||||
$dms = new dms();
|
||||
|
||||
|
||||
if($dms_id!='')
|
||||
{
|
||||
if(!$dms->load($dms_id))
|
||||
@@ -331,31 +336,31 @@ if(isset($_POST['fileupload']))
|
||||
}
|
||||
//Mimetype auslesen
|
||||
$finfo = finfo_open(FILEINFO_MIME_TYPE);
|
||||
|
||||
|
||||
$dms->insertamum=date('Y-m-d H:i:s');
|
||||
$dms->insertvon = $user;
|
||||
$dms->mimetype = finfo_file($finfo, $uploadfile); // Davor deprecated: $_FILES['userfile']['type'];
|
||||
$dms->filename = $filename;
|
||||
$dms->name = $_FILES['userfile']['name'];
|
||||
$dms->beschreibung = $beschreibung;
|
||||
|
||||
|
||||
if($dms->save(true))
|
||||
{
|
||||
echo '<span class="ok">File wurde erfolgreich hochgeladen.</span> <br>Filename:'.$filename.' <br>ID:'.$dms->dms_id;
|
||||
$dms_id=$dms->dms_id;
|
||||
|
||||
|
||||
if($projekt_kurzbz!='' || $projektphase_id!='')
|
||||
{
|
||||
if(!$dms->saveProjektzuordnung($dms_id, $projekt_kurzbz, $projektphase_id))
|
||||
echo $dms->errormsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Fehler beim Speichern der Daten</span>';
|
||||
}
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span class="error">Fehler beim Hochladen der Datei</span>';
|
||||
}
|
||||
@@ -365,12 +370,12 @@ if(isset($_POST['action']) && $_POST['action']=='rename')
|
||||
{
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'su', null))
|
||||
die($rechte->errormsg);
|
||||
|
||||
|
||||
$name = $_POST['dateiname'];
|
||||
$dms_id = $_POST['dms_id'];
|
||||
$version = $_POST['version'];
|
||||
$beschreibung = $_POST['beschreibung'];
|
||||
|
||||
|
||||
$dms = new dms();
|
||||
if($dms->load($dms_id, $version))
|
||||
{
|
||||
@@ -378,7 +383,7 @@ if(isset($_POST['action']) && $_POST['action']=='rename')
|
||||
$dms->beschreibung = $beschreibung;
|
||||
$dms->updateamum=date('Y-m-d H:i:s');
|
||||
$dms->updatevon = $user;
|
||||
|
||||
|
||||
if($dms->save(false))
|
||||
echo '<span class="ok">Dateiname wurde erfolgreich geändert</span>';
|
||||
else
|
||||
@@ -392,14 +397,14 @@ if(isset($_REQUEST['delete']))
|
||||
{
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'suid', null))
|
||||
die($rechte->errormsg);
|
||||
|
||||
|
||||
// lösche nur die Version
|
||||
if(isset($_REQUEST['version']))
|
||||
{
|
||||
$dms_id = $_REQUEST['dms_id'];
|
||||
$version = $_REQUEST['version'];
|
||||
|
||||
$dms = new dms();
|
||||
$dms = new dms();
|
||||
$dms->load($dms_id, $version);
|
||||
|
||||
// DB Eintrag löschen
|
||||
@@ -419,26 +424,26 @@ if(isset($_REQUEST['delete']))
|
||||
}
|
||||
|
||||
if($versionId != '')
|
||||
{
|
||||
{
|
||||
// Übersicht der Versionen
|
||||
echo '<h1>Versionsübersicht</h1>';
|
||||
echo '<h1>Versionsübersicht</h1>';
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
echo '<p><a href="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$_REQUEST['searchstring'].'&page='.$page.'&dpp='.$dpp.'">zurück</a></p>';
|
||||
else
|
||||
echo '<p><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$_REQUEST['kategorie_kurzbz'].'&page='.$page.'&dpp='.$dpp.'">zurück</a></p>';
|
||||
drawAllVersions($versionId);
|
||||
else
|
||||
echo '<p><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$_REQUEST['kategorie_kurzbz'].'&page='.$page.'&dpp='.$dpp.'">zurück</a></p>';
|
||||
drawAllVersions($versionId);
|
||||
}
|
||||
elseif($renameId!='')
|
||||
{
|
||||
// Datei umbenennen
|
||||
|
||||
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'su', null))
|
||||
die($rechte->errormsg);
|
||||
|
||||
echo '<h1>Datei umbennen</h1>';
|
||||
|
||||
echo '<h1>Datei umbennen</h1>';
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
echo '<p><a href="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$_REQUEST['searchstring'].'&page='.$page.'&dpp='.$dpp.'">zurück</a></p>';
|
||||
else
|
||||
echo '<p><a href="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$_REQUEST['searchstring'].'&page='.$page.'&dpp='.$dpp.'">zurück</a></p>';
|
||||
else
|
||||
echo '<p><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$_REQUEST['kategorie_kurzbz'].'&page='.$page.'&dpp='.$dpp.'">zurück</a></p>';
|
||||
drawRenameForm($renameId, $version, $page, $dpp, $searching, $searchstring);
|
||||
}
|
||||
@@ -447,7 +452,7 @@ elseif($renameId!='')
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring.'&page='.$page.'&dpp='.$dpp.'" method="POST" enctype="multipart/form-data">';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='.$page.'&dpp='.$dpp.'" method="POST" enctype="multipart/form-data">';
|
||||
}*/
|
||||
@@ -455,10 +460,10 @@ elseif($renameId!='')
|
||||
elseif($chkatID != '')
|
||||
{
|
||||
//Kategorie aendern
|
||||
|
||||
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'su', null))
|
||||
die($rechte->errormsg);
|
||||
|
||||
|
||||
if(isset($_POST['action']) && ($_POST['action']=='chkat'))
|
||||
{
|
||||
// neue Kategorie speichern
|
||||
@@ -466,11 +471,11 @@ elseif($chkatID != '')
|
||||
$dms->load($chkatID);
|
||||
$dms->kategorie_kurzbz = $_POST['kategoriez'];
|
||||
$dms->save();
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
{
|
||||
echo '<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$_REQUEST['searchstring'].'&page='.$page.'&dpp='.$dpp.'" />';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$_REQUEST['kategorie_kurzbz'].'&page='.$page.'&dpp='.$dpp.'" />';
|
||||
}
|
||||
@@ -485,17 +490,17 @@ elseif($chkatID != '')
|
||||
drawChangeKategorie($chkatID, $page, $dpp);
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<div align="left"><h1>Dokument Auswählen</h1></div><div align="right"></div>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring.'" method="POST">
|
||||
<input type="text" name="searchstring" value="'.$searchstring.'">
|
||||
<input type="submit" class="buttondesign" value="Suchen">
|
||||
</form>';
|
||||
|
||||
|
||||
// Suche anzeigen
|
||||
echo' <table cellspacing=0>
|
||||
<tr>
|
||||
<tr>
|
||||
<td valign="top" nowrap style="border-right: 1px solid lightblue;border-top: 1px solid lightblue;padding-right:5px">
|
||||
<a href="admin_dms.php" target="_blank" style="position: absolute; margin-left:12px; margin-top:29px;">Administration</a>
|
||||
<h3>Kategorie:</h3>
|
||||
@@ -516,11 +521,11 @@ else
|
||||
drawKategorieMenue($dms->result);
|
||||
echo '</table></td></tr></table>';
|
||||
echo '<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
OpenTreeToKategorie("'.$kategorie_kurzbz.'");
|
||||
});
|
||||
|
||||
|
||||
//Klappt den Kategoriebaum auf, damit die ausgewaehlte Kategorie sichtbar ist
|
||||
function OpenTreeToKategorie(kategorie)
|
||||
{
|
||||
@@ -533,17 +538,17 @@ else
|
||||
break;
|
||||
else
|
||||
elem = elem.parentNode;
|
||||
|
||||
|
||||
if(elem.nodeName=="TABLE" && elem.className=="tabcontent")
|
||||
elem.style.display="block";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>';
|
||||
echo '</td>
|
||||
<td valign="top" style="border-top: 1px solid lightblue;">';
|
||||
//Dokumente der Ausgewaehlten Kategorie laden und Anzeigen
|
||||
$dms = new dms();
|
||||
|
||||
|
||||
if($searchstring!='' || (isset($_GET['searching']) && $_GET['searching'] == true))
|
||||
{
|
||||
$count = new dms();
|
||||
@@ -551,8 +556,8 @@ else
|
||||
$anzahl = count($count->result);
|
||||
$dms->search($searchstring, $dpp, $page);
|
||||
$suche = true;
|
||||
|
||||
|
||||
|
||||
|
||||
if ($page != 0)
|
||||
{
|
||||
echo '<span style="float:left">'.$anzahl.' Elemente gefunden</span><span style="float:right">Seite '.$page.' von <a href="'.$_SERVER['PHP_SELF'].'?page='; if (is_int($anzahl/$dpp)) { echo (int)($anzahl/$dpp); } else { echo (int)(($anzahl/$dpp)+1); } echo '&dpp='.$dpp.'&searching=true&searchstring='.$searchstring.'">';
|
||||
@@ -569,8 +574,8 @@ else
|
||||
{
|
||||
echo '<span align="center"><a href="'.$_SERVER['PHP_SELF'].'?page=1&dpp='.$dpp.'&searching=true&searchstring='.$searchstring.'">Seite 1</a></span>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
drawFilesList($dms->result);
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page-100 < 1){echo '1';}else{echo ($page-100);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="100zurück" value="100 zurück" style="margin-left:5px;"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page-10 < 1){echo '1';}else{echo ($page-10);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="10zurück" value="10 zurück" style="margin-left:2px;"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>';
|
||||
@@ -625,7 +630,7 @@ else
|
||||
$count->getDocuments($kategorie_kurzbz);
|
||||
$anzahl = count($count->result);
|
||||
$dms->getDocuments($kategorie_kurzbz, $dpp, $page);
|
||||
|
||||
|
||||
if ($page != 0)
|
||||
{
|
||||
echo '<span style="float:left">'.$anzahl.' Elemente gefunden</span><span style="float:right">Seite '.$page.' von <a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if (is_int($anzahl/$dpp)) { echo (int)($anzahl/$dpp); } else { echo (int)(($anzahl/$dpp)+1); } echo '&dpp='.$dpp.'">';
|
||||
@@ -633,7 +638,7 @@ else
|
||||
{
|
||||
echo (int)($anzahl/$dpp).' </a></span>';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo (int)(($anzahl/$dpp)+1).' </a></span>';
|
||||
}
|
||||
@@ -642,7 +647,7 @@ else
|
||||
{
|
||||
echo '<span align="center"><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page=1&dpp='.$dpp.'">Seite 1</a></span>';
|
||||
}
|
||||
|
||||
|
||||
drawFilesList($dms->result);
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page-100 < 1){echo '1';}else{echo ($page-100);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="100zurück" value="100 zurück" style="margin-left:5px;"/></form>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page-10 < 1){echo '1';}else{echo ($page-10);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="10zurück" value="10 zurück" style="margin-left:2px;"/></form>';
|
||||
@@ -690,8 +695,8 @@ else
|
||||
</form>';
|
||||
}
|
||||
//drawFilesThumb($dms->result);
|
||||
|
||||
|
||||
|
||||
|
||||
echo '
|
||||
</td>
|
||||
</tr>
|
||||
@@ -702,7 +707,7 @@ else
|
||||
<br>
|
||||
<a href="#Upload" onclick="return upload()">Neue Datei hochladen</a>
|
||||
<br>
|
||||
|
||||
|
||||
<br><br>
|
||||
<div id="divupload">
|
||||
<hr>
|
||||
@@ -711,7 +716,7 @@ else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring.'&page='.$page.'&dpp='.$dpp.'" method="POST" enctype="multipart/form-data">';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='.$page.'&dpp='.$dpp.'" method="POST" enctype="multipart/form-data">';
|
||||
}
|
||||
@@ -736,14 +741,14 @@ else
|
||||
$files = scandir(IMPORT_PATH);
|
||||
$files_count = count($files)-2; // Minus zwei wegen "." und ".."
|
||||
if ($files_count>0 && $rechte->isberechtigt('basis/dms',null, 'sui', null))
|
||||
drawFilesFromImport();
|
||||
drawFilesFromImport();
|
||||
echo '</div>';
|
||||
}
|
||||
if($openupload)
|
||||
{
|
||||
echo '<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
';
|
||||
if($newVersionID!='')
|
||||
{
|
||||
@@ -753,30 +758,30 @@ else
|
||||
}
|
||||
else
|
||||
echo 'upload();';
|
||||
|
||||
|
||||
echo '
|
||||
});
|
||||
</script>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/************ FUNCTIONS ********************/
|
||||
|
||||
/**
|
||||
* Zeigt alle Versionen des Dokumentes an
|
||||
*
|
||||
*
|
||||
* @param $id DokumentID die angezeigt werden soll
|
||||
*/
|
||||
function drawAllVersions($id)
|
||||
{
|
||||
global $rechte;
|
||||
$dms = new dms();
|
||||
$dms->getAllVersions($id);
|
||||
|
||||
$dms = new dms();
|
||||
$dms->getAllVersions($id);
|
||||
|
||||
echo '<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t3").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]], headers: {6:{sorter:false}},
|
||||
@@ -811,31 +816,31 @@ function drawAllVersions($id)
|
||||
<li><a href="dms.php?id='.$dms_help->dms_id.'&version='.$dms_help->version.'" style="font-size:small" target="_blank">Herunterladen</a></li>';
|
||||
if($rechte->isberechtigt('basis/dms',null, 'suid', null))
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$dms_help->kategorie_kurzbz.'&versionid='.$dms_help->dms_id.'&dms_id='.$dms_help->dms_id.'&version='.$dms_help->version.'&delete" style="font-size:small">Löschen</a></li>';
|
||||
|
||||
|
||||
echo '</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>';
|
||||
</tr>';
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
echo '</tbody></table>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Liest die Files aus dem Importverzeichnis aus
|
||||
*
|
||||
*
|
||||
*/
|
||||
function drawFilesFromImport()
|
||||
{
|
||||
global $kategorie_kurzbz, $projekt_kurzbz, $projektphase_id;
|
||||
|
||||
if ($handle = opendir(IMPORT_PATH))
|
||||
if ($handle = opendir(IMPORT_PATH))
|
||||
{
|
||||
echo '<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t3").tablesorter(
|
||||
{
|
||||
{
|
||||
sortList: [[0,0]], headers: {1:{sorter:false}},
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
@@ -843,9 +848,9 @@ function drawFilesFromImport()
|
||||
</script>';
|
||||
echo ' <h3>Files im Import Ordner</h3>
|
||||
<table class="tablesorter" id="t3" style="width: auto"> <form action ="'.$_SERVER['PHP_SELF'].'" method="POST" name="import" >
|
||||
<thead><th>File</th><th></th></thead><tbody>';
|
||||
<thead><th>File</th><th></th></thead><tbody>';
|
||||
|
||||
while (false !== ($file = readdir($handle)))
|
||||
while (false !== ($file = readdir($handle)))
|
||||
{
|
||||
if($file != '.' && $file != '..')
|
||||
{
|
||||
@@ -857,10 +862,10 @@ function drawFilesFromImport()
|
||||
<td>
|
||||
<a onclick="window.location=\'#divupload\'; document.import.importFile.value=\''.$file.'\';document.import.submit();" style="font-size:small">Upload</a>
|
||||
</td>
|
||||
</tr>';
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
echo'
|
||||
echo'
|
||||
<input type="hidden" name="dms_id_import" id="dms_id_import" value="">
|
||||
<input type="hidden" name="importFile" value="">
|
||||
<input type="hidden" name="kategorie_kurzbz" id="kategorie_kurzbz" value="'.$kategorie_kurzbz.'">
|
||||
@@ -872,13 +877,13 @@ function drawFilesFromImport()
|
||||
}
|
||||
/**
|
||||
* Zeichnet das Kategorie Menu
|
||||
*
|
||||
*
|
||||
* @param $rows DMS Result Object
|
||||
*/
|
||||
function drawKategorieMenue($rows)
|
||||
{
|
||||
{
|
||||
global $kategorie_kurzbz;
|
||||
|
||||
|
||||
//echo '<ul>';
|
||||
foreach($rows as $row)
|
||||
{
|
||||
@@ -888,10 +893,10 @@ function drawKategorieMenue($rows)
|
||||
$class='marked';
|
||||
else
|
||||
$class='';
|
||||
|
||||
|
||||
$dms = new dms();
|
||||
$dms->getKategorie($row->kategorie_kurzbz);
|
||||
|
||||
|
||||
//Suchen, ob eine Sperre fuer diese Kategorie vorhanden ist
|
||||
$groups = $dms->getLockGroups($row->kategorie_kurzbz);
|
||||
$locked='';
|
||||
@@ -904,7 +909,7 @@ function drawKategorieMenue($rows)
|
||||
}
|
||||
if(count($dms->result)>0)
|
||||
{
|
||||
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
@@ -923,36 +928,36 @@ function drawKategorieMenue($rows)
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class="tdwrap"><a id="'.$row->kategorie_kurzbz.'" href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'" class="Item"> <span class="'.$class.'">'.$row->bezeichnung.'</span></a>'.$locked.'</td>
|
||||
</tr>';
|
||||
</tr>';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
//echo '</table>';
|
||||
//echo '</ul>';
|
||||
}
|
||||
/**
|
||||
* Zeichnet die Files in Listenform
|
||||
*
|
||||
*
|
||||
* @param $rows DMS Result Object
|
||||
*/
|
||||
function drawFilesList($rows)
|
||||
{
|
||||
global $mimetypes, $suche, $rechte;
|
||||
$dms = new dms();
|
||||
|
||||
$dms = new dms();
|
||||
|
||||
if(count($rows)>0)
|
||||
{
|
||||
echo '
|
||||
<script>
|
||||
$(document).ready(function()
|
||||
{
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#t2").tablesorter(
|
||||
{';
|
||||
if($suche == true)
|
||||
echo 'sortList: [[4,0],[1,1]], headers: {3:{sorter:false}},';
|
||||
else
|
||||
echo 'sortList: [[0,0]], headers: {2:{sorter:false}},';
|
||||
|
||||
|
||||
echo'
|
||||
widgets: ["zebra"]
|
||||
});
|
||||
@@ -960,7 +965,7 @@ function drawFilesList($rows)
|
||||
</script>
|
||||
';
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
<table class="tablesorter" id="t2">
|
||||
<thead>
|
||||
@@ -989,29 +994,29 @@ function drawFilesList($rows)
|
||||
echo '<img title="'.$row->name.'" src="../skin/images/'.$mimetypes[$row->mimetype].'" style="height: 15px">';
|
||||
else
|
||||
echo '<img title="'.$row->name.'" src="../skin/images/blank.gif" style="height: 15px">';
|
||||
|
||||
// wenn es noch höhere Versionen zu diesem Dokument gibt, wird dieses gekennzeichnet
|
||||
|
||||
// wenn es noch höhere Versionen zu diesem Dokument gibt, wird dieses gekennzeichnet
|
||||
$newVersion = '';
|
||||
$newerVersionAlert='';
|
||||
if($dms->checkVersion($row->dms_id, $row->version))
|
||||
{
|
||||
$newVersion = '--';
|
||||
$newerVersionAlert = 'alert(\'Achtung!! Es gibt eine neuere Version dieses Dokuments. Es wird die aktuellste eingefügt.\');';
|
||||
$newerVersionAlert = 'alert(\'Achtung!! Es gibt eine neuere Version dieses Dokuments. Es wird die aktuellste eingefügt.\');';
|
||||
}
|
||||
|
||||
|
||||
echo'
|
||||
<a href="id://'.$row->dms_id.'/Auswahl" onclick="'.$newerVersionAlert.' FileBrowserDialog.mySubmit('.$row->dms_id.'); return false;" style="font-size: small" title="'.$row->beschreibung.'">
|
||||
'.$newVersion.' '.$row->name.'</a>
|
||||
</td>';
|
||||
$datum = new datum();
|
||||
|
||||
|
||||
echo '<td style="padding: 1px;" title="'.$datum->formatDatum($row->insertamum,'d.m.Y H:m').' von '.$row->insertvon.'">';
|
||||
echo $row->version;
|
||||
echo '</td>';
|
||||
|
||||
|
||||
$kategorie = new dms();
|
||||
$kategorie->loadKategorie($row->kategorie_kurzbz);
|
||||
|
||||
|
||||
// zeige bei suche auch kategorie an
|
||||
if($suche == true)
|
||||
{
|
||||
@@ -1020,7 +1025,7 @@ function drawFilesList($rows)
|
||||
echo '</td>';
|
||||
}
|
||||
echo'<td style="padding: 1px;">';
|
||||
|
||||
|
||||
//Upload einer neuen Version
|
||||
echo '<ul class="sf-menu">
|
||||
<li><a href="#" style="font-size:small">Erweitert</a>
|
||||
@@ -1058,7 +1063,7 @@ function drawFilesList($rows)
|
||||
}
|
||||
if($rechte->isberechtigt('basis/dms',null, 'suid', null))
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'&dms_id='.$row->dms_id.'&delete" onclick="return conf_del()" style="font-size:small" >Löschen</a></li>';
|
||||
|
||||
|
||||
}
|
||||
echo '
|
||||
</ul>
|
||||
@@ -1068,9 +1073,9 @@ function drawFilesList($rows)
|
||||
echo '<td style="padding: 1px;">'.$row->dms_id.'</td>';
|
||||
echo '<td style="padding: 1px;">'.$dms->convert_html_chars($row->beschreibung).'</td>';
|
||||
echo '</tr>';
|
||||
|
||||
|
||||
}
|
||||
echo '
|
||||
echo '
|
||||
</tbody></table>';
|
||||
$suche = false;
|
||||
}
|
||||
@@ -1083,7 +1088,7 @@ function drawFilesList($rows)
|
||||
function drawRenameForm($dms_id, $version, $page = NULL, $dpp = NULL, $searching, $searchstring)
|
||||
{
|
||||
global $kategorie_kurzbz;
|
||||
|
||||
|
||||
$dms = new dms();
|
||||
if($dms->load($dms_id, $version))
|
||||
{
|
||||
@@ -1091,7 +1096,7 @@ function drawRenameForm($dms_id, $version, $page = NULL, $dpp = NULL, $searching
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
@@ -1125,15 +1130,15 @@ function drawRenameForm($dms_id, $version, $page = NULL, $dpp = NULL, $searching
|
||||
function drawChangeKategorie($dms_id, $page = NULL, $dpp = NULL) {
|
||||
$dms = new dms;
|
||||
$dms->load($dms_id);
|
||||
|
||||
|
||||
$allKategorien = new dms();
|
||||
$allKategorien->getAllKategories();
|
||||
|
||||
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?chkatID='.$dms_id.'&searching=true&searchstring='.$_REQUEST['searchstring']; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?chkatID='.$dms_id.'&kategorie_kurzbz='.$dms->kategorie_kurzbz; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
@@ -1145,10 +1150,10 @@ function drawChangeKategorie($dms_id, $page = NULL, $dpp = NULL) {
|
||||
$selected ='';
|
||||
if($kategorienResult->kategorie_kurzbz == $dms->kategorie_kurzbz)
|
||||
$selected='selected';
|
||||
|
||||
|
||||
echo '<option '.$selected.' value="'.$kategorienResult->kategorie_kurzbz.'">'.$kategorienResult->bezeichnung.' ['.$kategorienResult->kategorie_kurzbz.']</option>';
|
||||
}
|
||||
|
||||
|
||||
echo '</select>
|
||||
<input type="hidden" name="action" value="chkat">
|
||||
<input type="hidden" name="dms_id" value="'.$dms_id.'">';
|
||||
@@ -1159,4 +1164,4 @@ function drawChangeKategorie($dms_id, $page = NULL, $dpp = NULL) {
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
+92
-6
@@ -87,11 +87,90 @@
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "jquery/jquery1.9",
|
||||
"version": "1.9.0",
|
||||
"name": "jquery/jqueryV1",
|
||||
"version": "1.12.4",
|
||||
"dist": {
|
||||
"type": "file",
|
||||
"url": "https://code.jquery.com/jquery-1.9.0.min.js"
|
||||
"url": "https://code.jquery.com/jquery-1.12.4.min.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "fgelinas/timepicker",
|
||||
"version": "0.3.3",
|
||||
"dist": {
|
||||
"url": "https://fgelinas.com/code/timepicker/releases/jquery-ui-timepicker-0.3.3.zip",
|
||||
"type": "zip"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "alvaro-prieto/colResizable",
|
||||
"version": "1.6",
|
||||
"dist": {
|
||||
"url": "https://github.com/alvaro-prieto/colResizable/archive/1.6.zip",
|
||||
"type": "zip"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "tapmodo/Jcrop",
|
||||
"version": "2.0.4",
|
||||
"dist": {
|
||||
"url": "https://github.com/tapmodo/Jcrop/archive/v2.0.4.zip",
|
||||
"type": "zip"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "jquery-archive/jquery-metadata",
|
||||
"version": "1.0",
|
||||
"source": {
|
||||
"url": "https://github.com/jquery-archive/jquery-metadata.git",
|
||||
"type": "git",
|
||||
"reference": "e5a9e4315675bf4d68716872ca754e858088f8ab"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "tomazdragar/SimpleCropper",
|
||||
"version": "1.0",
|
||||
"source": {
|
||||
"url": "https://github.com/tomazdragar/SimpleCropper.git",
|
||||
"type": "git",
|
||||
"reference": "9750b81fa55ed07b3b429297d18ffbeac07a2cde"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "joeldbirch/superfish",
|
||||
"version": "1.7.9",
|
||||
"dist": {
|
||||
"url": "https://github.com/joeldbirch/superfish/archive/v1.7.9.zip",
|
||||
"type": "zip"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "jquery/sizzle",
|
||||
"version": "1.0",
|
||||
"dist": {
|
||||
"url": "https://github.com/jquery/sizzle/archive/1.0.0.zip",
|
||||
"type": "zip"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,7 +186,7 @@
|
||||
"rougin/combustor": "1.1.*",
|
||||
"rougin/refinery": "*",
|
||||
"components/jquery": "2.1.4",
|
||||
"components/jqueryui": "1.12.*",
|
||||
"components/jqueryui": "^1.12",
|
||||
"components/angular.js": "1.3.16",
|
||||
"components/bootstrap": "3.3.5",
|
||||
"michelf/php-markdown": "1.5.0",
|
||||
@@ -120,10 +199,17 @@
|
||||
"wikimedia/composer-merge-plugin": "^1.3",
|
||||
"fzaninotto/faker": "1.*",
|
||||
"netcarver/textile": "^3.5",
|
||||
"netcarver/textile": "^3.5",
|
||||
"borgar/textile-js": "1.0",
|
||||
"rmariuzzo/jquery-checkboxes": "1.0.7",
|
||||
"jquery/jquery1.9": "1.9.0"
|
||||
"christianbach/tablesorter": "^1.0",
|
||||
"jquery/jqueryV1": "^1.12",
|
||||
"fgelinas/timepicker": "^0.3.3",
|
||||
"components/jquery-cookie": "1.4.1.2",
|
||||
"alvaro-prieto/colResizable": "^1.6",
|
||||
"tapmodo/Jcrop": "^2.0",
|
||||
"joeldbirch/superfish": "^1.7",
|
||||
"jquery/sizzle": "^1.0",
|
||||
"tomazdragar/SimpleCropper": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"squizlabs/php_codesniffer": "2.*"
|
||||
|
||||
Generated
+576
-231
File diff suppressed because it is too large
Load Diff
@@ -186,6 +186,7 @@ define('VILESCI_PERSON_NEU_STUDIENSEMESTER_WINTERONLY',false);
|
||||
|
||||
// Anzeigeoptionen für den Studienplan im CIS
|
||||
define('CIS_STUDIENPLAN_SEMESTER_ANZEIGEN', false);
|
||||
define('CIS_STUDIENPLAN_LVPLANLINK_ANZEIGEN',true);
|
||||
|
||||
//Legt fest ob ein User zu einer LV angemeldet sein muss um Detailinformationen abrufen zu können. (true|false)
|
||||
define('CIS_LEHRVERANSTALTUNG_WENNANGEMELDET_DETAILS_ANZEIGEN', false);
|
||||
|
||||
+2
-2
@@ -686,7 +686,7 @@ foreach($addon_obj->result as $addon)
|
||||
label = "&menu-dokumente-pruefungsprotokoll2_englisch.label;"
|
||||
command = "menu-dokumente-pruefungsprotokoll2_englisch:command"
|
||||
accesskey = "&menu-dokumente-pruefungsprotokoll2_englisch.accesskey;"/>
|
||||
<menuitem
|
||||
<!--<menuitem
|
||||
id = "menu-dokumente-pruefungszeugnis"
|
||||
key = "menu-dokumente-pruefungszeugnis:key"
|
||||
label = "&menu-dokumente-pruefungszeugnis.label;"
|
||||
@@ -697,7 +697,7 @@ foreach($addon_obj->result as $addon)
|
||||
key = "menu-dokumente-pruefungszeugnis_englisch:key"
|
||||
label = "&menu-dokumente-pruefungszeugnis_englisch.label;"
|
||||
command = "menu-dokumente-pruefungszeugnis_englisch:command"
|
||||
accesskey = "&menu-dokumente-pruefungszeugnis_englisch.accesskey;"/>
|
||||
accesskey = "&menu-dokumente-pruefungszeugnis_englisch.accesskey;"/>-->
|
||||
<menuitem
|
||||
id = "menu-dokumente-urkunde_deutsch"
|
||||
key = "menu-dokumente-urkunde_deutsch:key"
|
||||
|
||||
@@ -52,7 +52,12 @@ echo '<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../skin/fhcomplete.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css" />
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<title>Studierende ZGV Statistik</title>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
|
||||
@@ -56,7 +56,12 @@ $html.= '<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../skin/fhcomplete.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css" />
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<title>DropOut Statistik</title>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
|
||||
@@ -52,7 +52,12 @@ echo '<!DOCTYPE html>
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../skin/fhcomplete.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css" />
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css">
|
||||
<script type="text/javascript" src="../../vendor/jquery/jqueryV1/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/christianbach/tablesorter/jquery.tablesorter.min.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/components/jqueryui/jquery-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.ui.datepicker.translation.js"></script>
|
||||
<script type="text/javascript" src="../../vendor/jquery/sizzle/sizzle.js"></script>
|
||||
<title>DropOut ZGV Statistik</title>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
|
||||
@@ -44,13 +44,12 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<menuitem label="Entfernen" oncommand="StudentAbschlusspruefungLoeschen();" id="student-abschlusspruefung-tree-popup-delete" hidden="false"/>
|
||||
<menu id="student-abschlusspruefung-tree-popup-dokumente" label="Dokumente">
|
||||
<menupopup id="menu-file-popup">
|
||||
<menuitem label="Pruefungsprotokoll (Alte Version)" oncommand="StudentAbschlusspruefungPrintPruefungsprotokoll('de')"/>
|
||||
<menuitem label="Pruefungsprotokoll Englisch (Alte Version)" oncommand="StudentAbschlusspruefungPrintPruefungsprotokoll('en')"/>
|
||||
<menuitem label="Pruefungsprotokoll 2 (Neue Version)" oncommand="StudentAbschlusspruefungPrintPruefungsprotokoll('de2')"/>
|
||||
<menuitem label="Pruefungsprotokoll Englisch 2 (Neue Version)" oncommand="StudentAbschlusspruefungPrintPruefungsprotokoll('en2')"/>
|
||||
<menuitem label="Pruefungszeugnis" oncommand="StudentAbschlusspruefungPrintPruefungszeugnis()"/>
|
||||
<menuitem label="Urkunde" oncommand="StudentAbschlusspruefungPrintUrkunde('deutsch')"/>
|
||||
<menuitem label="Urkunde Englisch" oncommand="StudentAbschlusspruefungPrintUrkunde('englisch')"/>
|
||||
<menuitem label="Pruefungsprotokoll Deutsch" oncommand="StudentAbschlusspruefungPrintPruefungsprotokollMultiple(event,'de2')"/>
|
||||
<menuitem label="Pruefungsprotokoll Englisch" oncommand="StudentAbschlusspruefungPrintPruefungsprotokollMultiple(event,'en2')"/>
|
||||
<menuitem label="Pruefungszeugnis Deutsch" oncommand="StudentAbschlusspruefungPrintPruefungszeugnisMultiple(event,'deutsch')"/>
|
||||
<menuitem label="Pruefungszeugnis Englisch" oncommand="StudentAbschlusspruefungPrintPruefungszeugnisMultiple(event,'englisch')"/>
|
||||
<menuitem label="Urkunde Deutsch" oncommand="StudentAbschlusspruefungPrintUrkundeMultiple(event, 'deutsch')"/>
|
||||
<menuitem label="Urkunde Englisch" oncommand="StudentAbschlusspruefungPrintUrkundeMultiple(event, 'englisch')"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
</menupopup>
|
||||
|
||||
@@ -73,7 +73,7 @@ else
|
||||
<popupset>
|
||||
<menupopup id="student-tree-popup" onpopupshown="">
|
||||
<menuitem label="Student aus dieser Gruppe entfernen" oncommand="StudentGruppeDel();" id="student-tree-popup-gruppedel" hidden="false"/>
|
||||
<menuitem label="EMail senden (intern)" oncommand="StudentSendMail();" id="student-tree-popup-mail" hidden="false"/>
|
||||
<menuitem label="EMail senden (intern)" oncommand="StudentSendMail(event);" id="student-tree-popup-mail" hidden="false" tooltiptext="STRG-Taste fuer BCC" />
|
||||
<menuitem label="EMail senden (privat)" oncommand="StudentSendMailPrivat();" id="student-tree-popup-mailprivat" hidden="false"/>
|
||||
<menuseparator />
|
||||
<menuitem label="Personendetails anzeigen" oncommand="StudentShowPersonendetails();" id="student-tree-popup-personendetails" hidden="false"/>
|
||||
|
||||
@@ -4987,7 +4987,7 @@ function StudentSearchFieldKeyPress(event)
|
||||
// ****
|
||||
// * Email an die markierten Studenten versenden
|
||||
// ****
|
||||
function StudentSendMail()
|
||||
function StudentSendMail(event)
|
||||
{
|
||||
mailempfaenger='';
|
||||
var tree=document.getElementById('student-tree');
|
||||
@@ -5018,7 +5018,12 @@ function StudentSendMail()
|
||||
if(anzfault!=0)
|
||||
alert(anzfault+' Student(en) konnten nicht hinzugefuegt werden weil keine UID eingetragen ist!');
|
||||
if(mailempfaenger!='')
|
||||
splitmailto(mailempfaenger,'to');
|
||||
{
|
||||
if (event.ctrlKey)
|
||||
splitmailto(mailempfaenger,'bcc');
|
||||
else
|
||||
splitmailto(mailempfaenger,'to');
|
||||
}
|
||||
}
|
||||
|
||||
// ****
|
||||
|
||||
+657
-657
File diff suppressed because it is too large
Load Diff
Vendored
-7
File diff suppressed because one or more lines are too long
Vendored
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user