Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab04 #4

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .idea/sqldialects.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

143 changes: 143 additions & 0 deletions Lab02.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
<title>Lab 02</title>
</head>
<body>
<div class="container">
<div class="container">
<div class="row">
<div class="col-md-5">
<h1 class="text-center">Share Your Travels</h1>
<h6 class="text-center font-italic">Let us know where you've been</h6>
</div>
<nav class="navbar col-md-6">
<div class="col-md-4 text-center">
<a href="Lab04.html" class="list-group-item-action">Upload</a>
</div>
<div class="col-md-4 text-center">
<a href="#" class="list-group-item-action">Related Photos</a>
</div>
<div class="col-md-4 text-center">
<a href="#" class="list-group-item-action">Reviews</a>
</div>
</nav>

</div>
</div>

<div class="container">
<div class="row">
<div class="col-md-9">
<div class="card">
<div class="card-body">
<a name="related photos reviews"><h3>New York - Central Park</h3></a>
<h5><small>Conservatory Pond in Central Park</small></h5>
<a href="other/central-park.html">
<img class="img-fluid " src="images/large-central-park.jpg" width="1024" height="638" alt="Central Park">
</a>
<p>This photo of Conservatory Pond in <a href="#" class="place">Central Park</a>
in <a href="#" class="place">New York City</a>
was taken on October 22,2016 with a Canon EOS 30D camera.
</p>
<div class="float-right">
<div class="btn-group">
<button type="button" class="btn btn-light">
<img src="images/icon_download.png" width="18" height="18" alt="icon_download.png">
</button>
<button type="button" class="btn btn-light">
<img src="images/icon_mail.png" width="18" height="18" alt="icon_mail.png">
</button>
<button type="button" class="btn btn-light">
<img src="images/icon_map.png" width="18" height="18" alt="icon_map.png">
</button>
<button type="button" class="btn btn-light">
<img src="images/icon_up.png" width="18" height="18" alt="icon_up.png">
</button>
<button type="button" class="btn btn-light">
<img src="images/icon_down.png" width="18" height="18" alt="icon_down.png">
</button>
</div>
</div>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card">
<div class="card-body">
<h4>Related Photos</h4>
<div id="demo" class="carousel slide" data-ride="carousel">
<!-- 指示符 -->
<ul class="carousel-indicators">
<li data-target="#demo" data-slide-to="0" class="active"></li>
<li data-target="#demo" data-slide-to="1"></li>
<li data-target="#demo" data-slide-to="2"></li>
</ul>
<!-- 轮播图片 -->
<div class="carousel-inner">
<div class="carousel-item active">
<a href="other/related-1.html"><img src="images/related-square1.jpg" width="100%" height="100%"></a>
</div>
<div class="carousel-item">
<a href="other/related-2.html"><img src="images/related-square2.jpg" width="100%" height="100%"></a>
</div>
<div class="carousel-item">
<a href="other/related-3.html"><img src="images/related-square3.jpg" width="100%" height="100%"></a>
</div>
</div>
<!-- 左右切换按钮 -->
<a class="carousel-control-prev" href="#demo" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#demo" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<h4>Reviews</h4>
<div class="text-center">
<a data-toggle="collapse" data-target="#review-1">
<i>Ricardo</i><br>
<span class="badge badge-pill badge-info">2016-05-23</span>
<p id="review-1" class="collapse">Easy on the HDR buddy.</p>
</a>
<hr>
<a data-toggle="collapse" data-target="#review-2">
<i>Susan</i><br>
<span class="badge badge-pill badge-info">2016-11-18</span>
<p id="review-2" class="collapse">I love Central Park.</p>
</a>
</div>
</div>
</div>
</div>
</div>
</div>

<footer>
<div class="container">
<div class="row">
<div class="col-md-3 text-center"></div>
<div class="col-md-2 text-center"><a href="#">Home</a></div>
<div class="col-md-2 text-center"><a href="#">Browse</a></div>
<div class="col-md-2 text-center"><a href="#">Search</a></div>
</div>
</div>
<p class="text-center font-italic">Copyright &#169 2017 Share Your Travels</p>
</footer>

</div>

<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>

</body>
</html>
108 changes: 95 additions & 13 deletions Lab04.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,104 @@
<!DOCTYPE html>
<html lang="en">
<head >
<head>
<meta charset="utf-8">
<title>Lab 04</title>
<link rel="stylesheet" href="./css/reset.css" />
<link rel="stylesheet" href="./css/Lab04.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
</head>
<body>
<header>
<h1>Share Your Travels</h1>
<p>let us know where you've been</p>
</header>
<main>
<section>

</section>
</main>
<div class="container">
<div class="container">
<div class="row">
<div class="col-md-5">
<h1 class="text-center">Share Your Travels</h1>
<h6 class="text-center font-italic">Let us know where you've been</h6>
</div>
<nav class="navbar col-md-6">
<div class="col-md-4 text-center">
<a href="Lab02.html" class="list-group-item-action">Gallery</a>
</div>
<div class="col-md-4 text-center">
<a href="#" class="list-group-item-action">Feeling Lucky</a>
</div>
<div class="col-md-4 text-center">
<a href="#" class="list-group-item-action">User</a>
</div>
</nav>
</div>
</div>

<div class="container">
<div class="card">
<section class="card-body">
<form method="post" action="http://www.randyconnolly.com/tests/process.php">
<fieldset>
<h4>Photo Details</h4>
<h6>Title</h6>
<input type="text" class="form-control" name="title" placeholder="Give your photo a descriptive name"><br>
<h6>Description</h6>
<textarea class="form-control" placeholder="Adding a rich description will help with search results"></textarea><br>
<h6>Continent</h6>
<select title="" name="continent" class="form-control">
<option class="disabled">Choose continent</option>
</select><br>
<h6>Country</h6>
<select title="" name="country" class="form-control">
<option>Choose country</option>
</select><br>
<h6>City</h6>
<input title="" type="text" name="city" class="form-control"><br>
<div class="box">
<h6>Copyright?</h6>
<input title="" type="radio" name="right">All rights reserved<br>
<input title="" type="radio" name="right" checked>Creative Commons
</div><br>
<div class="box">
<h6>Creative Common Types</h6>
<input title="" type="checkbox" name="checkbox1" value="Attribution">Attribution
<input title="" type="checkbox" name="checkbox2" value="Noncommercial">Noncommercial
<input title="" type="checkbox" name="checkbox3" value="No Derivative Works">No Derivative Works
</div><br>
<div class="rectangle">
<input title="" type="checkbox">I accept the software license
</div><br>
<div class="row">
<div class="col-md-3">
<h6>Rate this photo:</h6>
<input title="" type="number" class="form-control">
</div>
<div class="col-md-1"></div>
<div class="col-md-8">
<h6>Color Collection:</h6>
<input title="" type="text" class="form-control">
</div>
</div>
<br>
<div class="row">
<div class="col-md-5">
<h6>Date Taken:</h6>
<input title="" type="text" class="form-control">
</div>
<div class="col-md-1"></div>
<div class="col-md-6">
<h6>Time Taken:</h6>
<input title="" type="text" class="form-control">
</div>
</div>
<br>
<div class="btn-group">
<input type="submit" class="btn btn-secondary" value="Submit">
<input type="reset" class="btn btn-secondary" value="Clear">
</div>
</fieldset>
</form>
</section>
</div>
</div>

<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
</div>
</body>
</html>
</html>
11 changes: 7 additions & 4 deletions Lab06.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,width=device-width">
<title>Lab06</title>
<link href="css/Lab06.css" rel="stylesheet" />
<script src="js/data.js" type="text/JavaScript"></script>
<link href="css/Lab06.css" rel="stylesheet">

</head>

<body>
<header>
<h2>Share Your Travels</h2>
</header>
<div class="flex-container justify" >
<div class="flex-container justify" id="container">

</div>

<script src="js/data.js" type="text/JavaScript"></script>
<script src="js/lab06.js" type="text/JavaScript"></script>
</body>
</html>
63 changes: 63 additions & 0 deletions Lab07.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lab07</title>
<link rel="stylesheet" href="css/Lab07.css">
</head>
<body>
<div class="box selectBox" id="selectBox1">
<select title="" name="default" id="select1">
<option selected value="SELECT ONE" id="option1">
SELECT ONE
</option>
<option value="CREATE TABLE" id="option2">
CREATE TABLE
</option>
<option value="ADD ROW" id="option3">
ADD ROW
</option>
<option value="DELETE ROW" id="option4">
DELETE ROW
</option>
<option value="DELETE TABLE" id="option5">
DELETE TABLE
</option>
</select>
</div>

<div class="box" id="createTableBox">
<input title="" type="text" id="tableName" placeholder="Table Name">
<input title="" type="number" id="colNum" placeholder="max10" max = "10">
</div>

<div class="box" id="addRowBox">

</div>
<div class="box" id="deleteRowBox">

</div>
<div class="box" id="attributeBox">

</div>

<div class="box" id="btCommitBox">
<button value="commit" id="btCommit">Commit</button>
</div>
<div class="box" id="warningBox">
<p>WARNING: You cannot undo this action!</p>
</div>
<div class="box selectBox" id="selectBox2">
<select title="" id="select2">
<option selected>
SELECT (default: last created)
</option>
</select>
</div>
<div class="box" id="tableBox">

</div>

<script type="text/javascript" src="js/Lab07.js" title="default"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions Lab08.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

<body>
<!-- include header here -->

<?php include 'header.inc.php'; ?>
<!-- Page Content -->
<main class="container">
<div class="row">

<!-- include left here -->

<?php include 'left.inc.php'; ?>
<div class="col-md-10">
<div class="jumbotron" id="postJumbo">
<h1>Posts</h1>
Expand All @@ -36,6 +36,7 @@
<div class="postlist">

<!-- replace each of these rows with a function call -->

<?php
outputPostRow(1);
outputPostRow(2);
Expand Down
Loading