From ec28d06c976780c7cba78aa7d85d8d8d06095df3 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Sat, 20 Aug 2011 00:14:41 +0200 Subject: [PATCH] Pridani pruvodci pro vyskladneni do firmy a vyskladneni k zakaznikovi, upraveno .gitignore --- .gitignore | 1 + assistants/dispose.inc.php | 23 +++++++++++++++++++++++ assistants/sell.inc.php | 26 ++++++++++++++++++++++++++ index.php | 2 ++ 4 files changed, 52 insertions(+) create mode 100644 assistants/dispose.inc.php create mode 100644 assistants/sell.inc.php 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
  • -- 2.30.2