@using System.Data
@using ZoomLa.Common
@using ZoomLa.BLL.Page
@using ZoomLa.Model
@using ZoomLaCMS.Models.Common
@model ZoomLaCMS.Models.Common.VM_Recursion
@functions{
private int Mid { get { return DataConverter.CLng(Context.Request.GetParam("ID")); } }
B_PageTemplate tll = new B_PageTemplate();
public string geticon(DataRow dr)
{
return Model.alldt.Select("ParentID=" + dr["TemplateID"]).Length > 0 ? "zi zi_folderOpen" : "zi zi_fileNew";
}
public string gettempname(DataRow dr)
{
int TemplateType = Convert.ToInt32(dr["TemplateType"]);
string TemplateName = DataConverter.CStr(dr["TemplateName"]);
string str = "";
if (Convert.ToInt32(dr["UserID"]) > 0)
{
str = "" + TemplateName + "";
}
else
{
str = TemplateName;
}
return str;
}
public string gettemptype(string type)
{
return "栏目型栏目";
}
}
@{
}
@foreach (DataRow dr in Model.dt.Rows)
{
//Model.iconHtml = "
";
bool hasChild = Model.alldt.Select("ParentID=" + dr["TemplateID"]).Length > 0;