function display_subcategory($subcat_id)
 {
     $category = new maincategory();
     $data = $category->getsubcategory($subcat_id);
     if (!is_array($data)) {
         return false;
     }
     echo '<select name="subcategory">';
     foreach ($data as $row) {
         echo '<option value="' . $row['id'] . '">' . $row['name'] . "</option>";
     }
     echo '</select>';
 }
Beispiel #2
0
<?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 
$maincategory = new maincategory();
$maincategory->display_category_usa();
?>
</td>
</tr>
<tr>
	<td>&nbsp;</td>
</tr>
<tr>
  <td class="heading">OutSource</td>
</tr>
<tr>
<td>
  <?php 
$projects = new project();
$projects_status = $projects->display_projects("", 2, 0, 0, 10, "order by rand()");
?>
    </td>
</tr>
<tr>
Beispiel #3
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/common/class/category.class.php";
$maincategory = new maincategory();
$cat = $maincategory->getbyseo($_GET['seo_url']);
//print_r($cat);
$seo_header = '<meta name="description" content="Project for State - ' . $cat['name'] . '" />
<meta name="keywords" content="' . $cat['sub_cat'] . '" />';
$page_title = "Project for " . $cat['sub_cat'];
include "header.php";
include "subheader.php";
?>
<p align="center">
	<font size="+1"><a href="/index.php">USA</a> - &quot;<strong><?php 
echo $cat['name'];
?>
</strong>&quot;</font>
</p>
<div class="lineBreak"></div>
<h3 class="heading">Services</h3>
<?php 
$service = new service();
$service->display_category();
?>
<br />



<h3 class="heading"> Featured Projects </h3>
<?php 
$projects = new project();
Beispiel #4
0
?>
<p align="center">
	<font size="+1">USA<?php 
if ($_GET['seo_url'] != "") {
    echo " - &quot;<strong>" . $cat['name'] . "</strong>&quot;";
}
if ($_GET['rentorhire_seo_url'] != "") {
    echo " - &quot;<strong>" . $_GET['rentorhire_seo_url'] . "</strong>&quot;";
}
?>
</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, "");
Beispiel #5
0
<?php

include "header.php";
include "subheader.php";
require_once "common/class/mysql.class.php";
require_once "common/class/jobs.class.php";
$common_class = new jobs();
$mysql_querry = new mysql();
$jobs = new jobs();
$job = $jobs->get_job_by_id($_GET['id']);
$objmaincat = new maincategory();
$user = new user();
?>
<h3 class="heading">&nbsp;<?php 
echo $job['title'];
?>
 - Jobs</h3>
<div style="margin:3px 0 0 0;"><strong>Job ID:</strong> <?php 
echo $_GET['id'];
?>
</div>
<table border="0" class="tableDetails" width="100%">
  <tr height="20"></tr>
   <tr class="fir">
    <th width="175">&nbsp;Title : </th> <td><b><?php 
echo $job['title'];
?>
</b></td> 
  </tr>
  <tr>
    <th>&nbsp;Posted On :</th> <td>&nbsp;<?php 
Beispiel #6
0
?>
<p align="center">
	<font size="+1">USA<?php 
if ($_GET['seo_url'] != "") {
    echo " - &quot;<strong>" . $cat['name'] . "</strong>&quot;";
}
if ($_GET['service_seo_url'] != "") {
    echo " - &quot;<strong>" . $_GET['service_seo_url'] . "</strong>&quot;";
}
?>
</font>
</p>
<h3 class="heading">Services </h3>
 <?php 
if ($_GET['seo_url'] == "") {
    $maincategory = new maincategory();
    $maincategory->display_category_usa("services", "services.php");
} else {
    $service = new service();
    $service->display_category();
}
?>
<br />
<h3 class="heading"> Featured Service </h3>
<?php 
$service = new service();
if ($_GET['seo_url'] == "") {
    $service_status = $service->display_service(1, 0, 0, 10, "");
} else {
    if ($_GET['service_seo_url'] != "") {
        $service_status = $service->display_service(1, $cat['id'], 0, 0, "order by posted_time desc", $_GET['service_seo_url']);
Beispiel #7
0
    <span class="checkStatus"></span></td>
    </tr>
    <tr class="fir">
    	<th valign="top"><label for="description">Description</label></th>
        <td><small>note: Do not post any contact info (Review terms here...) </small>
    <textarea name="description" id="description" style="width: 400px; height: 180px;" class="vldnoblank"><?php 
    echo $projectdata['description'];
    ?>
</textarea>
    <span class="checkStatus"></span></td>
    </tr>
   
    <tr>
     <th><label>Project Area  &nbsp;&nbsp;&nbsp;</label></th>
        <td><?php 
    $category = new maincategory();
    $data = $category->getcategory();
    foreach ($data as $row) {
        //	print_r($data);
        echo '<input name="maincategory" id="maincategory" value="' . $row['id'] . '" type="radio"';
        $subcategory = $category->getsubcategory($row['id']);
        if (is_array($subcategory)) {
            echo ' onclick="showDiv(\'subcategory\'); loadAjax(\'/ajax/project/editsubcategory.php?id=' . $row['id'] . '&selected=' . $projectdata['sub_maincategory_id'] . '\',\'div_subcategory\');" ';
        } else {
            echo ' onclick="hideDiv(\'subcategory\');" ';
        }
        if ($projectdata['maincategory_id'] == $row['id']) {
            echo "checked='checked'";
        }
        //			if(strtoupper($row['name'])=="USA") echo '"  checked="checked"';
        //		echo '> '.$row['name']." &nbsp;&nbsp;&nbsp;&nbsp;";
Beispiel #8
0
}
if ($_GET['rentorhire_seo_url'] != "") {
    echo " - &quot;<strong>" . $_GET['rentorhire_seo_url'] . "</strong>&quot;";
}
?>
</font>
</p>
<h3 class="heading">Jobs </h3>
 <?php 
if ($_GET['seo_url'] == "") {
    $maincategory = new maincategory();
    $maincategory->display_category_usa("jobs", "jobs.php");
} else {
    //	$jobs = new jobs;
    //	$jobs->display_jobs();
    $maincategory = new maincategory();
    $maincategory->display_category_usa("jobs", "jobs.php", $_GET['seo_url']);
}
?>
<br />
<h3 class="heading"> Featured Jobs </h3>
<?php 
$jobs = new jobs();
if ($_GET['seo_url'] == "") {
    $jobs_status = $jobs->display_jobs(1, 0, 0, 10, "");
} else {
    $jobs_status = $jobs->display_jobs(1, $cat['id'], 0, 10, "");
}
?>
<p align="right">
	<?php