|
@using MvcBasicSite.Models;
@{
int culture = SiteSession.CurrentUICulture;
string pageTitle = string.Format("{0} - {1}", Resources.Resource.WebAppTitle, ViewBag.Title);
SiteSession siteSession = (Session["SiteSession"] == null ? null : (SiteSession)Session["SiteSession"]);
}
<!DOCTYPE html>
<html>
<head>
<title>@pageTitle</title>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/dd.css")" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page">
<div id="header">
@Html.Partial("_Header")
<div id="menucontainer">
<ul id="menu">
<li>@Html.ActionLink(Resources.Resource.MenuHome, "Index", "Home")</li>
@if (siteSession != null)
{
<li>@Html.ActionLink(Resources.Resource.MenuMyAccount, "MyAccount", "Account")</li>
}
<li>@Html.ActionLink(Resources.Resource.MenuAbout, "About", "Home")</li>
</ul>
</div>
</div>
<div id="main">
@RenderBody()
</div>
<div id="footer">
@Html.Label("Copyright © 2013 - Raul ILOC")
</div>
</div>
<script type="text/javascript">
var paramObject = {
UrlChangeCulture: '@Url.Content("~/Account/ChangeCurrentCulture")'
}
function changeCurrentCulture(culture) {
document.location = paramObject.UrlChangeCulture + "?culture=" + culture;
return true;
}
</script>
@Content.Script("jquery-1.5.1.min.js", Url)
@Content.Script("jquery.unobtrusive-ajax.min.js", Url)
@Content.Script("jquery-ui-1.8.11.min.js", Url)
@Content.Script("jquery.dd.js", Url)
@Content.Script("Layout.js", Url)
@RenderSection("scripts", false)
</body>
</html>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have about 20 years experiences in leading software projects and teams and about 25 years of working experience in software development (SW Developer, SW Lead, SW Architect, SW PM, SW Manager/Group Leader).