Размер файла: 1.51Kb
<!-- START ./index_send_mail.tpl -->
<div class="all">
<div class="title">
<?=$lng_arr['ANNOUNCEMENT']?>
</div>
<div class="title">
<?=$lng_arr['SEND_MAIL']?>
</div>
<?php if(!empty($error) && $_GET['send']=="ok") echo "<br/>".$error; ?>
<?php if(($annRes = $mysqli->query($viewAnn)) && $mysqli->affected_rows>0){
$ann = $annRes->fetch_assoc(); ?>
<div class="row1">
<?php echo bDate($ann['time_add']);?><br/>
<?=htmlspecialchars($ann['text'])?><br/>
<i><?=htmlspecialchars($ann['city'])?></i><br/>
<?php if(!empty($ann['url'])) echo "<br/>http://".htmlspecialchars($ann['url']);?>
</div>
<?php $annRes->close(); }
else {?>
<div class="row1">
<?=$lng_arr['NO_ANNOUNCEMENT']?>
</div>
<?php }?>
<div class="title">
<a href="./?index=cat_view&idc=<?=(int)$ann['idc']?>&ida=<?=(int)$ann['ida']?>&<?=SID?>">
<?=$lng_arr['BACK']?>
</a></div><br/>
<form action="./" method="get"><div class="form">
<?=$lng_arr['TEXT_MAIL']?><br/>
<textarea name="sendEmail" rows="5" cols="20"><?=htmlspecialchars($_GET['sendEmail'])?></textarea><br/>
<input type="submit" value="<?=$lng_arr['SEND']?>"/>
<br/>* <?=$lng_arr['TEXT_MAIL_NOTE']?>
<input type="hidden" name="index" value="send_mail"/>
<input type="hidden" name="idann" value="<?=(int)$ann['id']?>"/>
<input type="hidden" name="send" value="ok"/>
<input type="hidden" name="<?=session_name()?>" value="<?=session_id()?>"/>
</div></form>
</div>
<!-- END ./index_send_mail.tpl -->