This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (stripos($_POST['first_name'], 'first name...') !== false) { | |
$first_name = str_ireplace('first name...', '', $_POST['first_name']); | |
$first_name = sanitize_user( $first_name, true ); | |
} else { | |
$first_name = sanitize_user( $_POST['first_name'], true ); | |
} | |
if (stripos($_POST['last_name'], 'last name...') !== false) { | |
$last_name = str_ireplace('last name...', '', $_POST['last_name']); | |
$last_name = sanitize_user( $last_name ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE tiles ( | |
tile_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT, | |
tile_name VARCHAR(80) NOT NULL, | |
quantity SMALLINT(5) UNSIGNED NOT NULL, | |
old_lot_qty SMALLINT(5) UNSIGNED, | |
n_height FLOAT(3) UNSIGNED NOT NULL, | |
n_width FLOAT(3) UNSIGNED NOT NULL, | |
n_thick FLOAT(3) UNSIGNED NOT NULL, | |
e_height FLOAT(5) UNSIGNED, | |
e_height FLOAT(5) UNSIGNED, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE tiles ( | |
tile_id INT(6) UNSIGNED NOT NULL AUTO_INCREMENT, | |
tile_name VARCHAR(80) NOT NULL, | |
quantity SMALLINT(5) UNSIGNED NOT NULL, | |
old_lot_qty SMALLINT(5) UNSIGNED, | |
n_height FLOAT(3) UNSIGNED NOT NULL, | |
n_width FLOAT(3) UNSIGNED NOT NULL, | |
n_thick FLOAT(3) UNSIGNED NOT NULL, | |
e_height SMALLINT(5) UNSIGNED, | |
e_width SMALLINT(5) UNSIGNED, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE tiles ( | |
tile_id INT(6) UNSIGNED NOT NULL AUTO_INCREMENT, | |
tile_name TEXT NOT NULL, | |
quantity INT(6) UNSIGNED NOT NULL, | |
old_lot_qty INT(6) UNSIGNED, | |
nom_height DECIMAL(6,3) UNSIGNED NOT NULL, | |
nom_width DECIMAL(6,3) UNSIGNED NOT NULL, | |
nom_thick DECIMAL(6,3) UNSIGNED NOT NULL, | |
exact_height INT(6) UNSIGNED, | |
exact_width INT(6) UNSIGNED, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sPage_title = 'Random Tile Generator'; | |
include ('./includes/header.html'); | |
if (isset($_POST['submitted'])) { | |
if (is_numeric($_POST['quantity'])) { | |
require_once('../../../mysql_connect.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sPage_title = 'Full Inventory'; | |
include ('./includes/header.html'); | |
require_once('../../../mysql_connect.php'); | |
?> | |
<table> | |
<tr> | |
<th>Tile ID:</th> | |
<th>Tile name:</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sPage_title = 'Random Tile Generator'; | |
include ('./includes/header.html'); | |
require_once('../../../mysql_connect.php'); | |
if (isset($_POST['submitted'])) { | |
if (is_numeric($_POST['quantity'])) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* * * * * * * * * * * * * * * * * * * | |
* | |
* Tile Product Management System | |
* Name: full-inventory.php | |
* Version: DEV | |
* By: Michael Ramsey ([email protected], @moketronics) | |
* | |
* Last Updated: March 21, 2012 - Michael Ramsey |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sPage_title = 'Add New Tile'; | |
include ('./includes/header.html'); | |
require_once('../../../mysql_connect.php'); | |
?> | |
<script type="text/javascript"> | |
$("#manufacturer_list").click(function(){ $("#series_list").removeAttr('disabled');}); | |
</script> | |
<h1 id="mainhead">Use this form to add tiles!</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL User DB Schema | |
CREATE TABLE users( | |
user_id INT(6) NOT NULL AUTO_INCREMENT, | |
e_mail TEXT NOT NULL, | |
first_name TEXT NOT NULL, | |
last_name TEXT NOT NULL, | |
password CHAR(40) NOT NULL, | |
permission TINYINT(1) NOT NULL, | |
date_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP, |
OlderNewer