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

Starter Template for BDIC3. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
145 changes: 116 additions & 29 deletions bdic3/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,34 +1,121 @@
<%@page import="javax.persistence.EntityManager"%>
<%@page import="javax.persistence.Persistence"%>
<%@page import="javax.persistence.EntityManagerFactory"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" import="javax.servlet.*"
import="br.ita.bdic3.model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!DOCTYPE html>
<html lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Efetuar Transacao</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<title>Starter Template for BDIC3</title>

<!-- Bootstrap core CSS -->
<link href="resources/css/bootstrap.css" rel="stylesheet">

<!-- Add custom CSS here -->
<link href="resources/css/simple-sidebar.css" rel="stylesheet">
<link href="resources/fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet">

</head>

<body>
<h1>Efetuar Transacao</h1>

<%
EntityManagerFactory emf = Persistence
.createEntityManagerFactory("bdic3PU");
EntityManager em = emf.createEntityManager();
try {
Transacao t = new Transacao();
t.setValor(1274);

em.getTransaction().begin();
em.persist(t);
em.getTransaction().commit();
} catch (Exception e) {
System.out.println(e.getMessage());
em.getTransaction().rollback();
}
%>

<div id="wrapper">

<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand"><a href="#">Projeto BDI-C3 2014</a>
</li>
<li><a href="#">Sprint 1</a>
<ul class="nav nav-second-level">
<li>
<a href="us03.html">US 03</a>
</li>
<li>
<a href="us05.html">US 05</a>
</li>
<li>
<a href="us56.html">US 56</a>
</li>
</ul>
</li>
<li>
<a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> Sprint 2<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li>
<a href="us04.html">US 04</a>
</li>
<li>
<a href="us08.html">US 08</a>
</li>
<li>
<a href="us14.html">US 14</a>
</li>
</ul>
<!-- /.nav-second-level -->
</li>

</ul>
</div>

<!-- Page content -->
<div id="page-content-wrapper">
<div class="content-header">
<h1>
<a id="menu-toggle" href="#" class="btn btn-default"><i class="icon-reorder"></i></a>
Projeto Interdisciplinar do BDI-C3
</h1>
</div>
<!-- Keep all page content within the page-content inset div! -->
<div id="sites-canvas-main" class="sites-canvas-main">
<div id="sites-canvas-main-content">
<table class="sites-layout-name-one-column sites-layout-hbox"><tbody><tr><td class="sites-layout-tile sites-tile-name-content-1"><div dir="ltr"><div style="text-align:left;margin-right:auto;margin-left:auto;display:block"><b style="text-align:right;line-height:1.6;font-size:10pt"><font size="4">Projeto Interdisciplinar do&nbsp;</font></b><b style="background-color:transparent;font-family:arial,sans-serif;font-size:large">BDI-C3</b><b style="background-color:transparent;font-size:10pt;text-align:right;line-height:1.6"><font size="4">&nbsp;(</font></b><b style="background-color:transparent;font-family:arial,sans-serif;font-size:large">Projeto de Sistema de Banco de Dados&nbsp;</b><b style="background-color:transparent;font-family:arial,sans-serif;font-size:large">envolvendo&nbsp;<i>Big Data</i>,&nbsp;<i>Internet</i>&nbsp;das Coisas e Cart�es de Cr�ditos</b><b style="background-color:transparent;font-size:10pt;text-align:right;line-height:1.6"><font size="4">)</font></b></div><div><br></div><div>
Este portal tem por objetivo centralizar os materiais de aulas, listas de exerc�cios, rela��es de alunos e artefatos produzidos no PBL (<i>Problem Base Learning</i>), desenvolvido durante o 1� semestre de 2014, envolvendo as seguintes disciplinas:
<div>
<div><img border="0" src="resources/images/fabSoftware.jpg" style="margin:5px 10px;font-size:10pt;float:right;display:inline"></div>
<div>
<ul><li><b style="font-size:10pt"><font size="3">CE-229 -&nbsp;</font></b><font size="3"><b>Teste de&nbsp;<i>Software</i></b></font></li><li><font style="font-weight:bold"><span style="line-height:1.6"><font size="3">CE-240 -&nbsp;</font></span></font><font size="3" style="background-color:transparent"><span style="line-height:25.600000381469727px"><b>Projeto de Sistemas de Banco de&nbsp;</b></span></font><b style="background-color:transparent;line-height:25.600000381469727px;font-size:medium">Dados</b><b style="background-color:transparent;font-size:medium"><br></b></li><li><b style="background-color:transparent;font-size:medium">CE-245</b><font style="background-color:transparent;font-size:medium;font-weight:bold"><span style="line-height:1.6">&nbsp;-&nbsp;</span></font><font size="3" style="background-color:transparent"><span style="line-height:25.600000381469727px"><b>Tecnologias da Informa��o</b></span></font></li></ul>
<div>Todo o material publicado neste portal deve ser utilizado somente para prop�sitos acad�micos.</div><div><b><br></b></div><div><b>Professores:</b></div>
</div>
<div>
<ul><li><font size="3">Prof. Dr. Adilson Marques da&nbsp;<b>Cunha -</b><font style="font-weight:bold"><span style="line-height:1.6">&nbsp;<a href="mailto:[email protected]">[email protected]</a></span></font></font></li>
<li><font size="3" style="font-weight:bold"><span style="line-height:21px;font-weight:normal">Prof. Dr. Luiz Alberto</span><b style="line-height:21px">&nbsp;Vieira Dias&nbsp;-&nbsp;<a href="mailto:[email protected]">[email protected]</a></b></font></li></ul>
<b style="line-height:1.6;font-size:10pt">Colaboradores:</b></div>
</div>
<div>
<ul><li>Prof. Dr. <b>Lineu</b> Mialaret -&nbsp;<b><a href="mailto:[email protected]">[email protected]</a></b></li></ul>
<div>
<div style="text-align:center;margin-right:auto;margin-left:auto"><br>
</div>
<div style="text-align:center;margin-right:auto;margin-left:auto">
</div>
<div style="text-align:center;margin-right:auto;margin-left:auto"><br>
</div>
<div style="text-align:center;margin-right:auto;margin-left:auto"><br>
</div>
<div style="text-align:center;margin-right:auto;margin-left:auto"><img border="0" src="resources/images/logo-ita.png"></div>
<div style="text-align:center;margin-right:auto;margin-left:auto"><span style="text-align:left;font-size:small">Instituto Tecnol�gico de Aeron�utica - ITA</span></div>
</div>
</div>
</div>
</div>
</table>
</div>
</div>
</div>
</div>
<!-- JavaScript -->
<script src="resources/js/jquery-1.10.2.js"></script>
<script src="resources/js/bootstrap.js"></script>

<!-- Custom JavaScript for the Menu Toggle -->
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("active");
});
</script>
</body>
</html>

</html>
117 changes: 117 additions & 0 deletions bdic3/src/main/webapp/resources/css/simple-sidebar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
#wrapper {
padding-left: 250px;
transition: all 0.4s ease 0s;
}

#sidebar-wrapper {
margin-left: -250px;
left: 250px;
width: 250px;
background: #000;
position: fixed;
height: 100%;
overflow-y: auto;
z-index: 1000;
transition: all 0.4s ease 0s;
}

#page-content-wrapper {
width: 100%;
}

.sidebar-nav {
position: absolute;
top: 0;
width: 250px;
list-style: none;
margin: 0;
padding: 0;
}

.sidebar-nav li {
line-height: 40px;
text-indent: 20px;
}

.sidebar-nav li a {
color: #999999;
display: block;
text-decoration: none;
}

.sidebar-nav li a:hover {
color: #fff;
background: rgba(255,255,255,0.2);
text-decoration: none;
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
height: 65px;
line-height: 60px;
font-size: 18px;
}

.sidebar-nav > .sidebar-brand a {
color: #999999;
}

.sidebar-nav > .sidebar-brand a:hover {
color: #fff;
background: none;
}

.content-header {
height: 65px;
line-height: 65px;
}

.content-header h1 {
margin: 0;
margin-left: 20px;
line-height: 65px;
display: inline-block;
}

#menu-toggle {
display: none;
}

.inset {
padding: 20px;
}

@media (max-width:767px) {

#wrapper {
padding-left: 0;
}

#sidebar-wrapper {
left: 0;
}

#wrapper.active {
position: relative;
left: 250px;
}

#wrapper.active #sidebar-wrapper {
left: 250px;
width: 250px;
transition: all 0.4s ease 0s;
}

#menu-toggle {
display: inline-block;
}

.inset {
padding: 15px;
}

}
Loading