Example #1
0
function getYFFYYHHZ($xm_fl001, $xm_ssje, $xm_sdje)
{
    $xm_yjfy = ($xm_ssje - $xm_sdje) * 0.05;
    $xm_jbfy = getJBFY($xm_fl001, $xm_ssje);
    if ($xm_fl001 == 1) {
        if ($xm_yjfy != 0 && $xm_jbfy != 0) {
            $xm_yffy = ($xm_jbfy + $xm_yjfy) / 2;
        } else {
            $xm_yffy = 0;
        }
    } else {
        if ($xm_fl001 == 2) {
            $xm_yffy = ($xm_jbfy + $xm_yjfy) * 0.8;
        }
    }
    return $xm_yffy;
}
Example #2
0
function getFWFY($jg_id, $starttime, $endtime)
{
    //项目评审应付评审费累计数
    $leijixmyfpsf_result = mysql_query("select * from czj_xm where xm_zbjg='{$jg_id}' and isedybj=3 and lcb_czsgrq between '{$starttime} 00:00:00' and '{$endtime} 23:59:59'");
    $leijixmyfpsf_num = mysql_num_rows($leijixmyfpsf_result);
    for ($i71 = 0; $i71 < $leijixmyfpsf_num; $i71++) {
        $leijixmyfpsf_array = mysql_fetch_array($leijixmyfpsf_result);
        //送审金额
        $leijixm_ssje = $leijixmyfpsf_array['xm_ssje'];
        //审定金额
        $leijixm_sdje = $leijixmyfpsf_array['xm_sdje'];
        //项目分类
        $leijixm_fl = $leijixmyfpsf_array['xm_fl'];
        $leijixm_jbfy = getJBFY($leijixm_fl, $leijixm_ssje);
        $leijixm_yjfy = ($leijixm_ssje - $leijixm_sdje) * 0.05;
        if ($leijixmyfpsf_array['xm_sffy'] == 0) {
            if ($leijixm_fl == 1) {
                if ($leijixm_yjfy != 0 && $leijixm_jbfy != 0) {
                    $leijixm_yffy = ($leijixm_jbfy + $leijixm_yjfy) / 2;
                } else {
                    $leijixm_yffy = 0;
                }
            } else {
                if ($leijixm_fl == 2) {
                    $leijixm_yffy = ($leijixm_jbfy + $leijixm_yjfy) * 0.8;
                }
            }
        } else {
            $leijixm_yffy = $leijixmyfpsf_array['xm_sffy'];
        }
        $leijixm_yffy1 += $leijixm_yffy;
    }
    return $leijixm_yffy1;
}
Example #3
0
&nbsp;</td>
	</tr>
	
	<?php 
    $totalselect_sql = "select * from czj_xm where xm_wtjg='{$blog_userid}' and xm_del=0";
    $totalselect_result = mysql_query($totalselect_sql);
    $totalselect_num = mysql_num_rows($totalselect_result);
    for ($totali = 0; $totali < $totalselect_num; $totali++) {
        $totalselect_array = mysql_fetch_array($totalselect_result);
        $totalxm_ssje = $totalselect_array['xm_ssje'];
        $totalxm_ssje1 += $totalselect_array['xm_ssje'];
        $totalxm_sdje = $totalselect_array['xm_sdje'];
        $totalxm_sdje1 += $totalselect_array['xm_sdje'];
        $totalxm_fl001 = $totalselect_array['xm_fl'];
        //基本费用
        $totalxm_jbfy = getJBFY($totalxm_fl001, $totalxm_ssje);
        $totalxm_jbfytotal += $totalxm_jbfy;
        //业绩费用
        $totalxm_yjfy = ($totalxm_ssje - $totalxm_sdje) * 0.05;
        $totalxm_yjfy2 += $totalxm_yjfy;
        //应付费用
        if ($totalxm_fl001 == 1) {
            if ($totalxm_yjfy != 0 && $totalxm_jbfy != 0) {
                $totalxm_yffy = ($totalxm_jbfy + $totalxm_yjfy) / 2;
            } else {
                $totalxm_yffy = 0;
            }
        } else {
            if ($totalxm_fl001 == 2) {
                $totalxm_yffy = ($totalxm_jbfy + $totalxm_yjfy) * 0.8;
            }
Example #4
0
        $xm_ssje1 += $xm_ssje;
        echo number_format($xm_ssje, 2, '.', ',');
        ?>
&nbsp;
				</td>
				<td>
					<?php 
        $xm_sdje = $select_array['xm_sdje'];
        $xm_sdje1 += $xm_sdje;
        echo number_format($xm_sdje, 2, '.', ',');
        ?>
&nbsp;
				</td>
				<td>
					<?php 
        $xm_jbfy = getJBFY($xm_fl001, $xm_ssje);
        $xm_jbfytotal += $xm_jbfy;
        echo number_format($xm_jbfy, 2, '.', ',');
        ?>
&nbsp;
				</td>
				<td>
					<?php 
        $xm_yjfy = ($xm_ssje - $xm_sdje) * 0.05;
        $xm_yjfy1 = number_format($xm_yjfy, 2, '.', ',');
        $xm_yjfy2 += $xm_yjfy;
        echo $xm_yjfy1;
        ?>
&nbsp;
				</td>
				<td>
Example #5
0
</div>
<div class="module_content" id="module_content">
<form enctype="multipart/form-data" name="example" action="#" method="post" id="example">
	<table style="min-width:900px;">
		<tr>
			<td>
				<table style="width:500px;font-size:15px;margin-left:100px;">
					<?php 
$xm_ssje = $xm_array['xm_ssje'];
$xm_sdje = $xm_array['xm_sdje'];
$xm_zbjg = $xm_array['xm_wtjg'];
$xm_fl = $xm_array['xm_fl'];
$zbjg_result = mysql_query("select user_id,jg_mc from blog_user where user_id='{$xm_zbjg}'");
$zbjg_array = mysql_fetch_array($zbjg_result);
//基本费用
$xm_jbfy = getJBFY($xm_fl, $xm_ssje);
$xm_yjfy = ($xm_ssje - $xm_sdje) * 0.05;
if ($xm_fl == 1) {
    if ($xm_yjfy != 0 && $xm_jbfy != 0) {
        $xm_yffy = ($xm_jbfy + $xm_yjfy) / 2;
    } else {
        $xm_yffy = 0;
    }
} else {
    if ($xm_fl == 2) {
        $xm_yffy = ($xm_jbfy + $xm_yjfy) * 0.8;
    }
}
//应付费用
$xm_yffy1 = explode(".", $xm_yffy);
$xm_sffy = round($xm_yffy1[0], -2);