Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ynormeco
/
.trash
/
yinvoice
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ynormeco/.trash/yinvoice/table1.php
<?php session_start(); include "connection.php"; $connect=connect(); $loginid=isset($_SESSION['lsession']) ? $_SESSION['lsession'] : NULL; if(!isset($_SESSION['lsession'])) { header("location: backend/logout.php"); exit; } $sql=mysqli_query($connect,"select * from `adminlogin` where `loginid` ='$loginid'"); $row=mysqli_fetch_array($sql); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Client - Ynorme Solution</title> <!-- Meta Tags --> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8"> <meta name="keywords" content="Modernize Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, Sony Ericsson, Motorola web design" /> <script> addEventListener("load", function () { setTimeout(hideURLbar, 0); }, false); function hideURLbar() { window.scrollTo(0, 1); } </script> <!-- //Meta Tags --> <!-- Style-sheets --> <!-- Bootstrap Css --> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" /> <!-- Bootstrap Css --> <!-- Common Css --> <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> <!--// Common Css --> <!-- Nav Css --> <link rel="stylesheet" href="css/style4.css"> <!--// Nav Css --> <!-- Fontawesome Css --> <link href="css/fontawesome-all.css" rel="stylesheet"> <!--// Fontawesome Css --> <!--// Style-sheets --> <!--web-fonts--> <link href="//fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet"> <link href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet"> <!--//web-fonts--> </head> <body> <div class="wrapper"> <!-- Sidebar Holder --> <nav id="sidebar"> <div class="sidebar-header"> <h1> <a href="dashboard.php">Ynorme</a> </h1> <span>Y</span> </div> <div class="profile-bg"></div> <ul class="list-unstyled components"> <li> <a href="dashboard.php"><i class="fa fa-users"></i>Dashboard</a> </li> <li > <a href="table2.php"> <i class="fa fa-bars"></i> Category</a> </li> <li > <a href="expense_cate.php"> <i class="fa fa-bars"></i> Expense Category</a> </li> <li class="active"> <a href="table1.php"><i class="fa fa-users"></i>Client</a> </li> <li > <a href="Search.php"> <i class="fa fa-search"></i> Search </a> </li> <li> <a href="sales.php" > <i class="fa fa-tag" aria-hidden="true"></i> Sales </a> </li> <li> <a href="appointment.php" > <i class="fa fa-calendar" aria-hidden="true"></i> Appointment </a> </li> <li> <a href="expense.php" > <i class="fa fa-credit-card" aria-hidden="true"></i> Expense </a> </li> </ul> </nav> <!-- Page Content Holder --> <div id="content"> <!-- top-bar --> <nav class="navbar navbar-default mb-xl-5 mb-4"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" id="sidebarCollapse" class="btn btn-info navbar-btn"> <i class="fas fa-bars"></i> </button> </div> <!-- Search-from --> <!--// Search-from --> <ul class="top-icons-agileits-w3layouts float-right"> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown2" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="far fa-user"></i> </a> <div class="dropdown-menu drop-3"> <div class="profile d-flex mr-o"> <div class="profile-l align-self-center"> <img src="images/profile.jpg" class="img-fluid mb-3" alt="Responsive image"> </div> <div class="profile-r align-self-center"> <h3 class="sub-title-w3-agileits"><?php echo $row['name']; ?></h3> <a href="mailto:info@example.com"><?php echo $row['email']; ?></a> </div> </div> <a href="myprofile.php" class="dropdown-item mt-3"> <h4> <i class="far fa-user mr-3"></i>My Profile</h4> </a> <a href="change_pass.php" class="dropdown-item mt-3"> <h4> <i class="far fa-thumbs-up mr-3"></i>Change Password</h4> </a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="backend/logout.php">Logout</a> </div> </li> </ul> </div> </nav> <!--// top-bar --> <!-- main-heading --> <!--// main-heading --> <!-- Tables content --> <section class="tables-section"> <div class="row" > <div class="col-sm-6"><p style="text-align:left"><form method="get" class="form-inline mx-auto search-form"> <input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search" name="keyword"> <input class="btn btn-style my-2 my-sm-0" type="submit" value="search"> </form></p></div> <div class="col-sm-6"><p style="text-align:right"><a class="btn btn-style my-2 my-sm-0" href="new_registration.php">Add New Client</a></p></div> </div> <!-- table3 --> <div class="outer-w3-agile mt-3"> <h4 class="tittle-w3-agileits mb-4"> </h4> <div class="table table-responsive"> <table class="table table-striped"> <thead> <tr> <th scope="col">Sr.no</th> <th scope="col">Name</th> <th scope="col">Total Amount</th> <th scope="col">Balance</th> <th scope="col">Services</th> <th scope="col">Payments</th> <th scope="col">Support</th> <th scope="col">Delete</th> <th scope="col">Edit<th> </tr> </thead> <?php $select=mysqli_query($connect,"select * from clientdata ORDER BY `name` ASC "); $keyword=isset($_GET['keyword']) ? $_GET['keyword'] : NULL; if($keyword) { $select=mysqli_query($connect,"select * from clientdata WHERE `name` LIKE '%$keyword%'"); $i=0; while($row01=mysqli_fetch_array($select)) { $total=0; $bal=0; $i=$i+1; echo "<tbody>"; echo "<tr>"; echo "<td>$i</td>"; echo "<td>".$row01['name']."</td>"; $id=$row01['clientid']; $sql=mysqli_query($connect,"select * from clientpurchase where `clientid`='$id' and `status`='Pending' "); $sql2=mysqli_query($connect,"select * from `invoice` where `clientid`='$id' and `status`='Paid'"); while($row1=mysqli_fetch_array($sql)) { $total=$total+$row1['amount']; } while($rowbal=mysqli_fetch_array($sql2)) { $bal=$bal+$rowbal['amount']; } $tg=$total-$bal; echo "<td>".$total."</td>"; echo "<td>".$tg."</td>"; echo "<td><a href='add.php?client=".$row01['clientid']."'><img src='images/add.png' style='width:23px'></a></td>"; echo "<td><a href='payment_list.php?client=".$row01['clientid']."'><img src='images/add.png' style='width:23px'></a></td>"; $a=mysqli_num_rows(mysqli_query($connect,"select * from `complaint` where `clientid`='$id' and `status`='Pending'")); echo "<td><a href='support.php?client=".$row01['clientid']."'><img src='images/support.png' style='width:23px'>  ".$a."</a></td>"; echo "<td><a href='backend/delete2.php?drow=".$row01['id']."&client=".$row01['clientid']."'><img src='images/delete1.png' style='width:25px'></a></td>"; echo "<td><a href='edit2.php?erow=".$row01['clientid']."'><img src='images/edit1.png' style='width:25px'></a></td>"; echo "</tr>"; echo "</tbody>"; } } else { $i=0; while($row01=mysqli_fetch_array($select)) { $total=0; $bal=0; $i=$i+1; echo "<tbody>"; echo "<tr>"; echo "<td align='center'>$i</td>"; echo "<td>".$row01['name']."</td>"; $id=$row01['clientid']; $sql=mysqli_query($connect,"select * from clientpurchase where `clientid`='$id' and `status`='Pending' "); $sql2=mysqli_query($connect,"select * from invoice where `clientid`='$id' and `status`='Paid' "); while($row1=mysqli_fetch_array($sql)) { $total=$total+$row1['amount']; } while($rowbal=mysqli_fetch_array($sql2)) { $bal=$bal+$rowbal['amount']; } $tg=$total-$bal; echo "<td align='right'>".$total."</td>"; echo "<td align='right'>".$tg."</td>"; echo "<td align='center'><a href='add.php?client=".$row01['clientid']."'><img src='images/add.png' style='width:23px'></a></td>"; echo "<td align='center'><a href='payment_list.php?client=".$row01['clientid']."'><img src='images/add.png' style='width:23px'></a></td>"; $a=mysqli_num_rows(mysqli_query($connect,"select * from `complaint` where `clientid`='$id' and `status`!='Closed'")); echo "<td align='center'><a href='support.php?client=".$row01['clientid']."'><img src='images/support.png' style='width:23px'>  ".$a."</a></td>"; echo "<td align='center'><a href='backend/delete2.php?drow=".$row01['id']."&client=".$row01['clientid']."'><img src='images/delete1.png' style='width:25px'></a></td>"; echo "<td align='center'><a href='edit2.php?erow=".$row01['clientid']."'><img src='images/edit1.png' style='width:25px'></a></td>"; echo "</tr>"; echo "</tbody>"; } } ?> </table> </div> </div> <!--// table3 --> </section> <!--// Tables content --> <!-- Copyright --> <div class="copyright-w3layouts py-xl-3 py-2 mt-xl-5 mt-4 text-center"> <p>© 2019 Ynorme Solution Pvt. Ltd. All Rights Reserved</a></p> </div> <!--// Copyright --> </div> </div> <!-- Required common Js --> <script src='js/jquery-2.2.3.min.js'></script> <!-- //Required common Js --> <!-- Sidebar-nav Js --> <script> $(document).ready(function () { $('#sidebarCollapse').on('click', function () { $('#sidebar').toggleClass('active'); }); }); </script> <!--// Sidebar-nav Js --> <!-- dropdown nav --> <script> $(document).ready(function () { $(".dropdown").hover( function () { $('.dropdown-menu', this).stop(true, true).slideDown("fast"); $(this).toggleClass('open'); }, function () { $('.dropdown-menu', this).stop(true, true).slideUp("fast"); $(this).toggleClass('open'); } ); }); </script> <!-- //dropdown nav --> <!-- Js for bootstrap working--> <script src="js/bootstrap.min.js"></script> <!-- //Js for bootstrap working --> </body> </html>