Author Topic: suche im ADC erweitern  (Read 2365 times)

0 Members and 1 Guest are viewing this topic.

Offline HLeske

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • GartenBahn DatenBank
suche im ADC erweitern
« on: May 05, 2008, 08:10:10 PM »
Hallo,
ich habe hier im Forum danach gesucht, aber nichts gefunden.

Da man den Bilderstatus ändern kann, möchte ich an dieser Stelle zeigen wie ich die Suche erweitert habe um Bilder zu finden die Inaktiv gestellt sind.

1) öffne die  lang/admin.php  un füge ein:
Code: [Select]
$lang['field_image_aktive'] = "Bild Aktiv 1=Aktiv/0=Inaktiv";
2) öffne die admin/images.php

a)
suche:
 
Code: [Select]
show_input_row($lang['field_hits_lower'], "hitslower", "", $textinput_size);füge danach ein
Code: [Select]
show_input_row($lang['field_image_status'], "image_status", "", $textinput_size);
b)
suche:
Code: [Select]
<option value="i.image_hits"><?php echo $lang['field_hits'?></option>füge danach ein:
Code: [Select]
<option value="i.image_active"><?php echo $lang['field_image_active'?></option>
c)
suche:
Code: [Select]
  $hitsupper = trim($HTTP_POST_VARS['hitsupper']);
  if ($hitsupper != "") {
    $condition .= " AND i.image_hits > '$hitsupper'";
  }

füge danach ein:
Code: [Select]
  $image_status = trim($HTTP_POST_VARS['image_active']);
  if ($image_status != "") {
    $condition .= " AND i.image_active = '$image_active'";
  }


Fertig  :P

Kennt jemand eine Möglichkeit, das ganze als Radiobutton darzustellen?
Gruß
HLeske
http://www.gbdb.de < GartenBahn DatenBank auf Basis vom 4images Gallery
http://www.ig-lgb.de < 1. Görliter IG Gartenbahn IIm e.V.