コード例 #1
0
	<tr>
	<td height="22" align="left" valign="top" width="1%" background="images/menucenterbg.gif" nowrap><img border="0" src="images/menutopleft.gif" width="8" height="22"></td>
	      <td height="22" align="center" valign="middle" width="50%" background="images/menucenterbg.gif" ><span class="whitehd">Future Invoice&nbsp;Details</span></td>
	<td height="22" align="left" valign="top" width="3%" nowrap><img border="0" src="images/menutopcurve.gif" width="49" height="22"></td>
	<td height="22" align="left" valign="top" width="45%" background="images/menutoprightbg.gif" ><img alt="" src="images/spacer.gif" width="1" height="1"></td>
	<td height="22" align="right" valign="top" background="images/menutoprightbg.gif"  width="1%" nowrap><img border="0" src="images/menuright.gif" width="10" height="22"></td>
	</tr>
	<tr>
	<td class="lgnbd" colspan="5">
<?php 
$sessionlogin = isset($HTTP_SESSION_VARS["sessionlogin"]) ? $HTTP_SESSION_VARS["sessionlogin"] : "";
$imonth = isset($HTTP_GET_VARS["futmonth"]) ? $HTTP_GET_VARS["futmonth"] : "";
$iyear = isset($HTTP_GET_VARS["futyear"]) ? $HTTP_GET_VARS["futyear"] : "";
$iday = isset($HTTP_GET_VARS["futday"]) ? $HTTP_GET_VARS["futday"] : "";
print "<table width='100%' border='0' align='center' cellspacing='0' cellpadding='0'>";
func_futureamount($cnn_cs, $iyear, $imonth, $iday, $sessionlogin);
?>

<?php 
include "includes/footer.php";
function func_futureamount($cnn_cs, $str_year_from, $str_month_from, $iDisplayNumber, $sessionlogin)
{
    $netamount = 0;
    $qry_bank = "select * from cs_bank where bank_paybackday !=-1 ";
    if (!($rst_bank = mysql_query($qry_bank, $cnn_cs))) {
        dieLog(mysql_errno() . ": " . mysql_error() . "<BR>");
    } else {
        $str_year_from . '-' . $str_month_from . '-' . $iDisplayNumber . "<br>";
        $num = mysql_num_rows($rst_bank);
        for ($iloop = 1; $iloop <= $num; $iloop++) {
            $rst_bankday = mysql_fetch_array($rst_bank);
コード例 #2
0
?>
/images/spacer.gif" width="1" height="1"></td>
	<td height="22" align="right" valign="top" background="../images/menutoprightbg.gif"  width="1%" nowrap><img border="0" SRC="<?php 
echo $tmpl_dir;
?>
/images/menuright.gif" width="10" height="22"></td>
	</tr>
	<tr>
	<td class="lgnbd" colspan="5">
<?php 
$admin = isset($HTTP_SESSION_VARS["sessionAdmin"]) ? $HTTP_SESSION_VARS["sessionAdmin"] : "";
$imonth = isset($HTTP_GET_VARS["futmonth"]) ? $HTTP_GET_VARS["futmonth"] : "";
$iyear = isset($HTTP_GET_VARS["futyear"]) ? $HTTP_GET_VARS["futyear"] : "";
$iday = isset($HTTP_GET_VARS["futday"]) ? $HTTP_GET_VARS["futday"] : "";
print "<table width='100%' border='0' align='center' cellspacing='0' cellpadding='0'>";
func_futureamount($cnn_cs, $iyear, $imonth, $iday);
?>

<?php 
include "includes/footer.php";
function func_futureamount($cnn_cs, $str_year_from, $str_month_from, $iDisplayNumber)
{
    $netamount = 0;
    $qry_bank = "select * from cs_bank where bank_paybackday !=-1 ";
    if (!($rst_bank = mysql_query($qry_bank, $cnn_cs))) {
        dieLog(mysql_errno() . ": " . mysql_error() . "<BR>");
    } else {
        $str_year_from . '-' . $str_month_from . '-' . $iDisplayNumber . "<br>";
        $num = mysql_num_rows($rst_bank);
        for ($iloop = 1; $iloop <= $num; $iloop++) {
            $rst_bankday = mysql_fetch_array($rst_bank);