//include("einstellungen.php"); $litography=850000; $chap=1500000; $kaghaz=340000; $sahafi=1500; $sud=20; $maliyat=9; /////////////////////// $dor_chap=1.04; $jeld_form=0.5; $jeld_zink=$_POST['rang_jeld']; $jeld_chap=$dor_chap*$jeld_zink; $dakheli_form=$_POST['pages']/8; $dakheli_zink=$_POST['rang_dakheli']*$dakheli_form*2; $dakheli_chap=$dakheli_zink*$dor_chap; //////////////////////// ////////// محاسبه داخلی ////////////// $p_kaghaz=(0.45*0.6)*$_POST['gram_dakheli']*$kaghaz*$dakheli_form*$_POST['tiraj']*0.001; $p_litography=$dakheli_zink*$litography; $p_chap=$chap*$dakheli_chap; if($dakheli_form<=10){$p_sahafi=10*$sahafi*$_POST['tiraj'];} else{$p_sahafi=$dakheli_form*$sahafi*$_POST['tiraj'];} $p_net_dakheli=$p_kaghaz+$p_litography+$p_chap+$p_sahafi; // قیمت تمام شده داخلی $p_sud=$p_net_dakheli*$sud/100; $p_maliyat=$p_net_dakheli*$maliyat/100; $p_total_dakheli=$p_net_dakheli+$p_sud+$p_maliyat; //قیمت کل داخلی //////////////// محاسبه جلد ///////////////////////////////////////////////////////////////////// $p_kaghaz_jeld=(0.45*0.6)*$_POST['gram_jeld']*$kaghaz*$jeld_form*$dor_chap*$_POST['tiraj']*0.001; $p_litography_jeld=$jeld_zink*$litography; $p_chap_jeld=$chap*$jeld_chap; $p_rukesh_jeld=$_POST['rukesh']*$_POST['tiraj']; $p_net_jeld=$p_kaghaz_jeld+$p_litography_jeld+$p_chap_jeld+$p_rukesh_jeld; // قیمت تمام شده جلد $p_sud_jeld=$p_net_jeld*$sud/100; $p_maliyat_jeld=$p_net_jeld*$maliyat/100; $p_total_jeld=$p_net_jeld+$p_sud_jeld+$p_maliyat_jeld; // $p_total_total=$p_total_jeld+$p_total_dakheli; ?>
|
|||