本文整理匯總了PHP中FabrikHelperHTML::pdfIcon方法的典型用法代碼示例。如果您正苦於以下問題:PHP FabrikHelperHTML::pdfIcon方法的具體用法?PHP FabrikHelperHTML::pdfIcon怎麽用?PHP FabrikHelperHTML::pdfIcon使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FabrikHelperHTML
的用法示例。
在下文中一共展示了FabrikHelperHTML::pdfIcon方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: display
//.........這裏部分代碼省略.........
$params->set('page_title', '');
$params->set('show_page_title', 0);
} else {
$params->set('page_title', $menu_params->get('page_title'));
$params->set('show_page_title', $menu_params->get('show_page_title', 0));
}
} else {
$params->set('show_page_title', JRequest::getInt('show_page_title', 0));
$params->set('page_title', JRequest::getVar('title', ''));
$params->set('show-title', JRequest::getInt('show-title', 1));
}
if (!$this->_isMambot) {
$document->setTitle($w->parseMessageForPlaceHolder($params->get('page_title'), $_REQUEST));
}
$this->table = new stdClass();
$this->table->label = $w->parseMessageForPlaceHolder($table->label, $_REQUEST);
$this->table->intro = $w->parseMessageForPlaceHolder($table->introduction);
$this->table->id = $table->id;
$this->table->db_table_name = $table->db_table_name;
$this->group_by = $table->group_by;
$this->form = new stdClass();
$this->form->id = $table->form_id;
$this->formid = 'tableform_' . $table->id;
$form =& $model->getForm();
FabrikHelperHTML::tips('.hasTip', array(), "\$('" . $this->formid . "')");
$this->table->action = $this->get('TableAction');
$this->showCSV = $model->canCSVExport();
$this->showCSVImport = $model->canCSVImport();
$this->assignRef('navigation', $nav);
$this->nav = JRequest::getInt('fabrik_show_nav', $params->get('show-table-nav', 1)) ? $nav->getListFooter($model->_id, $this->getTmpl()) : '';
$this->nav = '<div class="fabrikNav">' . $this->nav . '</div>';
$this->fabrik_userid = $user->get('id');
$this->canDelete = $model->deletePossible() ? true : false;
$jsdelete = "oPackage.submitfabrikTable({$table->id}, 'delete')";
$this->deleteButton = $model->deletePossible() ? "<input class=\"button\" type=\"button\" onclick=\"{$jsdelete}\" value=\"" . JText::_('DELETE') . "\" name=\"delete\"/>" : '';
$this->showPDF = $params->get('pdf', 0);
if ($this->showPDF) {
$this->pdfLink = FabrikHelperHTML::pdfIcon($model, $params);
}
$this->emptyButton = $model->canEmpty() ? "<input class=\"button\" type=\"button\" value=\"" . JText::_('EMPTY') . "\" name=\"doempty\"/>" : "";
$this->csvImportLink = $this->showCSVImport ? JRoute::_("index.php?option=com_fabrik&c=import&view=import&filetype=csv&tableid=" . $table->id) : '';
$this->showAdd = $model->canAdd();
if ($this->showAdd) {
if ($params->get('show-table-add', 1)) {
$this->assign('addRecordLink', $this->get('AddRecordLink'));
$this->assign('addRecordLabel', $this->get('AddRecordLabel'));
} else {
$this->showAdd = false;
}
}
$this->assign('addRecordId', "table_" . $model->_id . "_addRecord");
$this->showRSS = $params->get('rss', 0) == 0 ? 0 : 1;
if ($this->showRSS) {
$this->rssLink = $model->getRSSFeedLink();
if ($this->rssLink != '') {
$attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
$document->addHeadLink($this->rssLink, 'alternate', 'rel', $attribs);
}
}
list($this->headings, $groupHeadings, $this->headingClass, $this->cellClass) = $this->get('Headings');
$this->filter_action = $model->getFilterAction();
JDEBUG ? $_PROFILER->mark('fabrik getfilters start') : null;
$this->filters =& $model->getFilters('tableform_' . $model->_id, 'table');
$this->assign('clearFliterLink', $this->get('clearButton'));
JDEBUG ? $_PROFILER->mark('fabrik getfilters end') : null;
$form->getGroupsHiarachy();
$this->assign('showFilters', count($this->filters) > 0 && $params->get('show-table-filters', 1) && JRequest::getVar('showfilters', 1) == 1 ? 1 : 0);
$this->assign('emptyDataMessage', $this->get('EmptyDataMsg'));
$this->assignRef('groupheadings', $groupHeadings);
$this->assignRef('calculations', $this->_getCalculations($this->headings));
$this->assign('isGrouped', $table->group_by);
$this->assign('colCount', count($this->headings));
$this->assignRef('grouptemplates', $model->grouptemplates);
$this->assignRef('params', $params);
$this->_loadTemplateBottom();
$this->getManagementJS($this->rows);
// get dropdown list of other tables for quick nav in admin
$this->tablePicker = $app->isAdmin() ? FabrikHelperHTML::tableList($this->table->id) : '';
$this->pluginButtons = $model->getPluginButtons();
//force front end templates
$this->_basePath = COM_FABRIK_FRONTEND . DS . 'views';
$tmpl = $this->getTmpl();
$this->_setPath('template', $this->_basePath . DS . $this->_name . DS . 'tmpl' . DS . $tmpl);
$this->setLayout('default');
// kludge for convincing J! to look for the right files in loadTemplate()
$text = $this->loadTemplate();
if ($params->get('process-jplugins')) {
$opt = JRequest::getVar('option');
JRequest::setVar('option', 'com_content');
jimport('joomla.html.html.content');
$text .= '{emailcloak=off}';
$text = JHTML::_('content.prepare', $text);
$text = preg_replace('/\\{emailcloak\\=off\\}/', '', $text);
JRequest::setVar('option', $opt);
}
FabrikHelperHTML::cleanMootools();
JDEBUG ? $_PROFILER->mark('end fabrik display') : null;
// $$$ rob 09/06/2011 no need for isMambot test? should use ob_start() in module / plugin to capture the output
echo $text;
}
示例2: display
//.........這裏部分代碼省略.........
$params->set('show_page_title', JRequest::getInt('show_page_title', 0));
$params->set('page_title', JRequest::getVar('title', ''));
$params->set('show-title', JRequest::getInt('show-title', 1));
}
if (!$this->isMambot) {
$document->setTitle($w->parseMessageForPlaceHolder($params->get('page_title'), $_REQUEST));
}
/** depreciated (keep incase ppl use them in old tmpls**/
$this->table = new stdClass();
$this->table->label = $w->parseMessageForPlaceHolder($item->label, $_REQUEST);
$this->table->intro = $w->parseMessageForPlaceHolder($item->introduction);
$this->table->id = $item->id;
$this->table->db_table_name = $item->db_table_name;
/** end **/
$this->assign('list', $this->table);
$this->group_by = $item->group_by;
$this->form = new stdClass();
$this->form->id = $item->id;
$this->formid = 'listform_'.$item->id;
$form = $model->getFormModel();
$this->table->action = $this->get('TableAction');
$this->showCSV = $model->canCSVExport();
$this->showCSVImport = $model->canCSVImport();
$this->assignRef('navigation', $nav);
$this->nav = JRequest::getInt('fabrik_show_nav', $params->get('show-table-nav', 1)) ? $nav->getListFooter($item->id, $this->get('tmpl')) : '';
$this->nav = '<div class="fabrikNav">'.$this->nav.'</div>';
$this->fabrik_userid = $user->get('id');
$this->canDelete = $model->deletePossible() ? true : false;
$tmpl = $this->get('tmpl');
// 3.0 observed in list.js & html moved into fabrik_actions rollover
$this->showPDF = $params->get('pdf', 0);
if ($this->showPDF) {
$this->pdfLink = FabrikHelperHTML::pdfIcon($model, $params);
}
$this->emptyLink = $model->canEmpty() ? '#' : '';
$this->csvImportLink = $this->showCSVImport ? JRoute::_("index.php?option=com_fabrik&view=import&filetype=csv&listid=" . $item->id) : '';
$this->showAdd = $model->canAdd();
if ($this->showAdd) {
if ($params->get('show-table-add', 1)) {
$this->assign('addRecordLink', $this->get('AddRecordLink'));
}
else {
$this->showAdd = false;
}
}
$this->showRSS = $params->get('rss', 0) == 0 ? 0 : 1;
if ($this->showRSS) {
$this->rssLink = $model->getRSSFeedLink();
if ($this->rssLink != '') {
$attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
$document->addHeadLink($this->rssLink, 'alternate', 'rel', $attribs);
}
}
list($this->headings, $groupHeadings, $this->headingClass, $this->cellClass) = $this->get('Headings');
$this->assignRef('groupByHeadings', $this->get('GroupByHeadings'));
$this->filter_action = $this->get('FilterAction');
JDEBUG ? $_PROFILER->mark('fabrik getfilters start') : null;
$this->filters = $model->getFilters('listform_'. $item->id);
$this->assign('clearFliterLink', $this->get('clearButton'));
JDEBUG ? $_PROFILER->mark('fabrik getfilters end') : null;
//$form->getGroupsHiarachy();
$this->assign('showFilters', (count($this->filters) > 0 && $params->get('show-table-filters', 1) !== 0) && JRequest::getVar('showfilters', 1) == 1 ? 1 : 0);
$this->assign('emptyDataMessage', $this->get('EmptyDataMsg'));
示例3: _addButtons
/**
* add buttons to the view e.g. print, pdf
*/
protected function _addButtons()
{
$model = $this->getModel();
$params = $model->getParams();
$this->showEmail = $params->get('email', 0);
$this->emailLink = '';
$this->printLink = '';
$this->pdfLink = '';
$this->showPrint = $params->get('print', 0);
if ($this->showPrint) {
$text = JHTML::_('image.site', 'printButton.png', '/images/M_images/', NULL, NULL, JText::_('Print'));
$this->printLink = '<a href="#" onclick="window.print();return false;">' . $text . '</a>';
}
if (JRequest::getVar('tmpl') != 'component') {
if ($this->showEmail) {
$this->emailLink = FabrikHelperHTML::emailIcon($model, $params);
}
if ($this->showPrint) {
$this->printLink = FabrikHelperHTML::printIcon($model, $params, $model->_rowId);
}
$this->showPDF = $params->get('pdf', 0);
if ($this->showPDF) {
$this->pdfLink = FabrikHelperHTML::pdfIcon($model, $params, $model->_rowId);
}
} else {
$this->showPDF = false;
}
}