<style type="text/css">
.smile_title {
	border: 1px solid #E9F4E9;
	padding:2px;
	width: 100px;
	float:left;
}

.smile_list li {
	float:left;
	padding: 6px;
	width: 30px;
}
</style>
<?php if (!empty($list)):?>
	<div id="smiles">
	<?php foreach ($list as $key => $value):?>
		<div class="smile_list">
		<ul>
		<?php foreach ($value as $k => $v):?>
			<li><a href="javascript:void(0)" onclick="seditor_insertunit('post', '<?php echo $v['code'];?>');"><img src="<?php echo $v['smile'];?>" width="20" /></a></li>
		<?php endforeach;?>
		</ul>
		</div>
	<?php endforeach;?>
	</div>
<?php endif;?>