File size: 2.12Kb
<!-- START ./acp/acp_edit_ann.tpl -->
<div class="all">
<div class="title">
<?=$lng_arr['ADMIN_PANEL']?>
</div>
<div class="title">
<?=$lng_arr['ADMIN_EDIT_ANN']?>
</div><br/>
<?php if(!empty($systemMess)) echo "<br/>".$systemMess; ?>
<?php $_SESSION['back'] = empty($_GET['send'])?$_SERVER['HTTP_REFERER']:$_SESSION['back'];
$catRes = $mysqli->query($listCat);
while($cat = $catRes->fetch_assoc()){
$sArr[$cat['id']] = htmlspecialchars($cat['name']);
$sArrViewCat[$cat['id']] = $cat['view_act'];}
$catRes = $mysqli->query($getAnn);
if($mysqli->affected_rows>0)://start
$cat = $catRes->fetch_assoc();?>
<form action="./acp.php" method="get"><div class="form">
* <?=$lng_arr['CATEGORY']?>:<br/>
<?=bArrToSelect("selectCat",$sArr,$sArrViewCat,$cat['idc']."_".$cat['ida'])?><br/>
* <?=$lng_arr['SELECT_CITY']?>:<br/>
<input type="text" name="selectCity" maxlength="50" value="<?=$cat['city']?>"/><br/>
* <?=$lng_arr['TEXT_ANNOUNCEMENT']?>:<br/>
<textarea name="selectText" rows="5" cols="20"><?=$cat['text']?></textarea><br/>
* <?=$lng_arr['EMAIL']?>:<br/>
<input type="text" name="selectEmail" maxlength="50" value="<?=$cat['email']?>"/><br/>
<?=$lng_arr['PHONE']?>:<br/>
<input type="text" name="selectPhone" maxlength="50" value="<?=$cat['phone']?>"/><br/>
<?=$lng_arr['URL']?>:<br/>
<input type="text" name="selectUrl" maxlength="50" value="<?=$cat['url']?>"/><br/>
<?php $check=($cat['paid']=="0")?"checked=\"checked\"":"";?>
<input type="checkbox" name="paid" value="ok" <?=$check?>/><?=$lng_arr['PAID']?><br/>
<input type="submit" value="<?=$lng_arr['SEND']?>"/>
<input type="hidden" name="index" value="edit_ann"/>
<input type="hidden" name="catOld" value="<?=$cat['idc']."_".$cat['ida']?>"/>
<input type="hidden" name="edit_id" value="<?=(int)$cat['id']?>"/>
<input type="hidden" name="send" value="ok"/>
<input type="hidden" name="<?=session_name()?>" value="<?=session_id()?>"/>
</div></form>
<?php endif;//end ?>
<div class="title">
<a href="<?=acpAddUrl($_SESSION['back'])?>"><?=$lng_arr['BACK']?></a>
</div>
</div>
<!-- END ./acp/acp_edit_ann.tpl -->