Filter im CMS eingebaut.

accountinfoblatt: Logo kommt nun dynamisch aus styles-Ordner
This commit is contained in:
Manfred Kindl
2015-01-14 13:32:38 +00:00
parent 4d0b7375ce
commit bf999ecc2d
7 changed files with 471 additions and 46 deletions
+1 -1
View File
@@ -549,7 +549,7 @@ else if($method=="lehrveranstaltungen")
AND
(von is null OR von >= '$stsem->start')
AND
(bis is null OR bis <= '$stsem->ende')
(bis is null OR bis <= (DATE '$stsem->ende' + INTERVAL '6 MONTH'))
AND aktiv = true
)a ) as anzahl
FROM
+1 -1
View File
@@ -57,7 +57,7 @@ if (isset($_POST['userid']))
?>
<html>
<head>
<title>Inoming-Verwaltung</title>
<title>Incoming-Verwaltung</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="robots" content="noindex">
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
+70 -40
View File
@@ -123,10 +123,13 @@ $version = isset($_GET['version'])?$_GET['version']:null;
$content_id = isset($_GET['content_id'])?$_GET['content_id']:null;
$action = isset($_GET['action'])?$_GET['action']:'';
$method = isset($_GET['method'])?$_GET['method']:null;
$filter = isset($_GET['filter'])?$_GET['filter']:null;
$message = '';
$submenu_depth=0;
$datum_obj = new datum();
$filterstr = explode(' ',TRIM(str_replace(array('!','.','?',','), '', $filter)));
//Inhalt Speichern
if(isset($_POST['XSDFormPrinter_XML']))
{
@@ -649,7 +652,7 @@ echo '<table width="100%">
</td>
</tr>
<tr>
<td valign="top" width="200px">';
<td valign="top" width="300px">';
$db = new basis_db();
@@ -659,10 +662,17 @@ echo '
<br><br>
<a href="admin.php?content_id='.$content_id.'&action='.$action.'&sprache='.$sprache.'&menu=content">Content</a> |
<a href="admin.php?content_id='.$content_id.'&action='.$action.'&sprache='.$sprache.'&menu=news">News</a>
<a href="admin.php?content_id='.$content_id.'&action='.$action.'&sprache='.$sprache.'&menu=news">News</a><br>
<form accept-charset="UTF-8" name="filterstr" action="'.$_SERVER['PHP_SELF'].'" method="GET">
<input type="hidden" name="content_id" value="'.$content_id.'">
<input type="hidden" name="sprache" value="'.$sprache.'">
<input type="hidden" name="action" value="'.$action.'">
<input type="hidden" name="version" value="'.$version.'">
Filter:
<input type="text" id="filter" name="filter" size="25" value="'.implode(' ', $filterstr).'" placeholder="Suchtext oder Content_ID">
<input type="submit" value="Filter">
</form>
<table class="treetable" >';
$menu='content';
if(isset($_GET['menu']))
{
@@ -685,7 +695,11 @@ if($menu=='news')
else
{
$rootcontent = new content();
$rootcontent->getRootContent();
if($filter!=null)
$rootcontent->searchCMS($filterstr);
else
$rootcontent->getRootContent();
}
foreach($rootcontent->result as $row)
@@ -703,14 +717,14 @@ foreach($rootcontent->result as $row)
if($content->template_kurzbz=='news')
{
$output.= '<td>';
$output.= drawmenulink($row->content_id, mb_substr($content->titel,0,15).' '.$datum_obj->formatDatum($content->insertamum,'d.m.Y'), $content->oe_kurzbz);
$output.= drawmenulink($row->content_id, mb_substr($content->titel,0,15).' '.$datum_obj->formatDatum($content->insertamum,'d.m.Y'), $content->oe_kurzbz, $content->aktiv);
$output.= '</td>';
}
else
{
$output.= '<td><br>';
$output.= drawmenulink($row->content_id, $content->titel, $content->oe_kurzbz);
$output.= drawmenulink($row->content_id, $content->titel, $content->oe_kurzbz, $content->aktiv);
$output.= '</td>';
$submenu_depth=0;
@@ -779,7 +793,7 @@ echo '</body>
*/
function drawheader()
{
global $content_id, $action, $sprache, $version, $action;
global $content_id, $action, $sprache, $version, $action, $filterstr;
//vorhandene Versionen dieser Sprache anzeigen
$content = new content();
@@ -799,7 +813,7 @@ function drawheader()
else
$class='';
echo ' <a href="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$row->version.'&action='.$action.'" class="'.$class.'">';
echo ' <a href="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$row->version.'&action='.$action.'&filter='.implode(' ', $filterstr).'" class="'.$class.'" style="'.($row->sichtbar?'':'color:grey').'">';
echo $row->version;
echo '</a>, ';
}
@@ -815,12 +829,12 @@ function drawheader()
$class='marked';
else
$class='';
echo ' <a href="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$lang.'&action='.$action.'" class="'.$class.'">'; //&version='.$version.'
echo ' <a href="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$lang.'&action='.$action.'&filter='.implode(' ', $filterstr).'" class="'.$class.'">'; //&version='.$version.'
echo $lang;
echo '</a>,';
}
echo '</td><td align="center" width="33%">';
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&action='.$action.'&method=add_newversion" method="POST">';
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&action='.$action.'&filter='.implode(' ', $filterstr).'&method=add_newversion" method="POST">';
echo '<input type="submit" value="Neue Version anlegen">';
echo '</form>';
echo '</td><td align="right" width="33%">';
@@ -831,7 +845,7 @@ function drawheader()
//wird ein Formular zum Erstellen der Uebersetzung angezeigt.
if(count($vorhandene_sprachen)!=count($sprache_obj->result))
{
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&action='.$action.'&method=add_uebersetzung" method="POST">';
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&action='.$action.'&filter='.implode(' ', $filterstr).'&method=add_uebersetzung" method="POST">';
echo 'Übersetzung in <SELECT name="sprache">';
foreach($sprache_obj->result as $row)
{
@@ -856,11 +870,26 @@ function drawheader()
* @param $id
* @param $titel
*/
function drawmenulink($id, $titel, $oe_kurzbz)
function drawmenulink($id, $titel, $oe_kurzbz, $aktiv)
{
global $content_id, $action, $sprache, $berechtigte_oe;
global $content_id, $action, $sprache, $berechtigte_oe, $filterstr;
$content = new content();
$content->loadGruppen($id);
$berechtigte = '';
if(count($content->result)>0)
{
foreach($content->result as $row)
{
$berechtigte.= $row->gruppe_kurzbz.(count($content->result)>1?', ':'');
}
}
else
$berechtigte = '';
if(in_array($oe_kurzbz, $berechtigte_oe))
return '<a href="admin.php?content_id='.$id.'&action='.$action.'&sprache='.$sprache.'" '.($content_id==$id?'class="marked"':'').'>'.$titel.'</a> ('.$id.')';
return '<a href="admin.php?content_id='.$id.'&action='.$action.'&sprache='.$sprache.'&filter='.implode(' ', $filterstr).'" style="'.($aktiv?'':'color:grey').'" '.($content_id==$id?'class="marked"':'').'>
'.$titel.'</a> '.($berechtigte!=''?'<img src="../skin/images/lock.png" alt="lock" title="'.$berechtigte.'" style="vertical-align:bottom;">':'').'('.$id.')';
else
return $titel.' ('.$id.')';
}
@@ -891,7 +920,7 @@ function drawsubmenu($content_id, $einrueckung="&nbsp;&nbsp;")
$output.= "<tr>\n";
$output.= '<td>';
$output.= $einrueckung;
$output.=drawmenulink($row->child_content_id, $content->titel, $content->oe_kurzbz);
$output.=drawmenulink($row->child_content_id, $content->titel, $content->oe_kurzbz, $row->aktiv);
$output.=drawsubmenu($row->child_content_id, $einrueckung."&nbsp;&nbsp;");
$output.= "</td>\n";
$output.= "</tr>\n";
@@ -906,8 +935,8 @@ function drawsubmenu($content_id, $einrueckung="&nbsp;&nbsp;")
*/
function get_content_link($key, $name)
{
global $action, $content_id, $sprache, $version;
return '<a href="'.$_SERVER['PHP_SELF'].'?action='.$key.'&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'" '.($action==$key?'class="marked"':'').'>'.$name.'</a>';
global $action, $content_id, $sprache, $version, $filterstr;
return '<a href="'.$_SERVER['PHP_SELF'].'?action='.$key.'&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&filter='.implode(' ', $filterstr).'" '.($action==$key?'class="marked"':'').'>'.$name.'</a>';
}
/**
@@ -915,7 +944,7 @@ function get_content_link($key, $name)
*/
function print_childs()
{
global $content_id, $sprache, $version, $action;
global $content_id, $sprache, $version, $action, $filterstr;
$content = new content();
$content->getChilds($content_id);
@@ -949,14 +978,14 @@ function print_childs()
echo '<tr>';
echo '<td>',$row->sort;
echo ' <a href="'.$_SERVER['PHP_SELF'].'?action=childs&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&contentchild_id='.$row->contentchild_id.'&method=childs_sort_up" title="Nach oben sortieren"><img src="../skin/images/up.png" alt="up"></a>';
echo ' <a href="'.$_SERVER['PHP_SELF'].'?action=childs&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&contentchild_id='.$row->contentchild_id.'&method=childs_sort_down" title="Nach unten sortieren"><img src="../skin/images/down.png" alt="down"></a>';
echo ' <a href="'.$_SERVER['PHP_SELF'].'?action=childs&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&contentchild_id='.$row->contentchild_id.'&method=childs_sort_up&filter='.implode(' ', $filterstr).'" title="Nach oben sortieren"><img src="../skin/images/up.png" alt="up"></a>';
echo ' <a href="'.$_SERVER['PHP_SELF'].'?action=childs&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&contentchild_id='.$row->contentchild_id.'&method=childs_sort_down&filter='.implode(' ', $filterstr).'" title="Nach unten sortieren"><img src="../skin/images/down.png" alt="down"></a>';
echo '</td>';
echo '<td>',$row->child_content_id,'</td>';
echo '<td><a href="'.$_SERVER['PHP_SELF'].'?action='.$action.'&sprache='.$sprache.'&content_id='.$row->child_content_id.'">',$child->titel,'</a></td>';
echo '<td>
<a href="'.$_SERVER['PHP_SELF'].'?action=childs&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&contentchild_id='.$row->contentchild_id.'&method=childs_delete" title="entfernen">
<a href="'.$_SERVER['PHP_SELF'].'?action=childs&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&contentchild_id='.$row->contentchild_id.'&method=childs_delete&filter='.implode(' ', $filterstr).'" title="entfernen">
<img src="../skin/images/delete_x.png">
</a>
</td>';
@@ -966,7 +995,7 @@ function print_childs()
$content = new content();
$content->getpossibleChilds($content_id);
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=childs&method=childs_add" method="POST">';
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=childs&method=childs_add&filter='.implode(' ', $filterstr).'" method="POST">';
echo '<select name="child_content_id">';
foreach($content->result as $row)
@@ -984,19 +1013,19 @@ function print_childs()
*/
function print_prefs()
{
global $content_id, $sprache, $version, $user, $rechte;
global $content_id, $sprache, $version, $user, $rechte, $filterstr;
$content = new content();
if(!$content->getContent($content_id, $sprache, $version))
die($content->errormsg);
echo '<form name="form_pref" action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=prefs&method=prefs_save" method="POST">
echo '<form name="form_pref" action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=prefs&method=prefs_save&filter='.implode(' ', $filterstr).'" method="POST">
<table>
<tr>
<td>Vorlage</td>
<td>
<SELECT name="template_kurzbz" onchange="alert(\'Achtung: Das Ändern der Vorlage kann zum Datenverlust des Contents führen!\n\nÄndern Sie die Vorlage nur wenn Sie wirklich wissen was sie tun.\');">';
<SELECT name="template_kurzbz" onchange="document.getElementById(\'warnhinweis\').innerHTML=\'Achtung: Das Ändern der Vorlage kann zum Datenverlust des Contents führen! Ändern Sie die Vorlage nur, wenn Sie wirklich wissen, was sie tun.\'">';
$template = new template();
$template->getAll();
foreach($template->result as $row)
@@ -1009,7 +1038,7 @@ function print_prefs()
echo '<OPTION value="'.$row->template_kurzbz.'" '.$selected.'>'.$row->bezeichnung.'</OPTION>';
}
echo '
</SELECT>
</SELECT>&nbsp;<span style="color:red" id="warnhinweis">&nbsp;</span>
</td>
</tr>
<tr>
@@ -1070,12 +1099,12 @@ function print_prefs()
}
echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
echo '<input type="submit" value="Review anfordern" onclick="document.form_pref.action=\''.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=prefs&method=prefs_requestreview\'">';
echo '<input type="submit" value="Review anfordern" onclick="document.form_pref.action=\''.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&filter='.implode(' ', $filterstr).'&action=prefs&method=prefs_requestreview\'">';
$bf = new benutzerfunktion();
if($bf->benutzerfunktion_exists($user, 'review') || $rechte->isBerechtigt('basis/cms_review'))
echo '<input type="submit" value="Review OK / Publish" onclick="document.form_pref.action=\''.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=prefs&method=prefs_reviewed\'">';
echo '<input type="submit" value="Review OK / Publish" onclick="document.form_pref.action=\''.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&filter='.implode(' ', $filterstr).'&action=prefs&method=prefs_reviewed\'">';
echo '<input type="submit" value="Übersetzer benachrichtigen" onclick="document.form_pref.action=\''.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=prefs&method=prefs_requesttranslate\'">';
echo '<input type="submit" value="Übersetzer benachrichtigen" onclick="document.form_pref.action=\''.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&filter='.implode(' ', $filterstr).'&action=prefs&method=prefs_requesttranslate\'">';
echo '
@@ -1092,7 +1121,7 @@ function print_prefs()
*/
function print_rights()
{
global $content_id, $sprache, $version;
global $content_id, $sprache, $version, $filterstr;
$content = new content();
$content->loadGruppen($content_id);
@@ -1125,7 +1154,7 @@ function print_rights()
echo '<td>',$row->gruppe_kurzbz,'</td>';
echo '<td>',$row->bezeichnung,'</td>';
echo '<td>
<a href="'.$_SERVER['PHP_SELF'].'?action=rights&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&gruppe_kurzbz='.$row->gruppe_kurzbz.'&method=rights_delete_group" title="entfernen">
<a href="'.$_SERVER['PHP_SELF'].'?action=rights&content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&gruppe_kurzbz='.$row->gruppe_kurzbz.'&method=rights_delete_group&filter='.implode(' ', $filterstr).'" title="entfernen">
<img src="../skin/images/delete_x.png">
</a>
</td>';
@@ -1139,7 +1168,7 @@ function print_rights()
$gruppe = new gruppe();
$gruppe->getgruppe(null, null, null, null, true);
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=rights&method=rights_add_group" method="POST">';
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=rights&method=rights_add_group&filter='.implode(' ', $filterstr).'" method="POST">';
echo 'Gruppe <select name="gruppe_kurzbz">';
foreach($gruppe->result as $row)
{
@@ -1159,7 +1188,7 @@ function print_rights()
*/
function print_content()
{
global $content_id, $sprache, $version, $user, $rechte;
global $content_id, $sprache, $version, $user, $rechte, $filterstr;
$content = new content();
@@ -1173,7 +1202,7 @@ function print_content()
if($rechte->isBerechtigt('basis/cms_sperrfreigabe',null,'su'))
{
echo '<br><br><form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&contentsprache_id='.$content->contentsprache_id.'&sprache='.$sprache.'&version='.$version.'&action=content&method=content_sperrfreigabe" method="POST">';
echo '<br><br><form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&contentsprache_id='.$content->contentsprache_id.'&sprache='.$sprache.'&version='.$version.'&action=content&method=content_sperrfreigabe&filter='.implode(' ', $filterstr).'" method="POST">';
echo '<input type="submit" value="Freigabe erzwingen" name="freigeben">';
echo '</form>';
}
@@ -1181,7 +1210,7 @@ function print_content()
}
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&contentsprache_id='.$content->contentsprache_id.'&sprache='.$sprache.'&version='.$version.'&action=content&method=content_sperre" method="POST">';
echo '<form action="'.$_SERVER['PHP_SELF'].'?content_id='.$content_id.'&contentsprache_id='.$content->contentsprache_id.'&sprache='.$sprache.'&version='.$version.'&action=content&method=content_sperre&filter='.implode(' ', $filterstr).'" method="POST">';
if($content->gesperrt_uid=='')
echo '<input type="submit" value="Zur Bearbeitung sperren" name="sperren">';
else
@@ -1195,7 +1224,7 @@ function print_content()
$template->load($content->template_kurzbz);
$xfp = new XSDFormPrinter();
$xfp->getparams='?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=content';
$xfp->getparams='?content_id='.$content_id.'&sprache='.$sprache.'&version='.$version.'&action=content&filter='.implode(' ', $filterstr).'';
$xfp->output($template->xsd,$content->content);
echo '</div>';
}
@@ -1206,9 +1235,9 @@ function print_content()
// Javascript in der Vorschau die CMS Seite geschlossen wird.
if($content->template_kurzbz=='redirect')
echo '<a href="content.php?content_id='.$content_id.'&version='.$version.'&sprache='.$sprache.'&sichtbar" target="_blank">Vorschau in eigenem Fenster öffnen</a>';
echo '<a href="content.php?content_id='.$content_id.'&version='.$version.'&sprache='.$sprache.'&sichtbar&filter='.implode(' ', $filterstr).'" target="_blank">Vorschau in eigenem Fenster öffnen</a>';
else
echo '<iframe src="content.php?content_id='.$content_id.'&version='.$version.'&sprache='.$sprache.'" style="width: 800px; height: 500px; border: 1px solid black;">';
echo '<iframe src="content.php?content_id='.$content_id.'&version='.$version.'&sprache='.$sprache.'&filter='.implode(' ', $filterstr).'" style="width: 800px; height: 500px; border: 1px solid black;">';
}
/**
@@ -1217,7 +1246,7 @@ function print_content()
*/
function print_history()
{
global $content_id, $sprache, $version, $method;
global $content_id, $sprache, $version, $method, $filterstr;
if($method=='history_changes')
{
if(!isset($_GET['v1']) || !isset($_GET['v2']))
@@ -1263,6 +1292,7 @@ function print_history()
<input type="hidden" name="method" value="history_changes">
<input type="hidden" name="sprache" value="'.$sprache.'">
<input type="hidden" name="version" value="'.$version.'">
<input type="hidden" name="filter" value="'.implode(' ', $filterstr).'">
<input type="hidden" name="content_id" value="'.$content_id.'">';
echo 'Änderungen von Version
<input type="text" value="1" size="2" name="v1"> zu
+56 -2
View File
@@ -599,6 +599,7 @@ class content extends basis_db
$obj->content_id = $row->content_id;
$obj->child_content_id = $row->child_content_id;
$obj->sort = $row->sort;
$obj->aktiv = $this->db_parse_bool($row->aktiv);
$this->result[] = $obj;
}
@@ -1029,7 +1030,7 @@ class content extends basis_db
{
$this->errormsg='Fehler beim Ermitteln der hoechsten Version';
return false;
}
}
}
/**
@@ -1275,7 +1276,7 @@ class content extends basis_db
public function search($searchItems, $limit=null)
{
$qry = "SELECT
distinct on(content_id,sprache) *
distinct on(content_id,sprache,version) *
FROM
campus.tbl_contentsprache
JOIN campus.tbl_content USING(content_id)
@@ -1313,6 +1314,7 @@ class content extends basis_db
$obj->content = $row->content;
$obj->titel = $row->titel;
$obj->sprache = $row->sprache;
$obj->version = $row->version;
$this->result[] = $obj;
}
@@ -1493,5 +1495,57 @@ class content extends basis_db
return $childs;
}
}
/**
* Durchsucht das CMS nach Contents (Titel und Content_ID), in denen $searchItems vorkommt. Limit optional.
*
* @param array $searchItems
* @param $limit (optional)
* @return content_id
*/
public function searchCMS($searchItems, $limit=null)
{
$qry = "SELECT
DISTINCT content_id
FROM
campus.tbl_content
WHERE
content_id IN
(
SELECT
DISTINCT ON(content_id,sprache,version) tbl_content.content_id
FROM
campus.tbl_contentsprache
JOIN campus.tbl_content USING(content_id)
WHERE
tbl_content.template_kurzbz<>'news' AND (";
foreach($searchItems as $value)
$qry.=" (
content_id::text = lower('".$this->db_escape($value)."')
OR lower(titel::text) like lower('%".$this->db_escape($value)."%')
) OR";
$qry.=" 1<>1)) ORDER BY content_id";
if(!is_null($limit) && is_numeric($limit))
$qry.=" LIMIT ".$limit;
if($result = $this->db_query($qry))
{
while($row = $this->db_fetch_object($result))
{
$obj = new content();
$obj->content_id = $row->content_id;
$this->result[] = $obj;
}
return true;
}
else
{
$this->errormsg = 'Fehler beim Laden der Daten';
return false;
}
}
}
?>
@@ -5,9 +5,51 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<html>
<head>
<link rel="stylesheet" href="../skin/style.css.php" type="text/css" />
<link rel="stylesheet" href="../skin/jquery.css" type="text/css" />
<script type="text/javascript" src="../include/js/jquery.js"></script>
<link rel="stylesheet" href="../skin/tablesort.css" type="text/css" />
<script type="text/javascript">
$(document).ready(function()
{
$(".tablesorter").each(function()
{
var col=0;
var sort=0;
var no_sort=1;
var classes = $(this).attr("class");
var class_arr = classes.split(" ");
var headersobj={};
for(i in class_arr)
{
if(class_arr[i].indexOf("tablesorter_col_")!=-1)
{
col = class_arr[i].substr(16);
}
if(class_arr[i].indexOf("tablesorter_sort_")!=-1)
{
sort = class_arr[i].substr(17);
}
if(class_arr[i].indexOf("tablesorter_no_sort_")!=-1)
{
no_sort = class_arr[i].substr(20);
headersobj[no_sort]={sorter:false};
}
}
$(this).tablesorter(
{
sortList: [[col,sort]],
widgets: ["zebra"],
headers: headersobj
});
});
});
</script>
</head>
<body>
<h1><xsl:value-of select="titel" /></h1>
<xsl:value-of select="inhalt" disable-output-escaping="yes" />
</body>
</html>
+298
View File
@@ -0,0 +1,298 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" indent="yes" />
<xsl:template match="accountinfoblaetter">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm" margin="5mm 25mm 5mm 25mm" master-name="PageMaster">
<fo:region-body margin="20mm 0mm 20mm 0mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<xsl:apply-templates select="infoblatt"/>
</fo:root>
</xsl:template>
<xsl:template match="infoblatt">
<fo:page-sequence master-reference="PageMaster">
<fo:flow ><!--flow-name="xsl-region-body"-->
<!-- Logo -->
<fo:block>
<fo:external-graphic posx="140" posy="15" width="60mm" height="20mm" >
<xsl:attribute name="src">
<xsl:value-of select="logopath" />logo.jpg
</xsl:attribute>
</fo:external-graphic>
</fo:block>
<fo:block-container position="absolute" top="30mm" left="80mm">
<fo:block text-align="left" font-family="sans-serif" font-size="12pt" font-weight="bold">
Account Information
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="40mm" left="15mm">
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="130mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="40mm" text-align="left">
Name:
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="130mm" text-align="left">
<xsl:value-of select="name" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="50mm"/>
<fo:table-column column-width="15mm"/>
<fo:table-column column-width="30mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="40mm" text-align="left">
Username:
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="sans-serif" font-weight="bold" font-size="12pt" content-width="50mm" text-align="left">
<xsl:value-of select="account" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="130mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="40mm" text-align="left">
Aktivierungscode:
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="130mm" text-align="left">
<xsl:choose>
<xsl:when test="aktivierungscode=''">Account wurde bereits aktiviert
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="aktivierungscode" />
</xsl:otherwise>
</xsl:choose>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<xsl:if test="bezeichnung">
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="300mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="40" text-align="left">
Studiengang:
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="300mm" text-align="left">
<xsl:value-of select="bezeichnung" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:if>
<fo:table table-layout="fixed" border-collapse="separate">
<fo:table-column column-width="40mm"/>
<fo:table-column column-width="300mm"/>
<fo:table-body>
<fo:table-row line-height="14pt">
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="15mm" text-align="left">
E-Mail:
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-weight="bold" font-family="sans-serif" font-size="12pt" content-width="30mm" text-align="left">
<xsl:value-of select="email" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block-container>
<fo:block-container position="absolute" top="80mm" left="80mm">
<fo:block text-align="left" font-family="sans-serif" font-size="12pt" font-weight="bold">
Account Mini FAQ
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="90mm" left="15mm">
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Wie aktiviere ich meinen Acccount?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Öffnen Sie mit ihrem Web-Browser die Adresse https://cis.technikum-wien.at/cis/public/accountactivation.php\n
Tragen Sie in das Formular Ihren Usernamen und Aktivierungscode ein und vergeben Sie ein Passwort für Ihren Account.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Wie melde ich mich am System an?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Windows XP/7: Melden sie sich an der Domäne TW an indem Sie die Tasten &lt;STRG&gt; + &lt;ALT&gt; + &lt;ENTF&gt; gleichzeitig drücken, danach Accountname und Passwort eingeben.
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Linux: Nach dem Systemstart im Boot Manager einfach Linux auswählen. Das System startet mit dem KDE Login Manager. Dort ist ebenfalls der Accountname und das Passwort einzugeben.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Ändern des Passwortes
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Zur Änderung Ihres Passwortes loggen Sie sich mit Ihrem Webbrowser auf https://cis.technikum-wien.at ein und wählen dem Menüpunkt 'Profil &gt; Passwort ändern'. \n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Wie und wo kann ich meine Daten ablegen?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Nach einem erfolgreichen Login ist unter Windows XP/7 das Laufwerk M: mit Ihrem Userverzeichnis am
Server verbunden. Dort haben Sie die Möglichkeit Ihre Daten abzulegen. Achten Sie immer darauf, Ihr Quota
(Speicherplatz den Sie zur Verfügung haben) nicht zu überschreiten! Einige Programme funktionieren dann nicht mehr einwandfrei.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Welche Möglichkeiten habe ich auf meine Daten zuzugreifen?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Innerhalb des TW LANs wird Ihr Serververzeichnis immer mit dem Laufwerk M: verbunden.
Ausserhalb der FH können Sie per SSH bzw. WinSCP auf Ihre Daten auch von zu Hause aus zugreifen.\n
Dazu müssen Sie sich mit dem Server <xsl:value-of select="fileserver" /> verbinden.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Wie kann ich meine Mails von zu Hause aus abrufen?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Eine Anleitung zur Einrichtung Ihres Mail-Clients finden Sie auf https://cis.technikum-wien.at unter dem Punkt FAQ.\n
Eine weitere Möglichkeit, von überall Mails abzurufen, ist unser Webmail Service auf https://webmail.technikum-wien.at\n
</fo:block>
<xsl:if test="bezeichnung">
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Warum werden meine Einstellungen am Windows XP/7 Desktop nicht gespeichert?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Alle Studenten teilen sich dasselbe Profil. Sie können daher keine Einstellungen sichern.\n
</fo:block>
</xsl:if>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Wo erhalte ich weitere Informationen?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Die primäre Anlaufstelle für Fragen rund um den Netzwerkbetrieb ist die Webseite\n
</fo:block>
<fo:block text-align="center" content-width='180mm' font-family="sans-serif" font-size="10pt">
https://cis.technikum-wien.at\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Verwenden Sie die Informationen auf dieser Seite, um einen Überblick über die vorhandenen Möglichkeiten zu erhalten.
</fo:block>
</fo:block-container>
<!-- Englische Version -->
<fo:block font-size="16pt"
font-family="sans-serif"
space-after.optimum="15pt"
text-align="center"
break-before="page">
</fo:block>
<fo:block-container position="absolute" top="80mm" left="80mm">
<fo:block text-align="left" font-family="sans-serif" font-size="12pt" font-weight="bold">
Account Mini FAQ
</fo:block>
</fo:block-container>
<fo:block-container position="absolute" top="90mm" left="15mm">
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Account activation:
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Open your web browser and go to https://cis.technikum-wien.at/cis/public/accountactivation.php\n
Enter your user name and activation key. Enter a new password for your account.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
System Log-in:
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Windows XP/7: Hold down &lt;ctrl&gt; + &lt;alt&gt; + &lt;delete&gt; simultaneously to log in to the domain of the University of Applied Sciences Technikum Wien. Enter your user name (Account) and password in the log-in window.
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Linux: Start your system and choose Linux in the Boot Manager. The system will then launch KDE Log-in Manager. Enter your user name (see Account) and password in the log-in window.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Password Change:
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
Open your web browser and go to https://cis.technikum-wien.at. Enter your user name (Account) and password, select "Profile &gt; Change Password" from the pane on the left and follow the instructions.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Disk space for your files:
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
In Windows XP and Windows 7, log in to the UAS Technikum Wien domain, and you will be automatically connected to volume M:, which contains your personal disk space.\n
In Linux, use an SSH client such as Putty to log in to your file server <xsl:value-of select="fileserver" />.
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Make sure not to exceed your quota, as some software will stop functioning in that case.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Access to your files:
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
From within UAS Technikum Wien, you can always access volume M: in Windows XP and Windows 7. From outside, use an SSH or SCP client to connect to <xsl:value-of select="fileserver" />.\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt" font-weight="bold">
Looking for further information?
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
For questions concerning the UAS Technikum Wien network services, see\n
</fo:block>
<fo:block text-align="center" content-width='180mm' font-family="sans-serif" font-size="10pt">
https://cis.technikum-wien.at\n
</fo:block>
<fo:block text-align="left" font-family="sans-serif" font-size="10pt">
These pages will give you a detailed overview of all services available
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</xsl:template>
</xsl:stylesheet >
@@ -20,7 +20,8 @@
* 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('../../config/vilesci.config.inc.php');
require_once('../../config/global.config.inc.php');
require_once('../../include/benutzerberechtigung.class.php');
require_once('../../include/datum.class.php');
require_once('../../include/functions.inc.php');