You are on page 1of 35

UTD Exchange Project Report

Team 8
Revathi Pabba
Mahammed Alasaad
Adnan Janjua
Jeffrey Pickens
William Rhea
Orlando Salazar
Amaha Tesfaye

Submitted by
Amaha Tesfaye

Table of Contents
1.
2.
3.
4.
5.

Introduction
..Application code
..User Guide
..Personal experience with the project and the group
.Peer evaluation

1.Introduction
UTD Exchange is a web based classified advertising source where buyers and sellers can
interact to shop for and sell items. The site is optimized for mobile use for both current
mobile web browsers as well as many HTML5 compatible legacy mobiles. UTD Exchange
is targeted at the UTD community. Because an active UTD email address is required for
both registration and ongoing use, buyers and sellers can be assured to a degree of the
authenticity of the items offered for sale as well as their potential purchasers. Typical items
for sale would include used textbooks, furniture, used computers and peripherals.

2.Application Code
account.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>Activate</h1>
</div>
<div data-role="content">
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
<?php
$getuser = $_GET['user'];
$getcode = $_GET['code'];
if ($_POST['activatebtn']){
$getuser = $_POST['user'];
$getcode = $_POST['code'];
if ($getuser){
if ($getcode){
require("./connect.php");
$query = mysql_query("SELECT * FROM users WHERE username='$getuser'");
$numrows = mysql_num_rows($query);
if($numrows == 1){
$row = mysql_fetch_assoc($query);
$dbcode = $row['code'];
$dbactive = $row['active'];
if($dbactive == 0){
if($dbcode == $getcode){
mysql_query("UPDATE users SET active='1' WHERE username='$getuser'");
$query = mysql_query("SELECT * FROM users WHERE username='$getuser' AND active='1'");
$numrows = mysql_num_rows($query);
if ($numrows == 1){
echo header("Location: ./login.php");
$getuser = "";
$getcode = "";
}
else
$errormsg = "<div style='color:red'>An error has occurred. Your account was not activated.</div>";
}
else
$errormsg = "<div style='color:red'>The code you entered is incorrect.</div>";
}
else
$errormsg = "<div style='color:red'>This account is already active.<a href='./login.php'>Login.</a></div>";
}
else
$errormsg = "<div style='color:red'>The username you entered was not found.</div>";
mysql_close();
}
else
$errormsg = "<div style='color:red'>You must enter your activation code.</div>";
}

else
$errormsg = "<div style='color:red'>You must enter your username.</div>";
}
else
$errormsg = "";
echo "<form action='./activate.php' method='post'>
<table>
<tr>
<td></td>
<td>$errormsg</td>
</tr>
<tr>
<td>Username:</td>
<td><input type='text' name='user' value='$getuser' /></td>
</tr>
<tr>
<td>Code:</td>
<td><input type='text' name='code' value='$getcode' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='activatebtn' value='Activate' /></td>
</tr>
</table>
</form>";
?>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Project Home</a></li>
</ul>
</div>
</div>
</body>
</html>
buy.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 10/13/2014
*/?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Hello Mobile World </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="page" id="home">
<header data-role="header" data-theme="b" data-position="fixed">
<h3>UTD Exchange</h3>
</header>

<article data-role="content">
<ul data-role="listview" data-filter="true">
<li>
<a href="#1stpost">
<img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/item1.jpg" width="80px" height="80px"
alt="item 3" />
<h1>Digix blu-ray player $20 USD</h1>
<p>Never used, still in the box.</p>
<p>Original $40, asking $20</p>
</a>
</li>
<li>
<a href="#2ndpost">
<img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/item2.jpg" width="80px" height="80px"
alt="item 1" />
<h1>Galaxy Tab 3, 7" $100 USD</h1>
<p>GT3 7" 8GB, Wi-Fi only. </p>
<p>Excellent condition!</p>
</a>
</li>
<li>
<a href="#3rdpost">
<img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/item3.jpg" width="80px" height="80px"
alt="item 2" />
</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/buy.php">Buy</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/sell.php">Sell</a></li>
</nav>
</footer>
</div> <!--end of home page -->
<div data-role="page" id="1stpost"> <!-- This is the first ad -->
<header data-role="header" data-theme="b">
<h3>Digix Blu-ray player $20 USD</h3>
</header>
<article>
<img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/item1.jpg" alt="item" width="150px" height="150px">
<h4 class="tab">Details</h4>
<p class="tab">Selling a brand new blu-ray player. I bought it from Fry's Electronics. The player is still in box, never used and has been
sitting in my closet. Asking $20</p>
<h4 class="tab">Contact</h4>
<p class="tab"><b>Phone (call/text)</b>: 972-555-0000</p>
<p class="tab"><b>Email:</b> kxt123456@utdallas.edu</p>
</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/buy.php">Buy</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/sell.php">Sell</a></li>
</nav>
</footer>
</div> <!-- This is the second ad -->
<div data-role="page" id="2ndpost"> <!-- This is the second ad -->
<header data-role="header" data-theme="b">
<h3>Galaxy Tab 3, 7" $100 USD</h3>
</header>
<article>
<img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/item2.jpg" alt="item" width="150px" height="150px">
<h4 class="tab">Details</h4>
<p class="tab">I'm Looking to sell my Galaxy Tab 3. It has a 7 inch display, it is in pristine condition, and comes with an aftermarket
charger. I will even include a background of a cat. No charge. Looking for $60, includes cat picture (a good one). 8 GB, WiFi only</p>
<h4 class="tab">Contact</h4>
<p class="tab"><b>Email:</b> abc123456@utdallas.edu</p>
</article>
<footer data-role="footer" data-position="fixed">

<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">


<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/buy.php">Buy</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/sell.php">Sell</a></li>
</nav>
</footer>
</div> <!-- This is the second ad -->
<div data-role="page" id="6thpost"> <!-- This is the sixth ad -->
<header data-role="header" data-theme="b">
<h3>Study Desk (FREE)</h3>
</header>
<article>
<img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/item6.jpg" alt="item" width="150px" height="150px">
<img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/item6.1.jpg" alt="item" width="150px"
height="150px">
<h4 class="tab">Details</h4>
<p class="tab">The desk is in a good quality. There is a light installed within . The drawer is keyboard friendly. The top and the bottom
are sitting on each other, and they are separated. </p>
<p>Dimensions:
64 inch length x 78 inch height x 30 depth
Delivery:
You need to pick it up. I live on the 3rd floor, and you probably need 2-3 ppl to carry the desk.</p>
<h4 class="tab">Contact</h4>
<p class="tab"><b>Phone (call/text)</b>: 972-555-0000</p>
<p class="tab"><b>Email:</b> nxa123456@utdallas.edu</p>
</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/buy.php">Buy</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/sell.php">Sell</a></li>
</nav>
</footer>
</div> <!-- This is the sixth ad -->
<div data-role="page" id="step1"> <!--start of terms page-->
<header data-role="header" data-theme="b" data-position="fixed">
<h4>Terms of Use</h4>
</header>
<article data-role="content">
<table class="termspage">
<tr>
<th colspan="3">In order to use UTD Exchange, you must agree to these terms and conditions.</th>
</tr>
<tr>
<td colspan="3">
<div class="terms">
<h3>General: Net Etiquite</h3>
<h3>Buying</h3>
<h3>Selling</h3>
<p></p>
</div>
</td>
</tr>
<tr>
<td><a href="#home" data-role="button">Decline</a></td>
<td></td>
<td><a href="#step2" data-role="button">Agree</a></td>
</tr>
</table>
</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/buy.php">Buy</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/sell.php">Sell</a></li>
</nav>

</footer>
</div><!--end of terms page -->
<div data-role="page" id="step2">
<header data-role="header" data-theme="b" data-position="fixed">
<h3>Let's Start Selling</h3>
</header>
<article data-role="content">
<form name="#publish" method="post" enctype="multipart/form-data">
<table class="postpage">
<tr><th>Post Title:*</th>
<td><input id="postingtitle" type="text" name="post title" required></td></tr>
<tr><th>Price:* $</th>
<td><input id="price" type="number" name="price" min="0.00" maxlength="5" required></td></tr>
<tr><th>Item(s) Description:*</th>
<td><textarea id="postdescription" placeholder="Enter item description..." rows="5" cols="50" required></textarea></td><tr>
<tr><th>Upload file(s):</th>
<td><input type="file" name="uploadFile"></td></tr>
<tr><th>Condition:*</th>
<td><select name="condition" required>
<option selected="selected" value=""></option>
<option value="new">New</option>
<option value="used1">Almost New</option>
<option value="used2">Good</option>
<option value="used3">Fair</option>
<option value="used4">Poor</option>
</select></td></tr>
<tr><th>Contact Information</th></tr>
<tr><th>Email:</th>
<td><label class="req" for="FromEmail"></label>
<input id="FromEmail" type="text" name="email" required placeholder="UTD email required"></td></tr>
<tr><th>Confirm Email:</th>
<td><label class="req" for="FromEmail"></label>
<input id="ConfirmEmail" type="text" name="email" required placeholder="confirm"></td></tr>
<tr><th>Contact Phone:</th>
<td><input type="text" name="area code" placeholder="(xxx) xxx - xxxx" maxlength="16"></td></tr>
<tr><th><p>I agree to the <font face="times new roman" color="red"><a href="tou">terms of use*<a></font></p></th>
<td><input type="checkbox" name="terms" required value="agree"></td></tr>
<tr><td><br></td></tr>
<tr><td>* denotes a required field</td>
<td><form action="#step3">
<input type="submit" value="Post Ad!">
</form></td>
</tr>
</table>
</form>
</table>
</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/buy.php">Buy</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/sell.php">Sell</a></li>
</nav>
</footer>
</div><!--end of posting page -->
<div data-role="page" id="step3"><!--start of picture upload page-->
<header data-role="header" data-theme="b" data-position="fixed">
<h3>Step 2: Upload a picture!</h3>
</header>
<article data-role="content">
<p><form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form></p>

</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/buy.php">Buy</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/sell.php">Sell</a></li>
</nav>
</footer>
</div> <!-- upload pic end -->
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Home</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team.php">Team</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/project.php">Project</a></li>
</ul>
</div>
</div>
</body>
</html>
connect.php
<?php
$db_host = "127.8.186.2";
$db_username = "adminD7rBDMG";
$db_pass = "wmbLA1vj5DC9";
$db_name = "mwa8";
@mysql_connect("$db_host","$db_username","$db_pass") or die ("Could not connect to MySQL.");
@mysql_select_db("$db_name") or die ("No database.");?>
deleteaccount.php
<?php
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>Delete Account</h1>
</div>
<div data-role="content">
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
<?php
// redirect to login page and give message when accessing page and not logged in
if(isset($_GET['notloggedin']))
{
echo "<div style='color:red'>You are not logged in.</div>";
}
else{

$form = "<form action='./deleteaccount.php' method='post'>


<table>
<tr>
<td>Username:</td>
<td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password' /></td>
</tr>
<tr>
<td>Retype Password:</td>
<td><input type='password' name='retypepassword' value='' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='delacctbtn' value='Delete Account' /></td>
</tr>
</table>
</form>";
if ($_POST['delacctbtn']){
$user = $_POST['user'];
$password = $_POST['password'];
$retypepassword = $_POST['retypepassword'];
if ($user){
if ($password){
if ($retypepassword){
if ($password === $retypepassword){
require("connect.php");
$password = md5(md5("Pv6nifin".$password."kTA153kd"));
//make sure login info correct
$query = mysql_query("SELECT * FROM users WHERE username='$user'");
$numrows = mysql_num_rows($query);
if ($numrows == 1){
$row = mysql_fetch_assoc($query);
$dbid = $row['id'];
$dbuser = $row['username'];
$dbpass = $row['password'];
$dbactive = $row['active'];
if($password == $dbpass){
mysql_query("DELETE FROM users WHERE username='$user'");
session_destroy();
echo header("Location: ./login.php?delacctsuccess");
}
else
echo "<div style='color:red'>Please enter the correct password.</div> $form";
}
else
echo "<div style='color:red'>The username you entered was not found. If you do not have an account, please click on
Register below to setup a new account. It's free and only takes a minute!</div> $form";
mysql_close();
}
else
echo "<div style='color:red'>Your passwords did not match.</div> $form";
}
else
echo "<div style='color:red'>You must retype your password.</div> $form";
}
else
echo "<div style='color:red'>You must enter your password.</div> $form";
}
else
echo "<div style='color:red'>You must enter your username.</div> $form";
}
else
echo $form;
}

?>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/account.php">My Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Group 8 Project Home</a></li>
</ul>
</div>
</div>
</body>
</html>

display_phpinfo.php
<?php
echo phpinfo();
?>
forgotpassword.php
<?php
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>Forgot Password</h1>
</div>
<div data-role="content">
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
<?php
if (!$username && !$userid){
if ($_POST['resetbtn']){
// get the form data
$user = $_POST['user'];
$email = $_POST['email'];
//make sure info provided
if($user){
if ($email){
if ((strlen($email) > 7) && (strstr($email,"@utdallas.edu")) && (strstr($email,".")) ){
// connect
require("./connect.php");
$query = mysql_query("SELECT * FROM users WHERE username='$user'");
$numrows = mysql_num_rows($query);

if ($numrows == 1){
// get info about account
$row = mysql_fetch_assoc($query);
$dbemail = $row['email'];
// make sure the email is correct
if ($email == $dbemail){
// generate password
$pass = rand();
$pass = md5($pass);
$pass = substr($pass, 0, 15);
// update db with new pass
mysql_query("UPDATE users SET password='$password' WHERE username='$user'");
//mkae sure that password was changed
$query = mysql_query("SELECT * FROM users WHERE username='$user' AND password='$password'");
$numrows = mysql_num_rows($query);
if (numrows == 1){
// create email variables
$webmaster = "utdexchange@gmail.com";
$headers = "From: UTD Exchange <$webmaster>";
$subject = "Your new password.";
$message = "Hello. Your password has been reset. Your new password is below.";
}
else
echo "An error has occurred and the password was not reset.";
}
else
echo "You have entered the wrong email address.";
}
else
echo "The username was not found.";
mysql_close();
}
else
echo "Please enter a valid UTD email address.";
}
else
echo "Please enter your email address.";
}
else
echo "Please enter your username.";
}
echo "<form action='./forgotpassword.php'>
<table>
<tr>
<td>Username:</td>
<td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Email:</td>
<td><input type='text' name='email' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='resetbtn' value='Reset Password' /></td>
</tr>
</table>
</form>";
}
else
echo "Please logout to view this page.";
?>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/login.php">Login</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Group 8 Project Home</a></li>

</ul>
</div>
</div>
</body>
</html>
gr8_index.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 10/13/2014
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>Semester Project</h1>
</div>
<div data-role="content">
<div style="text-align: center;">
<h2>MIS4312: Group 8</h2>
<h2>Fall 2014</h2>
</div>
<br>
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
</div>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Home</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team.php">Team</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/project.php">Project</a></li>
</ul>
</div>
</div>
</body>
</html>
login.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 11/1/2014
*/
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];

?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>Login</h1>
</div>
<div data-role="content">
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
<?php
// redirect to login page and give message when accessing page and not logged in
if(isset($_GET['notloggedin']))
{
echo "<div style='color:red'>You are not logged in.</div>";
}
if(isset($_GET['delacctsuccess']))
{
echo "<div style='color:red'>Your account has been successfully deleted.</div>";
}
if ($username && $userid){
echo header("Location: ./account.php");
}
else{
$form = "<form action='./login.php' method='post'>
<table>
<tr>
<td>Username:</td>
<td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='password' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='loginbtn' value='Login' /></td>
</tr>
<tr>
<td><a href='./register.php'>Register</a></td>

<td><a href='./forgotpassword.php'>Forgot Password</a></td>


</tr>
</table>
</form>";
if ($_POST['loginbtn']){
$user = $_POST['user'];
$password = $_POST['password'];
if ($user){
if ($password){
require("connect.php");
$password = md5(md5("Pv6nifin".$password."kTA153kd"));
//make sure login info correct
$query = mysql_query("SELECT * FROM users WHERE username='$user'");
$numrows = mysql_num_rows($query);
if ($numrows == 1){
$row = mysql_fetch_assoc($query);
$dbid = $row['id'];
$dbuser = $row['username'];
$dbpass = $row['password'];
$dbactive = $row['active'];
if ($password == $dbpass){
if ($dbactive == 1){
// set session info
$_SESSION['userid'] = $dbid;
$_SESSION['username'] = $dbuser;
echo header("Location: ./account.php");
}
else
echo "<div style='color:red'>You must activate your account to login.</div> $form";
}
else
echo "<div style='color:red'>Please enter the correct password.</div> $form";
}
else
echo "<div style='color:red'>The username you entered was not found. If you do not have an account, please register to setup a new
account. It's free and only takes a minute!</div> $form";
mysql_close();
}
else
echo "<div style='color:red'>You must enter your password.</div> $form";
}
else
echo "<div style='color:red'>You must enter your username.</div> $form";
}
else
echo $form;
}
?>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Group 8 Project Home</a></li>
</ul>

</div>
</div>

</body>
</html>

logout.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 11/5/2014
*/
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>Login</h1>
</div>
<div data-role="content">
<?php
if ($username && $userid){

session_destroy();
echo header("Location: ./login.php");
}
else
echo "You are not logged in.";
?>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Group 8 Project Home</a></li>
</ul>
</div>
</div>

</body>
</html>

manageaccount.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 11/30/2014
*/
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />


<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>My Account</h1>
</div>
<div data-role="content">

<?php
if ($username && $userid){
echo "<div align='center'>Welcome <b>$username</b>.</div>";
}
else
echo header("Location: ./login.php?notloggedin");
?>
<br>
<div data-role="content">
<ul data-role="listview">
<li><a href="resetpassword.php">Reset Password</a></li>
<li><a href="deleteaccount.php">Delete Account</a></li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/account.php">My Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Group 8 Project Home</a></li>
</ul>
</div>
</div>

</body>
</html>

project.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 10/13/2014
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>The Project</h1>
</div>
<div data-role="content">
<br>
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
</div>
<form action="http://mwa8-mis4312gr8v2.rhcloud.com/login.php">
<input type="submit" value="Run Application">
</form>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">

<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Home</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team.php">Team</a></li>
<li><a href="#home" class="ui-btn-active ui-state-persist">Project</a></li>
</ul>
</div>
</div>

</body>
</html>

register.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 11/6/2014
*/
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">

<h1>Register</h1>
</div>
<div data-role="content">
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
<?php
if ($_POST['registerbtn']){
$getfirstname = $_POST['firstname'];
$getlastname = $_POST['lastname'];
$getuser = $_POST['user'];
$getemail = $_POST['email'];
$getpass = $_POST['pass'];
$getretypepass = $_POST['retypepass'];
if ($getfirstname){
if ($getlastname){
if ($getuser){
if ($getemail){
if ($getpass){
if ($getretypepass){
if ($getpass === $getretypepass){
if ((strstr($getemail,"@utdallas.edu"))){
require ('./connect.php');
$query = mysql_query("SELECT * FROM users WHERE username='$getuser'");
$numrows = mysql_num_rows($query);
if ($numrows == 0){
$query = mysql_query("SELECT * FROM users WHERE email='$getemail'");
$numrows = mysql_num_rows($query);
if ($numrows == 0){
$password = md5(md5("Pv6nifin".$getpass."kTA153kd"));
$date = date("F, d, Y");
$code = md5(rand());
mysql_query("INSERT INTO users VALUES (
'', '$getfirstname', '$getlastname', '$getuser', '$password', '$getemail', '0', '$code', '$date'
)");
$query = mysql_query("SELECT * FROM users WHERE username='$getuser'");
$numrows = mysql_num_rows($query);
if ($numrows == 1){
$site = "http://mwa8-mis4312gr8v2.rhcloud.com";
$webmaster = "UTD Exchange <utdexchange@gmail.com>";
$to = $getemail;
$headers = "From: $webmaster";
$subject = "Account Activation";
$message = "Thanks for registering. Click the link below to activate your account.\n";
$message .= "$site/activate.php?user=$getuser&code=$code\n";
$message .= "You must activate your account to login.";
if (mail($to, $subject, $message, $headers)){
$errormsg = "You have been registered. You must activate your account from the activation link sent to
<b>$getemail</b>.";

$getuser = "";
$getemail = "";
}
else
$errormsg = "An error has occurred. Your activation email was not sent.";
}
else
$errormsg = "An error has occurred. Your account was not created.";
}
else
$errormsg = "There is already a user with that email.";
}
else
$errormsg = "There is already a user with that username.";
mysql_close();
}
else
$errormsg = "You must enter a valid UTD email address to register.";
}
else
$errormsg = "Your passwords did not match.";
}
else
$errormsg = "You must retype your password to register.";
}
else
$errormsg = "You must enter your password to register.";
}
else
$errormsg = "You must enter your email to register.";
}
else
$errormsg = "You must enter your username to register.";
}
else
$errormsg = "You must enter your last name to register.";
}
else
$errormsg = "You must enter your first name to register.";
}

$form = "<form action='./register.php' method='post'>


<table>
<tr>
<td></td>
<td><font color='red'>$errormsg</font></td>
</tr>
<tr>

<td>First Name:</td>
<td><input type='text' name='firstname' value='$getfirstname' /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type='text' name='lastname' value='$getlastname' /></td>
</tr>
<tr>
<td>Username:</td>
<td><input type='text' name='user' value='$getuser' /></td>
</tr>
<tr>
<td>Email:</td>
<td><input type='text' name='email' value='$getemail' /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='pass' value='' /></td>
</tr>
<tr>
<td>Retype Password:</td>
<td><input type='password' name='retypepass' value='' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='registerbtn' value='Register' /></td>
</tr>
</table>
</form>";
echo $form;
?>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/login.php">Login</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Group 8 Project Home</a></li>
</ul>
</div>
</div>
</body>
</html>
resetpassword.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 12/1/2014
*/
error_reporting (E_ALL ^ E_NOTICE);
session_start();
$userid = $_SESSION['userid'];
$username = $_SESSION['username'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>

<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="header" data-theme="b">
<h1>Reset Password</h1>
</div>
<div data-role="content">
<p align="Center"><img src="https://googledrive.com/host/0Bxmpf5mx693kOXF4RHRxU1VZUms/utd_exchange_logo_234x165.png"></p>
<?php
// redirect to login page and give message when accessing page and not logged in
if(isset($_GET['notloggedin']))
{
echo "<div style='color:red'>You are not logged in.</div>";
}
else{
$form = "<form action='./resetpassword.php' method='post'>
<table>
<tr>
<td>Username:</td>
<td><input type='text' name='user' /></td>
</tr>
<tr>
<td>Current Password:</td>
<td><input type='password' name='currentpass' /></td>
</tr>
<tr>
<td>New Password:</td>
<td><input type='password' name='newpass' value='' /></td>
</tr>
<tr>
<td>Retype New Password:</td>
<td><input type='password' name='retypenewpass' value='' /></td>
</tr>
<tr>
<td></td>
<td><input type='submit' name='resetpassbtn' value='Reset Password' /></td>
</tr>
</table>
</form>";
if ($_POST['resetpassbtn']){
$user = $_POST['user'];
$currentpass = $_POST['currentpass'];
$newpass = $_POST['newpass'];
$retypenewpass = $_POST['retypenewpass'];

if ($user){
if ($currentpass){
if ($newpass){
if ($retypenewpass){
if ($newpass === $retypenewpass){
require("connect.php");
$password = md5(md5("Pv6nifin".$currentpass."kTA153kd"));
//make sure login info correct
$newpassencrypt = md5(md5("Pv6nifin".$newpass."kTA153kd"));
$query = mysql_query("SELECT * FROM users WHERE username='$user'");
$numrows = mysql_num_rows($query);
if ($numrows == 1){
$row = mysql_fetch_assoc($query);
$dbid = $row['id'];
$dbuser = $row['username'];
$dbpass = $row['password'];
$dbactive = $row['active'];
if($password == $dbpass){
mysql_query("UPDATE users SET password='$newpassencrypt' WHERE username='$user'");
echo "<div style='color:red'>Your password has been successfully reset. Your new password is
<b>$newpass</b>.</div> $form";
}
else
echo "<div style='color:red'>Please enter your current correct password.</div> $form";
}
else
echo "<div style='color:red'>The username you entered was not found. If you do not have an account, please click on
Register below to setup a new account. It's free and only takes a minute!</div> $form";
mysql_close();
}
else
echo "<div style='color:red'>Your new passwords did not match.</div> $form";
}
}
else
echo "<div style='color:red'>You must enter your new password.</div> $form";
}
else
echo "<div style='color:red'>You must enter your current password.</div> $form";
}
else
echo "<div style='color:red'>You must enter your username.</div> $form";
}
else
echo $form;
}
?>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/account.php">My Account</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Group 8 Project Home</a></li>
</ul>

</div>
</div>
</body>
</html>
sell.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 10/13/2014
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Hello Mobile World </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<div data-role="page" id="step1"> <!--start of terms page-->
<header data-role="header" data-theme="b" data-position="fixed">
<h4>Terms of Use</h4>
</header>
<article data-role="content">
<table class="termspage">
<tr>
<th colspan="3">In order to use UTD Exchange, you must agree to these terms and conditions.</th>
</tr>
<tr>
<td colspan="3">
<div class="terms">
<h3>General: Net Etiquite</h3>
<h3>Buying</h3>
<h3>Selling</h3>
<p></p>
</div>
</td>
</tr>
<tr>
<td><a href="#home" data-role="button">Decline</a></td>
<td></td>
<td><a href="#step2" data-role="button">Agree</a></td>
</tr>
</table>

</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
<li><a href="#home" data-icon="home">Home</a></li>
<li><a href="#step1" data-icon="arrow-u">Sell</a></li>
</nav>
</footer>
</div><!--end of terms page -->
<div data-role="page" id="step2">
<header data-role="header" data-theme="b" data-position="fixed">
<h3>Let's Start Selling</h3>
</header>
<article data-role="content">
<form name="#publish" method="post" enctype="multipart/form-data">
<table class="postpage">
<tr><th>Post Title:*</th>
<td><input id="postingtitle" type="text" name="post title" required></td></tr>
<tr><th>Price:* $</th>
<td><input id="price" type="number" name="price" min="0.00" maxlength="5" required></td></tr>
<tr><th>Item(s) Description:*</th>
<td><textarea id="postdescription" placeholder="Enter item description..." rows="5" cols="50" required></textarea></td><tr>
<tr><th>Upload file(s):</th>
<td><input type="file" name="uploadFile"></td></tr>
<tr><th>Condition:*</th>
<td><select name="condition" required>
<option selected="selected" value=""></option>
<option value="new">New</option>
<option value="used1">Almost New</option>
<option value="used2">Good</option>
<option value="used3">Fair</option>
<option value="used4">Poor</option>
</select></td></tr>
<tr><th>Contact Information</th></tr>
<tr><th>Email:</th>
<td><label class="req" for="FromEmail"></label>
<input id="FromEmail" type="text" name="email" required placeholder="UTD email required"></td></tr>
<tr><th>Confirm Email:</th>
<td><label class="req" for="FromEmail"></label>
<input id="ConfirmEmail" type="text" name="email" required placeholder="confirm"></td></tr>
<tr><th>Contact Phone:</th>
<td><input type="text" name="area code" placeholder="(xxx) xxx - xxxx" maxlength="16"></td></tr>
<tr><th><p>I agree to the <font face="times new roman" color="red"><a href="tou">terms of use*<a></font></p></th>
<td><input type="checkbox" name="terms" required value="agree"></td></tr>
<tr><td><br></td></tr>
<tr><td>* denotes a required field</td>
<td><form action="#step3">
<input type="submit" value="Post Ad!">
</form></td>
</tr>
</table>
</form>
</table>
</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
</nav>
</footer>
</div><!--end of posting page -->

<div data-role="page" id="step3"><!--start of picture upload page-->


<header data-role="header" data-theme="b" data-position="fixed">
<h3>Step 2: Upload a picture!</h3>
</header>
<article data-role="content">
<p><form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form></p>
</article>
<footer data-role="footer" data-position="fixed">
<nav data-role="navbar" class="ui-body-b ui-body" data-iconpos="left">
<ul>
</nav>
</footer>
</div> <!-- upload pic end -->
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="#home" class="ui-btn-active ui-state-persist">Home</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team.php">Team</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/project.php">Project</a></li>
</ul>
</div>
</div>
</body>
</html>
team.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 10/13/2014
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>

<div data-role="page" id="team">


<div data-role="header" data-theme="b">
<h1>The Team</h1>
</div>
<div data-role="content">
<ul data-role="listview">
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team_leader.php">Team Leader</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team_members.php">Team Members</a></li>
</ul>
</div>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Home</a></li>
<li><a href="#home" class="ui-btn-active ui-state-persist">Team</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/project.php">Project</a></li>
</ul>
</div>
</body>
</html>
team_leader.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 10/13/2014
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="page" id="team_leader">
<div data-role="header" data-theme="b">
<h1>Team Leader</h1>
</div>
<div data-role="content">
<div style="text-align: center;">

<h3>Revathi Pabba</h3>
</div>
<p align="Center">Email: rxp122730@utdallas.edu</p>
</div>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Home</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team.php" class="ui-btn-active ui-state-persist">Team</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/project.php">Project</a></li>
</ul>
</div>
</div>
</body>
</html>
team_members.php
<?php
/**
* Created by PhpStorm.
* User: Joey Rhea
* Date 10/13/2014
*/
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> MIS4312: Group 8 </title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
</head>
<body>
<div data-role="page" id="team_members">
<div data-role="header" data-theme="b">
<h1>Team Members</h1>
</div>
<div data-role="content">
<div style="text-align: center;">

<h3>Orlando Salazar</h3>
</div>
<p align="Center">Email: oxs110030@utdallas.edu</p>
<hr>
<div style="text-align: center;">
<h3>Jeffrey Pickens</h3>
</div>
<p align="Center">Email: jsp011300@utdallas.edu</p>
<hr>
<div style="text-align: center;">
<h3>Adnan Janjua</h3>
</div>
<p align="Center">Email: axj113530@utdallas.edu</p>
<hr>
<div style="text-align: center;">
<h3>Amaha Tesfaye</h3>
</div>
<p align="Center">Email: axt080020@utdallas.edu</p>
<hr>
<div style="text-align: center;">
<h3>Mahammed Alasaad</h3>
</div>
<p align="Center">Email: mna140230@utdallas.edu</p>
<hr>
<div style="text-align: center;">
<h3>William Rhea</h3>
</div>
<p align="Center">Email: wxr121030@utdallas.edu</p>
</div>
<div data-role="footer" data-position="fixed" data-id="nav" data-theme="b">
<div data-role="navbar">
<ul>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/gr8_index.php">Home</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/team.php" class="ui-btn-active ui-state-persist">Team</a></li>
<li><a href="http://mwa8-mis4312gr8v2.rhcloud.com/project.php">Project</a></li>
</ul>
</div>
</div>

</body>
</html>

3.User Guide
Operation & Use
1. Download then install from the pointer app from the GooglePlay store or Apple
iTunes App Store.
2. Next run the application.
3. From start up screen please click sign up. You will be prompted for your UTD Email
Address for account authentication. From there you will make an account to be able
to post your items for purchase as well as view items for sale.
a. Once you complete the sign up, please sign in.
4. Accept the terms and conditions.
5. Note the links for password & account recovery as well as to change your password.
6. Please fill in all the information about what you want to sell.
7. It is helpful to add pictures and also a detailed description of your product.
Use-Case Diagrams
Step 3

Step 3.a

Step 5

Step 6

Step 4

4. Personal Experience
The initial phase of the project was very difficult. The team came into the project with
their own ideas for the project. We were able to form a quorum and decide on one single
application/project. The act of choosing a project solidified our initial incohesion. The second
issue we faced was determining each others skills. Many of us are business students and had very
little experience with coding. Once we became acquainted during group meetings, team members
became aware of each others skills.
The biggest challenge facing our group was the lack of knowledge of PHP and other
server side languages. A couple of us had database experience and lacked middleware
programming knowledge. This caused the project to loose momentum. The decision to split up
the project by expertise helped to get each person acquainted with an aspect of the project. My
primary objective was the design of the end-user interface, and design diagrams. I had previous
experience with HTML and CSS; therefore it was not too difficult to develop. To push my
coding boundaries I tackled some SQL and PHP. I felt that it took me outside my comfort zone
and helped me to contribute to the group.

5. Semester Project Peer Evaluation


MIS4312 Mobile Web App Development
Group 8 Group Leader: Revathi Pabba
My Name: Amaha Tesfaye

I evaluate other team members contribution to the project as follows:


Team Member #1: Revathi Pabba Score: 100
Team Member #2: Jeffrey Pickens Score: 100
Team Member #3: Adnan Janjua Score: 100
Team Member #4: Mahammed Alasaad Score: 100
Team Member #5: Orlando Salazar Score: 100
Team Member #6: William Rhea Score: 100
Team Member #7: Amaha Tesfaye Score: N/A
Other Comments:
I really enjoyed working with my teammates, each person brought a unique set of skills that
made this project fruitful. I would be happy to work with the same group again.

You might also like