mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dd4c9ead3e | |||
| 0a2f85edf0 | |||
| 5b00b28a8f | |||
| ac5bbf7ac6 |
@@ -13,3 +13,11 @@ $config['cis_vilesci_index_page'] = 'index.ci.php';
|
||||
// Cis CI BaseUrl
|
||||
$config['cis_base_url'] = defined('CIS_ROOT') ? CIS_ROOT : APP_ROOT;
|
||||
$config['cis_index_page'] = 'cis.php';
|
||||
|
||||
// Associative array of OEs allowed to have lehrauftraege
|
||||
// Array structure: OE => Name of the phrase that contains the name of the OE
|
||||
$config['cis_oes_lehrauftraege'] = array(
|
||||
'etw' => 'PDFLehrauftraegeFH',
|
||||
'lehrgang' => 'PDFLehrauftraegeLehrgaenge'
|
||||
);
|
||||
|
||||
|
||||
@@ -58,6 +58,9 @@ class LehrauftragAkzeptieren extends Auth_Controller
|
||||
)
|
||||
);
|
||||
|
||||
// Load "cis" config
|
||||
$this->load->config('cis');
|
||||
|
||||
$this->_setAuthUID(); // sets property uid
|
||||
|
||||
$this->setControllerId(); // sets the controller id
|
||||
@@ -100,7 +103,8 @@ class LehrauftragAkzeptieren extends Auth_Controller
|
||||
|
||||
$view_data = array(
|
||||
'studiensemester_selected' => $studiensemester_kurzbz,
|
||||
'is_external_lector' => $is_external_lector
|
||||
'is_external_lector' => $is_external_lector,
|
||||
'cis_oes_lehrauftraege' => $this->config->item('cis_oes_lehrauftraege')
|
||||
);
|
||||
|
||||
$this->load->view('lehre/lehrauftrag/acceptLehrauftrag.php', $view_data);
|
||||
|
||||
@@ -188,8 +188,13 @@ $this->load->view(
|
||||
<?php echo $this->p->t('global', 'dokumentePDF'); ?> <i class="fa fa-arrow-down"></i> <span class="caret"></span>
|
||||
</button>
|
||||
<ul id="ul-download-pdf" class="dropdown-menu">
|
||||
<li value="etw"><a class="dropdown-item" href="#"><?php echo $this->p->t('global', 'PDFLehrauftraegeFH'); ?></a></li>
|
||||
<li value="lehrgang"><a class="dropdown-item" href="#"><?php echo $this->p->t('global', 'PDFLehrauftraegeLehrgaenge'); ?></a></li>
|
||||
<?php foreach ($cis_oes_lehrauftraege as $oe => $phrase): ?>
|
||||
<li value="<?php echo $oe;?>">
|
||||
<a class="dropdown-item" href="#">
|
||||
<?php echo $this->p->t('global', $phrase); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+7
-4
@@ -19,7 +19,10 @@
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
|
||||
*/
|
||||
|
||||
session_start();
|
||||
|
||||
require_once('../config/global.config.inc.php');
|
||||
require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/content.class.php');
|
||||
require_once('../include/template.class.php');
|
||||
@@ -64,8 +67,8 @@ if(isset($_POST['NewContent']))
|
||||
if(!isset($template->result[0]))
|
||||
exit('Es ist kein Template vorhanden');
|
||||
|
||||
if(in_array('etw',$berechtigte_oe))
|
||||
$oe = 'etw';
|
||||
if (in_array(FHC_OE_ROOT, $berechtigte_oe))
|
||||
$oe = FHC_OE_ROOT;
|
||||
else
|
||||
$oe = $berechtigte_oe[0];
|
||||
|
||||
@@ -294,8 +297,8 @@ if(!is_null($method))
|
||||
if(!isset($template->result[0]))
|
||||
die('Es ist kein Template vorhanden');
|
||||
|
||||
if(in_array('etw',$berechtigte_oe))
|
||||
$oe = 'etw';
|
||||
if (in_array(FHC_OE_ROOT, $berechtigte_oe))
|
||||
$oe = FHC_OE_ROOT;
|
||||
else
|
||||
$oe = $berechtigte_oe[0];
|
||||
|
||||
|
||||
@@ -368,9 +368,13 @@ define('SANCHO_MAIL_FOOTER_IMG', 'sancho_footer_DEFAULT.jpg');
|
||||
// Gibt an, ob in der StudVW der Status vorgerueckt werden kann
|
||||
define('STATUS_VORRUECKEN_ANZEIGEN', true);
|
||||
|
||||
//externe Ueberwachung im Testtool erlauben
|
||||
// Externe Ueberwachung im Testtool erlauben
|
||||
define('TESTTOOL_EXTERNE_UEBERWACHUNG_ALLOWED', false);
|
||||
|
||||
//enable tags in StudVW
|
||||
// Defines which organisation is the root of the organisation tree hierarchy for the whole "FHComplete"
|
||||
define('FHC_OE_ROOT', 'etw');
|
||||
|
||||
// Enable tags in StudVW
|
||||
define('STV_TAGS_ENABLED', false);
|
||||
|
||||
?>
|
||||
|
||||
@@ -139,7 +139,7 @@ function sendSanchoMail($vorlage_kurzbz, $vorlage_data, $to, $subject, $headerIm
|
||||
function parseMailContent($vorlage_kurzbz, $vorlage_data)
|
||||
{
|
||||
$vorlage = new Vorlage();
|
||||
$vorlage->getAktuelleVorlage('etw', $vorlage_kurzbz);
|
||||
$vorlage->getAktuelleVorlage(FHC_OE_ROOT, $vorlage_kurzbz);
|
||||
|
||||
// If the text and the subject of the template are not empty
|
||||
if (!empty($vorlage->text))
|
||||
|
||||
@@ -541,23 +541,20 @@ $(function () {
|
||||
|
||||
if ($(this).attr("value") != null && $(this).attr("value") != "") {
|
||||
var selected = $(this).attr("value");
|
||||
|
||||
if (selected == "etw" || selected == "lehrgang") {
|
||||
window.open(
|
||||
APP_ROOT +
|
||||
"cis/private/pdfExport.php" +
|
||||
"?xml=lehrauftrag_annehmen.xml.php" +
|
||||
"&xsl=Lehrauftrag" +
|
||||
"&xsl_oe_kurzbz=" +
|
||||
selected +
|
||||
"&stg_kz=" +
|
||||
"&uid=" +
|
||||
uid +
|
||||
"&ss=" +
|
||||
studiensemester,
|
||||
"_parent"
|
||||
);
|
||||
}
|
||||
window.open(
|
||||
APP_ROOT +
|
||||
"cis/private/pdfExport.php" +
|
||||
"?xml=lehrauftrag_annehmen.xml.php" +
|
||||
"&xsl=Lehrauftrag" +
|
||||
"&xsl_oe_kurzbz=" +
|
||||
selected +
|
||||
"&stg_kz=" +
|
||||
"&uid=" +
|
||||
uid +
|
||||
"&ss=" +
|
||||
studiensemester,
|
||||
"_parent"
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -312,7 +312,7 @@ function drawLehrauftrag($uid)
|
||||
}
|
||||
elseif (!empty($xsl_oe_kurzbz))
|
||||
{
|
||||
if ($xsl_oe_kurzbz == 'etw')
|
||||
if ($xsl_oe_kurzbz == FHC_OE_ROOT)
|
||||
{
|
||||
$qry .= " AND lv_studiengang_kz > 0";
|
||||
}
|
||||
@@ -446,7 +446,7 @@ function drawLehrauftrag($uid)
|
||||
}
|
||||
elseif (!empty($xsl_oe_kurzbz))
|
||||
{
|
||||
if ($xsl_oe_kurzbz == 'etw')
|
||||
if ($xsl_oe_kurzbz == FHC_OE_ROOT)
|
||||
{
|
||||
$qry .= " AND lv.studiengang_kz > 0";
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
* Dieses Skript prueft die gesamte Systemumgebung und sollte nach jedem Update gestartet werden.
|
||||
* Geprueft wird: die Datenbank per "dbupdate_VERSION.php" auf aktualitaet, dabei werden fehlende Attribute angelegt.
|
||||
*/
|
||||
require_once('../config/global.config.inc.php');
|
||||
require_once('../config/system.config.inc.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
require_once('../version.php');
|
||||
@@ -374,4 +375,4 @@ if($neue==false)
|
||||
echo '<br>Keine neuen Webservicerechte';
|
||||
|
||||
echo '</body></html>';
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -5053,7 +5053,7 @@ if ($result = @$db->db_query("SELECT 1 FROM campus.tbl_dms_kategorie WHERE kateg
|
||||
'Anrechnung',
|
||||
'Dokumente zur Anrechnung von Lehrveranstaltungen',
|
||||
'studium',
|
||||
'etw',
|
||||
".$db->db_add_param(FHC_OE_ROOT).",
|
||||
NULL
|
||||
);";
|
||||
if (!$db->db_query($qry))
|
||||
@@ -5712,7 +5712,7 @@ if ($result = @$db->db_query("SELECT 1 FROM campus.tbl_dms_kategorie WHERE kateg
|
||||
'International Nachweis',
|
||||
'Nachweis der Internationalisierungsmaßnahmen',
|
||||
'fas',
|
||||
'etw',
|
||||
".$db->db_add_param(FHC_OE_ROOT).",
|
||||
NULL
|
||||
);";
|
||||
if (!$db->db_query($qry))
|
||||
|
||||
Reference in New Issue
Block a user