예제 #1
0
 function display_rentorhire_category()
 {
     $subcategory = new subcategory("rentorhire_category");
     $category = $subcategory->getcategory();
     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 class="whiteBg"><div><div><a href="' . $_SERVER['PHP_SELF'] . '?rentorhire_seo_url=' . $row['seo_url'] . '&seo_url=' . $_GET['seo_url'] . '" style="text-decoration:none;">';
             echo $row['name'] . " &nbsp; ";
             echo "<font color='green'>";
             $sql = "select * from `rentorhire`,`rentorhire_category`,`sub_maincategory` \r\n\t\t\t\t\twhere \r\n\t\t\t\t\tsub_maincategory.id = rentorhire.sub_maincategory_id and \r\n\t\t\t\t\trentorhire.product_category = rentorhire_category.id and\r\n\t\t\t\t\trentorhire_category.seo_url='" . $row['seo_url'] . "' and\r\n\t\t\t\t\tsub_maincategory.seo_url='" . $_GET['seo_url'] . "'";
             //	echo $sql;
             $getresults = $this->mysql->getdata($sql);
             $num = $this->mysql->num;
             if ($num == "") {
                 $num = 0;
             }
             echo $num;
             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!";
     }
 }
예제 #2
0
    foreach ($statelist as $data) {
        echo "<option value='" . $data['id'] . "'";
        if ($data['id'] == $service['subcategory']) {
            echo "selected='selected'";
        }
        echo ">" . $data['name'] . "</option>";
    }
    ?>
			</select><span class="checkStatus"></span>
        </td>
    </tr>
    <tr>
		<th><label for="jobtype">Service Category</label></th>
		<td><?php 
    $objservicetype = new subcategory("services_category");
    $jobservice = $objservicetype->getcategory();
    echo "<select class='jobtype' id='servicecategory' name=\"servicecategory\">";
    foreach ($jobservice as $data) {
        echo "<option value='" . $data['id'] . "'";
        if ($service['service_category'] == $data['id']) {
            echo "selected='selected'";
        }
        echo ">" . $data['name'] . "</option>";
        //$str.="checkboxarray.push('chk_".$data['id']."');\n";
    }
    echo "</select>";
    ?>
<span class="checkStatus"></span>
	</td>
   </tr>
   
예제 #3
0
    <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">
    &nbsp;&nbsp;List of <?php 
echo $message;
?>
</td>
    </tr>
    </table>
	</td></tr>

<tr><td colspan="6"><table width="100%"><tr><td>
<br />

<?php 
$result = $category->getcategory();
?>
<a href='add_category.php?type=<?php 
echo $_GET['type'];
?>
'>ADD CATEGORY</a>
<form name="listuser" action="deletecategory.php?action=delete&type=<?php 
echo $_GET['type'];
?>
" method="post" onsubmit="return deletecategory(); ">
<input type="hidden" id="selectcheck"  name="selectcheck" />
<table width="100%"><tr><td align="right" width="100%">
<b><font color="red" size="2"> *Delete : this will delete there all data from the website </font></b><input type="submit" value="Delete" /></td></tr></table>
<table width="100%" style="font-family:Arial, Helvetica, sans-serif; font-size:13px;"> 	
	<tr bgcolor="#3262bd">
		<td class="grey" align="center">Category Name</td>
예제 #4
0
<?php

include "header.php";
require_once "../common/class/category.class.php";
$category_class = new subcategory("sub_maincategory");
$sub_category = $category_class->get_category_by_id($_GET['id']);
$category_class = new subcategory("maincategory");
$get_category = $category_class->getcategory();
?>

<table align="center" width="100%">
<tr align="center">
<td align="center" bgcolor="#66CCFF">Edit Sub Category</td>
</tr>
</table>
<form name="frmaddcategory" action="sub_category_management.php?wtdo=edit_category&id=<?php 
echo $_GET['id'];
?>
" method="post" onSubmit="if(validateForm(this)) return true; else return false;">


<div class="formRow" align="center">
				<span class="fieldName"><label for="tags"><strong>Sub Category Name</strong></label></span>
				<span class="fieldVal"><input type="text" id="subcategory" name="subcategory" value="<?php 
echo $sub_category['name'];
?>
" class="vldnoblank textWidth" />
                <span class="checkStatus"></span>            	
           </span>
		</div>
		<div class="formRow" align="center">