Untitled

 avatar
unknown
php
2 years ago
2.1 kB
4
Indexable
		//show list of cosmetics offers
		if(($action == 'outfits' || $action == 'mounts' || $action == 'wings' || $action == 'auras' || $action == 'shaders') && $offer_list[$action])
		{
			$main_content .= '<table border="0" cellpadding="4" cellspacing="1" width="94%"><tr bgcolor="'.$config['site']['newborder'].'"><td width="9%" align="center" class="white"><b>Picture</b></td><td width="350" align="left" class="white"><b>Description</b></td><td width="100" align="center" class="white"><b>Select product</b></td></tr>';
			foreach($offer_list[$action] as $offerType)
			{
				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">';

				if ($action == 'outfits')
					$main_content.= '<img src="' . $offerType['images_path'] . $offerType['item_id'] . $offerType['images_extension'] . '"><img src="' . $offerType['images_path'] . $offerType['item_count'] . $offerType['images_extension'] . '">';
				else
					$main_content.= '<img src="' . $offerType['images_path'] . $offerType['id'] . $offerType['images_extension'] . '">'; // images

				$main_content .= '</td><td><b>'.htmlspecialchars($offerType['name']).'</b> ('.$offerType['points'].' points)<br />'.htmlspecialchars($offerType['description']).'</td><td align="center">';
				if(!$logged)
				{
					$main_content .= '<a href="?subtopic=accountmanagement"><b>Login to buy</b></a>';
				}
				else
				{
					$main_content .= '<form action="?subtopic=shopsystem&action=select_player" method="POST" name="itemform_'.$offerType['id'].'"><input type="hidden" name="buy_id" value="'.$offerType['id'].'"><div class="navibutton"><a href="" onClick="itemform_'.$offerType['id'].'.submit();return false;"><form><input type="button" style="width: 130px;border:0;border-radius: 5px;margin-top: 5px;background-color: #665D1E	;color: #fff;cursor: pointer;font-size: 12px;padding: 7px;" value="Purchase Now!"></a></div></form>';
				}
				$main_content .= '</td></tr>';
			}
			$main_content .= '</table>';
		}
Editor is loading...