/**
 * 变量定义
 * FileName: define.js
 * Author: Dron
 * Date: 2008-2-28
 * Contact: ucren.com
 */

var main = Ucren.get("main");
var treeMenuData = { name: "个人文件夹", icon: "images/icos/myfolder.gif", opened: true, submenus: [
		{ name: "草稿", icon: "images/icos/writing.gif" },
		{ name: "发件箱", icon: "images/icos/sending.gif" },
		{ name: "垃圾邮件", icon: "images/icos/rubbish.gif" },
		{ name: "收件箱", url: "/mail/list.asp?classid=0", icon: "images/icos/getting.gif", id: 0 },
		{ name: "已发送邮件", icon: "images/icos/sended.gif" },
		{ name: "已删除邮件", icon: "images/icos/trush.gif" }
	]
};

var gridColumnModel = [
	{ name: "&nbsp;", width: 20, renderer: function (){ return "<div class='ico'>&#160;</div>"; } },
	{ name: "标题", width: 320, dataIndex: "title" },
	{ name: "所在文件夹", width: 80, dataIndex: "cname", renderer: function (n){ return columnMap["a" + n]; } },
	{ name: "发件人", width: 60, dataIndex: "author" },
	{ name: "发表时间", width: 120, dataIndex: "date" },
	{ name: "修改时间", width: 120, dataIndex: "lastModified", renderer: function (text){ return text || ""; } },
	{ name: "评论数", width: 60, dataIndex: "reply" },
	{ name: "&nbsp;", width: 20, renderer: function(){ return ""; } }
];

var listPageSize = 22;

var articleTemplate = Ucren.String(
	"<div class='ac'>",
		"<h1>@{title}</h1>",
		"<h3>@{info}</h3>",
		"<hr>",
	"</div>",
	"<div>",
		"@{content}",
	"</div>"
);