Exemplo n.º 1
0
 function DefaultSearch($status, $priority, $category)
 {
     $this->status = $status;
     $this->priority = $priority;
     $this->category = $category;
     $this->res = ADAO::getDefaultSearchList($this->status, $this->priority, $this->category);
 }
Exemplo n.º 2
0
 public static function addtoCartLogged($product, $category)
 {
     $item_details = ADAO::getItemDetailsById($product['id']);
     $cart = $product['id'] . $product['cat'];
     $user_id = $_SESSION['id'];
     ADAO::inserCartItemsLoggedIn($user_id, $cart);
     $message = "Addded to Cart";
     return $message;
 }
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/UserFunctions.php";
$auth = UserFunctions::isUserAuthenticated();
$item_name = $_POST['item_name'];
$item_id = $_POST['item_id'];
$cat = $_POST['cat'];
$cost = $_POST['cost'];
$quantity = $_POST['quantity'];
$subtotal = $_POST['subtotal'];
$zip = $_POST['zip'];
$shipping_option = $_POST['shipping_option'];
$sales_tax = ADAO::getSalesTaxByZip($zip);
$shipping_values = ADAO::getShippingDetailsById($shipping_option);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sustain Brand</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/colorbox.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.colorbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
                        
						
});
Exemplo n.º 4
0
<?php

session_start();
//include('authen.php');
require_once 'includes/ADAO.php';
if (isset($_POST['submit'])) {
    $res = ADAO::changePassword($_POST['opwd'], $_POST['npwd']);
    if ($res == 1) {
        $message = "Password Updated Successfully";
    } else {
        $message = "Error!!,Please try Again";
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin-Home</title>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css" />
<script type="text/javascript" src="js/chrome.js"></script>
<script>
function check(frm){
	var error="";
	var ret=true;
if((frm.opwd.value=="")||(frm.npwd.value=="")||(frm.cpwd.value=="")){
	error+="Please fill all the fields\n";
	
}
if(frm.npwd.value!=frm.cpwd.value){
Exemplo n.º 5
0
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/projectConstant.php";
$id = $_SESSION['id'];
$contact = $_POST['contact'];
$city = $_POST['city'];
$distt = $_POST['distt'];
$state = $_POST['state'];
$country = $_POST['country'];
$address = $_POST['address'];
$bloodgroup = $_POST['bloodgroup'];
$res = ADAO::updateUsersProfile($id, $contact, $city, $distt, $state, $country, $address, $bloodgroup);
if ($res == 1) {
    ?>
	<script>
	alert(" Your Profile has been Successfully Updated");
	window.location.href="edit_user_profile.php";
	</script>
    <?php 
} else {
    ?>
	
	<script>
	alert("Error!!Cannot Update the details");
	window.location.href="edit_user_profile.php";
	</script>
	<?php 
}
<?php

require_once "includes/ADAO.php";
$id = $_POST['id'];
$cname = $_POST['cname'];
$pr = $_POST['pr'];
$res = ADAO::updateClassifiedsPriority($id, $cname, $pr);
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script type="text/javascript "src="js/jquery.min.js"></script>

</head>

<body>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<?php 
if (UserFunctions::isUserAuthenticated()) {
    $details = ADAO::getUserdetailsById($_SESSION['id']);
    echo '<tr><td><table width="220" height="30" border="0" align="right" cellpadding="0" cellspacing="0">
        <tr>
          <td width="110"><span style="color:#fff;font-size:12px">Welcome ' . $details['name'] . '</span></td>
		   <td width="10"><span style="color:#fff">|</span></td>
          <td width="100"> <a href="logout.php" style="color:#fff;text-decoration:none;font-size:12px">Logout</a></td>
		  </tr>
		  </table></td></tr>
		   ';
} else {
    ?>

  <tr>
    <td height="30">
    <form id="form1" name="form1" method="post" action="checkUsersLogin.php">
      <table width="936" height="25" border="0" align="right" cellpadding="0" cellspacing="0">
Exemplo n.º 8
0
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/UserFunctions.php";
$auth = UserFunctions::isUserAuthenticated();
if ($auth) {
    $userDetails = ADAO::getUserDetails($_SESSION['id']);
}
$res = ADAO::FrontPageProducts();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sustain Brand</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/colorbox.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.colorbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
                         $(".ajax").colorbox();
						
});


</script>
</head>
<body>
<div id="wrapper">
Exemplo n.º 9
0
    ?>
" class="text"><?php 
    echo ADAO::getBrandById($row['brand_id']);
    ?>
</span><select size="1" class="editbox" id="brand_input_<?php 
    echo $row['id'];
    ?>
" ><option value="<?php 
    echo $row['brand_id'];
    ?>
" selected="selected"><?php 
    echo ADAO::getBrandById($row['brand_id']);
    ?>
</option>
                                              <?php 
    $res1 = ADAO::viewBrands();
    foreach ($res1 as $row1) {
        ?>
<option value="<?php 
        echo $row1['id'];
        ?>
"><?php 
        echo $row1['value'];
        ?>
</option>
                                                 <?php 
    }
    ?>
                                                  
                                                </select></td>
                         <td class="<?php 
Exemplo n.º 10
0
$height = $_POST['height'];
$qual = $_POST['qual'];
$cno = $_POST['cno'];
$profile = $_FILES["file"]["name"];
$des = $_POST['des'];
$profile_file_path_thumb = "matrimony";
$profile_path = $profile_file_path_thumb . "/" . $profile;
move_uploaded_file($_FILES["file"]["tmp_name"], $profile_file_path_thumb . "/" . $profile);
$image->load($profile_file_path_thumb . "/" . $profile);
$image->resize(75, 75);
$image->save($profile_file_path_thumb . "/" . $profile);
chmod($profile_file_path_thumb . "/" . $profile, 0755);
$user_id = $_SESSION['id'];
$status = 1;
$priority = 3;
$res = ADAO::postMatrimonyProfile($user_id, $cat_id, $cat, $caste, $dob, $age, $height, $qual, $des, $cno, $profile_path, $status, $priority);
if ($res == 1) {
    ?>
	<script>
	alert("Congratulations, Your Profile has been Posted Successfully ");
	window.location.href="home.php";
	</script>
    <?php 
} else {
    ?>
	
	<script>
	alert("Error!!");
	window.location.href="home.php";
	</script>
	<?php 
Exemplo n.º 11
0
<?php

require_once "administrator/includes/ADAO.php";
$cat_id = 1004;
$bt = $_POST['bt'];
$cname = $_POST['cname'];
$curl = $_POST['crul'];
$contact = $_POST['contact'];
$city = $_POST['city'];
$distt = $_POST['distt'];
$state = $_POST['state'];
$address = $_POST['address'];
$cdes = $_POST['cdes'];
$res = ADAO::postAds($cat_id, $bt, $cname, $curl, $contact, $city, $distt, $state, $address, $cdes);
if ($res == 1) {
    ?>
	<script>
	alert("Congratulations, Your Ad has been Posted Successfully ");
	window.location.href="postad.php";
	</script>
    <?php 
} else {
    ?>
	
	<script>
	alert("Error!!");
	window.location.href="postad.php";
	</script>
	<?php 
}
?>
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/UserFunctions.php";
$auth = UserFunctions::isUserAuthenticated();
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['city'];
$zip = $_POST['zip'];
$tel = $_POST['tel'];
$email = $_POST['email'];
$row = ADAO::getSalesTaxByZip($zip);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sustain Brand</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<div class="left-section">
<div class="logo"><img src="images/logo.png" alt="logo" /></div>
<div class="left-nav">
<b>Sustain Brand</b>
<ul>
<li><a href="#">AMISH NOODLES</a></li>
Exemplo n.º 13
0
<?php

require_once "includes/ADAO.php";
$check_id = $_POST['id'];
$res = ADAO::deleteAdminAccount($check_id);
if ($res = 1) {
    ?>
    <script>
    alert("Account Deleted Successfully");
    window.location.href="admin_account_manager.php";
	</script>
    <?php 
} else {
    ?>
	 <script>
  alert("Error,There was some Problem,Please Try again");
    window.location.href="admin_account_manager.php";
	</script>
    <?php 
}
Exemplo n.º 14
0
                         <option value="<?php 
    echo $row['id'];
    ?>
"><?php 
    echo $row['value'];
    ?>
</option><?php 
}
?>
</select></td>
                         </tr>
                          <tr>
                         <td><label for="name">Select Category*</label></td>
                         <td><select name="cat" id="brand" size="1"><option value="0" selected="selected">Select</option>
                         <?php 
$res1 = ADAO::viewCategory();
foreach ($res1 as $row1) {
    ?>
                         <option value="<?php 
    echo $row1['id'];
    ?>
"><?php 
    echo $row1['value'];
    ?>
</option><?php 
}
?>
</select></td>
                         </tr>
                          <tr>
                         <td><label for="name">Product Qtnty Specs*</label></td>
Exemplo n.º 15
0
        foreach ($res2 as $row2) {
            ?>
<li><a href="show_products.php?id_main=<?php 
            echo $row2['id'];
            ?>
&brand_id_main=<?php 
            echo $row2['brand_id'];
            ?>
"><?php 
            echo $row2['value'];
            ?>
</a>
<?php 
            if (isset($_GET['id_main']) && isset($_GET['brand_id_main']) && $row2['id'] == $_GET['id_main']) {
                if (ADAO::isProductsExists($_GET['id_main'])) {
                    $res3 = ADAO::getAllProductsByCat($row2['id'], $brand_id_main);
                    if (is_array($res3)) {
                        ?>
     
<ul>
<?php 
                        foreach ($res3 as $row3) {
                            ?>
<li><a href="product_detail.php?id=<?php 
                            echo $row3['id'];
                            ?>
&cat_id=<?php 
                            echo $row3['cat_id'];
                            ?>
&brand_id=<?php 
                            echo $row3['brand_id'];
Exemplo n.º 16
0
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/projectConstant.php";
$cat_id = 1001;
$name = $_POST['name'];
$caste = $_POST['caste'];
$priority = 3;
$user_id = $_SESSION['id'];
$res = ADAO::postCommunityProfile($user_id, $cat_id, $caste, $priority);
if ($res == 1) {
    ?>
	<script>
	alert("Congratulations, Your Community has been Posted Successfully ");
	window.location.href="home.php";
	</script>
    <?php 
} else {
    ?>
	
	<script>
	alert("Error!!");
	window.location.href="home.php";
	</script>
	<?php 
}
Exemplo n.º 17
0
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/UserFunctions.php";
$auth = UserFunctions::isUserAuthenticated();
if ($auth) {
    $userDetails = ADAO::getUserDetails($_SESSION['id']);
}
$row = ADAO::viewProductDetail($_GET['id'], $_GET['cat_id'], $_GET['brand_id']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sustain Brand</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<link href="css/colorbox.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.colorbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
                         $(".ajax").colorbox();
});


</script>
<script>
$(document).ready(function(){
	$(".individual_cost").click(function(){
Exemplo n.º 18
0
<?php

session_start();
require_once 'includes/RoleManager.php';
require_once 'includes/ADAO.php';
$roleAssigned = new RoleManager($_SESSION['role']);
$roleAssigned->getAvailableMenu();
$menuName = $roleAssigned->getMenuName();
$menuUrl = $roleAssigned->getMenuUrl();
if (isset($_POST['submit'])) {
    $res = ADAO::createSubAdminAccount($_POST['name'], $_POST['username'], $_POST['password']);
    switch ($res) {
        case 1:
            $message = "Account Created Successfully";
            break;
        case 2:
            $message = "Username/User already Exists,Please try with other Username";
            break;
    }
} else {
}
//include('authen.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin-Home</title>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css" />
<script type="text/javascript" src="js/chrome.js"></script>
Exemplo n.º 19
0
<?php

ob_start();
session_start();
require_once "administrator/includes/UserLoginManager.php";
require_once "administrator/includes/ADAO.php";
$redirectTo = "index.php?error_code=1002233986";
$login = $_POST['username'];
$pass = $_POST['password'];
$loginInfo = UsersLogin::Authenticate($login, $pass);
if ($loginInfo->getID() != 0) {
    $cart = @$_SESSION['cart'];
    if ($cart) {
        ADAO::insertCartItemsOnLogin($loginInfo->getID(), $cart);
    }
    $_SESSION['id'] = $loginInfo->getID();
    $redirectTo = HOME_USERS;
}
header("location:" . $redirectTo);
Exemplo n.º 20
0
<?php

session_start();
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/UserFunctions.php";
$auth = UserFunctions::isUserAuthenticated();
$id_main = $_GET['id_main'];
$brand_id_main = $_GET['brand_id_main'];
if ($auth) {
    $userDetails = ADAO::getUserDetails($_SESSION['id']);
}
$details = ADAO::getAllProductsByCat($id_main, $brand_id_main);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sustain Brand</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/colorbox.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.colorbox.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
                         $(".ajax").colorbox();
						
});


</script>
<script>
Exemplo n.º 21
0
<?php

require_once "administrator/includes/ADAO.php";
$res = ADAO::getDefaultCommunityList();
?>
<table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/bodytop.jpg" width="1000" height="8" /></td>
  </tr>
  <tr>
    <td background="images/bodybg.jpg"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="619">
        <?php 
foreach ($res as $row) {
    $det = ADAO::getUserdetailsById($row['user_id']);
    ?>
        <table width="600" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td width="600" height="112"><table width="590" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="5" colspan="3"><img src="images/searchbartop.jpg" width="590" height="6" /></td>
              </tr>
              <tr>
                <td width="2" height="110" background="images/searchbarlft.jpg"></td>
                <td width="586" height="110" background="images/searchbarbodybg.jpg"><table width="570" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="163" rowspan="2">&nbsp;</td>
                      <td width="407" height="33"><table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="292"><div id="add_title"><h3><a href="#"><?php 
Exemplo n.º 22
0
    <td width="151"><strong>Item</strong></td>
    <td width="99"><strong>Type</strong></td>
    <td width="115"><strong>Item Description</strong></td>
    <td width="46"><strong>Price</strong></td>
    <td width="79"><strong>Quantity</strong></td>
    <td width="66"><strong>Sub Total</strong></td>
    <td width="28">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="7"><img src="images/orange-divider.jpg" width="600" height="2" /></td>
    </tr>
    <?php 
            foreach ($contents1 as $item_Details => $qty) {
                $item_id = substr($item_Details, 0, strlen($item_Details) - 1);
                $cat = substr($item_Details, -1);
                $row = ADAO::viewBasketItemDetails($item_id, $cat);
                ?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr id="row_<?php 
                echo $row['id'] . $cat;
                ?>
">
    <td><img src="images/basket-review-product-img.jpg" alt="" /><input type="hidden" name="item_id[]" value="<?php 
Exemplo n.º 23
0
require_once "administrator/includes/UserFunctions.php";
require_once "administrator/includes/ADAO.php";
require_once "administrator/includes/projectConstant.php";
$cat_id = 1004;
$banner = UserFunctions::getBannerName($cat_id);
$key = $_GET['search_key'];
$cat = $_GET['category'];
$city = $_GET['city'];
$res = ADAO::getClassifiedSearchCase($key, $cat, $city);
switch ($res) {
    case 1:
        $result = ADAO::getClassifiedsSearchPriorityWise($key, $cat, $city);
        break;
    case 3:
        $result = ADAO::getClassifiedsSearchDirect($key, $cat, $city);
        break;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Social Search Book</title>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen"/>
<style type="text/css">
<!--
body {
	background-image: url(images/pgbg.jpg);
	background-color: #EFEFEF;
Exemplo n.º 24
0
<?php

require_once "includes/ADAO.php";
$check_id = $_POST['id'];
$res = ADAO::deleteCategories($check_id);
if ($res = 1) {
    ?>
    <script>
    alert("Category Deleted Successfully");
    window.location.href="view_categories.php";
	</script>
    <?php 
} else {
    ?>
	 <script>
  alert("Error,There was some Problem,Please Try again");
    window.location.href="view_categories.php";
	</script>
    <?php 
}
Exemplo n.º 25
0
$email = $_POST['email'];
$contact = $_POST['contact'];
$city = $_POST['city'];
$distt = $_POST['distt'];
$state = $_POST['state'];
$country = $_POST['country'];
$address = $_POST['address'];
$bloodgroup = $_POST['bloodgroup'];
if (isset($_POST['donor'])) {
    $donor = "yes";
} else {
    $donor = "no";
}
$role = 7;
$status = 0;
$res = ADAO::createUsersAccount($username, $password, $name, $email, $contact, $city, $distt, $state, $country, $address, $role, $status, $bloodgroup, $donor);
if ($res == 1) {
    ?>
	<script>
	alert("Congratulations, Your Account has been Successfully Created");
	window.location.href="login-signup.php";
	</script>
    <?php 
} else {
    ?>
	
	<script>
	alert("Error!!Username already taken,Please try with some other Username");
	window.location.href="login-signup.php";
	</script>
	<?php 
<?php

require_once "administrator/includes/DefaultSearch.php";
$matrimony_details = ADAO::getMatrimonyDetailsByUserId($_SESSION['id']);
?>
<script type="text/javascript">
$(document).ready(function(){
	$("#logo").click(function(){
	$("#file").hide();
	$("#logo").hide();
	$("#file_upload").show();
	});
});
</script>


 
  <table width="1000" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/bodytop.jpg" width="1000" height="8" /></td>
      </tr>
      <tr>
        <td background="images/bodybg.jpg"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="426"><table width="422" border="0" align="left" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="422" height="50" valign="middle"><table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="427"><span class="style7">Modify your Profile for Matrimonial Match </span></td>
Exemplo n.º 27
0
<?php

session_start();
require_once 'includes/RoleManager.php';
require_once 'includes/ADAO.php';
require_once 'includes/UserFunctions.php';
$roleAssigned = new RoleManager($_SESSION['role']);
$roleAssigned->getAvailableMenu();
$menuName = $roleAssigned->getMenuName();
$menuUrl = $roleAssigned->getMenuUrl();
$res = ADAO::getUsersListApproval();
//include('authen.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin-Home</title>
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen" />
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css" />
<script type="text/javascript" src="js/chrome.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
	$(".edit_link").click(function(){
	
		var id=$(this).attr("id");

		$("#name_"+id).hide();
        $("#username_"+id).hide();
Exemplo n.º 28
0
 public static function inserCartItemsLoggedIn($user_id, $cart)
 {
     try {
         $dbh = new PDO(DB_DSN, DB_LOGIN, DB_PASSWORD);
     } catch (PDOException $e) {
         print "Error!: " . $e->getMessage() . "<br/>";
         die;
     }
     $item_id = substr($cart, 0, strlen($cart) - 1);
     $cat = substr($cart, -1);
     $cost = ADAO::getCostofItemByCat($item_id, $cat);
     //echo "Cost is ". $cost;
     $stmt = $dbh->prepare("INSERT into t_users_cart values(NULL," . $user_id . "," . $item_id . "," . $cat . "," . $cost . ")");
     $stmt->execute();
     $dbh = null;
 }
<?php

require_once "administrator/includes/DefaultSearch.php";
$property_details = ADAO::getPropertyDetailsByUserId($_SESSION['id']);
?>
 
  <table width="1000" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/bodytop.jpg" width="1000" height="8" /></td>
      </tr>
      <tr>
        <td background="images/bodybg.jpg"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="426"><table width="422" border="0" align="left" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="422" height="50" valign="middle"><table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="427"><span class="style7">Modify your Profile for Property</span></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="3" background="images/login_divider.jpg"></td>
                  </tr>
                  <tr>
                    <td height="19">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="400"><form id="ad_form" name="ad_form" method="post" action="post_users_rent.php" onsubmit="return checkValidation(ad_form)">
Exemplo n.º 30
0
                          <td width="1" background="images/searchbarlft.jpg"><img src="images/searchbarlft.jpg" width="2" height="2" /></td>
                          <td width="398" height="110" background="images/searchbarbodybgbig.jpg"><table width="380" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td width="154" height="35">Name</td>
                              <td width="4" height="35">&nbsp;</td>
                              <td width="222" height="35"><label>
                                <input name="name" type="text" class="tb7"  />
                              </label></td>
                            </tr>
                            <tr>
                              <td height="35">Business Type</td>
                              <td height="35">&nbsp;</td>
                              <td height="35"><label>
                              <select name="bt" size="1" id="category" class="selectfield"><option selected="selected" value="0">Select</option>
            <?php 
$res = ADAO::getSearchCategory();
foreach ($res as $row) {
    echo '<option value="' . $row['id'] . '">' . $row['value'] . '</option>';
}
?>
            </select>
                              </label></td>
                            </tr>
                         
                            <tr>
                              <td height="35">Company Name</td>
                              <td height="35">&nbsp;</td>
                              <td height="35"><label>
                                <input type="text" name="cname" class="tb7" />
                              </label></td>
                            </tr>