 <?php
 //echo  $time=Date("H:i:sa").": By ";
 //echo "Full path: " . __FILE__;
//exit;
 // echo shell_exec("which php");
 ini_set('display_errors', 1);
error_reporting(E_ALL);
 ?>
 <div class="row">
    <div class="col">
        
         
           <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharItemRf.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>New item(Bidhaa mpya)</small></button>

          </div>
      
      </div> 
    <div class="col">
          <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharmcusRg.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>New customer(Mteja mpya)</small></button>
          </div>
      </div> 
    <div class="col">
    
          <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post(' pharmCusRecords.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Customer records(Orodha ya wateja)</small></button>

          </div>

      </div> 
    <div class="col">
        
     
          <!--<div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:40px;" onclick=" var pID=234;$.post('pharmAgentRgLPO.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>New agent</small></button>

          </div> -->
    <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('empRegForm.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Register employee(Sajilimfanyakazi)</small></button>

          </div>
        
    </div>
      </div>
      <div class="row">
    <div class="col">
        
      <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('usersList.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Employee recordsEmployee records(Orodha ya wafanyakazi)</small></button>

          </div>
             <!--<div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:40px;" onclick=" var pID=234;$.post('pharmAgentRecordLPO.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Agent records</small></button>

          </div>-->
          </div>
       
    <div class="col">
         <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharmPurchaseOrderLPO.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Purchase order(Oda ya manunuzi)</small></button>

          </div>
      </div> 
    <div class="col">
          <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharmporderPrevLPO.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Purchase order preview(Oda za manunuzi ya awali)</small></button>

          </div>
     </div>

       <div class="col">
             <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('expensesRegForm.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>New expense(Matumizi)</small></button>

          </div>
      </div>
      </div>
      <div class="row">
    <div class="col">
           <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var user=$('#user').val();$.post('pharmporderReportLPO.php',{user:user},function(data){$('#disp').html(data).show();});"><small>Purchase order reports(Taafira za manunuzi)</small></button>

          </div>
          </div> 
    <div class="col">
            <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharAddItemStock.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Add stock(Ongeza bidhaa)</small></button>

          </div>
      </div> 
    <div class="col">
          <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('pharmCusDebit.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Customer debit(Madeni ya wateja)</small></button>

          </div>
           <!--<div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:40px;" onclick=" var pID=234;$.post('pharmNewAgent.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Create agent stock</small></button>

          </div>-->
</div> 
    <div class="col">
            <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharmSinvoice.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Sales invoice(Uza kwa Kukopesha)</small></button>

          </div>
          </div>
      </div>
      <div class="row">
    <div class="col">
          <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharmSinvPrevLPO.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Invoice preview</small></button>

          </div>
      </div> 
    <div class="col">
           <div class="form-floating mb-3 mt-3"> 
            <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var pID=234;$.post('pharmSsInvReportLPO.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Sales reports(Ripoti ya mauzo kwa invoisi)</small></button>

          </div>
      </div> 
    <div class="col">
          <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val(); var patientID=$('#pID').val();if (patientID!=''&& sdate!='') {$.post('pharSellItem.php',{sdate:sdate,patientID:patientID},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='Enter valid patient ID!..';}"><small>Sell item(Uza bidhaa bila invoisi)</small></button>
  
          </div>
          </div> 
    <div class="col">
            
              <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val(); if (sdate!='') {$.post('pharmPurchaseR.php',{sdate:sdate},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='System date required!..';}"><small>Purchase report(report ya manunuzi)</small></button>

          </div>
      </div>
      </div>
      <div class="row">
    <div class="col"> 
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val(); var patientID=$('#pID').val();if (patientID!=''&& sdate!='') {$.post('pharmSellsR.php',{sdate:sdate,patientID:patientID},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='Enter valid patient ID!..';}"><small>Sells report(Ripoti ya mauzo)</small></button>

          </div>
      </div> 
    <div class="col">
          <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var patientID=$('#pID').val();if (patientID!='') {$.post('pharmCrrStock.php',{patientID:patientID},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='Enter valid patient ID!..';}"><small>Current Stock(Stoki)</small></button>
          </div>
      </div> 
    <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick=" var patientID=$('#pID').val();if (patientID!='') {$.post('pharmItemDump.php',{patientID:patientID},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='Enter valid patient ID!..';}"><small>Dump item(Ondoa bidhaa mbovu)</small></button>

          </div>
           </div>
            <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val(); var patientID=$('#pID').val();if (patientID!=''&& sdate!='') {$.post('pharmdumpingR.php',{sdate:sdate,patientID:patientID},function(data){$('#disp').html(data).show();});} else{document.getElementById('disp').innerHTML='Enter valid patient ID!..';}"><small>Dumping report(Taarifa za bidhaa mbovu)</small></button>

          </div>
          </div>
      </div>
      <div class="row">
    <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('pharmCusDebPrec.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Debit payment records</small></button>

          </div>
        </div> 
    <div class="col"> 
            <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('pharmDebitReconcil.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Debit reconciliation</small></button>

            </div>
         
          </div>
           <div class="col">
            <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('pharmCmpnyDebit.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Company debit</small></button>

          </div>
          </div>
           <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('pharmEditSell.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Edit sell</small></button>

          </div>
          </div> 
      </div> 
      <div class="row">
          <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:90%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('changepwd.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Change password</small></button>
          </div>
          </div>
          <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('pharmDelSell.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Delete sell</small></button>
          </div>
          </div>
          <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('proforma.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Proforma</small></button>
          </div>
          </div>
          <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('profPrev.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Proforma prev</small></button>

          </div>
          </div>
      </div>
      <div class="row">
          <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                  <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var user =$('#user').val();$.post('storeRequest.php',{user:user},function(data){$('#disp').html(data).show();});"><small>Store request</small></button>
          </div>
          </div>
          <div class="col">
             <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('storerqPrev.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Store request prev</small></button>
          </div>
          </div>
           <div class="col">
          <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('pharmDeletePurch.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Delete purchase</small></button>

          </div>
          </div>
           <div class="col">
          <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('delexpensR.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Delete expenses</small></button>

          </div>
          </div>
      </div>
      <div class="row">
          <div class="col">
                <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('pharmproTrackItem.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Item records</small></button>

          </div>
          </div>
          <div class="col">
     <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('miamalaRgf.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Transaction</small></button>

          </div>
          </div>
              <div class="col">
          
     <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('delTransac.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Delete Transaction</small></button>

          </div>
          </div>
            <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('delInvoice.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Delete invoice</small></button>

          </div>
          </div>
         
          
          
           
      </div>
      
       <div class="row">
         
          
          <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('pharmcusDeposit.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Customer deposit</small></button>

          </div>
          </div>
         
           <div class="col">
                  <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('pharmcusDepositRec.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Deposit records</small></button>

          </div> 
          </div>
          
       
          <div class="col">
          <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('pharmcusDwithDro.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Deposit withdraw</small></button>
     
          </div>
          </div>
          
           <div class="col">
              <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('pharmcusdWithDroRec.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Withdraw records</small></button>

          </div>
          </div>
           </div>
      
       <div class="row">
            <div class="col">
             <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('pharmcusDepositRevs.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Deposit return</small></button>

          </div>
     
          </div>
           <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('cusstatement.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Deposit statement</small></button>
          </div>
          </div>
           <div class="col"> 
             <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('excessmoney.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Excess money deposit</small></button>

          </div>
         </div> 
           <div class="col">
                <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('excwithdrawrf.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Excess money withraw</small></button>

          </div>
           
          </div>
           </div>
      
       <div class="row">
            <div class="col">
                   <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('othersourcemoney.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Other source deposit</small></button>

          </div>
                
         
          </div>
           
           <div class="col">
           
       
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('balancewithdraw.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Other sources withdraw</small></button>

          </div>
          </div>
            
             <div class="col">
                    <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('nonpurchdebitRgf.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Enter old debit</small></button>

          </div>
          </div>
      
      
            <div class="col">
            <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var pID=234;$.post('nonpurchdebitlist.php',{pID:pID},function(data){$('#disp').html(data).show();});"><small>Old debit</small></button>

          </div>
          </div>
           </div>
            <div class="row">
            <div class="col">
                <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('nonpurchdebitPayRec.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Old debit payment records</small></button>

          </div>
                
           

            </div>
           <div class="col">
               
                <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('purchaseOrderR.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Company debit report</small></button>

          </div>
          
            

          </div>
          <div class="col">
                <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('editDelpurchorder.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Delete P. order</small></button>

          </div>
        

            </div>
           <div class="col">
          
 <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('sendsms-debit.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>SMS TEST</small></button>

          </div>
            </div>
             
      </div>
           <div class="row">
            <div class="col">
            <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('returnSell.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Return sell</small></button>

          </div>

            </div>
           <div class="col">
              <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('delHPinvoice.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>1/2 Paid debit</small></button>

          </div>

          </div>
          <div class="col">
             <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('logblock.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Un/block users</small></button>

          </div>

            </div>
           <div class="col">
        <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('transStatement.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Statement</small></button>

          </div>

            </div>
             
      </div>
      
      
      
      
          <div class="row">
            <div class="col">
            <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('cash_expenses.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Cash info</small></button>

          </div>

            </div>
           <div class="col">
             <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('cashExR.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Cash info report</small></button>

          </div>

          </div>
          <div class="col">
            <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('ruhusu.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Ruhusu usajili</small></button>

          </div>

            </div>
           <div class="col">
           <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var sdate=$('#sdate').val();$.post('companydebitPR.php',{sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Company debit P. records</small></button>

          </div>

            </div>
             
      </div>
      
       <div class="row">
            <div class="col">
            <div class="form-floating mb-3 mt-3"> 
                 <button type="submit" class="btn btn-primary" style="width:100%; height:60px;" onclick="var user =$('#user').val(); var sdate=$('#sdate').val();$.post('confirmpurchaselist.php',{user:user,sdate:sdate},function(data){$('#disp').html(data).show();});"><small>Confirm p. order</small></button>

          </div>

            </div>
           <div class="col">
            

          </div>
          <div class="col">
            

            </div>
           <div class="col">
           

            </div>
             
      </div>
      
</div>