public function OnPreRender() { $a_items = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'); $querystring = QueryStringBuilder::RemoveParameter('az'); foreach ($a_items as $s_item) { if ($s_item == $this->s_current) { $o_li = new XhtmlElement('li', new XhtmlElement('strong', $s_item)); $this->AddControl($o_li); unset($o_li); } else { if (in_array($s_item, $this->disabled, true)) { $this->AddControl(new XhtmlElement('li', $s_item)); } else { $o_link = new XhtmlElement('a', $s_item); # $o_link->AddAttribute('href', $this->s_page . $querystring . 'az=' . strtolower($s_item)); $o_link->AddAttribute('href', $this->s_page . '?az=' . strtolower($s_item)); $o_li = new XhtmlElement('li', $o_link); $this->AddControl($o_li); unset($o_link); unset($o_li); } } } }
function SetQueryString($s_input) { if (is_string($s_input)) { $this->s_query_string = QueryStringBuilder::RemoveParameter('page', $s_input); } }