From 25610c0ccb4c7c99fe0d6d82d6738dbcc40d05e3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Oct 2014 00:52:21 +0100 Subject: v4.2 Sortable table + other improvements. --- functions.php | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index eba19f9..17c2ce3 100644 --- a/functions.php +++ b/functions.php @@ -146,10 +146,31 @@ function print_list($option = false){ lredirect("liste"); global $db; global $c; + global $moar; + + $moar->addHeader(''); + $moar->addFooter(' + + '); $result = $db->doQuery("SELECT * FROM " . DBPREFIX . "member;"); ?> -

Adress Liste

+

Adressliste

@@ -191,9 +212,11 @@ function print_list($option = false){ fetch_array(MYSQLI_ASSOC) ){ + $surname = explode(" ", $row['name']); + $surname = $surname[ count($surname) - 1 ]; echo " $count - ".htmlentities($row['name'])." + ".htmlentities($surname)."".htmlentities($row['name'])." ".htmlentities($row['adresse'])." ".htmlentities($row['telefonnummer'])." ".htmlentities($row['handynummer'])." @@ -564,6 +587,9 @@ function print_account($option = false){

Mit * markierte Felder sind Pflichtfelder.

+

Log dich aus

+
+ Logout Ändern
  • Neu
  • Löschen
  • -
  • " role="tab"> +
  • " role="tab"> + exists2(CACHEPREFIX . $_GET["gallery"]) ) $c->set2(CACHEPREFIX . $_GET["gallery"], $row['name']); ?> Download
  • @@ -745,7 +772,7 @@ function show_gallery(){
    - exists( CACHEPREFIX . "gallery_imagelinks_" . $_SESSION["gallery"] ) ){ + if ( $c->exists2( CACHEPREFIX . "gallery_imagelinks_" . $_SESSION["gallery"] ) ){ echo $c->get2( CACHEPREFIX . "gallery_imagelinks_" . $_SESSION["gallery"] ); } else { ob_start(); @@ -794,6 +821,11 @@ function show_gallery(){ echo "
    "; } else { echo "

    Keine Bilder in der aktuellen Gallerie vorhanden!

    "; + $c->set2(CACHEPREFIX . "gallery_no_download_" . $_SESSION["gallery"], 1); + $moar->addFooter(''); } $c->set2( CACHEPREFIX . "gallery_imagelinks_" . $_SESSION["gallery"], ob_get_contents() ); ob_end_flush(); @@ -804,6 +836,12 @@ function show_gallery(){ addFooter(''); + //$moar->addFooter(''); + if ( $c->exists2(CACHEPREFIX . "gallery_no_download_" . $_SESSION["gallery"]) ) + $moar->addFooter(''); ?>
    -- cgit v1.2.3