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: login.php | |
* Version: DEV | |
* By: Michael Ramsey ([email protected], @moketronics) | |
* | |
* Last Updated: March 20, 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 | |
function get_secondary_colours($iTile_id) { | |
$query_scolour = "SELECT col.colour_name FROM colour AS col, colour_associations AS col_ass WHERE $iTile_id=col_ass.tile_id AND col.colour_id=col_ass.colour_id AND col_ass.b_primary_colour='0'"; | |
$result_scolour = mysql_query($query_scolour); | |
$aScolours = array(); | |
if ($result_scolour) { | |
while ($row = mysql_fetch_array($result_scolour)) { | |
array_push($aScolours, $row['colour_name']); | |
} | |
return implode(', ',$aScolours); |
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 | |
$query = 'SELECT tile_name, tile_price, quantity, old_lot_qty, nom_height, nom_width, nom_thick, exact_height, exact_width, box_tile_count, local_supply, rating, tile_notes FROM tiles WHERE tile_id=' . $iTile_id; | |
$result = mysql_fetch_array(mysql_query($query)); | |
$aTile_changes = array(); | |
$aTile_values = array($sTile_name, $iTile_price, $iQuantity, $iOld_lot_qty, $iNom_height, $iNom_width, $iNom_thick, $iExact_height, $iExact_width, $iBox_tile_count, $iLocal_supply, $iRating, $sTile_notes); | |
$i = 0; | |
foreach ($result as $key => $row) { |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<title>Quick Price Finder | TSI Network</title> | |
<script src="./jquery-1.7.2.min.js"></script> | |
<style type="text/css"> | |
body { | |
font-family: Arial, Helvetica, sans-serif; | |
background-color: #eee; |
OlderNewer