public function getcontent()
 {
     $result = tadminviews::getviewform('/admin/views/themes/');
     $idview = tadminhtml::getparam('idview', 1);
     $view = tview::i($idview);
     $html = $this->gethtml('themes');
     $args = targs::i();
     $args->idview = $idview;
     $theme = $view->theme;
     $result .= $html->formheader($args);
     $result .= self::getlist($html->radioitem, $theme->name);
     $result .= $html->formfooter();
     return $html->fixquote($result);
 }
 public function getcontent()
 {
     switch ($this->name) {
         case 'widgets':
             $idwidget = tadminhtml::getparam('idwidget', 0);
             $widgets = twidgets::i();
             if ($widgets->itemexists($idwidget)) {
                 $widget = $widgets->getwidget($idwidget);
                 return $widget->admin->getcontent();
             } else {
                 $idview = (int) tadminhtml::getparam('idview', 1);
                 $view = tview::i($idview);
                 $result = tadminviews::getviewform('/admin/views/widgets/');
                 if ($idview == 1 || $view->customsidebar) {
                     $result .= self::getsidebarsform();
                 } else {
                     $args = targs::i();
                     $args->idview = $idview;
                     $args->customsidebar = $view->customsidebar;
                     $args->disableajax = $view->disableajax;
                     $args->action = 'options';
                     $result .= $this->html->adminform('[checkbox=customsidebar] [checkbox=disableajax] [hidden=idview] [hidden=action]', $args);
                 }
                 return $result;
             }
         case 'addcustom':
             $widget = tcustomwidget::i();
             return $widget->admin->getcontent();
     }
 }