|
@model Parichay.MVC.Models.UserHomeModel
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Styles {
<link href="@Url.Content("~/Content/Styles/jquery.ui.css")" rel="stylesheet" type="text/css" />
}
@section Scripts
{
<script src="@Url.Content("~/Content/Scripts/jquery-ui-1.8.11.min.js")" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function ($) {
$('DIV.modalWin').dialog({ autoOpen: false }); // or hide in css
//$('DIV.modalWin').modal();
$('a.openModal').click(function () {
var divNm = '#' + $(this).attr('data-name');
$(divNm).dialog('open');
});
$('DIV.rplyBox').toggle('slow');
$('a.showreply').click(function () {
var divNm = '#' + $(this).attr('data-name');
$(divNm).toggle('slow');
});
});
</script>
}
<h2>Index</h2>
<fieldset>
<legend>Member Details</legend>
<div style="clear:left;float:left;width:164px;">
<table class="tblAllBorders">
@if (Model.IsCurrentUser)
{
<tr><td>@Html.ActionLink("Edit Personal Info.", "Edit") | @Html.ActionLink("About Yourself", "BioData")
</td></tr>}
<tr>
<td>
@if (Model.myInfo != null)
{
@Html.Partial("BO/usrProf",Model.myInfo)
}
else
{
<p>Your profile is empty</p>
}
</td>
</tr>
@if(Model.IsCurrentUser){
<tr><td>@Html.ActionLink("Change Password", "ChangePassword") | @Html.ActionLink("Password Ques. & Ans.", "ChangePassQnA")</td></tr>
}</table>
</div>
<div style="float:right;width:500px;">
@if ((Model.myAlerts != null) && (Model.myAlerts.Count != 0))
{<br />
@Html.Partial("BO/MyAlerts",Model.myAlerts)
}
@if ((Model.myMessages != null) && (Model.myMessages.Count != 0))
{<br />
<div class="cmtMainBox">
<div class="cmtHeading"><span>(@Html.ActionLink("My Messages", "Index", "Friend")):</span></div>
@foreach (var itm in Model.myMessages)
{
@Html.Partial("BO/msg",itm)
}
</div>
}
@if ((Model.myFriendMsg != null) && (Model.myFriendMsg.Count != 0))
{<br /><br />
<div class="cmtMainBox">
<div class="cmtHeading"><span>Friend's Messages (@Html.ActionLink("My Friends", "Index", "Friend")):</span></div>
@foreach (var itm in Model.myFriendMsg)
{
@Html.Partial("BO/msg", itm)
}
</div>
}
@if ((Model.myRequests != null) && (Model.myRequests.Count != 0))
{<br />
@Html.Partial("BO/MyRequests",Model.myRequests)
}
@if ((Model.myInvites != null) && (Model.myInvites.Count != 0))
{<br />
@Html.Partial("BO/MyInvites",Model.myInvites)
}
</div>
</fieldset>
<p>
</p>
|
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 love programming, reading, and meditation. I like to explore management and productivity.