php manşet sistemi buldum güzel bunu asp ye cevirmek için ne yapmak gerek

<? 

$id = htmlspecialchars($_GET['id']); 
?>
<script type="text/javascript">
$(document).ready(function(){
	jQuery(".niceshot").css("opacity","0.7");
	});
</script>
<div class="mmanset">
<div class="mmansetler">
<?php
$i=0;

$haberal=@mysql_query("select * from haberler where  manset='evet' order by id desc limit 9");
while($hab=@mysql_fetch_array($haberal))
{
	$i++;
?>

	<div id="mmanset-<?php echo $i; ?>" class="mmansetresimler" <?php if($i==1){ ?>style="display:block;position:relative;"<?php } else {?>style="display:none;position:relative;"<? } ?> ><a href="haberler-<?=$hab[id];?>-<?=seoyap($hab[baslik]);?>.html"> <img src="images_up/<?=$hab[resim];?>" width="658"  /> </a>
    <div class="niceshot" style="position:absolute;bottom:0px;width:538px;height:25px;color:white;font-weight:bold;padding:10px;background-color:red;margin-bottom:4px;margin-right:4px;"></div>
   <div style="position:absolute;bottom:0px;width:100%;height:30px;color:white;font-weight:bold;padding:10px;"><h1><?=$hab[baslik]?></h1></div>
    </div>
    
        <?php
	}
	?>
    
    <div class="mmansetkresimler">
   
    
    	<?php
	$i=0;
	$haberala=@mysql_query("select * from haberler where  manset='evet' order by id desc limit 9");
	while($haba=@mysql_fetch_array($haberala))
	{
		$i++;
	?>
    	<a href="haberler-<?=$haba[id];?>-<?=seoyap($haba[baslik]);?>.html" onmouseover="clearFuto();" onmouseout="setFuto()" onmousemove="displayDiv(<?php echo $i; ?>)"><div id="mmansetk-<?php echo $i; ?>" class="<?php if($i==1){echo 'akt'; }else{ echo 'pas'; }?>"><img src="images_up/<?=$haba[resim];?>"  /> </div></a>
<?php
}
?>
    </div>
</div>