From: Thomas Mudrunka Date: Fri, 19 Aug 2011 22:14:41 +0000 (+0200) Subject: Pridani pruvodci pro vyskladneni do firmy a vyskladneni k zakaznikovi, upraveno ... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=ec28d06c976780c7cba78aa7d85d8d8d06095df3;p=mirrors%2FSokoMan.git Pridani pruvodci pro vyskladneni do firmy a vyskladneni k zakaznikovi, upraveno .gitignore --- diff --git a/.gitignore b/.gitignore index b181347..2ecf49f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +_* *.bak *.conf.php .svn diff --git a/assistants/dispose.inc.php b/assistants/dispose.inc.php new file mode 100644 index 0000000..d95dab4 --- /dev/null +++ b/assistants/dispose.inc.php @@ -0,0 +1,23 @@ + +
+ item_serial: + +
+db->map_unique('item_serial', $_GET['serial'], 'item_id', 'item'); + $columns = $this->db->get_columns('item'); + $selectbox = $this->db->columns_get_selectbox($columns, 'item'); + + $current = $this->db->get_listing('item', $item_id, 1); + $current[$item_id]['status_id'] = 2; + + $action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit"; + echo $this->html->render_insert_form('item', $columns, $selectbox, $current, false, $action); + break; +} diff --git a/assistants/sell.inc.php b/assistants/sell.inc.php new file mode 100644 index 0000000..ab60c7d --- /dev/null +++ b/assistants/sell.inc.php @@ -0,0 +1,26 @@ + +
+ item_serial: + +
+db->map_unique('item_serial', $_GET['serial'], 'item_id', 'item'); + $columns = $this->db->get_columns('item'); + $selectbox = $this->db->columns_get_selectbox($columns, 'item'); + + $current = $this->db->get_listing('item', $item_id, 1); + $current[$item_id]['status_id'] = 3; + + $action = $_SERVER['SCRIPT_NAME']."/item/$item_id/edit"; + echo $this->html->render_insert_form('item', $columns, $selectbox, $current, false, $action); + break; +} diff --git a/index.php b/index.php index 6508a4d..c2ffb64 100755 --- a/index.php +++ b/index.php @@ -149,6 +149,8 @@ class Sklad_HTML extends HTML {
  • Assistants
  • store
  • +
  • dispose
  • +
  • sell
  • ↓↓ BETA ↓↓
  • new-item