yustis_83 Posted October 6, 2008 Share Posted October 6, 2008 Hello everybody i have a little problem i want to create a new info box. but i want to be able to put lets say something like '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' basically to create the links by myself heres the code that i have for my faq's but no idea how to modify to reflect this $faq_categories_query = tep_db_query("select ic.categories_id, icd.categories_name from " . TABLE_FAQ_CATEGORIES . " ic, " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " icd where icd.categories_id = ic.categories_id and icd.language_id = '" . (int)$languages_id . "' and ic.categories_status = '1' order by ic.categories_sort_order, icd.categories_name"); // faq outside categories $faq_query = tep_db_query("select ip.faq_id, ip.question from " . TABLE_FAQ . " ip left join " . TABLE_FAQ_TO_CATEGORIES . " ip2c on ip2c.faq_id = ip.faq_id where ip2c.categories_id = '0' and ip.language = '" . (int)$languages_id . "' and ip.visible = '1' order by ip.v_order, ip.question"); if ((tep_db_num_rows($faq_categories_query) > 0) || (tep_db_num_rows($faq_query) > 0)) { ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => '<font color="' . $font_color . '">' . BOX_HEADING_FAQ . '</font>'); new info2BoxHeading($info_box_contents, false, false); $faq_string = '<ul style="margin-left:13px; margin-top:12px;">'; while ($faq_categories = tep_db_fetch_array($faq_categories_query)) { $id_string = 'cID=' . $faq_categories['categories_id']; $faq_string .= '<li><a href="' . tep_href_link(FILENAME_FAQ, $id_string) . '">' . $faq_categories['categories_name'] . '</a></li>'; } while ($faq = tep_db_fetch_array($faq_query)) { $id_string = 'fID=' . $faq['faq_id']; $faq_string .= '<li><a href="' . tep_href_link(FILENAME_FAQ, $id_string) . '">' . $faq['question'] . '</a></li>'; } $info_box_contents = array(); $info_box_contents[] = array('text' => $faq_string); new info2Box($info_box_contents); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => tep_draw_separator('pixel_trans.gif', '100%', '1') ); // new infoboxFooter($info_box_contents, true, true); ?> </td> </tr> <tr> <td width="100%"><img alt="" src="<? echo DIR_WS_TEMPLATES . TEMPLATE_NAME?>/images/spacer.gif" width="1" height="4"><br></td> </tr> <?php } ?> If anybody is able to help i will appreciate it alot thank you in advance Link to comment Share on other sites More sharing options...
yustis_83 Posted October 8, 2008 Author Share Posted October 8, 2008 No one can help with this ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.