The document describes the registration and login pages for a website called Coaches Best Friend. The registration page collects user information such as name, address, email, username, and password and validates the inputs before inserting the data into a database. The login page allows users to enter their username and password which are then checked against the database to authenticate the user. Both pages have links to allow users to switch between registration and login as needed.
CSUN 2020: CSS Display Properties Versus HTML SemanticsAdrian Roselli
Developers who choose HTML elements that best describe a screen’s structure and semantics often don’t know how browsers use their CSS to break those semantics.
How we are writing user perspective tests using tools rspec, capybara, kameleon. To get more readable & maintaiable integration and acceptance tests .
https://github.com/cs3b/kameleon
CSUN 2020: CSS Display Properties Versus HTML SemanticsAdrian Roselli
Developers who choose HTML elements that best describe a screen’s structure and semantics often don’t know how browsers use their CSS to break those semantics.
How we are writing user perspective tests using tools rspec, capybara, kameleon. To get more readable & maintaiable integration and acceptance tests .
https://github.com/cs3b/kameleon
We've all been there: lookin' a thousands line spaghetti code of CSS, scrolling up and down, trying to find all the declarations, which override each other here and there, and almost cry when we find out that changing one thing affects a lot more page elements than we expected. (In the meantime we mumble some angry words about the previous developer of the file and sometimes we realize that we are talking about ourselves…)
Slides form my workshop @ drupalaton:
http://2014.drupalaton.hu/schedule#speaker-22
There are a million ways to write HTML and CSS, and everyone has their own, but is there a right way? Our code needs to be well structured, written in an organized manner, and performance driven. Sharing code amongst a team should be a joyful experience, not absolute terror.
Shay talks about how to how to write tactical HTML and CSS, crafting code that is maintainable, flexible, and extensible. Covering new methodologies such as OOCSS and SMACSS learn how to architect websites which are manageable and performant.
MTC 2013 Berlin - Best Practices for Multi DevicesHasan Hosgel
Here you can experience the learnings, which the presenter got during development of the ImmobilienScout24 Android application. The presentation doesn't cover Design, UX or Fragments, but it gives an introduction and samples of using different resources, in special layouts. These folders can be used for filtering specific configurations, referencing other resources and using layout aliases. This session aims at people with knowledge of coding for Android.
We've all been there: lookin' a thousands line spaghetti code of CSS, scrolling up and down, trying to find all the declarations, which override each other here and there, and almost cry when we find out that changing one thing affects a lot more page elements than we expected. (In the meantime we mumble some angry words about the previous developer of the file and sometimes we realize that we are talking about ourselves…)
Slides form my workshop @ drupalaton:
http://2014.drupalaton.hu/schedule#speaker-22
There are a million ways to write HTML and CSS, and everyone has their own, but is there a right way? Our code needs to be well structured, written in an organized manner, and performance driven. Sharing code amongst a team should be a joyful experience, not absolute terror.
Shay talks about how to how to write tactical HTML and CSS, crafting code that is maintainable, flexible, and extensible. Covering new methodologies such as OOCSS and SMACSS learn how to architect websites which are manageable and performant.
MTC 2013 Berlin - Best Practices for Multi DevicesHasan Hosgel
Here you can experience the learnings, which the presenter got during development of the ImmobilienScout24 Android application. The presentation doesn't cover Design, UX or Fragments, but it gives an introduction and samples of using different resources, in special layouts. These folders can be used for filtering specific configurations, referencing other resources and using layout aliases. This session aims at people with knowledge of coding for Android.
REDUÇÃO DOS IMPACTOS NEGATIVOS DA DISPOSIÇÃO DE RESÍDUOS ATRAVÉS DA GERAÇÃO D...prof.dr.paulino.e.coelho
A queima do resíduo sólido urbano (RSU) “in natura” com ou sem geração da energia foi utilizada no passado como maneira de disposição apropriada do RSU. As plantas de incineração totais tradicionais estavam sujeitas às flutuações de funcionamento devido às mudanças nas características do lixo durante a alimentação da câmara de combustão. Ademais,devido carecer na preparação dos resíduos, mesmo com os dispositivos avançados da depuração de gases, tais plantas eram culpadas pelas emissões de gases tóxicos como dioxinas e metais pesados. No entanto, a oxidação termal de lixos segue sendo a melhor maneira de reduzir o lixo antes da disposição final. Além disso, dependendo do processo e de características da escória/cinza, pode-se gerar ZERO de lixo, ao final do processo, reciclando tal escória ou cinza. Por outro lado, em tempos de efeito estufa, uma melhor equação para a combustão direta do combustível derivado dos lixos sólidos municipais pode ser obtida se comparada à combustão do gás e aterros sanitários.
Community Ownership: How Co-ops Help Make Healthy, Local Food More AccessibleNFCACoops
This presentation from the 2016 Northeast Organic Farming Association conference covers the co-op model and how can it help make local food systems work for people with limited food budgets. Find out more about how food co-ops are leveraging community ownership of their grocery stores to make nutritious food more accessible to families with limited food budgets.
Presenters: Bonnie Hudspeth, Membership and Outreach Manager, Neighboring Food Co-op Association and Dorian Gregory, Loan & Outreach Officer, Cooperative Fund of New England.
Many of our member co-ops are facing new and serious challenges due to competition, financial pressure and/or conflicts between stakeholder groups. Opportunities for growth and success require a high level of collaboration. More than ever, food co-ops need to develop strategic alignment between the governance and operational aspects of their organizations. This presentation explores some of these challenges and opportunities and offers some examples from food co-ops in our region.
1. A-2 About Page
<!DOCTYPE html>
<html>
<head>
<link href="stylesheet.css" rel="stylesheet" />
<title></title>
</head>
<body>
<div id="container">
<div id="header">
<div id="logo"></div>
<div id="title"><h1>Coaches Best Friend.com</h1></div>
</div>
<div id="menu">
<div id="home">
<a href="home_page.html"><span
class="black">HOME</span></a>
</div>
<div id="about">
<a href="about_page.html"><span
class="black">ABOUT</span></a>
</div>
<div id="parents">
<a href="parents_page.html"><span
class="black">PARENTS/COACHES</span></a>
</div>
</div>
<div id="about_page">
<div id="names">
<a href="At_Bats.html">At Bats</a><br />
<a href="Single.html">Single</a><br />
<a href="Double.html">Double</a><br />
<a href="Triple.html">Triple</a><br />
<a href="Home_Run.html">Home Run</a><br />
<a href="RBI.html">RBI</a><br />
<a href="Strike_Outs.html">Strike Outs</a><br />
<a href="Walks.html">Walks/HBP</a><br />
<a href="OBP.html">OBP</a><br />
<a href="AVG.html">AVG</a><br />
</div>
<div class="history">
<h2><i>Some History</i></h2>
<p class="small_text">Baseball evolved from the British
game of rounders, and is a cousin to cricket in that it also involves two
teams that alternate on defense and
offense and involve throwing a ball to a batsman who
attempts to "bat" it away and run safely to a base. The first documentation
2. of base ball is in 1838, but there
are references to a game of base ball going back to the
late 1700s.
</p>
<br>
<p class="small_text">Softball, especially fast-pitch
softball, is considered mostly a women's game in the 21st century. But it
didn't begin that way - it began as
an offshoot of baseball for men that could be played
indoors in the winter. It was first played in 1887 with a boxing glove rolled
up into a ball (which was soft) and
fielders didn't wear gloves.
</p>
</div>
</div>
</div>
</body>
</html>
A-3 Parents/Coaches Page
<!DOCTYPE html>
<html>
<head>
<link href="stylesheet.css" rel="stylesheet" />
<title></title>
</head>
<body>
<div id="container">
<div id="header">
<div id="logo"></div>
<div id="title"><h1>Coaches Best Friend.com</h1></div>
</div>
<div id="menu">
<div id="home">
<a href="home_page.html"><span
class="black">HOME</span></a>
</div>
<div id="about">
<a href="about_page.html"><span
class="black">ABOUT</span></a>
</div>
<div id="parents">
<a href="parents_page.html"><span
class="black">PARENTS/COACHES</span></a>
</div>
</div>
<div id="parents_page">
<div id="names">
3. <a href="login.html">Login</a><br />
<a href="registration.html">Register</a><br />
</div>
<div class="history">
<h2 align="center"><i>Welcome Parents, Coaches, &
Players</i></h2>
<br>
<p id="font">Hello This section you can login from or
register. Once you are registered you will be
able to view stats of the players. If you are a coach you
will get rights to also add stats and update.
</div>
</div>
</div>
</body>
</html>
A-4 Registration Page
<!DOCTYPE html>
<html>
<head>
<link href="stylesheet.css" rel="stylesheet" />
<title></title>
</head>
<body>
<div id="container">
<div id="header">
<div id="title"><h1>Coaches Best Friend.com</h1></div>
</div>
<div id="menu">
<div id="home">
<a href="home_page.html"><span
class="black">HOME</span></a>
</div>
<div id="about">
<a href="about_page.html"><span
class="black">ABOUT</span></a>
</div>
<div id="parents">
<a href="parents_page.html"><span
class="black">PARENTS/COACHES</span></a>
</div>
</div>
6. if (strlen($address) >=5 and strlen($address) <=50)
{
if (strlen($city) >=2 and strlen($city) <=20)
{
if(!empty($state))
{
if (preg_match('/^[0-9]{5}$/', $zip))
{
if (ereg('^[2-9]{1}[0-9]{2}-[0-
9]{3}-[0-9]{4}$', $phone))
{
if (preg_match("/^[^0-9][a-
zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-
Z]{2,4}?$/i",$email))
{
if (strlen($username)
>=5 and strlen($username) <=25)
{
if
(strlen($password) >=5 and strlen($password) <=20)
{
// Create
connection
$con=
mysqli_connect("localhost","root","","softball");
// Check
connection
if
(mysqli_connect_errno($con))
{
echo
"Failed to connect to MySQL: " . mysqli_connect_error();
}
//Query
$sql2="INSERT INTO LOGIN (UserName, Password)
VALUES('$username','$password')";
if
(!mysqli_query($con,$sql2))
{
die('Error: ' . mysqli_error($con));
}
$id =
mysqli_insert_id($con);
$sqli =
7. "INSERT INTO MEMBERS(FirstName, LastName, Address, City, State, Zip,
PhoneNumber, Email, LoginID)
VALUES('$firstname', '$lastname', '$address', '$city', '$state','$zip',
'$phone', '$email', '$id')";
if
(!mysqli_query($con,$sqli))
{
die('Error: ' . mysqli_error($con));
}
//echo
strtr(file_get_contents('http://localhost/Webpage/thankyou.html'), $aParams);
header
('Location: thankyou.html');
mysqli_close($con);
}
else
{
echo
"Please enter a valid alphanumeric password that is at least 5 characters
long.<br/>Click on the back button on browser";
}
}
else
{
echo "Please
enter a username is at least 5 characters long.<br/>Click on the back button
on browser";
}
}
else
{
echo "Please enter a
valid E-Mail address.<br/>Click on the back button on browser";
}
}
else
{
echo "Please enter a valid
phone number.<br/>Click on the back button on browser";
}
}
else
{
echo "Zip Code is
invalid.<br/>Click on the back button on browser";
}
}
else
{
echo "Please select the state";
}
8. }
else
{
echo "Please enter a valid City name.<br/>Click
on the back button on browser";
}
}
else
{
echo "Please enter a valid address name.<br/>Click on
the back button on browser";
}
}
else
{
echo "Please enter your lastname in the field
provided<br/>Click on the back button on browser";
}
}
else
{
echo "Please enter your firstname in the field provided<br/>Click
on the back button on browser";
}
}
?>
</html>
A-6 Login Page
<!DOCTYPE html>
<html>
<head>
<link href="stylesheet.css" rel="stylesheet" />
<title></title>
</head>
<body>
<div id="container">
<div id="header">
<div id="title"><h1>Coaches Best Friend.com</h1></div>
</div>
<div id="menu">
<div id="home">
<a href="home_page.html"><span
class="black">HOME</span></a>
</div>
<div id="about">
<a href="about_page.html"><span
class="black">ABOUT</span></a>
</div>
<div id="parents">
20. //Query
$sql2 = "INSERT INTO SPORTS(Sport)
VALUES('$sport')";
if (!mysqli_query($con,$sql2))
{
die('Error: ' .
mysqli_error($con));
}
$id = mysqli_insert_id($con);
$sql3 = "INSERT INTO
TEAMS(TeamName, City, State, Division, SportID)
VALUES('$teamname', '$city',
'$state', '$division', '$id')";
if (!mysqli_query($con,$sql3))
{
die('Error: ' .
mysqli_error($con));
}
$id2 = mysqli_insert_id($con);
$sql1 = "INSERT INTO
PLAYERS(FirstName, LastName, BirthDate, TeamID)
VALUES('$firstname', '$lastname',
'$birthday', '$id2')";
if (!mysqli_query($con,$sql1))
{
die('Error: ' .
mysqli_error($con));
}
$id3 = mysqli_insert_id($con);
21. $sql4 = "INSERT INTO
STATS(PlayerID, AtBats, Singles, Doubles, Triples, HomeRuns, Walks, RBI,
HitByPitch, StrikeOuts, D3Strike, Sac)
VALUES('$id3', '$atbats',
'$singles', '$doubles', '$triples', '$homerun', '$walks', '$rbi', '$hbp',
'$strikeouts', '$drop3strike', '$sac')";
if (!mysqli_query($con,$sql4))
{
die('Error: ' .
mysqli_error($con));
}
//echo
strtr(file_get_contents('http://localhost/Webpage/thankyou.html'), $aParams);
header ('Location:
stats_output.html');
mysqli_close($con);
}
else
{
echo "Please select from the drop
down box number of Sacrifices<br/>Click on the back button on browser";
}
}
else
{
echo "Please select from the drop down
box number of Drop 3rd Strikes<br/>Click on the back button on browser";
}
}
else
22. {
echo "Please select from the drop down box
number of Strikeouts<br/>Click on the back button on browser";
}
}
else
{
echo "Please select from the drop down box number of
hit by pitches<br/>Click on the back button on browser";
}
}
else
{
echo "Please select from the drop down box number of runs
batted in<br/>Click on the back button on browser";
}
}
else
{
echo "Please select from the drop down box number of
walks<br/>Click on the back button on browser";
}
}
else
{
echo "Please select from the drop down box number of home
runs<br/>Click on the back button on browser";
}
}
else
{
echo "Please select from the drop down box number of triples<br/>Click
on the back button on browser";
}
23. }
else
{
echo
"Please select from the drop down box number of doubles<br/>Click on the back
button on browser";
}
}
else
{
echo
"Please select from the drop down box number of singles<br/>Click on the back
button on browser";
}
}
else
{
echo "Please
select from the drop down box number of at bats<br/>Click on the back button
on browser";
}
}
else
{
echo "Please enter
vaild Birthdate as the example<br/>Click on the back button on browser";
}
}
else
{
echo "Please enter the
players last name<br/>Click on the back button on browser";
}
}
else
{
echo "Please enter the palyer's
first name<br/>Click on the back button on browser";
}
}
else
{
echo "Please enter the division<br/>Click
on the back button on browser";
}
}
else
{
echo "Please select the sport<br/>Click on the
back button on browser";
}
}
else
{
echo "Please select the state<br/>Click on the back
button on browser";
}
24. }
else
{
echo "Please enter your Team's City in the field
provided<br/>Click on the back button on browser";
}
}
else
{
echo "Please enter your Team Name in the field provided<br/>Click
on the back button on browser";
}
}
?>
</html>
A-11 Stats Output
<!DOCTYPE html>
<html>
<head>
<link href="stylesheet.css" rel="stylesheet" />
<title></title>
</head>
<body>
<div id="container">
<div id="header">
<div id="title"><h1>Coaches Best Friend.com</h1></div>
</div>
<div id="menu">
<div id="home">
<a href="home_page.html"><span
class="black">HOME</span></a>
</div>
<div id="about">
<a href="about_page.html"><span
class="black">ABOUT</span></a>
</div>
<div id="parents">
<a href="parents_page.html"><span
class="black">PARENTS/COACHES</span></a>
</div>
</div>