Desenvolvimento de Software Seguro
Por: leonardovale • 11/5/2015 • Resenha • 3.520 Palavras (15 Páginas) • 196 Visualizações
[pic 1][pic 2][pic 3]
[pic 4]
Sumário
_
Código Fonte do Projeto
Código Fonte do Projeto
Tela a Principal
[pic 5]
Views
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container">
div>
Controllers
namespace Academia.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
}
Tela de Login
[pic 6]
[pic 7]
Views Compartilhada.
@using Academia.Class.Visao
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Hometitle>
<link type="text/css" rel="stylesheet" href="~/Content/bootstrap.css" />
<script src="~/Scripts/jquery-2.1.3.min.js">script>
<script src="~/Scripts/bootstrap.min.js">script>
<script src="~/Scripts/Controle.js">script>
head>
<body>
<div class="container">
<div class="sidebar-nav well">
<div class="header"">
>
<li>@Html.ActionLink("Home", "Index", "Home")li>
<li>@Html.ActionLink("Agenda", "Index", "Agenda")li>
<li class="dropdown">
<a href="#" data-toggle="dropdown" class="dropdown-toggle">Cadastrar <b class="caret">b>a>
<ul class="dropdown-menu">
<li>@Html.ActionLink("Agenda", "CadastroAgenda", "Agenda")li>
<li>@Html.ActionLink("Funcionários", "CadastroFuncionario", "Usuario")li>
ul>
li>
@if (Session["usuariologado"] == null )
{
<li><button class="btn btn-primary btn-sm" href="#signup" data-toggle="modal" data-target=".bs-modal-sm">Login/ Cadastrobutton>li>
}
else
{
<li><label class="control-label" for="userid">Olá @Session["usuariologado"]label>li>
}
ul>
<h3 class="text-muted">@Html.ActionLink("Forma Fit Academia", "Index", "Home")h3>
<br>
...