mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
- Bugfix beim Bearbeiten von Lehrfächern
- Encoding fix beim Reihungstest Excel Export
This commit is contained in:
@@ -20,25 +20,21 @@
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/fachbereich.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/lehrfach.class.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
$stg_kz=(isset($_REQUEST['stg_kz'])?$_REQUEST['stg_kz']:0);
|
||||
if(!is_numeric($stg_kz) && $stg_kz!='')
|
||||
$stg_kz='0';
|
||||
|
||||
$stg_kz=(isset($_REQUEST['stg_kz'])?$_REQUEST['stg_kz']:0);
|
||||
if(!is_numeric($stg_kz) && $stg_kz!='')
|
||||
$stg_kz='0';
|
||||
|
||||
$gg='';
|
||||
|
||||
$gg='';
|
||||
|
||||
$f=new fachbereich();
|
||||
$f->getAll();
|
||||
@@ -244,7 +240,7 @@ if($rechte->isBerechtigt('admin',0))
|
||||
echo "</SELECT></td></tr>";
|
||||
|
||||
echo "<tr><td>Semester:</td><td> <SELECT name='semester'>";
|
||||
for ($i=0;$i<=$s[$stg_kz]->max_sem;$i++)
|
||||
for ($i=0;$i<=$s[$lf->studiengang_kz]->max_sem;$i++)
|
||||
{
|
||||
if($i==$lf->semester)
|
||||
$selected='selected';
|
||||
|
||||
@@ -20,11 +20,7 @@
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/basis_db.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/reihungstest.class.php');
|
||||
@@ -34,9 +30,11 @@
|
||||
require_once('../../include/pruefling.class.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/prestudent.class.php');
|
||||
|
||||
require_once('../../include/Excel/excel.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
$user = get_uid();
|
||||
$datum_obj = new datum();
|
||||
$stg_kz = (isset($_GET['stg_kz'])?$_GET['stg_kz']:'-1');
|
||||
@@ -62,13 +60,13 @@
|
||||
{
|
||||
// Creating a workbook
|
||||
$workbook = new Spreadsheet_Excel_Writer();
|
||||
|
||||
$workbook->setVersion(8);
|
||||
// sending HTTP headers
|
||||
$workbook->send("Anwesenheitsliste_Reihungstest_".$reihungstest->datum.".xls");
|
||||
|
||||
// Creating a worksheet
|
||||
$worksheet =& $workbook->addWorksheet("Reihungstest");
|
||||
|
||||
$worksheet->setInputEncoding('utf-8');
|
||||
//Formate Definieren
|
||||
$format_bold =& $workbook->addFormat();
|
||||
$format_bold->setBold();
|
||||
|
||||
Reference in New Issue
Block a user