function renderGoalForm($action, $values = "") { ?> <center> <form action='<?php echo $this->mosConfig_live_site; ?> /administrator/index2.php?option=com_joomlawatch&task=goals&action=save' method='POST'> <?php $color = ""; ?> <table width='80%' cellpadding='3'> <tr><td valign='top' align='left' colspan='3'> <h2><?php echo $action; echo JoomlaWatchHTML::renderOnlineHelp("goals-form"); ?> </h2> <div align='center' style='border:1px solid black; width:600px; text-align: justify; text-justify: distribute; padding: 5px;'> <?php echo _JW_DESC_GOALS_INSERT; ?> </div> <br/> </td></tr> <tr> <tr><?php echo $this->renderInputField("NAME", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("URI_CONDITION", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("TITLE_CONDITION", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("USERNAME_CONDITION", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("IP_CONDITION", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("CAME_FROM_CONDITION", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("COUNTRY_CONDITION", $values, $color); ?> </tr> <tr><td></td></tr> <tr><td align='right' style='color: gray;'><b><?php echo _JW_GOALS_ADVANCED . " :"; ?> </b></td></tr> <tr><?php echo $this->renderInputField("GET_VAR", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("GET_CONDITION", $values, $color); ?> </tr> <tr><td></td></tr> <tr><td></td></tr> <tr><?php echo $this->renderInputField("POST_VAR", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("POST_CONDITION", $values, $color); ?> </tr> <tr></tr> <tr><td align='right' style='color: gray;'><b><?php echo _JW_GOALS_ACTION . " :"; ?> </b></td></tr> <tr><?php echo $this->renderInputField("BLOCK", $values, $color); ?> </tr> <tr><?php echo $this->renderInputField("REDIRECT", $values, $color); ?> </tr> <tr><td></td></tr> <tr><td></td></tr> </tr> <tr><td colspan='3' align='center'> <br/><br/> <input type='submit' value='<?php echo $action; ?> ' /> <?php if (@$values) { ?> <input type='hidden' name='id' value='<?php echo @$values['id']; ?> ' /> <?php } ?> </td> </table> </form> </center> <?php }
} else { $week = $joomlaWatch->helper->getWeekByTimestamp($joomlaWatch->helper->getServerTime()); } $prevWeek = $week - 1; $nextWeek = $week + 1; ?> <table border='0' cellpadding='1' cellspacing='0' width='100%'> <tr><td colspan='5'> <h3><?php echo _JW_STATS_TITLE . " "; echo date("W", $week * 3600 * 24 * 7); ?> /<?php echo date("Y", $week * 3600 * 24 * 7); echo $joomlaWatchHTML->renderOnlineHelp("visit-stats"); ?> </h3> </td></tr> <tr><td colspan='5'> <table border='0'> <tr><td align='left' width='10%'><?php echo "<a href='javascript:setWeek({$prevWeek})' id='visits_{$prevWeek}'><" . _JW_STATS_WEEK . " " . date("W", $prevWeek * 3600 * 24 * 7) . "</a></td><td align='left'><img src='{$joomlaWatchHTML->mosConfig_live_site}/components/com_joomlawatch/icons/calendar.gif' border='0' align='center' />"; ?> </td> <td align='center' width='20%'><?php if (@$week != $thisWeek) { echo "<a href='javascript:setWeek({$thisWeek})' id='visits_{$thisWeek}'>" . _JW_STATS_THIS_WEEK . "</a>"; } ?> </td>
} if (@$_GET['week']) { $week = @$_GET['week']; } else { $week = floor($joomlaWatch->helper->getServerTime() / 24 / 3600 / 7); } $prev = $day - 1; $next = $day + 1; $prevWeek = $week - 1; $nextWeek = $week + 1; ?> <table cellpadding='2' cellspacing='0' width='100%' border='0'> <tr><td colspan='8'><h3><?php echo _JW_VISITS_VISITORS; echo $joomlaWatchHTML->renderOnlineHelp("visits"); ?> </h3></td></tr> <?php echo $joomlaWatchHTML->renderVisitors(); ?> <tr><td> </td></tr> <tr><td colspan='8'><h3><?php echo _JW_VISITS_BOTS; echo $joomlaWatchHTML->renderOnlineHelp("visits-bots"); ?> </h3></td></tr> <?php echo $joomlaWatchHTML->renderBots(); ?> </table>