﻿/**
 * 官网的
 * 使用混合构造函数/原型方法
 */
 function CliSearchItem(){
	CliBase.call();
	this.Ptitle="";
	this.Purl="";
	this.Psize="";
	this.Pdate="";
	this.Psite="";
	this.Pcontent="";
	this.Plan="";
}
CliSearchItem.prototype = new CliBase();
CliSearchItem.__typeName = 'CliSearchItem';
CliSearchItem.prototype.doFillHTML = function (html){
	var htm = html.replace(/<%=CliSearchItem.Ptitle%>/g,this.Ptitle);
	htm = htm.replace(/<%=CliSearchItem.Purl%>/g,this.Purl);
	htm = htm.replace(/<%=CliSearchItem.Psize%>/g,this.Psize);
	htm = htm.replace(/<%=CliSearchItem.Pdate%>/g,this.Pdate.substr(0,10));
	htm = htm.replace(/<%=CliSearchItem.Psite%>/g,this.Psite);
	htm = htm.replace(/<%=CliSearchItem.Pcontent%>/g,this.Pcontent);
	htm = htm.replace(/<%=CliSearchItem.Plan%>/g,this.Plan);
	return htm;
}
CliSearchItem.prototype.doFillRepeatHTML = function (html){
	var resultStr ="";
	return outHtml = this.getRepeatBeforeStr(html,CliSearchItem.__typeName) + resultStr+ this.getRepeatAfterStr(html,CliSearchItem.__typeName);
}
CliSearchItem.prototype.doFill = function (html){
	var xLevel = CliSearchItem.__typeName;
	return this.getRepeatStr(html,xLevel,this.doFillHTML.bind(this),this.doFillRepeatHTML.bind(this));
}/*  |xGv00|db8eff191ef773a42b53217e7156b121 */
