// default page ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <?php $homepage_query = tep_db_query('SELECT infopages_id FROM infopages WHERE type = "home"'); $homepage = tep_db_fetch_array($homepage_query); echo '<div class="contentpaneopen"> <h1>' . tep_get_infopages_title($homepage['infopages_id']) . '</h1>'; echo '<p>' . tep_get_infopages_description($homepage['infopages_id']) . '</p></div>'; ?> </td> </tr> <tr> <td> <?php include DIR_WS_MODULES . FILENAME_HOME_PRODUCTS; ?> </td>
<?php require_once 'includes/application_top.php'; $page_query = tep_db_query("SELECT infopages_id FROM infopages WHERE infopages_status = 1 AND type ='condition'"); if (tep_db_num_rows($page_query) == 0) { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } $page = tep_db_fetch_array($page_query); ?> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="100%" valign="top"> <h1><?php echo tep_get_infopages_title($page['infopages_id']); ?> </h1> <?php echo tep_get_infopages_description($page['infopages_id']); ?> </td> </tr> </table> <?php require DIR_WS_INCLUDES . 'footer.php'; require DIR_WS_INCLUDES . 'application_bottom.php';
<div class="clear"></div> <?php } } } } else { ?> <div class="content-item"> <span class="blog-item-text-intro"> <?php echo tep_get_infopages_preview($page); ?> </span> <span class="blog-item-text-description"> <?php echo tep_get_infopages_description($page); ?> </span> </div> <?php } ?> </div> </td> </tr> </table> </td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>