Wtf.courseDesc=function(A){Wtf.courseDesc.superclass.constructor.call(this,A)};Wtf.extend(Wtf.courseDesc,Wtf.Panel,{progTpl:new Wtf.XTemplate('<tpl for="."><div style = "font-size:11px;color:white;width:33%;height:100%;overflow:hidden;float:left;"><tpl for="program"><table style ="padding:0px 8px;font-size:11px;width:100%;"><br><tr><td align = "left" style ="font-style : bold;font-size:13px"><b> {programname} </b></td></tr><tr><td align = "left" style ="font-style : bold;padding-left:20px; background : transparent url(images/bullet2.gif) no-repeat scroll 0pt;"><b>Course Name : </b>{coursename} </td></tr><tr style ="border-bottom:1px solid white;"><th align = "center" style="padding-left:30px;">{about} </th></tr><tr><td align = "left" style ="font-style : bold;padding-left:20px; background : transparent url(images/bullet2.gif) no-repeat scroll 0pt;"><b>Base Plan : </b>{base} </td></tr><tr style ="border-bottom:1px solid white;"><th align = "center" style="padding-left:20px; background : transparent url(images/bullet2.gif) no-repeat scroll 0pt;"><b>Discount Plan: </b></th></tr><tpl for="discount"><tr><td align = "left" style ="font-style : bold;padding-left:20px; " ><div style ="padding-left:20px;">  {disc} </div></td></tr></tpl><tr><td align = "left" style ="font-style : bold;padding-left:20px; background : transparent url(images/bullet2.gif) no-repeat scroll 0pt;"><b>CPD Hrs : </b> {chrs} </td></tr><tr><td align = "left" style ="font-style : bold;padding-left:20px; background : transparent url(images/bullet2.gif) no-repeat scroll 0pt;"><b>Grading Structure : </b> {gradstruct} </td></tr></table></tpl></div><div style = "font-size:11px;color:white;width:33%;height:100%;overflow:hidden;float:left;"><tpl for="program"><table style ="padding:0px 8px;font-size:11px;width:100%;"><br><tr style ="border-bottom:1px solid white;"><th align = "center" style="padding-left:20px; background : transparent url(images/bullet2.gif) no-repeat scroll 0pt;"><b>Other Details :</b></th></tr><tr><td align = "left" style ="font-style : bold;padding-left:20px; " ><div style ="padding-left:20px;">   {attributes}  </div></td></tr></table></tpl></div><div style = "font-size:11px;color:white;width:33%;height:100%;overflow:hidden;float:right;"><tpl for="program"><table style ="padding:0px 8px;font-size:11px;width:100%;"><br><tr style ="border-bottom:1px solid white;"><th align = "center" style="padding-left:20px; background : transparent url(images/bullet2.gif) no-repeat scroll 0pt;"><b>Faculty List :</b></th></tr><tpl for="faculty"><tr><td align = "left" style ="font-style : bold;padding-left:20px; " ><div style ="padding-left:20px;"> {faclist} </div></td></tr></tpl></table></tpl></div></tpl>'),onRender:function(config){Wtf.courseDesc.superclass.onRender.call(this,config);var innerPanel=new Wtf.Panel({border:false,layout:"fit",id:this.id+"_innerPanel",cls:"userprofile-main",bodyStyle:"background:transparent;",items:[{border:false,layout:"border",bodyStyle:"background:transparent;",items:[{autoScroll:true,region:"center",layout:"column",bodyStyle:"padding:8px 8px 8px 8px",border:false,items:[{border:false,layout:"column",columnWidth:1,id:"mainMod2_"+this.id,bodyStyle:"background:transparent;padding:8px;",items:[this.myModule1=new Wtf.common.KWLListPanel({xtype:"KWLListPanel",title:"Course Details",paging:false,autoLoad:false,width:"100%",id:"module1_"+this.id,bodyStyle:"background:transparent;"})]}]}]}]});this.add(innerPanel);Wtf.Ajax.request({url:"jspfiles/profilePage.jsp",method:"POST",scope:this,params:{userid:loginid,courseid:this.moduleid,flag:2},success:function(response,options){var responseObj=eval("("+response.responseText+")");this.progTpl.overwrite(Wtf.getCmp("module1_"+this.id).el.dom.firstChild.nextSibling.firstChild,responseObj);innerPanel.doLayout()},failure:function(request,response){}})}})