Exemplo n.º 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
		<input type="text" name="search" id="search" value="<?php 
echo $this->form['search'];
?>
" class="text_area" onchange="document.adminForm.submit();" />
		<button onclick="this.form.submit();"><?php 
echo JText::_('GO');
?>
</button>
		<button onclick="document.getElementById('search').value='';this.form.getElementById('filter_vid').value='0';this.form.submit();"><?php 
echo JText::_('RESET');
?>
</button>
			</td>
			<td nowrap="nowrap">
				<?php 
echo "&nbsp;&nbsp;&nbsp;" . CLMForm::selectVerein('filter_vid', $this->param['vid'], TRUE);
?>
			</td>
		</tr>
		</table>

			<table class="adminlist">
			<thead>
				<tr>
					<th width="10">
						#
					</th>
					<th width="10">
					<?php 
echo $GLOBALS["clm"]["grid.checkall"];
?>
Exemplo n.º 5
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>
Exemplo n.º 6
0
				
						<td nowrap="nowrap" style="background-color:<?php 
    echo $color;
    ?>
;">
							<?php 
    echo CLMForm::selectMatchPlayer('b[' . $value->id . ']', $value->gegner, $this->players);
    ?>
						</td>
				
						<td nowrap="nowrap" style="background-color:<?php 
    echo $color;
    ?>
;">
							<?php 
    echo CLMForm::selectMatchResult('res[' . $value->id . ']', $value->ergebnis);
    ?>
						</td>
				
						<?php 
    if ($this->turnier->typ == 3 or $this->turnier->typ == 5) {
        // KO?
        echo '<td align="center" nowrap="nowrap" style="background-color:' . $color . ';">';
        echo '<input class="inputbox" type="text" name="tiebrS[' . $value->id . ']" id="tiebrS' . $value->id . '" size="3" maxlength="3" value="' . $value->tiebrS . '" />&nbsp;:&nbsp;';
        echo '<input class="inputbox" type="text" name="tiebrG[' . $value->id . ']" id="tiebrG' . $value->id . '" size="3" maxlength="3" value="' . $value->tiebrG . '" />';
        echo '</td>';
    }
    if ($pgnInput == 1) {
        ?>
							<td nowrap="nowrap" style="background-color:<?php 
        echo $color;
Exemplo n.º 7
0
?>
:
			</label>
		</td>
		<td class="paramlist_value">
			<?php 
if ($this->turnier->rnd == NULL) {
    ?>
				<input class="inputbox" onchange="showFormRoundscount();" type="text" name="teil" id="teil" size="10" maxlength="5" value="<?php 
    echo $this->turnier->teil;
    ?>
" />
			<?php 
} else {
    echo $this->turnier->teil;
    echo CLMForm::hidden('teil', $this->turnier->teil);
    // damit JavaScript funktioniert
}
?>
		</td>
	</tr>

	<tr>
		<td width="40%" class="paramlist_key">
			<label for="tiebreakers">
				<?php 
echo JText::_('TIEBREAKERS');
?>
:
			</label>
		</td>
Exemplo n.º 8
0
?>
</button>
					</td>
					
					<td align="center" width="20%">
						<?php 
echo CLMForm::selectDWZRanges('filter_dwz', $this->param['dwz'], TRUE);
?>
					</td>
					
					<td align="right" width="40%">
		
					<?php 
// eigenes Dropdown Menue
echo CLMForm::selectAssociation('filter_verband', $this->param['verband'], TRUE);
echo "<br /><br />" . CLMForm::selectVereinZPSinAssoc('filter_vid', $this->param['vid'], $this->param['verband'], TRUE);
?>
					</td>
				</tr>
				</table>
		
					<table class="adminlist">
					<thead>
						<tr>
							<th width="10">
								#
							</th>
							<th width="10">
								<?php 
echo $GLOBALS["clm"]["grid.checkall"];
?>
Exemplo n.º 9
0
    if ($spieler->name == 'spielfrei') {
        continue;
    }
    if ($i < $pfirst) {
        continue;
    }
    if ($i > $pfirst + $prange - 1) {
        $plast = $i - 1;
        break;
    }
    echo "<tr class='row" . $k . "'>";
    echo "<td align='center'>" . $i . "<input type='hidden' name='snr[" . $i . "]' \tvalue='" . $i . "' /></td>";
    echo "<td align='center'><input class='inputbox' type='text' name='title[" . $i . "]' id='title" . $i . "' size='3' maxlength='3' value='" . $spieler->title . "' /></td>";
    echo "<td><input class='inputbox' type='text' name='name[" . $i . "]' id='name' size='40' maxlength='60' value='" . $spieler->name . "' /></td>";
    echo "<td>" . JHtml::_('select.genericlist', $this->geschlechter, 'geschlecht[' . $i . ']', 'class="inputbox" autocomplete="off"', 'value', 'text', $spieler->geschlecht, false) . "</td>";
    echo "<td>" . CLMForm::selectVereinZPS('zps[' . $i . ']', $spieler->zps);
    echo "<input type='hidden' name='tlnrStatus[" . $i . "]' value='" . $spieler->tlnrStatus . "' /><input type='hidden' name='zps_z[" . $i . "]' value='" . $spieler->zps . "' />" . "</td>";
    echo "<td align='center'><input class='inputbox' type='text' name='mgl_nr[" . $i . "]' id='mgl_nr" . $i . "' size='4' maxlength='4' value='" . $spieler->mgl_nr . "' /></td>";
    echo "<td><input class='inputbox' type='text' name='verein[" . $i . "]' id='verein" . $i . "' size='40' maxlength='60' value='" . $spieler->verein . "' /></td>";
    echo "<td align='center'><input class='inputbox' type='text' name='start_dwz[" . $i . "]' id='start_dwz" . $i . "' size='4' maxlength='4' value='" . $spieler->start_dwz . "' /></td>";
    echo "<td align='center'><input class='inputbox' type='text' name='FIDEelo[" . $i . "]' id='FIDEelo" . $i . "' size='4' maxlength='4' value='" . $spieler->FIDEelo . "' /><input type='hidden' name='twz[" . $i . "]' id='twz'  value='" . $spieler->twz . "' /></td>";
    echo "<td align='center'><input class='inputbox' type='text' name='birthYear[" . $i . "]' id='birthYear" . $i . "' size='4' maxlength='4' value='" . $spieler->birthYear . "' /></td>";
    echo "<input type='hidden' name='FIDEcco[" . $i . "]' id='FIDEcco" . $i . "' value='" . $spieler->FIDEcco . "' />";
    echo "<input type='hidden' name='FIDEid[" . $i . "]' id='FIDEcco" . $i . "' value='" . $spieler->FIDEid . "' />";
    echo "</tr>";
    $k = 1 - $k;
}
?>
			</tbody>
		</table>
	</div> 
Exemplo n.º 10
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>";
Exemplo n.º 11
0
?>
" class="text_area" onchange="document.adminForm.submit();" />
				<button onclick="this.form.submit();"><?php 
echo JText::_('Go');
?>
</button>
				<button onclick="document.getElementById('search').value='';this.form.getElementById('filter_sid').value='0';this.form.getElementById('filter_state').value='';this.form.submit();"><?php 
echo JText::_('RESET');
?>
</button>
			</td>
			<td nowrap="nowrap">
				<?php 
echo $this->form['parent'];
echo "&nbsp;&nbsp;&nbsp;" . CLMForm::selectSeason('filter_sid', $this->param['sid'], TRUE);
echo "&nbsp;&nbsp;&nbsp;" . CLMForm::selectModus('filter_modus', $this->param['modus'], TRUE);
echo "&nbsp;&nbsp;&nbsp;" . JHTML::_('grid.state', $this->param['state']);
?>
			</td>
		</tr>
	</table>

	<table class="adminlist">
		<thead>
		<tr>
		<th width="2%">
			<?php 
echo JText::_('NUM');
?>
		</th>
		<th width="2%">