<?php

if(!isset($_GET['screen_check']))
{
 /* This code will be executed if screen resolution has not been detected.*/
 echo "<script language='JavaScript'>
 <!-- 
document.location=\"$PHP_SELF?screen_check=done&Width=\"+screen.width+\"&Height=\"+screen.height;
 //-->
 </script>";
}


$screenWidth = $_GET['Width'];
$screenHeight = $_GET['Height'];
//echo $screenWidth;
//echo "<br>";
//echo $screenHeight;
//echo "<br>";


if($screenWidth > 1000){
$leftPad = 75; //$screenWidth/2-400;
$rightPad = 0; //$screenWidth/2-400;
}
else{
$leftPad = 0; 
$rightPad = 0;
}

echo"<style> .listView {width: 100%; max-width: 800px; text-align: left; padding-right: ".$rightPad."px; padding-left: ".$leftPad."px; padding-top: 15px; padding-bottom: 0px; margin: auto; }</style>";