/** * Shows the attachment types that have been setup * * @return @e void */ public function attachmentTypesOverview() { /* Get the attachments */ $this->DB->build(array('select' => '*', 'from' => 'attachments_type', 'order' => 'atype_extension')); $this->DB->execute(); /* Loop through the attachments */ $attach_rows = array(); while ($r = $this->DB->fetch()) { $r['_imagedir'] = $this->registry->output->skin['set_image_dir']; $r['apost_checked'] = $r['atype_post'] ? "<img src='{$this->settings['skin_acp_url']}/images/icons/tick.png' alt='{$this->lang->words['yesno_yes']}' />" : "<img src='{$this->settings['skin_acp_url']}/images/icons/cross.png' alt='{$this->lang->words['yesno_no']}' />"; $attach_rows[] = $r; } /* Output */ $this->registry->output->html .= $this->html->attachmentTypeOverview($attach_rows); }
/** * Shows the attachment types that have been setup * * @access public * @return void **/ public function attachmentTypesOverview() { /* Get the attachments */ $this->DB->build(array('select' => '*', 'from' => 'attachments_type', 'order' => 'atype_extension')); $this->DB->execute(); /* Loop through the attachments */ $attach_rows = array(); while ($r = $this->DB->fetch()) { $r['_imagedir'] = $this->image_dir; $checked_img = "<img src='{$this->settings['skin_acp_url']}/_newimages/icons/tick.png' alt='Yes' />"; $r['apost_checked'] = $r['atype_post'] ? $checked_img : ' '; $r['aphoto_checked'] = $r['atype_photo'] ? $checked_img : ' '; $attach_rows[] = $r; } /* Output */ $this->registry->output->html .= $this->html->attachmentTypeOverview($attach_rows); }