Error
  • The template for this display is not available. Please contact a Site administrator.

POST

{source}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Tabs - Vertical Tabs functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/<?php echo JURI::base(); ?>components/com_dottech/assets/style.css" type="text/css" />
<style>
.contentheading {
    background-color: #f5f3f4;
    margin: 0;
    padding: 0 0 5px;
    width: 97.3%;
}
</style>
<script>
$(function() {
$( "#tabs" ).tabs().addClass( "ui-tabs-vertical ui-helper-clearfix" );
$( "#tabs li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
$('.listcat').click(function() {
    //alert($(this).attr('id'));
var bl = $(this).attr('id');

window.location="<?php echo JURI::base(); ?>index.php?option=com_dottech&view=blisting&sample="+bl+"&Itemid=1073";

});
$('.jlistcat').click(function() {
    //alert($(this).attr('id'));
var jl = $(this).attr('id');
window.location="<?php echo JURI::base(); ?>index.php?option=com_dottech&view=joblisting&sample="+jl+"&Itemid=1074";
});
});

</script>

</head>
<body>
<div id="tabs">
<ul>
<li class="listingheader"><h3 class="cathead">Select the category</h3></li>
<li class="business"><a href="#tabs-1"><div class="businessimg"></div>Business Listing</a></li>
<li class="joblist"><a href="#tabs-2"><div class="jobimg"></div>Job Listing</a></li>
</ul>

<div id="tabs-1">
<h2>Select the sub-category</h2>

<p>
<?php

$query = "SELECT `e0ixc_categories`.`id` AS `id` , `e0ixc_jreviews_categories`.`id` AS `jid` , `e0ixc_categories`.`title` AS `title` , `e0ixc_categories`.`alias` AS `alias`
FROM `e0ixc_jreviews_categories` , `e0ixc_categories`
WHERE `e0ixc_categories`.`id` = `e0ixc_jreviews_categories`.`id` and `e0ixc_categories`.`published`=1 order by `title` asc
LIMIT 0 , 50";
$res = mysql_query($query);
echo "<div class='catlist'>";
while($data = mysql_fetch_array($res))
{
echo "<div class='catlistli'>";
echo "<a id='".$data['alias']."' class = 'listcat' href='javascript:void(0)'>".$data['title']."</a>";
echo "</div>";
}
echo "</div>";
?>
</p>
</div>
<div id="tabs-2">
<h2>Select the sub-category</h2>
<p>
<?php
$sql = "SELECT * FROM `e0ixc_je_job_category` WHERE published =1 order by name asc";
$res1 = mysql_query($sql);
echo "<div class='catlist'>";
while($row=mysql_fetch_array($res1))
{
if($row['catparent']!=0)
{
echo "<div class='catlistli'>";
echo "<a id='".$row['calias']."' class = 'jlistcat' href='javascript:void(0)'>".$row['name']."</a>";
echo "</div>";
}
}
echo "</div>";

?>
</p>
</div>

</div>
</body>
</html><!-- You can place html anywhere within the source tags -->


<script language="javascript" type="text/javascript">
    // You can place JavaScript like this
    
</script>
<?php
    // You can place PHP like this
    
?>
{/source}