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


PHP JoomleagueHelperRoute::getEditMatchRoute方法代码示例

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


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

示例1: array

		<?php 
} else {
    ?>
		<input type='checkbox' id='cb<?php 
    echo $i;
    ?>
' name='cid[]' value='<?php 
    echo $thismatch->id;
    ?>
' />
	</td>
	<!-- Edit match details -->
	<td valign="top">
		<?php 
    JHTML::_('behavior.modal', 'a.mymodal');
    $url = JoomleagueHelperRoute::getEditMatchRoute($this->project->id, $thismatch->id);
    $imgTitle = JText::_('Edit match details');
    $desc = JHTML::image(JURI::root() . 'media/com_joomleague/jl_images/edit.png', $imgTitle, array('id' => 'edit' . $thismatch->id, 'border' => 0, 'title' => $imgTitle));
    ?>
		<a class="mymodal" title="example" href="<?php 
    echo $url;
    ?>
" rel="{handler: 'iframe',size: {x: <?php 
    echo JComponentHelper::getParams('com_joomleague')->get('modal_popup_width', 900);
    ?>
,y: <?php 
    echo JComponentHelper::getParams('com_joomleague')->get('modal_popup_height', 600);
    ?>
}}"> <?php 
    echo $desc;
    ?>
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:form_dfcday_row.php

示例2: savematch

 function savematch()
 {
     JRequest::checkToken() or jexit(JText::_('COM_JOOMLEAGUE_GLOBAL_INVALID_TOKEN'));
     $msg = '';
     $post = JRequest::get('post');
     $summary = JRequest::getVar('summary', '', 'post', 'string', JREQUEST_ALLOWRAW);
     $post['summary'] = $summary;
     $preview = JRequest::getVar('preview', '', 'post', 'string', JREQUEST_ALLOWRAW);
     $post['preview'] = $preview;
     $project_id = JRequest::getInt('p', '', 'post', 'int');
     $round_id = JRequest::getInt('rid', '', 'post', 'int');
     $match_id = JRequest::getInt('mid', '', 'post', 'int');
     if ($post['alt_decision'] == 0) {
         $post['team1_result_decision'] = null;
         $post['team2_result_decision'] = null;
     }
     $model = $this->getModel('editmatch');
     $user = JFactory::getUser();
     $isAllowed = $model->isAllowed() || $model->isMatchAdmin($this->match->id, $user->id);
     if (!$isAllowed) {
         $link = JoomleagueHelperRoute::getResultsRoute($project_id);
         jexit(JText::_('You are not allowed to change matchdata. What are you doing here???'));
         $this->setRedirect($link, JText::_($msg));
     }
     #$post['match_date' . $cid[$x]] = JoomleagueHelper::convertDate( $post['match_date' . $cid[$x]], 0 );
     if ($model->savedetails($post)) {
         //clear ranking cache
         $cache = JFactory::getCache('joomleague.project' . $project_id);
         $cache->clean();
         $msg = 'Changes on selected match were saved';
     } else {
         $msg = 'Error while saving changes on selected match';
     }
     $link = JoomleagueHelperRoute::getEditMatchRoute($project_id, $match_id);
     $this->setRedirect($link, JText::_($msg));
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:36,代码来源:editmatch.php


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