<?php

include "../inc/sqlinf.php";
include "apple.inc";
include '../inc/auth.php';

$sql = "SELECT count(*) FROM CLIENTS";
$res = mysql_query($sql);
$row = mysql_fetch_row($res);
?>

<html>
<head>
<title>Paypal Information</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000">
<table width="100%" border="5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
  <tr> 
        
        <td> 
          <?PHP
$SQL = "SELECT * from CLIENTS WHERE ID = '$id'";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
include 'query.php';}
?>
          <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" bordercolor="#FFFFFF">
                <tr bgcolor="#000066"> 
                  <td width="100%" colspan="2"> <font color="#FFFFFF"><b>&raquo; Viewing 
                        : 
                        <?php echo $payer_email;?>
                        </b></font><font color="#000000"> </font></td>
                </tr>
                <tr> 
                  <td bgcolor="#EEEEEE" width="10%"> <br>
                  </td>
                  <td bgcolor="#F9F9F9" width="90%"> <br>
                        <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#FFFFFF" align="center" background="img/g.jpg" width="100%">
                          <tr bgcolor="#F9F9F9" valign="middle"> 
                                <td bgcolor="#F9F9F9">Email</td>
                                <td bgcolor="#F9F9F9"><font color="#000000"> <a href="mailto:<?php echo $payer_email;?>"> 
                                  <?php echo $payer_email;?>
                                  </a></font></td>
                          </tr>
                          <tr bgcolor="#FFFFFF" valign="middle"> 
                                <td>Username</td>
                                <td> 
                                  <?php echo $username;?>
                                </td>
                          </tr>
                          <tr bgcolor="#F9F9F9" valign="middle"> 
                                <td bgcolor="#F9F9F9">Password</td>
                                <td bgcolor="#F9F9F9"> 
                                  <?php echo $cpw;?>
                                </td>
                          </tr>
                          <tr bgcolor="#FFFFFF" valign="middle"> 
                                <td>Income Generated</td>
                                <td>$ 
                                  <?php echo $ig;?>
                                </td>
                          </tr>
                          <tr bgcolor="#F9F9F9" valign="middle"> 
                                <td bgcolor="#F9F9F9">Signup Date</td>
                                <td bgcolor="#F9F9F9"><font color="#000000"> 
                                  <?php echo $signupdate;?>
                                  </font></td>
                          </tr>
                          <tr bgcolor="#FFFFFF" valign="middle"> 
                                <td>Last Payment</td>
                                <td> 
                                  <?php echo $lastpayment;?>
                                </td>
                          </tr>
                          <tr bgcolor="#F9F9F9" valign="middle"> 
                                <td bgcolor="#F9F9F9">Next Payment<font color="#F9F9F9">-</font></td>
                                <td bgcolor="#F9F9F9"> 
                                  <?php echo $nextpayment;?>
                                </td>
                          </tr>
                          <tr bgcolor="#FFFFFF" valign="middle"> 
                                <td>Status</td>
                                <td> 
                                  <?php echo $status;?>
                                </td>
                          </tr>
                          <tr bgcolor="#F9F9F9" valign="middle"> 
                                <td bgcolor="#F9F9F9">Domain</td>
                                <td bgcolor="#F9F9F9"> 
                                  <?php echo $dn;?>
                                </td>
                          </tr>
                          <tr bgcolor="#FFFFFF" valign="middle"> 
                                <td>Package</td>
                                <td> 
                                  <?php echo $paackage;?>
                                </td>
                          </tr>
                        </table>
                    <div align="center"><br>
                          <a href="userlist.php" target="main">Back </a></div>
                  </td>
                </tr>
          </table>
        </td>
  </tr>
</table>
</body>
</html>


