• No results found

Page 78 $condQuery

In document Car Parking System (Page 78-95)

." `user_name` = '$R[user_name]', `user_add1` = '$R[user_add1]', `user_add2` = '$R[user_add2]', `user_city` = '$R[user_city]', `user_state` = '$R[user_state]', `user_country` = '$R[user_country]', `user_email` = '$R[user_email]', `user_mobile` = '$R[user_mobile]', `user_gender` = '$R[user_gender]', `user_dob` = '$R[user_dob]', `user_image` = '$image_name'". $cond; $rs = mysql_query($SQL) or die(mysql_error());

Page - 79

//// Creating User Leaves /////

if($R[user_id] == "") {

$id = mysql_insert_id();

}

if($_SESSION['login']!=1)

{

header("Location:../login.php?msg=You are registered successfully. Login with your credential !!!");

exit;

}

else if($_SESSION['user_details']['user_level_id'] == 3) {

header("Location:../user.php?user_id=".$_SESSION['user_details']['user_id']."&msg=Your account updated successfully !!!");

exit;

}

Page - 80

}

#########Function for delete user##########3

function delete_user()

{

$SQL="SELECT * FROM user WHERE user_id = $_REQUEST[user_id]";

$rs=mysql_query($SQL);

$data=mysql_fetch_assoc($rs);

/////////Delete the record//////////

$SQL="DELETE FROM user WHERE user_id = $_REQUEST[user_id]";

mysql_query($SQL) or die(mysql_error());

//////////Delete the image///////////

if($data[user_image])

{

Page - 81

}

header("Location:../user-report.php?msg=Deleted Successfully.");

}

Page - 82

Coding for Contact.php

<?php include_once("includes/header.php"); ?>

<div class="crumb">

<p>You are Here:</p>

<ul>

<li class="first"><a href="#">Home</a></li>

<li><a href="#">About Us</a></li>

</ul> </div> <div class="clear"></div> <div id="content_sec"> <div class="col1"> <div class="contact">

<h4 class="heading colr">Contact Us</h4>

Page - 83

<ul class="forms">

<li class="txt">Name</li>

<li class="inputfield"><input name="in" type="text" class="bar" required/></li>

</ul>

<ul class="forms">

<li class="txt">Company</li>

<li class="inputfield"><input name="in" type="text" class="bar" required/></li>

</ul>

<ul class="forms">

<li class="txt">Email</li>

<li class="inputfield"><input name="in" type="text" class="bar" required/></li>

</ul>

<ul class="forms">

Page - 84

<li class="inputfield"><input name="in" type="text" class="bar" required/></li>

</ul>

<ul class="forms">

<li class="txt">Message</li>

<li class="textfield"><textarea name="in" cols="" rows="6" required></textarea></li>

</ul>

<div class="clear"></div>

<ul class="forms">

<li class="txt">&nbsp;</li>

<li class="textfield"><input type="submit" value="Submit" class="simplebtn"></li>

<li class="textfield"><input type="reset" value="Reset" class="resetbtn"></li>

</ul>

</form>

Page - 85

</div>

<div class="col2">

<div class="contactfinder">

<h4 class="heading colr">Where to find us.</h4>

<a href="#" class="mapcont"><img src="./images/map.gif" alt="" style="width:250px;"/></a>

<h4>Get in touch</h4>

<p>

You’ll find us offices sitting right in <br />

the town centre in the middle of Guildford, Surrey.<br />

<br /> 171 abc Street<br /> Lipsum<br /> Lorem<br /> GU5 3AB<br /> <br /><br />

Page - 86

+44 (0)2563 586215<br /> <a href="">[email protected]</a><br /> </p> </div> </div> </div> <?php include_once("includes/footer.php"); ?>

Page - 87

Coding for Contact-Confirmation.php

<?php include_once("includes/header.php"); ?>

<div class="crumb">

<p>You are Here:</p>

<ul>

<li class="first"><a href="#">Home</a></li>

<li><a href="#">About Us</a></li>

</ul> </div> <div class="clear"></div> <div id="content_sec"> <div class="col1"> <div class="contact">

<h4 class="heading colr">Contact Us</h4>

<div>Thank you for contacting us. We will get back to you soon !!!!</div>

Page - 88

</div>

</div>

<div class="col2">

<div class="contactfinder">

<h4 class="heading colr">Where to find us.</h4>

<a href="#" class="mapcont"><img src="./images/map.gif" alt="" style="width:250px;"/></a>

<h4>Get in touch</h4>

<p>

You’ll find us offices sitting right in <br />

the town centre in the middle of Guildford, Surrey.<br />

<br />

171 abc Street<br />

Lipsum<br />

Lorem<br />

Page - 89

<br /><br /> +44 (0)2563 586215<br /> <a href="">[email protected]</a><br /> </p> </div> </div> </div> <?php include_once("includes/footer.php"); ?>

Page - 90

Coding for Index.php

<?php include_once("includes/header.php"); include_once("includes/db_connect.php"); global $SERVER_PATH; ?> <div id="banner"> <div class="left"> <div class="anythingSlider"> <div class="wrapper"> <ul>

<li><a href="#"><img src="./images/banner2.jpg" alt="" /></a></li> <li><a href="#"><img src="./images/banner1.jpg" alt="" /></a></li> <li><a href="#"><img src="./images/banner3.jpg" alt="" /></a></li> </ul> </div> </div> </div> </div> <div class="clear"></div>

<script type="text/javascript" src="./js/cont_slide.js"></script> <div id="content_sec">

Page - 91

<div class="col1">

<h4 class="heading colr">About Car Parking System</h4> <div class="news">

<ul>

<li>

<span class="newsdate" style="margin:4px 0 0 231px">Car Parking</span> <h6 class="last">Manage Parkings</h6>

<a href="#" class="thumb"><img src="images/home1.jpg" alt="" style="height:163px; width:266px;"/></a>

<p>Ability to define Special Event days (days where employees cannot request time-off, are warned or notified on the calendar)</p>

<div class="news_links">

<a href="#" class="readmore left">Read More</a> </div>

</li>

<li class="last">

<span class="newsdate" style="margin:4px 0 0 224px">Parking Slots</span> <h6 class="last">Manage Parking Slots</h6>

<a href="#" class="thumb"><img src="images/home2.jpg" alt="" style="height:163px; width:266px;"/></a>

<p>

Add custom employee categories (i.e., departments, projects). Group your users by offices. Ability to display balance in hours or in days

</p>

<div class="news_links">

<a href="#" class="readmore left">Read More</a> </div>

Page - 92

</li>

<li>

<span class="newsdate" style="margin:4px 0 0 202px">User Management</span> <h6 class="last">Manage Users</h6>

<a href="#" class="thumb"><img src="images/home3.jpg" alt="" style="height:163px; width:266px;"/></a>

<p>

3 levels of users (Administrators, Managers, Employees), each with their own different permissions. Single Sign-On, LDAP, Active Directory support thru OneLogin.comNew

</p>

<div class="news_links">

<a href="#" class="readmore left">Read More</a> </div>

</li>

<li class="last">

<span class="newsdate" style="margin:4px 0 0 205px">Parking Charges</span> <h6 class="last">Manage Parking Charges</h6>

<a href="#" class="thumb"><img src="images/home4.jpg" alt="" style="height:163px; width:266px;"/></a>

<p>

Ability to choose different calendar year start dates for each user. Ability to upload your company logo to personalize the interface. Ability to set time-off, pending request and holiday

reminders </p>

<div class="news_links">

<a href="#" class="readmore left">Read More</a> </div>

Page - 93

</li> </ul> </div> </div> <div class="col2"> <?php include_once("includes/sidebar.php"); ?>

<div><img src="images/save_2.jpg" style="width: 250px"></div> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> <?php include_once("includes/footer.php"); ?>

Page - 94

Coding for List-Slots.php

<?php

include_once("includes/header.php");

include_once("includes/db_connect.php");

$SQL="SELECT * FROM `space` WHERE space_id = $_REQUEST[space_id]";

$rs=mysql_query($SQL) or die(mysql_error()); $data = mysql_fetch_assoc($rs); ?> <style> .parking_space { float:left; padding-top:60px; width:280px; font-size:20px; color:#101746;

Page - 95

In document Car Parking System (Page 78-95)

Related documents