mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 23:42:17 +00:00
Merge branch 'master' of https://github.com/FH-Complete/FHC-Core
This commit is contained in:
@@ -8,6 +8,9 @@ class Phrases extends FHC_Controller
|
||||
{
|
||||
parent::__construct();
|
||||
$this->load->library('PhrasesLib');
|
||||
|
||||
// Loads helper message to manage returning messages
|
||||
$this->load->helper('message');
|
||||
}
|
||||
|
||||
public function index()
|
||||
@@ -105,20 +108,39 @@ class Phrases extends FHC_Controller
|
||||
public function newText()
|
||||
{
|
||||
$phrase_id = $this->input->post('phrase_id');
|
||||
$data = array
|
||||
(
|
||||
'phrase_id' => $phrase_id,
|
||||
'sprache' => 'German',
|
||||
'text' => '',
|
||||
'description' => '',
|
||||
'orgeinheit_kurzbz' => 'etw'
|
||||
);
|
||||
$phrase_inhalt = $this->phraseslib->insertPhraseinhalt($data);
|
||||
if ($phrase_inhalt->error)
|
||||
show_error($phrase_inhalt->retval);
|
||||
$phrase_inhalt_id = $phrase_inhalt->retval;
|
||||
|
||||
redirect('/system/Phrases/editText/'.$phrase_inhalt_id);
|
||||
|
||||
$this->load->model('organisation/Organisationseinheit_model', 'OrganisationseinheitModel');
|
||||
$this->OrganisationseinheitModel->addLimit(1);
|
||||
$this->OrganisationseinheitModel->addOrder('oe_kurzbz');
|
||||
$resultOE = $this->OrganisationseinheitModel->loadWhere(array('aktiv' => true, 'oe_parent_kurzbz' => null));
|
||||
|
||||
if ($resultOE->error)
|
||||
show_error($resultOE->retval);
|
||||
|
||||
if (hasData($resultOE))
|
||||
{
|
||||
$orgeinheit_kurzbz = $resultOE->retval[0]->oe_kurzbz;
|
||||
|
||||
$data = array (
|
||||
'phrase_id' => $phrase_id,
|
||||
'sprache' => 'German',
|
||||
'text' => '',
|
||||
'description' => '',
|
||||
'orgeinheit_kurzbz' => $orgeinheit_kurzbz
|
||||
);
|
||||
|
||||
$phrase_inhalt = $this->phraseslib->insertPhraseinhalt($data);
|
||||
if ($phrase_inhalt->error)
|
||||
show_error($phrase_inhalt->retval);
|
||||
|
||||
$phrase_inhalt_id = $phrase_inhalt->retval;
|
||||
|
||||
redirect('/system/Phrases/editText/'.$phrase_inhalt_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
show_error('No valid organisation unit found');
|
||||
}
|
||||
}
|
||||
|
||||
public function editText($phrasentext_id)
|
||||
|
||||
@@ -98,20 +98,39 @@ class Templates extends FHC_Controller
|
||||
|
||||
public function newText()
|
||||
{
|
||||
$vorlage_kurzbz = $this->input->post('vorlage_kurzbz', TRUE);
|
||||
$data = array
|
||||
(
|
||||
'vorlage_kurzbz' => $vorlage_kurzbz,
|
||||
'studiengang_kz' => 0,
|
||||
'version' => 1,
|
||||
'oe_kurzbz' => 'etw'
|
||||
);
|
||||
$vorlagetext = $this->vorlagelib->insertVorlagetext($data);
|
||||
if ($vorlagetext->error)
|
||||
show_error($vorlagetext->retval);
|
||||
$vorlagestudiengang_id = $vorlagetext->retval;
|
||||
|
||||
redirect('/system/Templates/editText/'.$vorlagestudiengang_id);
|
||||
$vorlage_kurzbz = $this->input->post('vorlage_kurzbz', true);
|
||||
|
||||
$this->load->model('organisation/Organisationseinheit_model', 'OrganisationseinheitModel');
|
||||
$this->OrganisationseinheitModel->addLimit(1);
|
||||
$this->OrganisationseinheitModel->addOrder('oe_kurzbz');
|
||||
$resultOE = $this->OrganisationseinheitModel->loadWhere(array('aktiv' => true, 'oe_parent_kurzbz' => null));
|
||||
|
||||
if ($resultOE->error)
|
||||
show_error($resultOE->retval);
|
||||
|
||||
if (hasData($resultOE))
|
||||
{
|
||||
$orgeinheit_kurzbz = $resultOE->retval[0]->oe_kurzbz;
|
||||
|
||||
$data = array (
|
||||
'vorlage_kurzbz' => $vorlage_kurzbz,
|
||||
'studiengang_kz' => 0,
|
||||
'version' => 1,
|
||||
'oe_kurzbz' => $orgeinheit_kurzbz
|
||||
);
|
||||
|
||||
$vorlagetext = $this->vorlagelib->insertVorlagetext($data);
|
||||
if ($vorlagetext->error)
|
||||
show_error($vorlagetext->retval);
|
||||
|
||||
$vorlagestudiengang_id = $vorlagetext->retval;
|
||||
|
||||
redirect('/system/Templates/editText/'.$vorlagestudiengang_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
show_error('No valid organisation unit found');
|
||||
}
|
||||
}
|
||||
|
||||
public function editText($vorlagestudiengang_id)
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
class Users extends VileSci_Controller
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
// Loads helper message to manage returning messages
|
||||
$this->load->helper('message');
|
||||
|
||||
// Load the library to use the widgets
|
||||
$this->load->library('TemplateLib');
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$studiengang = $this->input->post('studiengang');
|
||||
$studiensemester = $this->input->post('studiensemester');
|
||||
$gruppe = $this->input->post('gruppe');
|
||||
$reihungstest = $this->input->post('reihungstest');
|
||||
$stufe = $this->input->post('stufe');
|
||||
|
||||
$returnUsers = null;
|
||||
if ($studiengang != null || $studiensemester != null || $gruppe!= null
|
||||
|| $reihungstest != null || $stufe != null)
|
||||
{
|
||||
$returnUsers = $this->_getUsers($studiengang, $studiensemester, $gruppe, $reihungstest, $stufe);
|
||||
}
|
||||
|
||||
$users = null;
|
||||
if (hasData($returnUsers))
|
||||
{
|
||||
$users = $returnUsers->retval;
|
||||
}
|
||||
|
||||
if ($returnUsers == null || isSuccess($returnUsers))
|
||||
{
|
||||
$viewData = array(
|
||||
'studiengang' => $studiengang,
|
||||
'studiensemester' => $studiensemester,
|
||||
'gruppe' => $gruppe,
|
||||
'reihungstest' => $reihungstest,
|
||||
'stufe' => $stufe,
|
||||
'users' => $users
|
||||
);
|
||||
|
||||
$this->load->view('system/users', $viewData);
|
||||
}
|
||||
else if (isError($returnUsers))
|
||||
{
|
||||
show_error($returnUsers->retval);
|
||||
}
|
||||
}
|
||||
|
||||
public function linkToStufe()
|
||||
{
|
||||
$prestudentIdArray = $this->input->post('prestudent_id');
|
||||
$stufe = $this->input->post('stufe');
|
||||
|
||||
// Load model PrestudentstatusModel
|
||||
$this->load->model('crm/Prestudentstatus_model', 'PrestudentstatusModel');
|
||||
|
||||
$result = $this->PrestudentstatusModel->updateStufe($prestudentIdArray, $stufe);
|
||||
|
||||
if (isSuccess($result))
|
||||
{
|
||||
echo "Tutto ok!";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Kaputt!";
|
||||
}
|
||||
}
|
||||
|
||||
public function linkToAufnahmegruppe()
|
||||
{
|
||||
$prestudentIdArray = $this->input->post('prestudent_id');
|
||||
$aufnahmegruppe = $this->input->post('aufnahmegruppe');
|
||||
|
||||
// Load model PrestudentstatusModel
|
||||
$this->load->model('crm/Prestudent_model', 'PrestudentModel');
|
||||
|
||||
$result = $this->PrestudentModel->updateAufnahmegruppe($prestudentIdArray, $aufnahmegruppe);
|
||||
|
||||
if (isSuccess($result))
|
||||
{
|
||||
echo "Tutto ok!";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Kaputt!";
|
||||
}
|
||||
}
|
||||
|
||||
private function _getUsers($studiengang, $studiensemester, $gruppe, $reihungstest, $stufe)
|
||||
{
|
||||
// Load model prestudentm_model
|
||||
$this->load->model('crm/Prestudent_model', 'PrestudentModel');
|
||||
|
||||
$this->PrestudentModel->addSelect(
|
||||
'DISTINCT ON(p.person_id, prestudent_id) p.person_id,
|
||||
prestudent_id,
|
||||
p.nachname,
|
||||
p.vorname,
|
||||
p.geschlecht,
|
||||
p.gebdatum,
|
||||
k.kontakt AS email,
|
||||
sg.kurzbzlang,
|
||||
sg.bezeichnung,
|
||||
sg.orgform_kurzbz,
|
||||
sgt.bezeichnung AS typ,
|
||||
ps.rt_stufe,
|
||||
rtp.punkte'
|
||||
);
|
||||
|
||||
$this->PrestudentModel->addJoin('public.tbl_rt_person rtp', 'person_id');
|
||||
$this->PrestudentModel->addJoin('public.tbl_person p', 'person_id', 'LEFT');
|
||||
$this->PrestudentModel->addJoin(
|
||||
'(
|
||||
SELECT person_id,
|
||||
kontakt
|
||||
FROM public.tbl_kontakt
|
||||
WHERE zustellung = TRUE
|
||||
AND kontakttyp = \'email\'
|
||||
ORDER BY kontakt_id DESC
|
||||
) k',
|
||||
'person_id',
|
||||
'LEFT'
|
||||
);
|
||||
$this->PrestudentModel->addJoin('public.tbl_prestudentstatus ps', 'prestudent_id');
|
||||
$this->PrestudentModel->addJoin('lehre.tbl_studienplan s', 's.studienplan_id = ps.studienplan_id');
|
||||
$this->PrestudentModel->addJoin('lehre.tbl_studienordnung so', 'studienordnung_id');
|
||||
$this->PrestudentModel->addJoin('public.tbl_studiengang sg', 'sg.studiengang_kz = so.studiengang_kz');
|
||||
$this->PrestudentModel->addJoin('public.tbl_studiengangstyp sgt', 'typ');
|
||||
|
||||
$this->PrestudentModel->addOrder('p.person_id', 'ASC');
|
||||
$this->PrestudentModel->addOrder('prestudent_id', 'ASC');
|
||||
|
||||
$parametersArray = array('p.aktiv' => true, 'ps.status_kurzbz' => 'Interessent');
|
||||
|
||||
if ($studiengang != null && $studiengang != '-1')
|
||||
{
|
||||
$parametersArray['sg.studiengang_kz'] = $studiengang;
|
||||
}
|
||||
|
||||
if ($studiensemester != null && $studiensemester != '-1')
|
||||
{
|
||||
$parametersArray['ps.studiensemester_kurzbz'] = $studiensemester;
|
||||
}
|
||||
|
||||
if ($gruppe != null && $gruppe != '-1')
|
||||
{
|
||||
$parametersArray['aufnahmegruppe_kurzbz'] = $gruppe;
|
||||
}
|
||||
|
||||
if ($reihungstest != null && $reihungstest != '-1')
|
||||
{
|
||||
$parametersArray['rtp.rt_id'] = $reihungstest;
|
||||
}
|
||||
|
||||
if ($stufe != null && $stufe != '-1')
|
||||
{
|
||||
$parametersArray['ps.rt_stufe'] = $stufe;
|
||||
}
|
||||
|
||||
return $this->PrestudentModel->loadWhere($parametersArray);
|
||||
}
|
||||
}
|
||||
@@ -2,13 +2,14 @@
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
|
||||
|
||||
class Migration_fhc30 extends CI_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
echo '<br/><h1>Update to FHC 3.0</h1><br/>';
|
||||
$this->db=$this->load->database('system', true);
|
||||
$this->load->helper('fhcdb');
|
||||
$db = new basis_db($this);
|
||||
require_once('./system/dbupdate_3.0.php');
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
|
||||
|
||||
class Migration_fhc31 extends CI_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
echo '<br/><h1>Update to FHC 3.1</h1><br/>';
|
||||
$this->db=$this->load->database('system', true);
|
||||
$this->load->helper('fhcdb');
|
||||
$db = new basis_db($this);
|
||||
require_once('./system/dbupdate_3.1.php');
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
|
||||
|
||||
class Migration_fhc32 extends CI_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
echo '<br/><h1>Update to FHC 3.2</h1><br/>';
|
||||
$this->db=$this->load->database('system', true);
|
||||
$this->load->helper('fhcdb');
|
||||
$db = new basis_db($this);
|
||||
require_once('./system/dbupdate_3.2.php');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
require_once(dirname(__FILE__).'/../../include/basis_db.class.php');
|
||||
|
||||
class Migration_fhc33 extends CI_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
echo '<br/><h1>Update to FHC 3.3</h1><br/>';
|
||||
$this->db=$this->load->database('system', true);
|
||||
$db = new basis_db($this);
|
||||
require_once('./system/dbupdate_3.3.php');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
/*$this->db->simple_query('DROP SCHEMA bis;');
|
||||
$this->db->simple_query('DROP SCHEMA campus;');
|
||||
$this->db->simple_query('DROP SCHEMA fue;');
|
||||
$this->db->simple_query('DROP SCHEMA kommune;');
|
||||
$this->db->simple_query('DROP SCHEMA lehre;');
|
||||
$this->db->simple_query('DROP SCHEMA sync;');
|
||||
$this->db->simple_query('DROP SCHEMA system;');
|
||||
$this->db->simple_query('DROP SCHEMA testtool;');
|
||||
$this->db->simple_query('DROP SCHEMA wawi;');*/
|
||||
}
|
||||
}
|
||||
@@ -58,4 +58,20 @@ class Prestudent_model extends DB_Model
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function updateAufnahmegruppe($prestudentIdArray, $aufnahmegruppe)
|
||||
{
|
||||
return $this->execQuery(
|
||||
'UPDATE public.tbl_prestudent
|
||||
SET aufnahmegruppe_kurzbz = ?
|
||||
WHERE prestudent_id IN ?',
|
||||
array(
|
||||
$aufnahmegruppe,
|
||||
$prestudentIdArray
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -51,4 +51,21 @@ class Prestudentstatus_model extends DB_Model
|
||||
|
||||
return $this->execQuery($query, $parametersArray);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function updateStufe($prestudentIdArray, $stufe)
|
||||
{
|
||||
return $this->execQuery(
|
||||
'UPDATE public.tbl_prestudentstatus
|
||||
SET rt_stufe = ?
|
||||
WHERE status_kurzbz = \'Interessent\'
|
||||
AND prestudent_id IN ?',
|
||||
array(
|
||||
$stufe,
|
||||
$prestudentIdArray
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -263,7 +263,7 @@ class Studiengang_model extends DB_Model
|
||||
'tbl_studiengang',
|
||||
array('tbl_reihungstest'),
|
||||
'tbl_prestudentstatus.status_kurzbz = \'Interessent\'
|
||||
AND (tbl_prestudentstatus.rt_stufe = tbl_reihungstest.stufe OR tbl_reihungstest.stufe IS NULL)
|
||||
AND (tbl_prestudentstatus.rt_stufe >= tbl_reihungstest.stufe OR tbl_reihungstest.stufe IS NULL)
|
||||
AND (tbl_prestudent.aufnahmegruppe_kurzbz = tbl_reihungstest.aufnahmegruppe_kurzbz OR tbl_reihungstest.aufnahmegruppe_kurzbz IS NULL)
|
||||
AND (tbl_prestudentstatus.studienplan_id = tbl_reihungstest.studienplan_id OR tbl_reihungstest.studienplan_id IS NULL)
|
||||
AND tbl_reihungstest.oeffentlich = TRUE
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
<body>
|
||||
<?php
|
||||
$href = str_replace("/system/Messages/write", "/system/Messages/send", $_SERVER["REQUEST_URI"]);
|
||||
$href = substr($href, 0, strrpos($href, '?'));
|
||||
?>
|
||||
<form id="sendForm" method="post" action="<?php echo $href; ?>">
|
||||
|
||||
@@ -23,7 +22,7 @@
|
||||
}
|
||||
?>
|
||||
<br>
|
||||
Subject: <input type="text" value="" name="subject" size="70"><br/>
|
||||
Subject: <input id="subject" type="text" value="" name="subject" size="70"><br/>
|
||||
<textarea id="bodyTextArea" name="body"></textarea>
|
||||
<?php
|
||||
if (isset($variables))
|
||||
@@ -49,7 +48,7 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<button type="submit">Send</button>
|
||||
<button id="sendButton" type="button">Send</button>
|
||||
|
||||
<?php echo $this->templatelib->widget("Vorlage_widget", array("title" => "Vorlage")); ?>
|
||||
</div>
|
||||
@@ -130,6 +129,20 @@
|
||||
{
|
||||
$("#refresh").click(tinymcePreviewSetContent);
|
||||
}
|
||||
|
||||
if ($("#sendButton") && $("#sendForm"))
|
||||
{
|
||||
$("#sendButton").click(function() {
|
||||
if ($("#subject") && $("#subject").val() != '' && tinyMCE.get("bodyTextArea").getContent() != '')
|
||||
{
|
||||
$("#sendForm").submit();
|
||||
}
|
||||
else
|
||||
{
|
||||
alert("Subject and text are required fields!");
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function tinymcePreviewSetContent()
|
||||
@@ -166,5 +179,24 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getVorlageText(vorlage_kurzbz)
|
||||
{
|
||||
<?php
|
||||
$url = str_replace("/system/Messages/write", "/system/Messages/getVorlage", $_SERVER["REQUEST_URI"]);
|
||||
?>
|
||||
|
||||
$.ajax({
|
||||
dataType: "json",
|
||||
url: "<?php echo $url; ?>",
|
||||
data: {"vorlage_kurzbz": vorlage_kurzbz},
|
||||
success: function(data, textStatus, jqXHR) {
|
||||
tinyMCE.get("bodyTextArea").setContent(data.retval[0].text);
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown) {
|
||||
alert(textStatus + " - " + errorThrown);
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php $this->load->view("templates/header", array("title" => "MessageReply", "jquery" => true, "tinymce" => true)); ?>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<form id="usersFiltersForm" action="" method="post">
|
||||
<?php
|
||||
echo $this->templatelib->widget(
|
||||
'Usersfilters_widget',
|
||||
array(
|
||||
'studiengang' => $studiengang,
|
||||
'studiensemester' => $studiensemester,
|
||||
'gruppe' => $gruppe,
|
||||
'reihungstest' => $reihungstest,
|
||||
'stufe' => $stufe
|
||||
)
|
||||
);
|
||||
?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<form id="linkUsersForm" action="" method="post">
|
||||
<div>
|
||||
Stufe: <input type="text" name="stufe" value=""> <button type="button" id="linkToStufe">To step</button>
|
||||
</div>
|
||||
<div>
|
||||
Gruppe: <input type="text" name="aufnahmegruppe" value=""> <button type="button" id="linkToGruppe">To group</button>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if ($users != null)
|
||||
{
|
||||
for ($i = 0; $i < count($users); $i++)
|
||||
{
|
||||
$user = $users[$i];
|
||||
|
||||
echo '<input type="checkbox" name="prestudent_id[]" value="' . $user->prestudent_id . '"> - ';
|
||||
echo $user->prestudent_id . ' - ';
|
||||
echo $user->vorname . ' - ';
|
||||
echo $user->nachname;
|
||||
echo '<br>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'No data found!!!';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$hrefLinkToStufe = str_replace("/system/Users", "/system/Users/linkToStufe", $_SERVER["REQUEST_URI"]);
|
||||
$hrefLinkToAufnahmegruppe = str_replace("/system/Users", "/system/Users/linkToAufnahmegruppe", $_SERVER["REQUEST_URI"]);
|
||||
?>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
if ($("#linkToStufe"))
|
||||
{
|
||||
$("#linkToStufe").click(function() {
|
||||
if ($("#linkUsersForm"))
|
||||
{
|
||||
$("#linkUsersForm").attr("action", "<?php echo $hrefLinkToStufe; ?>");
|
||||
$("#linkUsersForm").submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if ($("#linkToGruppe"))
|
||||
{
|
||||
$("#linkToGruppe").click(function() {
|
||||
if ($("#linkUsersForm"))
|
||||
{
|
||||
$("#linkUsersForm").attr("action", "<?php echo $hrefLinkToAufnahmegruppe; ?>");
|
||||
$("#linkUsersForm").submit();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function studiengangSelected(value)
|
||||
{
|
||||
submitUsersFiltersForm();
|
||||
}
|
||||
|
||||
function studiensemesterSelected(value)
|
||||
{
|
||||
submitUsersFiltersForm();
|
||||
}
|
||||
|
||||
function reihungstestSelected(value)
|
||||
{
|
||||
submitUsersFiltersForm();
|
||||
}
|
||||
|
||||
function gruppeSelected(value)
|
||||
{
|
||||
submitUsersFiltersForm();
|
||||
}
|
||||
|
||||
function stufeSelected(value)
|
||||
{
|
||||
submitUsersFiltersForm();
|
||||
}
|
||||
|
||||
function submitUsersFiltersForm()
|
||||
{
|
||||
document.getElementById("usersFiltersForm").submit();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
<?php $this->load->view("templates/footer"); ?>
|
||||
@@ -15,22 +15,19 @@ isset($title) ? $title = 'VileSci - '.$title : $title = 'VileSci';
|
||||
if ($tablesort)
|
||||
$jquery = true;
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $title; ?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="shortcut icon" href="<?php echo base_url('skin/images/Vilesci.ico'); ?>" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo base_url('skin/vilesci.css'); ?>" type="text/css" />
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="<?php echo base_url('skin/images/Vilesci.ico'); ?>" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url('skin/vilesci.css'); ?>" />
|
||||
<?php if($tablesort) : ?>
|
||||
<link href="<?php echo base_url('skin/tablesort.css'); ?>" rel="stylesheet" type="text/css"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url('skin/tablesort.css'); ?>" />
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($jquery) : ?>
|
||||
<script src="<?php echo base_url('include/js/jquery1.9.min.js'); ?>" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url('include/js/jquery1.9.min.js'); ?>"></script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($tablesort && !empty($tableid)) : ?>
|
||||
<script language="Javascript" type="text/javascript">
|
||||
$(document).ready(function()
|
||||
@@ -44,23 +41,18 @@ if ($tablesort)
|
||||
});
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($tinymce) : ?>
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/tinymce/tinymce/tinymce.min.js');?>"></script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($textile) : ?>
|
||||
<script type="text/javascript" src="<?php echo base_url('include/js/textile.min.js');?>"></script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($jsoneditor) : ?>
|
||||
<link href="<?php echo base_url('vendor/jsoneditor/dist/jsoneditor.css');?>" rel="stylesheet" type="text/css">
|
||||
<script src="<?php echo base_url('vendor/jsoneditor/dist/jsoneditor.js');?>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url('vendor/jsoneditor/dist/jsoneditor.css');?>" />
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/jsoneditor/dist/jsoneditor.js');?>"></script>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if($jsonforms) : ?>
|
||||
<link rel="stylesheet" href="<?php echo base_url('vendor/json-forms/dist/css/brutusin-json-forms.min.css'); ?>"/>
|
||||
<script src="<?php echo base_url('vendor/json-forms/dist/js/brutusin-json-forms.min.js'); ?>"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url('vendor/json-forms/dist/css/brutusin-json-forms.min.css'); ?>" />
|
||||
<script type="text/javascript" src="<?php echo base_url('vendor/json-forms/dist/js/brutusin-json-forms.min.js'); ?>"></script>
|
||||
<?php endif ?>
|
||||
|
||||
</head>
|
||||
</head>
|
||||
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
if (isset($errors) && is_array($errors) && count($errors) > 0)
|
||||
{
|
||||
?>
|
||||
<div class="errors">
|
||||
<?php foreach($errors as $e): ?>
|
||||
<?php echo $e->retval; ?><br>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<div>
|
||||
<select id="studiengang" name="studiengang">
|
||||
<?php foreach($studiengaenge as $v): ?>
|
||||
<?php
|
||||
$selected = '';
|
||||
if ($v->studiengang_kz == $selectedStudiengang)
|
||||
{
|
||||
$selected = 'selected';
|
||||
}
|
||||
?>
|
||||
<option value="<?php echo $v->studiengang_kz; ?>" <?php echo $selected; ?> onClick="studiengangSelected(this.value)">
|
||||
<?php
|
||||
if ($v->studiengang_kz == '-1')
|
||||
{
|
||||
echo $v->kurzbzlang;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $v->kurzbzlang . ' (' . $v->bezeichnung . ')';
|
||||
}
|
||||
?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
AND
|
||||
<select id="studiensemester" name="studiensemester">
|
||||
<?php foreach($studiensemester as $v): ?>
|
||||
<?php
|
||||
$selected = '';
|
||||
if ($v->studiensemester_kurzbz == $selectedStudiensemester)
|
||||
{
|
||||
$selected = 'selected';
|
||||
}
|
||||
?>
|
||||
<option value="<?php echo $v->studiensemester_kurzbz; ?>" <?php echo $selected; ?> onClick="studiensemesterSelected(this.value)">
|
||||
<?php echo $v->beschreibung; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
->
|
||||
<select id="reihungstest" name="reihungstest">
|
||||
<?php foreach($reihungstest as $v): ?>
|
||||
<?php
|
||||
$selected = '';
|
||||
if ($v->reihungstest_id == $selectedReihungstest)
|
||||
{
|
||||
$selected = 'selected';
|
||||
}
|
||||
?>
|
||||
<option value="<?php echo $v->reihungstest_id; ?>" <?php echo $selected; ?> onClick="reihungstestSelected(this.value)">
|
||||
<?php echo $v->beschreibung; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
AND
|
||||
</div>
|
||||
<div>
|
||||
<select id="gruppe" name="gruppe">
|
||||
<?php foreach($gruppen as $v): ?>
|
||||
<?php
|
||||
$selected = '';
|
||||
if ($v->gruppe_kurzbz == $selectedGruppe)
|
||||
{
|
||||
$selected = 'selected';
|
||||
}
|
||||
?>
|
||||
<option value="<?php echo $v->gruppe_kurzbz; ?>" <?php echo $selected; ?> onClick="gruppeSelected(this.value)">
|
||||
<?php echo $v->beschreibung; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
AND
|
||||
<select id="stufe" name="stufe">
|
||||
<?php foreach($stufen as $v): ?>
|
||||
<?php
|
||||
$selected = '';
|
||||
if ($v->stufe == $selectedStufe)
|
||||
{
|
||||
$selected = 'selected';
|
||||
}
|
||||
?>
|
||||
<option value="<?php echo $v->stufe; ?>" <?php echo $selected; ?> onClick="stufeSelected(this.value)">
|
||||
<?php echo $v->beschreibung; ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,7 +1,16 @@
|
||||
<select name="vorlage">
|
||||
<?php foreach($vorlage as $v): ?>
|
||||
<option value="<?php echo $v->vorlage_kurzbz; ?>" onClick="getVorlageText(this.value)">
|
||||
<?php echo $v->vorlage_kurzbz . (isset($v->bezeichnung) ? " - " . $v->bezeichnung : ""); ?>
|
||||
<?php
|
||||
if ($v->vorlage_kurzbz == '-1')
|
||||
{
|
||||
echo $v->bezeichnung;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $v->vorlage_kurzbz . (isset($v->bezeichnung) ? " - " . $v->bezeichnung : "");
|
||||
}
|
||||
?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
|
||||
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
|
||||
class Usersfilters_widget extends Widget
|
||||
{
|
||||
// Properties containing parameters given by the view
|
||||
private $studiengang;
|
||||
private $studiensemester;
|
||||
private $gruppe;
|
||||
private $reihungstest;
|
||||
private $stufe;
|
||||
|
||||
public function __construct($name, $args)
|
||||
{
|
||||
// Calling daddy
|
||||
parent::__construct($name, $args);
|
||||
|
||||
// Loads helper message to manage returning messages
|
||||
$this->load->helper('message');
|
||||
|
||||
// Initialising properties
|
||||
$this->_setProperties($args);
|
||||
}
|
||||
|
||||
public function display($widgetData)
|
||||
{
|
||||
$errors = array(); // Array containing possible errors
|
||||
|
||||
// Studiengaenge
|
||||
$this->load->model('organisation/Studiengang_model', 'StudiengangModel');
|
||||
$this->StudiengangModel->addOrder('kurzbzlang');
|
||||
$studiengaenge = $this->StudiengangModel->loadWhere(array('aktiv' => true));
|
||||
if (hasData($studiengaenge))
|
||||
{
|
||||
// Adding an empty element at the beginning
|
||||
$emptyElement = new stdClass();
|
||||
$emptyElement->studiengang_kz = '-1';
|
||||
$emptyElement->kurzbzlang = 'Select a studiengang...';
|
||||
$emptyElement->bezeichnung = '';
|
||||
array_unshift($studiengaenge->retval, $emptyElement);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errors[] = $studiengaenge; // Adding the error to the array of errors
|
||||
}
|
||||
|
||||
// Studiensemester
|
||||
$this->load->model('organisation/Studiensemester_model', 'StudiensemesterModel');
|
||||
$this->StudiengangModel->addSelect('studiensemester_kurzbz, studiensemester_kurzbz AS beschreibung');
|
||||
$this->StudiengangModel->addOrder('studiensemester_kurzbz', 'DESC');
|
||||
$studiensemester = $this->StudiensemesterModel->load();
|
||||
if (hasData($studiensemester))
|
||||
{
|
||||
// Adding an empty element at the beginning
|
||||
$emptyElement = new stdClass();
|
||||
$emptyElement->studiensemester_kurzbz = '-1';
|
||||
$emptyElement->beschreibung = 'Select a studiensemester...';
|
||||
array_unshift($studiensemester->retval, $emptyElement);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errors[] = $studiensemester; // Adding the error to the array of errors
|
||||
}
|
||||
|
||||
// Gruppen
|
||||
$this->load->model('organisation/Gruppe_model', 'GruppeModel');
|
||||
$this->GruppeModel->addOrder('beschreibung');
|
||||
$gruppen = $this->GruppeModel->loadWhere(array('aktiv' => true, 'aufnahmegruppe' => true));
|
||||
if (hasData($gruppen))
|
||||
{
|
||||
// Adding an empty element at the beginning
|
||||
$emptyElement = new stdClass();
|
||||
$emptyElement->gruppe_kurzbz = '-1';
|
||||
$emptyElement->beschreibung = 'Select a group...';
|
||||
array_unshift($gruppen->retval, $emptyElement);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errors[] = $gruppen; // Adding the error to the array of errors
|
||||
}
|
||||
|
||||
// Stufe
|
||||
$this->load->model('crm/Reihungstest_model', 'ReihungstestModel');
|
||||
$this->ReihungstestModel->addSelect('DISTINCT ON(stufe) stufe, stufe AS beschreibung');
|
||||
$this->ReihungstestModel->addOrder('stufe');
|
||||
$stufen = $this->ReihungstestModel->loadWhere('stufe IS NOT NULL');
|
||||
if (hasData($stufen))
|
||||
{
|
||||
// Adding an empty element at the beginning
|
||||
$emptyElement = new stdClass();
|
||||
$emptyElement->stufe = '-1';
|
||||
$emptyElement->beschreibung = 'Select a stufe...';
|
||||
array_unshift($stufen->retval, $emptyElement);
|
||||
}
|
||||
else
|
||||
{
|
||||
$errors[] = $stufen; // Adding the error to the array of errors
|
||||
}
|
||||
|
||||
// Reihungstest
|
||||
$reihungstest = success(array()); // default value empty array
|
||||
// If the parameters studiengang or studiensemester are given and are not empty
|
||||
if (($this->studiengang != null && !empty($this->studiengang))
|
||||
|| ($this->studiensemester != null && !empty($this->studiensemester)))
|
||||
{
|
||||
$this->ReihungstestModel->resetQuery(); // cleans any previous setting
|
||||
$this->ReihungstestModel->addSelect('reihungstest_id, concat(datum, \' \', uhrzeit, \' \', anmerkung) AS beschreibung');
|
||||
$this->ReihungstestModel->addOrder('datum', 'DESC');
|
||||
|
||||
$parametersArray = array();
|
||||
if ($this->studiengang != null)
|
||||
{
|
||||
$parametersArray['studiengang_kz'] = $this->studiengang;
|
||||
}
|
||||
if ($this->studiensemester != null)
|
||||
{
|
||||
$parametersArray['studiensemester_kurzbz'] = $this->studiensemester;
|
||||
}
|
||||
|
||||
$reihungstest = $this->ReihungstestModel->loadWhere($parametersArray);
|
||||
if (isError($reihungstest))
|
||||
{
|
||||
$errors[] = $reihungstest; // Adding the error to the array of errors
|
||||
}
|
||||
}
|
||||
|
||||
if (!isError($reihungstest))
|
||||
{
|
||||
// Adding an empty element at the beginning
|
||||
$emptyElement = new stdClass();
|
||||
$emptyElement->reihungstest_id = '-1';
|
||||
$emptyElement->beschreibung = 'Select a reihungstest...';
|
||||
array_unshift($reihungstest->retval, $emptyElement);
|
||||
}
|
||||
|
||||
// Data to be used in the widget view
|
||||
$viewData = array(
|
||||
'studiengaenge' => $studiengaenge->retval,
|
||||
'studiensemester' => $studiensemester->retval,
|
||||
'gruppen' => $gruppen->retval,
|
||||
'stufen' => $stufen->retval,
|
||||
'reihungstest' => $reihungstest->retval,
|
||||
'errors' => $errors,
|
||||
'selectedStudiengang' => $this->studiengang,
|
||||
'selectedStudiensemester' => $this->studiensemester,
|
||||
'selectedGruppe' => $this->gruppe,
|
||||
'selectedReihungstest' => $this->reihungstest,
|
||||
'selectedStufe' => $this->stufe
|
||||
);
|
||||
|
||||
// Loads widget view
|
||||
$this->view('widgets/usersfilters', $viewData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialising properties
|
||||
*/
|
||||
private function _setProperties($args)
|
||||
{
|
||||
if (isset($args) && is_array($args))
|
||||
{
|
||||
if (isset($args['studiengang']) && $args['studiengang'] != '-1')
|
||||
{
|
||||
$this->studiengang = $args['studiengang'];
|
||||
}
|
||||
if (isset($args['studiensemester']) && $args['studiensemester'] != '-1')
|
||||
{
|
||||
$this->studiensemester = $args['studiensemester'];
|
||||
}
|
||||
if (isset($args['gruppe']) && $args['gruppe'] != '-1')
|
||||
{
|
||||
$this->gruppe = $args['gruppe'];
|
||||
}
|
||||
if (isset($args['reihungstest']) && $args['reihungstest'] != '-1')
|
||||
{
|
||||
$this->reihungstest = $args['reihungstest'];
|
||||
}
|
||||
if (isset($args['stufe']) && $args['stufe'] != '-1')
|
||||
{
|
||||
$this->stufe = $args['stufe'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,12 @@ class Vorlage_widget extends Widget
|
||||
|
||||
if (is_object($result) && $result->error == EXIT_SUCCESS)
|
||||
{
|
||||
// Adding an empty element
|
||||
$emptyVorlage = new stdClass();
|
||||
$emptyVorlage->vorlage_kurzbz = '-1';
|
||||
$emptyVorlage->bezeichnung = 'Select a template...';
|
||||
array_unshift($result->retval, $emptyVorlage);
|
||||
|
||||
$data = array("vorlage" => $result->retval);
|
||||
$this->view("widgets/vorlage", $data);
|
||||
}
|
||||
|
||||
+2
-2
@@ -156,10 +156,10 @@ if($redirectPasswordChange)
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
$db = new basis_db();
|
||||
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
?><!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
|
||||
<title>CIS - <?php echo CAMPUS_NAME; ?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="../skin/jquery.css" type="text/css">
|
||||
|
||||
+32
-12
@@ -25,6 +25,12 @@ require_once('../include/functions.inc.php');
|
||||
|
||||
if(isset($_GET['login']))
|
||||
{
|
||||
if((!isset($_SERVER['HTTPS']) || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='off'))
|
||||
&& strstr(APP_ROOT,'https')!==false)
|
||||
{
|
||||
header('Location: '.APP_ROOT.'cis/index_login.php?login=1');
|
||||
exit;
|
||||
}
|
||||
$uid = get_uid();
|
||||
|
||||
if($uid!='')
|
||||
@@ -37,24 +43,38 @@ if(isset($_GET['login']))
|
||||
<html>
|
||||
<head>
|
||||
<title>CIS</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<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">
|
||||
</head>
|
||||
<body>
|
||||
<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td class="rand"></td>
|
||||
<td class="boxshadow">
|
||||
<br><br><br><br><br>
|
||||
<center>
|
||||
<img src="../skin/images/logo.jpg" width="400px" />
|
||||
<br><br><br>
|
||||
Herzlich Willkommen am Campus Informationssystem der Fachhochschule Technikum Wien
|
||||
<br>
|
||||
<br>
|
||||
<form action="index_login.php?login=1" method="POST">
|
||||
<input type="submit" value="Login">
|
||||
</form>
|
||||
</center>
|
||||
<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;">
|
||||
<img class="header_logo" src="../skin/styles/default/logo_250x130.png" alt="logo">
|
||||
<center>
|
||||
<img src="../skin/styles/default/cis_logo_text_400x78.png" width="400px" />
|
||||
<br><br><br>
|
||||
<br>
|
||||
<br>
|
||||
<form action="index_login.php?login=1" method="POST">
|
||||
<input class="cis_login" type="submit" value="Login">
|
||||
</form>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height:10%;" >
|
||||
<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>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="rand"></td>
|
||||
</tr>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
/*******************************************************************************************************
|
||||
* abgabe_lektor
|
||||
* abgabe_lektor ist die Lektorenmaske des Abgabesystems
|
||||
* abgabe_lektor ist die Lektorenmaske des Abgabesystems
|
||||
* fuer Diplom- und Bachelorarbeiten
|
||||
*******************************************************************************************************/
|
||||
|
||||
@@ -40,7 +40,7 @@ if (!$db = new basis_db())
|
||||
$db=false;
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
|
||||
|
||||
$fixtermin=false;
|
||||
|
||||
if(!isset($_POST['uid']))
|
||||
@@ -56,7 +56,7 @@ if(!isset($_POST['uid']))
|
||||
$datum = '';
|
||||
$kurzbz = '';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$uid = (isset($_POST['uid'])?$_POST['uid']:'-1');
|
||||
$projektarbeit_id = (isset($_POST['projektarbeit_id'])?$_POST['projektarbeit_id']:'-1');
|
||||
@@ -100,7 +100,7 @@ if(isset($_GET['id']) && isset($_GET['uid']))
|
||||
{
|
||||
if(!is_numeric($_GET['id']) || $_GET['id']=='')
|
||||
die('Fehler bei Parameteruebergabe');
|
||||
|
||||
|
||||
$file = $_GET['id'].'_'.$_GET['uid'].'.pdf';
|
||||
$filename = PAABGABE_PATH.$file;
|
||||
header('Content-Type: application/octet-stream');
|
||||
@@ -122,7 +122,7 @@ echo '
|
||||
<html>
|
||||
<head>
|
||||
<title>'.$p->t('abgabetool/abgabetool').'</title>
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<link rel="stylesheet" href="../../../skin/style.css.php" type="text/css">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
|
||||
<script language="Javascript">
|
||||
@@ -150,11 +150,11 @@ if(isset($_POST["schick"]))
|
||||
$row_std=@$db->db_fetch_object($result_std);
|
||||
if($command=='insert')
|
||||
{
|
||||
$qrychk="SELECT * FROM campus.tbl_paabgabe
|
||||
WHERE
|
||||
projektarbeit_id=".$db->db_add_param($projektarbeit_id, FHC_INTEGER)."
|
||||
$qrychk="SELECT * FROM campus.tbl_paabgabe
|
||||
WHERE
|
||||
projektarbeit_id=".$db->db_add_param($projektarbeit_id, FHC_INTEGER)."
|
||||
AND paabgabetyp_kurzbz=".$db->db_add_param($paabgabetyp_kurzbz)."
|
||||
AND fixtermin=".($fixtermin==1?'true':'false')."
|
||||
AND fixtermin=".($fixtermin==1?'true':'false')."
|
||||
AND datum=".$db->db_add_param($datum)."
|
||||
AND kurzbz=".$db->db_add_param($kurzbz);
|
||||
|
||||
@@ -164,11 +164,11 @@ if(isset($_POST["schick"]))
|
||||
{
|
||||
//Datensatz bereits vorhanden
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//neuer Termin
|
||||
$qry="INSERT INTO campus.tbl_paabgabe (projektarbeit_id, paabgabetyp_kurzbz,
|
||||
fixtermin, datum, kurzbz, abgabedatum, insertvon, insertamum, updatevon, updateamum)
|
||||
$qry="INSERT INTO campus.tbl_paabgabe (projektarbeit_id, paabgabetyp_kurzbz,
|
||||
fixtermin, datum, kurzbz, abgabedatum, insertvon, insertamum, updatevon, updateamum)
|
||||
VALUES (".$db->db_add_param($projektarbeit_id, FHC_INTEGER).", ".
|
||||
$db->db_add_param($paabgabetyp_kurzbz).", ".
|
||||
($fixtermin==1?'true':'false').", ".
|
||||
@@ -176,30 +176,29 @@ if(isset($_POST["schick"]))
|
||||
$db->db_add_param($kurzbz).", NULL, ".
|
||||
$db->db_add_param($user).", now(), NULL, NULL)";
|
||||
|
||||
//echo $qry;
|
||||
if(!$result=$db->db_query($qry))
|
||||
{
|
||||
echo "<span class=\"error\">".$p->t('global/fehleraufgetreten')."</span><br> ";
|
||||
echo "<span class=\"error\">".$p->t('global/fehleraufgetreten')."</span><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row=@$db->db_fetch_object($result);
|
||||
$qry_typ="SELECT bezeichnung FROM campus.tbl_paabgabetyp WHERE paabgabetyp_kurzbz=".$db->db_add_param($paabgabetyp_kurzbz);
|
||||
if($result_typ=$db->db_query($qry_typ))
|
||||
{
|
||||
$row_typ=@$db->db_fetch_object($result_typ);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row_typ = new stdClass();
|
||||
$row_typ->bezeichnung='';
|
||||
}
|
||||
$mail = new mail($uid."@".DOMAIN, "no-reply@".DOMAIN, "Neuer Termin Bachelor-/Masterarbeitsbetreuung",
|
||||
"Sehr geehrte".($row_std->anrede=="Herr"?"r":"")." ".$row_std->anrede." ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."!\n\nIhr(e) Betreuer(in) hat einen neuen Termin angelegt:\n".$datum_obj->formatDatum($datum,'d.m.Y').", ".$row_typ->bezeichnung.", ".$kurzbz."\n\nMfG\nIhr(e) Betreuer(in)\n\n--------------------------------------------------------------------------\nDies ist ein vom Bachelor-/Masterarbeitsabgabesystem generiertes Info-Mail\ncis->Mein CIS->Bachelor- und Masterarbeitsabgabe\n--------------------------------------------------------------------------");
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailStudent')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailStudent')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo $p->t('abgabetool/mailVerschicktAn').": ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."<br>";
|
||||
}
|
||||
@@ -207,7 +206,7 @@ if(isset($_POST["schick"]))
|
||||
$command='';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo $p->t('global/fehlerBeimLesenAusDatenbank');
|
||||
}
|
||||
@@ -216,63 +215,64 @@ if(isset($_POST["schick"]))
|
||||
{
|
||||
//Terminänderung
|
||||
//Ermittlung der alten Daten
|
||||
$qry_old="SELECT * FROM campus.tbl_paabgabe
|
||||
WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER)."
|
||||
$qry_old="SELECT * FROM campus.tbl_paabgabe
|
||||
WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER)."
|
||||
AND insertvon=".$db->db_add_param($user);
|
||||
|
||||
if(!$result_old=$db->db_query($qry_old))
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/terminNichtGefunden')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/terminNichtGefunden')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row_old=@$db->db_fetch_object($result_old);
|
||||
//Abgabetyp
|
||||
$qry_told="SELECT bezeichnung FROM campus.tbl_paabgabetyp
|
||||
$qry_told="SELECT bezeichnung FROM campus.tbl_paabgabetyp
|
||||
WHERE paabgabetyp_kurzbz=".$db->db_add_param($row_old->paabgabetyp_kurzbz);
|
||||
|
||||
if($result_told=$db->db_query($qry_told))
|
||||
{
|
||||
$row_told=@$db->db_fetch_object($result_told);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row_told->bezeichnung='';
|
||||
}
|
||||
//Termin updaten
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
projektarbeit_id = ".$db->db_add_param($projektarbeit_id, FHC_INTEGER).",
|
||||
paabgabetyp_kurzbz = ".$db->db_add_param($paabgabetyp_kurzbz).",
|
||||
fixtermin = ".($fixtermin==1?'true':'false').",
|
||||
datum = ".$db->db_add_param($datum).",
|
||||
kurzbz = ".$db->db_add_param($kurzbz).",
|
||||
updatevon = ".$db->db_add_param($user).",
|
||||
updateamum = now()
|
||||
projektarbeit_id = ".$db->db_add_param($projektarbeit_id, FHC_INTEGER).",
|
||||
paabgabetyp_kurzbz = ".$db->db_add_param($paabgabetyp_kurzbz).",
|
||||
fixtermin = ".($fixtermin==1?'true':'false').",
|
||||
datum = ".$db->db_add_param($datum).",
|
||||
kurzbz = ".$db->db_add_param($kurzbz).",
|
||||
updatevon = ".$db->db_add_param($user).",
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER)." AND insertvon=".$db->db_add_param($user);
|
||||
//echo $qry;
|
||||
|
||||
if(!$result=$db->db_query($qry))
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerTerminEintragen')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerTerminEintragen')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//Abgabetyp
|
||||
$qry_typ="SELECT bezeichnung FROM campus.tbl_paabgabetyp WHERE paabgabetyp_kurzbz=".$db->db_add_param($paabgabetyp_kurzbz);
|
||||
if(!$result=$db->db_query($qry))
|
||||
if($result_typ=$db->db_query($qry_typ))
|
||||
{
|
||||
$row_typ=@$db->db_fetch_object($result_typ);
|
||||
$row_typ=$db->db_fetch_object($result_typ);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row_typ = new stdClass();
|
||||
$row_typ->bezeichnung='';
|
||||
}
|
||||
$mail = new mail($uid."@".DOMAIN, "no-reply@".DOMAIN, "Terminänderung Bachelor-/Masterarbeitsbetreuung",
|
||||
"Sehr geehrte".($row_std->anrede=="Herr"?"r":"")." ".$row_std->anrede." ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."!\n\nIhr(e) Betreuer(in) hat einen Termin geändert:\nVon: ".$datum_obj->formatDatum($row_old->datum,'d.m.Y').", ".$row_told->bezeichnung.", ".$row_old->kurzbz."\nAuf: ".$datum_obj->formatDatum($datum,'d.m.Y').", ".$row_typ->bezeichnung." ".$kurzbz."\n\nMfG\nIhr(e) Betreuer(in)\n\n--------------------------------------------------------------------------\nDies ist ein vom Bachelor-/Masterarbeitsabgabesystem generiertes Info-Mail\ncis->Mein CIS->Bachelor- und Masterarbeitsabgabe\n--------------------------------------------------------------------------");
|
||||
"Sehr geehrte".($row_std->anrede=="Herr"?"r":"")." ".$row_std->anrede." ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."!\n\nIhr(e) Betreuer(in) hat einen Termin geändert:\nVon: ".$datum_obj->formatDatum($row_old->datum,'d.m.Y').", ".$row_told->bezeichnung.", ".$row_old->kurzbz."\nAuf: ".$datum_obj->formatDatum($datum,'d.m.Y').", ".$row_typ->bezeichnung.", ".$kurzbz."\n\nMfG\nIhr(e) Betreuer(in)\n\n--------------------------------------------------------------------------\nDies ist ein vom Bachelor-/Masterarbeitsabgabesystem generiertes Info-Mail\ncis->Mein CIS->Bachelor- und Masterarbeitsabgabe\n--------------------------------------------------------------------------");
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailStudent')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailStudent')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo $p->t('abgabetool/mailVerschicktAn').": ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."<br>";
|
||||
}
|
||||
@@ -286,12 +286,12 @@ if(isset($_POST["schick"]))
|
||||
$mail->setReplyTo($user."@".DOMAIN);
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMail')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMail')."</font><br> ";
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('lvplan/datumUngueltig')."</font><br> ";
|
||||
}
|
||||
@@ -306,9 +306,9 @@ if(isset($_POST["del"]))
|
||||
$qry_old="SELECT * FROM campus.tbl_paabgabe WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER)." AND insertvon=".$db->db_add_param($user);
|
||||
if(!$result_old=$db->db_query($qry_old))
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/terminNichtGefunden')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/terminNichtGefunden')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row_old=@$db->db_fetch_object($result_old);
|
||||
$qry_std="SELECT * FROM campus.vw_benutzer where uid=".$db->db_add_param($uid);
|
||||
@@ -319,21 +319,21 @@ if(isset($_POST["del"]))
|
||||
else
|
||||
{
|
||||
$row_std=@$db->db_fetch_object($result_std);
|
||||
$qry="DELETE FROM campus.tbl_paabgabe WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER)." AND insertvon=".$db->db_add_param($user);
|
||||
$qry="DELETE FROM campus.tbl_paabgabe WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER)." AND insertvon=".$db->db_add_param($user);
|
||||
if(!$result=$db->db_query($qry))
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerTerminLoeschen')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$mail = new mail($uid."@".DOMAIN, "no-reply@".DOMAIN, "Termin Bachelor-/Masterarbeitsbetreuung",
|
||||
"Sehr geehrte".($row_std->anrede=="Herr"?"r":"")." ".$row_std->anrede." ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."!\n\nIhr(e) Betreuer(in) hat einen Termin entfernt:\n".$datum_obj->formatDatum($row_old->datum,'d.m.Y').", ".$row_old->kurzbz."\n\nMfG\nIhr(e) Betreuer(in)\n\n--------------------------------------------------------------------------\nDies ist ein vom Bachelor-/Masterarbeitsabgabesystem generiertes Info-Mail\ncis->Mein CIS->Bachelor- und Masterarbeitsabgabe\n--------------------------------------------------------------------------");
|
||||
$mail->setReplyTo($user."@".DOMAIN);
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('fehlerMailStudent')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('fehlerMailStudent')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo $p->t('abgabetool/mailVerschicktAn').": ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."<br>";
|
||||
}
|
||||
@@ -341,7 +341,7 @@ if(isset($_POST["del"]))
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('lvplan/datumUngueltig')."</font><br> ";
|
||||
}
|
||||
@@ -367,7 +367,7 @@ if($betreuerart!="Zweitbegutachter")
|
||||
$htmlstr .= "<td width=10% align=center><form action='https://www1.ephorus.com/' title='ephorus' target='_blank' method='GET'>";
|
||||
$htmlstr .= "<input type='submit' name='ephorus' value='".$p->t('abgabetool/plagiatspruefung')."'></form></td></tr>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= "<td> </td></tr>";
|
||||
}
|
||||
@@ -411,14 +411,14 @@ $result=@$db->db_query($qry);
|
||||
$bgcol='#FFFF00';
|
||||
$fcol='#000000';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//"normaler" Termin - schwarz auf weiß
|
||||
$bgcol='#FFFFFF';
|
||||
$fcol='#000000';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
if($row->abgabedatum>$row->datum)
|
||||
{
|
||||
@@ -426,7 +426,7 @@ $result=@$db->db_query($qry);
|
||||
$bgcol='#EA7B7B';
|
||||
$fcol='#FFFFFF';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//Abgabe vor Termin - schwarz auf grün
|
||||
$bgcol='#00FF00';
|
||||
@@ -439,7 +439,7 @@ $result=@$db->db_query($qry);
|
||||
{
|
||||
$htmlstr .= "<td><img src='../../../skin/images/bullet_red.png' alt='J' title='".$p->t('abgabetool/fixerAbgabetermin')."' border=0></td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= "<td><img src='../../../skin/images/bullet_green.png' alt='N' title='".$p->t('abgabetool/variablerAbgabetermin')."' border=0></td>";
|
||||
}
|
||||
@@ -455,31 +455,31 @@ $result=@$db->db_query($qry);
|
||||
{
|
||||
$htmlstr .= " <option value='".$row_typ->paabgabetyp_kurzbz."' selected>$row_typ->bezeichnung</option>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
if($row_typ->paabgabetyp_kurzbz!='end' && $row_typ->paabgabetyp_kurzbz!='note' && $row_typ->paabgabetyp_kurzbz!='enda')
|
||||
{
|
||||
$htmlstr .= " <option value='".$row_typ->paabgabetyp_kurzbz."'>$row_typ->bezeichnung</option>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$htmlstr .= " </select></td>\n";
|
||||
$htmlstr .= " <td><input type='text' name='kurzbz' value='".htmlspecialchars($row->kurzbz,ENT_QUOTES)."' size='60' maxlegth='256'></td>\n";
|
||||
$htmlstr .= " <td>".($row->abgabedatum==''?' ':$datum_obj->formatDatum($row->abgabedatum,'d.m.Y'))."</td>\n";
|
||||
$htmlstr .= " <td><input type='text' name='kurzbz' value='".htmlspecialchars($row->kurzbz,ENT_QUOTES)."' size='60' maxlegth='256'></td>\n";
|
||||
$htmlstr .= " <td>".($row->abgabedatum==''?' ':$datum_obj->formatDatum($row->abgabedatum,'d.m.Y'))."</td>\n";
|
||||
if($user==$row->insertvon && $betreuerart!="Zweitbegutachter")
|
||||
{
|
||||
{
|
||||
$htmlstr .= " <td><input type='submit' name='schick' value='".$p->t('global/speichern')."' title='".$p->t('abgabetool/terminaenderungSpeichern')."'></td>";
|
||||
|
||||
|
||||
if(!$row->abgabedatum)
|
||||
{
|
||||
$htmlstr .= " <td><input type='submit' name='del' value='".$p->t('global/loeschen')."' onclick='return confdel()' title='".$p->t('abgabetool/terminLoeschen')."'></td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= " <td> </td>";
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= " <td> </td><td> </td>";
|
||||
}
|
||||
@@ -487,7 +487,7 @@ $result=@$db->db_query($qry);
|
||||
{
|
||||
$htmlstr .= " <td><a href='".$_SERVER['PHP_SELF']."?id=".$row->paabgabe_id."&uid=$uid' target='_blank'><img src='../../../skin/images/pdf.ico' alt='PDF' title='".$p->t('abgabetool/abgegebeneDatei')."' border=0></a></td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= " <td> </td>";
|
||||
}
|
||||
@@ -495,16 +495,16 @@ $result=@$db->db_query($qry);
|
||||
{
|
||||
$htmlstr .= " <td><a href='abgabe_lektor_zusatz.php?paabgabe_id=".$row->paabgabe_id."&uid=$uid&projektarbeit_id=$projektarbeit_id' target='_blank'><img src='../../../skin/images/folder.gif' alt='zusätzliche Daten' title='".$p->t('abgabetool/kontrolleZusatzdaten')."' border=0></a></td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= " <td> </td>";
|
||||
}
|
||||
$htmlstr .= " </tr>\n";
|
||||
|
||||
|
||||
|
||||
|
||||
$htmlstr .= "</form>\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Eingabezeile fuer neuen Termin
|
||||
$htmlstr .= '<form action="'.htmlspecialchars($_SERVER['PHP_SELF']).'" method="POST" name="'.$db->convert_html_chars($projektarbeit_id).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="projektarbeit_id" value="'.$db->convert_html_chars($projektarbeit_id).'">'."\n";
|
||||
@@ -525,16 +525,16 @@ $result_typ=$db->db_query($qry_typ);
|
||||
while ($row_typ=@$db->db_fetch_object($result_typ))
|
||||
{
|
||||
$htmlstr .= " <option value='".$row_typ->paabgabetyp_kurzbz."'>".$row_typ->bezeichnung."</option>";
|
||||
}
|
||||
}
|
||||
$htmlstr .= " </select></td>\n";
|
||||
|
||||
$htmlstr .= " <td><input type='text' name='kurzbz' size='60' maxlegth='256'></td>\n";
|
||||
$htmlstr .= " <td> </td>\n";
|
||||
$htmlstr .= " <td><input type='text' name='kurzbz' size='60' maxlegth='256'></td>\n";
|
||||
$htmlstr .= " <td> </td>\n";
|
||||
if($betreuerart!="Zweitbegutachter")
|
||||
{
|
||||
$htmlstr .= " <td><input type='submit' name='schick' value='".$p->t('global/speichern')."' title='".$p->t('abgabetool/neuenTerminSpeichern')."'></td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= " <td> </td>";
|
||||
}
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
*/
|
||||
/*******************************************************************************************************
|
||||
* abgabe_lektor
|
||||
* abgabe_lektor ist die Lektorenseite des Abgabesystems
|
||||
* abgabe_lektor ist die Lektorenseite des Abgabesystems
|
||||
* fuer Diplom- und Bachelorarbeiten
|
||||
*******************************************************************************************************/
|
||||
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/studiengang.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
@@ -40,7 +40,7 @@ $p = new phrasen($sprache);
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
|
||||
|
||||
$i=0;
|
||||
$irgendwas='';
|
||||
foreach($_POST as $key=>$value)
|
||||
@@ -50,7 +50,7 @@ foreach($_POST as $key=>$value)
|
||||
$irgendwas.=substr($key, 3).";";
|
||||
//echo $irgendwas."<br>";
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
$irgendwas = (isset($_POST['irgendwas'])?$_POST['irgendwas']:$irgendwas);
|
||||
$projektarbeit_id = (isset($_POST['projektarbeit_id'])?$_POST['projektarbeit_id']:'-1');
|
||||
@@ -83,23 +83,21 @@ if($irgendwas=='')
|
||||
|
||||
if(!$rechte->isBerechtigt('admin') && !$rechte->isBerechtigt('lehre/abgabetool'))
|
||||
{
|
||||
echo "foo";
|
||||
// Pruefen ob der Lektor zu diesen Projektarbeiten zugeteilt ist
|
||||
$ids = explode(";",$irgendwas);
|
||||
foreach($ids as $id)
|
||||
{
|
||||
if($id!='')
|
||||
{
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
projektarbeit_id
|
||||
FROM
|
||||
FROM
|
||||
lehre.tbl_projektbetreuer
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
WHERE projektarbeit_id=".$db->db_add_param($id)."
|
||||
WHERE projektarbeit_id=".$db->db_add_param($id)."
|
||||
AND uid=".$db->db_add_param($user);
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
echo "bar".$id;
|
||||
if($db->db_num_rows($result)==0)
|
||||
{
|
||||
die('Sie sind nicht zu dieser Projektarbeit zugeteilt');
|
||||
@@ -116,10 +114,10 @@ if(isset($_POST["schick"]))
|
||||
//var_dump($termine);
|
||||
for($j=0;$j<count($termine)-1;$j++)
|
||||
{
|
||||
$qrychk="SELECT * FROM campus.tbl_paabgabe
|
||||
$qrychk="SELECT * FROM campus.tbl_paabgabe
|
||||
WHERE projektarbeit_id=".$db->db_add_param($termine[$j])."
|
||||
AND paabgabetyp_kurzbz=".$db->db_add_param($paabgabetyp_kurzbz)."
|
||||
AND fixtermin=".($fixtermin==1?'true':'false')."
|
||||
AND fixtermin=".($fixtermin==1?'true':'false')."
|
||||
AND datum=".$db->db_add_param($datum)."
|
||||
AND kurzbz=".$db->db_add_param($kurzbz);
|
||||
|
||||
@@ -130,13 +128,13 @@ if(isset($_POST["schick"]))
|
||||
{
|
||||
echo $p->t('abgabetool/terminVorhanden');
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//pruefen, ob user zweitbetreuer
|
||||
$qry2="SELECT * FROM lehre.tbl_projektbetreuer WHERE
|
||||
$qry2="SELECT * FROM lehre.tbl_projektbetreuer WHERE
|
||||
projektarbeit_id=".$db->db_add_param($termine[$j])."
|
||||
AND betreuerart_kurzbz='Zweitbegutachter'
|
||||
AND person_id=(SELECT person_id FROM campus.vw_mitarbeiter
|
||||
AND person_id=(SELECT person_id FROM campus.vw_mitarbeiter
|
||||
WHERE uid=".$db->db_add_param($user).")";
|
||||
|
||||
$result2=$db->db_query($qry2);
|
||||
@@ -144,8 +142,8 @@ if(isset($_POST["schick"]))
|
||||
if($db->db_num_rows($result2)==0)
|
||||
{
|
||||
//echo "neuer Termin";
|
||||
$qry="INSERT INTO campus.tbl_paabgabe (projektarbeit_id, paabgabetyp_kurzbz,
|
||||
fixtermin, datum, kurzbz, abgabedatum, insertvon, insertamum, updatevon, updateamum)
|
||||
$qry="INSERT INTO campus.tbl_paabgabe (projektarbeit_id, paabgabetyp_kurzbz,
|
||||
fixtermin, datum, kurzbz, abgabedatum, insertvon, insertamum, updatevon, updateamum)
|
||||
VALUES (".$db->db_add_param($termine[$j]).", ".
|
||||
$db->db_add_param($paabgabetyp_kurzbz).", ".
|
||||
($fixtermin==1?'true':'false').", ".
|
||||
@@ -155,9 +153,9 @@ if(isset($_POST["schick"]))
|
||||
//echo $qry;
|
||||
if(!$result=$db->db_query($qry))
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerTerminEintragen')."</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerTerminEintragen')."</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row=$db->db_fetch_object($result);
|
||||
$qry_typ="SELECT bezeichnung FROM campus.tbl_paabgabetyp WHERE paabgabetyp_kurzbz=".$db->db_add_param($paabgabetyp_kurzbz);
|
||||
@@ -165,7 +163,7 @@ if(isset($_POST["schick"]))
|
||||
{
|
||||
$row_typ=$db->db_fetch_object($result_typ);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$row_typ->bezeichnung='';
|
||||
}
|
||||
@@ -178,23 +176,23 @@ if(isset($_POST["schick"]))
|
||||
"Sehr geehrte".($row_std->anrede=="Herr"?"r":"")." ".$row_std->anrede." ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."!\n\nIhr(e) Betreuer(in) hat einen neuen Termin angelegt:\n".$datum_obj->formatDatum($datum,'d.m.Y').", ".$row_typ->bezeichnung.", ".$kurzbz."\n\nMfG\nIhr(e) Betreuer(in)\n\n--------------------------------------------------------------------------\nDies ist ein vom Bachelor-/Masterarbeitsabgabesystem generiertes Info-Mail\ncis->Mein CIS->Bachelor- und Masterarbeitsabgabe\n--------------------------------------------------------------------------");
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailStudent')." ($row_std->uid)</font><br> ";
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailStudent')." ($row_std->uid)</font><br> ";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo $p->t('abgabetool/mailVerschicktAn').": ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)."<br>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo $p->t('abgabetool/zweitbetreuerBei')." ".$termine[$j]." <br>";
|
||||
echo $p->t('abgabetool/zweitbetreuerBei')." ".$termine[$j]." <br>";
|
||||
}
|
||||
$command='';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo $p->t('global/fehlerBeimLesenAusDatenbank');
|
||||
}
|
||||
@@ -235,10 +233,10 @@ while ($row_typ=@$db->db_fetch_object($result_typ))
|
||||
{
|
||||
$htmlstr .= " <option value='".$row_typ->paabgabetyp_kurzbz."'>$row_typ->bezeichnung</option>";
|
||||
}
|
||||
}
|
||||
}
|
||||
$htmlstr .= " </select></td>\n";
|
||||
$htmlstr .= " <td><input type='text' name='kurzbz' size='60' maxlength='256'></td>\n";
|
||||
$htmlstr .= " <td> </td>\n";
|
||||
$htmlstr .= " <td><input type='text' name='kurzbz' size='60' maxlength='256'></td>\n";
|
||||
$htmlstr .= " <td> </td>\n";
|
||||
$htmlstr .= " <td><input type='submit' name='schick' value='".$p->t('global/speichern')."'></td>";
|
||||
|
||||
$htmlstr .= "</tr>\n";
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
*/
|
||||
/*******************************************************************************************************
|
||||
* abgabe_lektor
|
||||
* abgabe_lektor ist die Lektorenmaske des Abgabesystems
|
||||
* abgabe_lektor ist die Lektorenmaske des Abgabesystems
|
||||
* fuer Diplom- und Bachelorarbeiten
|
||||
*******************************************************************************************************/
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
@@ -70,7 +70,7 @@ if(!isset($_POST['uid']))
|
||||
$abgabedatum = '01.01.1980';
|
||||
$sprache='German';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$uid = (isset($_POST['uid'])?$_POST['uid']:'-1');
|
||||
$projektarbeit_id = (isset($_POST['projektarbeit_id'])?$_POST['projektarbeit_id']:'-1');
|
||||
@@ -96,7 +96,7 @@ else
|
||||
$user = get_uid();
|
||||
if($uid=='-1' || $projektarbeit_id=='-1')
|
||||
{
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
|
||||
// Bei Studierenden pruefen ob die Uebergebene Projektarbeit zu dem Studierenden passt.
|
||||
@@ -115,15 +115,15 @@ if($uid!=$user)
|
||||
$student = new student();
|
||||
if(!$student->load($uid))
|
||||
die($p->t('global/userNichtGefunden'));
|
||||
|
||||
|
||||
$stg_obj = new studiengang();
|
||||
if(!$stg_obj->load($student->studiengang_kz))
|
||||
die($p->t('global/fehlerBeimLesenAusDatenbank'));
|
||||
|
||||
|
||||
//Studentenansicht
|
||||
//Rechte Pruefen
|
||||
$allowed=false;
|
||||
|
||||
|
||||
//Berechtigung ueber das Berechtigungssystem
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
@@ -133,14 +133,14 @@ if($uid!=$user)
|
||||
|
||||
//oder Lektor mit Betreuung dieses Studenten
|
||||
$qry = "SELECT 1
|
||||
FROM
|
||||
lehre.tbl_projektarbeit
|
||||
JOIN lehre.tbl_projektbetreuer USING(projektarbeit_id)
|
||||
FROM
|
||||
lehre.tbl_projektarbeit
|
||||
JOIN lehre.tbl_projektbetreuer USING(projektarbeit_id)
|
||||
JOIN campus.vw_benutzer on(vw_benutzer.person_id=tbl_projektbetreuer.person_id)
|
||||
WHERE
|
||||
tbl_projektarbeit.student_uid=".$db->db_add_param($uid)." AND
|
||||
vw_benutzer.uid=".$db->db_add_param($user).";";
|
||||
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($db->db_num_rows($result)>0)
|
||||
@@ -148,12 +148,12 @@ if($uid!=$user)
|
||||
$allowed=true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$allowed)
|
||||
{
|
||||
die($p->t('abgabetool/keineBerechtigungStudentenansicht'));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if($uid!=$projektarbeit_obj->student_uid)
|
||||
@@ -174,21 +174,21 @@ echo '<!DOCTYPE HTML>
|
||||
border-width:1px;
|
||||
width:100%;
|
||||
padding:2px;
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function checkEid()
|
||||
{
|
||||
if(document.projektabgabe.eiderklaerung.checked == false)
|
||||
if(document.projektabgabe.eiderklaerung.checked == false)
|
||||
{
|
||||
alert("'.$p->t('abgabetool/erklaerungNichtAkzeptiert').'!");
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>';
|
||||
$datum_obj = new datum();
|
||||
@@ -202,176 +202,190 @@ $htmlstr='';
|
||||
|
||||
if($command=='add')
|
||||
{
|
||||
//zusätzliche Daten bearbeiten
|
||||
//Check der Eingabedaten
|
||||
if(strlen($kontrollschlagwoerter)<1)
|
||||
if(!isAbgabeOutOfDate($paabgabe_id))
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
if(mb_strlen($kontrollschlagwoerter)>=150)
|
||||
{
|
||||
$kontrollschlagwoerter = mb_substr($kontrollschlagwoerter, 0, 146).'...';
|
||||
}
|
||||
if(strlen($abstract)<1)
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
if(strlen($abstract_en)<1)
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
if($seitenanzahl<1)
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
if(!$error)
|
||||
{
|
||||
$qry_upd="UPDATE lehre.tbl_projektarbeit SET
|
||||
seitenanzahl = ".$db->db_add_param($seitenanzahl).",
|
||||
abgabedatum = now(),
|
||||
sprache = ".$db->db_add_param($sprache).",
|
||||
kontrollschlagwoerter = ".$db->db_add_param($kontrollschlagwoerter).",
|
||||
schlagwoerter_en = ".$db->db_add_param($schlagwoerter_en).",
|
||||
schlagwoerter = ".$db->db_add_param($schlagwoerter).",
|
||||
abstract = ".$db->db_add_param($abstract).",
|
||||
abstract_en = ".$db->db_add_param($abstract_en)."
|
||||
WHERE projektarbeit_id = ".$db->db_add_param($projektarbeit_id, FHC_INTEGER);
|
||||
|
||||
if($result=$db->db_query($qry_upd))
|
||||
//zusätzliche Daten bearbeiten
|
||||
//Check der Eingabedaten
|
||||
if(strlen($kontrollschlagwoerter)<1)
|
||||
{
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = ".$db->db_add_param($user).",
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER);
|
||||
|
||||
if($db->db_query($qry))
|
||||
echo '<font color="green">'.$p->t('global/erfolgreichgespeichert').'</font><br>';
|
||||
$command="update";
|
||||
$error=true;
|
||||
}
|
||||
else
|
||||
if(mb_strlen($kontrollschlagwoerter)>=150)
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('global/fehleraufgetreten')."</font><br> ";
|
||||
$kontrollschlagwoerter = mb_substr($kontrollschlagwoerter, 0, 146).'...';
|
||||
}
|
||||
if(strlen($abstract)<1)
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
if(strlen($abstract_en)<1)
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
if($seitenanzahl<1)
|
||||
{
|
||||
$error=true;
|
||||
}
|
||||
if(!$error)
|
||||
{
|
||||
$qry_upd="UPDATE lehre.tbl_projektarbeit SET
|
||||
seitenanzahl = ".$db->db_add_param($seitenanzahl).",
|
||||
abgabedatum = now(),
|
||||
sprache = ".$db->db_add_param($sprache).",
|
||||
kontrollschlagwoerter = ".$db->db_add_param($kontrollschlagwoerter).",
|
||||
schlagwoerter_en = ".$db->db_add_param($schlagwoerter_en).",
|
||||
schlagwoerter = ".$db->db_add_param($schlagwoerter).",
|
||||
abstract = ".$db->db_add_param($abstract).",
|
||||
abstract_en = ".$db->db_add_param($abstract_en)."
|
||||
WHERE projektarbeit_id = ".$db->db_add_param($projektarbeit_id, FHC_INTEGER);
|
||||
|
||||
if($result=$db->db_query($qry_upd))
|
||||
{
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = ".$db->db_add_param($user).",
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER);
|
||||
|
||||
if($db->db_query($qry))
|
||||
echo '<font color="green">'.$p->t('global/erfolgreichgespeichert').'</font><br>';
|
||||
$command="update";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('global/fehleraufgetreten')."</font><br> ";
|
||||
$command='';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/dateneingabeUnvollstaendig')."</font><br> ";
|
||||
$command='';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/dateneingabeUnvollstaendig')."</font><br> ";
|
||||
$command='';
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerTerminVorbei').'</font>';
|
||||
}
|
||||
}
|
||||
if($command=="update" && $error!=true)
|
||||
{
|
||||
//Dateiupload bearbeiten
|
||||
if ((isset($_FILES) and isset($_FILES['datei']) and ! $_FILES['datei']['error']))
|
||||
if(!isAbgabeOutOfDate($paabgabe_id))
|
||||
{
|
||||
$extensions = explode(".", $_FILES['datei']['name']);
|
||||
if(strtoupper(end($extensions))=='PDF')
|
||||
//Dateiupload bearbeiten
|
||||
if ((isset($_FILES) and isset($_FILES['datei']) and ! $_FILES['datei']['error']))
|
||||
{
|
||||
if($paabgabetyp_kurzbz!='end')
|
||||
$extensions = explode(".", $_FILES['datei']['name']);
|
||||
if(strtoupper(end($extensions))=='PDF')
|
||||
{
|
||||
//"normaler" Upload
|
||||
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf');
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'))
|
||||
{
|
||||
exec('chmod 640 "'.PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'.'"');
|
||||
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = ".$db->db_add_param($user).",
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER);
|
||||
$result=$db->db_query($qry);
|
||||
echo $p->t('global/dateiErfolgreichHochgeladen');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $p->t('global/dateiNichtErfolgreichHochgeladen');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//Upload der Endabgabe - Eingabe der Zusatzdaten
|
||||
$command='add';
|
||||
if(!$error)
|
||||
if($paabgabetyp_kurzbz!='end')
|
||||
{
|
||||
//"normaler" Upload
|
||||
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf');
|
||||
}
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'))
|
||||
{
|
||||
/*$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = '".$user."',
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id='".$paabgabe_id."'";
|
||||
$result=$db->db_query($qry);*/
|
||||
|
||||
echo '<h2>'.$p->t('abgabetool/abgabeStudentenbereich').' - '.$p->t('abgabetool/abgabeZusatzdaten').'</h2>';
|
||||
|
||||
$qry_zd="SELECT * FROM lehre.tbl_projektarbeit WHERE projektarbeit_id=".$db->db_add_param($projektarbeit_id, FHC_INTEGER);
|
||||
|
||||
if($result_zd=@$db->db_query($qry_zd))
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'))
|
||||
{
|
||||
if($row_zd=@$db->db_fetch_object($result_zd))
|
||||
exec('chmod 640 "'.PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'.'"');
|
||||
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = ".$db->db_add_param($user).",
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id=".$db->db_add_param($paabgabe_id, FHC_INTEGER);
|
||||
$result=$db->db_query($qry);
|
||||
echo $p->t('global/dateiErfolgreichHochgeladen');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $p->t('global/dateiNichtErfolgreichHochgeladen');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//Upload der Endabgabe - Eingabe der Zusatzdaten
|
||||
$command='add';
|
||||
if(!$error)
|
||||
{
|
||||
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf');
|
||||
}
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'))
|
||||
{
|
||||
/*$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = '".$user."',
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id='".$paabgabe_id."'";
|
||||
$result=$db->db_query($qry);*/
|
||||
|
||||
echo '<h2>'.$p->t('abgabetool/abgabeStudentenbereich').' - '.$p->t('abgabetool/abgabeZusatzdaten').'</h2>';
|
||||
|
||||
$qry_zd="SELECT * FROM lehre.tbl_projektarbeit WHERE projektarbeit_id=".$db->db_add_param($projektarbeit_id, FHC_INTEGER);
|
||||
|
||||
if($result_zd=@$db->db_query($qry_zd))
|
||||
{
|
||||
|
||||
$htmlstr = "<div>".$p->t('abgabetool/betreuer').": <b>".$db->convert_html_chars($betreuer)."</b><br>".$p->t('abgabetool/titel').": <b>".$db->convert_html_chars($titel)."<b><br><br></div>\n";
|
||||
$htmlstr .= "<table class='detail' style='padding-top:10px;'>\n";
|
||||
$htmlstr .= "<tr></tr>\n";
|
||||
$htmlstr .= '<form accept-charset="UTF-8" action="'.htmlspecialchars($_SERVER['PHP_SELF']).'" method="POST" name="projektabgabe">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="projektarbeit_id" value="'.$db->convert_html_chars($projektarbeit_id).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="paabgabe_id" value="'.$db->convert_html_chars($paabgabe_id).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="paabgabetyp_kurzbz" value="'.$db->convert_html_chars($paabgabetyp_kurzbz).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="abgabedatum" value="'.$db->convert_html_chars($abgabedatum).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="titel" value="'.$db->convert_html_chars($titel).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="uid" value="'.$db->convert_html_chars($uid).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="betreuer" value="'.$db->convert_html_chars($betreuer).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="bid" value="'.$db->convert_html_chars($bid).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="command" value="add">'."\n";
|
||||
$htmlstr .= "<tr>\n";
|
||||
$htmlstr .= "<td><b>".$p->t('abgabetool/spracheDerArbeit').":</b></td><td>";
|
||||
$sprache = @$db->db_query("SELECT sprache FROM public.tbl_sprache");
|
||||
$num = $db->db_num_rows($sprache);
|
||||
if ($num > 0)
|
||||
{
|
||||
$htmlstr .= "<SELECT NAME=\"sprache\" SIZE=1> \n";
|
||||
while ($mrow=@$db->db_fetch_object($sprache))
|
||||
{
|
||||
$htmlstr .= "<OPTION VALUE=\"$mrow->sprache\"";
|
||||
if ($mrow->sprache == $sprache)
|
||||
{
|
||||
$htmlstr .= " SELECTED";
|
||||
}
|
||||
$htmlstr .= ">$mrow->sprache \n";
|
||||
}
|
||||
$htmlstr .= "</SELECT> \n";
|
||||
}
|
||||
$htmlstr .= "</td></tr>\n";
|
||||
$htmlstr .= '<tr><td width="30%"><b>'.$p->t('abgabetool/kontrollierteSchlagwoerter').':*</b></td>
|
||||
<td width="40%"><input type="text" name="kontrollschlagwoerter" id="kontrollschlagwoerter" value="'.$db->convert_html_chars($kontrollschlagwoerter).'" size="60" maxlength="150"></td>
|
||||
<td width="30%" align="left"><input type="button" name="SWD" value=" SWD " onclick="window.open(\'swd.php\')"></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td><b>'.$p->t('abgabetool/deutscheSchlagwoerter').':</b></td>
|
||||
<td><input type="text" name="schlagwoerter" value="'.$db->convert_html_chars($schlagwoerter).'" size="60" maxlength="150"></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td><b>'.$p->t('abgabetool/englischeSchlagwoerter').':</b></td>
|
||||
<td><input type="text" name="schlagwoerter_en" value="'.$db->convert_html_chars($schlagwoerter_en).'" size="60" maxlength="150"></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td valign="top"><b>'.$p->t('abgabetool/abstract').' </b>'.$p->t('abgabetool/maxZeichen').':*</td>
|
||||
<td><textarea name="abstract" cols="46" rows="7">'.$db->convert_html_chars($abstract).'</textarea></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td valign="top"><b>'.$p->t('abgabetool/abstractEng').'</b>'.$p->t('abgabetool/maxZeichen').':*</td>
|
||||
<td><textarea name="abstract_en" cols="46" rows="7">'.$db->convert_html_chars($abstract_en).'</textarea></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td><b>'.$p->t('abgabetool/seitenanzahl').':*</b></td>
|
||||
<td><input type="text" name="seitenanzahl" value="'.$db->convert_html_chars($seitenanzahl).'" size="5" maxlength="4"></td></tr>'."\n";
|
||||
$htmlstr .="<tr><td> </td></tr>\n";
|
||||
$htmlstr .="<tr><td colspan='2'><p align='justify'>".$p->t('abgabetool/eidesstattlicheErklaerung')."</p></td><td></td></tr>\n";
|
||||
$htmlstr .= "<tr><td><b>".$p->t('abgabetool/gelesenUndAkzeptiert').":* <input type='checkbox' name='eiderklaerung'></b></td></tr>";
|
||||
$htmlstr .="<tr></tr><td> </td><tr><td style='font-size:70%'>* ".$p->t('abgabetool/pflichtfeld')."</td></tr>
|
||||
<tr><td> </td></tr>\n";
|
||||
$htmlstr .= "<tr><td><input type='submit' name='schick' onclick='return checkEid();' value='".$p->t('global/abschicken')."'></td>";
|
||||
$htmlstr .= "</tr>\n";
|
||||
$htmlstr .= "</form>\n";
|
||||
$htmlstr .= "</table>\n";
|
||||
$htmlstr .= "</body></html>";
|
||||
echo $htmlstr;
|
||||
if($row_zd=@$db->db_fetch_object($result_zd))
|
||||
{
|
||||
|
||||
$htmlstr = "<div>".$p->t('abgabetool/betreuer').": <b>".$db->convert_html_chars($betreuer)."</b><br>".$p->t('abgabetool/titel').": <b>".$db->convert_html_chars($titel)."<b><br><br></div>\n";
|
||||
$htmlstr .= "<table class='detail' style='padding-top:10px;'>\n";
|
||||
$htmlstr .= "<tr></tr>\n";
|
||||
$htmlstr .= '<form accept-charset="UTF-8" action="'.htmlspecialchars($_SERVER['PHP_SELF']).'" method="POST" name="projektabgabe">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="projektarbeit_id" value="'.$db->convert_html_chars($projektarbeit_id).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="paabgabe_id" value="'.$db->convert_html_chars($paabgabe_id).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="paabgabetyp_kurzbz" value="'.$db->convert_html_chars($paabgabetyp_kurzbz).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="abgabedatum" value="'.$db->convert_html_chars($abgabedatum).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="titel" value="'.$db->convert_html_chars($titel).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="uid" value="'.$db->convert_html_chars($uid).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="betreuer" value="'.$db->convert_html_chars($betreuer).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="bid" value="'.$db->convert_html_chars($bid).'">'."\n";
|
||||
$htmlstr .= '<input type="hidden" name="command" value="add">'."\n";
|
||||
$htmlstr .= "<tr>\n";
|
||||
$htmlstr .= "<td><b>".$p->t('abgabetool/spracheDerArbeit').":</b></td><td>";
|
||||
$sprache = @$db->db_query("SELECT sprache FROM public.tbl_sprache");
|
||||
$num = $db->db_num_rows($sprache);
|
||||
if ($num > 0)
|
||||
{
|
||||
$htmlstr .= "<SELECT NAME=\"sprache\" SIZE=1> \n";
|
||||
while ($mrow=@$db->db_fetch_object($sprache))
|
||||
{
|
||||
$htmlstr .= "<OPTION VALUE=\"$mrow->sprache\"";
|
||||
if ($mrow->sprache == $sprache)
|
||||
{
|
||||
$htmlstr .= " SELECTED";
|
||||
}
|
||||
$htmlstr .= ">$mrow->sprache \n";
|
||||
}
|
||||
$htmlstr .= "</SELECT> \n";
|
||||
}
|
||||
$htmlstr .= "</td></tr>\n";
|
||||
$htmlstr .= '<tr><td width="30%"><b>'.$p->t('abgabetool/kontrollierteSchlagwoerter').':*</b></td>
|
||||
<td width="40%"><input type="text" name="kontrollschlagwoerter" id="kontrollschlagwoerter" value="'.$db->convert_html_chars($kontrollschlagwoerter).'" size="60" maxlength="150"></td>
|
||||
<td width="30%" align="left"><input type="button" name="SWD" value=" SWD " onclick="window.open(\'swd.php\')"></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td><b>'.$p->t('abgabetool/deutscheSchlagwoerter').':</b></td>
|
||||
<td><input type="text" name="schlagwoerter" value="'.$db->convert_html_chars($schlagwoerter).'" size="60" maxlength="150"></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td><b>'.$p->t('abgabetool/englischeSchlagwoerter').':</b></td>
|
||||
<td><input type="text" name="schlagwoerter_en" value="'.$db->convert_html_chars($schlagwoerter_en).'" size="60" maxlength="150"></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td valign="top"><b>'.$p->t('abgabetool/abstract').' </b>'.$p->t('abgabetool/maxZeichen').':*</td>
|
||||
<td><textarea name="abstract" cols="46" rows="7">'.$db->convert_html_chars($abstract).'</textarea></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td valign="top"><b>'.$p->t('abgabetool/abstractEng').'</b>'.$p->t('abgabetool/maxZeichen').':*</td>
|
||||
<td><textarea name="abstract_en" cols="46" rows="7">'.$db->convert_html_chars($abstract_en).'</textarea></td></tr>'."\n";
|
||||
$htmlstr .= '<tr><td><b>'.$p->t('abgabetool/seitenanzahl').':*</b></td>
|
||||
<td><input type="text" name="seitenanzahl" value="'.$db->convert_html_chars($seitenanzahl).'" size="5" maxlength="4"></td></tr>'."\n";
|
||||
$htmlstr .="<tr><td> </td></tr>\n";
|
||||
$htmlstr .="<tr><td colspan='2'><p align='justify'>".$p->t('abgabetool/eidesstattlicheErklaerung')."</p></td><td></td></tr>\n";
|
||||
$htmlstr .= "<tr><td><b>".$p->t('abgabetool/gelesenUndAkzeptiert').":* <input type='checkbox' name='eiderklaerung'></b></td></tr>";
|
||||
$htmlstr .="<tr></tr><td> </td><tr><td style='font-size:70%'>* ".$p->t('abgabetool/pflichtfeld')."</td></tr>
|
||||
<tr><td> </td></tr>\n";
|
||||
$htmlstr .= "<tr><td><input type='submit' name='schick' onclick='return checkEid();' value='".$p->t('global/abschicken')."'></td>";
|
||||
$htmlstr .= "</tr>\n";
|
||||
$htmlstr .= "</form>\n";
|
||||
$htmlstr .= "</table>\n";
|
||||
$htmlstr .= "</body></html>";
|
||||
echo $htmlstr;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $p->t('global/dateiNichtErfolgreichHochgeladen');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -382,64 +396,64 @@ if($command=="update" && $error!=true)
|
||||
{
|
||||
echo $p->t('global/dateiNichtErfolgreichHochgeladen');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $p->t('global/dateiNichtErfolgreichHochgeladen');
|
||||
}
|
||||
}
|
||||
//E-Mail an 1.Begutachter
|
||||
if($bid!='' && $bid!=NULL)
|
||||
{
|
||||
$qry_betr="SELECT distinct trim(COALESCE(titelpre,'')||' '||COALESCE(vorname,'')||' '||COALESCE(nachname,'')||' '||COALESCE(titelpost,'')) as first,
|
||||
public.tbl_mitarbeiter.mitarbeiter_uid, anrede
|
||||
FROM public.tbl_person JOIN lehre.tbl_projektbetreuer ON(lehre.tbl_projektbetreuer.person_id=public.tbl_person.person_id)
|
||||
JOIN public.tbl_benutzer ON(public.tbl_benutzer.person_id=public.tbl_person.person_id)
|
||||
JOIN public.tbl_mitarbeiter ON(public.tbl_benutzer.uid=public.tbl_mitarbeiter.mitarbeiter_uid)
|
||||
WHERE public.tbl_person.person_id=".$db->db_add_param($bid, FHC_INTEGER);
|
||||
|
||||
if(!$betr=$db->db_query($qry_betr))
|
||||
//E-Mail an 1.Begutachter
|
||||
if($bid!='' && $bid!=NULL)
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('global/fehlerBeimLesenAusDatenbank')."</font><br> ";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($row_betr=$db->db_fetch_object($betr))
|
||||
$qry_betr="SELECT distinct trim(COALESCE(titelpre,'')||' '||COALESCE(vorname,'')||' '||COALESCE(nachname,'')||' '||COALESCE(titelpost,'')) as first,
|
||||
public.tbl_mitarbeiter.mitarbeiter_uid, anrede
|
||||
FROM public.tbl_person JOIN lehre.tbl_projektbetreuer ON(lehre.tbl_projektbetreuer.person_id=public.tbl_person.person_id)
|
||||
JOIN public.tbl_benutzer ON(public.tbl_benutzer.person_id=public.tbl_person.person_id)
|
||||
JOIN public.tbl_mitarbeiter ON(public.tbl_benutzer.uid=public.tbl_mitarbeiter.mitarbeiter_uid)
|
||||
WHERE public.tbl_person.person_id=".$db->db_add_param($bid, FHC_INTEGER);
|
||||
|
||||
if(!$betr=$db->db_query($qry_betr))
|
||||
{
|
||||
$qry_std="SELECT * FROM campus.vw_benutzer where uid=".$db->db_add_param($uid);
|
||||
if(!$result_std=$db->db_query($qry_std))
|
||||
echo "<font color=\"#FF0000\">".$p->t('global/fehlerBeimLesenAusDatenbank')."</font><br> ";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($row_betr=$db->db_fetch_object($betr))
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('global/fehlerBeimLesenAusDatenbank')."</font><br> ";
|
||||
$qry_std="SELECT * FROM campus.vw_benutzer where uid=".$db->db_add_param($uid);
|
||||
if(!$result_std=$db->db_query($qry_std))
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('global/fehlerBeimLesenAusDatenbank')."</font><br> ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$row_std=$db->db_fetch_object($result_std);
|
||||
|
||||
$mail = new mail($row_betr->mitarbeiter_uid."@".DOMAIN, "no-reply@".DOMAIN, "Bachelor-/Masterarbeitsbetreuung",
|
||||
"Sehr geehrte".($row_betr->anrede=="Herr"?"r":"")." ".$row_betr->anrede." ".$row_betr->first."!\n\n".($row_std->anrede)." ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)." hat eine Abgabe vorgenommen.\n\n--------------------------------------------------------------------------\nDies ist ein vom Bachelor-/Masterarbeitsabgabesystem generiertes Info-Mail\nCis->Mein CIS->Projektarbeiten->Bachelor- und Masterarbeitsabgabe\n--------------------------------------------------------------------------");
|
||||
$mail->setReplyTo($user."@".DOMAIN);
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailBegutachter')."</font><br> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$row_std=$db->db_fetch_object($result_std);
|
||||
|
||||
$mail = new mail($row_betr->mitarbeiter_uid."@".DOMAIN, "no-reply@".DOMAIN, "Bachelor-/Masterarbeitsbetreuung",
|
||||
"Sehr geehrte".($row_betr->anrede=="Herr"?"r":"")." ".$row_betr->anrede." ".$row_betr->first."!\n\n".($row_std->anrede)." ".trim($row_std->titelpre." ".$row_std->vorname." ".$row_std->nachname." ".$row_std->titelpost)." hat eine Abgabe vorgenommen.\n\n--------------------------------------------------------------------------\nDies ist ein vom Bachelor-/Masterarbeitsabgabesystem generiertes Info-Mail\nCis->Mein CIS->Projektarbeiten->Bachelor- und Masterarbeitsabgabe\n--------------------------------------------------------------------------");
|
||||
$mail->setReplyTo($user."@".DOMAIN);
|
||||
if(!$mail->send())
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerMailBegutachter')."</font><br> ";
|
||||
}
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerBetreuerNichtGefundenKeinMail')."</font><br> ";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerBetreuerNichtGefundenKeinMail')."</font><br> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $p->t('abgabetool/keinPDF');
|
||||
else
|
||||
{
|
||||
echo $p->t('abgabetool/keinPDF');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$error=false;
|
||||
else
|
||||
{
|
||||
echo "<font color=\"#FF0000\">".$p->t('abgabetool/fehlerTerminVorbei').'</font>';
|
||||
}
|
||||
|
||||
$error=false;
|
||||
}
|
||||
if($command!="add" && $command!="update")
|
||||
if($command!="add" && $command!="update")
|
||||
{
|
||||
$command="update";
|
||||
}
|
||||
@@ -455,13 +469,13 @@ if($command!="add")
|
||||
echo '<h2>'.$p->t('abgabetool/abgabeStudentenbereich').'</h2>';
|
||||
|
||||
//Einlesen der Termine
|
||||
$qry="";
|
||||
$qry="";
|
||||
$htmlstr = "<div>".$p->t('abgabetool/betreuer').": <b>".$db->convert_html_chars($betreuer)."</b><br>".$p->t('abgabetool/titel').": <b>".$db->convert_html_chars($titel)."<b><br><br><b>".$p->t('abgabetool/abgabetermine').":</b></div>\n";
|
||||
$htmlstr .= "<table class='detail' style='padding-top:10px;'>\n";
|
||||
$htmlstr .= "<tr></tr>\n";
|
||||
|
||||
|
||||
$qry="SELECT * FROM campus.tbl_paabgabe WHERE projektarbeit_id=".$db->db_add_param($projektarbeit_id, FHC_INTEGER)." AND paabgabetyp_kurzbz!='note' ORDER BY datum;";
|
||||
|
||||
|
||||
$htmlstr .= "<tr><td>".$p->t('abgabetool/fix')."</td><td>".$p->t('abgabetool/datum')." </td><td>".$p->t('abgabetool/abgabetyp')."</td><td>".$p->t('abgabetool/beschreibungAbgabe')."</td><td>".$p->t('abgabetool/abgegebenAm')."</td><td colspan='2'>".$p->t('abgabetool/dateiupload')."(<b>".$p->t('abgabetool/nurPDF')."</b>)</td><td></td></tr>\n";
|
||||
$result=@$db->db_query($qry);
|
||||
while ($row=@$db->db_fetch_object($result))
|
||||
@@ -497,14 +511,14 @@ if($command!="add")
|
||||
$bgcol='#FFFF00';
|
||||
$fcol='#000000';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//"normaler" Termin - schwarz auf weiß
|
||||
$bgcol='#FFFFFF';
|
||||
$fcol='#000000';
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
if($row->abgabedatum>$row->datum)
|
||||
{
|
||||
@@ -512,7 +526,7 @@ if($command!="add")
|
||||
$bgcol='#EA7B7B';
|
||||
$fcol='#FFFFFF';
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//Abgabe vor Termin - schwarz auf grün
|
||||
$bgcol='#00FF00';
|
||||
@@ -524,38 +538,38 @@ if($command!="add")
|
||||
{
|
||||
$htmlstr .= "<td><img src='../../../skin/images/bullet_red.png' alt='J' title='".$p->t('abgabetool/fixerAbgabetermin')."' border=0></td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
$htmlstr .= "<td><img src='../../../skin/images/bullet_green.png' alt='N' title='".$p->t('abgabetool/variablerAbgabetermin')."' border=0></td>";
|
||||
}
|
||||
$htmlstr .= " </td>\n";
|
||||
$htmlstr .= " <td align='center' style='background-color:".$bgcol.";font-weight:bold; color:".$fcol."'>".$datum_obj->formatDatum($row->datum,'d.m.Y')."</td>\n";
|
||||
|
||||
|
||||
$qry_typ="SELECT * FROM campus.tbl_paabgabetyp WHERE paabgabetyp_kurzbz=".$db->db_add_param($row->paabgabetyp_kurzbz);
|
||||
|
||||
|
||||
$result_typ=$db->db_query($qry_typ);
|
||||
$row_typ=$db->db_fetch_object($result_typ);
|
||||
$htmlstr .= " <td>$row_typ->bezeichnung</td>\n";
|
||||
$htmlstr .= " <td width='250'>$row->kurzbz</td>\n";
|
||||
$htmlstr .= " <td width='250'>$row->kurzbz</td>\n";
|
||||
$htmlstr .= " <td align='center'>".$datum_obj->formatDatum($row->abgabedatum,'d.m.Y');
|
||||
if($row->abgabedatum!='')
|
||||
$htmlstr .= ' <a href="abgabe_student_file.php?abgabe_id='.$row->paabgabe_id.'&student_uid='.$uid.'" target="_blank" title="'.$p->t('abgabetool/downloadProjektarbeit').'"><img src="../../../skin/images/pdfpic.gif"></a>';
|
||||
$htmlstr .= "</td>\n";
|
||||
|
||||
$htmlstr .= "</td>\n";
|
||||
|
||||
//Überschrittene Termine
|
||||
if($row->paabgabetyp_kurzbz=='enda')
|
||||
{
|
||||
//Bei Endabgabe kein Upload - Abgabe erfolgt im Sekretariat
|
||||
$htmlstr .= " <td> </td><td> </td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
if($row->fixtermin=='t' && $row->datum<date('Y-m-d'))
|
||||
{
|
||||
//Termin ist überschritten - es wird kein Upload für diesen Termin mehr angeboten
|
||||
$htmlstr .= " <td> </td><td> ".$p->t('abgabetool/terminVorbei')."</td>";
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
//Datei kann hochgeladen werden
|
||||
$htmlstr .= " <td><input type='file' name='datei' size='60' accept='application/pdf'></td>\n";
|
||||
@@ -563,14 +577,32 @@ if($command!="add")
|
||||
}
|
||||
}
|
||||
$htmlstr .= " </tr>\n";
|
||||
|
||||
|
||||
$htmlstr .= "</form>\n";
|
||||
}
|
||||
|
||||
|
||||
$command!="";
|
||||
$htmlstr .= "</table>\n";
|
||||
echo $htmlstr;
|
||||
echo '</body></html>';
|
||||
}
|
||||
|
||||
function isAbgabeOutOfDate($paabgabe_id)
|
||||
{
|
||||
$db = new basis_db();
|
||||
$qry = "SELECT * FROM campus.tbl_paabgabe WHERE paabgabe_id=".$db->db_add_param($paabgabe_id);
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($row = $db->db_fetch_object($result))
|
||||
{
|
||||
if($row->datum < date('Y-m-d') && $row->fixtermin=='t')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -23,10 +23,15 @@
|
||||
require_once('../config/vilesci.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/variable.class.php');
|
||||
require_once('../include/benutzer.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
$variable = new variable();
|
||||
$variable->loadVariables(get_uid());
|
||||
if(false): ?> <script type="text/javascript"> <?php endif;
|
||||
$variable->loadVariables($user);
|
||||
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($user);
|
||||
?>
|
||||
|
||||
var currentAuswahl=new auswahlValues();
|
||||
@@ -1191,14 +1196,17 @@ function MessageNew()
|
||||
{
|
||||
var tree = document.getElementById('student-tree');
|
||||
|
||||
if(tree.currentIndex==-1)
|
||||
if (tree.currentIndex == -1)
|
||||
{
|
||||
alert("Bitte markieren Sie zuerst eine Person");
|
||||
}
|
||||
else
|
||||
{
|
||||
var person_id = getTreeCellText(tree, 'student-treecol-person_id', tree.currentIndex);
|
||||
window.open('<?php echo APP_ROOT ?>/index.ci.php/system/Messages/outbox/'+person_id,'Outbox','');
|
||||
var prestudentIdArray = getMultipleTreeCellText(tree, 'student-treecol-prestudent_id');
|
||||
|
||||
var action = '<?php echo APP_ROOT ?>index.ci.php/system/Messages/write/' + <?php echo $benutzer->person_id; ?>;
|
||||
|
||||
openWindowPostArray(action, 'prestudent_id', prestudentIdArray);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -261,6 +261,55 @@ function getTreeCellText(tree, col, idx)
|
||||
return tree.view.getCellText(idx, col);
|
||||
}
|
||||
|
||||
/**
|
||||
* Like getTreeCellText, but returns all the selected values (= cooler!)
|
||||
* @param: tree
|
||||
* @param: col
|
||||
*/
|
||||
function getMultipleTreeCellText(tree, col)
|
||||
{
|
||||
var start = new Object();
|
||||
var end = new Object();
|
||||
var numRanges = tree.view.selection.getRangeCount();
|
||||
var returnArray = new Array();
|
||||
|
||||
for (var t = 0; t < numRanges; t++)
|
||||
{
|
||||
tree.view.selection.getRangeAt(t, start, end);
|
||||
for (var v = start.value; v <= end.value; v++)
|
||||
{
|
||||
returnArray.push(getTreeCellText(tree, col, v));
|
||||
}
|
||||
}
|
||||
|
||||
return returnArray;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a window with a form inside and a hidden input for each element of the given array
|
||||
* @param: action
|
||||
* @param: dataName
|
||||
* @param: data
|
||||
*/
|
||||
function openWindowPostArray(action, dataName, data)
|
||||
{
|
||||
var FORM_HEAD = "<form id='postform-form' name='postfrm' action='' method='POST'>\n";
|
||||
var FORM_FOOT = "</form>";
|
||||
|
||||
var inputsHidden = "";
|
||||
|
||||
for (var i = 0; i < data.length; i++)
|
||||
{
|
||||
inputsHidden += " <input type='hidden' name='" + dataName + "[]' value='" + data[i] + "' />\n";
|
||||
}
|
||||
|
||||
var newwindow = window.open("", "FAS");
|
||||
newwindow.document.getElementsByTagName('body')[0].innerHTML = FORM_HEAD + inputsHidden + FORM_FOOT;
|
||||
newwindow.document.getElementById('postform-form').action = action;
|
||||
|
||||
newwindow.document.postfrm.submit();
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Trim Member Function fuer Strings
|
||||
// ****
|
||||
|
||||
+14
-1
@@ -93,7 +93,20 @@ function loadMessages(person_id, fas_person_id)
|
||||
// ****
|
||||
function MessagesNewMessage()
|
||||
{
|
||||
window.open('<?php echo APP_ROOT ?>index.ci.php/system/Messages/write/'+MessageSenderPersonID+'/'+MessagePersonID,'Message','');
|
||||
var tree = parent.document.getElementById('student-tree');
|
||||
|
||||
if (tree.currentIndex == -1)
|
||||
{
|
||||
alert("Bitte markieren Sie zuerst eine Person");
|
||||
}
|
||||
else
|
||||
{
|
||||
var prestudentIdArray = getMultipleTreeCellText(tree, 'student-treecol-prestudent_id');
|
||||
|
||||
var action = '<?php echo APP_ROOT ?>index.ci.php/system/Messages/write/' + MessageSenderPersonID;
|
||||
|
||||
openWindowPostArray(action, 'prestudent_id', prestudentIdArray);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -149,7 +149,7 @@ echo ']>
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#punkte" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="aufnahmetermine-tree-teilgenommen" label="Teilgenommen" flex="1" hidden="false"
|
||||
<treecol id="aufnahmetermine-tree-teilgenommen" label="Teilgen." flex="1" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#teilgenommen" />
|
||||
<splitter class="tree-splitter"/>
|
||||
@@ -177,6 +177,10 @@ echo ']>
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_id" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="aufnahmetermine-tree-studienplan_studiengang" label="Stg" flex="2" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_studiengang" />
|
||||
<splitter class="tree-splitter"/>
|
||||
</treecols>
|
||||
|
||||
<template>
|
||||
@@ -197,6 +201,7 @@ echo ']>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#rt_person_id"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_bezeichnung"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_id"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/aufnahmetermine/rdf#studienplan_studiengang"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
@@ -227,12 +232,13 @@ echo ']>
|
||||
<label value="Reihungstest / Interview" control="aufnahmetermine-menulist-reihungstest"/>
|
||||
<hbox>
|
||||
<menulist id="aufnahmetermine-menulist-reihungstest" disabled="true"
|
||||
datasources="rdf:null" flex="1"
|
||||
datasources="rdf:null" flex="1" style="width:200px"
|
||||
ref="http://www.technikum-wien.at/reihungstest/alle">
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/reihungstest/rdf#reihungstest_id"
|
||||
label="rdf:http://www.technikum-wien.at/reihungstest/rdf#bezeichnung"
|
||||
tooltiptext="rdf:http://www.technikum-wien.at/reihungstest/rdf#bezeichnung"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
</template>
|
||||
|
||||
@@ -73,6 +73,7 @@ require_once('../../include/adresse.class.php');
|
||||
require_once('../../include/reihungstest.class.php');
|
||||
require_once('../../include/studienplan.class.php');
|
||||
require_once('../../include/mobilitaet.class.php');
|
||||
require_once('../../include/studienordnung.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
$db = new basis_db();
|
||||
@@ -3576,6 +3577,7 @@ if(!$error)
|
||||
$projektarbeit->anmerkung = $_POST['anmerkung'];
|
||||
$projektarbeit->updateamum = date('Y-m-d H:i:s');
|
||||
$projektarbeit->updatevon = $user;
|
||||
$projektarbeit->final = ($_POST['final']=='true'?true:false);
|
||||
|
||||
if(!$error)
|
||||
{
|
||||
@@ -4154,17 +4156,57 @@ if(!$error)
|
||||
}
|
||||
else
|
||||
{
|
||||
$gesamtpunkte=0;
|
||||
$gesamtpunkte_arr = array();
|
||||
$reihungstest = new reihungstest();
|
||||
if($reihungstest->getReihungstestPerson($prestudent->person_id))
|
||||
{
|
||||
foreach($reihungstest->result as $row)
|
||||
$gesamtpunkte += $row->punkte;
|
||||
{
|
||||
$studienplan = new studienplan();
|
||||
if($studienplan->loadStudienplan($row->studienplan_id))
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
if($studienordnung->loadStudienordnung($studienplan->studienordnung_id))
|
||||
{
|
||||
if($studienordnung->studiengang_kz == $prestudent->studiengang_kz)
|
||||
{
|
||||
$rt_obj = new reihungstest();
|
||||
$rt_obj->load($row->reihungstest_id);
|
||||
if(!isset($gesamtpunkte_arr[$rt_obj->studiensemester_kurzbz]))
|
||||
$gesamtpunkte_arr[$rt_obj->studiensemester_kurzbz]=0;
|
||||
$gesamtpunkte_arr[$rt_obj->studiensemester_kurzbz] += $row->punkte;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$return = false;
|
||||
$errormsg = $studienordnung->errormsg;
|
||||
$error = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$return = false;
|
||||
$errormsg = $studienplan->errormsg;
|
||||
$error = true;
|
||||
}
|
||||
}
|
||||
|
||||
$return = true;
|
||||
$error = false;
|
||||
$data = $gesamtpunkte;
|
||||
$errormsg = 'Erfolgreich gespeichert';
|
||||
if(!$error)
|
||||
{
|
||||
if(count(array_keys($gesamtpunkte_arr))>0)
|
||||
{
|
||||
$studiensemester = new studiensemester();
|
||||
$stsem = $studiensemester->getYoungestFromArray(array_keys($gesamtpunkte_arr));
|
||||
$gesamtpunkte = $gesamtpunkte_arr[$stsem];
|
||||
}
|
||||
else
|
||||
$gesamtpunkte = '0';
|
||||
$return = true;
|
||||
$error = false;
|
||||
$data = $gesamtpunkte;
|
||||
$errormsg = 'Erfolgreich gespeichert';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ var StudentProjektbetreuerSelectBetreuerartKurzbz=null;
|
||||
// ****
|
||||
var StudentProjektarbeitTreeSinkObserver =
|
||||
{
|
||||
onBeginLoad : function(pSink)
|
||||
onBeginLoad : function(pSink)
|
||||
{
|
||||
//Eventlistener waehrend des Ladevorganges deaktivieren da es sonst
|
||||
//zu Problemen kommt
|
||||
@@ -81,8 +81,8 @@ var StudentProjektarbeitTreeListener =
|
||||
// ****
|
||||
var StudentProjektbetreuerTreeSinkObserver =
|
||||
{
|
||||
onBeginLoad : function(pSink)
|
||||
{
|
||||
onBeginLoad : function(pSink)
|
||||
{
|
||||
//Eventlistener waehrend des Ladevorganges deaktivieren da es sonst
|
||||
//zu Problemen kommt
|
||||
tree = document.getElementById('student-projektbetreuer-tree');
|
||||
@@ -133,7 +133,7 @@ function StudentProjektarbeitTreeLoad(uid)
|
||||
}
|
||||
catch(e)
|
||||
{}
|
||||
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = tree.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
@@ -150,7 +150,7 @@ function StudentProjektarbeitTreeLoad(uid)
|
||||
tree.database.AddDataSource(StudentProjektarbeitTreeDatasource);
|
||||
StudentProjektarbeitTreeDatasource.addXMLSinkObserver(StudentProjektarbeitTreeSinkObserver);
|
||||
tree.builder.addListener(StudentProjektarbeitTreeListener);
|
||||
|
||||
|
||||
StudentProjektarbeitDisableFields(false);
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ function StudentProjektarbeitDisableAll()
|
||||
{
|
||||
//Tree Leeren
|
||||
var tree = document.getElementById('student-projektarbeit-tree');
|
||||
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = tree.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
@@ -170,7 +170,7 @@ function StudentProjektarbeitDisableAll()
|
||||
}
|
||||
//Refresh damit die entfernten DS auch wirklich entfernt werden
|
||||
tree.builder.rebuild();
|
||||
|
||||
|
||||
StudentProjektarbeitDisableFields(true);
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ function StudentProjektarbeitDisableFields(val)
|
||||
{
|
||||
document.getElementById('student-projektarbeit-button-neu').disabled=val;
|
||||
document.getElementById('student-projektarbeit-button-loeschen').disabled=val;
|
||||
|
||||
|
||||
if(val)
|
||||
{
|
||||
StudentProjektarbeitDetailDisableFields(val);
|
||||
@@ -211,7 +211,8 @@ function StudentProjektarbeitDetailDisableFields(val)
|
||||
document.getElementById('student-projektarbeit-textbox-gesamtstunden').disabled=val;
|
||||
document.getElementById('student-projektarbeit-textbox-themenbereich').disabled=val;
|
||||
document.getElementById('student-projektarbeit-textbox-anmerkung').disabled=val;
|
||||
|
||||
document.getElementById('student-projektarbeit-checkbox-final').disabled=val;
|
||||
|
||||
if(val)
|
||||
StudentProjektarbeitResetFields();
|
||||
}
|
||||
@@ -246,6 +247,7 @@ function StudentProjektarbeitResetFields()
|
||||
document.getElementById('student-projektarbeit-menulist-firma').value='';
|
||||
document.getElementById('student-projektarbeit-menulist-note').value='';
|
||||
document.getElementById('student-projektarbeit-menulist-projekttyp').value='Bachelor';
|
||||
document.getElementById('student-projektarbeit-checkbox-final').checked=true;
|
||||
}
|
||||
|
||||
// *****
|
||||
@@ -294,7 +296,7 @@ function StudentProjektarbeitAuswahl()
|
||||
|
||||
StudentProjektarbeitDetailDisableFields(false);
|
||||
StudentProjektbetreuerDetailDisableFields(true);
|
||||
|
||||
|
||||
//Ausgewaehlte Nr holen
|
||||
var col = tree.columns ? tree.columns["student-projektarbeit-tree-projektarbeit_id"] : "student-projektarbeit-treecol-projektarbeit_id";
|
||||
var projektarbeit_id=tree.view.getCellText(tree.currentIndex,col);
|
||||
@@ -332,12 +334,13 @@ function StudentProjektarbeitAuswahl()
|
||||
themenbereich = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#themenbereich" ));
|
||||
anmerkung = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#anmerkung" ));
|
||||
gesamtstunden = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#gesamtstunden" ));
|
||||
|
||||
final = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#final" ));
|
||||
|
||||
//var verband_tree=document.getElementById('tree-verband');
|
||||
//var col = verband_tree.columns ? verband_tree.columns["stg_kz"] : "stg_kz";
|
||||
//var stg_kz=verband_tree.view.getCellText(verband_tree.currentIndex,col);
|
||||
var stg_kz = studiengang_kz = document.getElementById('student-detail-menulist-studiengang_kz').value;
|
||||
|
||||
|
||||
//Lehrveranstaltung DropDown laden
|
||||
var LvDropDown = document.getElementById('student-projektarbeit-menulist-lehrveranstaltung');
|
||||
url='<?php echo APP_ROOT;?>rdf/lehrveranstaltung.rdf.php?stg_kz='+stg_kz+"&projektarbeit=true&withlv="+lehrveranstaltung_id+"&"+gettimestamp();
|
||||
@@ -356,13 +359,13 @@ function StudentProjektarbeitAuswahl()
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFXMLSink);
|
||||
LvDropDown.database.AddDataSource(datasource);
|
||||
|
||||
|
||||
LvDropDown.builder.rebuild();
|
||||
|
||||
// Lehreinheit Drop Down laden
|
||||
var LeDropDown = document.getElementById('student-projektarbeit-menulist-lehreinheit');
|
||||
url='<?php echo APP_ROOT;?>rdf/lehreinheit.rdf.php?lehrveranstaltung_id='+lehrveranstaltung_id+"&studiensemester_kurzbz="+lehreinheit_stsem+"&"+gettimestamp();
|
||||
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = LeDropDown.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
@@ -377,9 +380,9 @@ function StudentProjektarbeitAuswahl()
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFXMLSink);
|
||||
LeDropDown.database.AddDataSource(datasource);
|
||||
|
||||
|
||||
LeDropDown.builder.rebuild();
|
||||
|
||||
|
||||
//Werte setzen
|
||||
document.getElementById('student-projektarbeit-textbox-projektarbeit_id').value=projektarbeit_id;
|
||||
document.getElementById('student-projektarbeit-menulist-projekttyp').value=projekttyp_kurzbz;
|
||||
@@ -403,11 +406,15 @@ function StudentProjektarbeitAuswahl()
|
||||
document.getElementById('student-projektarbeit-textbox-themenbereich').value=themenbereich;
|
||||
document.getElementById('student-projektarbeit-textbox-anmerkung').value=anmerkung;
|
||||
document.getElementById('student-projektarbeit-checkbox-neu').checked=false;
|
||||
|
||||
if(final=='Ja')
|
||||
document.getElementById('student-projektarbeit-checkbox-final').checked=true;
|
||||
else
|
||||
document.getElementById('student-projektarbeit-checkbox-final').checked=false;
|
||||
|
||||
// **** BETREUER **** //
|
||||
var tree = document.getElementById('student-projektbetreuer-tree');
|
||||
var url='<?php echo APP_ROOT;?>rdf/projektbetreuer.rdf.php?projektarbeit_id='+projektarbeit_id+"&"+gettimestamp();
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
StudentProjektbetreuerTreeDatasource.removeXMLSinkObserver(StudentProjektbetreuerTreeSinkObserver);
|
||||
@@ -415,7 +422,7 @@ function StudentProjektarbeitAuswahl()
|
||||
}
|
||||
catch(e)
|
||||
{}
|
||||
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = tree.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
@@ -433,7 +440,7 @@ function StudentProjektarbeitAuswahl()
|
||||
StudentProjektbetreuerTreeDatasource.addXMLSinkObserver(StudentProjektbetreuerTreeSinkObserver);
|
||||
tree.builder.addListener(StudentProjektbetreuerTreeListener);
|
||||
StudentProjektbetreuerDisableFields(false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
// ****
|
||||
@@ -444,7 +451,7 @@ function StudentProjektarbeitFirmaRefresh()
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var tree = document.getElementById('student-projektarbeit-menulist-firma');
|
||||
var url="<?php echo APP_ROOT ?>rdf/firma.rdf.php?optional=true&"+gettimestamp();
|
||||
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = tree.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
@@ -453,7 +460,7 @@ function StudentProjektarbeitFirmaRefresh()
|
||||
}
|
||||
//Refresh damit die entfernten DS auch wirklich entfernt werden
|
||||
tree.builder.rebuild();
|
||||
|
||||
|
||||
var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);
|
||||
var myDatasource = rdfService.GetDataSource(url);
|
||||
tree.database.AddDataSource(myDatasource);
|
||||
@@ -485,16 +492,17 @@ function StudentProjektarbeitSpeichern()
|
||||
themenbereich = document.getElementById('student-projektarbeit-textbox-themenbereich').value;
|
||||
anmerkung = document.getElementById('student-projektarbeit-textbox-anmerkung').value;
|
||||
neu = document.getElementById('student-projektarbeit-checkbox-neu').checked;
|
||||
final = document.getElementById('student-projektarbeit-checkbox-final').checked;
|
||||
|
||||
student_uid =document.getElementById('student-detail-textbox-uid').value;
|
||||
studiengang_kz = document.getElementById('student-prestudent-menulist-studiengang_kz').value;
|
||||
|
||||
|
||||
if(student_uid=='')
|
||||
{
|
||||
alert('UID dieser Person konnte nicht ermittelt werden');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//Datum pruefen
|
||||
if(beginn!='' && !CheckDatum(beginn))
|
||||
{
|
||||
@@ -507,7 +515,7 @@ function StudentProjektarbeitSpeichern()
|
||||
alert('Ende ist ungueltig');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(gesperrtbis!='' && !CheckDatum(gesperrtbis))
|
||||
{
|
||||
alert('gesperrtbis ist ungueltig');
|
||||
@@ -519,15 +527,15 @@ function StudentProjektarbeitSpeichern()
|
||||
alert('Bitte eine Lehreinheit Auswaehlen');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if(isNaN(gesamtstunden))
|
||||
gesamtstunden=0;
|
||||
|
||||
|
||||
var url = '<?php echo APP_ROOT ?>content/student/studentDBDML.php';
|
||||
var req = new phpRequest(url,'','');
|
||||
|
||||
req.add('type', 'saveprojektarbeit');
|
||||
|
||||
|
||||
req.add('projektarbeit_id', projektarbeit_id);
|
||||
req.add('projekttyp_kurzbz', projekttyp_kurzbz );
|
||||
req.add('titel', titel);
|
||||
@@ -548,6 +556,7 @@ function StudentProjektarbeitSpeichern()
|
||||
req.add('anmerkung', anmerkung);
|
||||
req.add('neu', neu);
|
||||
req.add('studiengang_kz', studiengang_kz);
|
||||
req.add('final', final);
|
||||
|
||||
var response = req.executePOST();
|
||||
|
||||
@@ -576,7 +585,7 @@ function StudentProjektarbeitSpeichern()
|
||||
function StudentProjektarbeitNeu()
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
|
||||
document.getElementById('student-projektarbeit-checkbox-neu').checked=true;
|
||||
document.getElementById('student-projektarbeit-textbox-projektarbeit_id').value='';
|
||||
StudentProjektarbeitResetFields();
|
||||
@@ -586,7 +595,7 @@ function StudentProjektarbeitNeu()
|
||||
//var col = verband_tree.columns ? verband_tree.columns["stg_kz"] : "stg_kz";
|
||||
//var stg_kz=verband_tree.view.getCellText(verband_tree.currentIndex,col);
|
||||
var stg_kz = studiengang_kz = document.getElementById('student-detail-menulist-studiengang_kz').value;
|
||||
|
||||
|
||||
//Lehrveranstaltung DropDown laden
|
||||
var LvDropDown = document.getElementById('student-projektarbeit-menulist-lehrveranstaltung');
|
||||
url='<?php echo APP_ROOT;?>rdf/lehrveranstaltung.rdf.php?stg_kz='+stg_kz+"&projektarbeit=true&"+gettimestamp();
|
||||
@@ -605,7 +614,7 @@ function StudentProjektarbeitNeu()
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFXMLSink);
|
||||
LvDropDown.database.AddDataSource(datasource);
|
||||
|
||||
|
||||
LvDropDown.builder.rebuild();
|
||||
}
|
||||
|
||||
@@ -618,8 +627,8 @@ function StudentProjektarbeitLoeschen()
|
||||
var tree = document.getElementById('student-projektarbeit-tree');
|
||||
|
||||
studiengang_kz = document.getElementById('student-prestudent-menulist-studiengang_kz').value;
|
||||
|
||||
if (tree.currentIndex==-1)
|
||||
|
||||
if (tree.currentIndex==-1)
|
||||
{
|
||||
alert('Bitte zuerst einen Eintrag markieren');
|
||||
return false;
|
||||
@@ -629,14 +638,14 @@ function StudentProjektarbeitLoeschen()
|
||||
var col = tree.columns ? tree.columns["student-projektarbeit-tree-projektarbeit_id"] : "student-projektarbeit-tree-projektarbeit_id";
|
||||
var projektarbeit_id=tree.view.getCellText(tree.currentIndex,col);
|
||||
var url = '<?php echo APP_ROOT ?>content/student/studentDBDML.php';
|
||||
|
||||
|
||||
var req = new phpRequest(url,'','');
|
||||
|
||||
req.add('type', 'deleteprojektarbeit');
|
||||
|
||||
|
||||
req.add('projektarbeit_id', projektarbeit_id);
|
||||
req.add('studiengang_kz', studiengang_kz);
|
||||
|
||||
|
||||
var response = req.executePOST();
|
||||
|
||||
var val = new ParseReturnValue(response)
|
||||
@@ -658,20 +667,20 @@ function StudentProjektarbeitLoeschen()
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Wenn die Lehrveranstaltung geaendert wird, dann
|
||||
// * Wenn die Lehrveranstaltung geaendert wird, dann
|
||||
// * muss das LehreinheitenDropDown neu geladen werden
|
||||
// ****
|
||||
function StudentProjektarbeitLVAChange()
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
|
||||
lehrveranstaltung_id = document.getElementById('student-projektarbeit-menulist-lehrveranstaltung').value;
|
||||
studiensemester_kurzbz = getStudiensemester();
|
||||
|
||||
|
||||
// Lehreinheit Drop Down laden
|
||||
var LeDropDown = document.getElementById('student-projektarbeit-menulist-lehreinheit');
|
||||
url='<?php echo APP_ROOT;?>rdf/lehreinheit.rdf.php?lehrveranstaltung_id='+lehrveranstaltung_id+"&studiensemester_kurzbz="+studiensemester_kurzbz+"&"+gettimestamp();
|
||||
|
||||
|
||||
//Alte DS entfernen
|
||||
var oldDatasources = LeDropDown.database.GetDataSources();
|
||||
while(oldDatasources.hasMoreElements())
|
||||
@@ -686,9 +695,9 @@ function StudentProjektarbeitLVAChange()
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
|
||||
datasource.QueryInterface(Components.interfaces.nsIRDFXMLSink);
|
||||
LeDropDown.database.AddDataSource(datasource);
|
||||
|
||||
|
||||
LeDropDown.selectedIndex=-1;
|
||||
|
||||
|
||||
LeDropDown.builder.rebuild();
|
||||
}
|
||||
|
||||
@@ -705,7 +714,7 @@ function StudentProjektbetreuerTreeSelectID()
|
||||
else
|
||||
return false;
|
||||
|
||||
|
||||
|
||||
//In der globalen Variable ist die zu selektierende Eintrag gespeichert
|
||||
if(StudentProjektbetreuerSelectPersonID!=null)
|
||||
{
|
||||
@@ -744,7 +753,7 @@ function StudentProjektbetreuerAuswahl()
|
||||
if (tree.currentIndex==-1) return;
|
||||
|
||||
StudentProjektbetreuerDetailDisableFields(false);
|
||||
|
||||
|
||||
//Ausgewaehlte Nr holen
|
||||
var col = tree.columns ? tree.columns["student-projektbetreuer-tree-projektarbeit_id"] : "student-projektbetreuer-treecol-projektarbeit_id";
|
||||
var projektarbeit_id=tree.view.getCellText(tree.currentIndex,col);
|
||||
@@ -758,7 +767,7 @@ function StudentProjektbetreuerAuswahl()
|
||||
debug('StudentProjektbetreuerAuswahl: Fehler beim Laden');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//Daten holen
|
||||
var url = '<?php echo APP_ROOT ?>rdf/projektbetreuer.rdf.php?projektarbeit_id='+projektarbeit_id+'&person_id='+person_id+'&betreuerart_kurzbz='+betreuerart_kurzbz+'&'+gettimestamp();
|
||||
|
||||
@@ -781,9 +790,9 @@ function StudentProjektbetreuerAuswahl()
|
||||
stundensatz = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#stundensatz" ));
|
||||
betreuerart_kurzbz = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#betreuerart_kurzbz" ));
|
||||
person_nachname = getTargetHelper(dsource,subject,rdfService.GetResource( predicateNS + "#person_nachname" ));
|
||||
|
||||
|
||||
StudentProjektbetreuerMenulistPersonLoad(document.getElementById('student-projektbetreuer-menulist-person'), person_nachname);
|
||||
|
||||
|
||||
//Werte setzen
|
||||
MenulistSelectItemOnValue('student-projektbetreuer-menulist-person', person_id);
|
||||
document.getElementById('student-projektbetreuer-menulist-note').value=note;
|
||||
@@ -795,7 +804,7 @@ function StudentProjektbetreuerAuswahl()
|
||||
document.getElementById('student-projektbetreuer-menulist-betreuerart').value=betreuerart_kurzbz;
|
||||
document.getElementById('student-projektbetreuer-textbox-betreuerart_kurzbz_old').value=betreuerart_kurzbz;
|
||||
document.getElementById('student-projektbetreuer-textbox-person_id').value=person_id;
|
||||
document.getElementById('student-projektbetreuer-checkbox-neu').checked=false;
|
||||
document.getElementById('student-projektbetreuer-checkbox-neu').checked=false;
|
||||
}
|
||||
|
||||
// *****
|
||||
@@ -805,7 +814,7 @@ function StudentProjektbetreuerDisableFields(val)
|
||||
{
|
||||
document.getElementById('student-projektbetreuer-button-neu').disabled=val;
|
||||
document.getElementById('student-projektbetreuer-button-loeschen').disabled=val;
|
||||
|
||||
|
||||
if(val)
|
||||
{
|
||||
tree = document.getElementById('student-projektbetreuer-tree');
|
||||
@@ -815,7 +824,7 @@ function StudentProjektbetreuerDisableFields(val)
|
||||
tree.database.RemoveDataSource(oldDatasources.getNext());
|
||||
}
|
||||
tree.builder.rebuild();
|
||||
|
||||
|
||||
StudentProjektbetreuerDetailDisableFields(val);
|
||||
}
|
||||
}
|
||||
@@ -878,7 +887,7 @@ function StudentProjektbetreuerMenulistPersonLoad(menulist, filter)
|
||||
v = filter;
|
||||
|
||||
if(v.length>2)
|
||||
{
|
||||
{
|
||||
var url = '<?php echo APP_ROOT; ?>rdf/person.rdf.php?filter='+encodeURIComponent(v)+'&'+gettimestamp();
|
||||
//nurmittitel=&
|
||||
var oldDatasources = menulist.database.GetDataSources();
|
||||
@@ -888,7 +897,7 @@ function StudentProjektbetreuerMenulistPersonLoad(menulist, filter)
|
||||
}
|
||||
//Refresh damit die entfernten DS auch wirklich entfernt werden
|
||||
menulist.builder.rebuild();
|
||||
|
||||
|
||||
var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);
|
||||
if(typeof(filter)=='undefined')
|
||||
var datasource = rdfService.GetDataSource(url);
|
||||
@@ -908,7 +917,7 @@ function StudentProjektbetreuerMenulistPersonLoad(menulist, filter)
|
||||
function StudentProjektbetreuerSpeichern()
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
|
||||
person_id = MenulistGetSelectedValue('student-projektbetreuer-menulist-person');
|
||||
note = document.getElementById('student-projektbetreuer-menulist-note').value;
|
||||
faktor = document.getElementById('student-projektbetreuer-textbox-faktor').value;
|
||||
@@ -920,9 +929,9 @@ function StudentProjektbetreuerSpeichern()
|
||||
betreuerart_kurzbz_old = document.getElementById('student-projektbetreuer-textbox-betreuerart_kurzbz_old').value;
|
||||
person_id_old = document.getElementById('student-projektbetreuer-textbox-person_id').value;
|
||||
neu = document.getElementById('student-projektbetreuer-checkbox-neu').checked;
|
||||
|
||||
|
||||
studiengang_kz = document.getElementById('student-prestudent-menulist-studiengang_kz').value;
|
||||
|
||||
|
||||
var tree = document.getElementById('student-projektarbeit-tree');
|
||||
|
||||
if(person_id=='')
|
||||
@@ -930,7 +939,7 @@ function StudentProjektbetreuerSpeichern()
|
||||
alert('Bitte zuerst einen Betreuer auswaehlen');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (tree.currentIndex==-1)
|
||||
{
|
||||
alert('Projektarbeit muss ausgewaehlt sein');
|
||||
@@ -938,12 +947,12 @@ function StudentProjektbetreuerSpeichern()
|
||||
}
|
||||
var col = tree.columns ? tree.columns["student-projektarbeit-tree-projektarbeit_id"] : "student-projektarbeit-tree-projektarbeit_id";
|
||||
var projektarbeit_id=tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
|
||||
var url = '<?php echo APP_ROOT ?>content/student/studentDBDML.php';
|
||||
var req = new phpRequest(url,'','');
|
||||
|
||||
req.add('type', 'saveprojektbetreuer');
|
||||
|
||||
|
||||
req.add('person_id', person_id);
|
||||
req.add('note', note);
|
||||
req.add('faktor', faktor);
|
||||
@@ -977,7 +986,7 @@ function StudentProjektbetreuerSpeichern()
|
||||
StudentProjektbetreuerDetailDisableFields(true);
|
||||
StudentProjektbetreuerTreeDatasource.Refresh(false); //non blocking
|
||||
SetStatusBarText('Daten wurden gespeichert');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -997,7 +1006,7 @@ function StudentProjektbetreuerNeu()
|
||||
function StudentProjektbetreuerLoeschen()
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
|
||||
|
||||
var tree = document.getElementById('student-projektbetreuer-tree');
|
||||
|
||||
if (tree.currentIndex==-1)
|
||||
@@ -1011,14 +1020,14 @@ function StudentProjektbetreuerLoeschen()
|
||||
var person_id=tree.view.getCellText(tree.currentIndex,col);
|
||||
var col = tree.columns ? tree.columns["student-projektbetreuer-tree-betreuerart_kurzbz"] : "student-projektbetreuer-tree-betreuerart_kurzbz";
|
||||
var betreuerart_kurzbz=tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
|
||||
studiengang_kz = document.getElementById('student-prestudent-menulist-studiengang_kz').value;
|
||||
|
||||
|
||||
var url = '<?php echo APP_ROOT ?>content/student/studentDBDML.php';
|
||||
var req = new phpRequest(url,'','');
|
||||
|
||||
req.add('type', 'deleteprojektbetreuer');
|
||||
|
||||
|
||||
req.add('person_id', person_id);
|
||||
req.add('projektarbeit_id', projektarbeit_id);
|
||||
req.add('betreuerart_kurzbz', betreuerart_kurzbz);
|
||||
@@ -1049,13 +1058,13 @@ function StudentProjektbetreuerLoeschen()
|
||||
function StudentProjektbetreuerLoadMitarbeiterDaten()
|
||||
{
|
||||
person_id = MenulistGetSelectedValue('student-projektbetreuer-menulist-person');
|
||||
|
||||
|
||||
var url = '<?php echo APP_ROOT ?>content/student/studentDBDML.php';
|
||||
var req = new phpRequest(url,'','');
|
||||
|
||||
req.add('type', 'getstundensatz');
|
||||
req.add('person_id', person_id);
|
||||
|
||||
|
||||
var response = req.executePOST();
|
||||
|
||||
var val = new ParseReturnValue(response)
|
||||
@@ -1071,7 +1080,7 @@ function StudentProjektbetreuerLoadMitarbeiterDaten()
|
||||
{
|
||||
stundensatz = val.dbdml_data
|
||||
}
|
||||
|
||||
|
||||
document.getElementById('student-projektbetreuer-textbox-stundensatz').value=stundensatz;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,14 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/projektarbeit/rdf#firma_id" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="student-projektarbeit-tree-final" label="Final" flex="2" hidden="true"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/projektarbeit/rdf#final" />
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="student-projektarbeit-tree-abgabedatum" label="Abgabe Endupload" flex="2" hidden="false"
|
||||
class="sortDirectionIndicator"
|
||||
sort="rdf:http://www.technikum-wien.at/projektarbeit/rdf#abgabedatum" />
|
||||
<splitter class="tree-splitter"/>
|
||||
</treecols>
|
||||
|
||||
<template>
|
||||
@@ -132,6 +140,8 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<treecell label="rdf:http://www.technikum-wien.at/projektarbeit/rdf#lehreinheit_id"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/projektarbeit/rdf#student_uid"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/projektarbeit/rdf#firma_id"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/projektarbeit/rdf#final"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/projektarbeit/rdf#abgabedatum"/>
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
@@ -238,7 +248,7 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<grid style="margin:4px;" flex="1">
|
||||
<columns >
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
<column flex="1"/>
|
||||
<column flex="1"/>
|
||||
<column flex="5"/>
|
||||
</columns>
|
||||
@@ -278,6 +288,8 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<row>
|
||||
<label value="Anmerkung" control="student-projektarbeit-textbox-anmerkung"/>
|
||||
<textbox id="student-projektarbeit-textbox-anmerkung" disabled="true" maxlength="256"/>
|
||||
<label value="Final / Zeugnis" control="student-projektarbeit-checkbox-final"/>
|
||||
<checkbox id="student-projektarbeit-checkbox-final" disabled="true" />
|
||||
</row>
|
||||
<row>
|
||||
<spacer />
|
||||
|
||||
@@ -682,15 +682,15 @@ class firma extends basis_db
|
||||
|
||||
if($filter!='')
|
||||
$qry.= " and ( lower(tbl_firma.name) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(kurzbz) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(tbl_standort.kurzbz) like lower('%".$this->db_escape($filter)."%')
|
||||
|
||||
OR lower(tbl_adresse.name) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(plz) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(ort) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(strasse) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(tbl_adresse.plz) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(tbl_adresse.ort) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(tbl_adresse.strasse) like lower('%".$this->db_escape($filter)."%')
|
||||
|
||||
OR lower(tbl_standort.bezeichnung) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(anmerkung) like lower('%".$this->db_escape($filter)."%')
|
||||
OR lower(tbl_firma.anmerkung) like lower('%".$this->db_escape($filter)."%')
|
||||
".(is_numeric($filter)?" OR tbl_firma.firma_id='".$this->db_escape($filter)."'":'')."
|
||||
OR tbl_firma.firma_id IN (SELECT firma_id FROM public.tbl_firmatag
|
||||
WHERE firma_id=tbl_firma.firma_id AND lower(tag) like lower('%".$this->db_escape($filter)."%'))
|
||||
|
||||
@@ -249,12 +249,19 @@ class lehrveranstaltung extends basis_db
|
||||
}
|
||||
|
||||
/**
|
||||
* Liefert alle Lehrveranstaltungen zu einem Studiengang/Semester
|
||||
* @param $studiengang_kz
|
||||
* @param $semester
|
||||
* Liefert alle Lehrveranstaltungen die den gefilterten Attributen entsprechen
|
||||
* @param $studiengang_kz integer Kennzahl des Studiengangs.
|
||||
* @param $semester integer Ausbildungssemester.
|
||||
* @param $lehreverzeichnis string LehreVZ
|
||||
* @param $lehre boolean Lehre
|
||||
* @param $aktiv boolean
|
||||
* @param $sort smallint Sortierung
|
||||
* @param $oe_kurzbz string Organisationseinheit
|
||||
* @param $lehrtyp string lehrtyp_kurzbz
|
||||
* @param $orgform string Organisationsform
|
||||
* @return true wenn ok, false im Fehlerfall
|
||||
*/
|
||||
public function load_lva($studiengang_kz, $semester = null, $lehreverzeichnis = null, $lehre = null, $aktiv = null, $sort = null, $oe_kurzbz=null, $lehrtyp=null, $orgform=null)
|
||||
public function load_lva($studiengang_kz=null, $semester = null, $lehreverzeichnis = null, $lehre = null, $aktiv = null, $sort = null, $oe_kurzbz=null, $lehrtyp=null, $orgform=null)
|
||||
{
|
||||
//Variablen pruefen
|
||||
if($semester == "null")
|
||||
@@ -263,7 +270,7 @@ class lehrveranstaltung extends basis_db
|
||||
if($lehreverzeichnis == "null")
|
||||
$lehreverzeichnis = null;
|
||||
|
||||
if (!is_numeric($studiengang_kz) || $studiengang_kz == '')
|
||||
if (!is_null($studiengang_kz) && (!is_numeric($studiengang_kz) && $studiengang_kz != ''))
|
||||
{
|
||||
$this->errormsg = 'studiengang_kz muss eine gueltige Zahl sein';
|
||||
return false;
|
||||
@@ -284,7 +291,10 @@ class lehrveranstaltung extends basis_db
|
||||
return false;
|
||||
}
|
||||
|
||||
$qry = "SELECT * FROM lehre.tbl_lehrveranstaltung where studiengang_kz=" . $this->db_add_param($studiengang_kz, FHC_INTEGER);
|
||||
$qry = "SELECT * FROM lehre.tbl_lehrveranstaltung WHERE 1=1";
|
||||
|
||||
if (!is_null($studiengang_kz))
|
||||
$qry.=" AND studiengang_kz=" . $this->db_add_param($studiengang_kz, FHC_INTEGER);
|
||||
|
||||
//Select Befehl zusammenbauen
|
||||
if (!is_null($lehreverzeichnis))
|
||||
|
||||
@@ -381,8 +381,11 @@ class prestudent extends person
|
||||
JOIN public.tbl_person USING(person_id)
|
||||
JOIN public.tbl_rt_person USING(person_id)
|
||||
JOIN public.tbl_reihungstest ON(tbl_reihungstest.reihungstest_id=tbl_rt_person.rt_id)
|
||||
WHERE tbl_reihungstest.datum='.$this->db_add_param($datum).'
|
||||
AND tbl_rt_person.studienplan_id IN (SELECT studienplan_id FROM public.tbl_prestudentstatus WHERE prestudent_id=tbl_prestudent.prestudent_id)
|
||||
WHERE
|
||||
tbl_reihungstest.datum='.$this->db_add_param($datum).'
|
||||
AND tbl_rt_person.studienplan_id IN (SELECT studienplan_id FROM public.tbl_prestudentstatus WHERE prestudent_id=tbl_prestudent.prestudent_id)
|
||||
AND EXISTS(SELECT * FROM public.tbl_prestudentstatus JOIN public.tbl_studiensemester USING(studiensemester_kurzbz)
|
||||
WHERE prestudent_id=tbl_prestudent.prestudent_id AND tbl_studiensemester.start>'.$this->db_add_param($datum).')
|
||||
ORDER BY nachname,vorname';
|
||||
|
||||
if(!$this->db_query($sql_query))
|
||||
|
||||
@@ -55,6 +55,9 @@ class projektarbeit extends basis_db
|
||||
public $insertvon; // bigint
|
||||
public $updateamum; // timestamp
|
||||
public $updatevon; // bigint
|
||||
public $final; // boolean
|
||||
|
||||
public $abgabedatum;
|
||||
|
||||
|
||||
/**
|
||||
@@ -114,6 +117,9 @@ class projektarbeit extends basis_db
|
||||
$this->updateamum = $row->updateamum;
|
||||
$this->updatevon = $row->updatevon;
|
||||
$this->projekttyp_bezeichnung = $row->bezeichnung;
|
||||
$this->final = $this->db_parse_bool($row->final);
|
||||
$this->abgabedatum = $row->abgabedatum;
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -226,7 +232,7 @@ class projektarbeit extends basis_db
|
||||
|
||||
$qry='BEGIN; INSERT INTO lehre.tbl_projektarbeit (projekttyp_kurzbz, titel, lehreinheit_id, student_uid, firma_id, note, punkte,
|
||||
beginn, ende, faktor, freigegeben, gesperrtbis, stundensatz, gesamtstunden, themenbereich, anmerkung,
|
||||
insertamum, insertvon, updateamum, updatevon, titel_english) VALUES('.
|
||||
insertamum, insertvon, updateamum, updatevon, titel_english, final) VALUES('.
|
||||
$this->db_add_param($this->projekttyp_kurzbz).', '.
|
||||
$this->db_add_param($this->titel).', '.
|
||||
$this->db_add_param($this->lehreinheit_id, FHC_INTEGER).', '.
|
||||
@@ -245,7 +251,8 @@ class projektarbeit extends basis_db
|
||||
$this->db_add_param($this->anmerkung).', now(), '.
|
||||
$this->db_add_param($this->insertvon).', now(), '.
|
||||
$this->db_add_param($this->updatevon).','.
|
||||
$this->db_add_param($this->titel_english).');';
|
||||
$this->db_add_param($this->titel_english).','.
|
||||
$this->db_add_param($this->final, FHC_BOOLEAN).');';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -277,7 +284,8 @@ class projektarbeit extends basis_db
|
||||
'themenbereich='.$this->db_add_param($this->themenbereich).', '.
|
||||
'anmerkung='.$this->db_add_param($this->anmerkung).', '.
|
||||
'updateamum= now(), '.
|
||||
'updatevon='.$this->db_add_param($this->updatevon).' '.
|
||||
'updatevon='.$this->db_add_param($this->updatevon).', '.
|
||||
'final='.$this->db_add_param($this->final, FHC_BOOLEAN).' '.
|
||||
'WHERE projektarbeit_id='.$this->db_add_param($this->projektarbeit_id, FHC_INTEGER).';';
|
||||
}
|
||||
|
||||
@@ -385,6 +393,8 @@ class projektarbeit extends basis_db
|
||||
$obj->insertvon = $row->insertvon;
|
||||
$obj->updateamum = $row->updateamum;
|
||||
$obj->updatevon = $row->updatevon;
|
||||
$obj->final = $this->db_parse_bool($row->final);
|
||||
$obj->abgabedatum = $row->abgabedatum;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
@@ -447,6 +457,7 @@ class projektarbeit extends basis_db
|
||||
$obj->insertvon = $row->insertvon;
|
||||
$obj->updateamum = $row->updateamum;
|
||||
$obj->updatevon = $row->updatevon;
|
||||
$obj->final = $this->db_parse_bool($row->final);
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ class pruefling extends basis_db
|
||||
* @param $person_id ID der Person.
|
||||
* @param $punkte Wenn true werden Punkte geliefert, sonst Prozentsumme.
|
||||
* @param $reihungstest_id ID des Reihungstests.
|
||||
* @return Endpunkte des Reihungstests
|
||||
* @return Endpunkte des Reihungstests oder False wenn keine Punkte vorhanden
|
||||
*/
|
||||
public function getReihungstestErgebnisPerson($person_id, $punkte=false, $reihungstest_id=null)
|
||||
{
|
||||
@@ -324,9 +324,13 @@ class pruefling extends basis_db
|
||||
|
||||
$ergebnis=0;
|
||||
|
||||
if($this->db_query($qry))
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
while($row = $this->db_fetch_object())
|
||||
// Wenn keine Eintraege vorhanden dann false
|
||||
if($this->db_num_rows($result)==0)
|
||||
return false;
|
||||
|
||||
while($row = $this->db_fetch_object($result))
|
||||
{
|
||||
//wenn maxpunkte ueberschritten wurde -> 100%
|
||||
if($row->punkte>=$row->maxpunkte)
|
||||
@@ -357,7 +361,7 @@ class pruefling extends basis_db
|
||||
* @param $prestudent_id ID des Prestudenten
|
||||
* @param $punkte Wenn true werden Punkte geliefert, sonst Prozentsumme.
|
||||
* @param $reihungstest_id ID des Reihungstests.
|
||||
* @return Endpunkte des Reihungstests
|
||||
* @return Endpunkte des Reihungstests oder false wenn keine Punkte vorhanden
|
||||
*/
|
||||
public function getReihungstestErgebnisPrestudent($prestudent_id, $punkte=false, $reihungstest_id=null)
|
||||
{
|
||||
@@ -369,8 +373,11 @@ class pruefling extends basis_db
|
||||
|
||||
$ergebnis=0;
|
||||
|
||||
if($this->db_query($qry))
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
if($this->db_num_rows($result)==0)
|
||||
return false;
|
||||
|
||||
while($row = $this->db_fetch_object())
|
||||
{
|
||||
//wenn maxpunkte ueberschritten wurde -> 100%
|
||||
|
||||
@@ -662,7 +662,7 @@ class studiensemester extends basis_db
|
||||
public function getFinished($limit = null)
|
||||
{
|
||||
$qry = "SELECT * FROM public.tbl_studiensemester WHERE start <= NOW() ORDER BY ende DESC";
|
||||
|
||||
|
||||
if(!is_null($limit) && is_numeric($limit))
|
||||
$qry.=' LIMIT '.$limit;
|
||||
|
||||
@@ -768,22 +768,22 @@ class studiensemester extends basis_db
|
||||
{
|
||||
if (!isset($this->begin))
|
||||
$this->begin = new stdclass();
|
||||
|
||||
|
||||
$this->begin->start = mktime(0, 0, 0,
|
||||
mb_substr($row->start, 5, 2),
|
||||
mb_substr($row->start, 8, 2),
|
||||
mb_substr($row->start, 0, 4)
|
||||
);
|
||||
|
||||
|
||||
if (!isset($this->end))
|
||||
$this->ende = new stdclass();
|
||||
|
||||
|
||||
$this->ende->ende = mktime(0, 0, 0,
|
||||
mb_substr($row->ende, 5, 2),
|
||||
mb_substr($row->ende, 8, 2),
|
||||
mb_substr($row->ende, 0, 4)
|
||||
);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -976,5 +976,44 @@ class studiensemester extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Liefert aus einer Liste von Studiensemester das neueste Studiensemester zurueck
|
||||
* @param $studiensemester_arr Array mit Studiensemester_kurzbz
|
||||
* @return Studiensemester aus dem Array das zuletzt startet
|
||||
*/
|
||||
public function getYoungestFromArray($studiensemester_arr)
|
||||
{
|
||||
$qry = "SELECT
|
||||
*
|
||||
FROM
|
||||
public.tbl_studiensemester
|
||||
WHERE
|
||||
studiensemester_kurzbz IN(".$this->db_implode4SQL($studiensemester_arr).")
|
||||
ORDER BY
|
||||
start desc
|
||||
LIMIT 1";
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
if($row = $this->db_fetch_object())
|
||||
{
|
||||
$this->studiensemester_kurzbz = $row->studiensemester_kurzbz;
|
||||
$this->start = $row->start;
|
||||
$this->ende = $row->ende;
|
||||
return $row->studiensemester_kurzbz;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Es wurde kein Studiensemester gefunden';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Ermitteln des Studiensemesters';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -952,9 +952,22 @@ class vertrag extends basis_db
|
||||
lehre.tbl_projektbetreuer
|
||||
WHERE
|
||||
vertrag_id=tbl_vertrag.vertrag_id)
|
||||
))
|
||||
)
|
||||
)
|
||||
AND vertragsdatum<=".$this->db_add_param($datum)."
|
||||
AND vertragsdatum>=".$this->db_add_param($prevstsemende)."
|
||||
AND
|
||||
(
|
||||
vertragsdatum>=".$this->db_add_param($prevstsemende)."
|
||||
OR
|
||||
EXISTS (SELECT
|
||||
1
|
||||
FROM
|
||||
lehre.tbl_lehreinheitmitarbeiter
|
||||
JOIN lehre.tbl_lehreinheit USING(lehreinheit_id)
|
||||
WHERE
|
||||
vertrag_id=tbl_vertrag.vertrag_id
|
||||
AND studiensemester_kurzbz=".$this->db_add_param($stsem).")
|
||||
)
|
||||
AND tbl_benutzer.uid=".$this->db_add_param($mitarbeiter_uid);
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
|
||||
@@ -8,7 +8,7 @@ $this->phrasen['abgabetool/plagiatspruefung']='zur Plagiatsprüfung';
|
||||
$this->phrasen['abgabetool/studentenansicht']='Studierendenansicht';
|
||||
$this->phrasen['abgabetool/abgabetermine']='Abgabetermine';
|
||||
$this->phrasen['abgabetool/benoten']='benoten';
|
||||
$this->phrasen['abgabetool/fix']='fix'; // Fixtermin
|
||||
$this->phrasen['abgabetool/fix']='fix'; // Fixtermin
|
||||
$this->phrasen['abgabetool/datum']='Datum'; // Datum für Terminabgabe
|
||||
$this->phrasen['abgabetool/abgabetyp']='Abgabetyp';
|
||||
$this->phrasen['abgabetool/details']='Details';
|
||||
@@ -65,12 +65,13 @@ $this->phrasen['abgabetool/fehlerMailBegutachter']='Fehler beim Versenden des Ma
|
||||
$this->phrasen['abgabetool/fehlerBetreuerNichtGefundenKeinMail']='Betreuer nicht gefunden. Kein Mail verschickt!';
|
||||
$this->phrasen['abgabetool/keinPDF']='Upload ist keine pdf-Datei! Bitte wiederholen Sie den Fileupload.';
|
||||
$this->phrasen['abgabetool/dateiZuGross']='Die Datei ist zu groß! Maximale Dateigröße 15 MB';
|
||||
$this->phrasen['abgabetool/fehlerTerminVorbei']='Die Abgabefrist für diesen Termin ist bereits abgelaufen.';
|
||||
|
||||
$this->phrasen['abgabetool/eidesstattlicheErklaerung']='Ich erkläre hiermit an Eides statt, dass ich die vorliegende Arbeit selbständig angefertigt habe.
|
||||
Die aus fremden Quellen direkt oder indirekt übernommenen Gedanken sind als solche kenntlich gemacht.
|
||||
$this->phrasen['abgabetool/eidesstattlicheErklaerung']='Ich erkläre hiermit an Eides statt, dass ich die vorliegende Arbeit selbständig angefertigt habe.
|
||||
Die aus fremden Quellen direkt oder indirekt übernommenen Gedanken sind als solche kenntlich gemacht.
|
||||
Die Arbeit wurde bisher weder in gleicher noch in ähnlicher Form einer anderen Prüfungsbehörde vorgelegt und auch noch nicht veröffentlicht.<br>
|
||||
Ich räume der Fachhochschule Technikum Wien das Recht ein, das/die übermittelte/n Dokument/e elektronisch zu speichern und in Datennetzen öffentlich zugänglich zu machen.
|
||||
Ich räume der Fachhochschule Technikum Wien ferner das Recht zur Konvertierung zum Zwecke der Langzeitarchivierung unter Beachtung der Bewahrung des Inhalts ein.
|
||||
Ich räume der Fachhochschule Technikum Wien das Recht ein, das/die übermittelte/n Dokument/e elektronisch zu speichern und in Datennetzen öffentlich zugänglich zu machen.
|
||||
Ich räume der Fachhochschule Technikum Wien ferner das Recht zur Konvertierung zum Zwecke der Langzeitarchivierung unter Beachtung der Bewahrung des Inhalts ein.
|
||||
Ich erkläre außerdem, dass von mir die urheber- und lizenzrechtliche Seite (Copyright) geklärt wurde und Rechte Dritter der Publikation nicht entgegenstehen.';
|
||||
$this->phrasen['abgabetool/gelesenUndAkzeptiert']='Gelesen und akzeptiert';
|
||||
$this->phrasen['abgabetool/erklaerungNichtAkzeptiert']='Erklärung nicht akzeptiert';
|
||||
|
||||
@@ -8,7 +8,7 @@ $this->phrasen['abgabetool/plagiatspruefung']='to Plagiarism check';
|
||||
$this->phrasen['abgabetool/studentenansicht']='Student view';
|
||||
$this->phrasen['abgabetool/abgabetermine']='Deadlines';
|
||||
$this->phrasen['abgabetool/benoten']='grade';
|
||||
$this->phrasen['abgabetool/fix']='fix'; // Fixtermin
|
||||
$this->phrasen['abgabetool/fix']='fix'; // Fixtermin
|
||||
$this->phrasen['abgabetool/datum']='Date'; // Datum für Terminabgabe
|
||||
$this->phrasen['abgabetool/abgabetyp']='Type of document submitted';
|
||||
$this->phrasen['abgabetool/details']='Details';
|
||||
@@ -64,13 +64,14 @@ $this->phrasen['abgabetool/fehlerMailBegutachter']='Error sending E-Mail to Asse
|
||||
$this->phrasen['abgabetool/fehlerBetreuerNichtGefundenKeinMail']='Assessor not found. No E-Mail sent!';
|
||||
$this->phrasen['abgabetool/keinPDF']='Upload-File ist not a PDF! Please retry the Fileupload.';
|
||||
$this->phrasen['abgabetool/dateiZuGross']='The File is too big! Maximum File size: 15 MB';
|
||||
$this->phrasen['abgabetool/fehlerTerminVorbei']='The deadline for this upload has already expired.';
|
||||
|
||||
$this->phrasen['abgabetool/eidesstattlicheErklaerung']='I confirm that this paper is entirely my own work.
|
||||
All sources and quotations have been fully acknowledged in the appropriate places with adequate footnotes and citations.
|
||||
Quotations have been properly acknowledged and marked with appropriate punctuation. The works consulted are listed in the bibliography.
|
||||
$this->phrasen['abgabetool/eidesstattlicheErklaerung']='I confirm that this paper is entirely my own work.
|
||||
All sources and quotations have been fully acknowledged in the appropriate places with adequate footnotes and citations.
|
||||
Quotations have been properly acknowledged and marked with appropriate punctuation. The works consulted are listed in the bibliography.
|
||||
This paper has not been submitted to another examination panel in the same or a similar form, and has not been published.<br>
|
||||
I grant the University Of Applied Sciences Technikum Wien the right to store the uploaded file(s) in electronic form and to make them publicly available in data networks.
|
||||
I further grant the University of Applied Sciences Technikum Wien the right to convert the file(s) for long term preservation purposes.
|
||||
I grant the University Of Applied Sciences Technikum Wien the right to store the uploaded file(s) in electronic form and to make them publicly available in data networks.
|
||||
I further grant the University of Applied Sciences Technikum Wien the right to convert the file(s) for long term preservation purposes.
|
||||
I declare that copyright and licensing issues related to my work have been resolved and that therefore no rights on the part of any third parties impede the publication.';
|
||||
$this->phrasen['abgabetool/gelesenUndAkzeptiert']='Read and accepted';
|
||||
$this->phrasen['abgabetool/erklaerungNichtAkzeptiert']='Declaration not accepted';
|
||||
|
||||
@@ -23,7 +23,8 @@ setup:
|
||||
- "rm -f /var/www/html/build" # Remove the previous soft link, if exists, to the build directory
|
||||
- "ln -s %BUILD_PATH% /var/www/html/build" # Create a new soft link to the actual build directory
|
||||
# Copies configuration files
|
||||
- "cp /home/phpci/config/* %BUILD_PATH%/config/"
|
||||
- "cp /home/phpci/config/*.inc.php %BUILD_PATH%/config/"
|
||||
- "cp /home/phpci/config/*.php %BUILD_PATH%/application/config/"
|
||||
- "cd %BUILD_PATH% && php index.ci.php DBTools migrate" # Install Database
|
||||
test:
|
||||
lint:
|
||||
|
||||
@@ -111,9 +111,21 @@ if($db->db_query($qry))
|
||||
if($db->db_query($qry))
|
||||
if($row_rek = $db->db_fetch_object())
|
||||
$rektor = $row_rek->titelpre.' '.$row_rek->vorname.' '.$row_rek->nachname.' '.$row_rek->titelpost;
|
||||
$qry = "SELECT * FROM (SELECT titel as themenbereich, ende, projektarbeit_id, note, beginn FROM lehre.tbl_projektarbeit a
|
||||
WHERE student_uid='$student->uid' AND (projekttyp_kurzbz='Bachelor' OR projekttyp_kurzbz='Diplom' OR projekttyp_kurzbz='Master' OR projekttyp_kurzbz='Dissertation' OR projekttyp_kurzbz='Lizenziat' OR projekttyp_kurzbz='Magister')
|
||||
ORDER BY beginn DESC, projektarbeit_id ASC LIMIT 2) as a ORDER BY beginn asc";
|
||||
$qry = "SELECT
|
||||
*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
titel as themenbereich, ende, projektarbeit_id, note, beginn
|
||||
FROM
|
||||
lehre.tbl_projektarbeit a
|
||||
WHERE
|
||||
student_uid=".$db->db_add_param($student->uid)."
|
||||
AND projekttyp_kurzbz in('Bachelor','Diplom','Master','Dissertation','Lizenziat','Magister')
|
||||
AND a.final=true
|
||||
ORDER BY beginn DESC, projektarbeit_id ASC LIMIT 2
|
||||
) as a
|
||||
ORDER BY beginn asc";
|
||||
$themenbereich='';
|
||||
$datum_projekt='';
|
||||
$betreuer = '';
|
||||
|
||||
@@ -27,6 +27,8 @@ require_once('../include/benutzer.class.php');
|
||||
require_once('../include/prestudent.class.php');
|
||||
require_once('../include/reihungstest.class.php');
|
||||
require_once('../include/studienplan.class.php');
|
||||
require_once('../include/studienordnung.class.php');
|
||||
require_once('../include/studiengang.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
@@ -78,6 +80,12 @@ function drawrow($row)
|
||||
$studienplan = new studienplan();
|
||||
$studienplan->loadStudienplan($row->studienplan_id);
|
||||
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($studienplan->studienordnung_id);
|
||||
|
||||
$stpl_stg = new studiengang();
|
||||
$stpl_stg->load($studienordnung->studiengang_kz);
|
||||
|
||||
$i=$oRdf->newObjekt($row->rt_person_id);
|
||||
$oRdf->obj[$i]->setAttribut('rt_person_id',$row->rt_person_id,true);
|
||||
$oRdf->obj[$i]->setAttribut('rt_id',$row->reihungstest_id,true);
|
||||
@@ -91,6 +99,7 @@ function drawrow($row)
|
||||
$oRdf->obj[$i]->setAttribut('stufe',$reihungstest_obj->stufe,true);
|
||||
$oRdf->obj[$i]->setAttribut('studienplan_id',$row->studienplan_id,true);
|
||||
$oRdf->obj[$i]->setAttribut('studienplan_bezeichnung',$studienplan->bezeichnung,true);
|
||||
$oRdf->obj[$i]->setAttribut('studienplan_studiengang',$stpl_stg->kuerzel,true);
|
||||
$oRdf->obj[$i]->setAttribut('studiensemester',$reihungstest_obj->studiensemester_kurzbz,true);
|
||||
$oRdf->obj[$i]->setAttribut('datum',$datum_obj->formatDatum($reihungstest_obj->datum,'d.m.Y'),true);
|
||||
$oRdf->obj[$i]->setAttribut('datum_iso',$reihungstest_obj->datum,true);
|
||||
|
||||
+12
-4
@@ -54,21 +54,29 @@ echo '
|
||||
|
||||
<RDF:Seq RDF:about="'.$rdf_url.'/liste">
|
||||
';
|
||||
$db = new basis_db();
|
||||
//$filter = utf8_encode($filter);
|
||||
$qry = "SELECT
|
||||
distinct person_id, vorname, nachname, titelpre, titelpost,
|
||||
CASE
|
||||
WHEN (SELECT count(*) FROM public.tbl_benutzer JOIN public.tbl_mitarbeiter ON(uid=mitarbeiter_uid) WHERE person_id=tbl_person.person_id)>0 THEN 'Mitarbeiter'
|
||||
WHEN (SELECT count(*) FROM public.tbl_benutzer JOIN public.tbl_student ON(uid=student_uid) WHERE person_id=tbl_person.person_id)>0 THEN 'Student'
|
||||
WHEN EXISTS (SELECT 1 FROM public.tbl_benutzer JOIN public.tbl_mitarbeiter ON(uid=mitarbeiter_uid) WHERE person_id=tbl_person.person_id) THEN 'Mitarbeiter'
|
||||
WHEN EXISTS (SELECT 1 FROM public.tbl_benutzer JOIN public.tbl_student ON(uid=student_uid) WHERE person_id=tbl_person.person_id) THEN 'Student'
|
||||
ELSE 'Person'
|
||||
END as status
|
||||
FROM public.tbl_person WHERE nachname ~* '".addslashes($filter).".*' ORDER BY nachname, vorname, titelpre, titelpost";
|
||||
FROM
|
||||
public.tbl_person
|
||||
WHERE
|
||||
lower(nachname) like '%".$db->db_escape(mb_strtolower($filter))."%'
|
||||
OR
|
||||
lower(nachname || ' ' || vorname) like '%".$db->db_escape(mb_strtolower($filter))."%'
|
||||
OR
|
||||
lower(vorname || ' ' || nachname) like '%".$db->db_escape(mb_strtolower($filter))."%'
|
||||
ORDER BY nachname, vorname, titelpre, titelpost";
|
||||
|
||||
if(isset($_GET['nurmittitel']))
|
||||
{
|
||||
$qry.=" AND (titelpre<>'' OR titelpost<>'')";
|
||||
}
|
||||
$db = new basis_db();
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
|
||||
@@ -97,6 +97,9 @@ function draw_content($row)
|
||||
<PROJEKTARBEIT:gesamtstunden><![CDATA['.$row->gesamtstunden.']]></PROJEKTARBEIT:gesamtstunden>
|
||||
<PROJEKTARBEIT:themenbereich><![CDATA['.$row->themenbereich.']]></PROJEKTARBEIT:themenbereich>
|
||||
<PROJEKTARBEIT:anmerkung><![CDATA['.$row->anmerkung.']]></PROJEKTARBEIT:anmerkung>
|
||||
<PROJEKTARBEIT:final><![CDATA['.($row->final?'Ja':'Nein').']]></PROJEKTARBEIT:final>
|
||||
<PROJEKTARBEIT:abgabedatum><![CDATA['.$datum_obj->convertISODate($row->abgabedatum).']]></PROJEKTARBEIT:abgabedatum>
|
||||
<PROJEKTARBEIT:abgabedatum_iso><![CDATA['.$row->abgabedatum.']]></PROJEKTARBEIT:abgabedatum_iso>
|
||||
</RDF:Description>
|
||||
</RDF:li>
|
||||
';
|
||||
|
||||
+92
-4
@@ -30,7 +30,7 @@ if(!$result = @$db->db_query("SELECT statusgrund_id FROM public.tbl_prestudentst
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>public.tbl_prestudentstatus: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo 'public.tbl_prestudentstatus: Spalte statusgrund_id hinzugefuegt';
|
||||
echo '<br>public.tbl_prestudentstatus: Spalte statusgrund_id hinzugefuegt';
|
||||
}
|
||||
|
||||
// Berechtigungen fuer web User erteilen um Gebiete anlegen zu duerfen
|
||||
@@ -46,10 +46,86 @@ if($result = @$db->db_query("SELECT * FROM information_schema.role_table_grants
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>Testtool Berechtigungen: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo 'Web User fuer testtool.tbl_gebiet berechtigt';
|
||||
echo '<br>Web User fuer testtool.tbl_gebiet berechtigt';
|
||||
}
|
||||
}
|
||||
|
||||
if(!$result = @$db->db_query("SELECT 1 FROM public.vw_msg_vars LIMIT 1"))
|
||||
{
|
||||
// CREATE OR REPLACE VIEW public.vw_msg_vars and grants privileges
|
||||
$qry = '
|
||||
CREATE OR REPLACE VIEW public.vw_msg_vars AS (
|
||||
SELECT DISTINCT ON(p.person_id, pr.prestudent_id) p.person_id,
|
||||
pr.prestudent_id AS prestudent_id,
|
||||
p.nachname AS "Nachname",
|
||||
p.vorname AS "Vorname",
|
||||
p.anrede AS "Anrede",
|
||||
a.strasse AS "Strasse",
|
||||
a.ort AS "Ort",
|
||||
a.plz AS "PLZ",
|
||||
a.gemeinde AS "Gemeinde",
|
||||
a.langtext AS "Nation",
|
||||
ke.kontakt AS "Email",
|
||||
kt.kontakt AS "Telefon",
|
||||
s.bezeichnung AS "Studiengang DE",
|
||||
s.english AS "Studiengang EN",
|
||||
st.bezeichnung AS "Typ",
|
||||
orgform_kurzbz AS "Orgform"
|
||||
FROM public.tbl_person p
|
||||
LEFT JOIN (
|
||||
SELECT person_id,
|
||||
kontakt
|
||||
FROM public.tbl_kontakt
|
||||
WHERE zustellung = TRUE
|
||||
AND kontakttyp = \'email\'
|
||||
ORDER BY kontakt_id DESC
|
||||
) ke USING(person_id)
|
||||
LEFT JOIN (
|
||||
SELECT person_id,
|
||||
kontakt
|
||||
FROM public.tbl_kontakt
|
||||
WHERE zustellung = TRUE
|
||||
AND kontakttyp IN (\'telefon\', \'mobil\')
|
||||
ORDER BY kontakt_id DESC
|
||||
) kt USING(person_id)
|
||||
LEFT JOIN (
|
||||
SELECT person_id,
|
||||
strasse,
|
||||
ort,
|
||||
plz,
|
||||
gemeinde,
|
||||
langtext
|
||||
FROM public.tbl_adresse
|
||||
LEFT JOIN bis.tbl_nation ON(bis.tbl_nation.nation_code = public.tbl_adresse.nation)
|
||||
WHERE public.tbl_adresse.heimatadresse = TRUE
|
||||
ORDER BY adresse_id DESC
|
||||
) a USING(person_id)
|
||||
LEFT JOIN public.tbl_prestudent pr USING(person_id)
|
||||
INNER JOIN public.tbl_studiengang s USING(studiengang_kz)
|
||||
INNER JOIN public.tbl_studiengangstyp st USING(typ)
|
||||
WHERE p.aktiv = TRUE
|
||||
ORDER BY p.person_id ASC, pr.prestudent_id ASC
|
||||
);';
|
||||
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>public.vw_msg_vars: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo '<br>public.vw_msg_vars view created';
|
||||
|
||||
$qry = 'GRANT SELECT ON TABLE public.vw_msg_vars TO web;';
|
||||
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>public.vw_msg_vars: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo '<br>Granted privileges to <strong>web</strong> on public.vw_msg_vars';
|
||||
|
||||
$qry = 'GRANT SELECT ON TABLE public.vw_msg_vars TO vilesci;';
|
||||
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>public.vw_msg_vars: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo '<br>Granted privileges to <strong>vilesci</strong> on public.vw_msg_vars';
|
||||
}
|
||||
//Spalte anmerkung und rechnungsadresse in tbl_adresse
|
||||
if(!$result = @$db->db_query("SELECT rechnungsadresse FROM public.tbl_adresse LIMIT 1"))
|
||||
{
|
||||
@@ -60,7 +136,19 @@ if(!$result = @$db->db_query("SELECT rechnungsadresse FROM public.tbl_adresse LI
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>public.tbl_adresse: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo 'public.tbl_adresse: Spalte rechnungsadresse und anmerkung hinzugefuegt';
|
||||
echo '<br>public.tbl_adresse: Spalte rechnungsadresse und anmerkung hinzugefuegt';
|
||||
}
|
||||
|
||||
//Spalte final tbl_projektarbeit zum Markieren der letztgueltigen Projektarbeit
|
||||
if(!$result = @$db->db_query("SELECT final FROM lehre.tbl_projektarbeit LIMIT 1"))
|
||||
{
|
||||
$qry = "ALTER TABLE lehre.tbl_projektarbeit ADD COLUMN final boolean NOT NULL DEFAULT true;
|
||||
COMMENT ON COLUMN lehre.tbl_projektarbeit.final IS 'Markiert letztgültige Version der Projektarbeit';";
|
||||
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>lehre.tbl_projektarbeit: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo '<br>lehre.tbl_projektarbeit: Spalte final hinzugefuegt';
|
||||
}
|
||||
|
||||
// *** Pruefung und hinzufuegen der neuen Attribute und Tabellen
|
||||
@@ -188,7 +276,7 @@ $tabellen=array(
|
||||
"lehre.tbl_notenschluesselaufteilung" => array("notenschluesselaufteilung_id","notenschluessel_kurzbz","note","punkte"),
|
||||
"lehre.tbl_notenschluesselzuordnung" => array("notenschluesselzuordnung_id","notenschluessel_kurzbz","lehrveranstaltung_id","studienplan_id","oe_kurzbz","studiensemester_kurzbz"),
|
||||
"lehre.tbl_note" => array("note","bezeichnung","anmerkung","farbe","positiv","notenwert","aktiv","lehre"),
|
||||
"lehre.tbl_projektarbeit" => array("projektarbeit_id","projekttyp_kurzbz","titel","lehreinheit_id","student_uid","firma_id","note","punkte","beginn","ende","faktor","freigegeben","gesperrtbis","stundensatz","gesamtstunden","themenbereich","anmerkung","updateamum","updatevon","insertamum","insertvon","ext_id","titel_english","seitenanzahl","abgabedatum","kontrollschlagwoerter","schlagwoerter","schlagwoerter_en","abstract", "abstract_en", "sprache"),
|
||||
"lehre.tbl_projektarbeit" => array("projektarbeit_id","projekttyp_kurzbz","titel","lehreinheit_id","student_uid","firma_id","note","punkte","beginn","ende","faktor","freigegeben","gesperrtbis","stundensatz","gesamtstunden","themenbereich","anmerkung","updateamum","updatevon","insertamum","insertvon","ext_id","titel_english","seitenanzahl","abgabedatum","kontrollschlagwoerter","schlagwoerter","schlagwoerter_en","abstract", "abstract_en", "sprache","final"),
|
||||
"lehre.tbl_projektbetreuer" => array("person_id","projektarbeit_id","betreuerart_kurzbz","note","faktor","name","punkte","stunden","stundensatz","updateamum","updatevon","insertamum","insertvon","ext_id","vertrag_id"),
|
||||
"lehre.tbl_projekttyp" => array("projekttyp_kurzbz","bezeichnung"),
|
||||
"lehre.tbl_pruefung" => array("pruefung_id","lehreinheit_id","student_uid","mitarbeiter_uid","note","pruefungstyp_kurzbz","datum","anmerkung","insertamum","insertvon","updateamum","updatevon","ext_id","pruefungsanmeldung_id","vertrag_id", "punkte"),
|
||||
|
||||
+321
-321
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,257 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
>
|
||||
|
||||
<xsl:output method="xml" version="1.0" indent="yes"/>
|
||||
<xsl:template match="studenten">
|
||||
|
||||
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2">
|
||||
<office:scripts/>
|
||||
<office:font-face-decls>
|
||||
<style:font-face style:name="Mangal2" svg:font-family="Mangal"/>
|
||||
<style:font-face style:name="Mangal" svg:font-family="Mangal" style:font-family-generic="roman"/>
|
||||
<style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Arial" svg:font-family="Arial" style:font-adornments="Standard" style:font-family-generic="swiss" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Liberation Sans1" svg:font-family="'Liberation Sans'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Mangal1" svg:font-family="Mangal" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Microsoft YaHei" svg:font-family="'Microsoft YaHei'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="SimSun" svg:font-family="SimSun" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
</office:font-face-decls>
|
||||
<office:automatic-styles>
|
||||
<style:style style:name="Tabelle1" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.100cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.2" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="0.500cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" style:min-row-height="0.600cm" fo:padding="0.0cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B2" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2" style:family="table">
|
||||
<style:table-properties style:width="17.7cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="8,850cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="8,851cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.0cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-name="Arial" fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false">
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false">
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="7pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="7pt" style:font-size-complex="7pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="6pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P6" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P7" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="10pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="10pt" style:font-size-complex="10pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="10pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="10pt" style:font-size-complex="10pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P9" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.101cm" loext:contextual-spacing="false"/>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="14pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
</office:automatic-styles>
|
||||
<office:body>
|
||||
<xsl:apply-templates select="student"/>
|
||||
</office:body>
|
||||
</office:document-content>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="student">
|
||||
<office:text text:use-soft-page-breaks="true" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0">
|
||||
<text:sequence-decls>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
|
||||
<text:p text:style-name="P4">Dieses Dokument steht für Ihren Studiengang nicht zur Verfügung</text:p>
|
||||
|
||||
</office:text>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -0,0 +1,470 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet
|
||||
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
version="1.0"
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
>
|
||||
|
||||
<xsl:output method="xml" version="1.0" indent="yes"/>
|
||||
<xsl:template match="studienerfolge">
|
||||
|
||||
<office:document-content
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
|
||||
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
|
||||
xmlns:math="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
|
||||
xmlns:ooo="http://openoffice.org/2004/office"
|
||||
xmlns:ooow="http://openoffice.org/2004/writer"
|
||||
xmlns:oooc="http://openoffice.org/2004/calc"
|
||||
xmlns:dom="http://www.w3.org/2001/xml-events"
|
||||
xmlns:xforms="http://www.w3.org/2002/xforms"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:rpt="http://openoffice.org/2005/report"
|
||||
xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
||||
xmlns:grddl="http://www.w3.org/2003/g/data-view#"
|
||||
xmlns:officeooo="http://openoffice.org/2009/office"
|
||||
xmlns:tableooo="http://openoffice.org/2009/table"
|
||||
xmlns:drawooo="http://openoffice.org/2010/draw"
|
||||
xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0"
|
||||
xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"
|
||||
xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0"
|
||||
xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0"
|
||||
xmlns:css3t="http://www.w3.org/TR/css3-text/"
|
||||
office:version="1.2">
|
||||
<office:scripts/>
|
||||
<office:font-face-decls>
|
||||
<style:font-face style:name="Mangal1" svg:font-family="Mangal"/>
|
||||
<style:font-face style:name="Arial" svg:font-family="Arial" style:font-family-generic="roman" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-family-generic="roman" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Arial1" svg:font-family="Arial" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Mangal" svg:font-family="Mangal" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Microsoft YaHei" svg:font-family="'Microsoft YaHei'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Tahoma1" svg:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Times New Roman1" svg:font-family="'Times New Roman'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
</office:font-face-decls>
|
||||
<office:automatic-styles>
|
||||
<style:style style:name="Tabelle1" style:family="table">
|
||||
<style:table-properties style:width="16.452cm" fo:margin-left="-0.199cm" fo:margin-top="0cm" fo:margin-bottom="0cm" table:align="left" style:writing-mode="lr-tb"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.5cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="3.2cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.C" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="3.752cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1cm" fo:keep-together="auto"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:background-color="#ffffff" fo:padding-left="0.199cm" fo:padding-right="0.191cm" fo:padding-top="0cm" fo:padding-bottom="0cm" fo:border-left="0.5pt solid #00000a" fo:border-right="none" fo:border-top="0.5pt solid #00000a" fo:border-bottom="0.5pt solid #00000a">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:background-color="#ffffff" fo:padding-left="0.199cm" fo:padding-right="0.191cm" fo:padding-top="0cm" fo:padding-bottom="0cm" fo:border="0.5pt solid #00000a">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.2" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="0.501cm" fo:keep-together="auto"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3" style:family="table">
|
||||
<style:table-properties style:width="16.452cm" fo:margin-left="-0.199cm" fo:margin-top="0cm" fo:margin-bottom="0cm" table:align="left" style:shadow="none" style:writing-mode="lr-tb"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="6.9cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="2.096cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.D" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="1cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.F" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="1.799cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.G" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="1.561cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.1" style:family="table-row">
|
||||
<style:table-row-properties fo:keep-together="auto"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:background-color="#ffffff" fo:padding="0.101cm" fo:border-left="0.5pt solid #00000a" fo:border-right="none" fo:border-top="0.5pt solid #00000a" fo:border-bottom="0.5pt solid #00000a">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.G1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:background-color="#ffffff" fo:padding="0.101cm" fo:border="0.5pt solid #00000a">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:background-color="#ffffff" fo:padding="0.101cm" fo:border-left="0.5pt solid #00000a" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.5pt solid #00000a">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.G2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:background-color="#ffffff" fo:padding="0.101cm" fo:border-left="0.5pt solid #00000a" fo:border-right="0.5pt solid #00000a" fo:border-top="none" fo:border-bottom="0.5pt solid #00000a">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4" style:family="table">
|
||||
<style:table-properties style:width="16.443cm" fo:margin-left="-0.199cm" fo:margin-top="0cm" fo:margin-bottom="0cm" table:align="left" style:shadow="none" style:writing-mode="lr-tb"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="3.69cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.753cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.1" style:family="table-row">
|
||||
<style:table-row-properties fo:keep-together="auto"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.199cm" fo:border-left="0.5pt solid #00000a" fo:border-right="none" fo:border-top="0.5pt solid #00000a" fo:border-bottom="0.5pt solid #00000a"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.B1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.199cm" fo:border="0.5pt solid #00000a"/>
|
||||
</style:style>
|
||||
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Header">
|
||||
<style:text-properties fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Footer">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="8.001cm" style:type="center"/>
|
||||
<style:tab-stop style:position="15.998cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
</style:style>
|
||||
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
</style:style>
|
||||
<style:style style:name="P6" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P7" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" officeooo:rsid="00026b08" officeooo:paragraph-rsid="00026b08" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="9pt" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P9" style:family="paragraph" style:parent-style-name="Header" style:master-page-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.423cm" fo:margin-bottom="0.423cm" loext:contextual-spacing="false" style:page-number="auto">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="7.502cm"/>
|
||||
<style:tab-stop style:position="9.502cm"/>
|
||||
<style:tab-stop style:position="14.753cm"/>
|
||||
<style:tab-stop style:position="15.503cm"/>
|
||||
<style:tab-stop style:position="16.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="14pt" officeooo:paragraph-rsid="0004ac29" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P10" style:family="paragraph" style:parent-style-name="Header">
|
||||
<style:paragraph-properties fo:margin-top="0.494cm" fo:margin-bottom="0.423cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="7.502cm"/>
|
||||
<style:tab-stop style:position="9.502cm"/>
|
||||
<style:tab-stop style:position="14.753cm"/>
|
||||
<style:tab-stop style:position="15.503cm"/>
|
||||
<style:tab-stop style:position="16.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" officeooo:rsid="0004ac29" officeooo:paragraph-rsid="0004ac29" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P11" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" officeooo:rsid="00026b08" officeooo:paragraph-rsid="00026b08" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P12" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" officeooo:rsid="00026b08" officeooo:paragraph-rsid="0004ac29" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P13" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" officeooo:paragraph-rsid="00026b08" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P14" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" officeooo:rsid="00077a90" officeooo:paragraph-rsid="00077a90" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P15" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="9pt" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P16" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:paragraph-rsid="0004ac29" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P17" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0.106cm" fo:margin-bottom="0cm" loext:contextual-spacing="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="0004ac29" officeooo:paragraph-rsid="0004ac29" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P18" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="11pt" officeooo:rsid="0004ac29" officeooo:paragraph-rsid="0004ac29" style:font-size-asian="11pt" style:font-size-complex="11pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P19" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="1.707cm"/>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="7pt" officeooo:rsid="0008e4d3" officeooo:paragraph-rsid="0008e4d3" style:font-size-asian="7pt" style:font-size-complex="7pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P20" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="1.499cm"/>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="7pt" officeooo:rsid="0008e4d3" officeooo:paragraph-rsid="000a4a46" style:font-size-asian="7pt" style:font-size-complex="7pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P21" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" fo:font-weight="bold" officeooo:rsid="00065723" officeooo:paragraph-rsid="00065723" style:font-size-asian="8pt" style:font-weight-asian="bold" style:font-size-complex="8pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P22" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" fo:font-weight="bold" officeooo:rsid="0005e38f" officeooo:paragraph-rsid="0005e38f" style:font-size-asian="8pt" style:font-weight-asian="bold" style:font-size-complex="8pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P23" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" fo:font-weight="bold" officeooo:rsid="0005e38f" officeooo:paragraph-rsid="0005e38f" style:font-size-asian="8pt" style:font-weight-asian="bold" style:font-size-complex="8pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P24" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" fo:font-weight="bold" officeooo:rsid="0005e38f" officeooo:paragraph-rsid="00065d8b" style:font-size-asian="8pt" style:font-weight-asian="bold" style:font-size-complex="8pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P25" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" fo:font-weight="bold" style:font-size-asian="8pt" style:font-weight-asian="bold" style:font-size-complex="8pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P26" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" officeooo:rsid="0005e38f" officeooo:paragraph-rsid="0005e38f" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P27" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" officeooo:rsid="0005e38f" officeooo:paragraph-rsid="0005e38f" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P28" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" officeooo:rsid="00065d8b" officeooo:paragraph-rsid="00065d8b" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P29" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false">
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="6.752cm"/>
|
||||
<style:tab-stop style:position="13.002cm" style:type="right"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="8pt" officeooo:rsid="0008e4d3" officeooo:paragraph-rsid="0008e4d3" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties fo:font-size="9pt" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T2" style:family="text">
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="00026b08" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T3" style:family="text">
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="0005e38f" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T4" style:family="text">
|
||||
<style:text-properties officeooo:rsid="00026b08"/>
|
||||
</style:style>
|
||||
<style:style style:name="T5" style:family="text">
|
||||
<style:text-properties officeooo:rsid="0004ac29"/>
|
||||
</style:style>
|
||||
<style:style style:name="T6" style:family="text">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="10pt" style:font-size-asian="10pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T7" style:family="text">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="10pt" officeooo:rsid="0008e4d3" style:font-size-asian="10pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T8" style:family="text">
|
||||
<style:text-properties officeooo:rsid="00065723"/>
|
||||
</style:style>
|
||||
<style:style style:name="T9" style:family="text">
|
||||
<style:text-properties officeooo:rsid="000a4a46"/>
|
||||
</style:style>
|
||||
<style:style style:name="T10" style:family="text">
|
||||
<style:text-properties officeooo:rsid="000a6e9b"/>
|
||||
</style:style>
|
||||
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Graphics">
|
||||
<style:graphic-properties fo:margin-left="0.318cm" fo:margin-right="0.318cm" fo:margin-top="0cm" fo:margin-bottom="0cm" style:run-through="background" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="paragraph" style:horizontal-pos="from-left" style:horizontal-rel="paragraph" draw:fill="none" draw:fill-color="#ffffff" fo:padding="0cm" fo:border="none" style:mirror="none" fo:clip="rect(0cm, 0cm, 0cm, 0cm)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
|
||||
</style:style>
|
||||
</office:automatic-styles>
|
||||
<office:body>
|
||||
<office:text text:use-soft-page-breaks="true" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0">
|
||||
<text:sequence-decls>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
<text:p text:style-name="P9">
|
||||
<text:span text:style-name="T5">Dieses Dokument steht für Ihren Studiengang nicht zur Verfügung</text:span>
|
||||
</text:p>
|
||||
</office:text>
|
||||
</office:body>
|
||||
</office:document-content>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -139,7 +139,7 @@ switch($method)
|
||||
$selected=' selected';
|
||||
else
|
||||
$selected='';
|
||||
echo '<option value="'.$row->akadgrad_id.'"'.$selected.'>'.$row->akadgrad_kurzbz.'</option>';
|
||||
echo '<option value="'.$row->akadgrad_id.'"'.$selected.'>'.$row->akadgrad_kurzbz.' - '.$row->titel.'</option>';
|
||||
}
|
||||
echo '
|
||||
</select>
|
||||
|
||||
@@ -372,7 +372,7 @@ if(isset($_GET['excel']))
|
||||
$erg = $pruefling->getReihungstestErgebnisPrestudent($item->prestudent_id, true);
|
||||
else
|
||||
$erg = $pruefling->getReihungstestErgebnisPrestudent($item->prestudent_id);
|
||||
if($erg!=0)
|
||||
if($erg!==false)
|
||||
{
|
||||
$rt_in_anderen_stg.=number_format($erg,2).' Punkte im Studiengang '.$studiengang->kuerzel_arr[$item->studiengang_kz]."; ";
|
||||
}
|
||||
@@ -608,7 +608,7 @@ if(isset($_GET['excel']))
|
||||
else if (<?php echo json_encode($punkteberechnung);?> == 'true' && document.getElementById('clm_absolviert').className == 'inactive' && document.getElementById('clm_ergebnis').className == 'inactive')
|
||||
window.location.href = "<?php echo $_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&reihungstest_id='.$reihungstest_id.'&studiensemester_kurzbz='.$studiensemester_kurzbz.'&punkteberechnung=false';?>";
|
||||
});
|
||||
if (window.localStorage && window.localStorage !== 'undefined')
|
||||
if (window.localStorage && window.localStorage !== 'undefined')
|
||||
{
|
||||
if (typeof(Storage) !== 'undefined')
|
||||
{
|
||||
@@ -673,7 +673,7 @@ if(isset($_GET['excel']))
|
||||
|
||||
function hideColumn(column)
|
||||
{
|
||||
if (window.localStorage)
|
||||
if (window.localStorage)
|
||||
{
|
||||
if ($('.'+column).css('display') == 'table-cell')
|
||||
{
|
||||
@@ -1075,6 +1075,7 @@ if(isset($_GET['type']) && $_GET['type']=='savertpunkte')
|
||||
$rtperson->loadReihungstestPerson($_GET['rt_person_id']);
|
||||
$rtperson->punkte = str_replace(',','.',$rtpunkte);
|
||||
$rtperson->new = false;
|
||||
$rtperson->teilgenommen = true;
|
||||
if(!$rtperson->savePersonReihungstest())
|
||||
{
|
||||
echo '<span class="error">Fehler:'.$rtperson->errormsg.'</span>';
|
||||
@@ -1098,8 +1099,11 @@ if(isset($_GET['type']) && $_GET['type']=='saveallrtpunkte')
|
||||
JOIN public.tbl_person USING(person_id)
|
||||
JOIN public.tbl_studiengang USING(studiengang_kz)
|
||||
JOIN public.tbl_rt_person USING(person_id)
|
||||
JOIN lehre.tbl_studienplan ON(tbl_rt_person.studienplan_id=tbl_studienplan.studienplan_id)
|
||||
JOIN lehre.tbl_studienordnung ON(tbl_studienplan.studienordnung_id=tbl_studienordnung.studienordnung_id)
|
||||
WHERE
|
||||
tbl_rt_person.rt_id=".$db->db_add_param($reihungstest_id, FHC_INTEGER);
|
||||
tbl_studienordnung.studiengang_kz=tbl_prestudent.studiengang_kz
|
||||
AND tbl_rt_person.rt_id=".$db->db_add_param($reihungstest_id, FHC_INTEGER);
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
@@ -1118,14 +1122,23 @@ if(isset($_GET['type']) && $_GET['type']=='saveallrtpunkte')
|
||||
$rtpunkte = $pruefling->getReihungstestErgebnisPerson($row->person_id, true, $reihungstest->reihungstest_id);
|
||||
else
|
||||
$rtpunkte = $pruefling->getReihungstestErgebnisPerson($row->person_id, false, $reihungstest->reihungstest_id);
|
||||
|
||||
$reihungstest->punkte = str_replace(',','.',$rtpunkte);
|
||||
$reihungstest->reihungstestangetreten = true;
|
||||
$reihungstest->save(false);
|
||||
$reihungstest->new = false;
|
||||
|
||||
if(!$reihungstest->savePersonReihungstest())
|
||||
if($rtpunkte!==false)
|
||||
{
|
||||
$errormsg .='<br>Fehler:'.$reihungstest->errorsmg;
|
||||
$reihungstest->punkte = str_replace(',','.',$rtpunkte);
|
||||
$reihungstest->teilgenommen = true;
|
||||
$reihungstest->save(false);
|
||||
$reihungstest->new = false;
|
||||
|
||||
if(!$reihungstest->savePersonReihungstest())
|
||||
{
|
||||
$errormsg .='<br>Fehler:'.$reihungstest->errorsmg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2050,7 +2063,7 @@ if($reihungstest_id!='')
|
||||
$erg = $pruefling->getReihungstestErgebnisPrestudent($item->prestudent_id, true);
|
||||
else
|
||||
$erg = $pruefling->getReihungstestErgebnisPrestudent($item->prestudent_id);
|
||||
if($erg!=0)
|
||||
if($erg!==false)
|
||||
{
|
||||
$rt_in_anderen_stg.=number_format($erg,2).' Punkte im Studiengang '.$studiengang->kuerzel_arr[$item->studiengang_kz].'<br>';
|
||||
}
|
||||
@@ -2083,8 +2096,16 @@ if($reihungstest_id!='')
|
||||
<td style="display: table-cell" class="clm_geburtsdatum">'.$db->convert_html_chars($row->gebdatum!=''?$datum_obj->convertISODate($row->gebdatum):' ').'</td>
|
||||
<td style="display: table-cell; text-align: center" class="clm_email"><a href="mailto:'.$db->convert_html_chars($row->email).'"><img src="../../skin/images/button_mail.gif" name="mail"></a></td>
|
||||
<td style="display: table-cell" class="clm_absolviert">'.$rt_in_anderen_stg.'</td>
|
||||
<td style="display: table-cell; align: right" class="clm_ergebnis"">'.($rtergebnis==0?'-':number_format($rtergebnis,2,'.','')).'</td>
|
||||
<td style="display: table-cell; align: right" class="clm_fas">'.($rtergebnis!=0 && $row->punkte==''?'<a href="'.$_SERVER['PHP_SELF'].'?reihungstest_id='.$reihungstest_id.'&stg_kz='.$stg_kz.'&type=savertpunkte&rt_person_id='.$row->rt_person_id.'&rtpunkte='.$rtergebnis.'" >übertragen</a>':$row->punkte).'</td>
|
||||
<td style="display: table-cell; align: right" class="clm_ergebnis"">'.($rtergebnis===false?'-':number_format($rtergebnis,2,'.','')).'</td>
|
||||
<td style="display: table-cell; align: right" class="clm_fas">';
|
||||
if($rtergebnis!==false && $row->punkte=='')
|
||||
echo '<a href="'.$_SERVER['PHP_SELF'].'?reihungstest_id='.$reihungstest_id.'&stg_kz='.$stg_kz.'&type=savertpunkte&rt_person_id='.$row->rt_person_id.'&rtpunkte='.$rtergebnis.'" >übertragen</a>';
|
||||
else
|
||||
{
|
||||
if($row->punkte!='')
|
||||
echo number_format($row->punkte,2,'.','');
|
||||
}
|
||||
echo '</td>
|
||||
</tr>';
|
||||
|
||||
$mailto.= ($mailto!=''?',':'').$row->email;
|
||||
@@ -2171,7 +2192,7 @@ if($reihungstest_id!='')
|
||||
$erg = $pruefling->getReihungstestErgebnisPrestudent($item->prestudent_id, true);
|
||||
else
|
||||
$erg = $pruefling->getReihungstestErgebnisPrestudent($item->prestudent_id);
|
||||
if($erg!=0)
|
||||
if($erg!==false)
|
||||
{
|
||||
$rt_in_anderen_stg.=number_format($erg,2).' Punkte im Studiengang '.$studiengang->kuerzel_arr[$item->studiengang_kz].'<br>';
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
/*******************************************************************************************************
|
||||
* Autocomplete
|
||||
* projektabgabe ermöglicht den Download aller Abgaben eines Stg.
|
||||
* Autocomplete
|
||||
* projektabgabe ermöglicht den Download aller Abgaben eines Stg.
|
||||
* fuer Diplom- und Bachelorarbeiten
|
||||
*******************************************************************************************************/
|
||||
header( 'Expires: -1' );
|
||||
@@ -35,20 +35,20 @@
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
include_once('../../include/basis_db.class.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Datenbankanbindung
|
||||
// ------------------------------------------------------------------------------------------
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Datenbank kann nicht geoeffnet werden. <a href="javascript:history.back()">Zurück</a>');
|
||||
|
||||
|
||||
if (!$uid = get_uid())
|
||||
die('Keine UID gefunden ! <a href="javascript:history.back()">Zurück</a>');
|
||||
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($uid);
|
||||
|
||||
$rechte->getBerechtigungen($uid);
|
||||
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Initialisierung
|
||||
// ------------------------------------------------------------------------------------------
|
||||
@@ -58,13 +58,13 @@
|
||||
// Parameter Aufruf uebernehmen
|
||||
// ------------------------------------------------------------------------------------------
|
||||
$oe_kurzbz=trim((isset($_REQUEST['oe_kurzbz']) ? $_REQUEST['oe_kurzbz']:''));
|
||||
$funktion_kurzbz=trim((isset($_REQUEST['funktion_kurzbz']) ? $_REQUEST['funktion_kurzbz']:''));
|
||||
$nation=trim((isset($_REQUEST['nation']) ? $_REQUEST['nation']:''));
|
||||
$plz=trim((isset($_REQUEST['plz']) ? $_REQUEST['plz']:''));
|
||||
|
||||
$funktion_kurzbz=trim((isset($_REQUEST['funktion_kurzbz']) ? $_REQUEST['funktion_kurzbz']:''));
|
||||
$nation=trim((isset($_REQUEST['nation']) ? $_REQUEST['nation']:''));
|
||||
$plz=trim((isset($_REQUEST['plz']) ? $_REQUEST['plz']:''));
|
||||
|
||||
$work=trim(isset($_REQUEST['work'])?$_REQUEST['work']:(isset($_REQUEST['ajax'])?$_REQUEST['ajax']:false));
|
||||
$work=strtolower($work);
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Datenlesen
|
||||
// ------------------------------------------------------------------------------------------
|
||||
@@ -83,7 +83,7 @@ cellSeparator (default value: "|")
|
||||
exit();
|
||||
if (is_null($gemeinde) || $gemeinde=='')
|
||||
exit();
|
||||
|
||||
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($gemeinde))));
|
||||
$pWhere=" upper(gemeinde) like '%".addslashes($matchcode)."%' ";
|
||||
$pSql="SELECT distinct gemeinde
|
||||
@@ -92,14 +92,14 @@ cellSeparator (default value: "|")
|
||||
ORDER BY nation,gemeinde ";
|
||||
|
||||
$pArt='';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='';
|
||||
$pTable='';
|
||||
$matchcode='';
|
||||
$pWhere='';
|
||||
$pOrder='';
|
||||
$pLimit='';
|
||||
|
||||
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
{
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
@@ -107,7 +107,7 @@ cellSeparator (default value: "|")
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
echo html_entity_decode($oRresult[$i]->gemeinde).'|'.html_entity_decode($nation)."\n";
|
||||
break;
|
||||
|
||||
|
||||
case 'plz':
|
||||
$plz=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$nation=trim((isset($_REQUEST['nation']) ? $_REQUEST['nation']:''));
|
||||
@@ -115,7 +115,7 @@ cellSeparator (default value: "|")
|
||||
exit();
|
||||
if (is_null($plz) || $plz=='')
|
||||
exit();
|
||||
|
||||
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($plz))));
|
||||
$pWhere=" to_char(plz,'999999') like '%".addslashes($matchcode)."%' ";
|
||||
$pSql="SELECT distinct plz
|
||||
@@ -124,7 +124,7 @@ cellSeparator (default value: "|")
|
||||
ORDER BY plz ";
|
||||
|
||||
$pArt='';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='';
|
||||
$pTable='';
|
||||
$matchcode='';
|
||||
@@ -146,7 +146,7 @@ cellSeparator (default value: "|")
|
||||
exit();
|
||||
if (is_null($ort) || $ort=='')
|
||||
exit();
|
||||
|
||||
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($ort))));
|
||||
$pWhere=" upper(ort) like '%".addslashes($matchcode)."%' ".($nation?" and nation='".addslashes($nation)."'":'');
|
||||
$pSql="SELECT distinct plz,ort
|
||||
@@ -155,7 +155,7 @@ cellSeparator (default value: "|")
|
||||
ORDER BY plz,ort ";
|
||||
|
||||
$pArt='';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='';
|
||||
$pTable='';
|
||||
$matchcode='';
|
||||
@@ -170,20 +170,20 @@ cellSeparator (default value: "|")
|
||||
echo html_entity_decode($oRresult[$i]->ort).'|'.html_entity_decode($oRresult[$i]->plz)."\n";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
case 'position':
|
||||
$position=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
|
||||
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($position))));
|
||||
$pWhere=" upper(position) like '%".addslashes($matchcode)."%' ".($funktion_kurzbz?" and funktion_kurzbz='".addslashes($funktion_kurzbz)."'":'');
|
||||
$pSql="SELECT distinct funktion_kurzbz,position
|
||||
$pSql="SELECT distinct funktion_kurzbz,position
|
||||
FROM public.tbl_personfunktionstandort
|
||||
where ". $pWhere ."
|
||||
ORDER BY funktion_kurzbz,position ";
|
||||
|
||||
$pArt='';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='';
|
||||
$pTable='';
|
||||
$matchcode='';
|
||||
@@ -197,8 +197,8 @@ cellSeparator (default value: "|")
|
||||
exit;
|
||||
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($position))));
|
||||
$pWhere=" upper(position) like '%".addslashes($matchcode)."%'";
|
||||
$pSql="SELECT distinct funktion_kurzbz,position
|
||||
$pWhere=" upper(position) like '%".addslashes($matchcode)."%'";
|
||||
$pSql="SELECT distinct funktion_kurzbz,position
|
||||
FROM public.tbl_personfunktionstandort
|
||||
where ". $pWhere ."
|
||||
ORDER BY funktion_kurzbz,position ";
|
||||
@@ -211,7 +211,7 @@ cellSeparator (default value: "|")
|
||||
break;
|
||||
|
||||
case 'work_firmen_search':
|
||||
$json=array();
|
||||
$json=array();
|
||||
$berechtigung_kurzbz = 'basis/firma:begrenzt';
|
||||
if(!$rechte->isBerechtigt($berechtigung_kurzbz))
|
||||
exit(json_encode(array_push($json, array ('oFirma_id' => '','oName' =>'keine Berechtigung'))));
|
||||
@@ -223,17 +223,17 @@ cellSeparator (default value: "|")
|
||||
$qry.=" FROM public.tbl_firma, public.tbl_standort ";
|
||||
$qry.=" left outer join public.tbl_adresse on ( tbl_adresse.adresse_id=tbl_standort.adresse_id ) ";
|
||||
$qry.=" WHERE tbl_standort.firma_id=tbl_firma.firma_id ";
|
||||
|
||||
|
||||
if($filter!='')
|
||||
$qry.= " and ( lower(tbl_firma.name) like lower('%$filter%')
|
||||
OR lower(kurzbz) like lower('%$filter%')
|
||||
OR lower(tbl_adresse.strasse) like lower('%$filter%')
|
||||
OR lower(bezeichnung) like lower('%$filter%')
|
||||
OR lower(anmerkung) like lower('%$filter%')
|
||||
$qry.= " and ( lower(tbl_firma.name) like lower('%$filter%')
|
||||
OR lower(kurzbz) like lower('%$filter%')
|
||||
OR lower(tbl_adresse.strasse) like lower('%$filter%')
|
||||
OR lower(bezeichnung) like lower('%$filter%')
|
||||
OR lower(tbl_firma.anmerkung) like lower('%$filter%')
|
||||
".(is_numeric($filter)?" OR tbl_firma.firma_id='$filter'":'')."
|
||||
) ";
|
||||
|
||||
|
||||
|
||||
if($firmentyp_kurzbz!='')
|
||||
$qry.=" and firmentyp_kurzbz='".addslashes($firmentyp_kurzbz)."'";
|
||||
$qry.=" ORDER BY tbl_firma.name ";
|
||||
@@ -242,7 +242,7 @@ cellSeparator (default value: "|")
|
||||
$qry.=" limit 350 ";
|
||||
|
||||
$pArt='';
|
||||
$pDistinct=false;
|
||||
$pDistinct=false;
|
||||
$pFields='';
|
||||
$pTable='';
|
||||
$matchcode='';
|
||||
@@ -253,10 +253,10 @@ cellSeparator (default value: "|")
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
{
|
||||
array_push($json, array ('oFirma_id' => '','oName' => $db->errormsg ));
|
||||
}
|
||||
}
|
||||
else if ($oRresult)
|
||||
{
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
{
|
||||
array_push($json, array ('oFirma_id' => $oRresult[$i]->firma_id,'oName' => $oRresult[$i]->name ));
|
||||
}
|
||||
@@ -264,17 +264,17 @@ cellSeparator (default value: "|")
|
||||
else
|
||||
{
|
||||
array_push($json, array ('oFirma_id' => '','oName' => 'keine Daten gefunden!' ));
|
||||
}
|
||||
}
|
||||
echo json_encode($json);
|
||||
break;
|
||||
|
||||
case 'tags':
|
||||
$tag=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
|
||||
|
||||
$pWhere=" upper(tag) like upper('%".addslashes($tag)."%')";
|
||||
|
||||
|
||||
$pArt='select';
|
||||
$pDistinct=false;
|
||||
$pDistinct=false;
|
||||
$pFields='tag';
|
||||
$pTable='public.tbl_tag';
|
||||
$matchcode='';
|
||||
@@ -283,7 +283,7 @@ cellSeparator (default value: "|")
|
||||
$pSql='';
|
||||
if (!$result=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
|
||||
if(is_array($result))
|
||||
{
|
||||
$json=array();
|
||||
@@ -296,13 +296,13 @@ cellSeparator (default value: "|")
|
||||
echo json_encode($json);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
// Person - FH Technikum suche
|
||||
case 'person':
|
||||
$person_id=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($person_id) || $person_id=='')
|
||||
exit('person_id wurde nicht übergeben!');
|
||||
|
||||
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($person_id))));
|
||||
$pWhere=" aktiv ";
|
||||
if ($person_id)
|
||||
@@ -313,20 +313,20 @@ cellSeparator (default value: "|")
|
||||
$pWhere.=" or UPPER(trim(vorname)) like '%".addslashes($matchcode)."%' ";
|
||||
$pWhere.=" or UPPER(trim(nachname || ' ' || vorname)) like '%".addslashes($matchcode)."%' ";
|
||||
$pWhere.=" or UPPER(trim(vorname || ' ' || nachname)) like '%".addslashes($matchcode)."%' ) ";
|
||||
}
|
||||
}
|
||||
if (!empty($oe_kurzbz))
|
||||
{
|
||||
$pSql="SELECT vw_benutzer.uid,vw_benutzer.person_id,vw_benutzer.aktiv,uid,person_id,titelpre,anrede,vorname,nachname,vornamen,titelpost,funktion_kurzbz
|
||||
FROM public.tbl_benutzerfunktion JOIN campus.vw_benutzer USING(uid)
|
||||
{
|
||||
$pSql="SELECT vw_benutzer.uid,vw_benutzer.person_id,vw_benutzer.aktiv,uid,person_id,titelpre,anrede,vorname,nachname,vornamen,titelpost,funktion_kurzbz
|
||||
FROM public.tbl_benutzerfunktion JOIN campus.vw_benutzer USING(uid)
|
||||
where ". $pWhere ."
|
||||
and (funktion_kurzbz='oezuordnung')
|
||||
and (funktion_kurzbz='oezuordnung')
|
||||
and oe_kurzbz IN(
|
||||
WITH RECURSIVE oes(oe_kurzbz, oe_parent_kurzbz) as
|
||||
WITH RECURSIVE oes(oe_kurzbz, oe_parent_kurzbz) as
|
||||
(
|
||||
SELECT oe_kurzbz, oe_parent_kurzbz FROM public.tbl_organisationseinheit
|
||||
SELECT oe_kurzbz, oe_parent_kurzbz FROM public.tbl_organisationseinheit
|
||||
WHERE upper(trim(oe_kurzbz))=upper(trim('".addslashes($oe_kurzbz)."'))
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz FROM public.tbl_organisationseinheit o, oes
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz FROM public.tbl_organisationseinheit o, oes
|
||||
WHERE o.oe_parent_kurzbz=oes.oe_kurzbz
|
||||
)
|
||||
SELECT oe_kurzbz
|
||||
@@ -335,7 +335,7 @@ cellSeparator (default value: "|")
|
||||
ORDER BY nachname, vorname, funktion_kurzbz ";
|
||||
|
||||
$pArt='';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='';
|
||||
$pTable='';
|
||||
$matchcode='';
|
||||
@@ -347,7 +347,7 @@ cellSeparator (default value: "|")
|
||||
else
|
||||
{
|
||||
$pArt='select';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='uid,person_id,titelpre,anrede,vorname,nachname,vornamen,aktiv,\'\' as funktion_kurzbz';
|
||||
$pTable=' campus.vw_benutzer ';
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($person_id))));
|
||||
@@ -372,19 +372,19 @@ cellSeparator (default value: "|")
|
||||
$json[]=$item;
|
||||
/* echo html_entity_decode($oRresult[$i]->person_id).'|'
|
||||
.trim($oRresult[$i]->anrede).' '.($oRresult[$i]->titelpre?html_entity_decode($oRresult[$i]->titelpre).' ':'')
|
||||
.html_entity_decode($oRresult[$i]->vorname).' '.html_entity_decode($oRresult[$i]->nachname).($oRresult[$i]->funktion_kurzbz?html_entity_decode($oRresult[$i]->funktion_kurzbz).' ':'')
|
||||
.html_entity_decode($oRresult[$i]->vorname).' '.html_entity_decode($oRresult[$i]->nachname).($oRresult[$i]->funktion_kurzbz?html_entity_decode($oRresult[$i]->funktion_kurzbz).' ':'')
|
||||
.($oRresult[$i]->aktiv==true || $oRresult[$i]->aktiv=='t'?' <img src="../../skin/images/tick.png" alt="aktiv" />':' <img src="../../skin/images/cross.png" alt="nicht aktiv" />')
|
||||
."\n"; */
|
||||
}
|
||||
echo json_encode($json);
|
||||
break;
|
||||
|
||||
|
||||
// Lektor,Student - FHTW Suche im LV-Plan
|
||||
case 'lektor_student':
|
||||
$person_id=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
if (is_null($person_id) || $person_id=='')
|
||||
exit('person_id wurde nicht übergeben!');
|
||||
|
||||
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($person_id))));
|
||||
$pWhere=" aktiv ";
|
||||
if ($person_id)
|
||||
@@ -395,20 +395,20 @@ cellSeparator (default value: "|")
|
||||
$pWhere.=" or UPPER(trim(vorname)) like '%".addslashes($matchcode)."%' ";
|
||||
$pWhere.=" or UPPER(trim(nachname || ' ' || vorname)) like '%".addslashes($matchcode)."%' ";
|
||||
$pWhere.=" or UPPER(trim(vorname || ' ' || nachname)) like '%".addslashes($matchcode)."%' ) ";
|
||||
}
|
||||
}
|
||||
/*if (!empty($oe_kurzbz))
|
||||
{
|
||||
$pSql="SELECT vw_benutzer.uid,vw_benutzer.person_id,vw_benutzer.aktiv,uid,person_id,titelpre,anrede,vorname,nachname,vornamen,titelpost,funktion_kurzbz
|
||||
FROM public.tbl_benutzerfunktion JOIN campus.vw_benutzer USING(uid)
|
||||
{
|
||||
$pSql="SELECT vw_benutzer.uid,vw_benutzer.person_id,vw_benutzer.aktiv,uid,person_id,titelpre,anrede,vorname,nachname,vornamen,titelpost,funktion_kurzbz
|
||||
FROM public.tbl_benutzerfunktion JOIN campus.vw_benutzer USING(uid)
|
||||
where ". $pWhere ."
|
||||
and (funktion_kurzbz='oezuordnung')
|
||||
and (funktion_kurzbz='oezuordnung')
|
||||
and oe_kurzbz IN(
|
||||
WITH RECURSIVE oes(oe_kurzbz, oe_parent_kurzbz) as
|
||||
WITH RECURSIVE oes(oe_kurzbz, oe_parent_kurzbz) as
|
||||
(
|
||||
SELECT oe_kurzbz, oe_parent_kurzbz FROM public.tbl_organisationseinheit
|
||||
SELECT oe_kurzbz, oe_parent_kurzbz FROM public.tbl_organisationseinheit
|
||||
WHERE upper(trim(oe_kurzbz))=upper(trim('".addslashes($oe_kurzbz)."'))
|
||||
UNION ALL
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz FROM public.tbl_organisationseinheit o, oes
|
||||
SELECT o.oe_kurzbz, o.oe_parent_kurzbz FROM public.tbl_organisationseinheit o, oes
|
||||
WHERE o.oe_parent_kurzbz=oes.oe_kurzbz
|
||||
)
|
||||
SELECT oe_kurzbz
|
||||
@@ -417,7 +417,7 @@ cellSeparator (default value: "|")
|
||||
ORDER BY nachname, vorname, funktion_kurzbz ";
|
||||
|
||||
$pArt='';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='';
|
||||
$pTable='';
|
||||
$matchcode='';
|
||||
@@ -429,18 +429,18 @@ cellSeparator (default value: "|")
|
||||
else
|
||||
{*/
|
||||
$pArt='select';
|
||||
$pDistinct=true;
|
||||
$pDistinct=true;
|
||||
$pFields='uid,vorname,nachname,tbl_mitarbeiter.lektor,aktiv';
|
||||
$pTable=' campus.vw_benutzer LEFT JOIN public.tbl_mitarbeiter ON (uid=mitarbeiter_uid)';
|
||||
$matchcode=mb_strtoupper(addslashes(str_replace(array('*','%',',',';',"'",'"',' '),'%',trim($person_id))));
|
||||
$pOrder='lektor,nachname';
|
||||
$pLimit='100';
|
||||
$pSql='';
|
||||
|
||||
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
|
||||
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
{
|
||||
echo html_entity_decode($oRresult[$i]->uid).'|'
|
||||
@@ -450,7 +450,7 @@ cellSeparator (default value: "|")
|
||||
."\n";
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
echo " Funktion $work fehlt! ";
|
||||
break;
|
||||
|
||||
@@ -30,7 +30,7 @@ $user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(!$rechte->isBerechtigt('basis/statistik', 's'))
|
||||
if(!$rechte->isBerechtigt('basis/statistik', null, 's'))
|
||||
die('Sie haben keine Berechtigung (basis/statistik) für diese Seite');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user