/** * A Flexy helper method to display the day span selector * element. */ function showDaySpanSelector() { $this->oDaySpanSelector->_tabIndex = $this->tabindex; echo "\n <form id='period_form' name='period_form' action='{$this->pageName}'>"; // Create a temporary array and remove period_preset to prevent // parameters duplicating in links $aTempPageParams = $this->aPageParams; unset($aTempPageParams['period_preset']); unset($aTempPageParams['period_start']); unset($aTempPageParams['period_end']); _displayHiddenValues($aTempPageParams); $this->oDaySpanSelector->display(); $this->tabindex = $this->oDaySpanSelector->_tabIndex; echo "\n <a href='#' onclick='return periodFormSubmit()'>\n <img src='" . OX::assetPath() . "/images/{$GLOBALS['phpAds_TextDirection']}/go_blue.gif' border='0' tabindex='" . $this->tabindex++ . "' /></a>\n </form>"; }
function MAX_displayPeriodSelectionForm($period, $pageName, &$tabindex, $hiddenValues = null) { global $phpAds_TextDirection; echo "\n <form action='{$pageName}'>\n <select name='period' onChange='this.form.submit();' tabindex='" . $tabindex++ . "'>\n <option value='daily'" . ($period == 'daily' ? ' selected' : '') . ">{$GLOBALS['strDailyHistory']}</option>\n <option value='w'" . ($period == 'weekly' ? ' selected' : '') . ">{$GLOBALS['strWeeklyHistory']}</option>\n <option value='m'" . ($period == 'monthly' ? ' selected' : '') . ">{$GLOBALS['strMonthlyHistory']}</option>\n </select>\n \n <input type='image' src='" . OX::assetPath() . "/images/{$phpAds_TextDirection}/go_blue.gif' border='0' name='submit'>\n "; _displayHiddenValues($hiddenValues); echo "\n </form>\n "; }