<? ob_start();
session_start();
require_once("../dbconnect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php include_once("title.php");?>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />

<script language="javascript" src="ajaxvalid.js"></script>

<style type="text/css">
<!--
.style2 {
	color: #21262A;
	font-size: 12px;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><? require_once("header.php"); ?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="30" class="cate_pro">Payment Modules</td>
                    <td>&nbsp;</td>
                    <td class="index_text" align="right">&nbsp;</td>
                    <td width="20">&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="72%" valign="top" style="padding-right:1px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="35" colspan="5"><table border="0" cellpadding="2" cellspacing="0" width="100%">
                          <tr class="dataTableHeadingRow">
                            <td width="17" align="left" bgcolor="#D7D6CC" class="dataTableHeadingContent">&nbsp;</td>
                            <td width="249" align="left" bgcolor="#D7D6CC" class="dataTableHeadingContent">Modules</td>
                            <td width="46" align="left" bgcolor="#D7D6CC" class="dataTableHeadingContent">&nbsp;</td>
                            <td width="65" align="left" bgcolor="#D7D6CC" class="dataTableHeadingContent">&nbsp;</td>
                            <td width="175" align="left" bgcolor="#D7D6CC" class="dataTableHeadingContent">Paypal Id </td>
                            <td width="23" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">&nbsp;</td>
                            <td width="100" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Action&nbsp;</td>
                          </tr>
                          <? 
			$sql="Select * from admin"; 
			$sqlexe=mysql_query($sql);
										
			while($admin=mysql_fetch_array($sqlexe))
		      {
					 ?>
						  
                      
                          <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
                            <td width="17" height="30" align="ledt" class="dataTableContent" >&nbsp;</td>
                            <td align="left" class="dataTableContent">
						Paypal</td>
                            <td align="left" class="dataTableContent">&nbsp;</td>
                            <td class="dataTableContent" align="left">&nbsp;</td>
                            <td class="dataTableContent" align="left"><?php echo $admin['paypalid'] ?>&nbsp;</td>
                            <td class="dataTableContent" align="center">&nbsp;</td>
                            <td class="dataTableContent" align="center">	
                <a href="modules.php?edit=edit&admid=<? echo $admin['admin_id']; ?>">
		<img src="images/icon_edit.gif" alt="Edit" title="Edit" border="0" style="padding-left:5px; padding-right:5px;" />		</a> 
		<a href="adminsettings.php?reset=reset&adminid=<? echo $admin['admin_id']; ?>" ></a></td>
                          </tr>
                         
                          <? } ?>
                        </table></td>
                      </tr>
                      <tr>
                        <td width="22%" height="35">&nbsp;</td>
                        <td width="16%" align="center"></td>
                        <td width="16%" align="center"></td>
                        <td width="23%">&nbsp;</td>
                        <td width="23%">&nbsp;</td>
                      </tr>
                    </table></td>
                    <td width="28%" valign="top">
                    
                    <? if($_GET['edit']=="edit")
					{
		$sql1="Select * from admin where admin_id=".$_GET['admid']; 
			$sqlexe1=mysql_query($sql1);
			$admin1=mysql_fetch_array($sqlexe1);
						
						?>
                       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
             <form method="post" name="frm" action="custmerinsert.php?action=pay" enctype="multipart/form-data" onsubmit="return paypal(this);">
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Edit</td>
                        </tr>
                        <tr>
                          <td align="center" style="padding-left:5px;"><strong>Please make any necessary changes</strong></td>
                        </tr>
                        <tr>
                          <td align="left"><strong><span id="errorMessage11"></span></strong>&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="20" align="left">&nbsp;</td>
                        </tr>
						  <tr>
                          <td align="left">Paypal Id </td>
                        </tr>
						
                        <tr>
                          <td align="left">
 <input name="paypalid" type="text" class="admin" id="paypalid" value="<? echo $admin1['paypalid'];?>" size="22" />
 <input type="hidden" name="admid" value="<? echo $admin1['admin_id']; ?>" />                      </td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left" style="padding-left:20px;">
                          <input name="image" type="image" src="images/button_save.gif" width="65" height="22" />
                         	<a href="adminsettings.php"><img src="images/button_cancel.gif" border="o"/></a>                         </td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table>
                    <? } else if($_GET['up']=="up")
					{?>
                    
                    
                      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
             <form method="post" name="frm" action="custmerinsert.php?action=adminsettings" enctype="multipart/form-data" onsubmit="return validate(this);">
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent"><span class="style2">successfully</span></td>
                        </tr>
                        <tr>
                          <td align="center" style="padding-left:5px;">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="20" align="center"><span class="style2"><img src="images/tick.gif" />successfully modified.</span>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left" style="padding-left:20px;">&nbsp;</td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table>
                    <? } 
		?></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><? require_once("footer.php"); ?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
