当前位置: 首页>>代码示例>>PHP>>正文


PHP JToolBarHelper::preview方法代码示例

本文整理汇总了PHP中JToolBarHelper::preview方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolBarHelper::preview方法的具体用法?PHP JToolBarHelper::preview怎么用?PHP JToolBarHelper::preview使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JToolBarHelper的用法示例。


在下文中一共展示了JToolBarHelper::preview方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: onNginxmakersBrowse

 public function onNginxmakersBrowse()
 {
     JToolBarHelper::title(JText::_('ADMINTOOLS_TITLE_NGINXMAKER'), 'admintools');
     JToolBarHelper::save('save', 'ATOOLS_LBL_NGINXMAKER_SAVE');
     JToolBarHelper::apply('apply', 'ATOOLS_LBL_NGINXMAKER_APPLY');
     JToolBarHelper::divider();
     JToolBarHelper::preview('index.php?option=com_admintools&view=nginxmaker&tmpl=component');
     JToolBarHelper::divider();
     JToolBarHelper::back('JTOOLBAR_BACK', 'index.php?option=com_admintools');
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:10,代码来源:toolbar.php

示例2: _EDIT

 function _EDIT($edit)
 {
     $cid = JRequest::getVar('cid', array(0), '', 'array');
     $cid = intval($cid[0]);
     $text = $edit ? JText::_('Edit') : JText::_('New');
     JToolBarHelper::title(JText::_('Article') . ': <small><small>[ ' . $text . ' ]</small></small>', 'addedit.png');
     JToolBarHelper::preview('index.php?option=com_content&id=' . $cid . '&tmpl=component', true);
     JToolBarHelper::save();
     JToolBarHelper::apply();
     if ($edit) {
         // for existing articles the button is renamed `close`
         JToolBarHelper::cancel('cancel', 'Close');
     } else {
         JToolBarHelper::cancel();
     }
     JToolBarHelper::help('screen.content.edit');
 }
开发者ID:Isabella570,项目名称:Hotel-Management-Selena-,代码行数:17,代码来源:toolbar.content.html.php

示例3: verein

    function verein(&$row, $lists, $option)
    {
        $url = $_SERVER["REQUEST_URI"];
        $ipos = strpos($url, 'administrator');
        $rurl = substr($url, 0, $ipos);
        $surl = $_SERVER["SERVER_NAME"];
        JToolBarHelper::preview('http://' . $surl . $rurl . 'index.php?option=com_clm&view=verein&saison=' . $row->sid . '&amp;zps=' . $row->zps);
        CLMViewVereine::setVereinToolbar();
        JRequest::setVar('hidemainmenu', 1);
        JFilterOutput::objectHTMLSafe($row, ENT_QUOTES, 'extrainfo');
        ?>
	<script language="javascript" type="text/javascript">
		<!--
		function Tausch (x)
		{
			var w = document.getElementById(x).selectedIndex;
			var selected_text = document.getElementById(x).options[w].text;

			//document.getElementById('name').innerHTML=selected_text;
			document.getElementById('name').value=selected_text;
		}

		function VSTausch (x)
		{
			var w = document.getElementById(x).selectedIndex;
			var selected_text = document.getElementById(x).options[w].text;

			//document.getElementById('name').innerHTML=selected_text;
			document.getElementById('vs').value=selected_text;
		}

		function submitbutton(pressbutton) {
			var form = document.adminForm;
			if (pressbutton == 'cancel') {
				submitform( pressbutton );
				return;
			}
			// do field validation
			if (form.name.value == "") {
				alert( "<?php 
        echo JText::_('VEREIN_NAME_ANGEBEN', true);
        ?>
" );
			} else if ( getSelectedValue('adminForm','zps') == 0 ) {
				alert( "<?php 
        echo JText::_('VEREIN_ZPS_AUSWAEHLEN', true);
        ?>
" );
			} else if ( getSelectedValue('adminForm','sid') == 0 ) {
				alert( "<?php 
        echo JText::_('VEREIN_SAISON_AUSWAEHLEN', true);
        ?>
" );
			} else {
				submitform( pressbutton );
			}
		}
		//-->
		</script>

		<form action="index.php" method="post" name="adminForm">

		<div class="col width-50">
		<fieldset class="adminform">
		<legend><?php 
        echo JText::_('VEREIN_DETAILS');
        ?>
</legend>

		<table class="admintable">
		<tr>
			<td class="key" width="20%" nowrap="nowrap">
			<label for="zps"><?php 
        echo JText::_('VEREIN_ZPS') . ' : ';
        ?>
</label>
			</td>
			<td>
			<?php 
        echo $lists['verein'];
        ?>
			</td>
		</tr>
		<tr>
			<td class="key" width="20%" nowrap="nowrap">
			<label for="name"><?php 
        echo JText::_('VEREIN') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="name" id="name" size="50" maxlength="60" value="<?php 
        echo $row->name;
        ?>
" />
			</td>
		</tr>

		<tr>
			<td class="key" nowrap="nowrap"><label for="sid"><?php 
//.........这里部分代码省略.........
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:101,代码来源:vereine.php

示例4: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 public function addToolbar()
 {
     require_once JPATH_COMPONENT . '/helpers/quick2cart.php';
     $canDo = Quick2cartHelper::getActions();
     $input = JFactory::getApplication()->input;
     $layout = $input->get('layout', '');
     if ($layout != 'order' && $layout != 'invoice') {
         if (isset($this->orders[0])) {
             if ($canDo->get('core.delete')) {
                 JToolBarHelper::deleteList('', 'orders.deleteorders');
             }
             // CSV EXPORT
             if (JVERSION >= '3.0') {
                 JToolBarHelper::custom('orders.payment_csvexport', 'download', 'download', 'COM_QUICK2CART_SALES_CSV_EXPORT', false);
             } else {
                 // Get the toolbar object instance
                 $bar = JToolBar::getInstance('toolbar');
                 $button = "<a href='#' onclick=\"javascript:document.getElementById('task').value = 'orders.payment_csvexport';";
                 $button .= " document.adminForm.submit();\" > <span class='icon-32-save' title='" . JText::_('COM_QUICK2CART_SALES_CSV_EXPORT');
                 $button .= "'></span>" . JText::_('COM_QUICK2CART_SALES_CSV_EXPORT') . "</a>";
                 $bar->appendButton('Custom', $button);
             }
         }
         JToolBarHelper::back('QTC_HOME', 'index.php?option=com_quick2cart');
         if (JVERSION >= '3.0') {
             JToolBarHelper::title(JText::_('QTC_ORDERS'), 'list');
         } else {
             JToolBarHelper::title(JText::_('QTC_ORDERS'), 'orders.png');
         }
     } elseif ($layout != 'invoice') {
         JToolBarHelper::back('COM_QUICK2CART_BACK', 'index.php?option=com_quick2cart&view=orders');
         // Invoice Resend button
         JToolBarHelper::custom('orders.resendInvoice', 'repeat', 'repeat', JText::_('COM_QUICK2CART_RESEND_INVOICE'), false);
         // Invoice Preview button
         JToolBarHelper::preview('index.php?option=com_quick2cart&view=orders&layout=invoice&orderid=' . $this->orderid . '&tmpl=component', false);
         JToolBarHelper::custom('printOrder', 'print', 'print', JText::_('COM_QUICK2CART_PRINT'), false);
         // Amol code end
         if (JVERSION >= '3.0') {
             JToolBarHelper::title(JText::_('COM_QUICK2CART_ORDER_TITLE'), 'list');
         } else {
             JToolBarHelper::title(JText::_('COM_QUICK2CART_ORDER_TITLE'), 'order.png');
         }
     }
     if (JVERSION >= '3.0') {
         // JHtmlSidebar class to render a list view sidebar
         // setAction::Set value for the action attribute of the filter form
         JHtmlSidebar::setAction('index.php?option=com_quick2cart');
     }
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:56,代码来源:view.html.php


注:本文中的JToolBarHelper::preview方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。