Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kubiczek

Pages: 1 2 3 [4] 5 6 7 8 ... 13
46
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: February 02, 2011, 10:35:52 PM »
hi :roll:

jetzt wird was auf dem server abgefragt,  und als zeile mit leerausgabe angezeigt

http://www.grosspeterwitz.org/friedhof/4images/statistic.php

<?php
 
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: statistic.php                                           *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.9                                                *
 *     File Version: 1.0.0 (by Rembrandt www.vienna-pictures.com)         *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 'statistic'// <-- Your Template Title

define('GET_CACHES'1);
define('ROOT_PATH''./');
define('MAIN_SCRIPT'__FILE__);
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
include(
ROOT_PATH.'includes/page_header.php');
$txt_clickstream $lang['statistic_page_title']; // <-- Clickstream Name

//################## EXAMPLE CUSTOM PHP CODE STARTS HERE ############################
 
$imgtable_width ceil((intval($config['image_table_width'])) / $config['image_cells']);
  if ((
substr($config['image_table_width'], -1)) == "%") {
    
$imgtable_width .= "%";
  }

  
$additional_sql "";
  if (!empty(
$additional_image_fields)) {
    foreach (
$additional_image_fields as $key => $val) {
      
$additional_sql .= ", i.".$key;
    }
  }
  
  
$datum_heute date("d.m.Y");
  
$sql "SELECT i.image_gestorbenGP, i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
          FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
          WHERE i.image_active = 1 
          
$sql_where_query
          AND c.cat_id = i.cat_id 
$cat_id_sql
          ORDER BY  STR_TO_DATE(image_gestorbenGP, '%d.%m.%Y') DESC
         "
;
  
$result $site_db->query($sql);
  
  
$liste "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";

  
$count 0;
  
$bgcounter 0;
  
$config['image_cells'] = 1;
  while (
$image_row $site_db->fetch_array($result)) {

   
$ausgabe="";
    
//array "$datum_gestorben" erstellen
    
$datum_gestorben explode(".",$image_row['image_gestorbenGP']);
    
//$datum_gestorben[0] =tag; $datum_gestorben[1] =monat;  $datum_gestorben[2] =Jahr

    //jetzt wird der tag und das monat zusammen gesetzt
    
$gestorben $datum_gestorben[0].$datum_gestorben[1];
    
//bspl. 04.03.1945 aus der DB ergibt: "0403"
 
    //jetzt brauchen wir noch das aktuelle datum (mittels date()), mit dem wir genauso verfahren.
    
$datum_heute explode("."date("d.m.Y"));
    
// tag und das monat wieder zusammen setzen
    
$heute $datum_heute[0].$datum_heute[1]; // ergibt zurzeit :)  0102
    
    //mit der jahreszahl verfahren wir genauso:
    
$jahr = ($datum_heute[2]) - ($datum_gestorben[2]);

    
//jetzt vergleichen wir die zahl "$gestorben" und die zahl "$heute"
    //sind die beiden zahlen gleich dann geben wir eine meldung aus.
    
if($gestorben == $heute ){
    
$ausgabe =  "heute vor ".$jahr." jahren am ".$image_row['image_gestorbenGP']." ist ".$image_row['image_name']." gestorben";
    }
    
//print_r($ausgabe);
    
    
if ($count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
      
      
$liste .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$liste .= "<td width=\"".$imgtable_width."\" valign=\"top\"><a href=\"./details.php?image_id=$image_row[image_id]\">".$ausgabe."</a></td>\n";
   
// $liste .= "<td width=\"".$imgtable_width."\" valign=\"top\"></td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$liste .= "</tr>\n";
      
$count 0;
    }
  } 
// end while
  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$i 0$i $leftover$i++) {
        
$liste .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$liste .= "</tr>\n";
    }
  }
  
$liste .= "</table>\n";
  
$content $liste;
  unset(
$liste);
 
// end if

//Here starts the lang register   
$site_template->register_vars(array( 
  
"content" => $content,                                   // <-- It is important that the same name used as in PHP Code above (in this example "my_php")
  
"lang_statistic_page_title" => $lang['statistic_page_title']  // <-- Page Title
                  // <-- the "example_text" must still be registered in the "lang/your language/main.php"
));

//################## EXAMPLE CUSTOM PHP CODE END HERE ################################

//----------------------------------------------------- 
//--- Clickstream ------------------------------------- 
//----------------------------------------------------- 
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>"

//----------------------------------------------------- 
//--- Print Out --------------------------------------- 
//----------------------------------------------------- 
$site_template->register_vars(array( 
  
"content" => $content
  
"msg" => $msg
  
"clickstream" => $clickstream
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>

47
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: February 02, 2011, 09:59:13 PM »
ich habe jetzt alles noch mal eingebaut,  

das image_datum  habe ich ersetzt durch image_gestorbenGP,  da sonst der fehler wie oben beschrieben aufpopt.


es wird aber nichts ausgegeben.
http://www.grosspeterwitz.org/friedhof/4images/statistic.php
<?php
 
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: statistic.php                                           *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.9                                                *
 *     File Version: 1.0.0 (by Rembrandt www.vienna-pictures.com)         *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 'statistic'// <-- Your Template Title

define('GET_CACHES'1);
define('ROOT_PATH''./');
define('MAIN_SCRIPT'__FILE__);
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
include(
ROOT_PATH.'includes/page_header.php');
$txt_clickstream $lang['statistic_page_title']; // <-- Clickstream Name

//################## EXAMPLE CUSTOM PHP CODE STARTS HERE ############################
 
$imgtable_width ceil((intval($config['image_table_width'])) / $config['image_cells']);
  if ((
substr($config['image_table_width'], -1)) == "%") {
    
$imgtable_width .= "%";
  }

  
$additional_sql "";
  if (!empty(
$additional_image_fields)) {
    foreach (
$additional_image_fields as $key => $val) {
      
$additional_sql .= ", i.".$key;
    }
  }
  
  
$datum_heute date("d.m.Y");
  
$sql "SELECT i.image_gestorbenGP, i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
          FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
          WHERE i.image_active = 1 AND i.image_gestorbenGP = '
$datum_heute'
          
$sql_where_query
          AND c.cat_id = i.cat_id 
$cat_id_sql
          ORDER BY  STR_TO_DATE(image_gestorbenGP, '%d.%m.%Y') DESC
         "
;
  
$result $site_db->query($sql);
  
  
$liste "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";

  
$count 0;
  
$bgcounter 0;
  
$config['image_cells'] = 1;
  while (
$image_row $site_db->fetch_array($result)) {

   
$ausgabe="";
    
//array "$datum_gestorben" erstellen
    
$datum_gestorben explode(".",$image_row['image_gestorbenGP']);
    
//$datum_gestorben[0] =tag; $datum_gestorben[1] =monat;  $datum_gestorben[2] =Jahr

    //jetzt wird der tag und das monat zusammen gesetzt
    
$gestorben $datum_gestorben[0].$datum_gestorben[1];
    
//bspl. 04.03.1945 aus der DB ergibt: "0403"
 
    //jetzt brauchen wir noch das aktuelle datum (mittels date()), mit dem wir genauso verfahren.
    
$datum_heute explode("."date("d.m.Y"));
    
// tag und das monat wieder zusammen setzen
    
$heute $datum_heute[0].$datum_heute[1]; // ergibt zurzeit :)  0102
    
    //mit der jahreszahl verfahren wir genauso:
    
$jahr = ($datum_heute[2]) - ($datum_gestorben[2]);

    
//jetzt vergleichen wir die zahl "$gestorben" und die zahl "$heute"
    //sind die beiden zahlen gleich dann geben wir eine meldung aus.
    
if($gestorben == $heute ){
    
$ausgabe =  "heute vor ".$jahr." jahren am ".$image_row['image_gestorbenGP']." ist ".$image_row['image_name']." gestorben";
    }
    
//print_r($ausgabe);
    
    
if ($count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
      
      
$liste .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$liste .= "<td width=\"".$imgtable_width."\" valign=\"top\"><a href=\"./details.php?image_id=$image_row[image_id]\">".$ausgabe."</a></td>\n";
   
// $liste .= "<td width=\"".$imgtable_width."\" valign=\"top\"></td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$liste .= "</tr>\n";
      
$count 0;
    }
  } 
// end while
  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$i 0$i $leftover$i++) {
        
$liste .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$liste .= "</tr>\n";
    }
  }
  
$liste .= "</table>\n";
  
$content $liste;
  unset(
$liste);
 
// end if

//Here starts the lang register   
$site_template->register_vars(array( 
  
"content" => $content,                                   // <-- It is important that the same name used as in PHP Code above (in this example "my_php")
  
"lang_statistic_page_title" => $lang['statistic_page_title']  // <-- Page Title
                  // <-- the "example_text" must still be registered in the "lang/your language/main.php"
));

//################## EXAMPLE CUSTOM PHP CODE END HERE ################################

//----------------------------------------------------- 
//--- Clickstream ------------------------------------- 
//----------------------------------------------------- 
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>"

//----------------------------------------------------- 
//--- Print Out --------------------------------------- 
//----------------------------------------------------- 
$site_template->register_vars(array( 
  
"content" => $content
  
"msg" => $msg
  
"clickstream" => $clickstream
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>



48
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: February 02, 2011, 05:34:33 AM »
 Hallo

wow mir fehlen die worte. Ist alles sehr verständlich und nachvollziehbar


aber bei der der ausgabe ist was faul,


habe die statistic.php angepasst.

<?php
 
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: statistic.php                                           *
 *        Copyright: (C) 2002-2009 Jan Sorgalla                           *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.9                                                *
 *     File Version: 1.0.0 (by Rembrandt www.vienna-pictures.com)         *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 'statistic'// <-- Your Template Title

define('GET_CACHES'1);
define('ROOT_PATH''./');
define('MAIN_SCRIPT'__FILE__);
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
include(
ROOT_PATH.'includes/page_header.php');
$txt_clickstream $lang['statistic_page_title']; // <-- Clickstream Name

//################## EXAMPLE CUSTOM PHP CODE STARTS HERE ############################
 
$imgtable_width ceil((intval($config['image_table_width'])) / $config['image_cells']);
  if ((
substr($config['image_table_width'], -1)) == "%") {
    
$imgtable_width .= "%";
  }

  
$additional_sql "";
  if (!empty(
$additional_image_fields)) {
    foreach (
$additional_image_fields as $key => $val) {
      
$additional_sql .= ", i.".$key;
    }
  }
  
  
$datum_heute date("d.m.Y");
  
$sql "SELECT i.image_gestorbenGP, i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
          FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
          WHERE i.image_active = 1 AND i.image_gestorbenGP = '
$datum_heute'
          
$sql_where_query
          AND c.cat_id = i.cat_id 
$cat_id_sql
          ORDER BY  STR_TO_DATE(image_gestorbenGP, '%d.%m.%Y') DESC
         "
;
  
$result $site_db->query($sql);
  
  
$liste "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";

  
$count 0;
  
$bgcounter 0;
  
$config['image_cells'] = 1;
  while (
$image_row $site_db->fetch_array($result)) {

   
$ausgabe="";
    
//array "$datum_gestorben" erstellen
    
$datum_gestorben explode(".",$image_row['image_gestorbenGP']);
    
//$datum_gestorben[0] =tag; $datum_gestorben[1] =monat;  $datum_gestorben[2] =Jahr

    //jetzt wird der tag und das monat zusammen gesetzt
    
$gestorben $datum_gestorben[0].$datum_gestorben[1];
    
//bspl. 04.03.1945 aus der DB ergibt: "0403"
 
    //jetzt brauchen wir noch das aktuelle datum (mittels date()), mit dem wir genauso verfahren.
    
$datum_heute explode("."date("d.m.Y"));
    
// tag und das monat wieder zusammen setzen
    
$heute $datum_heute[0].$datum_heute[1]; // ergibt zurzeit :)  0102
    
    //mit der jahreszahl verfahren wir genauso:
    
$jahr = ($datum_heute[2]) - ($datum_gestorben[2]);

    
//jetzt vergleichen wir die zahl "$gestorben" und die zahl "$heute"
    //sind die beiden zahlen gleich dann geben wir eine meldung aus.
    
if($gestorben == $heute ){
    
$ausgabe =  "heute vor ".$jahr." jahren am ".$image_row['image_gestorbenGP']." ist ".$image_row['image_name']." gestorben";
    }
    
//print_r($ausgabe);
    
    
if ($count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
      
      
$liste .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    
$liste .= "<td width=\"".$imgtable_width."\" valign=\"top\"><a href=\"./details.php?image_id=$image_row[image_id]\">".$ausgabe."</a></td>\n";
   
// $liste .= "<td width=\"".$imgtable_width."\" valign=\"top\"></td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$liste .= "</tr>\n";
      
$count 0;
    }
  } 
// end while
  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$i 0$i $leftover$i++) {
        
$liste .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$liste .= "</tr>\n";
    }
  }
  
$liste .= "</table>\n";
  
$content $liste;
  unset(
$liste);
 
// end if

//Here starts the lang register   
$site_template->register_vars(array( 
  
"content" => $content,                                   // <-- It is important that the same name used as in PHP Code above (in this example "my_php")
  
"lang_statistic_page_title" => $lang['statistic_page_title']  // <-- Page Title
                  // <-- the "example_text" must still be registered in the "lang/your language/main.php"
));

//################## EXAMPLE CUSTOM PHP CODE END HERE ################################

//----------------------------------------------------- 
//--- Clickstream ------------------------------------- 
//----------------------------------------------------- 
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>"

//----------------------------------------------------- 
//--- Print Out --------------------------------------- 
//----------------------------------------------------- 
$site_template->register_vars(array( 
  
"content" => $content
  
"msg" => $msg
  
"clickstream" => $clickstream
)); 
$site_template->print_template($site_template->parse_template($main_template)); 
include(
ROOT_PATH.'includes/page_footer.php'); 
?>


$sql "SELECT i.image_gestorben, i.image_id,

in geändert
$sql "SELECT i.image_gestorbenGP, i.image_id,





dann kamm  ein fehler


DB Error
Bad SQL QuerySELECT i.image_gestorbenGPi.image_idi.cat_idi.user_idi.image_namei.image_descriptioni.image_keywordsi.image_datei.image_activei.image_media_filei.image_thumb_filei.image_download_urli.image_allow_commentsi.image_commentsi.image_downloadsi.image_votesi.image_ratingi.image_hitsi.image_gmap_latitudei.image_gmap_longitudei.image_gmap_zoomi.image_gmap_typei.image_gmap_showi.image_dienstgradi.image_gefallenami.image_gefallenini.image_begrabeni.image_geboreni.image_gestorbenGPi.image_geborenini.image_lagei.image_truppenteili.image_strasseni.image_group_imagei.image_groupi.image_Makei.image_Modeli.image_DateTimeOriginali.image_ISOSpeedRatingsi.image_ExposureTimei.image_FNumberi.image_FocalLengthi.image_ExposureBiasValuei.image_ApertureValuei.image_MaxApertureValuei.image_MeteringModei.image_Flashi.image_ExposureProgrami.image_ExposureModei.image_WhiteBalancei.image_GPSLatitudei.image_GPSLatitudeRefi.image_GPSLongitudei.image_GPSLongitudeRefi.image_GPSAltitudei.image_GPSTracki.image_pin_allowi.image_gebautc.cat_nameu.user_name FROM (friedhof_images ifriedhof_categories cLEFT JOIN 4images_users u ON (u.user_id i.user_idWHERE i.image_active AND i.image_datum '02.02.2011' AND c.cat_id i.cat_id ORDER BY STR_TO_DATE(image_datum'%d.%m.%Y'DESC
Unknown column 
'i.image_datum' in 'where clause'


habe dann

WHERE i.image_active AND i.image_datum '$datum_heute'
          
$sql_where_query
          
AND c.cat_id i.cat_id $cat_id_sql
          ORDER BY  STR_TO_DATE
(image_datum'%d.%m.%Y'DESC


in

 WHERE i.image_active AND i.image_gestorbenGP '$datum_heute'
          
$sql_where_query
          
AND c.cat_id i.cat_id $cat_id_sql
          ORDER BY  STR_TO_DATE
(image_gestorbenGP'%d.%m.%Y'DESC


bzw. image_date geändert

aber es wird nicht ausgegeben  , noch nicht mal ein fehler

http://www.grosspeterwitz.org/friedhof/4images/statistic.php

gruß

49
Templates & Styles (Requests & Discussions) / Re: wo finde ich...
« on: February 01, 2011, 06:05:45 AM »
Hallo,


als INFO

mit der neuen version von corner.js 2.1 verschwindet nun die unschärfe ide bilder im IE.




gruß


50
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 31, 2011, 09:32:29 PM »
hallo,

kein stück weiter,  versuch mich da einzulesen,  http://php.net/manual/de/function.date.php

aber komme leider nicht vorwärts...... :cry: :cry: :cry:


vieleicht könnte man den Birthday Mod umbauen http://www.4homepages.de/forum/index.php?topic=11558.0



gruß






51
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 27, 2011, 10:22:23 PM »
Ich hoffe ich verlange nicht zu viel

aber wenn es ohne grossen zeitlichen aufwand verbunden ist.......

habe schon vor 2-3 jahren damit angefangen alle gräber mit datum zu beschriften (wenn mir langweilig war, immer nur ein bissel ) in ca  6 Monaten werde ich fertig sein.

dann  will ich so eine art statistic ausgeben.   

 .....sehe selbst.
http://www.grosspeterwitz.org/friedhof/4images/geb.php

was mir fehlt ist Berechnung  zwischen image_geboren und image_gestorbenGP im bezug auf das heutige(aktuelle) datum

das folgende script habe ich mir zusammengeklaut und angepasst





<table width="75%" border="1">
  <
tr>
    <
td><?php


	

mysql_connect("localhost","*********","*************") or die(mysql_error());
mysql_select_db("********") or die(mysql_error());
 


$datum=strftime("%m");
$datum3=strftime("%d%m");
$dat1=mysql_query("SELECT image_name, image_geboren , image_id FROM friedhof_images  ORDER BY image_geboren");

while(
$dat=mysql_fetch_array($dat1)) {
        
$datum1$dat[image_geboren];
        
$datum2explode("."$datum1);
        if(
$datum2[0].$datum2[1] == $datum3) {
//hier wird ein Geburtstag am aktuellen Tag angezeigt
                
echo "<b>Heute hat <a href=\"./details.php?image_id=$dat[image_id]\">".$dat[image_name]."</a> geb. ".$dat[image_geboren]." ?? Geburtstag</b>"."<br>";
        }
        if(
$datum2[1] == $datum and $datum2[0].$datum2[1] > $datum3 ) {






//hier werden alle Geburtstage im aktuellen Monat angezeigt
                
echo "Am ".$dat[image_geboren]." hat  <b><a href=\"./details.php?image_id=$dat[image_id]\">".$dat[image_name]."</a></b>  ?? Geburtstag"."<br>";
        }
}  
?></td>
  </tr>
  <tr>
    <td><?php
$datum
=strftime("%m");
$datum3=strftime("%d%m");
$dat1=mysql_query("SELECT image_name, image_gestorbenGP, image_id  FROM friedhof_images  ORDER BY image_gestorbenGP");

while(
$dat=mysql_fetch_array($dat1)) {
        
$datum1$dat[image_gestorbenGP];
        
$datum2explode("."$datum1);
        if(
$datum2[0].$datum2[1] == $datum3) {
//hier wird ein Sterbefall am aktuellen Tag angezeigt
                
echo "<b>Heute vor ?? Jahren ist <a href=\"./details.php?image_id=$dat[image_id]\">".$dat[image_name]."</a>  Gestorben</b>"."<br>";
        }
        if(
$datum2[1] == $datum and $datum2[0].$datum2[1] > $datum3 ) {




//hier werden alle Stärbefälle  im aktuellen Monat angezeigt
                
echo "Am ".$dat[image_gestorbenGP]." vor ?? Jahren ist  <b><a href=\"./details.php?image_id=$dat[image_id]\">".$dat[image_name]."</a></b>  Gestorben"."<br>";
        }
}  
?>
</td>
  </tr>
</table>




hast Du ein Ansatzt oder Beispielscript wie ich es realisieren könnte?

gruß

52
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 27, 2011, 08:10:27 PM »
hallo,

das ist ja klasse,  funktioniert einwandfrei.

ich habe mich auch schon hiermit beschäftigt
http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html

der selbe gedanke STR_TO_DATE(

einfach danke :wink:  , hafen zeit hast Du mir erspart

gruß



53
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 26, 2011, 09:11:34 PM »
so

hier ein auszug aus der _images

Quote
CREATE TABLE IF NOT EXISTS `friedhof_images` (
  `image_id` mediumint(8) NOT NULL auto_increment,
  `image_gmap_longitude` varchar(20) NOT NULL,
  `cat_id` mediumint(8) NOT NULL default '0',
  `user_id` mediumint(8) NOT NULL default '0',
  `image_name` varchar(255) NOT NULL default '',
  `image_description` text NOT NULL,
  `image_keywords` text NOT NULL,
  `image_date` int(11) unsigned NOT NULL default '0',
  `image_active` tinyint(1) NOT NULL default '1',
  `image_media_file` varchar(255) NOT NULL default '',
  `image_thumb_file` varchar(255) NOT NULL default '',
  `image_download_url` varchar(255) NOT NULL default '',
  `image_allow_comments` tinyint(1) NOT NULL default '1',
  `image_comments` smallint(6) NOT NULL default '0',
  `image_downloads` smallint(6) NOT NULL default '0',
  `image_votes` smallint(6) NOT NULL default '0',
  `image_rating` decimal(4,2) NOT NULL default '0.00',
  `image_hits` mediumint(8) NOT NULL default '0',
  `image_pin_allow` tinyint(1) default '0',
  `image_gmap_latitude` varchar(20) NOT NULL,
  `image_gmap_zoom` char(2) NOT NULL,
  `image_gmap_type` tinyint(1) NOT NULL,
  `image_gmap_show` tinyint(1) NOT NULL,
  `image_dienstgrad` varchar(255) NOT NULL,
  `image_gefallenam` varchar(255) NOT NULL,
  `image_gefallenin` varchar(255) NOT NULL,
  `image_begraben` varchar(255) NOT NULL,
  `image_geboren` varchar(255) NOT NULL,
  `image_geborenin` varchar(255) NOT NULL,
  `image_lage` varchar(255) NOT NULL,
  `image_truppenteil` varchar(255) NOT NULL,
  `image_strassen` varchar(255) NOT NULL,
  `image_gestorbenGP` varchar(255) NOT NULL,
  `image_group` int(10) NOT NULL default '0',
  `image_group_image` int(10) NOT NULL default '0',
  `image_photograph` varchar(255) NOT NULL,
  `image_Make` varchar(50) NOT NULL,
  `image_Model` varchar(50) NOT NULL,
  `image_DateTimeOriginal` varchar(50) NOT NULL,
  `image_ISOSpeedRatings` varchar(20) NOT NULL,
  `image_ExposureTime` varchar(20) NOT NULL,
  `image_FNumber` varchar(20) NOT NULL,
  `image_FocalLength` varchar(20) NOT NULL,
  `image_ExposureBiasValue` varchar(20) NOT NULL,
  `image_ApertureValue` varchar(20) NOT NULL,
  `image_MaxApertureValue` varchar(20) NOT NULL,
  `image_MeteringMode` varchar(50) NOT NULL,
  `image_Flash` varchar(100) NOT NULL,
  `image_ExposureProgram` varchar(50) NOT NULL,
  `image_ExposureMode` varchar(50) NOT NULL,
  `image_WhiteBalance` varchar(50) NOT NULL,
  `image_GPSLatitude` varchar(20) NOT NULL,
  `image_GPSLatitudeRef` varchar(20) NOT NULL,
  `image_GPSLongitude` varchar(20) NOT NULL,
  `image_GPSLongitudeRef` varchar(20) NOT NULL,
  `image_GPSAltitude` varchar(20) NOT NULL,
  `image_GPSTrack` varchar(20) NOT NULL,
  `image_gebaut` varchar(255) NOT NULL,
  PRIMARY KEY  (`image_id`),
  KEY `cat_id` (`cat_id`),
  KEY `user_id` (`user_id`),
  KEY `image_date` (`image_date`),
  KEY `image_active` (`image_active`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3065 ;

--
-- Daten für Tabelle `friedhof_images`
--

INSERT INTO `friedhof_images` (`image_id`, `image_gmap_longitude`, `cat_id`, `user_id`, `image_name`, `image_description`, `image_keywords`, `image_date`, `image_active`, `image_media_file`, `image_thumb_file`, `image_download_url`, `image_allow_comments`, `image_comments`, `image_downloads`, `image_votes`, `image_rating`, `image_hits`, `image_pin_allow`, `image_gmap_latitude`, `image_gmap_zoom`, `image_gmap_type`, `image_gmap_show`, `image_dienstgrad`, `image_gefallenam`, `image_gefallenin`, `image_begraben`, `image_geboren`, `image_geborenin`, `image_lage`, `image_truppenteil`, `image_strassen`, `image_gestorbenGP`, `image_group`, `image_group_image`, `image_photograph`, `image_Make`, `image_Model`, `image_DateTimeOriginal`, `image_ISOSpeedRatings`, `image_ExposureTime`, `image_FNumber`, `image_FocalLength`, `image_ExposureBiasValue`, `image_ApertureValue`, `image_MaxApertureValue`, `image_MeteringMode`, `image_Flash`, `image_ExposureProgram`, `image_ExposureMode`, `image_WhiteBalance`, `image_GPSLatitude`, `image_GPSLatitudeRef`, `image_GPSLongitude`, `image_GPSLongitudeRef`, `image_GPSAltitude`, `image_GPSTrack`, `image_gebaut`) VALUES
(1, '', 2, 129, 'Kubiczek Marta', '', '', 1077375757, 1, 'Kubiczek_Marta.JPG', 'Kubiczek_Marta.JPG', '', 1, 0, 0, 1, 1.00, 155, 1, '', '', 0, 0, '', '', '', '', '', '', '', '', '', '', 326, 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(2, '', 2, 129, 'Kubiczek Marta', '', '', 1077375894, 1, 'Kubiczek_Marta1.JPG', 'Kubiczek_Marta1.JPG', '', 1, 0, 0, 5, 1.00, 195, 1, '', '', 0, 0, '', '', '', '', '05.03.1891', '', '', '', '', '03.01.1971', 326, 326, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(3, '', 3, 129, 'Kaul Alois', '', '', 1077375983, 1, 'Kaul_Alois__Sittek_Maria.JPG', 'Kaul_Alois__Sittek_Maria.JPG', '', 1, 0, 0, 7, 1.00, 171, 1, '', '', 0, 0, '', '', '', '', '', '', '', '', '', '', 317, 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(4, '', 3, 129, 'Kaul Alois', '', '', 1077375983, 1, 'Kaul_Alois__Sittek_Maria1.JPG', 'Kaul_Alois__Sittek_Maria1.JPG', '', 1, 0, 0, 3, 1.00, 175, 1, '', '', 0, 0, '', '', '', '', '1902', '', '', '', '', '1976', 317, 317, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(5, '', 7, 129, 'Abrahamczyk Stefan', '', '', 1077387249, 1, 'Abrahamczyk_Stefan_Gertruda.JPG', 'Abrahamczyk_Stefan_Gertruda.JPG', '', 1, 0, 0, 0, 0.00, 161, 1, '', '', 0, 0, '', '', '', '', '26.12.1878', '', '', '', '', '09.06.1962', 59, 59, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
(6, '', 7, 129, 'Abrahamczyk Gertruda', '', '', 1077387249, 1, 'Abrahamczyk_Stefan_Gertruda1.JPG', 'Abrahamczyk_Stefan_Gertruda1.JPG', '', 1, 0, 0, 0, 0.00, 144, 1, '', '', 0, 0, '', '', '', '', '29.01.1914', '', '', '', '', '27.07.1989', 59, 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),

in das feld images_gestorbenGP  wird zb. "01.01.1954" eingetragen   und so gespeichert,   im images_data  wird ein zahlencode in der datenbank gespeichert

da blicke ich ehrlich gesagt garnet durch.


54
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 26, 2011, 06:36:20 PM »
klingt logisch, 

aber wie kopiere ich das image_gestorbenGP  in das image_date feld

einfach exportieren in mysql geht nicht.


ich habe  schon an die 1500 bilder mit sterbedatum beschrifftet


du hast doch bestimmt eine kleine ZAUBERFORMEL :roll:  in der Hintertür?


55
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 26, 2011, 06:48:36 AM »
Dann habe ich ein Problem.

denn das Datum ist als varchar(255) in sql eingetragen zb 20.01.2010

wenn ich es ändere verschwinden alle einträge es wird nur 0000:00:00 angezeigt

56
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 26, 2011, 05:44:31 AM »
hallo

das habe ich schon gemacht,

 $sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, i.image_gestorbenGP".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
          FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
          WHERE i.image_active = 1
          
$sql_where_query
          AND c.cat_id = i.cat_id 
$cat_id_sql
          ORDER BY image_gestorbenGP ASC 
          LIMIT 
$offset$perpage";


komischerweise funktioniert es mit image_date image_name usw.  einwandfrei.

kann es sein das image_geborenGP noch in einer anderen Datei defeniert werden muss?

57
Discussion & Troubleshooting / Re: Suchergebnissausgabe
« on: January 25, 2011, 10:10:03 PM »
Hi

so weit so gut

habe mir das so eingebaut wie du mir es vorgeschlagen hast.  und auch schon um die spalte "image_geboren" erweitert.

dann als search1.php abgespeichert damit die normale suche weiterhin funktioniert.

nur die sortierung klappt nicht weder aufwärts noch abwärts (ASC DESC) ,  auch dann nicht wenn ich es in die orginall search.php einfüge.

http://www.grosspeterwitz.org/friedhof/4images/search1.php?search_keywords=2010

meine search1.php

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: search.php                                           *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.6                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 'search';

define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/search_utils.php');
error_reporting(E_ALL);
$org_search_keywords $search_keywords;
$org_search_user $search_user;

if (isset(
$HTTP_GET_VARS['search_terms']) || isset($HTTP_POST_VARS['search_terms'])) {
  
$search_terms = isset($HTTP_POST_VARS['search_terms']) ? $HTTP_POST_VARS['search_terms'] : $HTTP_GET_VARS['search_terms'];
  
$search_terms $search_terms == "all" 0;
}
else {
  
$search_terms 0;
}

if (isset(
$HTTP_GET_VARS['search_fields']) || isset($HTTP_POST_VARS['search_fields'])) {
  
$search_fields = isset($HTTP_POST_VARS['search_fields']) ? trim($HTTP_POST_VARS['search_fields']) : trim($HTTP_GET_VARS['search_fields']);
}
else {
  
$search_fields "all";
}

$search_cat $cat_id;

$search_id = array();

if (
$search_user != "" && $show_result == 1) {
  
$search_user str_replace('*''%'trim($search_user));
  
$sql "SELECT ".get_user_table_field("""user_id")."
          FROM "
.USERS_TABLE."
          WHERE "
.get_user_table_field("""user_name")." LIKE '$search_user'";
  
$result $site_db->query($sql);
  
$light_activity "";
  
$search_id['user_ids'] = "";
  if (
$result) {
    while (
$row $site_db->fetch_array($result)) {
      
$search_id['user_ids'] .= (($search_id['user_ids'] != "") ? ", " "").$row[$user_table_fields['user_id']];
    }
    
$site_db->free_result($result);
  }
}

if (
$search_keywords != "" && $show_result == 1) {
  
$split_words prepare_searchwords($search_keywordstrue);

  
$match_field_sql = ($search_fields != "all" && isset($search_match_fields[$search_fields])) ? "AND m.".$search_match_fields[$search_fields]." = 1" "";
  
$search_word_cache = array();
  for (
$i 0$i sizeof($split_words); $i++) {
    if (
$split_words[$i] == "and" || $split_words[$i] == "und" || $split_words[$i] == "or" || $split_words[$i] == "oder" || $split_words[$i] == "not") {
      
$search_word_cache[$i] = ($search_terms) ? "and" $split_words[$i];
    }
    else {
      
$sql "SELECT m.image_id
              FROM ("
.WORDLIST_TABLE." w, ".WORDMATCH_TABLE." m)
              WHERE w.word_text LIKE '"
.addslashes(str_replace("*""%"$split_words[$i]))."'
              AND m.word_id = w.word_id
              
$match_field_sql";
      
$result $site_db->query($sql);
      
$search_word_cache[$i] = array();
      while (
$row $site_db->fetch_array($result)) {
        
$search_word_cache[$i][$row['image_id']] = 1;
      }
      
$site_db->free_result();
    }
  }

  
$is_first_word 1;
  
$operator "or";
  
$image_id_list = array();
  for (
$i 0$i sizeof($search_word_cache); $i++) {
    if (
$search_word_cache[$i] == "and" || $search_word_cache[$i] == "und" || $search_word_cache[$i] == "or" || $search_word_cache[$i] == "oder" || $search_word_cache[$i] == "not") {
      if (!
$is_first_word) {
        
$operator $search_word_cache[$i];
      }
    }
    elseif (
is_array($search_word_cache[$i])) {
      if (
$search_terms) {
        
$operator "and";
      }
      foreach (
$search_word_cache[$i] as $key => $val) {
        if (
$is_first_word || $operator == "or" || $operator == "oder") {
          
$image_id_list[$key] = 1;
        }
        elseif (
$operator == "not") {
          unset(
$image_id_list[$key]);
        }
      }
      if ((
$operator == "and" || $operator == "und") && !$is_first_word) {
        foreach (
$image_id_list as $key => $val) {
          if (!isset(
$search_word_cache[$i][$key])) {
            unset(
$image_id_list[$key]);
          }
        }
      }
    }
    
$is_first_word 0;
  }

  
$search_id['image_ids'] = "";
  foreach (
$image_id_list as $key => $val) {
    
$search_id['image_ids'] .= (($search_id['image_ids'] != "") ? ", " "").$key;
  }
  unset(
$image_id_list);
}

if (
$search_new_images && $show_result == 1) {
  
$search_id['search_new_images'] = 1;
}

if (
$search_cat && $show_result == 1) {
  
$search_id['search_cat'] = $search_cat;
}

if (!empty(
$search_id)) {
  
$site_sess->set_session_var("search_id"serialize($search_id));
}

include(
ROOT_PATH.'includes/page_header.php');

$num_rows_all 0;
if (
$show_result == 1) {
  if (empty(
$search_id)) {
    if (!empty(
$session_info['search_id'])) {
      
$search_id unserialize($session_info['search_id']);
    } else {
      
$search_id unserialize($site_sess->get_session_var("search_id"));
    }
  }

  
$sql_where_query "";

  if (!empty(
$search_id['image_ids'])) {
    
$sql_where_query .= "AND i.image_id IN (".$search_id['image_ids'].") ";
  }

  if (!empty(
$search_id['user_ids'])) {
    
$sql_where_query .= "AND i.user_id IN (".$search_id['user_ids'].") ";
  }

  if (!empty(
$search_id['search_new_images']) && $search_id['search_new_images'] == 1) {
    
$new_cutoff time() - 60 60 24 $config['new_cutoff'];
    
$sql_where_query .= "AND i.image_date >= $new_cutoff ";
  }

  if (!empty(
$search_id['search_cat']) && $search_id['search_cat'] != 0) {
    
$cat_id_sql 0;
    if (
check_permission("auth_viewcat"$search_id['search_cat'])) {
      
$sub_cat_ids get_subcat_ids($search_id['search_cat'], $search_id['search_cat'], $cat_parent_cache);
      
$cat_id_sql .= ", ".$search_id['search_cat'];
      if (!empty(
$sub_cat_ids[$search_id['search_cat']])) {
        foreach (
$sub_cat_ids[$search_id['search_cat']] as $val) {
          if (
check_permission("auth_viewcat"$val)) {
            
$cat_id_sql .= ", ".$val;
          }
        }
      }
    }
    
$cat_id_sql $cat_id_sql !== "AND i.cat_id IN ($cat_id_sql)" "";
  }
  else {
    
$cat_id_sql get_auth_cat_sql("auth_viewcat""NOTIN");
    
$cat_id_sql $cat_id_sql !== "AND i.cat_id NOT IN (".$cat_id_sql.")" "";
  }

  if (!empty(
$sql_where_query)) {
    
$sql "SELECT COUNT(*) AS num_rows_all
            FROM "
.IMAGES_TABLE." i
            WHERE i.image_active = 1 
$sql_where_query
            
$cat_id_sql";
    
$row $site_db->query_firstrow($sql);
    
$num_rows_all $row['num_rows_all'];
  }
}

if (!
$num_rows_all && $show_result == 1)  {
  
$msg preg_replace("/".$site_template->start."search_keywords".$site_template->end."/"$search_keywords$lang['search_no_results']);
}

//-----------------------------------------------------
//--- Show Search Results -----------------------------
//-----------------------------------------------------
if ($num_rows_all && $show_result == 1)  {
  
$link_arg $site_sess->url(ROOT_PATH."search1.php?show_result=1");

  include(
ROOT_PATH.'includes/paging.php');
  
$getpaging = new Paging($page$perpage$num_rows_all$link_arg);
  
$offset $getpaging->get_offset();
  
$site_template->register_vars(array(
    
"paging" => $getpaging->get_paging(),
    
"paging_stats" => $getpaging->get_paging_stats()
  ));

  
$imgtable_width ceil((intval($config['image_table_width'])) / $config['image_cells']);
  if ((
substr($config['image_table_width'], -1)) == "%") {
    
$imgtable_width .= "%";
  }

  
$additional_sql "";
  if (!empty(
$additional_image_fields)) {
    foreach (
$additional_image_fields as $key => $val) {
      
$additional_sql .= ", i.".$key;
    }
  }

  
$sql "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.""user_name")."
          FROM ("
.IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)
          LEFT JOIN "
.USERS_TABLE." u ON (".get_user_table_field("u.""user_id")." = i.user_id)
          WHERE i.image_active = 1
          
$sql_where_query
          AND c.cat_id = i.cat_id 
$cat_id_sql
          ORDER BY image_gestorbenGP ASC 
          LIMIT 
$offset$perpage";
  
$result $site_db->query($sql);

  
$thumbnails "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";

  
$count 0;
  
$bgcounter 0;
  
$config['image_cells'] = 1;
  while (
$image_row $site_db->fetch_array($result)) {
    if (
$count == 0) {
      
$row_bg_number = ($bgcounter++ % == 0) ? 2;
      
$thumbnails .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
$thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\">".$image_row['image_gestorbenGP']."</td>\n";
	
$thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\"><a href=\"./details.php?image_id=$image_row[image_id]\">".$image_row['image_name']."</a></td>\n";
	
$thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\">".$image_row['image_geboren']."</td>\n";
    
$count++;
    if (
$count == $config['image_cells']) {
      
$thumbnails .= "</tr>\n";
      
$count 0;
    }
  } 
// end while
  
if ($count 0)  {
    
$leftover = ($config['image_cells'] - $count);
    if (
$leftover >= 1) {
      for (
$i 0$i $leftover$i++) {
        
$thumbnails .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      
$thumbnails .= "</tr>\n";
    }
  }
  
$thumbnails .= "</table>\n";
  
$content $thumbnails;
  unset(
$thumbnails);
// end if
else {
  
$site_template->register_vars(array(
    
"search_keywords" => format_text(stripslashes($org_search_keywords), 2),
    
"search_user" => format_text(stripslashes($org_search_user), 2),
    
"lang_search_by_keyword" => $lang['search_by_keyword'],
    
"lang_search_by_username" => $lang['search_by_username'],
    
"lang_new_images_only" => $lang['new_images_only'],
    
"lang_search_terms" => $lang['search_terms'],
    
"lang_or" => $lang['or'],
    
"lang_and" => $lang['and'],
    
"lang_category" => $lang['category'],
    
"lang_search_fields" => $lang['search_fields'],
    
"lang_all_fields" => $lang['all_fields'],
    
"lang_name_only" => $lang['name_only'],
    
"lang_description_only" => $lang['description_only'],
    
"lang_keywords_only" => $lang['keywords_only'],
    
"category_dropdown" => get_category_dropdown($cat_id)
  ));

  if (!empty(
$additional_image_fields)) {
    
$additional_field_array = array();
    foreach (
$additional_image_fields as $key => $val) {
      if (isset(
$lang[$key.'_only'])) {
        
$additional_field_array['lang_'.$key.'_only'] = $lang[$key.'_only'];
      }
    }
    if (!empty(
$additional_field_array)) {
      
$site_template->register_vars($additional_field_array);
    }
  }
  
$content $site_template->parse_template("search_form");
}



//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$lang['search']."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"content" => $content,
  
"msg" => $msg,
  
  
"clickstream" => $clickstream,
  
"lang_search" => $lang['search']
));
$site_template->print_template($site_template->parse_template($main_template));
include(
ROOT_PATH.'includes/page_footer.php');
?>



58
Discussion & Troubleshooting / Suchergebnissausgabe
« on: January 24, 2011, 09:05:47 PM »
Hallo,

kann mann die Suchergebnissausgabe so erweitern........


Suchkeyword:  zb. 2010


5. Grab-Bild5   ges. 5 mai
4. Grab-Bild4   ges. 4 april
3. Grab-Bild3   ges. 3 märz
2. Grab-Bild2   ges. 2 febuar
1. Grab-Bild1   ges. 1 januar


Also:  untereinander  und ohne thumbnails


bis jetzt muss ich jedes bild manuel in eine liste eintragen ist haufgen arbeit.

http://www.grosspeterwitz.org/friedhof/4images/verstorben.php

auch nach intensiver suche habe ich nichts endeckt was ich mir anpassen könnte.


mfg kubiczek








59
Mit der folgenden erweiterung kann mann in der Details ansicht ein LINK zum orginallbild im BIG ordner setzen.

in details.html

<a href="data/media/{cat_id}/big/{image_file_name}" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})">Orginallbild</a>

an gewünschter stelle einfügen.

gruß


60
Hallo,

Hat jemand diesen MOD efolgreich eingebaut?

ich habe es mit 1.7.4 1.7.6 1.7.9  versucht  jedesmal ohne erfolg.


Hat jemand lust den Mod sauber aufzuschreiben? den ich habe hier den Durchblick :roll: verloren.


gruß

Pages: 1 2 3 [4] 5 6 7 8 ... 13