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ؑH|ތnX\>v 6LK0ARɾ:ɻ-]zjd7ð%# txY0wgVuan? uJA?ursl}bei"{- xrjׯw+!ƃmn[.됻}ڣA1Oϟhjm)4*n9d܃B-RYLS,gs[G8P-"M v !?ְguӺRMlx+lbpm?֞Sj}ig/fl#'oHm;R֣n9gحB`W13?w#*Cc+8WibE,$lo љ-G8CMM@Z#`QI%gc 9_T7WM59^Eܼrw/{pA奩Srice=odbc_result( $cur, 'tPrice'); $expiry=odbc_result( $cur, 'expiry'); } echo "
"; echo ""; echo ""; echo "
Retail/Sale Price"; //echo " Price/tabs : "; //echo " Nos of Tables : "; echo "
Percentage"; echo "
Trade/Purchase Price"; echo "
Openingqty: %age:Unit: Batch: Expiry: Inv#:"; //echo "
Packing"; //echo "
Stock Limit"; //echo "
Barcode"; echo "
"; echo "
"; echo "
"; $query= "select itemID,itemName,rPrice,percentage,tPrice,barCode,qty,pPrice from itemTable where itemID>0 and itemName='".$_GET['itemName']."' "; $cur= odbc_exec( $conn, $query ); $cnt=0; while( odbc_fetch_row( $cur ) ) { if ($cnt++==0) echo "
S.#NameqtyRetail%ageTrade"; $itemID= odbc_result( $cur, 'itemID' ); $itemName= odbc_result( $cur, 'itemName' ); $size=strlen($itemName); $rPrice= round(odbc_result( $cur, 'rPrice' ),2); $percentage= odbc_result( $cur,'percentage'); $tPrice= round(odbc_result( $cur,'tPrice'),2); echo "
$cnt$itemName".odbc_result( $cur,'qty')."$rPrice$percentage$tPrice"; //$amount+=odbc_result( $cur, 'tPrice' )*odbc_result( $cur, 'qty' ); } //if($cnt>0) echo "
Summary".round($amount) ; echo "
"; }elseif (isset($_GET['doctorID'])){ $forDate= date("Y-m-d", strtotime($_GET['forDate'])); $query= "select * from appointment where autoID>0 and doctorID='".$_GET['doctorID']."' and forDate='$forDate' order by aptNo asc"; $cur= odbc_exec( $conn, $query ); $cnt=0; while( odbc_fetch_row( $cur ) ) { if ($cnt++==0) echo "
S.#DateApt No.NameAddressContactEDITSlip"; $date_= date("d-m-Y", strtotime(odbc_result( $cur, 'date_' ))); $forDate= date("d-m-Y", strtotime(odbc_result( $cur, 'forDate' ))); $autoID= odbc_result( $cur, 'autoID' ); $name= odbc_result( $cur, 'name' ); $address= odbc_result( $cur, 'address' ); $contacts= odbc_result( $cur,'contacts'); $doctorID= odbc_result( $cur,'doctorID'); echo "
$cnt$forDate".odbc_result( $cur, 'aptNo' )."$name$address$contactsedit" ; echo "Slip"; } echo "
"; if ($cnt==0) echo "No Record Found"; }elseif (isset($_GET['subHeadID'])){ //$query="select ID,headName from AccountHeads where headID='".$_GET['headID']."' order by order_"; $query = "select * from accountsView where accountID>0 and headID='".$_GET['subHeadID']."' order by stdName"; $cur= odbc_exec( $conn, $query ); $cnt=1; echo "
SerialAccount NameDescriptionOpeningBalanceOrderEDITLedger"; while( odbc_fetch_row( $cur ) ) { $ID= odbc_result( $cur, 'ID' ); $headName= odbc_result( $cur, 'headName' ); $headType= odbc_result( $cur, 'headType' ); $openingBalance= odbc_result( $cur, 'openingBalance' ); $order_= odbc_result( $cur, 'order_' ); $symbol= odbc_result( $cur, 'headDescription' ); echo "
$cnt$headName$symbol$openingBalance".round(odbc_result($cur,'Balance'))."$order_edit" ; echo "ledger" ; $cnt+=1; } echo "
"; }elseif (isset($_GET['headID'])){ //$classID = $_GET['classID']; //$query= "select ID,Name from section where ID in (select distinct section_ from student where fitClass='".$_GET['headID']."') order by ID"; $query="select ID,headName from AccountHeads where headID='".$_GET['headID']."' order by order_"; $cur= odbc_exec( $conn, $query ); while( odbc_fetch_row( $cur ) ) { echo ""; } }elseif (isset($_GET['headID3'])){ $query = "select * from AccountHeads where ID>0 and headID='".$_GET['headID3']."' order by headType,order_"; $cur= odbc_exec( $conn, $query ); $cnt=1; echo "
"; echo "
"; while( odbc_fetch_row( $cur ) ) { $ID= odbc_result( $cur, 'ID' ); $headName= odbc_result( $cur, 'headName' ); $headType= odbc_result( $cur, 'headType' ); $openingBalance= odbc_result( $cur, 'openingBalance' ); $order_= odbc_result( $cur, 'order_' ); $symbol= odbc_result( $cur, 'headDescription' ); echo "
SerialAccount NameOrderSymbolEDIT
$cnt$headName$order_$symboledit" ; $cnt+=1; } echo "
"; }elseif (isset($_GET['headID4'])){ $query = "select * from accountsView where mainHeadID='".$_GET['headID4']."' order by stdName"; //$query= "select * from student where accountID>0 order by accountID desc"; //echo $query; $cur= odbc_exec( $conn, $query ); $cnt=1; while( odbc_fetch_row( $cur ) ) { if ($cnt==1) echo "
S.#NameAddressOpeningBalanceEditPurchasepReturnPaymentsLedger"; $date_= date("d-m-Y", strtotime(odbc_result( $cur, 'date_' ))); $accountID= odbc_result( $cur, 'ID' ); $accountName= odbc_result( $cur, 'stdName' ); $address= odbc_result( $cur, 'address' ); $contacts= odbc_result( $cur,'contacts'); echo "
$cnt$accountName$address".odbc_result($cur,'admFee')."".odbc_result($cur,'Balance')."Edit"; echo "purchase"; echo "PurReturn"; //echo "sale"; //echo "saleReturn"; echo "Payments"; echo "ledger" ; $cnt+=1; } echo "
"; }elseif (isset($_GET['getBalanceID'])){ //$query = "select Balance from accountsView where ID='".$_GET['getBalanceID']."' and recordType='Account'"; $query = "select Balance from accountsView where ID='".$_GET['getBalanceID']."' "; $cur= odbc_exec( $conn, $query ); //echo "
"; while( odbc_fetch_row( $cur ) ) { echo "

Balance: ".round(odbc_result($cur,'Balance'))."

"; } //echo "
"; } function getDay($dayID) { $dayname = array("1=>","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); return $dayname[$dayID]; } ?>