X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=475c0beebf2743235c7f8eba155442b679cf53a1;hb=8f451ba7e88be8c166664dd2159a1bb726c1c851;hp=6ea65511a8c304213c8632c97c55d6440bb8b238;hpb=f6464b5c78b26c449ce87cdf4cccdadc0b990b57;p=mirrors%2FSokoMan.git diff --git a/index.php b/index.php index 6ea6551..475c0be 100755 --- a/index.php +++ b/index.php @@ -213,6 +213,8 @@ table { background-color: orange; border: orange; } a, a img { text-decoration:none; color: darkblue; border:none; } li a, a:hover { text-decoration:underline; } .tr_even td { background-color: lemonchiffon; } +.tr_nobr.tr_even td:first-child { border-left: 5px solid orange; } +.tr_nobr.tr_odd td:first-child { border-left: 5px solid white; } .item_status_stored td { font-weight:bold; } .item_status_deleted td { text-decoration:line-through; } .item_status_destroyed td { font-style:italic; } @@ -370,8 +372,8 @@ EOF; ); $relations_conditions=array( 'in_stock' => 'return(@$table[$id]["status_name"] == "stored");', - 'not_sold' => 'return(@$table[$id]["status_name"] != "saled");', - 'not_sold_or_disposed' => 'return(@$table[$id]["status_name"] != "saled" && @$table[$id]["status_name"] != "disposed");' + 'not_sold' => 'return(@$table[$id]["status_name"] != "sold");', + 'not_sold_or_disposed' => 'return(@$table[$id]["status_name"] != "sold" && @$table[$id]["status_name"] != "disposed");' ); foreach($table as $id => $row) { foreach($row as $column => $value) { @@ -875,7 +877,7 @@ class Sklad_UI { return $this->html->render_insert_form($class, $columns, $selectbox, $current, false, false, $multi_insert); } - function render_single_record_details($class, $id) { + function render_single_record_details($class, $id, $barcode=true) { $id_next = $id + 1; $id_prev = $id - 1 > 0 ? $id - 1 : 0; $get = $_SERVER['QUERY_STRING'] != '' ? '?'.$_SERVER['QUERY_STRING'] : ''; @@ -883,8 +885,8 @@ class Sklad_UI { $html.= $this->html->link('<<', "$class/$id_prev/"); $html.= '-'; $html.= $this->html->link('>>', "$class/$id_next/"); - $html.= '
'; - $html.=''.$this->html->render_barcode(BARCODE_PREFIX.strtoupper("$class/$id")).''; + $html.= '   '; + $barcode && $html.=''.$this->html->render_barcode(BARCODE_PREFIX.strtoupper("$class/$id")).''; $html.= $this->html->link('edit', "$class/$id/edit/"); if($this->db->contains_history($class)) $html.= ' ][ '.$this->html->link('history', "$class/$id/history/"); return $html; @@ -898,15 +900,15 @@ class Sklad_UI { $html.= $this->html->link('<<', "$class/$id/$limit/$offset_prev/$get"); $html.= '-'; $html.= $this->html->link('>>', "$class/$id/$limit/$offset_next/$get"); - $html.= '
'; + $html.= '   '; $html.= $this->html->link('new', "$class/new/$get"); return $html; } - function render_listing_extensions($class, $id, $limit, $offset, $edit=false) { + function render_listing_extensions($class, $id, $limit, $offset, $edit=false, $barcode=true) { $html=''; if(is_numeric($id)) { - $html.=$this->render_single_record_details($class, $id); + $html.=$this->render_single_record_details($class, $id, $barcode); } else { $html.=$this->render_listing_navigation($class, '*', $limit, $offset); } @@ -1086,6 +1088,7 @@ class Sklad_UI { $limit = is_numeric($PATH_CHUNKS[3]) ? (int) $PATH_CHUNKS[3] : FRONTEND_LISTING_LIMIT; $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); echo $this->render_items($class, $id, $limit, $offset, $where, $search, $history); echo $this->render_listing_extensions($class, $id, $limit, $offset, $edit); //print_r(array("
",$_SERVER));