X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=6296552329f21e584583511ee65a902658dcf5a6;hb=1f52346fa3205e61b1d0d406d60313095cbe5754;hp=768a1845c7b1ba300ce4b385a09f458173a520db;hpb=928bb5a6f34a0edb17af5d5a96fecd523473951a;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 768a184..6296552 100755 --- a/index.php +++ b/index.php @@ -496,8 +496,10 @@ EOF; 'model' => array('model_descript') ); $html = ''; + $even=false; foreach($columns as $column) { - $html.='
'.T($class).':'.T($column['Field']).''; + $html.='
'.T($class).':'.T($column['Field']).''; + $even = !$even; $name="values[$class][".$column['Field'].'][]'; $val = $update && isset($current[$column['Field']]) ? $current[$column['Field']] : false; switch(true) { @@ -1045,6 +1047,8 @@ class Sklad_UI { } function process_http_request() { + $listing_limit_classes = array('item','model'); + $this->check_auth(); @ini_set('magic_quotes_gpc' , 'off'); @@ -1099,7 +1103,7 @@ class Sklad_UI { $edit=true; default: //?/?/? $history = $PATH_CHUNKS[3] == 'history' ? true : false; - $limit = is_numeric($PATH_CHUNKS[3]) ? (int) $PATH_CHUNKS[3] : FRONTEND_LISTING_LIMIT; + $limit = is_numeric($PATH_CHUNKS[3]) ? (int) $PATH_CHUNKS[3] : (in_array($class, $listing_limit_classes) ? FRONTEND_LISTING_LIMIT : 0); $offset = isset($PATH_CHUNKS[4]) ? (int) $PATH_CHUNKS[4] : 0; $where = @is_array($_GET['where']) ? $_GET['where'] : false; echo $this->render_listing_extensions($class, $id, $limit, $offset, $edit, false);