Beispiel #1
0
 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);
 }
 function _getForms()
 {
     // published
     $this->form['published'] = CLMForm::radioPublished('published', $this->termine->published);
     // vereinZPS
     if (strlen($this->termine->host) < 2) {
         $this->termine->host = NULL;
     }
     $this->form['vereinZPS'] = CLMForm::selectVereinZPSuVerband('host', $this->termine->host);
 }
 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);
 }
Beispiel #4
0
			<input class="inputbox" type="time" name="startzeit" id="startzeit" value="<?php 
echo substr($this->roundData->startzeit, 0, 5);
?>
" />
			</td>
        </tr>
				
		<tr>
			<td class="key" nowrap="nowrap"><label for="published"><?php 
echo JText::_('CLM_PUBLISHED');
?>
:</label>
			</td>
			<td><fieldset class="radio">
			<?php 
echo CLMForm::radioPublished('published', $this->roundData->published);
?>
			</fieldset></td>
		</tr>
		
		<tr>
			<td class="key" nowrap="nowrap"><label for="verein"><?php 
echo JText::_('ENTRY_ENABLED');
?>
</label>
			</td>
			<td><fieldset class="radio">
			<?php 
echo JHtml::_('select.booleanlist', 'abgeschlossen', 'class="inputbox"', $this->roundData->abgeschlossen);
?>
			</fieldset></td>
Beispiel #5
0
<br/--->
<?php 
if (isset($this->runden) and count($this->runden) > 0) {
    foreach ($this->runden as $rnd => $runde) {
        if ($runde->nr < $rfirst) {
            continue;
        }
        if ($runde->nr > $rfirst + $rrange - 1) {
            $rlast = $runde->nr - 1;
            break;
        }
        echo "\n\t<fieldset class='adminform' id='fieldset_runde" . $rnd . "' style='display:block;'>\n\t<legend>" . JText::_('ROUND') . " " . $runde->runde . ", " . JText::_('DG') . " " . $runde->dg . " (" . $runde->name . ")</legend>\n\t\t<table width='100%' class='admintable'> \n\t\t\t<tr>";
        //
        // Rundendetails
        //
        echo "\n\t\t\t\t<td width='50%' style='vertical-align: top;'>\n\t\t\t\t\t<fieldset class='adminform'>\n\t\t\t\t\t\t<legend>" . JText::_('JDETAILS') . "</legend>\n\t\t\t\t\t\t<input type='hidden' name='dg[" . $rnd . "]' \tvalue='" . $runde->dg . "' />\n\t\t\t\t\t\t<input type='hidden' name='runde[" . $rnd . "]' \tvalue='" . $runde->runde . "' />\n\t\t\t\t\t\t<input type='hidden' name='nr[" . $rnd . "]' \tvalue='" . $runde->nr . "' />\n\t\t\t\t\t\t<table class='admintable'>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class='key' width='20%' nowrap='nowrap'>\n\t\t\t\t\t\t\t\t\t<label for='name'>" . JText::_('ROUND_NAME') . ":</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<input class='inputbox' type='text' name='name[" . $rnd . "]' id='name[" . $rnd . "]' size='50' maxlength='60' value='" . $runde->name . "' />\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td width='100' class='key'>\n\t\t\t\t\t\t\t\t\t<label for='datum'>" . JText::_('JDATE') . ":</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t" . JHtml::_('calendar', $runde->datum, 'datum[' . $rnd . ']', 'datum[' . $rnd . ']', '%Y-%m-%d', array('class' => 'text_area', 'size' => '32', 'maxlength' => '19')) . "\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class='key' nowrap='nowrap'>\n\t\t\t\t\t\t\t\t\t<label for='startzeit'>" . JText::_('RUNDE_STARTTIME') . ":</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<input class='inputbox' type='time' name='startzeit[" . $rnd . "]' id='startzeit[" . $rnd . "]' value='" . substr($runde->startzeit, 0, 5) . "'  />\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class='key' nowrap='nowrap'>\n\t\t\t\t\t\t\t\t\t<label for='published'>" . JText::_('CLM_PUBLISHED') . ":</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td><fieldset class='radio'>\n\t\t\t\t\t\t\t\t\t" . CLMForm::radioPublished('published[' . $rnd . ']', $runde->published) . "\n\t\t\t\t\t\t\t\t</fieldset></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class='key' nowrap='nowrap'>\n\t\t\t\t\t\t\t\t\t<label for='verein'>" . JText::_('ENTRY_ENABLED') . "</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td><fieldset class='radio'>\n\t\t\t\t\t\t\t\t\t" . JHtml::_('select.booleanlist', 'abgeschlossen[' . $rnd . ']', "class='inputbox'", $runde->abgeschlossen) . "\n\t\t\t\t\t\t\t\t</fieldset></td>\n\t\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class='key' nowrap='nowrap'>\n\t\t\t\t\t\t\t\t\t<label for='mf'>" . JText::_('TOURNAMENT_DIRECTOR') . ' ' . JText::_('APPROVAL') . ":</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td><fieldset class='radio'>\n\t\t\t\t\t\t\t\t\t" . JHtml::_('select.booleanlist', 'tl_ok[' . $rnd . ']', "class='inputbox'", $runde->tl_ok) . "\n\t\t\t\t\t\t\t\t</fieldset></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</fieldset>";
        //
        // Bemerkungen
        //
        echo "\n\t\t\t\t\t<fieldset class='adminform'>\n\t\t\t\t\t\t<legend>" . JText::_('REMARKS') . "</legend>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<table class='admintable'>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td width='20%' class='key' nowrap='nowrap'>\n\t\t\t\t\t\t\t\t\t<label for='mf'>" . JText::_('REMARKS_PUBLIC') . ":</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td valign='top'>\n\t\t\t\t\t\t\t\t\t<textarea class='inputbox' name='bemerkungen[" . $rnd . "]' id='bemerkungen[" . $rnd . "]' cols='40' rows='5' style='width:90%'>" . str_replace('&', '&amp;', $runde->bemerkungen) . "</textarea>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td width='20%' class='key' nowrap='nowrap'>\n\t\t\t\t\t\t\t\t\t<label for='mf'>" . JText::_('REMARKS_INTERNAL') . ":</label>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td valign='top'>\n\t\t\t\t\t\t\t\t\t<textarea class='inputbox' name='bem_int[" . $rnd . "]' id='bem_int[" . $rnd . "]' cols='40' rows='5' style='width:90%'>" . str_replace('&', '&amp;', $runde->bem_int) . "</textarea>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\t\t\t\t\t\t\t\n\t\t\t\t\t</fieldset>\n\t\t\t\t</td>";
        //
        // Paarungsdaten
        //
        echo "\n\t\t\t\t<td width='50%' style='vertical-align: top;'>\n\t\t\t\t\t<fieldset class='adminform'>\n\t\t\t\t\t\t<legend>" . JText::_('PAIRINGS') . "</legend>\n\t\t\t\t\t\t<div id='editcell'> \n\t\t\t\t\t\t\t<table class='adminlist'>\n\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<th width='10'>" . JText::_('PAIRING') . "</th>\n\t\t\t\t\t\t\t\t\t\t<th width=''>" . JText::_('WHITE') . "</th>\n\t\t\t\t\t\t\t\t\t\t<th width=''>" . JText::_('BLACK') . "</th>\n\t\t\t\t\t\t\t\t\t\t<th width='100'>" . JText::_('RESULT') . "</th>\t\t\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t<tfoot>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td colspan='10'></td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</tfoot>\n\t\t\t\t\t\t\t\t<tbody>";
        $k = 0;
        foreach ($this->matches[$rnd] as $brett => $match) {
            echo "<tr class='row" . $k . "'>";
            echo "<td align='center'>" . $brett . "<input type='hidden' name='brett[" . $rnd . "][" . $brett . "]' \tvalue='" . $match->brett . "' /></td>";
            echo "<td>" . JHtml::_('select.genericlist', $this->teilnehmer_options, 'spieler[' . $rnd . '][' . $brett . ']', 'class="inputbox" autocomplete="off"', 'value', 'text', $match->spieler, false) . "</td>";
            echo "<td>" . JHtml::_('select.genericlist', $this->teilnehmer_options, 'gegner[' . $rnd . '][' . $brett . ']', 'class="inputbox" autocomplete="off"', 'value', 'text', $match->gegner, false) . "</td>";
            echo "<td>" . JHtml::_('select.genericlist', $this->ergebnis_options, 'ergebnisWhite[' . $rnd . '][' . $brett . ']', 'class="inputbox" autocomplete="off"', 'value', 'text', $match->ergebnisWhite, false) . "\n\t\t\t\t\t\t\t\t\t\t\t\t<input type='hidden' name='ergebnisBlack[" . $rnd . "][" . $brett . "]' \tvalue='" . $match->ergebnisBlack . "' /></td>";