• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CLMText类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: _getForms

 function _getForms()
 {
     // category
     list($this->parentArray, $this->parentKeys) = CLMCategoryTree::getTree();
     if (count($this->parentArray) > 0) {
         // nur, wenn Kategorien existieren
         $parentlist[] = JHtml::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
         foreach ($this->parentArray as $key => $value) {
             $parentlist[] = JHtml::_('select.option', $key, $value, 'id', 'name');
         }
         $this->form['catidAlltime'] = JHtml::_('select.genericlist', $parentlist, 'catidAlltime', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->turnier->catidAlltime));
         $this->form['catidEdition'] = JHtml::_('select.genericlist', $parentlist, 'catidEdition', 'class="inputbox" size="1" style="max-width: 250px;"', 'id', 'name', intval($this->turnier->catidEdition));
     }
     // Saison
     $this->form['sid'] = CLMForm::selectSeason('sid', $this->turnier->sid);
     // Modus
     $this->form['modus'] = CLMForm::selectModus('typ', $this->turnier->typ, false, ' onChange="showFormRoundscount()";');
     // Tiebreakers
     $this->form['tiebr1'] = CLMForm::selectTiebreakers('tiebr1', $this->turnier->tiebr1);
     $this->form['tiebr2'] = CLMForm::selectTiebreakers('tiebr2', $this->turnier->tiebr2);
     $this->form['tiebr3'] = CLMForm::selectTiebreakers('tiebr3', $this->turnier->tiebr3);
     // stages/dg
     $this->form['dg'] = CLMForm::selectStages('dg', $this->turnier->dg);
     // director/tl
     $this->form['tl'] = CLMForm::selectDirector('tl', $this->turnier->tl);
     // bezirksveranstaltung?
     $this->form['bezirkTur'] = JHtml::_('select.booleanlist', 'bezirkTur', 'class="inputbox"', $this->turnier->bezirkTur);
     // vereinZPS
     // $this->form['vereinZPS']= CLMForm::selectVereinZPS('vereinZPS', $this->turnier->vereinZPS);
     $this->form['vereinZPS'] = CLMForm::selectVereinZPSuVerband('vereinZPS', $this->turnier->vereinZPS);
     // director/tl
     $this->form['tl'] = CLMForm::selectDirector('tl', $this->turnier->tl);
     // published
     $this->form['published'] = CLMForm::radioPublished('published', $this->turnier->published);
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:35,代码来源:turform.php


示例2: _getTurnierData

 function _getTurnierData()
 {
     $query = "SELECT id, sid, name, typ, runden, rnd, published, params, catidAlltime, catidEdition" . " FROM #__clm_turniere" . " WHERE id = " . $this->turnierid;
     $this->_db->setQuery($query);
     $this->turnier = $this->_db->loadObject();
     // TO-DO: auslagern
     // zudem PGN-Parameter auswerten
     $turParams = new clm_class_params($this->turnier->params);
     $pgnInput = $turParams->get('pgnInput', 1);
     $pgnPublic = $turParams->get('pgnPublic', 1);
     // User ermitteln
     $user = JFactory::getUser();
     // Flag für View und Template setzen: pgnShow
     // FALSE - PGN nicht verlinken/anzeigen
     // TRUE - PGN-Links setzen und anzeigen
     // 'pgnInput möglich' UND ('pgn öffentlich' ORDER 'User eingeloggt')
     if ($pgnInput == 1 and ($pgnPublic == 1 or $user->id > 0)) {
         $this->pgnShow = TRUE;
     } else {
         $this->pgnShow = FALSE;
     }
     // turniernamen anpassen?
     $addCatToName = $turParams->get('addCatToName', 0);
     if ($addCatToName != 0 and ($this->turnier->catidAlltime > 0 or $this->turnier->catidEdition > 0)) {
         $this->turnier->name = CLMText::addCatToName($addCatToName, $this->turnier->name, $this->turnier->catidAlltime, $this->turnier->catidEdition);
     }
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:27,代码来源:turnier_player.php


示例3: checkData

 /**
  * bearbeitet und überprüft Daten
  *
  */
 function checkData()
 {
     $this->name = trim($this->name);
     if (strlen($this->name) == 0) {
         $this->setError(CLMText::errorText('ROUND_NAME', 'MISSING'));
         return false;
     } elseif ($this->nr < 1) {
         $this->setError(CLMText::errorText('ROUND_NR', 'MISSING'));
         return false;
     }
     // weitere
     if ($this->tl_ok == 1) {
         // Bestätigung gesetzt?
         $tournamentRound = new CLMTournamentRound($this->turnier, $this->id);
         if (!$tournamentRound->checkResultsComplete()) {
             $this->setError(CLMText::errorText('RESULTS', 'INCOMPLETE'));
             return false;
         }
     }
     if ($this->startzeit != '') {
         if (!CLMText::isTime($this->startzeit, true, false)) {
             $this->setError(CLMText::errorText('RUNDE_STARTTIME', 'IMPOSSIBLE'));
             return false;
         }
     }
     return true;
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:31,代码来源:turnier_runden.php


示例4: display

 function display($tpl = null)
 {
     $model =& $this->getModel();
     $spieler = $model->getCLMSpieler();
     $this->assignRef('spieler', $spieler);
     $model =& $this->getModel();
     $runden = $model->getCLMRunden();
     $this->assignRef('runden', $runden);
     $model =& $this->getModel();
     $dwz_date_new = $model->getCLMlog();
     $this->assignRef('dwz_date_new', $dwz_date_new);
     $model =& $this->getModel();
     $spielerliste = $model->getCLMSpielerliste();
     $this->assignRef('spielerliste', $spielerliste);
     $model =& $this->getModel();
     $vereinsliste = $model->getCLMVereinsliste();
     $this->assignRef('vereinsliste', $vereinsliste);
     $model =& $this->getModel();
     $saisons = $model->getCLMSaisons();
     $this->assignRef('saisons', $saisons);
     $document =& JFactory::getDocument();
     // Title in Browser
     $headTitle = CLMText::composeHeadTitle(array($spieler[0]->Vereinname, $spieler[0]->Spielername));
     $document->setTitle($headTitle);
     parent::display($tpl);
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:26,代码来源:view.html.php


示例5: _getParameters

 function _getParameters()
 {
     $mainframe =& JFactory::getApplication();
     global $option;
     // search
     $this->param['search'] = $mainframe->getUserStateFromRequest("{$option}.search", 'search', '', 'string');
     $this->param['search'] = JString::strtolower($this->param['search']);
     // parent
     $this->param['parentid'] = $mainframe->getUserStateFromRequest("{$option}.filter_parentid", 'filter_parentid', 0, 'int');
     // get Tree
     list($this->parentArray, $this->parentKeys, $this->parentChilds) = CLMCategoryTree::getTree();
     $parentlist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
     foreach ($this->parentArray as $key => $value) {
         $parentlist[] = JHTML::_('select.option', $key, $value, 'id', 'name');
     }
     $this->form['parent'] = JHTML::_('select.genericlist', $parentlist, 'filter_parentid', 'class="inputbox" size="1" style="max-width: 250px;"' . CLMText::stringOnchange(TRUE), 'id', 'name', $this->param['parentid']);
     // Modus/Typ
     $this->param['modus'] = $mainframe->getUserStateFromRequest("{$option}.filter_modus", 'filter_modus', 0, 'int');
     // Bezirk
     $this->param['bezirk'] = $mainframe->getUserStateFromRequest("{$option}.filter_bezirk", 'filter_bezirk', 0, 'int');
     // Saison
     $this->param['sid'] = $mainframe->getUserStateFromRequest("{$option}.filter_sid", 'filter_sid', 0, 'int');
     // Statusfilter
     $this->param['state'] = $mainframe->getUserStateFromRequest("{$option}.filter_state", 'filter_state', '', 'word');
     // Order
     $this->param['order'] = $mainframe->getUserStateFromRequest("{$option}.filter_order", 'filter_order', 'a.id', 'cmd');
     // JRequest::getString('filter_order', 'a.id');
     $this->param['order_Dir'] = $mainframe->getUserStateFromRequest("{$option}.filter_order_Dir", 'filter_order_Dir', '', 'word');
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:29,代码来源:turmain.php


示例6: display

 function display($tpl = null)
 {
     $model = $this->getModel();
     $liga = $model->getCLMliga();
     $this->assignRef('liga', $liga);
     $model = $this->getModel();
     $remis = $model->getCLMRemis();
     $this->assignRef('remis', $remis);
     $model = $this->getModel();
     $kampflos = $model->getCLMKampflos();
     $this->assignRef('kampflos', $kampflos);
     $model = $this->getModel();
     $heim = $model->getCLMHeim();
     $this->assignRef('heim', $heim);
     $model = $this->getModel();
     $gast = $model->getCLMGast();
     $this->assignRef('gast', $gast);
     $model = $this->getModel();
     $gesamt = $model->getCLMGesamt();
     $this->assignRef('gesamt', $gesamt);
     //$model		= $this->getModel();
     //$spieler	= $model->getCLMSpieler();
     //$this->assignRef('spieler'  , $spieler);
     $model = $this->getModel();
     $bestenliste = $model->getCLMBestenliste();
     $this->assignRef('bestenliste', $bestenliste);
     $model = $this->getModel();
     $mannschaft = $model->getCLMMannschaft();
     $this->assignRef('mannschaft', $mannschaft);
     $model = $this->getModel();
     $brett = $model->getCLMBrett();
     $this->assignRef('brett', $brett);
     $model = $this->getModel();
     $gbrett = $model->getCLMGBrett();
     $this->assignRef('gbrett', $gbrett);
     $model = $this->getModel();
     $rbrett = $model->getCLMRBrett();
     $this->assignRef('rbrett', $rbrett);
     $model = $this->getModel();
     $kbrett = $model->getCLMKBrett();
     $this->assignRef('kbrett', $kbrett);
     $model = $this->getModel();
     $kgmannschaft = $model->getCLMkgMannschaft();
     $this->assignRef('kgmannschaft', $kgmannschaft);
     $model = $this->getModel();
     $kvmannschaft = $model->getCLMkvMannschaft();
     $this->assignRef('kvmannschaft', $kvmannschaft);
     $document = JFactory::getDocument();
     // Title in Browser
     $headTitle = CLMText::composeHeadTitle(array($liga[0]->name, JText::_('LEAGUE_STATISTIK')));
     $document->setTitle($headTitle);
     /* Call the state object */
     $state = $this->get('state');
     /* Get the values from the state object that were inserted in the model's construct function */
     $lists['order'] = $state->get('filter_order_bl');
     $lists['order_Dir'] = $state->get('filter_order_Dir_bl');
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
开发者ID:ChessLeagueManager,项目名称:com_clm,代码行数:59,代码来源:view.html.php


示例7: checkData

 function checkData()
 {
     if (trim($this->name) == '') {
         // Name vorhanden
         $this->setError(CLMText::errorText('NAME', 'MISSING'));
         return false;
     }
     return true;
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:9,代码来源:termine.php


示例8: _saveDo

 function _saveDo()
 {
     JRequest::checkToken() or die('Invalid Token');
     if (CLM_usertype != 'admin' and CLM_usertype != 'tl') {
         JError::raiseWarning(500, JText::_('TOURNAMENT_NO_ACCESS'));
         return FALSE;
     }
     // Task
     $task = JRequest::getVar('task');
     // Instanz der Tabelle
     $row =& JTable::getInstance('turplayeredit', 'TableCLM');
     $row->load($this->playerid);
     // Daten zu dieser ID laden
     // Spieler existent?
     if (!$row->id) {
         JError::raiseWarning(500, CLMText::errorText('PLAYER', 'NOTEXISTING'));
         return FALSE;
         // Runde gehört zu Turnier?
     } elseif ($row->turnier != $this->turnierid) {
         JError::raiseWarning(500, CLMText::errorText('PLAYER', 'NOACCESS'));
         return FALSE;
     }
     if (!$row->bind(JRequest::get('post'))) {
         JError::raiseError(500, $row->getError());
         return FALSE;
     }
     if (!$row->check(JRequest::get('post'))) {
         JError::raiseError(500, $row->getError());
         return FALSE;
     }
     if (!$row->store()) {
         JError::raiseError(500, $row->getError());
         return FALSE;
     }
     $row->checkin();
     $text = JText::_('PARTICIPANT_EDITED') . ": " . $row->name;
     // Log schreiben
     $clmLog = new CLMLog();
     $clmLog->aktion = $text;
     $clmLog->params = array('sid' => $row->sid, 'tid' => $this->turnierid);
     // TurnierID wird als LigaID gespeichert
     $clmLog->write();
     $app =& JFactory::getApplication();
     $app->enqueueMessage($text);
     // wenn 'apply', weiterleiten in form
     if ($task == 'apply') {
         // Weiterleitung bleibt im Formular
         $this->adminLink->more = array('playerid' => $this->playerid);
     } else {
         // Weiterleitung in Liste
         $this->adminLink->more = array('id' => $this->turnierid);
         $this->adminLink->view = "turplayers";
         // WL in Liste
     }
     return TRUE;
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:56,代码来源:turplayeredit.php


示例9: checkData

 function checkData()
 {
     // aktuelle Daten laden
     $accesspoint = new CLMAccesspoint($this->id, true);
     if (trim($this->accesspoint) == '') {
         // Name vorhanden
         $this->setError(CLMText::errorText('NAME', 'MISSING'));
         return false;
     }
     return true;
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:11,代码来源:accesspoints.php


示例10: _getTurnierData

 function _getTurnierData()
 {
     $query = "SELECT t.*, CHAR_LENGTH(t.invitationText) AS invitationLength, s.name AS saisonname, u.name AS tlname, v.Vereinname AS organame" . " FROM #__clm_turniere AS t" . " LEFT JOIN #__clm_saison AS s ON s.id = t.sid" . " LEFT JOIN #__clm_user AS u ON jid = t.tl" . " LEFT JOIN #__clm_dwz_vereine AS v ON v.ZPS = t.vereinZPS" . " WHERE t.id = " . $this->turnierid;
     $this->_db->setQuery($query);
     $this->turnier = $this->_db->loadObject();
     // turniernamen anpassen?
     $turParams = new JParameter($this->turnier->params);
     $addCatToName = $turParams->get('addCatToName', 0);
     if ($addCatToName != 0 and ($this->turnier->catidAlltime > 0 or $this->turnier->catidEdition > 0)) {
         $this->turnier->name = CLMText::addCatToName($addCatToName, $this->turnier->name, $this->turnier->catidAlltime, $this->turnier->catidEdition);
     }
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:12,代码来源:turnier_info.php


示例11: _getTurnierData

 function _getTurnierData()
 {
     $query = "SELECT *" . " FROM #__clm_turniere" . " WHERE id = " . $this->turnierid;
     $this->_db->setQuery($query);
     $this->turnier = $this->_db->loadObject();
     // turniernamen anpassen?
     $turParams = new JParameter($this->turnier->params);
     $addCatToName = $turParams->get('addCatToName', 0);
     if ($addCatToName != 0 and ($this->turnier->catidAlltime > 0 or $this->turnier->catidEdition > 0)) {
         $this->turnier->name = CLMText::addCatToName($addCatToName, $this->turnier->name, $this->turnier->catidAlltime, $this->turnier->catidEdition);
     }
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:12,代码来源:turnier_tabelle.php


示例12: display

 function display($tpl = null)
 {
     $config = clm_core::$db->config();
     $model = $this->getModel();
     $document = JFactory::getDocument();
     $document->addScript('http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js');
     $document->addScript(JURI::base() . 'components/com_clm/javascript/updateTableHeaders.js');
     // Title in Browser
     $headTitle = CLMText::composeHeadTitle(array($model->turnier->name, JText::_('TOURNAMENT_TABLE')));
     $document->setTitle($headTitle);
     $this->assignRef('turnier', $model->turnier);
     $tourn_linkclub = $config->tourn_linkclub;
     $this->assignRef('tourn_linkclub', $tourn_linkclub);
     $this->assignRef('players', $model->players);
     parent::display($tpl);
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:16,代码来源:view.html.php


示例13: checkData

 /**
  * Overloaded check function
  *
  * @access public
  * @return boolean
  * @see JTable::check
  * @since 1.5
  */
 function checkData()
 {
     // aktuelle Daten laden
     // $category = new CLMCategory($this->id, TRUE);
     if (trim($this->name) == '') {
         // Name vorhanden
         $this->setError(CLMText::errorText('NAME', 'MISSING'));
         return false;
         /*
         } elseif ($this->sid <= 0) { // SaisonID > 0
         	$this->setError( CLMText::errorText('SEASON', 'IMPOSSIBLE') );
         	return false;
         
         } elseif ($this->tl <= 0) {
         	$this->setError( CLMText::errorText('TOURNAMENT_DIRECTOR', 'MISSING') );
         	return false;
         */
     }
     return true;
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:28,代码来源:categories.php


示例14: _getForms

 function _getForms()
 {
     // get Tree
     list($this->parentArray, $this->parentKeys) = CLMCategoryTree::getTree();
     // parent
     $parentlist[] = JHTML::_('select.option', '0', CLMText::selectOpener(JText::_('NO_PARENT')), 'id', 'name');
     foreach ($this->parentArray as $key => $value) {
         // Einträge ausscheiden, die die Kategorie selbst sind, ODER der Kategorie untergeordent sind!
         if ($key != $this->category->id) {
             if (!isset($this->parentKeys[$key]) or isset($this->parentKeys[$key]) and !in_array($this->category->id, $this->parentKeys[$key])) {
                 $parentlist[] = JHTML::_('select.option', $key, $value, 'id', 'name');
             }
         }
     }
     $this->form['parent'] = JHTML::_('select.genericlist', $parentlist, 'parentid', 'class="inputbox" size="1"', 'id', 'name', intval($this->category->parentid));
     // director/tl
     // $this->form['tl']	= CLMForm::selectDirector('tl', $this->category->tl);
     // published
     $this->form['published'] = CLMForm::radioPublished('published', $this->category->published);
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:20,代码来源:catform.php


示例15: check

 function check()
 {
     if (trim($this->name) == '') {
         // Name vorhanden
         $this->setError(CLMText::errorText('NAME', 'MISSING'));
         return false;
     } elseif (!is_numeric($this->NATrating)) {
         // TWZ = Zahl
         $this->setError(CLMText::errorText('RATING', 'NOTANUMBER'));
         return false;
     } elseif (!is_numeric($this->FIDEelo)) {
         // TWZ = Zahl
         $this->setError(CLMText::errorText('FIDE_ELO', 'NOTANUMBER'));
         return false;
     } elseif (!is_numeric($this->twz)) {
         // TWZ = Zahl
         $this->setError(CLMText::errorText('TWZ', 'NOTANUMBER'));
         return false;
     }
     return true;
 }
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:21,代码来源:turplayeredit.php


示例16: createPGNLink

 /**
  * createPGNLink()
  * erstellt Link auf PGN-Vorlage
  * Parameter pgn optional
  */
 public static function createPGNLink($view, $title, $params = array(), $pgn = 1)
 {
     // open div
     $string = '<div class="pdf">';
     // imageTag zusammensetzen
     $imageTag = '<img src="' . CLMImage::imageURL('pgn.gif') . '" width="16" height="19" title="' . $title . '" alt="PGN" class="CLMTooltip" />';
     // Paramter pgn ergänzen
     $params['pgn'] = $pgn;
     $string .= CLMText::createCLMLink($imageTag, $view, $params);
     // close div
     $string .= '</div>';
     return $string;
 }
开发者ID:ChessLeagueManager,项目名称:com_clm,代码行数:18,代码来源:CLMContent.class.php


示例17:

                }
                echo '</td>';
                ?>
					<?php 
            } else {
                echo '<td align="center"></td>';
            }
            echo '</tr>';
        }
    }
    // tl_ok? Haken anzeigen!
    if ($this->displayTlOK and $this->round->tl_ok > 0) {
        echo '<tr><td colspan="9">';
        echo '<div style="float:right; padding-right:1%;"><label for="name" class="hasTip" title="' . JText::_('TOURNAMENT_ROUNDOK') . '"><img  src="' . CLMImage::imageURL('accept.png') . '" /></label></div>';
        echo '</td></tr>';
    }
    echo '</table>';
    ?>
	
	<!--Bereich für pgn-Viewer-->
	<span id="pgnArea"></span>

	<?php 
    if ($this->round->bemerkungen != '') {
        echo "<div id='desc'>";
        echo CLMText::formatNote($this->round->bemerkungen);
        echo "</div>";
    }
}
require_once JPATH_COMPONENT . DS . 'includes' . DS . 'copy.php';
echo '</div></div>';
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:default.php


示例18: chr

     } else {
         if (isset($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][1]->ergebnis)) {
             if (substr(CLMText::getResultString($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][1]->ergebnis), 0, 7) == '&frac12') {
                 $czelle = chr(189);
             } else {
                 $czelle = CLMText::getResultString($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][1]->ergebnis, 0);
             }
         } else {
             $czelle = " ";
         }
         if ($this->turnier->dg == 2) {
             if (isset($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][2]->ergebnis)) {
                 if (substr(CLMText::getResultString($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][2]->ergebnis), 0, 7) == '&frac12') {
                     $czelle .= "/" . chr(189);
                 } else {
                     $czelle .= "/" . CLMText::getResultString($this->matrix[$this->players[$p]->snr][$this->posToPlayers[$rnd]][2]->ergebnis, 0);
                 }
             } else {
                 $czelle .= "/";
             }
         }
         $pdf->Cell($br11, $zelle, $czelle, 1, 0, 'C', 1);
     }
 }
 $pdf->Cell($br91, $zelle, $this->players[$p]->sum_punkte, 1, 0, 'C', 1);
 // mgl. Feinwertungen
 for ($f = 1; $f <= 3; $f++) {
     $fwFieldName = 'tiebr' . $f;
     $plTiebrField = 'sumTiebr' . $f;
     if ($this->turnier->{$fwFieldName} > 0) {
         $pdf->Cell($br92, $zelle, CLMtext::tiebrFormat($this->turnier->{$fwFieldName}, $this->players[$p]->{$plTiebrField}), 1, 0, 'C', 1);
开发者ID:ChessLeagueManager,项目名称:deprecated,代码行数:31,代码来源:rangliste_pdf.php


示例19:

            echo $row->koRoundName;
        }
    }
    ?>
						</b>
					</td>
					<?php 
    // nicht KO
    if ($this->turnier->typ != 3) {
        // alle Feinwertungen durchgehen
        for ($f = 1; $f <= 3; $f++) {
            $fieldName = 'tiebr' . $f;
            if ($this->turnier->{$fieldName} != 0 and $this->turnier->{$fieldName} < 50) {
                $sumFieldname = 'sumTiebr' . $f;
                echo '<td width="5%" align="right">';
                echo CLMText::tiebrFormat($this->turnier->{$fieldName}, $row->{$sumFieldname});
                echo '</td>';
            }
        }
    }
    ?>
					
					<td class="order" width="10%">
						<span><?php 
    echo $this->pagination->orderUpIcon($i, true, 'orderup()', 'Move Up', $this->param['order']);
    ?>
</span>
						<span><?php 
    echo $this->pagination->orderDownIcon($i, $n, true, 'orderdown()', 'Move Down', $this->param['order']);
    ?>
</span>
开发者ID:kbaerthel,项目名称:com_clm,代码行数:31,代码来源:default.php


示例20: _saveDo

 function _saveDo()
 {
     JRequest::checkToken() or die('Invalid Token');
     // Instanz der Tabelle
     $row = JTable::getInstance('turniere', 'TableCLM');
     $row->load($this->turnierid);
     // Daten zu dieser ID laden
     $clmAccess = clm_core::$access;
     if ($row->tl != clm_core::$access->getJid() and $clmAccess->access('BE_tournament_edit_detail') !== true or $clmAccess->access('BE_tournament_edit_detail') === false) {
         //if (clm_core::$access->getType() != 'admin' AND clm_core::$access->getType() != 'tl') {
         JError::raiseWarning(500, JText::_('TOURNAMENT_NO_ACCESS'));
         return false;
     }
     // Task
     $task = JRequest::getVar('task');
     // Instanz der Tabelle
     $row =& JTable::getInstance('turnier_teilnehmer', 'TableCLM');
     $row->load($this->playerid);
     // Daten zu dieser ID laden
     // Spieler existent?
     if (!$row->id) {
         JError::raiseWarning(500, CLMText::errorText('PLAYER', 'NOTEXISTING'));
         return false;
         // Runde gehört zu Turnier?
     } elseif ($row->turnier != $this->turnierid) {
         JError::raiseWarning(500, CLMText::errorText('PLAYER', 'NOACCESS'));
         return false;
     }
     if (!$row->bind(JRequest::get('post'))) {
         JError::raiseError(500, $row->getError());
         return false;
     }
     if (!$row->check(JRequest::get('post'))) {
         JError::raiseError(500, $row->getError());
         return false;
     }
     if (!$row->store()) {
         JError::raiseError(500, $row->getError());
         return false;
     }
     clm_core::$api->direct("db_tournament_delDWZ", array($this->turnierid, false));
     $text = JText::_('PARTICIPANT_EDITED') . ": " . $row->name;
     // Log schreiben
     $clmLog = new CLMLog();
     $clmLog->aktion = $text;
     $clmLog->params = array('sid' => $row->sid, 'tid' => $this->turnierid);
     // TurnierID wird als LigaID gespeichert
     $clmLog->write();
     $app = JFactory::getApplication();
     $app->enqueueMessage($text);
     // wenn 'apply', weiterleiten in form
     if ($task == 'apply') {
         // Weiterleitung bleibt im Formular
         $this->adminLink->more = array('playerid' => $this->playerid);
     } else {
         // Weiterleitung in Liste
         $this->adminLink->more = array('id' => $this->turnierid);
         $this->adminLink->view = "turplayers";
         // WL in Liste
     }
     return true;
 }
开发者ID:kbaerthel,项目名称:com_clm,代码行数:62,代码来源:turplayeredit.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CLang类代码示例发布时间:2022-05-23
下一篇:
PHP CLISetup类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap