<?php
/* SVN FILE: $Id: banner.php 281 2008-05-07 22:23:36Z bb_yujiro $ */
/**
 * 広告を表示
 *
 * PHP versions 5
 *
 *      Hitsuji : Social Network Service <http://rakuto.net/rktSNS/>
 *      Copyright (c) 2007 Yujiro Takahashi
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @package         Hitsuji
 * @copyright       Copyright (c) 2007 Yujiro Takahashi
 * @link            http://rakuto.net/rktSNS/
 * @author          Yujiro Takahashi <yujiro@rakuto.net>
 * @version         $Revision: 281 $
 * @modifiedby      $LastChangedBy: bb_yujiro $
 * @lastmodified    $Date: 2008-05-08 07:23:36 +0900 (木, 08 5 2008) $
 * @license         http://opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * 広告を表示
 *
 * @access public
 * @param integer   $position
 * @return void
 **/
function hitsuji_banner($position)
{
    $condition = array(
        'status'=> STATUS_ENABLE,
        'position'=> $position
    );
    $sponsor = RKT_DB::getRow('sys_sponsor', $condition);
    $html = empty($sponsor['html'])? '':$sponsor['html'];

    print ($html);
} // hitsuji_banner
?>
