<?php
/* SVN FILE: $Id: mobileChart.php 613 2008-07-18 14:00:10Z bb_yujiro $ */
/**
 * YahooUI 円グラフ表示
 *
 * PHP versions 5
 *
 *      Hitsuji : Social Network Service <http://rakuto.net/rktSNS/>
 *      Copyright (c) 2008 Yujiro Takahashi
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @package         hitSuji
 * @copyright       Copyright (c) 2008 Yujiro Takahashi
 * @link            http://rakuto.net/rktSNS/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision: 613 $
 * @modifiedby      $LastChangedBy: bb_yujiro $
 * @lastmodified    $Date: 2008-07-18 23:00:10 +0900 (金, 18 7 2008) $
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * 将来的に画像の円グラフ表示予定
 *
 * @access public
 * @param integer   $datas
 * @return void
 **/
function hitsuji_mobileChart($datas)
{
    $sort = array();
    foreach ($datas as $id=>$row){
        $sort[$id] = $row['count'];
    }
    arsort($sort);
?>
<table border="0" width="<?php Theme::exec()->mainWidth(); ?>">
<?php foreach ($sort as $id=> $count): ?>
	<tr><td bgcolor="<?php Theme::exec()->bgColor(); ?>"><?php e($datas[$id]['response'].'&nbsp;('.$datas[$id]['count'].')'); ?></td></tr>
<?php endforeach; ?>
</table>
<?php
} // hitsuji_mobileChart
?>
