return '#303030; color: #aaaaaa'; } } if (count($offer_list['item']) > 0 or count($offer_list['item2']) > 0 or count($offer_list['container']) > 0 or count($offer_list['addon']) > 0) { $main_content .= '<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=4><TR><TD BGCOLOR="' . $config['site']['vdarkborder'] . '" ALIGN=left CLASS=white colspan="2"><B>Choose a categorie: </B>'; if (count($offer_list['item']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=item" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('item') . ';">ITEMS</a>'; } if (count($offer_list['item2']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=item2" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('item2') . ';">Addon items</a>'; } if (count($offer_list['addon']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=addon" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('addon') . ';">Addons</a>'; } if (count($offer_list['container']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=container" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('container') . ';">CONTAINERS</a>'; } $main_content .= '</TD></TR></TD></TR></table><table BORDER=0 CELLPaDDING="4" CELLSPaCING="1" style="width:100%;font-weight:bold;text-align:center;"><tr style="background:#505050;"><td colspan="3" style="height:px;"></td></tr></table>'; } //show list of items offers if (count($offer_list['item']) > 0 and $action == 'item') { $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="100%"><tr bgcolor="' . $config['site']['vdarkborder'] . '"><td width="8%" align="center" class="white"><b>Points</b></td><td width="9%" align="center" class="white"><b>Picture</b></td><td width="350" align="left" class="white"><b>Description</b></td><td width="250" align="center" class="white"><b>Select product</b></td></tr>'; foreach ($offer_list['item'] as $item) { if (!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="' . $bgcolor . '"><td align="center"><b>' . $item['points'] . '</b></td><td align="center"><img src="' . $config['site']['item_images_url'] . $item['item_id'] . $config['site']['item_images_extension'] . '"></td><td><b>' . htmlspecialchars($item['name']) . '</b> (' . $item['points'] . ' points)<br />' . htmlspecialchars($item['description']) . '</td><td align="center">'; if (!$logged) {
return '#303030; color: #aaaaaa'; } } if (count($offer_list['item']) > 0 or count($offer_list['mount']) > 0 or count($offer_list['addon']) > 0 or count($offer_list['container']) > 0) { $main_content .= '<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=4><TR><TD BGCOLOR="' . $config['site']['vdarkborder'] . '" ALIGN=left CLASS=white colspan="2"><B>Choose a categorie: </B>'; if (count($offer_list['container']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=container" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('container') . ';">Premium Account<img src="images/items/7.gif"/></a>'; } if (count($offer_list['item']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=item" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('item') . ';">Items<img src="images/items/2160.gif"/></a>'; } if (count($offer_list['mount']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=mount" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('mount') . ';">Mounts<img src="images/mount.gif"/></a>'; } if (count($offer_list['addon']) > 0) { $main_content .= '<a href="?subtopic=shopsystem&action=addon" style="padding: 5px 5px 7px 5px; margin: 5px 1px 0px 1px; background-color: ' . selectcolor('addon') . ';">Addons<img src="images/addon.gif"/></a>'; } $main_content .= '</TD></TR></TD></TR></table><table BORDER=0 CELLPaDDING="4" CELLSPaCING="1" style="width:100%;font-weight:bold;text-align:center;"><tr style="background:#505050;"><td colspan="3" style="height:px;"></td></tr></table>'; } //show list of items offers if (count($offer_list['item']) > 0 and $action == 'item') { $main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="100%"><tr bgcolor="' . $config['site']['vdarkborder'] . '"><td width="8%" align="center" class="white"><b>Points</b></td><td width="9%" align="center" class="white"><b>Picture</b></td><td width="350" align="left" class="white"><b>Description</b></td><td width="250" align="center" class="white"><b>Select product</b></td></tr>'; foreach ($offer_list['item'] as $item) { if (!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= '<tr bgcolor="' . $bgcolor . '"><td align="center"><b>' . $item['points'] . '</b></td><td align="center"><img src="' . $config['site']['item_images_url'] . $item['item_id'] . $config['site']['item_images_extension'] . '"></td><td><b>' . htmlspecialchars($item['name']) . '</b> (' . $item['points'] . ' points)<br />' . htmlspecialchars($item['description']) . '</td><td align="center">'; if (!$logged) {
?> " style="width: 100%;"> <?php $sql_func2 = "SELECT `at_club`, `at_name` FROM `album_type` WHERE `at_number` ='" . $row_result_func1['album_type_number'] . "'"; $result_func2 = mysql_query($sql_func2); $row_result_func2 = mysql_fetch_assoc($result_func2); ?> <h3 style="background: <?php selectcolor($at_number); ?> "><?php echo $row_result_func2['at_name']; ?> </h3> <span style="background: <?php selectcolor($at_number); ?> "><?php echo $row_result_func2['at_club']; ?> </span> </div> </a> </li> <?php } ?> <?php } ?> </ul>