function display_category_usa($type = "all", $linkurl = 'subcategory.php', $selected = "") { $project = new project(); $service = new service(); $rentorhire = new rentorhire(); $jobs = new jobs(); $category = $this->getsubcategory(1); if (is_array($category)) { echo '<table cellspacing="4" class="sub_categories" width="100%">'; echo '<tr>'; $countTd = 0; foreach ($category as $row) { if ($countTd % 4 == 0 && $countTd > 1) { echo "</tr><tr>"; } $countTd++; echo '<td '; if ($type == "jobs" && $selected == $row['seo_url']) { echo "class='redBg'"; } else { echo "class='whiteBg'"; } echo ' ><div><div><a href="' . $linkurl . '?seo_url=' . $row['seo_url'] . '" style="text-decoration:none;">'; if ($row['markbold'] == "yes") { echo "<strong>" . $row['name'] . "</strong> "; } else { echo $row['name'] . " "; } echo "<font color='green'>"; if ($type == "services") { echo $service->numofServicebysubCat($row['id']); } else { if ($type == "rentorhire") { echo $rentorhire->numofrentorhirebysubCat($row['id']); } else { if ($type = "jobs") { echo $jobs->numofjobsbysubCat($row['id']); } else { if ($type == "all") { echo $project->numOfProjectBySubCat($row['id']) . "," . $rentorhire->numofrentorhirebysubCat($row['id']) . "," . $jobs->numofjobsbysubCat($row['id']) . "," . $service->numofServicebysubCat($row['id']); } } } } echo "</font>"; echo '</a></div></div></td>'; //if($countTd%4!=0) echo '<td width="20"></td>'; } echo '</tr>'; echo '</table>'; } else { echo "No Sub Category Found!"; } }
<?php include "header.php"; include "subheader.php"; if ($_GET['rid'] != "") { $objrentorhire = new rentorhire(); $rentorhire = $objrentorhire->getbyid($_GET['rid']); if ($_SESSION['foongigs_userid'] != $rentorhire['userid']) { header("Location: index.php"); } ?> <script> function loadsubcategory(obj) { loadAjax('/ajax/rentorhire/subcategory.php?id='+obj.value,'div_subcategoryproduct'); } function changetextstatus(obj,id) { document.getElementById(id).disabled=!obj.checked; document.getElementById(id).value="0.0"; } </script> <div style="width: 580px; margin-left: 50px;" > <h3 class="heading">Edit Rent or Hire</h3> <div style="float: right; padding-bottom: 0; margin-bottom: 0;">Not a member? please <a href="signup.php">sign up</a> first</div>
<?php session_start(); require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/rentorhire.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php"; $objuser = new user(); $objuser->checkLoginAjax(); $objrentorhire = new rentorhire(); $objrentorhire->action($_GET['action'], $_GET['rid']); if ($_GET['action'] == "block") { $mes = "Rent or Hire has been Blocked.."; } else { $mes = "Rent or Hire has been Activated.."; } echo "script: messageBox('" . $mes . "',function() { window.location='account.php'; } );";
?> | <a href="view_projects.php?category=<?php echo $cat['seo_url']; ?> ">View More</a> <?php } ?> </p> <br /> <h3 class="heading"> Featured Rent of Hire </h3> <?php $rentorhire = new rentorhire(); $rentorhire_status = $rentorhire->display_rentofhire(1, $cat['id'], 0, 10, "order by rand()"); ?> <p align="right"> <?php if ($user_check->checklogin() && strtoupper($_SESSION['foongigs_usertype']) == "SEEKER") { echo '<a href="post_rentorhire.php" onclick="javascript:messageBox(\'Only Provider can post rent or hire\'); return false;">Post things rent or hire</a>'; } else { if ($user_check->checklogin() && strtoupper($_SESSION['foongigs_usertype']) == "PROVIDER") { echo '<a href="post_rentorhire.php"> Post things rent or hire </a>'; } else { echo '<a href="post_rentorhire.php" onclick="javascript:messageBox(\'Please Login \'); return false;">Post things rent or hire</a>'; } } if ($rentorhire_status) { ?>
} var arv = checkBoxArr.toString(); document.getElementById('selectcheck').value=arv; document.getElementById('type').value="delete"; return confirm("Are You Sure ?"); } </script> <?php $mysql = new mysql(); //$common = new common(); $user = new user(); $rentorhire = new rentorhire(); if ($_GET['wtdo'] == 'edit_job' && $_POST['category'] != "") { $add = $project->updatepage($_POST['filename'], $_POST['menuname'], $_POST['title'], $_POST['metakeywords'], $_POST['metadescription'], $_POST['FCKeditor1']); } ?> <table align="left" width="100%" style="font-family:Arial, Helvetica, sans-serif; font-weight:bold; color:#FFFFFF; font-size:16px;"> <tr><td colspan="6" align="center" valign="middle"> <table align="center" > <tr> <td><img src="images/listmain.png" /></td> <td style="color:#003399; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:18px;" align="center" valign="middle"> List of Rent or Hire Items</td> </tr>
<?php include "header.php"; include "subheader.php"; require_once "common/class/mysql.class.php"; require_once "common/class/service.class.php"; $rentorhire = new rentorhire(); $rentorhire_data = $rentorhire->getbyid($_GET['id']); //print_r($rentorhire_data); $user = new user(); ?> <h3 class="heading"> <?php echo $rentorhire_data['name']; ?> - Rent or Hire</h3> <div style="margin:3px 0 0 0;"><strong>Rent or Hire ID:</strong> <?php echo $_GET['id']; ?> </div> <table border="0" class="tableDetails" align="center"> <tr height="20"></tr> <tr class="fir"> <th> Title : </th> <td><b><?php echo $rentorhire_data['name']; ?> </b></td> </tr> <tr> <th width="200"> Status :</th> <td> <?php echo $rentorhire_data['status'];
<?php include "header.php"; include "subheader.php"; $transaction = new transaction(); $user = new user(); $user_data = $user->getbyid($user->getloggedid()); $balance = $transaction->balance(); if ($user_data['type'] == "seeker" || $user_data['type'] == "provider") { ?> <div style="height:20px; clear:both;"></div> <strong>List of All Rent or Hire You have Posted</strong> <?php $objrentorhire = new rentorhire(); $rentorhirelist = $objrentorhire->get_all_rentorhire_by_userid($_SESSION['foongigs_userid']); $objmaincat = new maincategory(); $objcommon = new common(); if (is_array($rentorhirelist)) { ?> <div id="account_open_projects" style="clear:both; width:100%;"> <table width="100%" > <tr class="heading"><td>Rent or Hire Title</td><td>Posted On</td><td>Status</td><td>Edit</td><td>Option</td></tr> <?php foreach ($rentorhirelist as $data) { echo '<tr>'; echo '<td><a href="rentofhire_view.php?id=' . $data['id'] . '">' . $data['name'] . '</a></td>'; echo '<td>' . $data['posted_time'] . '</td>'; echo '<td>' . $objrentorhire->getstatus($data['id']) . '</td>'; echo "<td><a href='edit_rentorhire.php?rid=" . $data['id'] . "'>Edit</a></td>"; echo "<td>" . $objrentorhire->getoption($data['id']) . "</td>";
<?php require $_SERVER['DOCUMENT_ROOT'] . "/common/class/rentorhire.class.php"; $rentorhire = new rentorhire(); $rentorhire->display_subcategory($_GET['id']); //print_r($_GET); //echo $_GET['id'];
</font> </p> <h3 class="heading">Rent or Hire </h3> <?php if ($_GET['seo_url'] == "") { $maincategory = new maincategory(); $maincategory->display_category_usa("rentorhire", "rentorhire.php"); } else { $rentorhire = new rentorhire(); $rentorhire->display_rentorhire_category(); } ?> <br /> <h3 class="heading"> Featured Rent or Hire </h3> <?php $rentorhire = new rentorhire(); if ($_GET['seo_url'] == "") { $rentorhire_status = $rentorhire->display_rentofhire(1, 0, 0, 10, ""); } else { if ($_GET['rentorhire_seo_url'] == "") { $rentorhire_status = $rentorhire->display_rentofhire(1, $cat['id'], "", 0, 10, ""); } else { $rentorhire_status = $rentorhire->display_rentofhire(1, $cat['id'], $_GET['rentorhire_seo_url'], 0, 10, ""); } } ?> <p align="right"> <?php if ($user_check->checklogin() && strtoupper($_SESSION['foongigs_usertype']) == "SEEKER") { echo '<a href="post_rentorhire.php" onclick="javascript:messageBox(\'Only Provider can post Rent or Hire\'); return false;">Post Rent or Hire</a>'; } else {
<?php $project = new project(); $project->display_category(); ?> <span class="checkStatus"></span> </span> </div>--> <tr> <th width="150"><label for="description">State</label></th> <td><div id="div_subcategory"> <!-- Ajax Load Sub Category --> </div><span class="checkStatus"></span> </td> </tr> <tr class="fir"> <th><label for="description">Product Listing Category</label></th> <td><?php $objrentorhire = new rentorhire(); $objrentorhire->display_category(); ?> <span class="checkStatus"></span></td> </tr> <tr> <td> <div class="formRowBig" id="subcategoryproduct" style="display:block;"> <span class="fieldNameBig"> </span> </div> </td> </tr> <tr class="fir">
<?php include $_SERVER['DOCUMENT_ROOT'] . "/header.php"; include $_SERVER['DOCUMENT_ROOT'] . "/subheader.php"; ?> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="heading">United States</td> </tr> <tr><td> <?php $objrentorhire = new rentorhire(); $data = $objrentorhire->get_all_category(); if (is_array($data)) { echo '<table cellspacing="4" class="sub_categories" width="100%">'; echo '<tr>'; $countTd = 0; foreach ($data as $d) { if ($countTd % 4 == 0 && $countTd > 1) { echo "</tr><tr>"; } $countTd++; echo '<td class="whiteBg"><div><div><a href="subcategory.php?seo_url=' . $row['seo_url'] . '" style="text-decoration:none;">'; echo $d['name']; echo '</td>'; if ($countTd % 4 != 0) { echo '<td width="20"></td>'; } } echo '</tr>'; echo '</table>';
session_start(); require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/rentorhire.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/image.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/photo.class.php"; $objuser = new user(); $objuser->checkLoginAjax(); if (strtoupper($_SESSION['foongigs_usertype']) == "SEEKER") { echo "script: messageBox('Sorry!, Only PROVIDER can post Rent or Hire ');"; exit; } if (is_array($_POST)) { $pid = ""; if (isset($_SESSION['photofilename'])) { $photo = new photo(); $commonObj = new common(); $size[0] = $commonObj->getConfigValue("imagesize1"); $size[1] = $commonObj->getConfigValue("imagesize2"); $size[2] = $commonObj->getConfigValue("imagesize3"); $photo->createPhotos($size, $_SESSION['photofilename']); $pid = $photo->insertimage(); } $objrentorhire = new rentorhire(); $rentorhireid = $objrentorhire->add($_POST); if ($pid != "") { $objrentorhire->addimages($rentorhireid, $pid); } echo "script: messageBox('Things Posted rent or hire',function() { window.location='account.php'; });"; }
</table> </div> <?php } else { echo '<h3 class="subheading" style="clear:both;">No Open Services found...</h3>'; } ?> <a href="viewallservices.php">View All</a> <div style="height:20px; clear:both;"></div> <strong>List of Open Rent or Hire You have Posted</strong> <?php $objrentorhire = new rentorhire(); $rentorhirelist = $objrentorhire->get_open_rentorhire(); $objcommon = new common(); if (is_array($rentorhirelist)) { ?> <div id="account_open_projects" style="clear:both; width:100%;"> <table width="100%"> <tr class="heading"><td>Rent or Hire Title</td><td>Posted On</td><td>Status</td><td>Edit</td><td>Option</td></tr> <?php foreach ($rentorhirelist as $datarentorhire) { if ($datarentorhire['status'] == "active") { $status = '<font style="color:green;">Active</font>'; } else { $status = '<font style="color:red;">Blocked</font>'; }
<?php include "header.php"; require_once "../common/class/rentorhire.class.php"; $delete_page = new rentorhire(); if ($_POST['type'] == "delete") { $midarray = explode(",", $_POST['selectcheck']); foreach ($midarray as $w) { $delete_page->delete_rentorhire($w); } //disconnect_db($cn); echo "<script>alert('Item Deleted ...'); window.location='rent_hire_management.php';</script>"; } ?>
<?php session_start(); require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/rentorhire.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/image.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/photo.class.php"; $objuser = new user(); $objuser->checkLoginAjax(); if (is_array($_POST)) { $pid = ""; if (isset($_SESSION['photofilename'])) { $photo = new photo(); $commonObj = new common(); $size[0] = $commonObj->getConfigValue("imagesize1"); $size[1] = $commonObj->getConfigValue("imagesize2"); $size[2] = $commonObj->getConfigValue("imagesize3"); $photo->createPhotos($size, $_SESSION['photofilename']); $pid = $photo->insertimage(); } $objrentorhire = new rentorhire(); $objrentorhire->update($_POST); if ($pid != "") { $objrentorhire->addimages($_POST['rentorhireid'], $pid); } echo "script: messageBox('Rent or Hire Updated..',function() { window.location='account.php'; });"; }
<?php session_start(); require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/common.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/rentorhire.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/user.class.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/config.class.php"; $objuser = new user(); $objuser->checkLoginAjax(); $objrentorhire = new rentorhire(); $objrentorhire->removeimage($_GET['imageid']);