Scrip php busca

Disponível somente no TrabalhosFeitos
  • Páginas : 12 (2918 palavras )
  • Download(s) : 0
  • Publicado : 19 de março de 2013
Ler documento completo
Amostra do texto
<?php

/**

* @Copyright Copyright (C) 2012 ... Ahmad Bilal

* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html

* Company: Buruj Solutions

+ Contact: www.burujsolutions.com , ahmad@burujsolutions.com

* Created on: April 05, 2012

^

+ Project: JS Autoz

^

*/

defined('_JEXEC') or die('Restricted access');

$title = $params->get('title');

$shtitle =$params->get('shtitle');

$radiuslimit= $params->get('radiussearch');

$make = $params->get('make');

$vsmodel = $params->get('model');

$modelyear = $params->get('modelyear');

$price = $params->get('price');

$reglocation = $params->get('reglocation');

$loclocation = $params->get('loclocation');

$mileage = $params->get('mileage');

$transmission = $params->get('transmission');$condition = $params->get('condition');

$fueltype = $params->get('fueltype');

$engcapacity = $params->get('engcapacity');

$exteriorcolor = $params->get('exteriorcolor');

$cylinder = $params->get('cylinder');

$sliding= $params->get('sliding','1');

$consecutivesliding= $params->get('consecutivesliding','3');

$noofcolperrow= $params->get('noofcolperrow','1');

$itemid=$params->get('itemid');

$colwidth = round(100 / $noofcolperrow);

$colwidth = $colwidth.'%';

$colcount = 1;

$curdate = date('Y-m-d H:i:s');

$componentAdminPath = JPATH_ADMINISTRATOR . '/components/com_jsautoz';

$componentPath = 'components/com_jsautoz';

$trclass=array('odd','even');

require_once $componentPath . '/models/modplug.php';

require_once $componentPath . '/models/buyer.php';$model = new JSAutozModelModplug();

$model1 = new JSAutozModelBuyer();

$config = $model->getConfig('default');



$lang = & JFactory :: getLanguage();

$lang->load('com_jsautoz');

$searchoption = $model1->getModSearchOptions();

$document =& JFactory::getDocument();

$document->addStyleSheet('components/com_jsautoz/themes'.$config['theme']);//print_r($searchoption);exit;

//$datadir = $model->getConfig('default');

$isodd=1;

if($shtitle == 1){

echo '<div id="autoz_topheading">

<span id="autoz_topheading_text">

<span id="autoz_topheading_text_left"></span>

<span id="autoz_topheading_text_center">'.$title.'</span>

<spanid="autoz_topheading_text_right"></span>

</span>

</div>';

}

echo '<div id="modOuter" class="modSearch">';



?>



<form action="<?php echo JRoute::_('index.php?option=com_jsautoz&view=buyer&layout=vehiclesearch_results&Itemid='. $itemid);?>" method="post" name="mvsadminForm" id="mvsadminForm">

<table cellpadding="5" cellspacing="0" border="0"width="100%" id="modSearch">

<?php if($colcount == $noofcolperrow){ echo '</tr><tr>'; $colcount = 0; $isodd=1-$isodd; } $colcount++; ?>

<td width="<?php echo $colwidth ;?>">

<div id="modSearchFieldWrap">

<div id="modSearchTitle"><?php echo JText::_('VEHICLES'); ?></div><div id="modSearchTitleRight"></div></div>

<div id="modSearchFieldWrap">

<?php echo $searchoption[2]['vehicletypes']; ?>

</div>

</td>

<?php if ( $make == 1 ) { if($colcount == $noofcolperrow){ echo '</tr><tr>'; $colcount = 0; $isodd=1-$isodd; } $colcount++; ?>

<td width="<?php echo $colwidth ;?>">

<div id="modSearchFieldWrap">

<divid="modSearchTitle"><?php echo JText::_('MAKE'); ?></div><div id="modSearchTitleRight"></div>

</div>

<div id="modSearchFieldWrap">

<?php echo $searchoption[2]['makes']; ?>

</div>

</td>

<?php } ?>

<?php if ( $vsmodel == 1 ) { if($colcount == $noofcolperrow){ echo '</tr><tr>'; $colcount...
tracking img