Ejemplo n.º 1
0
<tr><td>Name</td>
<td><input name="name" type="text" placeholder="John Doe"></td></tr>
<tr><td>Email Address<br></td>
<td><input name="email" type="text" placeholder="*****@*****.**" ></td></tr>
<tr><td>Phone Number (Optional)<br></td>
<td><input name="phone" type="text" placeholder="1-000-000-0000" ></td>
<tr><td>Price Offer $<br></td>
<td><input name="offer" type="text" placeholder="0.00" ></td></tr>
<br>
</table>
<input name="" class="buttonStyle" type="submit" value="Place Bid" >
<input name="bookid" type="hidden" value="<?php 
        echo $bookid;
        ?>
" >

</form>

    
    
    
	<?php 
    }
}
if (isset($_GET['searchtitle'])) {
    $info = $currentBook->getAllBookInfoByTitle($_GET['searchtitle']);
    require_once $_SERVER['DOCUMENT_ROOT'] . "/functions/printFormattedBookList.php";
    //var_dump($info);
    printFormattedBookList($info);
}
require_once "footer.php";
Ejemplo n.º 2
0
	function move(){
		$( ".searchbookprice" ).append("<p>Hello World</p>")
		}

 
 
 </script>



<p class="listingtitle">Your Current Listings and Bids</p>

<?php 
require_once $_SERVER['DOCUMENT_ROOT'] . "/selectdb.php";
/*
$tableName = "books";
$userArgument = "title";
$userValue = $_SESSION['id'];
$idvalue = "sellerid" ;
*/
// extractdata($tableName, $userArgument, $userValue, $idvalue);
$booklist = new Book();
//gets all book listings as a single array of arrays with keys {bookid, bookprice, booktitle, booknegotiable, booksellername, bookauthor, bookISBN}
$allBooks = $booklist->getAllBookInfoForUserID($_SESSION['id']);
//iterate through array to fetch out each single book
foreach ($allBooks as $singleBook) {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/functions/printFormattedBookList.php";
    //var_dump($info);
    printFormattedBookList($singleBook);
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/footer.php";