<?php require_once('php/connect.php'); ?>
<?php include ('php/access.php');?>
<?php include ('php/nav.php');?>
<?php
$query_Logos = "SELECT Main_Logos.cid, Main_Logos.logo, Main_Customers.id, Main_Customers.date, Main_Customers.first_name, Main_Customers.last_name, Main_Customers.email_address, Main_Customers.phone_number
FROM Main_Customers
JOIN Main_Logos
ON Main_Logos.cid = Main_Customers.id
ORDER BY Main_Customers.date DESC";
$Logos = mysqli_query($LogoMasters, $query_Logos);
$totalRows_Logos = mysqli_num_rows($Logos);
if($totalRows_Logos > 0){
while($row_Logos = mysqli_fetch_array($Logos)){
$Logos_CustomerID = $row_Logos['id'];
$Logos_CustomerDate = $row_Logos['date'];
$oLogos_CustomerDate = strtotime($Logos_CustomerDate);
$sLogos_CustomerDate = date("m/d/y",$oLogos_CustomerDate);
$Logos_CustomerName = $row_Logos['first_name'].' '.$row_Logos['last_name'];
$Logos_CustomerEmail = $row_Logos['email_address'];
$Logos_CustomerPhone = $row_Logos['phone_number'];
$Logos_Image = $row_Logos['logo'];
$ext = pathinfo($Logos_Image, PATHINFO_EXTENSION);
if($ext == 'pdf'){$ShowImg = '../logos/pdf.jpg';}
elseif($ext == 'eps'){
$ShowImg = '../logos/Eps.png';}
elseif($ext == 'ai'){$ShowImg = '../logos/ai.jpg';}
elseif($ext == 'svg'){$ShowImg = '../logos/svg.jpg';}
else {
$ShowImg = '../logos/'.$Logos_Image.'';
}
$CustomerLogo_Output .= '<tr>
<td height="50" align="left" valign="middle">'.$sLogos_CustomerDate.'</td>
<td align="left" valign="middle"><img src="'.$ShowImg.'" width="100" alt=""/></td>
<td align="left" valign="middle">'.$Logos_CustomerName.'</br>'.$Logos_CustomerEmail.'</br>'.$Logos_CustomerPhone.'</td>
<td align="center" valign="middle"><a href="logos.php?cid='.$Logos_CustomerID.'"><img src="https://www.logomastersintl.com/img/view-order-icon.png" width="30" alt=""/></a></td>
</tr>';
}}
?>
<!doctype html>
<html><head>
<meta charset="utf-8">
<title>Manage Logos - Logo Masters Intl</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="shadow">
<tr>
<td height="100" colspan="2" align="center" valign="middle" bgcolor="#000066"><table width="850" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="324" rowspan="2"><span class="cpanel_hdr">cPanel</span></td>
<td width="526" align="right" valign="top" class="whitefont_1"><a style="color: #FFF" href="<?php echo $logoutAction; ?>"><strong>LOGOUT</strong></a></td>
</tr>
<tr>
<td align="center" class="whitefont_2">Logo Masters International, Inc.</td>
</tr>
</table></td>
</tr>
<tr>
<td width="249" height="500" align="center" valign="top" bgcolor="#ebe6e6"><?php echo $Nav_Output; ?></td>
<td width="651" align="center" valign="top" bgcolor="#FFFFFF"><table width="625" border="0" cellspacing="2" cellpadding="2">
<tr>
<td align="left" valign="middle" bgcolor="#FFFFFF" class="font_1"><table width="625" border="0" cellspacing="2" cellpadding="2">
<tr>
<td align="left" valign="middle" class="font_1"><h1>Mange Customer Logos</h1></td>
</tr>
<tr>
<td align="left" valign="middle" class="font_1"><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td width="30%" align="left" valign="middle"><strong>Date</strong></td>
<td width="30%" align="left" valign="middle"><strong>Logo Uploaded</strong></td>
<td width="30%" align="left" valign="middle"><strong>Customer Name</strong></td>
<td width="10%" align="right" valign="middle"> </td>
</tr>
<?php echo $CustomerLogo_Output; ?>
</tbody>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<script>
$(document).ready(function(){
$('ul.tabs li').click(function(){
var tab_id = $(this).attr('data-tab');
$('ul.tabs li').removeClass('current');
$('.tab-content').removeClass('current');
$(this).addClass('current');
$("#"+tab_id).addClass('current');
})
})
</script>
</body>
</html> |