當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FabrikHelperHTML::script方法代碼示例

本文整理匯總了PHP中FabrikHelperHTML::script方法的典型用法代碼示例。如果您正苦於以下問題:PHP FabrikHelperHTML::script方法的具體用法?PHP FabrikHelperHTML::script怎麽用?PHP FabrikHelperHTML::script使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FabrikHelperHTML的用法示例。


在下文中一共展示了FabrikHelperHTML::script方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: display

 /**
  * Display
  *
  * @param   string  $tmpl  Template
  *
  * @return  void
  */
 public function display($tmpl = 'default')
 {
     $srcs = FabrikHelperHTML::framework();
     $app = JFactory::getApplication();
     $input = $app->input;
     FabrikHelperHTML::script($srcs);
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId($input->getInt('id', $usersConfig->get('visualizationid', $input->getInt('visualizationid', 0))));
     $visualization = $model->getVisualization();
     $pluginParams = $model->getPluginParams();
     $pluginManager = JModelLegacy::getInstance('Pluginmanager', 'FabrikModel');
     $plugin = $pluginManager->getPlugIn($visualization->plugin, 'visualization');
     $plugin->_row = $visualization;
     if ($visualization->published == 0) {
         return JError::raiseWarning(500, FText::_('COM_FABRIK_SORRY_THIS_VISUALIZATION_IS_UNPUBLISHED'));
     }
     // Plugin is basically a model
     $pluginTask = $input->get('plugintask', 'render', 'request');
     // @FIXME cant set params directly like this, but I think plugin model setParams() is not right
     $plugin->_params = $pluginParams;
     $tmpl = $plugin->getParams()->get('calendar_layout', $tmpl);
     $plugin->{$pluginTask}($this);
     $this->plugin = $plugin;
     $viewName = $this->getName();
     $this->addTemplatePath($this->_basePath . '/plugins/' . $this->_name . '/' . $plugin->_name . '/tmpl/' . $tmpl);
     $root = $app->isAdmin() ? JPATH_ADMINISTRATOR : JPATH_SITE;
     $this->addTemplatePath($root . '/templates/' . $app->getTemplate() . '/html/com_fabrik/visualization/' . $plugin->_name . '/' . $tmpl);
     $ab_css_file = JPATH_SITE . '/plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/template.css';
     if (JFile::exists($ab_css_file)) {
         JHTML::stylesheet('template.css', 'plugins/fabrik_visualization/' . $plugin->_name . '/tmpl/' . $tmpl . '/', true);
     }
     echo parent::display();
 }
開發者ID:ankaau,項目名稱:GathBandhan,代碼行數:41,代碼來源:view.html.php

示例2: display

 /**
  * Display the view
  *
  * @param   string $tmpl Template
  *
  * @return  JView  this
  */
 public function display($tmpl = 'default')
 {
     $app = JFactory::getApplication();
     $model = $this->getModel();
     $input = $app->input;
     $renderOrder = $input->getInt('renderOrder');
     $path = JPATH_ROOT . '/plugins/fabrik_list/email/views/popupwin/tmpl/' . $tmpl;
     $this->_setPath('template', $path);
     $this->showToField = $model->getShowToField();
     $records = $model->getRecords();
     if (count($records) == 0) {
         $app->enqueueMessage('None of the selected records can be emailed', 'notice');
         return;
     }
     $this->recordcount = count($records);
     $this->renderOrder = $renderOrder;
     $this->recordids = implode(',', $records);
     $this->listid = $this->get('id', 'list');
     $this->showSubject = $model->getShowSubject();
     $this->subject = $model->getSubject();
     $this->message = $model->getMessage();
     $this->allowAttachment = $model->getAllowAttachment();
     $this->editor = $model->getEditor();
     $this->toType = $model->_toType();
     $this->emailTo = $model->_emailTo();
     $this->params = $model->getParams();
     $this->listEmailTo = $model->formModel->getElementList('list_email_to');
     $this->addressBook = $model->addressBook();
     $srcs = FabrikHelperHTML::framework();
     FabrikHelperHTML::iniRequireJs();
     FabrikHelperHTML::script($srcs);
     return parent::display();
 }
開發者ID:jfquestiaux,項目名稱:fabrik,代碼行數:40,代碼來源:view.partial.php

示例3: display

 /**
  * display the template
  *
  * @param sting $tpl
  */
 function display($tpl = null)
 {
     FabrikHelperHTML::framework();
     $element = JRequest::getVar('element');
     $elementid = JRequest::getVar('elid');
     $pluginManager = JModel::getInstance('Pluginmanager', 'FabrikFEModel');
     $className = JRequest::getVar('plugin');
     $plugin = $pluginManager->getPlugIn($className, 'element');
     if (JError::isError($plugin)) {
         JError::handleMessage($plugin);
         return;
     }
     $plugin->setId($elementid);
     $data = array();
     $repeatCounter = 0;
     $groupModel = $plugin->getGroup();
     $srcs = array();
     $plugin->formJavascriptClass($srcs);
     echo "srcs = ";
     print_r($srcs);
     FabrikHelperHTML::script($srcs, true);
     $html = '<script>';
     $html .= $plugin->elementJavascript($repeatCounter);
     $html .= '</script>';
     $html .= $plugin->_getElement($data, $repeatCounter, $groupModel);
     echo $html;
 }
開發者ID:juliano-hallac,項目名稱:fabrik,代碼行數:32,代碼來源:view.html.php

示例4: renderListData

	/**
	 * shows the data formatted for the table view
	 * @param string data
	 * @param object all the data in the tables current row
	 * @return string formatted value
	 */

	function renderListData($data, $oAllRowsData)
	{
		$id = $this->getHTMLId();
		$id .= "_" . $oAllRowsData->__pk_val;
		FabrikHelperHTML::script('media/com_fabrik/js/lib/swfobject.js', false);
		$params = $this->getParams();
		$partnerid = $params->get('kaltura_partnerid');
		?>

<script type="text/javascript">
	var params = {
		allowscriptaccess: "always",
		allownetworking: "all",
		allowfullscreen: "true",
		wmode: "opaque"
	};

	var flashVars = {
		entryId: "<?php echo $data?>"
	};

	swfobject.embedSWF("http://www.kaltura.com/kwidget/wid/_<?php echo $partnerid?>", "<?php echo $id?>", "400", "360", "9.0.0", false, flashVars, params);
</script>
		<?php
return '<div id="'.$id.'"></div>';
		//return parent::renderListData($data, $oAllRowsData);
	}
開發者ID:Jobar87,項目名稱:fabrik,代碼行數:34,代碼來源:kaltura.php

示例5: getAdminJs

 /**
  * get JS to manage the plugins html
  * @see components/com_fabrik/models/FabrikModelPlugin#getAdminJs($form, $lists)
  */
 function getAdminJs($form, $lists)
 {
     FabrikHelperHTML::script('admin.js', 'components/com_fabrik/plugins/form/fabriklimit/', true);
     $params =& $this->getParams();
     $children = $params->_xml['_default']->children();
     $opts = $this->getAdminJsOpts($form, $lists);
     foreach ($children as $node) {
         $type = $node->attributes('type');
         //remove any occurance of a mos_ prefix
         $type = str_replace('mos_', '', $type);
         $element =& $params->loadElement($type);
         $repeat = $element->getRepeat();
         $c = $element->getRepeatCounter();
         if ($type == 'fabriktables') {
             $connection = $node->attributes('observe');
             $opts->connection_id = $connection;
         }
         if ($type == 'element') {
             $name = $node->attributes('name');
             $opts->{$name} = new stdClass();
             $opts->{$name}->published = (int) $node->attributes('published', 0);
             $opts->{$name}->include_calculations = (int) $node->attributes('include_calculations', 0);
             $opts->{$name}->showintable = (int) $node->attributes('showintable', 0);
             $opts->{$name}->table_id = $node->attributes('table');
         }
     }
     $opts = json_encode($opts);
     $script = "new fabrikAdminLimit('{$this->row->name}', '{$this->_pluginLabel}', {$opts})";
     return $script;
 }
開發者ID:nikshade,項目名稱:fabrik21,代碼行數:34,代碼來源:fabriklimit.php

示例6: loadJavascriptInstance

 /**
  * return the javascript to create an instance of the class defined in formJavascriptClass
  * @param object parameters
  * @param object table model
  * @param array [0] => string table's form id to contain plugin
  * @return bool
  */
 function loadJavascriptInstance($params, $model, $args)
 {
     if (!$this->canUse()) {
         return;
     }
     $form_id = $args[0];
     FabrikHelperHTML::script('element.js', 'media/com_fabrik/js/');
     $orderEl = $model->getForm()->getElement($params->get('order_element'), true);
     $opts = new stdClass();
     $opts->enabled = count($model->orderEls) === 1 && FabrikString::safeColNameToArrayKey($model->orderEls[0]) == FabrikString::safeColNameToArrayKey($orderEl->getOrderByName()) ? true : false;
     $opts->liveSite = COM_FABRIK_LIVESITE;
     $opts->tableid = $model->_id;
     $opts->orderElementId = $params->get('order_element');
     $opts->handle = $params->get('order_element_as_handle', 1) == 1 ? '.fabrik_row___' . $orderEl->getOrderByName() : false;
     $opts->direction = $opts->enabled ? $model->orderDirs[0] : '';
     $opts->transition = '';
     $opts->duration = '';
     $opts->constrain = '';
     $opts->clone = '';
     $opts->revert = '';
     $opts->container = 'table_' . $model->getTable()->id;
     $opts = json_encode($opts);
     $lang = $this->_getLang();
     $lang = json_encode($lang);
     $this->jsInstance = "new FbTableOrder('{$form_id}', {$opts}, {$lang})";
     return true;
 }
開發者ID:nikshade,項目名稱:fabrik21,代碼行數:34,代碼來源:order.php

示例7: display

 function display($tmpl = 'default')
 {
     require_once COM_FABRIK_FRONTEND . DS . 'helpers' . DS . 'html.php';
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $id = JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0)));
     $model->setId($id);
     $this->assign('id', $id);
     $this->assignRef('row', $this->get('Visualization'));
     $this->assign('rows', $this->get('Rows'));
     $this->assign('containerId', $this->get('ContainerId'));
     $this->calName = $this->get('VizName');
     $this->assignRef('params', $this->get('PluginParams'));
     $tmpl = $this->params->get('approvals_layout', $tmpl);
     $tmplpath = JPATH_SITE . DS . 'plugins' . DS . 'fabrik_visualization' . DS . 'approvals' . DS . 'views' . DS . 'approvals' . DS . 'tmpl' . DS . $tmpl;
     $this->_setPath('template', $tmplpath);
     $ab_css_file = $tmplpath . DS . "template.css";
     if (file_exists($ab_css_file)) {
         JHTML::stylesheet('/plugins/fabrik_visualization/approvals/views/approvals/tmpl/' . $tmpl . '/template.css');
     }
     FabrikHelperHTML::script('plugins/fabrik_visualization/approvals/approvals.js', true, "var approvals = new fbVisApprovals('approvals_" . $id . "');");
     $text = $this->loadTemplate();
     $opt = JRequest::getVar('option');
     $view = JRequest::getCmd('view');
     JRequest::setVar('view', 'article');
     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);
     echo $text;
 }
開發者ID:juliano-hallac,項目名稱:fabrik,代碼行數:33,代碼來源:view.html.php

示例8: getInput

 /**
  * Get the input
  *
  * @return  string  HTML output
  */
 protected function getInput()
 {
     $from = $this->id . '-from';
     $add = $this->id . '-add';
     $remove = $this->id . '-remove';
     $up = $this->id . '-up';
     $down = $this->id . '-down';
     $script = "swaplist = new SwapList('{$from}', '{$this->id}','{$add}', '{$remove}', '{$up}', '{$down}');";
     FabrikHelperHTML::script('administrator/components/com_fabrik/models/fields/swaplist.js', $script);
     list($this->currentGroups, $this->currentGroupList) = $this->getCurrentGroupList();
     list($this->groups, $this->groupList) = $this->getGroupList();
     $str = '';
     $checked = empty($this->current_groups) ? 'checked="checked"' : '';
     if (empty($this->groups) && empty($this->currentGroups)) {
         return JText::_('COM_FABRIK_NO_GROUPS_AVAILABLE');
     } else {
         $str .= '<input type="text" readonly="readonly" class="readonly" style="clear:left" size="44" value="' . JText::_('COM_FABRIK_AVAILABLE_GROUPS') . ':" />';
         $str .= $this->groupList;
         $str .= '<input class="button" type="button" id="' . $this->id . '-add" value="' . JText::_('COM_FABRIK_ADD') . '" />';
         $str .= '<input type="text" readonly="readonly" class="readonly" style="clear:left" size="44" value="' . JText::_('COM_FABRIK_CURRENT_GROUPS') . ':" />';
         $str .= $this->currentGroupList;
         $str .= '<input class="button" type="button" value="' . JText::_('COM_FABRIK_UP') . '" id="' . $this->id . '-up" />';
         $str .= '<input class="button" type="button" value="' . JText::_('COM_FABRIK_DOWN') . '" id="' . $this->id . '-down" />';
         $str .= '<input class="button" type="button" value="' . JText::_('COM_FABRIK_REMOVE') . '" id="' . $this->id . '-remove"/>';
         return $str;
     }
 }
開發者ID:rogeriocc,項目名稱:fabrik,代碼行數:32,代碼來源:swaplist.php

示例9: display

 function display($tmpl = 'default')
 {
     FabrikHelperHTML::packageJS();
     $usersConfig =& JComponentHelper::getParams('com_fabrik');
     $model = $this->getModel();
     $id = JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0)));
     $model->setId($id);
     $row =& $model->getVisualization();
     $model->setTableIds();
     if ($this->get('RequiredFiltersFound')) {
         $model->render();
     }
     $this->assign('containerId', $this->get('ContainerId'));
     $this->assignRef('row', $row);
     $this->assign('showFilters', JRequest::getInt('showfilters', 1) === 1 ? 1 : 0);
     $this->assignRef('filters', $this->get('Filters'));
     $this->assign('filterFormURL', $this->get('FilterFormURL'));
     $pluginParams =& $model->getPluginParams();
     $this->assignRef('params', $pluginParams);
     $tmplpath = COM_FABRIK_FRONTEND . DS . 'plugins' . DS . 'visualization' . DS . 'coverflow' . DS . 'views' . DS . 'coverflow' . DS . 'tmpl' . DS . $tmpl;
     $this->_setPath('template', $tmplpath);
     //ensure we don't have an incorrect version of mootools loaded
     JHTML::stylesheet('table.css', 'media/com_fabrik/css/');
     FabrikHelperHTML::script('table.js', 'media/com_fabrik/js/', true);
     //check and add a general fabrik custom css file overrides template css and generic table css
     FabrikHelperHTML::stylesheetFromPath("media" . DS . "com_fabrik" . DS . "css" . DS . "custom.css");
     //check and add a specific biz  template css file overrides template css generic table css and generic custom css
     FabrikHelperHTML::stylesheetFromPath("components" . DS . "com_fabrik" . DS . "plugins" . DS . "visualization" . DS . "coverflow" . DS . "views" . DS . "coverflow" . DS . "tmpl" . DS . $tmpl . DS . "custom.css");
     FabrikHelperHTML::cleanMootools();
     //assign something to oPackage to ensure we can clear filters
     $str = "window.addEvent('domready', function(){\n\t\t\tfabrikChart{$this->row->id} = {};";
     $str .= "\n" . "oPackage.addBlock('vizualization_{$this->row->id}', fabrikChart{$this->row->id});\n\t\t});";
     FabrikHelperHTML::addScriptDeclaration($str);
     echo parent::display();
 }
開發者ID:nikshade,項目名稱:fabrik21,代碼行數:35,代碼來源:view.html.php

示例10: display

 function display($tmpl = 'default')
 {
     JHTML::_('behavior.calendar');
     FabrikHelperHTML::script('media/com_fabrik/js/list.js', true);
     require_once COM_FABRIK_FRONTEND . DS . 'helpers' . DS . 'html.php';
     FabrikHelperHTML::mocha();
     FabrikHelperHTML::loadCalendar();
     $model =& $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId(JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))));
     $this->row =& $model->getVisualization();
     $model->setListIds();
     if ($this->row->published == 0) {
         JError::raiseWarning(500, JText::_('ALERTNOTAUTH'));
         return '';
     }
     $calendar =& $model->_row;
     $this->media = $model->getMedia();
     $viewName = $this->getName();
     $pluginManager =& JModel::getInstance('Pluginmanager', 'FabrikFEModel');
     $plugin =& $pluginManager->getPlugIn('calendar', 'visualization');
     $this->assign('containerId', $this->get('ContainerId'));
     $this->assign('showFilters', JRequest::getInt('showfilters', 1) === 1 ? 1 : 0);
     $this->assignRef('filters', $this->get('Filters'));
     $pluginParams =& $model->getPluginParams();
     $tmpl = $pluginParams->get('media_layout', $tmpl);
     $tmplpath = JPATH_ROOT . DS . 'plugins' . DS . 'fabrik_visualization' . DS . 'media' . DS . 'views' . DS . 'media' . DS . 'tmpl' . DS . $tmpl;
     $this->_setPath('template', $tmplpath);
     $ab_css_file = $tmplpath . DS . "template.css";
     if (JFile::exists($ab_css_file)) {
         JHTML::stylesheet('plugins/fabrik_visualization/media/views/media/tmpl/' . $tmpl . '/template.css');
     }
     echo parent::display();
 }
開發者ID:juliano-hallac,項目名稱:fabrik,代碼行數:34,代碼來源:view.html.php

示例11: getInput

    /**
     * Method to get the field input markup.
     *
     * @return	string	The field input markup.
     */
    protected function getInput()
    {
        JText::script('COM_FABRIK_SUBOPTS_VALUES_ERROR');
        $default = new stdClass();
        $default->sub_values = array();
        $default->sub_labels = array();
        $default->sub_initial_selection = array();
        $opts = $this->value == '' ? json_encode($default) : json_encode($this->value);
        $script = "new Suboptions('{$this->name}', {$opts});";
        FabrikHelperHTML::script('administrator/components/com_fabrik/models/fields/suboptions.js', $script);
        $html = '<div style="float:left;width:100%">

<table style="width: 100%">
	<tr>
		<th style="width: 5%"></th>
		<th style="width: 30%">' . JText::_('COM_FABRIK_VALUE') . '</th>
		<th style="width: 30%">' . JText::_('COM_FABRIK_LABEL') . '</th>
		<th style="width: 30%">' . JText::_('COM_FABRIK_DEFAULT') . '</th>
	</tr>
</table>
<ul id="sub_subElementBody" class="subelements">
	<li></li>
</ul>
<a class="addButton" href="#" id="addSuboption">' . JText::_('COM_FABRIK_ADD') . '</a></div>';
        return $html;
    }
開發者ID:rogeriocc,項目名稱:fabrik,代碼行數:31,代碼來源:suboptions.php

示例12: display

 /**
  * Display the view
  *
  * @param   string  $tpl  Template
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     // Initialise variables.
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     $this->pluginFields = $this->get('PluginHTML');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new RuntimeException(implode("\n", $errors), 500);
     }
     $this->addToolbar();
     FabrikAdminHelper::setViewLayout($this);
     $srcs = FabrikHelperHTML::framework();
     $srcs[] = 'media/com_fabrik/js/fabrik.js';
     $srcs[] = 'administrator/components/com_fabrik/views/namespace.js';
     $srcs[] = 'administrator/components/com_fabrik/views/pluginmanager.js';
     $srcs[] = 'administrator/components/com_fabrik/views/visualization/adminvisualization.js';
     $shim = array();
     $dep = new stdClass();
     $dep->deps = array('admin/pluginmanager');
     $shim['admin/visualization/adminvisualization'] = $dep;
     FabrikHelperHTML::iniRequireJS($shim);
     $opts = new stdClass();
     $opts->plugin = $this->item->plugin;
     $js = "\n\tvar options = " . json_encode($opts) . ";\n\t\tFabrik.controller = new AdminVisualization(options);\n";
     FabrikHelperHTML::script($srcs, $js);
     parent::display($tpl);
 }
開發者ID:ppantilla,項目名稱:bbninja,代碼行數:36,代碼來源:view.html.php

示例13: getBottomContent

    /**
     * Sets up HTML to be injected into the form's bottom
     *
     * @param   object  $params     params
     * @param   object  $formModel  form model
     *
     * @return void
     */
    public function getBottomContent($params, $formModel)
    {
        $user = JFactory::getUser();
        if ($user->get('id') == 0) {
            $this->html = JText::_('PLG_CRON_NOTIFICATION_SIGN_IN_TO_RECEIVE_NOTIFICATIONS');
            return;
        }
        if ($params->get('send_mode') == '1') {
            return;
        }
        $opts = new stdClass();
        $opts->listid = $formModel->getListModel()->getId();
        $opts->formid = $formModel->getId();
        $opts->rowid = $formModel->_rowId;
        $opts->senderBlock = JRequest::getCmd('view') == 'form' ? 'form_' : 'details_';
        $opts->senderBlock .= $formModel->getId();
        $opts = json_encode($opts);
        $id = uniqid('fabrik_notification');
        if ($params->get('notification_ajax', 0) == 1) {
            FabrikHelperHTML::script('components/com_fabrik/plugins/form/notification/notify.js');
            $script = "head.ready(function() {\n\t\t\t\tvar notify = new Notify('{$id}', {$opts});\n \t\t\t});";
            FabrikHelperHTML::addScriptDeclaration($script);
        }
        // See if the checkbox should be checked
        $db = FabrikWorker::getDbo();
        $ref = $this->getRef($formModel->getListModel()->getId());
        $query = $db->getQuery(true);
        $query->select('COUNT(id)')->from('#__{package}_notification')->where('user_id = ' . (int) $user->get('id') . ' AND reference = ' . $ref);
        $db->setQuery($query);
        $found = $db->loadResult();
        $checked = $found ? 'checked="checked"' : '';
        $this->html = '
		<label><input id="' . $id . '" ' . $checked . ' type="checkbox" name="fabrik_notification" class="input" value="1"  />
		 ' . JText::_('PLG_CRON_NOTIFICATION_NOTIFY_ME') . '</label>';
    }
開發者ID:rogeriocc,項目名稱:fabrik,代碼行數:43,代碼來源:notification.php

示例14: display

 function display($tmpl = 'default')
 {
     FabrikHelperHTML::framework();
     FabrikHelperHTML::script('media/com_fabrik/js/list.js');
     $model = $this->getModel();
     $usersConfig = JComponentHelper::getParams('com_fabrik');
     $model->setId(JRequest::getVar('id', $usersConfig->get('visualizationid', JRequest::getInt('visualizationid', 0))));
     $this->row = $model->getVisualization();
     $model->setListIds();
     if ($this->row->published == 0) {
         JError::raiseWarning(500, JText::_('JERROR_ALERTNOAUTHOR'));
         return '';
     }
     $calendar = $model->_row;
     $this->media = $model->getMedia();
     $params = $model->getParams();
     $this->assign('params', $params);
     $viewName = $this->getName();
     $pluginManager = FabrikWorker::getPluginManager();
     $plugin = $pluginManager->getPlugIn('media', 'visualization');
     $this->assign('containerId', $this->get('ContainerId'));
     $this->assign('showFilters', JRequest::getInt('showfilters', $params->get('show_filters')) === 1 ? 1 : 0);
     $this->assignRef('filters', $this->get('Filters'));
     $this->assign('params', $model->getParams());
     $pluginParams = $model->getPluginParams();
     $tmpl = $pluginParams->get('media_layout', $tmpl);
     $tmplpath = JPATH_ROOT . '/plugins/fabrik_visualization/media/views/media/tmpl/' . $tmpl;
     $this->_setPath('template', $tmplpath);
     FabrikHelperHTML::stylesheetFromPath('plugins/fabrik_visualization/media/views/media/tmpl/' . $tmpl . '/template.css');
     echo parent::display();
 }
開發者ID:romuland,項目名稱:khparts,代碼行數:31,代碼來源:view.html.php

示例15: display

 /**
  * Display the view
  *
  * @param   string $tpl template
  *
  * @return  void
  */
 public function display($tpl = null)
 {
     // Initialise variables.
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     $this->js = $this->get('Js');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new RuntimeException(implode("\n", $errors), 500);
     }
     $this->addToolbar();
     FabrikAdminHelper::setViewLayout($this);
     // Set up the script shim
     $shim = array();
     $dep = new stdClass();
     $dep->deps = array('fab/fabrik');
     $shim['admin/pluginmanager'] = $dep;
     FabrikHelperHTML::iniRequireJS($shim);
     $srcs = FabrikHelperHTML::framework();
     $srcs['Fabrik'] = FabrikHelperHTML::mediaFile('fabrik.js');
     $srcs['Namespace'] = 'administrator/components/com_fabrik/views/namespace.js';
     $srcs['PluginManager'] = 'administrator/components/com_fabrik/views/pluginmanager.js';
     FabrikHelperHTML::script($srcs, $this->js);
     parent::display($tpl);
 }
開發者ID:glauberm,項目名稱:cinevi,代碼行數:33,代碼來源:view.html.php


注:本文中的FabrikHelperHTML::script方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。