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Չ7.~fVf`Q؄@*&|$ JdYKȂ͝Cj* d'kM.x<3~w`!J< +3lZ&YʋaZHi5{jnUB62~$!6MW*1E]vF'z>Tg;D?>O^xQ7y`;탏dT2\p6B2OlaGD{'"lW^Z\Ű$yTlFXhZNֱGc!dư(纑j3*ݹ^*\Y0R`џO$y%~EI:'/=pEq= #2g2E T?n']WF$K䝱r5DZlJ[u^I*sJF%=dZ/hСĕ)R<߷+^r, lz Ԡ[z$l z~h^M-Ev-*ԥ0^S5ǬӤO#ylkr)=DA26*4WM\ HCw|bZ^;8,~ylabid']."' and recordType='$recordType'"); if ($oldImg!="") unlink($_SESSION['photosFolder']."/$oldImg"); $query="update itemInOut set img='$picname' where invno='$invno' and labid='".$_SESSION['labid']."' and recordType='$recordType' "; $cur= odbc_exec( $conn, $query ); } //exit(); echo ""; } if (isset($_GET['sTax'])) $sTax = $_GET['sTax']; if (isset($_GET['ID'])) $sTax = $_GET['ID']; if (isset($_GET['delinvno'])){ //$sTax = $_GET['sTax']; $cur=odbc_exec($conn,"delete from itemInOut where invno='".$_GET['delinvno']."' and labid='".$_SESSION['labid']."' and recordType='$recordType' "); echo ""; } if (isset($_GET['editinvno'])){ //$sTax = $_GET['sTax']; $query="select top 1 * from itemInOut where invno='".$_GET['editinvno']."' and labid='".$_SESSION['labid']."' and recordType='$recordType' "; $cur=odbc_exec($conn,$query); while( odbc_fetch_row( $cur ) ) { $from=$date_= date("Y-m-d", strtotime(odbc_result( $cur, 'date_' ))); $sTax=round(odbc_result($cur,'sTax'),2); $invno=odbc_result($cur,'invno'); $batchNo2=$batchNo=odbc_result($cur,'batchNo'); $qty=odbc_result($cur,'qty'); $pPrice=round(odbc_result($cur,'pPrice')); $tPrice=round(odbc_result($cur,'tPrice')); $discount=round(odbc_result($cur,'discount')); $remarks=odbc_result($cur,'remarks'); $paymentType=odbc_result($cur,'rPrice'); $sPrice=odbc_result($cur,'sPrice'); $serialno=odbc_result($cur,'serialno'); $location=odbc_result($cur,'location'); $address=odbc_result($cur,'address'); } } ?> HOME
Date
Incharge
Cell No
Address
Total Roti
Payments
Gharany
Volunteers
Donations
Remarks
Slip No.
Image
.
"; echo "
"; echo ""; ?> "; echo ""; ?> "; ?> "; $arr=array(0,0,0,0,0,0,0,0,0,0); //$query= "select * from itemInOut where (date_ between '$from' and '$to') and invno>0 and labid='".$_SESSION['labid']."' and recordType='$recordType' order by date_ asc,invno asc"; $query= "select * from itemInOut where (date_ between '$from' and '$to') and invno>0 and labid='".$_SESSION['labid']."' and recordType='$recordType' "; if($location!="") $query.=" and location='$location' "; $query.=" order by date_ desc,invno desc "; //echo $query; $cur= odbc_exec( $conn, $query ); $cnt=1;$total=$tqty=$amt=0; while( odbc_fetch_row( $cur ) ) { if ($cnt==1) echo "
#DateInchargeRemarksAddressRotiPaymentsGraanyVolunteersDonation"; $date2= date("d.m.y", strtotime(odbc_result( $cur, 'date_' ))); $invno=odbc_result($cur,'invno'); echo "
".$cnt++."$date2"; echo "".odbc_result( $cur, 'batchNo' ); //$accountName=getName($conn,"select stdName from student where ID='".odbc_result($cur, 'sTax')."' and recordType='Account'"); //echo "".$accountName; echo "".odbc_result( $cur, 'remarks' ); echo "".odbc_result( $cur, 'address' ); $tqty+=odbc_result( $cur, 'qty' ); $amt=odbc_result( $cur, 'qty' )*odbc_result($cur,'pPrice'); $amt+=odbc_result( $cur, 'qty' )*odbc_result($cur,'tPrice'); //freight echo "".round(odbc_result( $cur, 'qty' ),2); echo "".round(odbc_result($cur,'sPrice')); echo "".round(odbc_result($cur,'pPrice')); //grany echo "".round(odbc_result($cur,'tPrice')); //vol echo "".round(odbc_result($cur,'discount')); //vol echo ""; $total+=$amt; echo "" ; echo "" ; $i=0; $arr[$i++]+=odbc_result( $cur, 'qty' ); $arr[$i++]+=odbc_result( $cur, 'sPrice' ); $arr[$i++]+=odbc_result( $cur, 'pPrice' ); $arr[$i++]+=odbc_result( $cur, 'tPrice' ); $arr[$i++]+=odbc_result( $cur, 'discount' ); } echo "
Summary"; for ($i=0;$i<5;$i++){ echo "".$arr[$i]; } echo "
"; ?>