<?PHP
$_OPTIMIZATION["title"] = "Аккаунт - Партнерская программа";
$user_id = $_SESSION["user_id"];
$db->Query("SELECT COUNT(*) FROM db_users_a WHERE referer_id = '$user_id'");
$refs = $db->FetchRow();
?>  	
<td valign="top"><div class="r_block">
<h1>Рекламные материалы</h1>
						
						
<style>
.block {
background: #543C29;
border-radius: 0.2em;
font-size: 1.125rem;
position: relative;
width: 85%;
margin: 20px 0px 0px 220px;
border: 1px solid #a57b31;
margin-left: 0px;
}

.block_name {
background: linear-gradient(to top, #543C29 0%, #2F1C06 100%) repeat scroll 0% 0% transparent;
background: -webkit-linear-gradient(top, #543C29 0%, #2F1C06 100%);
background: -moz-linear-gradient(top, #543C29 0%, #2F1C06 100%);
background: -webkit-gradient(left top, left bottom, color-stop(0%, #543C29), color-stop(100%, #2F1C06));
background: -o-linear-gradient(top, #543C29 0%, #2F1C06 100%);
background: -ms-linear-gradient(top, #543C29 0%, #2F1C06 100%);

border-radius: 0.2em 0 0 0.2em;
font-size: 1.125rem;
position: relative;
padding: 5px 15px;
}

</style>

  
<center>
<img src="/img/piar-link.png" style="vertical-align:-2px; margin-right:5px;" />Ваша реф. ссылка <font color="#0AFF1A;">http://<? echo htmlspecialchars($_SERVER['HTTP_HOST']); ?>/?i=<?=$_SESSION["user_id"]; ?></font><br>
<div class="silver-bk">
<div class="block">
<div style="margin-bottom: 5px;">
<table width="100%" align="center">

<tbody>
<tr>
<td align="center" width="470px"><img style="width: 468px; height: 60px;border: 1px solid #DDDEDC;" src="/img/mine_468x60.gif"></td>
</tr>
<tr>
<td align="center" width="470px"><div style="border: 1px solid #DDDEDC;background: #F3D8B0;color: #03354E;">http://<?=$_SERVER['HTTP_HOST']; ?>/img/mine_468х60.gif</div></td>
</tr>

</tbody>

<tbody>
<tr>
<td align="center" width="470px"><img style="width: 468px; height: 60px;border: 1px solid #DDDEDC;" src="/img/mines_468x60.gif"></td>
</tr>
<tr>
<td align="center" width="470px"><div style="border: 1px solid #DDDEDC;background: #F3D8B0;color: #03354E;">http://<?=$_SERVER['HTTP_HOST']; ?>/img/mines_468х60.gif</div></td>
</tr>

</tbody>


<tbody>
<tr>
<td align="center" width="470px"><img style="width: 468px; height: 60px;border: 1px solid #DDDEDC;" src="/img/min_468x60.gif"></td>
</tr>
<tr>
<td align="center" width="470px"><div style="border: 1px solid #DDDEDC;background: #F3D8B0;color: #03354E;">http://<?=$_SERVER['HTTP_HOST']; ?>/img/min_468х60.gif</div></td>
</tr>

</tbody>

</table>
</div>


<div style="margin-bottom: 5px;">
<table width="100%" align="center" style="table-layout: fixed;">


<tr>
		<td style="width: 50px;" width="75">&nbsp;</td>
		<td align="center" width="200px"><img style="width: 200px; height: 300px;border: 1px solid #DDDEDC;" src="/img/mine_200x300.gif"></td>
	
		<td width="100%">&nbsp;</td>
	
		<td align="center" width="200px"><img style="width: 200px; height: 300px;border: 1px solid #DDDEDC;" src="/img/mines_200x300.gif"></td>
		<td style="width: 50px;" width="75px">&nbsp;</td>
</tr>

<tr>
		<td style="width: 50px;" width="75px">&nbsp;</td>
		<td style="word-wrap:break-word;" align="center" width="200px">URL:<div style="border: 1px solid #DDDEDC;background: #F3D8B0;color: #03354E;">http://<?=$_SERVER['HTTP_HOST']; ?>/img/mine_200х300.gif</div></td>
	
		<td width="100%">&nbsp;</td>
	
		<td style="word-wrap:break-word;"  align="center" width="200px">URL:<div style="border: 1px solid #DDDEDC;background: #F3D8B0;color: #03354E;">http://<?=$_SERVER['HTTP_HOST']; ?>/img/mines_200х300.gif</div></td>
		<td style="width: 50px;" width="75px">&nbsp;</td>
</tr>
</table>

<center>
<table width="100%" align="center" style="table-layout: fixed;">


<tr>
		
	
		<td width="100%">&nbsp;</td>
	
		<td align="center" width="200px"><img style="width: 200px; height: 300px;border: 1px solid #DDDEDC;" src="/img/min_200x300.gif"></td>
		<td style="width: 50px;" width="75px">&nbsp;</td>
</tr>

<tr>
		<td style="width: 50px;" width="75px">&nbsp;</td>
		<td style="word-wrap:break-word;" align="center" width="200px">URL:<div style="border: 1px solid #DDDEDC;background: #F3D8B0;color: #03354E;">http://<?=$_SERVER['HTTP_HOST']; ?>/img/min_200х300.gif</div></td>
	
		<td width="100%">&nbsp;</td>
	
		
</tr>
</table>
</center>
</div>