Filter:   InfoImg
download list.php
Language: PHP
LOC: 68
Project Info
Total ISP(total-isp)
Server: SourceForge
Type: cvs
...orge\t\total‑isp\total‑isp\
   abn.php
   addnew.php
   addnote.php
   addpay.php
   addsub.php
   addtime.php
   aliasadd.php
   answer.php
   approvelink.php
   ask.php
   autobill.php
   autobillpost.php
   backuplink.php
   batchtax.php
   Blocks-check.php
   Blocks-oldmail.php
   buildmenu.php
   business-check.php
   buytime.php
   cachemgr.php
   callanalysis.php
   calls.php
   callweekall.php
   ccemail.php
   changes.php
   checkmail.php
   cli.php
   clicheck.php
   config.php
   createwebdir.php
   credit.php
   creditpost.php
   cvimage.php
   dbspec.sql
   dealer.php
   dealeredit.php
   dealereditsave.php
   dealermenu.php
   dealerspecial-check.php
   dealerspecial.php
   dealersummary.php
   dig.php
   dnstest.php
   domainadd.php
   dschurn.php
   dsused.php
   edit.php
   editadd.php
   emailip.php
   expire.php
   extraadd.php
   faq.php
   firstpayments.php
   fixedip.dat
   fixedip.ph
   fixedip.php
   frames.php
   frconten.php
   frmain.php
   getcall.php
   gstinc.inc.php
   gsttest.php
   hms.inc.php
   index.php
   invoicepost.php
   invoices.php
   IPAD-check.php
   ipadmail.dat
   jump.php
   kick.php
   kickall.php
   killed.php
   lastaccess.php
   lastcall.php
   lastpasswords.php
   list.php
   listpay.php
   listpurchase-cash.php
   listpurchase-cheque.php
   listpurchase-code.php
   listpurchase-dupes.php
   listpurchase-exact.php
   listpurchase-group.php
   listpurchase-summary.php
   listpurchase-supplier.php
   ...purchase-unapproved.php
   listpurchase.php
   lm.inc.php
   loginfail.php
   mail.php
   mailadd.php
   mailusr.php
   monthpurch.php
   mysql.inc.php
   names.php
   newcustomer.php
   nextcall.php
   nosubs.php
   orphans.php
   password.php
   payimage.php
   payment.php
   payreport.php
   payview.php
   pdf-daily-sum.php
   pdfprint.inc.php
   permanent-check.php
   phpinfo.php
   phptest.php
   ping.php
   purchase-delete.php
   purchaseedit.php
   purchaseindex.php
   purchasing.php
   qchar.php
   radiususers.php
   radtest.php
   reallysure.php
   recall.php
   redir.php
   report.php
   reseller-check.php
   resellview.php
   sampledata.sql
   searchfaq.php
   searchfaqres.php
   sendmail.php
   staff.php
   subedit.php
   subeditadd.php
   submituser.php
   subnames.php
   taxpdf.php
   testbatch.php
   testpdf-day.php
   testpost.php
   testtaxpdf.php
   testuser.php
   testwho.php
   thundermail.php
   tigris.php
   time1.inc.php
   timetest.php
   top.php
   unanswered.php
   unlimited-3mth-check.php
   unlimited-check.php
   unlimited-stats.php
   unlimitedpartition.php
   uploadmailhdr.php
   user.php
   viewnotes.php
   visp.inc.php
   webadd.php
   weblinks.php
   WebSite-check.php
   weeknotes.php
   weekuser.php
   who.php
   whoip.php
   whoverify.php

<?
include "./auth.inc.php";
include "mysql.inc.php";

?>
<HTML>
<HEAD>
<TITLE>List</TITLE>

<style>
<!-- 
A:link {text-decoration: none; color:#ffff66;}
A:visited {text-decoration: none; color:#ffff66;}
A:active {font-weight: bold;text-decoration: none; color:#ffff66;}
A:hover {font-weight: bold;text-decoration:underlined; color:#ffff66;}
A:text {text-decoration:none; color:#ffffff;}
-->
</style>
</head>
<body
bgcolor=#2b3155
text=#ffffff
link=#ffff66
vlink=#ff8866
alink=#ffffff
topmargin=20
leftmargin=40
marginheight=20
marginwidth=40>



<FONT SIZE=+1 FACE="arial">
<P><FONT SIZE="+2"><B>ACCOUNTS LISTING</B></FONT>
<BR>
<P>Number of Customers in Database (Last 30,90 days): <?
	$csql="SELECT count(CustomerID) FROM MasterAccounts";
	$result=mysql_query($csql);

	$row=mysql_fetch_array($result);

	$ccsql = "SELECT count(CustomerID) FROM MasterAccounts WHERE TO_DAYS(now()) - TO_DAYS(LastUse) < 30";
	$cres = mysql_query($ccsql);
	print mysql_error();
	$crow = mysql_fetch_array($cres);

	$ncsql = "SELECT count(CustomerID) FROM MasterAccounts WHERE TO_DAYS(now()) - TO_DAYS(LastUse) < 90";
        $ncres = mysql_query($ncsql);
        print mysql_error();
        $ncrow = mysql_fetch_array($ncres);

	echo $row[0];
	echo " (<B>$crow[0], $ncrow[0] </B>)<BR>";

$acsql="SELECT AccountTypeName FROM AccountTypes";
$result=mysql_query($acsql);



while($row=mysql_fetch_row($result)){
	$acountsql="SELECT Count(AccountID) FROM SubAccounts WHERE AccountType='$row[0]'";	
	$lacsql = "SELECT Count(AccountID) FROM SubAccounts, MasterAccounts WHERE AccountType='$row[0]' AND TO_DAYS(now()) - TO_DAYS(LastUse) < 30 AND SubAccounts.CustomerID=MasterAccounts.CustomerID";

	$ares=mysql_query($acountsql);

	if (mysql_error())
		print "1: ".mysql_error();

	$lares=mysql_query($lacsql);

	if (mysql_error())
                print "2: ".mysql_error();

	$value=mysql_result($ares,0);
	$vall=mysql_result($lares,0);

	echo "<P> ";
	if (file_exists("$row[0]-check.php"))
		print "<A HREF=\"$row[0]-check.php\">$row[0]</A>";
	else
		print $row[0];
	print ": $value (<B>$vall</B>)</P>";
}

?>

</font>

</BODY>
</HTML>