backup: live-stand vor erstem git-deployment
This commit is contained in:
27
module/infopoint/content_infopoint.php
Normal file
27
module/infopoint/content_infopoint.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
function loadContent($current_page){
|
||||
switch ($current_page['type']) {
|
||||
case 'collection':
|
||||
echo $current_page['description'] . "<br>";
|
||||
$current_date = new DateTime();
|
||||
echo $current_date->format('H:i:s');
|
||||
break;
|
||||
case 'textcontent':
|
||||
loadTextContent($current_page['type_id']);
|
||||
break;
|
||||
case 'image':
|
||||
echo "<img class='fullscreen_image' src='../../userdata/infopoint/".$current_page['image']."'>";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function loadTextContent($id){
|
||||
$select_textcontent = $GLOBALS['pdo_conn']->prepare("SELECT * FROM textcontent_header WHERE id = :id");
|
||||
$select_textcontent->execute(array(':id' => $id));
|
||||
$res_textcontent = $select_textcontent->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
echo $res_textcontent['content'];
|
||||
}
|
||||
Reference in New Issue
Block a user