View file skins/tpl/index_search.tpl

File size: 1.78Kb
<!-- START ./index_search.tpl -->
<div class="all">
	<div class="title">
	<?=$lng_arr['ANNOUNCEMENT']?>
	</div>
	<!-- <div class="title">
		<a href="./?index=add_ann&amp;<?=SID?>">
		<?=$lng_arr['ADD_ANN']?></a>
	</div> -->
	
	<form action="./" method="get"><div class="form">
	<?=$lng_arr['SEARCH']?><br/>
	<input type="text" name="s" maxlength="30"/><br/>
	<input type="submit" value="<?=$lng_arr['SEARCH_GO']?>"/>
	<input type="hidden" name="index" value="search"/>
	<input type="hidden" name="<?=session_name()?>" value="<?=session_id()?>"/>
	</div></form>
	
	<div class="title">
		<?=$lng_arr['SEARCH']?>:<br/>
		<i><?=htmlspecialchars($_GET['s'])?></i>
	</div>
	
	<?php if(($sStr1 = $mysqli->query($searchQ)) && $mysqli->affected_rows>0){	
		while($sStr = $sStr1->fetch_assoc()){ ?>
		<div  class="row1">
			<?php echo bDate($sStr['time_add']);?> <a href="./?index=ann_view&amp;idc=<?=$sStr['idc']?>&amp;ida=<?=(int)$sStr['ida']?>&amp;idann=<?=$sStr['id']?>&amp;<?=SID?>">>></a><br/>
			<?=bColorSearch(htmlspecialchars($sStr['text']), htmlspecialchars($_GET['s']))?><br/>
			<i><?=bColorSearch(htmlspecialchars($sStr['city']), htmlspecialchars($_GET['s']))?></i><br/>
			<a href="./?index=send_mail&amp;idann=<?=$sStr['id']?>&amp;<?=SID?>">
			<?=$lng_arr['SEND_MAIL']?></a>
			<?php if($_SESSION['my_ann'] == $sStr['id']){ ?>
			<br/><a href="./?index=edit_ann&amp;idann=<?=$sStr['id']?>&amp;<?=SID?>">[EDIT]</a>
			<?php } ?>
		</div>
		<?php } //$sStr1->close(); 
		} 
		else {?>
		<div  class="row1">
		<?=$lng_arr['NO_SEARCH']?>
		</div>
	<?php }?>
	<?php bViewNavigation((int)$_GET['p'],$countSearch);?>
	<!-- <div class="title">
	<a href="./?index=add_ann&amp;<?=SID?>">
	<?=$lng_arr['ADD_ANN']?></a>
	</div> -->
	
	
</div>
<!-- END ./index_search.tpl -->