mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Funktion cutString bereinigt
Alle Skripte mit eigener Funktion "cutString" verwenden nun diese Funktion aus functions.inc.php
This commit is contained in:
@@ -455,21 +455,6 @@ if(isset($_GET['kopieren']))
|
||||
return ($var!=''?"'".addslashes($var)."'":'null');
|
||||
}
|
||||
|
||||
// ***********************************************************************************************
|
||||
// String auf Laenge abschneiden
|
||||
// ***********************************************************************************************
|
||||
function CutString($strVal, $limit)
|
||||
{
|
||||
if(strlen($strVal) > $limit+3)
|
||||
{
|
||||
return substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@@ -587,7 +572,7 @@ if(isset($_GET['kopieren']))
|
||||
{
|
||||
if (empty($lehrveranstaltung_id))
|
||||
$lehrveranstaltung_id=$row->lehrveranstaltung_id;
|
||||
$content.='<option value="'.$row->lehrveranstaltung_id.'" '.(("$lehrveranstaltung_id"=="$row->lehrveranstaltung_id")?' selected="selected" ':'').'> '.CutString($row->bezeichnung, 30).' '.$row->lehrform_kurzbz.' ('.$row->lehrveranstaltung_id.')</option>';
|
||||
$content.='<option value="'.$row->lehrveranstaltung_id.'" '.(("$lehrveranstaltung_id"=="$row->lehrveranstaltung_id")?' selected="selected" ':'').'> '.CutString($row->bezeichnung, 30, '...').' '.$row->lehrform_kurzbz.' ('.$row->lehrveranstaltung_id.')</option>';
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -634,7 +619,7 @@ if(isset($_GET['kopieren']))
|
||||
{
|
||||
$lektoren.= ($lektoren?',':'').' '.$ma->mitarbeiter_uid;
|
||||
}
|
||||
$lektoren=CutString($lektoren, 30);
|
||||
$lektoren=CutString($lektoren, 30, '...');
|
||||
$content.='<option value="'.$row->lehreinheit_id.'" '.($lehreinheit_id==$row->lehreinheit_id?' selected="selected" ':'').'> '.$row->lehrform_kurzbz.' '.$gruppen.' '.$lektoren.' ('.$row->lehreinheit_id.')</option>';
|
||||
}
|
||||
}
|
||||
@@ -786,7 +771,7 @@ if(isset($_GET['kopieren']))
|
||||
{
|
||||
if (empty($lehrveranstaltung_id_target))
|
||||
$lehrveranstaltung_id_target=$row->lehrveranstaltung_id;
|
||||
$content.='<option value="'.$row->lehrveranstaltung_id.'" '.(("$lehrveranstaltung_id_target"=="$row->lehrveranstaltung_id")?' selected="selected" ':'').'> '.CutString($row->bezeichnung, 30).' '.$row->lehrform_kurzbz.' ('.$row->lehrveranstaltung_id.')</option>';
|
||||
$content.='<option value="'.$row->lehrveranstaltung_id.'" '.(("$lehrveranstaltung_id_target"=="$row->lehrveranstaltung_id")?' selected="selected" ':'').'> '.CutString($row->bezeichnung, 30, '...').' '.$row->lehrform_kurzbz.' ('.$row->lehrveranstaltung_id.')</option>';
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -835,7 +820,7 @@ if(isset($_GET['kopieren']))
|
||||
{
|
||||
$lektoren.= ($lektoren?',':'').' '.$ma->mitarbeiter_uid;
|
||||
}
|
||||
$lektoren=CutString($lektoren, 30);
|
||||
$lektoren=CutString($lektoren, 30, '...');
|
||||
$content.='<option value="'.$row->lehreinheit_id.'" '.($lehreinheit_id_target==$row->lehreinheit_id?' selected="selected" ':'').'> '.$row->lehrform_kurzbz.' '.$gruppen.' '.$lektoren.' ('.$row->lehreinheit_id.')</option>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (C) 2006 Technikum-Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*
|
||||
*/
|
||||
require_once('../../config/cis.config.inc.php');
|
||||
require_once('../../include/globals.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../include/funktion.class.php');
|
||||
require_once('../../include/studiensemester.class.php');
|
||||
require_once('../../include/studiengang.class.php');
|
||||
require_once('../../include/lehrveranstaltung.class.php');
|
||||
require_once('../../include/mitarbeiter.class.php');
|
||||
require_once('../../include/student.class.php');
|
||||
require_once('../../include/datum.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||
|
||||
if (!$user=get_uid())
|
||||
die('Sie sind nicht angemeldet. Es wurde keine Benutzer UID gefunden ! <a href="javascript:history.back()">Zurück</a>');
|
||||
|
||||
$cutlength=10;
|
||||
$rechte=new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
$fkt=new funktion();
|
||||
$fkt->getAll($user);
|
||||
|
||||
$stg_obj = new studiengang();
|
||||
|
||||
if($stg_obj->getAll('kurzbzlang', false))
|
||||
{
|
||||
$stg = array();
|
||||
foreach($stg_obj->result as $row)
|
||||
$stg[$row->studiengang_kz] = $row->kurzbzlang;
|
||||
}
|
||||
else
|
||||
die('Fehler beim Auslesen der Studiengaenge');
|
||||
|
||||
|
||||
if(check_lektor($user))
|
||||
$is_lector=true;
|
||||
else
|
||||
$is_lector=false;
|
||||
|
||||
if(check_student($user))
|
||||
$is_student=true;
|
||||
else
|
||||
$is_student=false;
|
||||
|
||||
function CutString($strVal, $limit)
|
||||
{
|
||||
if(strlen($strVal) > $limit+3)
|
||||
{
|
||||
return substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
|
||||
$aktiv=false;
|
||||
$qry = "SELECT aktiv FROM campus.vw_benutzer WHERE uid='$user'";
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($row = $db->db_fetch_object($result))
|
||||
{
|
||||
$aktiv = ($row->aktiv=='t'?true:false);
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
__js_page_array = new Array();
|
||||
|
||||
function js_toggle_container(conid)
|
||||
{
|
||||
if (document.getElementById)
|
||||
{
|
||||
var block = "table-row";
|
||||
if (navigator.appName.indexOf('Microsoft') > -1)
|
||||
block = 'block';
|
||||
var status = __js_page_array[conid];
|
||||
if (status == null)
|
||||
status=document.getElementById(conid).style.display; //status = "none";
|
||||
if (status == "none")
|
||||
{
|
||||
document.getElementById(conid).style.display = block;
|
||||
__js_page_array[conid] = "visible";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById(conid).style.display = 'none';
|
||||
__js_page_array[conid] = "none";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else
|
||||
return true;
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php
|
||||
include('../../include/'.EXT_FKT_PATH.'/cis_menu_meincis.inc.php');
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -48,7 +48,7 @@ class menu_addon_freifaecher extends menu_addon
|
||||
$this->items[] = array('title'=>$row->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>'<span '.(!$row->aktiv?' style="" ':' style=""').'>'.(!$row->aktiv?' <img src="../skin/images/ampel_rot.png" height="8px" height="8px"> ':' <img src="../skin/images/ampel_gruen.png" height="8px"> ').' '.$this->CutString($row->bezeichnung_arr[$sprache], 21).'</span>'
|
||||
'name'=>'<span '.(!$row->aktiv?' style="" ':' style=""').'>'.(!$row->aktiv?' <img src="../skin/images/ampel_rot.png" height="8px" height="8px"> ':' <img src="../skin/images/ampel_gruen.png" height="8px"> ').' '.$this->CutString($row->bezeichnung_arr[$sprache], 21, '...').'</span>'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -58,18 +58,6 @@ class menu_addon_freifaecher extends menu_addon
|
||||
|
||||
$this->output();
|
||||
}
|
||||
|
||||
private function CutString($strVal, $limit)
|
||||
{
|
||||
if(mb_strlen($strVal) > $limit+3)
|
||||
{
|
||||
return mb_substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new menu_addon_freifaecher();
|
||||
|
||||
@@ -235,7 +235,7 @@ class menu_addon_lehrveranstaltungen extends menu_addon
|
||||
}
|
||||
$this->block.= '<tr>';
|
||||
$this->block.= ' <td class="tdwrap"><ul style="margin: 0px; padding: 0px; ">';
|
||||
$this->block.= "<li style='padding: 0px;'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id\" target=\"content\">".$this->CutString($row->bezeichnung_arr[$sprache], $cutlength).' '.$row->lehrform_kurzbz."</a></li>";
|
||||
$this->block.= "<li style='padding: 0px;'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id\" target=\"content\">".$this->CutString($row->bezeichnung_arr[$sprache], $cutlength, '...').' '.$row->lehrform_kurzbz."</a></li>";
|
||||
$this->block.= ' </ul></td>';
|
||||
$this->block.= '</tr>';
|
||||
}
|
||||
@@ -243,18 +243,6 @@ class menu_addon_lehrveranstaltungen extends menu_addon
|
||||
$this->block.='</table>';
|
||||
$this->output();
|
||||
}
|
||||
|
||||
private function CutString($strVal, $limit)
|
||||
{
|
||||
if(mb_strlen($strVal) > $limit+3)
|
||||
{
|
||||
return mb_substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new menu_addon_lehrveranstaltungen();
|
||||
|
||||
@@ -331,27 +331,15 @@ class menu_addon_lehrveranstaltungen_studienplan extends menu_addon
|
||||
else
|
||||
$bold='';
|
||||
if(!$row->lehrauftrag && defined('CIS_LEHRVERANSTALTUNG_MODULE_LINK') && !CIS_LEHRVERANSTALTUNG_MODULE_LINK)
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; color:#b2b2b2; $bold'>".$this->CutString($row->bezeichnung_arr[$sprache], 21).' '.$row->lehrform_kurzbz."</li>";
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; color:#b2b2b2; $bold'>".$this->CutString($row->bezeichnung_arr[$sprache], 21, '...').' '.$row->lehrform_kurzbz."</li>";
|
||||
else
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; $bold'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id&studiensemester_kurzbz=$studiensemester_kurzbz\" target=\"content\">".$this->CutString($row->bezeichnung_arr[$sprache], 21).' '.$row->lehrform_kurzbz."</a></li>";
|
||||
$this->block.= "<li style='display:inline-block;white-space: nowrap;padding: 0px; margin:0px; $bold'><a title=\"".$row->bezeichnung_arr[$sprache]."\" href=\"private/lehre/lesson.php?lvid=$row->lehrveranstaltung_id&studiensemester_kurzbz=$studiensemester_kurzbz\" target=\"content\">".$this->CutString($row->bezeichnung_arr[$sprache], 21, '...').' '.$row->lehrform_kurzbz."</a></li>";
|
||||
|
||||
if(isset($row->childs))
|
||||
$this->printTree($row->childs, $sprache, $studiensemester_kurzbz);
|
||||
}
|
||||
$this->block.="</ul>";
|
||||
}
|
||||
|
||||
private function CutString($strVal, $limit)
|
||||
{
|
||||
if(mb_strlen($strVal) > $limit+3)
|
||||
{
|
||||
return mb_substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
new menu_addon_lehrveranstaltungen_studienplan();
|
||||
?>
|
||||
|
||||
@@ -98,7 +98,7 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
$stsementry[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>'FF '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength)
|
||||
'name'=>'FF '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -106,7 +106,7 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
$stsementry[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength)
|
||||
'name'=>$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -178,7 +178,7 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
$stsementry[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>'FF '.$this->CutString($row->lehreverzeichnis, $cutlength)
|
||||
'name'=>'FF '.$this->CutString($row->lehreverzeichnis, $cutlength, '...')
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -190,7 +190,7 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
$stsementry[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$stsem,
|
||||
'name'=>$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength)
|
||||
'name'=>$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -216,18 +216,6 @@ class menu_addon_meinelvkompatibel extends menu_addon
|
||||
}
|
||||
$this->output();
|
||||
}
|
||||
|
||||
private function CutString($strVal, $limit)
|
||||
{
|
||||
if(mb_strlen($strVal) > $limit+3)
|
||||
{
|
||||
return mb_substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new menu_addon_meinelvkompatibel();
|
||||
|
||||
@@ -101,7 +101,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$row->studiensemester_kurzbz,
|
||||
'name'=>'FF '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength)
|
||||
'name'=>'FF '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -109,7 +109,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$row->studiensemester_kurzbz,
|
||||
'name'=>strtoupper($row->typ.$row->kurzbz).$row->semester.' '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength)
|
||||
'name'=>strtoupper($row->typ.$row->kurzbz).$row->semester.' '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -192,7 +192,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$lv_obj->bezeichnung_arr[$sprache],
|
||||
'target'=>'content',
|
||||
'link'=>'private/freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id,
|
||||
'name'=>'FF '.$this->CutString($row->lehreverzeichnis, $cutlength)
|
||||
'name'=>'FF '.$this->CutString($row->lehreverzeichnis, $cutlength, '...')
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -203,7 +203,7 @@ class menu_addon_meinelv extends menu_addon
|
||||
$this->items[] = array('title'=>$titel,
|
||||
'target'=>'content',
|
||||
'link'=>'private/lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'&studiensemester_kurzbz='.$row->studiensemester_kurzbz,
|
||||
'name'=>$kurzbz.' '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength)
|
||||
'name'=>$kurzbz.' '.$this->CutString($lv_obj->bezeichnung_arr[$sprache], $cutlength, '...')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -220,18 +220,6 @@ class menu_addon_meinelv extends menu_addon
|
||||
}
|
||||
$this->output();
|
||||
}
|
||||
|
||||
private function CutString($strVal, $limit)
|
||||
{
|
||||
if(mb_strlen($strVal) > $limit+3)
|
||||
{
|
||||
return mb_substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new menu_addon_meinelv();
|
||||
|
||||
@@ -1050,17 +1050,18 @@ function generateSpecialCharacterString($inputString, $punctuationMark = false)
|
||||
/**
|
||||
* Cuts the string to the given limit minus the stringlength of the placeholderSign and adds the placeholderSign at the end of the string
|
||||
* If $keepFilextension is true, the string is checked for a PATHINFO_EXTENSION and the extension is added to the returned string.
|
||||
* The returned stringlength includes the fileextension.
|
||||
* @param string $string The input string to be cutted
|
||||
* @param integer $limit The length of the returned string (including the placeholderSigns)
|
||||
* @param string $placeholderSign Optional. Default null. The string to be added at the end of the cutted string.
|
||||
* @param bool $keepFilextension. Default false. When set to true the
|
||||
* @return string The cutted string with the placeholderSign at the end
|
||||
* @return string The cutted string with the placeholderSign at the end and the optional fileextension
|
||||
*/
|
||||
function cutString($string, $limit, $placeholderSign = '', $keepFilextension = false)
|
||||
function cutString($string, $limit, $placeholderSign = '', $keepFileextension = false)
|
||||
{
|
||||
$offset = strlen($placeholderSign);
|
||||
$extension = '';
|
||||
if ($keepFilextension)
|
||||
if ($keepFileextension)
|
||||
{
|
||||
$extension = '.'.pathinfo($string, PATHINFO_EXTENSION);
|
||||
$offset = $offset + strlen($extension);
|
||||
|
||||
+1
-11
@@ -64,16 +64,6 @@ if(isset($_GET['ss']))
|
||||
else
|
||||
die('Fehlerhafte Parameteruebergabe');
|
||||
|
||||
//String der laenger als limit ist wird
|
||||
//abgeschnitten und '...' angehaengt
|
||||
function CutString($strVal, $limit)
|
||||
{
|
||||
if(mb_strlen($strVal) > $limit+3)
|
||||
return mb_substr($strVal, 0, $limit) . "...";
|
||||
else
|
||||
return $strVal;
|
||||
}
|
||||
|
||||
// GENERATE XML
|
||||
$xml = '<?xml version="1.0" encoding="UTF-8" ?><lehrauftraege>';
|
||||
$stg_arr = array();
|
||||
@@ -307,7 +297,7 @@ function drawLehrauftrag($uid)
|
||||
}
|
||||
|
||||
$lehreinheit_id=$row->lehreinheit_id;
|
||||
$lehrveranstaltung = CutString($row->lv_bezeichnung,30).' '.$row->lehrform_kurzbz.' '.$row->lv_semester.'. Semester';
|
||||
$lehrveranstaltung = CutString($row->lv_bezeichnung, 30, '...').' '.$row->lehrform_kurzbz.' '.$row->lv_semester.'. Semester';
|
||||
$fachbereich = $row->fachbereich_kurzbz;
|
||||
|
||||
if($row->gruppe_kurzbz!='')
|
||||
|
||||
@@ -364,17 +364,6 @@ if(!empty ($_GET))
|
||||
$stg_obj = new studiengang();
|
||||
$stg_obj->getAll('typ, kurzbz', false);
|
||||
|
||||
function CutString($strVal, $limit)
|
||||
{
|
||||
if(strlen($strVal) > $limit+3)
|
||||
{
|
||||
return substr($strVal, 0, $limit) . "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
return $strVal;
|
||||
}
|
||||
}
|
||||
echo 'Anzahl: '.(!empty($_GET)?count($preinteressent->result):'0');
|
||||
echo '</div>'; // Fixiertes Div mit den Filtern
|
||||
echo '<br><br><br><br><br><br><br>';
|
||||
@@ -483,7 +472,7 @@ if(!empty ($_GET))
|
||||
|
||||
echo "<td>$freigabe</td>";
|
||||
echo "<td>$uebernahme</td>";
|
||||
echo "<td title='".$row->anmerkung."'>".CutString($row->anmerkung, 20)."</td>";
|
||||
echo "<td title='".$row->anmerkung."'>".CutString($row->anmerkung, 20, '...')."</td>";
|
||||
echo '<td>';
|
||||
echo " <input style='padding:0px;' type='button' onclick=\"window.open('personendetails.php?id=$row->person_id','_blank')\" value='Gesamtübersicht' title='Zeigt die Details dieser Person an'>";
|
||||
echo " <input style='padding:0px;' type='button' onclick='parent.preinteressent_detail.location.href = \"preinteressent_detail.php?id=$row->preinteressent_id&selection=\"+parent.preinteressent_detail.selection; return false;' value='Bearbeiten' title='Zeigt die Details dieser Person an'>";
|
||||
|
||||
Reference in New Issue
Block a user