Author Topic: FAQ MOD ?  (Read 19224 times)

0 Members and 1 Guest are viewing this topic.

Offline CanonInk

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: FAQ MOD ?
« Reply #15 on: May 05, 2008, 10:04:40 AM »
So, nun ist eine neue Woche und hier sind die Files:

In {root}4images (fotolexicon.php):
Code: [Select]
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0"  width="100">
 <table border="0" width="100%">
   <tr>
    <td width="100%" colspan="27" align="center"><a name="tob"><font size="2"><strong>Fotolexikon (auch aus analoger Zeit)</strong></a></td>
   </tr>
   <tr>
    <?php
&#160; &#160;&#160; for ($i = 65; $i <= 90; $i++) {
&#160; &#160; &#160; print "<th><font size=\"1\"><a href=\"#".chr($i)."\">".chr($i)."</a></th> ";
&#160; &#160; &#160; }
&#160; &#160; ?>

   </tr>
   <tr>
    <td width="100%" colspan="27">&nbsp;</td>
  </tr>

  </table>

 <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="100%" id="AutoNumber1">
  <?php
&#160; require("config.php");

$link=mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db("$db_name") or die ("Cannot connect database!");

&
#160; 
&#160; $sql = "SELECT * FROM ".$table_prefix."fotofaq ORDER by fotofaq_item";
&#160; $result = mysql_query($sql);
&#160; 
&#160; $sqlitem = mysql_num_rows($result);
&#160; 
&#160; &#160; while($row = mysql_fetch_object($result))
&#160; &#160; &#160; {
$itemIndex $row->fotofaq_item{0};
if ($itemIndex != $itemLast)
&#160; {
&#160; print "<tr>";
&#160; print "<td class=\"row1\" width=\"17%\" align=\"left\"><strong>$itemIndex</strong><a name=\"$itemIndex\"></a></td>";
&#160; print "<td class=\"row1\" width=\"83%\" align=\"right\"><a href=\"#tob\">nach oben</a></td>";
&#160; print "</tr>";
&#160; print "</tr><td width=\"100%\" colspan=\"2\">&nbsp;</td></tr>";
&#160; $itemLast = $itemIndex;
&#160; &#160; &#160; &#160; &#160; }
print "<tr>";
&
#160; &#160; &#160; &#160; print "<td class=\"row2\" width=\"17%\" align=\"left\" valign=\"top\">$row->fotofaq_item</td>";
print "<td class=\"row2\" width=\"83%\" align=\"left\" valign=\"top\">$row->fotofaq_declaration</td>";
print "</tr>";
print "</tr><td width=\"100%\" colspan=\"2\" border=\"0\">&nbsp;</td></tr>";
&
#160; &#160;&#160; }
&#160; ?>

   </table>
</div>

Im Template-Ordner (z.B. die error.html ändern --> fotolexicon.html):
Code: [Select]
...
<?php include("fotolexicon.php"); ?>
...

Tabellen-Struktur in MySQL (4images_fotofaq):
id_fotofaq               int(3)
fotofaq_item           varchar(45)
fotofaq_declaration  text

Demo, auf den Banner klicken und im Header nach dem Fotolexikon suchen.

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: FAQ MOD ?
« Reply #16 on: May 05, 2008, 11:17:04 AM »
Demo, auf den Banner klicken und im Header nach dem Fotolexikon suchen.

http://www.ruebenberger-bilder.de/index.php?template=fotolexicon

It's more a glossar than a FAQ I think.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CanonInk

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: FAQ MOD ?
« Reply #17 on: May 05, 2008, 01:09:34 PM »
Demo, auf den Banner klicken und im Header nach dem Fotolexikon suchen.

http://www.ruebenberger-bilder.de/index.php?template=fotolexicon

It's more a glossar than a FAQ I think.


...see my first reply in this tread. This could be a first  :wink:
...siehe meine erste Anwort. Das könnte ein erster Schritt sein, ein FAQ zu bewältigen  :wink: