Author Topic: php files tableless  (Read 2844 times)

0 Members and 1 Guest are viewing this topic.

Offline FotoRalle

  • Jr. Member
  • **
  • Posts: 57
  • 4images als bestes Community-Script
    • View Profile
    • rs webregie | webdesign & webmaster
php files tableless
« on: November 13, 2010, 05:36:11 PM »
Hallo!

Hat schon jemand einmal 4images ohne tabellen realisiert. Also xhtml konform?
Zb aus der categories.php diese Tabellen herausgenommen?

Did anybody clear the 4images tables in the php files?

Code: [Select]
else {
  $thumbnails = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">\n";
  $count = 0;
  $bgcounter = 0;
  while ($image_row = $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
      $thumbnails .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    $thumbnails .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    show_image($image_row);
    $thumbnails .= $site_template->parse_template("thumbnail_bit");
    $thumbnails .= "\n</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 > 0) {
      for ($i = 0; $i < $leftover; $i++){
        $thumbnails .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $thumbnails .= "</tr>\n";
    }
  }
  $thumbnails .= "</table>\n";
} //end else
$site_template->register_vars("thumbnails", $thumbnails);
unset($thumbnails);

Für jede Hilfe bin ich dankbar!

Rembrandt

  • Guest
Re: php files tableless
« Reply #1 on: November 13, 2010, 05:42:44 PM »
...Hat schon jemand einmal 4images ohne tabellen realisiert. Also xhtml konform?
... ....
wozu, xhtml wird nicht mehr weiterentwickelt, teile davon werden in HTML 5.0 wieder zufinden sein.
also wozu auf ein sterbendes system aufbauen.