Code

Log free from SELECT_
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 May 2005 05:29:03 +0000 (05:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 May 2005 05:29:03 +0000 (05:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@506 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/logview/class_logview.inc
plugins/addons/logview/contents.tpl

index db979b13ab861df6a9675c99d13a1e40a916bcf6..c378c411409c131be8dc8a840e97d0887771d9c0 100644 (file)
@@ -243,28 +243,10 @@ class logview extends plugin
 
        $smarty->assign("hostlist", $this->hostlist);
 
-       if(count ($this->hostlist)){
-               $smarty->assign("SELECT_hostlist",TRUE);
-       }else{
-               $smarty->assign("SELECT_hostlist",FALSE);
-       }       
-
        $smarty->assign("loglevellist", $this->loglevellist);
-       
-    if(count ($this->loglevellist)){
-        $smarty->assign("SELECT_loglevellist",TRUE);
-    }else{
-        $smarty->assign("SELECT_loglevellist",FALSE);
-    }
 
        $smarty->assign("tilist", $this->tilist);
        
-    if(count ($this->tilist)){
-        $smarty->assign("SELECT_tilist",TRUE);
-    }else{
-        $smarty->assign("SELECT_tilist",FALSE);
-    }  
-
        $logfilter['regex']= preg_replace('/\%/', '*', $logfilter['regex']);
        foreach( array("host", "log_level", "time", "regex") as $type){
                 $smarty->assign("$type", $logfilter[$type]);
index e6e73d55886877ee3008cf5f5bcaa069c67dd85d..8b746ccc73d7b233fc789aa5a51949a237713807 100644 (file)
       <td><img alt="" align="middle" border=0 src="{$server_image}">&nbsp;{t}Show hosts{/t}</td>
       <td>
        <select name="host" size=1 onChange="mainform.submit()">
-               {if $SELECT_hostlist=="true"}
                       {html_options options=$hostlist selected=$host}
-               {else}
                           <option disabled></option>
-               {/if}
        </select>
       </td>
      </tr>
       <td><img alt="" align="middle" border=0 src="{$log_image}">&nbsp;{t}Log level{/t}</td>
       <td>
        <select name="log_level" size=1 onChange="mainform.submit()">
-           {if $SELECT_loglevellist=="true"}
                {html_options options=$loglevellist selected=$log_level}
-        {else}
             <option disabled></option>
-        {/if}
        </select>
       </td>
      </tr>
       <td><img alt="" align="middle" border=0 src="{$time_image}">&nbsp;{t}Time interval{/t}</td>
       <td>
        <select name="time" size=1 onChange="mainform.submit()">
-        {if $SELECT_tilist=="true"}
                {html_options options=$tilist selected=$time}
-               {else}
             <option disabled></option>
-        {/if}
        </select>
       </td>
      </tr>