⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sz_d.php

📁 个人理财 一个很好的个人理财PHP源码程序。
💻 PHP
字号:
<? include "my_l.php";?>
<? include "hanshui.php";?>
<?
#⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒⌒#
 ########################################################## 
###  WEBHNMY 梦缘个人理财系统1.0                         ###
##   主   页:http://www.webhnmy.com                      ##
##   邮   箱:liudeshengaa@163.com                        ##
##   Q     Q:80507419                                    ##
##   联系 人:追风青年                                    ##
##   手   机:13539227807                                 ##
##   本站服务:本站免费提供网络源程序、电脑基础教程、广告招##
###           租、并设有讨论区。                         ###             
 ########################################################## 
?>
<? include "img/coon.php";?>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>梦缘山庄-管理页面</title>
<style type=text/css>
body  {
	background:#799AE1;
	margin:0px;
	font:normal 12px 宋体;
	SCROLLBAR-FACE-COLOR: #FF9966;
	SCROLLBAR-HIGHLIGHT-COLOR: #FF9966;
	SCROLLBAR-SHADOW-COLOR: #FF9966;
	SCROLLBAR-DARKSHADOW-COLOR: #FF9966;
	SCROLLBAR-3DLIGHT-COLOR: #FF9966;
	SCROLLBAR-ARROW-COLOR: #FFFFFF;
	SCROLLBAR-TRACK-COLOR: #FFCC66;
	background-color: #FFEBE1;
}
table  { border:0px; }
td  { font:normal 12px 宋体; }
img  { vertical-align:bottom; border:0px; }
a  { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover  { color:#428EFF;text-decoration:underline; }
.sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#FFE6BF; }
.menu_title  { }
.menu_title span  { position:relative; top:2px; left:8px; color:#FF6600; font-weight:bold; }
.menu_title2  { }
.menu_title2 span  { position:relative; top:2px; left:8px; color:#FFCC00; font-weight:bold; }
body,td,th {
	font-family: ;
}
.style3 {color: #FF0000; font-weight: bold; }
.style6 {
	color: #FFFFFF;
	font-weight: bold;
}
</style>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td height="580" valign="top" bgcolor="#FFEBE1"><div align="center">
      <table width="97%" height="119"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FF0000">
        <tr>
          <td height="117" valign="top" bgcolor="#FFEBE1"><table width="100%"  border="0" cellpadding="0" cellspacing="1">
              <tr>
                <td height="25" bgcolor="#FFCC00"><div align="center" class="style3"> 按月统计 </div></td>
              </tr>
            </table>
              <table width="100%"  border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="25" bgcolor="#CCCC66"><div align="left"><a href="sz_d.php?ye=01">一月份</a> <a href="sz_d.php?ye=02">二月份</a> <a href="sz_d.php?ye=03">三月份</a> <a href="sz_d.php?ye=04">四月份</a> <a href="sz_d.php?ye=05">五月份</a> <a href="sz_d.php?ye=06">六月份</a> <a href="sz_d.php?ye=07">七月份</a> <a href="sz_d.php?ye=08">八月份</a> <a href="sz_d.php?ye=09">九月份</a> <a href="sz_d.php?ye=10">十月份</a> <a href="sz_d.php?ye=11">十一月份</a> <a href="sz_d.php?ye=12">十二月份</a></div></td>
                </tr>
                <tr>
                  <td height="20" bgcolor="#FF6600"><div align="center"><span class="style6">默认显示为当前月份</span></div></td>
                </tr>
              </table>
              <table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FF6600">
	<tr valign="bottom" bgcolor="#FFFF20">
      <td  width="153" height="25" valign="middle"><div align="center">用户名</div></td>
      <td  width="153" height="25" valign="middle"><div align="center">支去</div></td>
      <td  width="153" height="25" valign="middle"><div align="center">收入</div></td>
      <td  width="201" height="25" valign="middle"><div align="center">余额</div></td>
      <td width="293" height="25" valign="middle"><div align="center"></div>        
        <div align="center">日期</div></td>
      </tr>
              </table>
<table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
  <tr>
    <td height="1"></td>
  </tr>
</table>

<?
$user=($HTTP_SESSION_VARS["session_userr"]);
$ye=@$HTTP_GET_VARS["ye"];
if($ye=="") $ye=date("m");
$limit=31;
$zca=0;
$sya=0;
$dja=0;
$start=@$HTTP_GET_VARS["start"];
if(empty($start)) $start=0; 
$result=mysql_query("select * from monthly where user = '$user' and ye = '$ye'"); 
$num_max=mysql_numrows($result); 
$result=mysql_query("select * from monthly where user = '$user' and ye = '$ye' order by id  DESC limit $start,$limit"); 
$num=mysql_numrows($result); 
if (!empty($num)) { 
for ($i=0;$i<$num;$i++) {
$id=mysql_result($result,$i,"id"); 
$zc=mysql_result($result,$i,"zc"); 
$sy=mysql_result($result,$i,"sy"); 
$dj=mysql_result($result,$i,"dj");
$mydata=mysql_result($result,$i,"mydata");
$user=mysql_result($result,$i,"user");
if(($i%2)==0) { $red="#FFFFE1"; } else { $red="#CCFFCC"; }
$sya=($sya+$sy);
$zca=($zca+$zc);
$dja=($dja+$dj);
echo <<<EOD
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FF6600">
    <tr valign="bottom" bgcolor="$red">
	  <td  width="153" height="25" valign="middle"><div align="center">$user</div></td>
      <td  width="153" height="25" valign="middle"><div align="center">$zc/元</div></td>
      <td  width="153" height="25" valign="middle"><div align="center">$sy/元</div></td>
      <td  width="201" height="25" valign="middle"><div align="center">$dj/元</div></td>
      <td width="293" height="25" valign="middle"><div align="center"></div>        
      <div align="center">$mydata</div></td>
    </tr>
</table>
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="1" background="img/xd1.gif"></td>
  </tr>
</table>
EOD;
}

}
?>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FF9900">

  <tr>
      <td height="22" bgcolor="#FFCC99">
        <div align="left"><a href="sz_d.php">&lt;&lt;</a>
          <? 
$prve=$start-$limit; 
if ($prve>=0) { 
echo "<a href=sz_d.php?start=$prve>上一页</a>"; 
echo "   ";

} 

//设置向后翻页的跳转 
$next=$start+$limit; 
if ($next<$num_max) { 
echo "<a href=sz_d.php?start=$next>下一页</a>"; 
} 
			?>
                                                   共<font color=red><?php echo "$num_max" ?></font>条记录      </div></td>
    </tr>
  <tr>
    <td height="22" bgcolor="#CCCC66"><div align="center">本月共支出<font color=red><? echo "$zca"; ?></font>/元  收入<font color=red><? echo "$sya"; ?></font>/元   
      <? if($dja<0) { $yyy="欠帐"; }  else { $yyy="余额"; } ?> 
      <? echo "$yyy";?><font color=red><? echo "$dja"; ?></font>/元 </div></td>
  </tr>

  </table>            

            </td>
        </tr>
      </table>
      <br>
      </div>
      <? include "yj.php";?></td>
  </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -