Estadísticas de tu Anuncio


ID Anuncio:
Contraseña:





0) { $rs=mysql_query("select * from sponsorads where ID=$id and Username='$pass' and approved=1"); if(mysql_num_rows($rs)>0) { $arr=mysql_fetch_array($rs); $sqlb1 = "select * from sponsorads where ((adtype=1 and remaining>0) or (adtype=2 and EDate > '$lastday')) and approved=1 and ID=$arr[0]"; $rs1 = mysql_query($sqlb1); echo "

Estadísticas

"; echo ""; echo ""; echo ""; if($arr[10]==1) { echo ""; echo ""; echo ""; echo ""; echo "
Estado de la Campaña:"; if(mysql_num_rows($rs1)>0) { echo "Activo"; } else { echo "Expirado"; } echo "
Tu Anuncio:$arr[2]
$arr[3]
URL:$arr[4]
Impresiones Compradas:$arr[5]
Impresiones Realizadas:".($arr[5]-$arr[6])."
Impressions Restantes:$arr[6]
Clicks recibidos:$arr[7]
Fecha de la compra:$arr[9]
"; } else { $pdate=date_compare($arr[9],$arr[14]); $pdate=(int)$pdate; if($pdate>364) { $num=$pdate/365; if(is_int($num)==1) { $ptype1="Year(s)"; } else { $num=$pdate/30; if(is_int($num)==1) { $ptype1="Month(s)"; } else { $ptype1="Day(s)"; $num=$pdate; } } } elseif($pdate>29) { $num=$pdate/30; if(is_int($num)==1) { $ptype1="Month(s)"; } else { $ptype1="Day(s)"; $num=$pdate; } } else { $ptype1="Day(s)"; $num=$pdate; } $pdate=$num." $ptype1"; echo "Pack:$pdate Unlimted Impressions Package"; echo "Fecha de compra:$arr[9]"; echo "Fecha de expiración:$arr[14]"; echo "Impresiones:$arr[6]"; echo "Clicks:$arr[7]

"; } echo "
 
 
 
 "; } else { echo "


Tu anuncio está en espera de aprobación.



"; } } else { echo "


El ID del anuncio o contraseña no son válidos


Volver atrás


"; } } function date_compare ($arg1="",$arg2="") { global $a; //number of days global $b; //number of hours global $c; //number of minutes if (empty($arg1) or empty($arg1)) { return FALSE; } // calculate timestamp for $arg1 @list($year,$month,$day,$hour,$min,$sec) = @split("[[:space:]:-]",$arg1); $timectamp_arg1 = @mktime($hour,$min,$sec,$day,$month,$year); // calculate timestamp for $arg2 @list($year,$month,$day,$hour,$min,$sec) = @split("[[:space:]:-]",$arg2); $timectamp_arg2 = @mktime($hour,$min,$sec,$day,$month,$year); // calculate difference in seconds $diff = $timectamp_arg2-$timectamp_arg1; if ($diff < 0) { $diff = -$diff; } // calculate number of days $a = @floor($diff/60/60/24); $diff = $diff - ($a*60*60*24); $ret=$a; // $diff contains remainder in seconds return $ret; } include "footer.php"; ?>