Font-size 75%
[mirrors/SokoMan.git] / index.php
index 36c59f153fab4ef6b3c69b13768817ba5109417b..bfab8bf53509d3dc85c8369432cbca00768a288d 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -216,9 +216,9 @@ class Sklad_HTML extends HTML { //TODO: Split into few more methods
 
 <style type="text/css">
 * { font-family: arial; }
-td,body { background-color: white; border: orange; }
+td,body { background-color: white; border: orange; font-size: 75%; }
 .tr_nobr td { border-top: 3px solid orange; }
-table { background-color: orange; border: orange; }
+table { background-color: orange; border: orange; /* border-collapse: collapse; */ }
 td textarea { width:100%; height:100%; }
 a, a img { text-decoration:none; color: darkblue; border:none; }
 li a, a:hover { text-decoration:underline; }
@@ -780,7 +780,7 @@ class Sklad_DB extends PDO {
 
        function columns_get_selectbox($columns, $class=false, $suffix_id='_id', $suffix_name='_name') {
                $selectbox=array( //TODO: Hardcoded...
-                       'model_countable' => array(0 => 'no', 1 => 'yes'),
+                       'model_countable' => array(1 => 'yes'),
                        'model_eshop_hide' => array(0 => 'no', 1 => 'yes'),
                        'vendor_id' => array('COMPULSORY' => 'select...')
                );
@@ -1052,7 +1052,8 @@ class Sklad_UI {
        }
 
        function check_locks() {
-               $result = $this->db->safe_query_fetch("SELECT * FROM `lock`;");
+               $user = $this->db->quote($this->db->auth->get_user_id());
+               $result = $this->db->safe_query_fetch("SELECT * FROM `lock` WHERE `lock_author` != $user;");
                if(!empty($result)) {
                        echo T('There are locks:').' '.$this->html->render_item_table($result, 'lock');
                        $this->post_redirect_get('', 'There are locks!', true);
This page took 0.09238 seconds and 4 git commands to generate.