Example #1
0
    function EditView($title, $formData, $icon = 'generic')
    {
        global $jTips, $jLang;
        jTipsCommonHTML::loadCalendar();
        ?>
		<form action="index2.php" name="adminForm" method="post" enctype="multipart/form-data">
		<input type="hidden" name="option" value='<?php 
        echo jTipsGetParam($_REQUEST, 'option', 'com_jtips');
        ?>
'>
		<input type='hidden' name='task' value=''>
		<input type="hidden" name="hidemainmenu" value="0" />
		<input type='hidden' name='module' value='<?php 
        echo jTipsGetParam($_REQUEST, 'module', '');
        ?>
'>
		<input type="hidden" name="<?php 
        echo jTipsSpoofValue();
        ?>
" value="1" />
		<?php 
        if (isJoomla15()) {
            JToolBarHelper::title($title, $icon);
        } else {
            ?>
			<table class="adminheading">
			<tr><th class="edit"><?php 
            echo $title;
            ?>
</th></tr>
			</table>
			<?php 
        }
        foreach ($formData as $fieldset) {
            ?>
			<fieldset>
			<legend><?php 
            echo $jLang[$fieldset['legend']];
            ?>
</legend>
			<table class="admintable" width="100%">
			<tbody>
			<?php 
            $hiddenFields = array();
            foreach ($fieldset['fields'] as $row) {
                if ($row['field']['type'] == 'hidden') {
                    $hiddenFields[] = $row;
                    continue;
                }
                if ($row['field']['type'] == 'editor') {
                    $colspan = 2;
                } else {
                    $colspan = 1;
                }
                ?>
<tr>
				<td class="key" width="25%"><label for="<?php 
                echo $row['field']['attributes']['id'];
                ?>
"><?php 
                echo $jLang[$row['label']];
                ?>
</label></td>
				<td width="25%" colspan="<?php 
                echo $colspan;
                ?>
"><?php 
                echo parseEditField($row['field']);
                ?>
</td>
				<?php 
                if ($colspan == 1) {
                    ?>
				<td width="50%"><?php 
                    echo isset($row['description']) ? $jLang[$row['description']] : "";
                    ?>
&nbsp;</td>
					<?php 
                }
                ?>
				</tr><?php 
            }
            ?>
			</tbody>
			<tfoot>
			</tfoot>
			</table>
			<?php 
            //now loop on the hidden fields
            if (!empty($hiddenFields)) {
                foreach ($hiddenFields as $def) {
                    echo parseEditField($def['field']);
                }
            }
            ?>
			</fieldset>
			<?php 
        }
        ?>
		</form>
		<?php 
    }
Example #2
0
    function display()
    {
        global $mainframe, $database, $jTips, $jLang, $jLicence, $mosConfig_absolute_path, $mosConfig_live_site, $database;
        jTipsLogger::_log('Loading dashboard', 'INFO');
        jTipsCommonHTML::loadOverlib();
        $option = jTipsGetParam($_REQUEST, 'option', 'com_jtips');
        if (isJoomla15()) {
            JToolbarHelper::title($jLang['_ADMIN_DASH_CPANEL'], 'frontpage');
        } else {
            ?>
			<table class="adminheading" border="0" width="100%">
			<tr>
				<th class="cpanel" align="left"><?php 
            echo $jLang['_ADMIN_DASH_CPANEL'];
            ?>
</th>
				<td align="right"><a href="http://www.jtips.com.au" target="_blank" title="jTips Home"><img src="<?php 
            echo $mosConfig_live_site;
            ?>
/components/com_jtips/images/license_logo.png" alt="" border="0" /></a></td>
			</tr>
			</table>
		<?php 
        }
        ?>
		<table class="adminform">
		<tr>
		<td width="55%" valign="top">
		<?php 
        jTipsLogger::_log('Building dashboard icons', 'INFO');
        foreach ($this->menu as $item) {
            if (isset($item['url']) and !empty($item['url'])) {
                $link = $item['url'];
                $extra = "target='_blank'";
            } else {
                $link = "index2.php?option={$option}&amp;task=" . $item['task'];
                $extra = "";
            }
            ?>
		<div id="cpanel" style="float:left;">
			<div class="icon">
				<a href="<?php 
            echo $link;
            ?>
" <?php 
            echo $extra;
            ?>
>
				<img src="components/com_jtips/images/<?php 
            echo $item['image'];
            ?>
"  alt="<?php 
            echo $jLang[$item['alt']];
            ?>
" align="middle" border="0" /><span><?php 
            echo $jLang[$item['link']];
            ?>
</span></a>
			</div>
		</div>
		<?php 
        }
        ?>
</td>
<td width="45%" valign="top">
	<div style="width: 100%;">
	<?php 
        $tabs = new jTipsTabs(1);
        $tabs->startPane('dashpanel');
        $tabs->startTab($jLang['_ADMIN_DASH_TAB_SUMMARY'], 'summary');
        $center = "style='text-align:center;'";
        ?>
	&nbsp;
	<table class='adminlist'>
	<thead>
	<tr>
		<th><?php 
        echo $jLang['_COM_DASH_SEASON'];
        ?>
</th>
		<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_COM_DASH_CURR_ROUND'];
        ?>
</th>
		<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_TOTAL_USERS'];
        ?>
</th>
		<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_PENDING_TIPS'];
        ?>
</th>
		<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_PENDING_PAYMENT'];
        ?>
</th>
	</tr>
	</thead>
	<tbody>
	<?php 
        jTipsLogger::_log('Loading season data', 'INFO');
        $total_user_count = 0;
        foreach ($this->jSeasons as $jSeason) {
            if (TimeDate::toDatabaseDate($jSeason->end_time) > gmdate('Y-m-d')) {
                $round_id = $jSeason->getCurrentRound();
                $jRound = new jRound($database);
                if ($round_id) {
                    $jRound->load($round_id);
                }
                $jTipsUsers = $jSeason->getUsers();
                $total_users = 0;
                $no_tips = 0;
                $has_paid = 0;
                $no_tips_overlib = "";
                foreach ($jTipsUsers as $jTipsUser) {
                    $total_users++;
                    if (!$jTipsUser->hasTipped($jRound->id)) {
                        $no_tips++;
                        if ($no_tips < 10) {
                            $no_tips_overlib .= "<br />" . htmlentities($jTipsUser->getName());
                        } else {
                            if ($no_tips == 10) {
                                $no_tips_overlib .= "<br />...more";
                            }
                        }
                    }
                    if ($jTipsUser->paid == 1) {
                        $has_paid++;
                    }
                }
                if ($jTips['Payments'] != 0) {
                    $pending_payment = $total_users - $has_paid;
                } else {
                    $pending_payment = "N/A";
                }
                $no_tips_overlib = substr($no_tips_overlib, 6);
                if ($no_tips > 0) {
                    $no_tips_overlib_call = jTipsToolTip($no_tips_overlib, "Users Missing Tips");
                } else {
                    $no_tips_overlib_call = '';
                }
                ?>
			<tr>
				<td><?php 
                echo $jSeason->name;
                ?>
</td>
				<td <?php 
                echo $center;
                ?>
><?php 
                echo $jRound->round;
                ?>
</td>
				<td <?php 
                echo $center;
                ?>
><?php 
                echo $total_users;
                ?>
</td>
				<td <?php 
                echo $center;
                ?>
><?php 
                echo $no_tips . "&nbsp;" . $no_tips_overlib_call;
                ?>
</td>
				<td <?php 
                echo $center;
                ?>
><?php 
                echo $pending_payment;
                ?>
</td>
			</tr>
			<?php 
                $total_user_count += $total_users;
            }
        }
        ?>
	</tbody>
	</table>
	<?php 
        $tabs->endTab();
        $tabs->startTab($jLang['_ADMIN_DASH_TAB_UPDATED'], 'update');
        $filesWritable = filesWritable();
        ?>
	&nbsp;
	<table class="adminlist" width="100%">
		<thead>
		<tr>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_UPG_THISVERSION'];
        ?>
</th>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_UPG_LATESTVERSION'];
        ?>
</th>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_UPG_UPGRADE'];
        ?>
</th>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_UPG_FILE_CHECK'];
        ?>
</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td <?php 
        echo $center;
        ?>
><?php 
        echo getFullVersion();
        ?>
</td>
			<!-- td <?php 
        echo $center;
        ?>
 id="latest_version"><input type="button" onclick="liveCheckLatestVersion('latest_version');" class="button" value="Check Now" <?php 
        if (!$filesWritable) {
            echo "disabled";
        }
        ?>
 /></td -->
			<td <?php 
        echo $center;
        ?>
>N/A</td>
			<!-- td <?php 
        echo $center;
        ?>
><span id="liveupdatespan"><?php 
        echo getUpdateButton('', '');
        ?>
</span></td -->
			<td <?php 
        echo $center;
        ?>
>N/A</td>
			<td <?php 
        echo $center;
        ?>
>
			<?php 
        if ($filesWritable) {
            $tip = $jLang['_ADMIN_DASH_UPG_FILE_CHECK_OK'];
            $tipTitle = $jLang['_ADMIN_DASH_UPG_FILE_CHECK_OK_TITLE'];
            $img = 'checkin.png';
            echo jTipsToolTip($tip, $tipTitle, '', $img);
        } else {
            $tip = $jLang['_ADMIN_DASH_UPG_FILE_CHECK_FAIL'];
            $tipTitle = $jLang['_ADMIN_DASH_UPG_FILE_CHECK_FAIL_TITLE'];
            $img = 'warning.png';
            ?>
				<a href=>
				<?php 
            echo jTipsToolTip($tip, $tipTitle, '', $img, '', "index2.php?option=com_jtips&amp;module=Upgrade&amp;task=list");
            ?>
				</a>
				<?php 
        }
        ?>
			</td>
		</tr>
		<?php 
        if (needsUpgrade()) {
            ?>
		<tr>
			<td colspan="4" id="upgrade_area" <?php 
            echo $center;
            ?>
>
				<input type="button" class="button" name="upgrade" value="<?php 
            echo $jLang['_ADMIN_UPGRADE_BUTTON'];
            ?>
" onclick="doUpgrade(this);" />
			</td>
		</tr>
		<?php 
        }
        ?>
		</tbody>
		<thead>
		<tr>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_LAST_VALIDATED'];
        ?>
</th>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_VALIDATION'];
        ?>
</th>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_DASH_EXPIRY_DATE'];
        ?>
</th>
			<th <?php 
        echo $center;
        ?>
><?php 
        echo $jLang['_ADMIN_LICENSE_USER_COUNT'];
        ?>
</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td <?php 
        echo $center;
        ?>
><?php 
        $validation_date = $jLicence->getValidationDate();
        if ($validation_date == -1) {
            echo $jLang['_ADMIN_DASH_LIC_EXPIRED'];
        } else {
            echo $validation_date;
        }
        ?>
			</td>
			<td <?php 
        echo $center;
        ?>
><a href="index2.php?option=com_jtips&amp;task=Validate&amp;module=Dashboard"><?php 
        echo $jLang['_ADMIN_DASH_REVALIDATE'];
        ?>
</a></td>
			<td <?php 
        echo $center;
        ?>
><?php 
        echo TimeDate::toDisplayDate($jLicence->licence['license_expiry']);
        ?>
&nbsp;</td>
			<td <?php 
        echo $center;
        ?>
><?php 
        echo $jLicence->getActiveUserCount();
        ?>
 / <?php 
        echo $jLicence->getLicensedUsers();
        ?>
</td>
		</tr>
		</tbody>
		<thead>
		<tr>
			<th <?php 
        echo $center;
        ?>
 colspan="4"><?php 
        echo $jLang['_ADMIN_DASH_LOGGING'];
        ?>
</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td nowrap><?php 
        echo $jLang['_ADMIN_DASH_FILE_SIZE'];
        ?>
: <?php 
        echo size_readable(filesize($mosConfig_absolute_path . '/components/com_jtips/jtips.log'));
        ?>
</td>
			<td <?php 
        echo $center;
        ?>
><a href="index2.php?option=com_jtips&amp;task=DownloadLog&amp;module=Dashboard"><?php 
        echo $jLang['_ADMIN_DASH_DOWNLOAD'];
        ?>
</a></td>
			<td <?php 
        echo $center;
        ?>
><a href="index2.php?option=com_jtips&amp;task=PurgeLog&amp;module=Dashboard"><?php 
        echo $jLang['_ADMIN_DASH_PURGE'];
        ?>
</a></td>
			<td>&nbsp;</td>
		</tr>
		</tbody>
		<tfoot>
		<tr>
			<td colspan="4"><small><em><?php 
        echo $jLang['_ADMIN_DASH_LOG_ROTATED'];
        ?>
</em></small></td>
		</tr>
		</tfoot>
	</table>
	<?php 
        $tabs->endTab();
        $tabs->startTab($jLang['_ADMIN_DASH_TAB_ABOUT'], 'about');
        ?>
	<div style="text-align:center;"><img src="components/com_jtips/images/logo.png" border="0" />
	<h1><?php 
        echo getFullVersion();
        ?>
</h1></div>
	<p><?php 
        echo $jLang['_ADMIN_DASH_ABOUT_UPDATES'];
        ?>
 <a href="http://www.jtips.com.au/" target="_blank">http://www.jtips.com.au</a></p>
	<p><?php 
        echo $jLang['_ADMIN_DASH_ABOUT_SALES'];
        ?>
 <a href="mailto:sales@jtips.com.au?subject=jTips Enquiry">sales@jtips.com.au</a></p>
	<p><?php 
        echo $jLang['_ADMIN_DASH_ABOUT_SUPPORT'];
        ?>
 <a href="http://www.jtips.com.au" target="_blank">jTips.com.au</a></p>
	<p><?php 
        echo $jLang['_ADMIN_DASH_ABOUT_REBUILD'];
        ?>
 <a href="#" onclick="sendRebuildRequest('rebuildProgress');">&raquo; <?php 
        echo $jLang['_COMMON_CLICK_HERE'];
        ?>
 &laquo;</a>&nbsp;&nbsp;&nbsp;<span id="rebuildProgress"></span></p>
	<?php 
        $tabs->endTab();
        $tabs->startTab($jLang['_ADMIN_DASH_TAB_CREDITS'], 'credits');
        ?>
	&nbsp;
	<p><strong><?php 
        echo $jLang['_ADMIN_DASH_CREDITS'];
        ?>
:</strong></p>
	<table class="adminlist" width="100%">
		<thead>
		<tr>
			<th><?php 
        echo $jLang['_ADMIN_DASH_CREDITS_PACKAGE'];
        ?>
</th>
			<th><?php 
        echo $jLang['_ADMIN_DASH_CREDITS_HOMEPAGE'];
        ?>
</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>mootools</td>
			<td><a href="http://mootools.net/" target="_blank">http://mootools.net</a></td>
		</tr>
		<tr>
			<td>tnimg</td>
			<td><a href="http://vagh.armdex.com/tnimg" target="_blank">http://vagh.armdex.com/tnimg</a></td>
		</tr>
		<tr>
			<td>cURL</td>
			<td><a href="http://www.phpclasses.org/browse/package/1988.html" target="_blank">http://www.phpclasses.org</a></td>
		</tr>
		<tr>
			<td>dUnzip2</td>
			<td><a href="http://www.phpclasses.org/browse/package/2495.html" target="_blank">http://www.phpclasses.org</a></td>
		</tr>
		<tr>
			<td>MOOdalBox</td>
			<td><a href="http://www.e-magine.ro/web-dev-and-design/36/moodalbox/" target="_blank">http://www.e-magine.ro</a></td>
		</tr>
		<tr>
			<td>Silk Icons</td>
			<td><a href="http://www.famfamfam.com/lab/icons/silk/" target="_blank">http://www.famfamfam.com</a></td>
		</tr>
		<tr>
			<td>datejs</td>
			<td><a href="http://www.datejs.com/" target="_blank">http://www.datejs.com</a></td>
		</tr>
		<tr>
			<td>strftime in javascript</td>
			<td><a href="http://tech.bluesmoon.info/2008/04/strftime-in-javascript.html" target="_blank">http://tech.bluesmoon.info/2008/04/strftime-in-javascript.html</a></td>
		</tr>
		<tr>
			<td>Editor Area</td>
			<td><a href="http://www.cdolivet.net/editarea/" target="_blank">http://www.cdolivet.net/editarea</a></td>
		</tr>
		<tr>
			<td>GNOME Icons</td>
			<td><a href="http://commons.wikimedia.org/wiki/GNOME_Desktop_icons" target="_blank">http://commons.wikimedia.org/wiki/GNOME_Desktop_icons</a></td>
		</tr>
		</tbody>
	</table>
	<?php 
        $tabs->endTab();
        $tabs->startTab($jLang['_ADMIN_DASH_TAB_HELP'], 'help');
        ?>
	&nbsp;
	<h2><?php 
        echo $jLang['_ADMIN_DASH_HELP'];
        ?>
</h2>
	<p><?php 
        echo $jLang['_ADMIN_DASH_HELP_INTRO'];
        ?>
 <a href="http://www.jtips.com.au" target="_blank">www.jtips.com.au</a></p>
	<ul>
		<li><?php 
        echo $jLang['_ADMIN_DASH_HELP_GETTING_STARTED'];
        ?>
</li>
		<li><?php 
        echo $jLang['_ADMIN_DASH_HELP_GUIDES'];
        ?>
</li>
		<li><?php 
        echo $jLang['_ADMIN_DASH_HELP_TRICKS'];
        ?>
</li>
	</ul>
	<p>Do you have an invalid license key? Please contact jTips Support
		at <a href="mailto:support@jtips.com.au">support@jtips.com.au</a> and confirm your license key
		is valid for the domain <strong><?php 
        echo $_SERVER['SERVER_NAME'];
        ?>
</strong>.</p>
	<?php 
        $tabs->endTab();
        $tabs->endPane();
        ?>
	</div>
	</td>
	</tr>
	</table>
	<?php 
    }
Example #3
0
$jSeason = new jSeason($database);
$season_id = getSeasonID();
$jSeason->load($season_id);
$season_link = '';
//"&season=" .$jSeason->id;
$render->assign('jSeason', $jSeason);
$render->assign('season_link', $season_link);
$render->assign('adminUrl', "view=Administration&Itemid={$Itemid}&season=" . getSeasonID());
/*
 * TODO: BUG: XXX - the admin scripts were not loaded if the scorer was not part of a competition
 */
$my =& $mainframe->getUser();
if ($jSeason->scorer_id == $my->id) {
    //$mainframe->addCustomHeadTag('<script type="text/javascript" src="' .$mosConfig_live_site. '/components/com_jtips/views/Administration/Administration.js"></script>');
    //$mainframe->addCustomHeadTag('<script type="text/javascript" src="' .$mosConfig_live_site. '/administrator/components/com_jtips/lib/date.js"></script>');
    jTipsCommonHTML::loadCalendar();
}
$render->displayPreferencesLink();
if (!isset($jTips['Menu']) or empty($jTips['Menu'])) {
    $jTips['Menu'] = array();
}
if (array_key_exists($view, $jTips['Menu'])) {
    $classes = array('Dashboard' => array('class' => "sectiontableentry2 jmain_menu", 'cursor' => "cursor:pointer;cursor:hand;", 'onevent' => "onClick='window.location.href=\"" . jTipsRoute("index.php?option=com_jtips&Itemid={$Itemid}&view=Dashboard{$season_link}") . "\"'; onmouseover='this.className=\"sectiontableentry1 jmain_menu_hover\"' onmouseout='this.className=\"sectiontableentry2 jmain_menu\"'"), 'CompetitionLadder' => array('class' => "sectiontableentry2 jmain_menu", 'cursor' => "cursor:pointer;cursor:hand;", 'onevent' => "onClick='window.location.href=\"" . jTipsRoute("index.php?option=com_jtips&Itemid={$Itemid}&view=CompetitionLadder{$season_link}") . "\"' onmouseover='this.className=\"sectiontableentry1 jmain_menu_hover\"' onmouseout='this.className=\"sectiontableentry2 jmain_menu\"'"), 'TeamLadder' => array('class' => "sectiontableentry2 jmain_menu", 'cursor' => "cursor:pointer;cursor:hand;", 'onevent' => "onClick='window.location.href=\"" . jTipsRoute("index.php?option=com_jtips&Itemid={$Itemid}&view=TeamLadder{$season_link}") . "\"' onmouseover='this.className=\"sectiontableentry1 jmain_menu_hover\"' onmouseout='this.className=\"sectiontableentry2 jmain_menu\"'"));
    if ($jSeason->disable_tips or is_a($jTipsCurrentUser, 'jTipsUser') and $jTipsCurrentUser->inSeason($jSeason) and $jTipsCurrentUser->status == '1') {
        $classes['Tips'] = array('class' => "sectiontableentry2 jmain_menu", 'cursor' => "cursor:pointer;cursor:hand;", 'onevent' => "onClick='window.location.href=\"" . jTipsRoute("index.php?option=com_jtips&Itemid={$Itemid}&view=Tips{$season_link}") . "\"' onmouseover='this.className=\"sectiontableentry1 jmain_menu_hover\"' onmouseout='this.className=\"sectiontableentry2 jmain_menu\"'");
    }
    $classes[$view]['class'] = 'sectiontableheader jmain_menu';
    $classes[$view]['onevent'] = substr($classes[$view]['onevent'], 0, strpos($classes[$view]['onevent'], ' '));
    $render->assign('menuitems', $classes);
    $size = round(100 / count($classes), 1);
    $render->assign('cellsize', $size);
Example #4
0
    function display()
    {
        global $jTips, $jLang, $mainframe;
        jTipsCommonHTML::loadCalendar();
        if (isJoomla15()) {
            JToolBarHelper::title($this->formData['title'], 'round');
        } else {
            ?>
			<table class='adminheading'>
			<tr>
				<th><?php 
            echo $this->formData['title'];
            ?>
</th>
			</tr>
			</table>
			<?php 
        }
        ?>
		<style type="text/css">
		.hide {
			display:none;
		}
		</style>
		<form action='index2.php' name='adminForm' id='adminForm' method='post'>
			<input type="hidden" name="task" value="edit" />
			<input type="hidden" name="option" value="com_jtips" />
			<input type="hidden" name="module" value="Rounds" />
			<input type="hidden" name="boxchecked" value="0" />
			<input type="hidden" name="id" id="id" value="<?php 
        echo $this->focus->id;
        ?>
" />
			<input type="hidden" name="filter_order" value="<?php 
        echo jTipsGetParam($_REQUEST, 'filter_order');
        ?>
" />
			<input type="hidden" name="filter_order_Dir" value="<?php 
        echo jTipsGetParam($_REQUEST, 'filter_order_Dir');
        ?>
" />
			<input type="hidden" name="<?php 
        echo jTipsSpoofValue();
        ?>
" value="1" />
			<fieldset>
				<legend><?php 
        echo $jLang['_ADMIN_ROUND_LEGEND'];
        ?>
</legend>
				<table class='admintable' width="100%">
				<tr>
				<td class="key" width="25%"><?php 
        echo $jLang['_ADMIN_SEASON_SELECT'];
        ?>
</td>
				<td><?php 
        echo $this->selectLists['season_id'];
        ?>
</td>
				</tr>
				<tr>
				<td class="key" width="25%"><?php 
        echo $jLang['_ADMIN_ROUND_ROUND'];
        ?>
</td>
				<td><?php 
        echo $this->selectLists['roundnum'];
        ?>
</td>
				</tr>
				<tr>
				<td class="key" width="25%"><?php 
        echo $jLang['_ADMIN_ROUND_START'] . " " . $jLang['_ADMIN_ROUND_DATE'] . " &amp; " . $jLang['_ADMIN_ROUND_TIME'];
        ?>
</td>
				<td>
				<input type="text" name="date_start_date" size="30" value="<?php 
        echo $this->date_start_date;
        ?>
" id="date_start_date" />&nbsp;<img src='components/com_jtips/images/calendar.png' onclick='return showCalendar("date_start_date", "<?php 
        echo $jTips['DateFormat'];
        ?>
");' border='0' alt='...' align='absmiddle' />
				&nbsp;<?php 
        echo $this->date_start_time_hour;
        ?>
				:<?php 
        echo $this->date_start_time_minute;
        ?>
				&nbsp;<?php 
        echo $this->date_start_time_meridiem;
        ?>
				</td>
				</tr>
				<tr>
				<td class="key" width="25%"><?php 
        echo $jLang['_ADMIN_ROUND_END'] . " " . $jLang['_ADMIN_ROUND_DATE'] . " &amp; " . $jLang['_ADMIN_ROUND_TIME'];
        ?>
</td>
				<td>
				<input type="text" name="date_end_date" size="30" value="<?php 
        echo $this->date_end_date;
        ?>
" id="date_end_date" />&nbsp;<img src='components/com_jtips/images/calendar.png' onclick='return showCalendar("date_end_date", "<?php 
        echo $jTips['DateFormat'];
        ?>
");' border='0' alt='...' align='absmiddle' />
				&nbsp;<?php 
        echo $this->date_end_time_hour;
        ?>
				:<?php 
        echo $this->date_end_time_minute;
        ?>
				&nbsp;<?php 
        echo $this->date_end_time_meridiem;
        ?>
				</td>
				</tr>
				<tr>
				<td class="key" width="25%"><label for="show_comments"><?php 
        echo $jLang['_ADMIN_ROUND_SHOW_COMMENTS'];
        ?>
</label></td>
				<td><input type="checkbox" id="show_comments" onClick="$$('.info').toggleClass('hide');" /></td>
				</tr>
				</table>
			</fieldset>
			<fieldset>
			<legend><?php 
        echo $jLang['_ADMIN_ROUND_GAMES_LEGEND'];
        ?>
</legend>
			<?php 
        if (!$this->focus->getStatus() or !$this->focus->exists()) {
            ?>
			<p><input type="button" disabled class="button" onClick="addGameRow();toggleColumns();" id="addgame" value="Add Game" />
			&nbsp;<input type="button" disabled  class="button" onClick="removeGameRow();toggleColumns();" id="removegame" value="Remove Game(s)" /></p>
				<?php 
        }
        ?>
			<div id="round_loading" style="text-align:center;"><img src="components/com_jtips/images/loading.gif" alt="Loading..." border="0" /></div>
			<table class="adminlist" id="games_list" style="display:none;opacity:0;">
				<thead>
				<tr>
					<!--th align='center' width='1'>#</th-->
					<th align="center" width='20'>&nbsp;</th>
					<th id="left_team_th">&nbsp;</th>
					<th id="right_team_th">&nbsp;</th>
					<th><?php 
        echo $jLang['_ADMIN_ROUND_ORDER'];
        ?>
</th>
					<th class="pick_score"><input type='checkbox' onclick='toggleYesNo(this, "score");' <?php 
        echo (is_numeric($this->status) and $this->focus->exists()) ? "style='display:none;'" : "";
        ?>
 id="pick_score_toggle" /> <label for="pick_score_toggle"><?php 
        echo $jLang['_ADMIN_GAME_HAS_SCORE'];
        ?>
</label></th>
					<th class="pick_margin"><input type='checkbox' onclick='toggleYesNo(this, "margin");' <?php 
        echo (is_numeric($this->status) and $this->focus->exists()) ? "style='display:none;'" : "";
        ?>
 id="pick_margin_toggle" /> <label for="pick_margin_toggle"><?php 
        echo $jLang['_ADMIN_GAME_HAS_MARGIN'];
        ?>
</label></th>
					<th class="pick_bonus"><input type='checkbox' onclick='toggleYesNo(this, "bonus");' <?php 
        echo (is_numeric($this->status) and $this->focus->exists()) ? "style='display:none;'" : "";
        ?>
 id="pick_bonus_toggle" /> <label for="pick_bonus_toggle"><?php 
        echo $jLang['_ADMIN_GAME_HAS_BONUS'];
        ?>
</label></th>
		            <th id="left_start_th" class="team_starts">&nbsp;</th>
		            <th id="right_start_th" class="team_starts">&nbsp;</th>
		            <th id="tough_score_th" class="tough_score">&nbsp;</th>
		            <th class="date_time"><?php 
        echo $jLang['_ADMIN_GAME_TIME'];
        ?>
</th>
		            <th id="left_score_th" class="results">&nbsp;</th>
		            <th id="right_score_th" class="results">&nbsp;</th>
		            <th class="bonus_results"><?php 
        echo $jLang['_ADMIN_GAME_BONUS'];
        ?>
</th>
			    <th id="info_th" class="info hide"><?php 
        echo $jLang['_ADMIN_ROUNDS_INFO'];
        ?>
</th>
				</tr>
				</thead>
				<tbody id="table">
				</tbody>
			</table>
			</fieldset>
		</form>
		<?php 
        $init = "\n\t\t<script type='text/javascript'>\n\t\twindow.addEvent('domready', function() {\n\t\t\tgetTheRounds(\$('season_id'))\n\t\t});\n\t\t</script>";
        if (isJoomla15()) {
            $mainframe->addCustomHeadTag($init);
        } else {
            echo $init;
        }
    }