コード例 #1
0
ファイル: toolbar.php プロジェクト: knigherrant/decopatio
 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');
 }
コード例 #2
0
 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');
 }
コード例 #3
0
    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 
        echo JText::_('SAISON') . ' : ';
        ?>
</label>
			</td>
			<td>
			<?php 
        echo $lists['saison'];
        ?>
			</td>
		</tr>
        
		<tr>
			<td class="key" nowrap="nowrap"><label for="published"><?php 
        echo JText::_('PUBLISHED') . ' : ';
        ?>
</label>
			</td>
			<td>
			<?php 
        echo $lists['published'];
        ?>
			</td>
		</tr>


<tr><td colspan="2"><hr></td></tr>

		<tr>
			<td class="key" nowrap="nowrap"><label for="lokal"><?php 
        echo JText::_('VEREIN_SPIELLOKAL') . ' : ';
        ?>
</label>
			</td>
			<td>
			<?php 
        echo JText::_('CLM_KOMMA') . "<br><br>";
        ?>
			<textarea class="inputbox" name="lokal" id="lokal" cols="40" rows="2" style="width:100%"><?php 
        echo $row->lokal;
        ?>
</textarea>
			<br><?php 
        echo JText::_('VEREIN_3_LINES');
        ?>
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="lokal"><?php 
        echo JText::_('VEREIN_ADRESSE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<textarea class="inputbox" name="adresse" id="adresse" cols="40" rows="2" style="width:100%"><?php 
        echo $row->adresse;
        ?>
</textarea>
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="lokal"><?php 
        echo JText::_('VEREIN_TERMINE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<textarea class="inputbox" name="termine" id="termine" cols="40" rows="4" style="width:99%"><?php 
        echo $row->termine;
        ?>
</textarea>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="lokal"><?php 
        echo JText::_('VEREIN_HOMEPAGE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="homepage" id="homepage"  size="50" value="<?php 
        echo $row->homepage;
        ?>
" />
		</tr>

        <tr><td colspan="2"><hr></td></tr>

		<tr>
			<td class="key" nowrap="nowrap"><label for="vs"><?php 
        echo JText::_('VEREIN_MANAGER') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="vs" id="vs" size="50" maxlength="100" value="<?php 
        echo $row->vs;
        ?>
" />
			<?php 
        echo $lists['vl'];
        ?>
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="vs_mail"><?php 
        echo JText::_('VEREIN_MAIL') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="vs_mail" id="vs_mail" size="50" maxlength="100" value="<?php 
        echo $row->vs_mail;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="vs_tel"><?php 
        echo JText::_('VEREIN_PHONE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="vs_tel" id="vs_tel" size="50" maxlength="100" value="<?php 
        echo $row->vs_tel;
        ?>
" />
			</td>
		</tr>
<tr><td colspan="2"><hr></td></tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="tl"><?php 
        echo JText::_('VEREIN_DIRECTOR') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="tl" id="tl" size="50" maxlength="100" value="<?php 
        echo $row->tl;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="tl_mail"><?php 
        echo JText::_('VEREIN_MAIL') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="tl_mail" id="tl_mail" size="50" maxlength="100" value="<?php 
        echo $row->tl_mail;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="tl_tel"><?php 
        echo JText::_('VEREIN_PHONE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="tl_tel" id="tl_tel" size="50" maxlength="100" value="<?php 
        echo $row->tl_tel;
        ?>
" />
			</td>
		</tr>
<tr><td colspan="2"><hr></td></tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="jw"><?php 
        echo JText::_('VEREIN_JUNIOR') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="jw" id="jw" size="50" maxlength="100" value="<?php 
        echo $row->jw;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="jw_mail"><?php 
        echo JText::_('VEREIN_MAIL') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="jw_mail" id="jw_mail" size="50" maxlength="100" value="<?php 
        echo $row->jw_mail;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="jw_tel"><?php 
        echo JText::_('VEREIN_PHONE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="jw_tel" id="jw_tel" size="50" maxlength="100" value="<?php 
        echo $row->jw_tel;
        ?>
" />
			</td>
		</tr>
<tr><td colspan="2"><hr></td></tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="pw"><?php 
        echo JText::_('VEREIN_SPOKESMAN') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="pw" id="pw" size="50" maxlength="100" value="<?php 
        echo $row->pw;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="pw_mail"><?php 
        echo JText::_('VEREIN_MAIL') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="pw_mail" id="pw_mail" size="50" maxlength="100" value="<?php 
        echo $row->pw_mail;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="pw_tel"><?php 
        echo JText::_('VEREIN_PHONE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="pw_tel" id="pw_tel" size="50" maxlength="100" value="<?php 
        echo $row->pw_tel;
        ?>
" />
			</td>
		</tr>
<tr><td colspan="2"><hr></td></tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="kw"><?php 
        echo JText::_('VEREIN_TREASURER') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="kw" id="kw" size="50" maxlength="100" value="<?php 
        echo $row->kw;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="kw_mail"><?php 
        echo JText::_('VEREIN_MAIL') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="kw_mail" id="kw_mail" size="50" maxlength="100" value="<?php 
        echo $row->kw_mail;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="kw_tel"><?php 
        echo JText::_('VEREIN_PHONE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="kw_tel" id="kw_tel" size="50" maxlength="100" value="<?php 
        echo $row->kw_tel;
        ?>
" />
			</td>
		</tr>
<tr><td colspan="2"><hr></td></tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="sw"><?php 
        echo JText::_('VEREIN_SENIOR') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="sw" id="sw" size="50" maxlength="100" value="<?php 
        echo $row->sw;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="sw_mail"><?php 
        echo JText::_('VEREIN_MAIL') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="sw_mail" id="sw_mail" size="50" maxlength="100" value="<?php 
        echo $row->sw_mail;
        ?>
" />
			</td>
		</tr>
		<tr>
			<td class="key" nowrap="nowrap"><label for="sw_tel"><?php 
        echo JText::_('VEREIN_PHONE') . ' : ';
        ?>
</label>
			</td>
			<td>
			<input class="inputbox" type="text" name="sw_tel" id="sw_tel" size="50" maxlength="100" value="<?php 
        echo $row->sw_tel;
        ?>
" />
			</td>
		</tr>


		</table>
		</fieldset>
		</div>

 <div class="col width-50">
  <fieldset class="adminform">
   <legend><?php 
        echo JText::_('VEREIN_BEMERKUNGEN');
        ?>
</legend>
	<table class="adminlist">
	<legend><?php 
        echo JText::_('VEREIN_OEFFENTLICH');
        ?>
</legend>
	<br>
	<tr>
	<td width="100%" valign="top">
	<textarea class="inputbox" name="bemerkungen" id="bemerkungen" cols="40" rows="5" style="width:90%"><?php 
        echo str_replace('&', '&amp;', $row->bemerkungen);
        ?>
</textarea>
	</td>
	</tr>
	</table>

	<table class="adminlist">
	<tr><legend><?php 
        echo JText::_('VEREIN_INTERN');
        ?>
</legend>
	<br>
	<td width="100%" valign="top">
	<textarea class="inputbox" name="bem_int" id="bem_int" cols="40" rows="5" style="width:90%"><?php 
        echo str_replace('&', '&amp;', $row->bem_int);
        ?>
</textarea>
	</td>
	</tr>
	</table>
  </fieldset>
  </div>
		<div class="clr"></div>

		<input type="hidden" name="section" value="vereine" />
		<input type="hidden" name="option" value="com_clm" />
		<input type="hidden" name="id" value="<?php 
        echo $row->id;
        ?>
" />
		<input type="hidden" name="cid" value="<?php 
        echo $row->cid;
        ?>
" />
		<input type="hidden" name="client_id" value="<?php 
        echo $row->cid;
        ?>
" />
		<input type="hidden" name="task" value="" />
		<?php 
        echo JHTML::_('form.token');
        ?>
		</form>
		<?php 
    }
コード例 #4
0
 /**
  * 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');
     }
 }