diff --git a/cms/content_uebersicht.php b/cms/content_uebersicht.php new file mode 100644 index 000000000..2752efecc --- /dev/null +++ b/cms/content_uebersicht.php @@ -0,0 +1,221 @@ +, + * Andreas Oesterreicher and + * Karl Burkhart . + */ +/** + * Zeigt eine Übersichtsliste für alle Content-Einträge an + */ +require_once('../config/cis.config.inc.php'); +require_once('../config/global.config.inc.php'); +require_once('../include/content.class.php'); +require_once('../include/template.class.php'); +require_once('../include/functions.inc.php'); +require_once('../include/phrasen.class.php'); + +$db = new basis_db(); + +echo ' + + + '; + + include('../include/meta/jquery.php'); + include('../include/meta/jquery-tablesorter.php'); + +echo ' + + + +
+

Content-Übersicht

'; + echo '

'; + echo ''; + echo ' + + + + + + + + + + + + '; + echo ''; + +$qry = " +SELECT + content.content_id, + tbl_contentsprache.titel, + content.template_kurzbz, + content.oe_kurzbz, + content.aktiv, + content.insertamum||' von '||content.insertvon AS content_eingefuegt, + content.updateamum||' von '||content.updatevon AS content_aktualisiert, + ( + SELECT ARRAY_TO_STRING(array_agg(verwendung), '
') AS verwendung_in + FROM ( + SELECT + 'Infoscreen ID'||infoscreen_id AS art + FROM campus.tbl_infoscreen_content + WHERE content_id=content.content_id + + UNION + + SELECT + 'Software ID'||software_id AS art + FROM addon.tbl_software + WHERE content_id=content.content_id + + UNION + + SELECT + 'Ort '||ort_kurzbz AS art + FROM public.tbl_ort + WHERE content_id=content.content_id + + UNION + + SELECT + 'Service ID'||service_id AS art + FROM public.tbl_service + WHERE content_id=content.content_id + + UNION + + SELECT + 'Statistik '||statistik_kurzbz AS art + FROM public.tbl_statistik + WHERE content_id=content.content_id + + UNION + + SELECT + 'Gebiet '||tbl_gebiet.bezeichnung||' in Studiengang '||tbl_ablauf.studiengang_kz AS art + FROM testtool.tbl_ablauf_vorgaben + JOIN testtool.tbl_ablauf USING (ablauf_vorgaben_id) + JOIN testtool.tbl_gebiet USING (gebiet_id) + WHERE content_id=content.content_id + + UNION + + SELECT + 'Verlinkung von '||content_id AS art + FROM campus.tbl_contentsprache + WHERE content::text LIKE '%content.php?content_id='||content.content_id||'%' + /*WHERE content::text ~* '[\w\d\s]*content\.php\?content_id=1245[\w\d\s]*'*/ + ) verwendung + ) AS verwendung_in, + tbl_contentsprache.sprache, + tbl_contentsprache.version, + tbl_contentsprache.insertamum||' von '||tbl_contentsprache.insertvon AS contentsprache_eingefuegt, + tbl_contentsprache.updateamum||' von '||tbl_contentsprache.updatevon AS contentsprache_aktualisiert, + tbl_contentsprache.sichtbar +FROM campus.tbl_content content + JOIN campus.tbl_contentsprache USING (content_id) +WHERE version=campus.get_highest_content_version (content.content_id) +AND template_kurzbz NOT IN ('news') +/*ORDER BY content_id ASC, sprache DESC, version DESC +LIMIT 200*/"; + +if($db->db_query($qry)) +{ + while ($row = $db->db_fetch_object()) + { + echo ' + + + + + + + + + + + + + + + '; + } +} +echo '
Content IDTitelArtOEContent-AktivEingefügtAktualisiertVerwendet inSpracheVersionEingefügtAktualisiertVersion sichtbar
'.$row->content_id.''.$row->titel.''.$row->template_kurzbz.''.$row->oe_kurzbz.''.($row->aktiv == 't' ? 'Ja':'Nein').''.$row->content_eingefuegt.''.$row->content_aktualisiert.''.$row->verwendung_in.''.$row->sprache.''.$row->version.''.$row->contentsprache_eingefuegt.''.$row->contentsprache_aktualisiert.''.($row->sichtbar == 't' ? 'Ja':'Nein').'
'; +echo '
+ '; + + +?> \ No newline at end of file