✏️ 正在编辑: complain_list.php
路径:
/home/llpreacharge/public_html/Admin1/complain_list.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php include'session.php'; include'connection.php'; include'../Retailers/functions.php'; ?> <html> <head> <title>Complain List</title> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="icon" href="images/logo.png" type="image/gif" sizes="16x16"> <!-- Admin CSS File Link --> <link rel="stylesheet" href="css/style.css"> <!-- User JAVA SCRIPT File Link --> <script type="text/javascript" src="js/script.js"></script> <!-- Font Awesome Icone --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <style> .div1{ background:; width:98%; margin:1%; padding:10px; } .div1 input, .div1 select{ height:30px; width:180px; font-size:16px; padding:2px 7px; border-radius:5px; border:solid #6b5127 1px; overflow:hidden; margin:10px 10px 0 5px; } input[type=submit]{ background:#6b5127; color:white; transition:1s; cursor:pointer; } input[type=submit]:hover{ background:white; color:#6b5127; transition:1s; } .div2{ background:#f7f7f7; width:100%; float:left; text-align:center; padding:0 10px 10px 10px; overflow-x:auto; } .div2 table{ width:96%; text-align:center; font-size:15px; border-collapse:collapse; padding:2px 10px; margin:2%; } table th{ background:#6b5127; color:white; height:40px; border:solid white 1px; padding:2px 5px; } table td{ background:white; height:40px; border:solid black 1px; padding:2px 5px; } @media(max-width:768px) { .div1{ background:; width:100%; height:auto; margin:10px 0 0 0; padding:0; text-align:center; } .div1 input, .div1 select{ width:90%; margin:10px; } .div2{ width:100%; margin:10px 0 0 0; padding:0px; text-align:center; } } </style> <link rel="stylesheet" href="css/mediaStyle.css"> </head> <body> <!--Header Divison--> <?php require'header.php'; ?> <!--Container Division--> <div class="container"> <?php include'menu.php'; ?> <div class="content"> <div class="head"> <div class="title"><p>Complain List :-</p></div> <div class="msg"><marquee><?php include'msg.php'; ?></marquee></msg> </div><hr> <div class="data-content"> <div class="div2"> <table cellpadding="20" border="2"> <tr> <th>Comp.Id</th> <th>Rechargeid</th> <th>Date Time</th> <th>User</th> <th>Messege</th> <th>Status</th> <th colspan='2'>Action</th> </tr> <?PHP $sl=0; $quPayment="SELECT * FROM complain WHERE Status='PENDING' OR Status='Reviewed'"; $rePayment=mysqli_query($con,$quPayment); $countPayment=mysqli_num_rows($rePayment); while($dataPayment=mysqli_fetch_array($rePayment)) { if($dataPayment['Status']=="Solved" || $dataPayment['Status']=="Closed") { $color="green"; } else { $color="blue"; } $compId=$dataPayment['Id']; $updateStatus="UPDATE complain SET Status='Reviewed' WHERE Id=$compId"; mysqli_query($con,$updateStatus); $usrName=getName($dataPayment['Userid']); echo"<tr>"; echo "<td>".$compId."</td>"; echo "<td><a href='check_txn_status.php?rechId=".$dataPayment['Rechargeid']."' target='_blank'>".$dataPayment['Rechargeid']."</a></td>"; echo "<td>".$dataPayment['Compdate']." ".$dataPayment['CompTime']."</td>"; echo "<td>".$usrName." [".$dataPayment['Userid']."]</td>"; echo "<td><p>".$dataPayment['Messege']."</p></td>"; echo "<td><p id='$color'>".$dataPayment['Status']."</p></td>"; echo "<td><a style='color:green;' href='complain_solved.php?compId=".$dataPayment['Id']."' target='_blank'>Solve Complain</a></td>"; echo"</tr>"; } if($countPayment<1) { echo "<tr><td colspan='10'><center><h3 style='color:red'>Data Not Found !</h3></center></td></tr>"; } ?> </table> </div> <div class="div1"> <?php if(isset($_POST['submit'])) { $fdateValue = $_POST['fdate']; $ldateValue = $_POST['ldate']; } else { $fdateValue = $date; $ldateValue = $date; } ?> <form method="post"> <input type="date" name="fdate" value="<?php echo $fdateValue; ?>"> <input type="date" name="ldate" value="<?php echo $ldateValue; ?>"> <select name="status"> <option>ALL</option> <option>Pending</option> <option>Reviewed</option> <option>Solved</option> </select> <input type="submit" name="submit" value="Submit" onclick='showLoader()'> </form> </div> <div class="div2"> <table cellpadding="20" border="2"> <tr> <th>Comp.Id</th> <th>Rechargeid</th> <th>Date Time</th> <th>User</th> <th>Discription</th> <th>Status</th> </tr> <?PHP if(isset($_POST['submit'])) { $fdate = $_POST['fdate']; $ldate = $_POST['ldate']; $status = $_POST['status']; $sl=0; if($status=="ALL") { $quPayment="SELECT * FROM complain WHERE Compdate>='$fdate' AND Compdate<='$ldate'"; } else { $quPayment="SELECT * FROM complain WHERE Status='$status' AND Compdate>='$fdate' AND Compdate<='$ldate'"; } $rePayment=mysqli_query($con,$quPayment); $countPayment=mysqli_num_rows($rePayment); while($dataPayment=mysqli_fetch_array($rePayment)) { if($dataPayment['Status']=="Solved") { $color="green"; } else { $color="blue"; } $usrName=getName($dataPayment['Userid']); echo"<tr>"; echo "<td>".$dataPayment['Id']."</td>"; echo "<td>".$dataPayment['Rechargeid']."</td>"; echo "<td>".$dataPayment['Compdate']." ".$dataPayment['CompTime']."</td>"; echo "<td>".$usrName." [".$dataPayment['Userid']."]</td>"; echo "<td>".$dataPayment['Solvedate']." ".$dataPayment['SolveTime']." ".$dataPayment['Messege']." ".$dataPayment['Responsemsg']."</td>"; echo "<td><p id='$color'>".$dataPayment['Status']."</p></td>"; echo"</tr>"; } if($countPayment<1) { echo "<tr><td colspan='10'><center><h3 style='color:red'>Data Not Found !</h3></center></td></tr>"; } } else { $sl=0; $quPayment="SELECT * FROM complain WHERE Compdate>='$date' AND Status='Solved'"; $rePayment=mysqli_query($con,$quPayment); $countPayment=mysqli_num_rows($rePayment); while($dataPayment=mysqli_fetch_array($rePayment)) { if($dataPayment['Status']=="Solved") { $color="green"; } else { $color="blue"; } $usrName=getName($dataPayment['Userid']); echo"<tr>"; echo "<td>".$dataPayment['Id']."</td>"; echo "<td>".$dataPayment['Rechargeid']."</td>"; echo "<td>".$dataPayment['Compdate']." ".$dataPayment['CompTime']."</td>"; echo "<td>".$usrName." [".$dataPayment['Userid']."]</td>"; echo "<td>".$dataPayment['Solvedate']." ".$dataPayment['SolveTime']." ".$dataPayment['Messege']." ".$dataPayment['Responsemsg']."</td>"; echo "<td><p id='$color'>".$dataPayment['Status']."</p></td>"; echo"</tr>"; } if($countPayment<1) { echo "<tr><td colspan='10'><center><h3 style='color:red'>Data Not Found !</h3></center></td></tr>"; } } ?> </table> </div> </div> </div> </div> <?php require'footer.php'; ?> </body> </html>
💾 保存文件
← 返回文件管理器