当前用户:<a id="UserBaseInfo" href="#" onclick="javascript:f_addTab('ModifyMyInfo','操作员信息修改','@Url.Content("~/Account/ModifyMyInfo")')" style="color:white;text-decoration:none;" title="@ViewBag.OperatorName">@ViewBag.OperatorName</a>
$(function (){
$("#UserBaseInfo").ligerTip({
content: $("#UBI").html(),
callback: null,
auto: true,
removeTitle: true
});
});
<div style="display: none;" id="UBI">
@{
System.Data.DataTable dt = (System.Data.DataTable)ViewBag.OperatorInfo;
if (dt.Rows.Count == 1)
{
<img src='@if (!string.IsNullOrEmpty(dt.Rows[0]["img"].ToString()))
{@Url.Content(dt.Rows[0]["img"].ToString());
}
else
{@Url.Content("~/Content/Images/defaultUser.png");
}' style="width:75px;height:75px;" />
<p>姓名:@Html.Raw(dt.Rows[0]["Name"].ToString())</p>
<p>编号:@Html.Raw(dt.Rows[0]["Id"].ToString())</p>
<p>部门:@Html.Raw(dt.Rows[0]["DepartmentName"].ToString())</p>
<p>职位:@Html.Raw(dt.Rows[0]["PositionTitle"].ToString())</p>
<hr />
<p>注:点击进入基本信息设置界面。</p>
}
}
</div>