File size: 1.69Kb
<!-- START ./index_add_ann.tpl -->
<div class="all">
<div class="title">
<?=$lng_arr['ANNOUNCEMENT']?>
</div>
<div class="title">
<?=$lng_arr['ADD_ANN']?>
</div><br/>
<?php if(!empty($error)) echo "<br/>".$error; ?>
<?php $catRes = $mysqli->query($listCat);
while($cat = $catRes->fetch_assoc()){
$sArr[$cat['id']] = htmlspecialchars($cat['name']);
$sArrViewCat[$cat['id']] = $cat['view_act'];}?>
<form action="./" method="get"><div class="form">
* <?=$lng_arr['CATEGORY']?>:<br/>
<?=bArrToSelect("selectCat",$sArr,$sArrViewCat)?><br/>
* <?=$lng_arr['SELECT_CITY']?>:<br/>
<input type="text" name="selectCity" maxlength="50" value="<?=htmlspecialchars($city)?>"/><br/>
* <?=$lng_arr['TEXT_ANNOUNCEMENT']?>:<br/>
<textarea name="selectText" rows="5" cols="20"><?=htmlspecialchars($text)?></textarea><br/>
* <?=$lng_arr['EMAIL']?>:<br/>
<input type="text" name="selectEmail" maxlength="50" value="<?=htmlspecialchars($mail)?>"/><br/>
<?=$lng_arr['PHONE']?>:<br/>
<input type="text" name="selectPhone" maxlength="50" value="<?=htmlspecialchars($phone)?>"/><br/>
<?=$lng_arr['URL']?>:<br/>
<input type="text" name="selectUrl" maxlength="50" value="<?=htmlspecialchars($url)?>"/><br/>
<?php if(acpAuth()): $check=($_GET['paid']=="ok")?"checked=\"checked\"":"";?>
<input type="checkbox" name="paid" value="ok" <?=$check?>/><?=$lng_arr['PAID']?><br/>
<?php endif;?>
<input type="submit" value="<?=$lng_arr['SEND']?>"/>
<input type="hidden" name="index" value="add_ann"/>
<input type="hidden" name="send" value="ok"/>
<input type="hidden" name="<?=session_name()?>" value="<?=session_id()?>"/>
</div></form>
</div>
<!-- END ./index_add_ann.tpl -->