Просмотр файла skins/tpl/acp/acp_view_ann.tpl

Размер файла: 2.15Kb
<!-- START ./acp/acp_view_paid_ann.tpl -->
<div class="all">
	<div class="title">
	<?=$lng_arr['ADMIN_PANEL']?>
	</div>
	<div class="title">
		<?=$lng_arr['ADMIN_VIEW_PAID']?>
	</div><br/>	
	
	<?php if(($annRes = $mysqli->query($viewAnn)) && $mysqli->affected_rows>0){	
		while($ann = $annRes->fetch_assoc()){
			$cat = $mysqli->query("SELECT * FROM `".F_DB_PX."category` 
			WHERE id = '".(int)$ann['idc']."'");
			$catR = $cat->fetch_assoc();?>
			
			<?php $adminViewAnn = "UPDATE `".F_DB_PX."announcement` SET 
		`admin_view` = 1 WHERE `id` =  ".(int)$ann['id'];
			$mysqli->query($adminViewAnn);?>
		<div  class="row1">
			<?php echo bDate($ann['time_add']);?> <!-- <a href="./?index=ann_view&amp;idc=<?=$ann['id']?>&amp;ida=<?=(int)$ann['ida']?>&amp;idann=<?=$ann['id']?>&amp;<?=SID?>">>></a>--><br/>
			<?=htmlspecialchars($ann['text'])?><br/>
			<i><?=htmlspecialchars($ann['city'])?></i><br/>
			<?php if(!empty($ann['phone'])):?>
			<?=htmlspecialchars($ann['phone'])?><br/>
			<?php endif;?>
			<a href="./?index=send_mail&amp;idann=<?=$ann['id']?>&amp;<?=SID?>">
			<?=$lng_arr['SEND_MAIL']?></a>
			<br/>
			
			<!-- ADMIN START --><br/>
			<a href="./acp.php?edit_id=<?=$ann['id']?>&amp;index=edit_ann&amp;<?=SID?>" title="<?=$lng_arr['ADMIN_EDIT']?>">[ E ]</a> 
			<a href="./acp.php?edit_id=<?=$ann['id']?>&amp;index=del_ann&amp;<?=SID?>" title="<?=$lng_arr['ADMIN_DEL']?>">[ X ]</a> 
				<?php if($ann['paid']=='0'):?>
					<a href="./acp.php?edit_id=<?=$ann['id']?>&amp;index=unset_paid_ann&amp;<?=SID?>" title="<?=$lng_arr['ADMIN_DEL_PAID']?>">[ $- ]</a> 
				<?php elseif($ann['paid']=='1'):?>
					<a href="./acp.php?edit_id=<?=$ann['id']?>&amp;index=set_paid_ann&amp;<?=SID?>" title="<?=$lng_arr['ADMIN_ADD_PAID']?>">[ $+ ]</a> 
				<?php endif;?>
			<!-- ADMIN END -->
			
		</div>
		<?php } } 
		else {?>
		<div  class="row1">
		<?=$lng_arr['NO_ANNOUNCEMENT']?><br/>
		</div>
	<?php }?>
	
	<?php bViewNavigation((int)$_GET['p'],$countAnn);?>
	<!--<div class="title"><?php echo htmlspecialchars($ann['name'])." / ".bGetArrAct($ann['view_act'],(int)$ann['ida'])?></div>-->
	<br />
</div>
<!-- END ./acp/acp_view_paid_ann.tpl -->