<?php /* Smarty version Smarty-3.0.6, created on 2011-02-04 18:10:55
         compiled from "W:/home/dcms_seven/www/sys/themes/web_blue/tpl/inc.smiles.tpl" */ ?>
<?php /*%%SmartyHeaderCode:250954d4c16ffe74dc1-63374780%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '46b7560257a3e11a87ae2f56d12b731fb2066916' => 
    array (
      0 => 'W:/home/dcms_seven/www/sys/themes/web_blue/tpl/inc.smiles.tpl',
      1 => 1295288641,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '250954d4c16ffe74dc1-63374780',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_block_php')) include 'W:\home\dcms_seven\www\sys\plugins\smarty\plugins\block.php.php';
?><?php $_smarty_tpl->smarty->_tag_stack[] = array('php', array()); $_block_repeat=true; smarty_block_php(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>


$smiles = smiles::get_ini();
$smiles_a=array();
// загружаем список смайлов
$smiles_gl=glob(H.'/sys/images/smiles/*.gif');



foreach($smiles_gl as $path)
{
preg_match('#/([^/]+)\.gif$#', $path,$m);
$smiles_a[$m[1]]=$path;
}


 
$uniq = $template->get_template_vars('uniq'); 

foreach ($smiles_a as $name => $path) {
$v = array_keys ($smiles,$name);
echo '<a href="javascript:bb_smiles(\''.$uniq.'\',\'*'.$v[0].'*\');" title="'.$v[0].'"><img src="/sys/images/smiles/'.$name.'.gif" alt="'.$v[0].'" /></a>';
}

<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_php(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
