File size: 1.64Kb
<?php
/**********************************************/
/* Автор скрипта: Александр Есин */
/* E-Mail: [email protected] ([email protected]) */
/* ICQ: 6464729 */
/* Site: http://ticlove.ru */
/**********************************************/
?>
<?php define ('SECURED', true); ?>
<?php require (dirname(__FILE__).'/../_inc/sql.php'); ?>
<?php require (dirname(__FILE__).'/../_inc/config.php'); ?>
<?php require (dirname(__FILE__).'/../_inc/function.php'); ?>
<?php
if (!empty($_SESSION['auth_id']) && (intval($_POST['user_id']) == $_SESSION['auth_id']))
{
?>
<div class="box_bg" style="width: 310px;">
<div class="box_title">
<div class="left" style="padding-top: 2px; padding-left: 10px;">Смайлики</div><div class="box_close right b-modal_close arcticmodal-close"></div>
</div>
<div class="clear"></div>
<div class="box_conetnt">
<div style="padding: 10px; text-align: center;">
<?php $n = 1; ?>
<?php for ($i = 1; $i < 51; $i++) { ?>
<span style="cursor: pointer;" onclick='InsertSmile(":sm<?php echo $i; ?>:")'><img src='smiles/<?php echo $i; ?>.gif' alt=':sm<?php echo $i; ?>:' /></span>
<?php if ($n == 10) { ?>
<br/>
<?php $n = 0; } ?>
<?php $n++; ?>
<?php } ?>
</div>
</div>
<div class="box_footer">
<div class="right"><button class="submit_red b-modal_close arcticmodal-close">Отмена</button></div>
</div>
<div class="clear"></div>
</div>
<?php
}
?>