Server IP : 127.0.0.2 / Your IP : 3.149.2.199 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/admin/ |
Upload File : |
<?php ob_start(); session_start(); require_once('session-check.php'); require_once('include/db-config.php'); if(isset($_POST['OrderField']) and isset($_POST['ascOrDesc'])) $orderby = "Order by ".$_POST['OrderField']. " ".$_POST['ascOrDesc']; else $orderby = ""; ?> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"> <tr> <td class="tablehead"><strong>Sl#</strong></td> <td class="tablehead" nowrap="nowrap"><strong><a href="#" onClick="javascript:SortTable('OrderDate');">Inv. Date</a></strong></td> <td class="tablehead" nowrap="nowrap"><strong><a href="#" onClick="javascript:SortTable('CustomerName');">Customer Name</a></strong></td> <td class="tablehead" nowrap="nowrap"><strong><a href="#" onClick="javascript:SortTable('ShippingStatus');">Shipping Status</a></strong></td> <td class="tablehead" nowrap="nowrap"><strong><a href="#" onClick="javascript:SortTable('PaymentStatus');">Payment Status</a></strong></td> <td class="tablehead" nowrap><strong><a href="#" onClick="javascript:SortTable('Shipping_EmailID');">Email ID</a></strong></td> <td class="tablehead" nowrap="nowrap"><strong><a href="#" onClick="javascript:SortTable('TotalProductPrice');">Amount</a></strong></td> <td class="tablehead" nowrap="nowrap"><strong><a href="#" onClick="javascript:SortTable('InvoiceSent2Customer');">Mail</a></strong></td> <td class="tablehead" align="right"><strong>Options</strong></td> </tr> <?php //$sql="select tb1.OrderDate,tb1.ID,tb2.Billing_FirstName,tb2.Billing_SecondName,tb2.Shipping_EmailID,tb3.TotalProductPrice,tb3.ShippingPrice,tb3.TaxPrice from maintrainer_tbl_cart_master tb1 left join maintrainer_tbl_customer_information tb2 on tb1.ID = tb2.CartMasterID left join diamondtipblades_tbl_cart_payment tb3 on tb1.ID = tb3.CartMasterID order by ID desc"; $sql="select tb1.OrderDate, tb1.ShippingStatus, tb1.PaymentStatus, tb1.InvoiceSent2Customer, tb1.ID AS INVID,tb2.Billing_FirstName,tb2.Billing_LastName,tb2.Shipping_EmailID,tb3.TotalProductPrice from maintrainer_tbl_cart_master tb1 left join maintrainer_tbl_customer_information tb2 on tb1.ID = tb2.CartMasterID left join maintrainer_tbl_cart_payment tb3 on tb1.ID = tb3.CartMasterID ".$orderby; $result=mysqli_query($conn,$sql); $i=0; while($row=mysqli_fetch_array($result)) { $Price=$row['TotalProductPrice'] ; $ShippingStatus_lbl = ""; $ShippingStatus = $row['ShippingStatus']; if($ShippingStatus == 1) $ShippingStatus_lbl = "Incomplete"; else if($ShippingStatus == 2) $ShippingStatus_lbl = "Pending"; else if($ShippingStatus == 3) $ShippingStatus_lbl = "Processing"; else if($ShippingStatus == 4) $ShippingStatus_lbl = "Processed"; else if($ShippingStatus == 5) $ShippingStatus_lbl = "Shipping"; else if($ShippingStatus == 6) $ShippingStatus_lbl = "Shipped"; else if($ShippingStatus == 7) $ShippingStatus_lbl = "Partially Shipped"; else if($ShippingStatus == 8) $ShippingStatus_lbl = "Return"; else if($ShippingStatus == 9) $ShippingStatus_lbl = "Partially Returned"; else if($ShippingStatus == 10) $ShippingStatus_lbl = "Will Not Deliver"; else if($ShippingStatus == 11) $ShippingStatus_lbl = "Delivered"; else if($ShippingStatus == 12) $ShippingStatus_lbl = "Cancelled"; $PaymentStatus_lbl = ""; $PaymentStatus = $row['PaymentStatus']; if($PaymentStatus == 1) $PaymentStatus_lbl = "Incomplete"; else if($PaymentStatus == 2) $PaymentStatus_lbl = "Pending"; else if($PaymentStatus == 3) $PaymentStatus_lbl = "Processing"; else if($PaymentStatus == 4) $PaymentStatus_lbl = "Processed"; else if($PaymentStatus == 5) $PaymentStatus_lbl = "Will not Settle"; else if($PaymentStatus == 6) $PaymentStatus_lbl = "Rejected"; else if($PaymentStatus == 7) $PaymentStatus_lbl = "Returned"; else if($PaymentStatus == 8) $PaymentStatus_lbl = "Completed"; $InvoiceSent2Customer = $row['InvoiceSent2Customer']; ?> <tr onMouseOver="this.className='normalActive'" onMouseOut="this.className='normal'" class="normal"> <!--<tr><td colspan="8" style="height:1px;" class="tableline"></td></tr>--> <td class="tabletext"><?php echo ++$i; ?></td> <td class="tabletext"><?php echo date('M-d-Y', strtotime($row['OrderDate'])) ?></td> <td class="tabletext"><?php echo $row['Billing_FirstName'] ?> <?php echo $row['Billing_LastName'] ?></td> <td class="tabletext"><?php echo $ShippingStatus_lbl; ?></td> <td class="tabletext"><?php echo $PaymentStatus_lbl; ?></td> <td class="tabletext"><?php echo $row['Shipping_EmailID'] ?></td> <td class="tabletext"><?php echo "$".$row['TotalProductPrice']; ?></td> <td class="success-text"> <?php if($InvoiceSent2Customer == "1") echo "Sent"; ?> </td> <td align="right" class="edit-del-link"> <a href="invoice_status.php?id=<?php echo $row['INVID'] ;?>">status</a> | <a href="invoice-details.php?id=<?php echo $row['INVID'] ;?>" target="_blank">view</a> | <a onClick="return confirm('Are you sure you want to send email to custoemer <?php echo $row['Billing_FirstName']." ".$row['Billing_LastName'] ?>?')" href="invoice-details_email.php?id=<?php echo $row['INVID'];?>">email</a> | <a onClick="return confirm('Are you sure you want to delete invoice of <?php echo $row['Billing_FirstName']." ".$row['Billing_LastName'] ?>?')" href="invoice-delete-action.php?id=<?php echo $row['INVID'];?>">delete</a></td> </tr> <tr><td colspan="9" style="height:1px;" class="tableline"></td></tr> <?php } ?> </table> <!-- End ImageReady Slices -->