How to duplicate pagination in joomla site

does anybody know how can I duplicate pagination on this joomla site.

Currently there is a pagination on the bottom of page but I need same pagination on top of the page (above ads grid).
Layout on this page is generated by component “osproperty” and php file:

defined('_JEXEC') or die;
echo JHTML::_('behavior.tooltip');

$show_kml_export = $params->get('show_kml_export',1);
$grid_view_columns = $params->get('grid_view_columns',2);
?>

function loadStateInListPage(){
	var country_id = document.getElementById('country_id');
	loadStateInListPageAjax(country_id.value,"");
}
function changeCity(state_id,city_id){
	var live_site = '';
	loadLocationInfoCity(state_id,city_id,'state_id',live_site);
}

<?php HelperOspropertyCommon::filterForm($lists); ?>
0){ ?>
getInt('listviewtype',$_COOKIE['viewtypecookie']); ?>"/> function updateView(view){ var listviewtype = document.getElementById('listviewtype'); listviewtype.value = view; document.ftForm.submit(); }
limitstart." - "; if($pageNav->total limit){ echo $pageNav->total." "; }else{ echo $pageNav->limitstart + $pageNav->limit." "; } echo JText::_('OS_OF'); echo " ".$pageNav->total; ?>
</div> </div> <?php $db = JFactory::getDbo(); $db->setQuery("Select id as value, currency_code as text from #__osrs_currencies where id <> '$row->curr' order by currency_code"); $currencies = $db->loadObjectList(); $currenyArr[] = JHTML::_('select.option','',JText::_('OS_SELECT')); $currenyArr = array_merge($currenyArr,$currencies); ?> <style> .photos_count{ width:120px !important; height: 24px; top: -40px; } </style> <input type="hidden" name="currency_item" id="currency_item" value="" /> <input type="hidden" name="live_site" id="live_site" value="<?php echo JURI::root()?>" />
id; $itemid = OSPRoute::getItemid($needs); $lists['curr'] = JHTML::_('select.genericlist',$currenyArr,'curr'.$i,'onChange="javascript:updateCurrency('.$i.','.$row->id.',this.value)" class="input-mini"','value','text'); if($j == 1){ $extraCss = "margin-left:0px;"; }else{ $extraCss = ""; } ?>
img-rounded gridelement" style="">
isFeatured == 1) ? " featured": "";?>">
id."&Itemid=".$itemid)?>"> pro_name?>" title="pro_name?>" src="photo?>"/>
count_photo?>
</a> </div>
show_address == 1) and ($configClass['listing_show_address'] == 1)){ ?>

: category_name_short;?>   -   fieldarr; if(count($fieldarr) > 0){ for($f=0;$f   -   label != ""){ ?> label; ?> : fieldvalue;?>
</div> </div> </div> </span> </div> <?php if($j == $ncolumns){ $j = 0; ?>
<?php } } ?> </div> <?php } ?> </div>
0) and ($pageNav->total > $pageNav->limit)){ ?> <?php } ?> </div> <input type="hidden" name="process_element" id="process_element" value="" />

I have tried to copy this part of code:

0) and ($pageNav->total > $pageNav->limit)){ ?> <?php } ?> </div>

below the lines:

</script>

after that both paginations appear (see picture) but stop working (nothing happens when click on numbers).
Please tell me where I'm wrong.


Source: stackoverflow-php