$tot_id = "";
         $member_id = "";
     } else {
         $check_table = check_table($table_id);
         $member_id = get_member_id($table_id);
         $tot_id = get_tot_id($table_id);
         $table_type = get_table_type($table_id);
     }
     $customer_number = 1;
     if (isset($_GET['mt_id'])) {
         $param = $_GET['mt_id'];
     } else {
         $param = '';
     }
     $branch_id = $_SESSION['branch_id'];
     $query_cat = select_cat($param);
     $query = select($branch_id);
     $query2 = select($branch_id);
     $query_find = select($branch_id);
     $action = "transaction.php?page=save";
     include '../views/transaction/list.php';
     get_footer($query_find);
     break;
 case 'note':
     $title = ucfirst("Global Note");
     get_header($title);
     $table_id = get_isset($_GET['table_id']);
     $wt_id = get_isset($_GET['wt_id']);
     $get_note_desc = get_note_desc($wt_id);
     $action = "transaction.php?page=save_note&wt_id={$wt_id}&table_id={$table_id}";
     $close_button = "transaction.php?page=list&table_id={$table_id}";
Beispiel #2
0
    echo "</td></tr>\n";
    echo "<tr><td>&nbsp;</td>\n";
    echo "<td><input type=\"submit\" value=\"" . $t->translate("Rename") . "\">";
    echo "<input type=\"hidden\" name=\"action\" value=\"ren\">";
    echo "<input type=\"hidden\" name=\"type\" value=\"{$type}\">";
    echo "</td></tr>\n";
    echo "</form>\n";
    echo "</table>\n";
    echo "<BR>\n";
    // Delete a Category
    $bs->box_strip($t->translate("Delete a Category"));
    echo "<form action=\"" . $sess->url("inscat.php") . "\" method=\"POST\">\n";
    echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
    echo "<tr><td align=right width=30%>" . $t->translate("Category") . ":</td><td width=70%>\n";
    echo "<select name=\"category\">\n";
    select_cat($type, "");
    echo "</select></td></tr>\n";
    echo "</td></tr>\n";
    echo "<tr><td>&nbsp;</td>\n";
    echo "<td><input type=\"submit\" value=\"" . $t->translate("Delete") . "\">";
    echo "<input type=\"hidden\" name=\"action\" value=\"del\">";
    echo "<input type=\"hidden\" name=\"type\" value=\"{$type}\">";
    echo "</td></tr>\n";
    echo "</form>\n";
    echo "</table>\n";
    $bx->box_body_end();
    $bx->box_end();
} else {
    $be->box_full($t->translate("Error"), $t->translate("Access denied") . ".");
}
?>
Beispiel #3
0
}
// Форма Редактирования Девайсов на складе
if (isset($_GET['devsklad'])) {
    $iddev = $_GET['devsklad'];
    $select_dev = $connect_db->query("SELECT * FROM `sklad` WHERE `id` = '{$iddev}' LIMIT 1");
    $fetch_dev = $select_dev->fetch_assoc();
    // Получаем название категории по ее id
    $categoryid = $fetch_dev['category'];
    $select_cat = $connect_db->query("SELECT `name` FROM `skladcat` WHERE `id` = '{$categoryid}' LIMIT 1");
    $fetch_cat = $select_cat->fetch_assoc();
    echo '<div>';
    echo '<form action="edit.php" method="post">';
    echo '<div style="margin-top: 10px;">';
    echo '<select name="category" required>';
    echo '<option>' . $fetch_cat['name'] . '</option>';
    select_cat();
    echo '</select>';
    echo '</div>';
    echo '<div style="margin-top: 10px;">';
    echo '<input name="name" required type="text" value="' . $fetch_dev['name'] . '">';
    echo '</div>';
    echo '<div style="margin-top: 10px;">';
    echo '<input name="kol" required type="text" value="' . $fetch_dev['kol'] . '">';
    echo '</div>';
    echo '<div style="margin-top: 10px;">';
    echo '<input name="pricevhod" required type="text" value="' . $fetch_dev['pricevhod'] . '">';
    echo '</div>';
    echo '<div style="margin-top: 10px;">';
    echo '<input name="priceishod" required type="text" value="' . $fetch_dev['priceishod'] . '">';
    echo '</div>';
    echo '<input name="iddev" type="hidden" value="' . $fetch_dev['id'] . '">';
         $date = format_date($_GET['date']);
     }
     $table_id = "";
     if (isset($_GET['table_id'])) {
         $table_id = $_GET['table_id'];
     }
     $member_id = "";
     if (isset($_GET['member_id'])) {
         $member_id = $_GET['member_id'];
     }
     if ($table_id == "") {
         $check_table = 0;
     } else {
         $check_table = check_table($table_id);
     }
     $query_cat = select_cat();
     $query = select();
     $query2 = select();
     $query_find = select();
     $action = "transaction_new.php?page=save";
     include '../views/transaction_new/list.php';
     get_footer($query_find);
     break;
 case 'list_edit':
     get_header($title);
     if (isset($_GET['table_id'])) {
         $table_id = $_GET['table_id'];
     }
     $query_item = select_item_edit($table_id);
     $query_item2 = select_item_edit($table_id);
     $query_item3 = select_item_edit($table_id);