* Invision Power Services * IP.Board v3.3.4 * ACP reputation skin file * Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $ * * * @author $Author: bfarber $ * @copyright (c) 2001 - 2009 Invision Power Services, Inc. * @license http://www.invisionpower.com/company/standards.php#license * @package IP.Board * @subpackage Members * @link http://www.invisionpower.com * @since 20th February 2002 * @version $Revision: 10914 $ * */ class cp_skin_reputation { /** * Registry Object Shortcuts * * @var $registry * @var $DB * @var $settings * @var $request * @var $lang * @var $member * @var $memberData * @var $cache * @var $caches */ protected $registry; protected $DB; protected $settings; protected $request; protected $lang; protected $member; protected $memberData; protected $cache; protected $caches; /** * Constructor * * @param object $registry Registry object * @return @e void */ public function __construct( ipsRegistry $registry ) { $this->registry = $registry; $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); $this->lang = $this->registry->class_localization; } /** * Reputation form * * @param int ID * @param string Action * @param string Title * @param array Form elements * @param array Errors * @return string HTML */ public function reputationForm( $id, $do, $title, $form, $errors ) { $IPBHTML = ""; //--starthtml--// if( count( $errors ) ) { $IPBHTML .= <<{$this->lang->words['errors']}
| {$this->lang->words['rep_form_title']} | {$form['level_title']} {$this->lang->words['rep_form_title_help']} |
| {$this->lang->words['rep_form_image']} | {$form['level_image']} {$this->lang->words['rep_form_image_help']}{$this->settings['public_dir']}style_extra/reputation_icons/ |
| {$this->lang->words['rep_form_points']} | {$form['level_points']} {$this->lang->words['rep_form_points_help']} |
| {$this->lang->words['rep_form_title']} | {$this->lang->words['rep_form_image']} | {$this->lang->words['rep_form_points']} | {$r['level_title']} | {$r['level_image']} | {$r['level_points']} | HTML; } } else { $IPBHTML .= << | {$this->lang->words['rep_no_levels']} | HTML; } $IPBHTML .= << HTML; //--endhtml--// return $IPBHTML; } }
|---|