Exemplo n.º 1
0
 public function ShowResumeSort()
 {
     $this->tpl->load('resume_sort');
     foreach (Resume::$sort_array as $field => $name) {
         if ($this->sort == $field && $this->sub_sort == "ASC") {
             $sub_sort = "DESC";
         } else {
             $sub_sort = "ASC";
         }
         $this->tpl->Set("<a href=\"" . $this->tpl->GetUrl($this->search_array, array(), array('sort' => $field, 'sub_sort' => $sub_sort, 'action' => 'resume'), array(), array('use_alt_url' => false, 'clear' => true)) . "\" />", "[{$field}]");
         $this->tpl->Set("</a>", "[/{$field}]");
     }
     $this->tpl->Compile('sort');
 }