<?PHP
# echo date("m/d/Y", 1059950515); die;
include "../inc/var.php";
include "../inc/connect.php";
include $server_inc."/whm_functions.php";
include $server_inc."/client_functions.php";
include $server_inc."/login_functions.php";

include $server_admin_inc."/header.php";

$xct0=mysql_fetch_row(mysql_query("select count(*) from authnet_batch where batch_status='0'"));
$xct1=mysql_fetch_row(mysql_query("select count(*) from authnet_batch, hosting_order where batch_status='1' and authnet_batch.oid=hosting_order.oid order by authnet_batch.bid asc"));
$xct2=mysql_fetch_row(mysql_query("select count(*) from authnet_batch where batch_status='2'"));
$xct3=mysql_fetch_row(mysql_query("select count(*) from authnet_batch where batch_status='3'"));

echo("
	<table width='725' cellpadding='0' cellspacing='0' border='0'>
		<tr>
			<td width='1%' align='left' valign='top'><img src='".$http_images."/space.gif' width='15' height='375'></td>
			<td width='99%' align='left' valign='top'>
			<table width='100%' cellpadding='4' cellspacing='1' border='0'>
				<tr>
					<td align='left' valign='top'><img src='".$http_images."/menu_arrow.gif'><b>Manage Authorize.net Batch</b></td>
				</tr>
				<tr>
					<td align='left' valign='top'><img src='".$http_images."/error_arrow.gif'><a href='".$http_admin."/view_batch.php?sid=".$sid."&c=0'>View Open Batch</a> (<a href='".$http_admin."/view_batch.php?sid=".$sid."&c=0'>".$xct0[0]."</a>)</td>
				</tr>
				<tr>
					<td align='left' valign='top'><img src='".$http_images."/error_arrow.gif'><a href='".$http_admin."/view_batch.php?sid=".$sid."&c=2'>View Declined Batch</a> (<a href='".$http_admin."/view_batch.php?sid=".$sid."&c=2'>".$xct2[0]."</a>)</td>
				</tr>
				<tr>
					<td align='left' valign='top'><img src='".$http_images."/error_arrow.gif'><a href='".$http_admin."/view_batch.php?sid=".$sid."&c=3'>View Error Batch</a> (<a href='".$http_admin."/view_batch.php?sid=".$sid."&c=3'>".$xct3[0]."</a>)</td>
				</tr>
				<tr>
					<td align='left' valign='top'><img src='".$http_images."/error_arrow.gif'><a href='".$http_admin."/view_batch.php?sid=".$sid."&c=1'>Completed Batch History</a> (<a href='".$http_admin."/view_batch.php?sid=".$sid."&c=1'>".$xct1[0]."</a>)</td>
				</tr>
				<!--- <tr>
					<td align='left' valign='top'><img src='".$http_images."/error_arrow.gif'><a href='".$http_admin."/master_batch.php?sid=".$sid."&mb=5'>Create Batch Manually</a></td>
				</tr> --->
				<tr>
					<td align='left' valign='top'><img src='".$http_images."/space.gif' width='15' height='10'></td>
				</tr>
				<tr>
					<td align='left' valign='top'></td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
	");

include $server_admin_inc."/footer.php";
mysql_close($dblink);
?>