日期:2014-05-17 浏览次数:20429 次
foreach (var cat in cateTeam.SubCategories)
{
if (cat.IsMagazine.HasValue && cat.IsMagazine.Value)
{
@Html.ActionLink(cat.Name, "Magazine", "Lib", new RouteValueDictionary { { "id", cat.ID } }, null); //杂志类型
}
else
{
@Html.ActionLink(cat.Name, "Category", "Lib", new { id = cat.ID }, new { target = "_blank", title = cat.Name }) //一般分类
}
counter6 = counter6 + 1;
if (counter6 % 6 == 0)
{
<br />
counter6 = 0;
}
else
{
string strTemp = string.Empty;
int length = cat.Name.Length;
@strTemp.PadRight(15 - length, ' ');
}
}