tbrehm
2005-11-24 a01f0ec2151f4213d5a17b138909dd79a23ae4d2
interface/lib/classes/plugin_listview.inc.php
@@ -16,6 +16,8 @@
      $app->uses('listform');
      $app->listform->loadListDef($this->options["listdef"]);
      
      //$app->listform->SQLExtWhere = "type = 'alias'";
      $listTpl = new tpl;
      $listTpl->newTemplate('templates/'.$app->listform->listDef["name"].'_list.htm');
      
@@ -31,6 +33,10 @@
         } else {
            $sql_where = $app->tform->getAuthSQL('r')." and";
         }
      }
      if($this->options["sqlextwhere"] != '') {
         $sql_where .= " ".$this->options["sqlextwhere"]." and";
      }
      $sql_where = $app->listform->getSearchSQL($sql_where);
@@ -67,6 +73,13 @@
      $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
      include($lng_file);
      $listTpl->setVar($wb);
      // Setting Returnto information in the session
      $list_name = $app->listform->listDef["name"];
      $_SESSION["s"]["list"][$list_name]["parent_id"] = $app->tform_actions->id;
      $_SESSION["s"]["list"][$list_name]["parent_tab"] = $_SESSION["s"]["form"]["tab"];
      $_SESSION["s"]["list"][$list_name]["parent_script"] = $app->tform->formDef["action"];
      $_SESSION["s"]["form"]["return_to"] = $list_name;
      return $listTpl->grab();