* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ include "dscommon.inc"; ds_html_header("DVD Store Purchase Page"); $confirmpurchase = $_REQUEST["confirmpurchase"]; $item = $_REQUEST["item"]; $quan = $_REQUEST["quan"]; $drop = $_REQUEST["drop"]; $customerid = $_REQUEST["customerid"]; if (empty($confirmpurchase)) { echo "<H2>Selected Items: specify quantity desired; click Purchase when finished</H2>\n"; echo "<BR>\n"; echo "<FORM ACTION='./dspurchase.php' METHOD='GET'>\n"; echo "<TABLE border=2>\n"; echo "<TR>\n"; echo "<TH>Item</TH>\n"; echo "<TH>Quantity</TH>\n"; echo "<TH>Title</TH>\n"; echo "<TH>Actor</TH>\n";
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ include "dscommon.inc"; ds_html_header("DVD Store Login Page"); $username = $_REQUEST["username"]; $password = $_REQUEST["password"]; if (!empty($username)) { if (!($link_id = mysqli_connect())) { die(mysqli_connect_error()); } $query = "select CUSTOMERID FROM DS2.CUSTOMERS where USERNAME='******' and PASSWORD='******';"; $result = mysqli_query($link_id, $query); if (mysqli_num_rows($result) > 0) { $row = mysqli_fetch_row($result); $customerid = $row[0]; mysqli_free_result($result); echo "<H2>Welcome to the DVD Store - Click below to begin shopping</H2>\n"; $query = "SELECT DS2.PRODUCTS.TITLE, DS2.PRODUCTS.ACTOR, DS2.PRODUCTS.COMMON_PROD_ID" . " FROM DS2.CUST_HIST INNER JOIN DS2.PRODUCTS ON DS2.CUST_HIST.PROD_ID = DS2.PRODUCTS.PROD_ID" . " WHERE DS2.CUST_HIST.CUSTOMERID =" . $customerid . " ORDER BY ORDERID DESC, TITLE ASC LIMIT 10;"; mysqli_real_query($link_id, $query);
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ include "dscommon.inc"; ds_html_header("New Customer Login"); $firstname = $_REQUEST["firstname"]; $lastname = $_REQUEST["lastname"]; $address1 = $_REQUEST["address1"]; $address2 = $_REQUEST["address2"]; $city = $_REQUEST["city"]; $state = $_REQUEST["state"]; $zip = $_REQUEST["zip"]; $country = $_REQUEST["country"]; $email = $_REQUEST["email"]; $phone = $_REQUEST["phone"]; $creditcardtype = $_REQUEST["creditcardtype"]; $creditcard = $_REQUEST["creditcard"]; $ccexpmon = $_REQUEST["ccexpmon"]; $ccexpyr = $_REQUEST["ccexpyr"]; $username = $_REQUEST["username"];
* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ include "dscommon.inc"; ds_html_header("DVD Store Browse Page"); $customerid = $_REQUEST["customerid"]; $browsetype = $_REQUEST["browsetype"]; $browse_title = $_REQUEST["browse_title"]; $browse_actor = $_REQUEST["browse_actor"]; $browse_category = $_REQUEST["browse_category"]; $limit_num = $_REQUEST["limit_num"]; $selected_item = $_REQUEST["selected_item"]; $item = $_REQUEST["item"]; if (empty($customerid)) { echo "<H2>You have not logged in - Please click below to Login to DVD Store</H2>\n"; echo "<FORM ACTION='./dslogin.php' METHOD=GET>\n"; echo "<INPUT TYPE=SUBMIT VALUE='Login'>\n"; echo "</FORM>\n"; ds_html_footer(); exit;