In this project, we created a separate small app (web app) for customers to login to the system and see site photos (site progress in photos). In this option, we select a customer / site that we need to upload photos and upload JPG photos one by one to the system. Customers can see these photos by login in to the customer web app.
Source code of photo_upload.php file:
<?php include("inc/page_header.php"); ?>
<?php
if(check('Upload Photos') != 'Valid'){
header("Location: sys_home.php?pre=error");
ob_end_flush();
}
?>
<div class="wrapper">
<div class="s100">
<div class="boxtitle">Customers</div>
<table width="99%" cellpadding="3px" cellspacing="1px">
<tr id="headrow">
<td>ID</td>
<td>Name</td>
<td>Address</td>
<td>Telephone</td>
<td>Fax</td>
<td>Actions</td>
</tr>
<?php
$q = mysql_query("SELECT * FROM customers");
while($r = mysql_fetch_assoc($q)){
echo "<tr>";
echo "<td id=\"sh4\">{$r['Customer_ID']}</td>";
echo "<td id=\"sh3\">{$r['Customer_Title']} {$r['Customer_Name']}</td>";
echo "<td id=\"sh4\">{$r['Customer_Address']}, {$r['Customer_Address_2']}, {$r['Customer_City']}</td>";
echo "<td id=\"sh3\">{$r['Customer_Telephone']}</td>";
echo "<td id=\"sh4\">{$r['Customer_Fax']}</td>";
echo "<td id=\"sh3\">
<a href=\"photo_upload.php?id={$r['Customer_ID']}\" >Upload Photos</a>
</td>";
echo "</tr>";
}
?>
</table>
</div>
</div>
<?php include("inc/page_footer.php"); ?>
I am also looking this way of information!
ReplyDeleteITC Share Price