<?xml version="1.0"?>
<labeltemplate>
   <classroom_assessmentexamlist>
    <![CDATA[
	  <li class="clearfix">
          <a title="{KS:Field:PackName}">
              <div class="fr R-infoBOX">
                  <span class="time">{KS:Field:AddTime}</span>
                  <span class="price">{KS:Field:Price}</span>
              </div>
              <p class="title">{KS:Field:PackInfoName}</p>
          </a>
      </li>
  ]]>
  </classroom_assessmentexamlist>
 <classroom_assessmentcourselist>
    <![CDATA[
	  <li class="clearfix">
          <a title="{KS:Field:PackName}">
              <div class="fr R-infoBOX">
                  <span class="time">{KS:Field:AddTime}</span>
                  <span class="price">{KS:Field:Price}</span>
              </div>
              <p class="title">{KS:Field:PackInfoName}</p>
          </a>
      </li>
  ]]>
  </classroom_assessmentcourselist>
<classroomview_noticelist>
    <![CDATA[
      <li onclick="getnotice('{KS:Field:ID}','{KS:Field:Title}')">
    {KS:Field:Title}
    
    </li>
        ]]>
  </classroomview_noticelist>
  <classroomview_homeworklist>
    <![CDATA[
      <li onclick="dohomeword('{KS:Field:WorkID}','{KS:Field:Title}')">
    {KS:Field:Title}
    
    </li>
        ]]>
  </classroomview_homeworklist>
  <classroomview_talklist2>
    <![CDATA[
	<li>
		<div class="lct">
			<img src="{KS:Face}" onerror='this.src="/SysImg/face/boy.jpg"' />
		</div>
		<div class="rct">
			<div class="rname">{KS:Username}<span>{KS:Time}</span></div>
			   <div class="rinfo">
				{KS:Title}
			</div>
			<div class="replylist reply{KS:Count}" id="apost{KS:Id}" {KS:STYLE}>
				{&KS:replylist}                                         
			</div>
			<div class="rbtn" onClick="rtalklist({KS:Id})">回复 <font class="rcount{KS:Id}">{KS:Count}</font> </div>
			<div class="clear"></div>
			<div class="rtalklist" id="rtalklist{KS:Id}" {KS:STYLE}>
				<div class="textareabox">
				<textarea id="content{KS:Id}" name="" cols="" rows="" onfocus="this.value=(this.value=='我来说几句...')?'':this.value" onblur="this.value=(this.value=='')?'我来说几句...':this.value" value="我来说几句..."  >我来说几句...</textarea>
			</div>
		    <div class="hfbox">
				<input class="hfbtn" name="" type="button" value="发表回复"  onclick="subaskclasstopic({KS:Id},{KS:RoomID})" />
				<span><font class="rcount{KS:Id}">{KS:Count}</font> 条回复</span></div>
				<div class="clear"></div>                                                
			</div>
		</div>
	</li>
	
]]>
  </classroomview_talklist2>

  <classroomview_talklist1>
    <![CDATA[ 
		<div class="replybox">
          <span><font>{KS:Num}</font>{KS:Username}<em>{KS:Time}</em></span>
          <div class="talkinfo">{KS:Content}</div>
       </div>

]]>
  </classroomview_talklist1>
  <classroomview_sjlist>
    <![CDATA[
		<li>
		  <i class="dot_big2"></i>
		  <a href="{KS:Field:sjurl}" {#isshow} class="time2_btn my_appointment">去做题</a>
		  <div class="time2_xx">
			<p>{KS:Field:Title}</p>
		  </div>
		</li>
]]>
  </classroomview_sjlist>


  <classroom_pjlabel>
    <![CDATA[
     <script>

    jQuery(document).ready(function(){
        initialComment();
    });
			 
    function initialComment(){
			 
        jQuery.getScript('{$GetSiteUrl}plus/course/CosComment.ashx?action=getclasscommentinfo&RoomID={KS:Field:RoomID}',function(){
            var goodNum=parseInt(comment.goodNum);
            var averageNum=parseInt(comment.averageNum);
            var badNum=parseInt(comment.badNum);
            var totalNum=goodNum+averageNum+badNum;
            $(".totalReview").html(totalNum);
            var goodPercent=goodNum/totalNum*100;
            var averagePercent=averageNum/totalNum*100;
            var badPercent=badNum/totalNum*100;
            if (isNaN(goodPercent)) goodPercent=0;
            if (isNaN(averagePercent)) averagePercent=0;
            if (isNaN(badPercent)) badPercent=0;
            $("#goodPercent").html(goodPercent.toFixed(2)+"%");
            $("#percent1").html(goodPercent.toFixed(2));
            $("#percent2").html(averagePercent.toFixed(2));
            $("#percent3").html(badPercent.toFixed(2));
            $("#bar1").attr("style","width:"+goodPercent+"%").attr("title",goodPercent+"%");
            $("#bar2").attr("style","width:"+averagePercent+"%").attr("title",averagePercent+"%");
            $("#bar3").attr("style","width:"+badPercent+"%").attr("title",badPercent+"%");
            $("#commentnum0").html(totalNum);
            $("#commentnum1").html(goodNum);
            $("#commentnum2").html(averageNum);
            $("#commentnum3").html(badNum);
            loadCmtContent(1,-1);	
          
        });
			 
    }
    var box='';
    function showComment(){

        jQuery.get('{$GetSiteUrl}plus/course/CosComment.ashx',
                  { action:"doclasscomment", RoomID:'{KS:Field:RoomID}'},
                    function (data) {
                        if(data=="error")
                        {
                            KesionJS.Alert("对不起，您没有加入该班级，不能评价");
                        }
                       
                        else if(data=="yiping")
                        {
                            KesionJS.Alert("对不起，您已评价过");
                        }
                        else if(data=="isnull")
                        {
                         KesionJS.Alert('请先登录!',"showlogin()");
                        }
                        else if(data=="weiping")
                        {
                           
                            var url="{$GetSiteUrl}user/course/MyComClaRoom.aspx?istop=1&action=comment&RoomID={KS:Field:RoomID}";
                            box=$.dialog.open(url,{ id:'topbox',lock: true,fixed:true, title: "班级评价", width:800, height:500, close: function() {  initialComment();
                            }
                            });
                        }

                    });

       
    }
    function loadCmt(obj,cmtType){
        $(".cmtlist").find("li").attr("class","cmtlistnormal");
        obj.className='cmtlistcurr';
        loadCmtContent(1,cmtType);
    }	

    function loadCmtContent(page,cmtType) {
  
        var url="{$GetSiteUrl}plus/course/CosComment.ashx?action=getclassroomcmtlist&flagtype=0&page=" + page+"&cmtType="+cmtType+"&courseid={KS:Field:RoomID}&orderType=20";
     
        $.ajax({
            url: url,
            context: document.body,
            type: "GET",
            success: function (data) {
              //alert(data);
               $("#con_comment1").html(data); 
                    		
            }
        });
    }
    function showlogin(){
	   $.dialog.open("{$GetSiteUrl}Plus/UserLogin.aspx",{id:"loginbox",lock:true,fixed:true,title:"<div style='text-align:left'><img src='{$GetSiteUrl}sysimg/default/user.png' align='absmiddle'>用户登录</div>",width:380,height:500,max:false,min:false});
   }
</script>

  <table width="100%" class="commentlist" cellspacing="0" cellpadding="0">
		    <tr>
			 <td style="width:300px;text-align:center">
			   <span class="percent" id="goodPercent" style="font-weight:normal;color:#e0a537;font-size:40px; line-height:60px;">0%</span>
			   <br/>
			   <span class="gray">好评率</span>
			 </td>
			 <td>
			   <div class="barbox">
			    <div class="barleft">好评(<span id="percent1">0</span>%)</div>
			    <div class="barright"><div class="red" id="bar1"></div></div>
			   </div>
			   <div style="clear:both;height:4px; overflow:hidden"></div>
			   <div class="barbox">
			    <div class="barleft">中评(<span id="percent2">0</span>%)</div>
			    <div class="barright"><div class="red" id="bar2"></div></div>
			   </div>
			    <div style="clear:both;height:4px; overflow:hidden"></div>
			   <div class="barbox">
			    <div class="barleft">差评(<span id="percent3">0</span>%)</div>
			    <div class="barright"><div class="red" id="bar3"></div></div>
			   </div>
			  
			 </td>
			 <td style="text-align:center;display:none{KS:STYLE}">
			   <div class="gray">您可对已购课程进行评价</div>
               <br/>		
			
			 <input type="button" value="发表评价" onclick="showComment()" class="cmtBtn" />
			
			 </td>
			</tr>
		   </table>

     
     	]]>
  </classroom_pjlabel>
  <classroom_pjloopitem>
    <![CDATA[
     
                            
                            
                            
                            
        <div class="cmttop"> 
					   <div class="cmtlist">
						 <ul class="clearfix">
						  <span class="active" onclick="loadCmt(this,-1)">全部评价(<em id="commentnum0">0</em>)</span>
						  <span class="cmtlistnormal" onclick="loadCmt(this,0)">好评(<em id="commentnum1">0</em>)</span>
						  <span class="cmtlistnormal"  onclick="loadCmt(this,1)">中评(<em id="commentnum2">0</em>)</span>
						  <span class="cmtlistnormal" onclick="loadCmt(this,2)">差评(<em id="commentnum3">0</em>)</span>
						 </ul>
   
						</div>
		       </div>                    
              
              <div class="commentList_box" >
              <div class="commentList" id="con_comment1" style="display:block;">
              </div>
              
             </div>
                            
    ]]>
  </classroom_pjloopitem>
  
 
   <classroom_pjlist>
    <![CDATA[
   <li>
<div class="lct"><img src="/UploadFiles/avatar/{$Field(UserID,text,0,...,2,)}.jpg" /></div>
                            <div class="rct">
                                <div class="name"><span>{$Field(AddDate,date,YY-MM-DD,3,red)}</span><b>{$Field(username,text,0,...,2,)}</b></div>
                                <div class="star"><div class="star_w" style="width:{$Field(Cosnumber,text,0,...,2,)}em;"></div><div class="star_img"></div><span></span></div>
                                <div class="info">{$Field(CosContent,text,0,...,2,)}</div>
                            </div>
  </li>
]]>
  </classroom_pjlist>
  
  <classroom_pjlist2>
    <![CDATA[
    <div class="comment-item clearfix">
								<div class="avatar">
									<img src="{$UserFace}" onerror='this.src="/images/noboy.jpg"'>
								</div>
								<div class="comment-con">
									<div class="user-txt"><em>{$UserName}</em> {$AddDate}</div>
									<div class="comment-txt">
									 <img src="/SysImg/default/star/mood{$Cosnumber}.png" title="{$Cosnumber}颗星">
									</div>
									
									<div class="comment-txt">
									{$Content}
									</div>
									<div class="comment-course-info">
									 <em class="good_pj">{$CmtRank}</em>
									</div>
								</div>
							</div>
]]>
  </classroom_pjlist2>






  <classroom_courselist>
    <![CDATA[
    
                    <li>
						<a href="{KS:Url}" title="{KS:Field:name}">
							<div class="N-imgBox" style="height: 102.588px;"><div class="hotIcon"></div><img src="{KS:Field:PhotoUrl}" alt="{KS:Field:name}" onerror="replaceDefaultImg(this)"></div>
							<div class="N-courseB">
								 <h4>{KS:Field:name}</h4>
								 <div class="N-cmoney clearfix">
									 <span class="fr N-read">{KS:Field:lookcount}</span>
									 <span class="N-moneyfont">{KS:jifen}{KS:Price_Member}</span>
								 </div>
							</div>
						</a>
					</li>
]]>
  </classroom_courselist>
<clasroomview_facecourselist>
    <![CDATA[
   <li>
    <a href="{KS:Url}" title="{$Field(name,text,0,...,2,)}">
      <div class="N-imgBox" style="height: 102.588px;">
        <div class="hotIcon"></div>
        <img src="{$Field(photourl,text,0,...,2,/sysimg/nopic.gif)}" onerror="this.src='/SysImg/user/10/nopic_200_120.png'">
      </div>
      <div class="N-courseB">
        <h4>{$Field(name,text,0,...,2,)}</h4>
        <div class="N-cmoney clearfix">
          <span class="fr N-read">{$Field(lookcount,text,0,...,2,)}</span>
          <span class="N-moneyfont">{KS:Price_Member}</span>
        </div>
      </div>
    </a>
  </li>
 
    ]]>
  </clasroomview_facecourselist>
  <classroom_tclist>
    <![CDATA[
       <li>
		   <a href="{KS:Url}" title="{KS:Field:Tname}" class="clearfix">
			   <div class="c-timgBox"><img src="{KS:Field:PhotoUrl}" onerror="replaceDefaultImg(this)" type="teacher"></div>
			   <div class="c-tname">
				   <span class="c-arrow"><span class="c-iarrow"></span></span>
				   <p>{KS:Field:Tname}
					   <span class="ScXyd">
						   <!--<img src="{$GetTemplateDir}/phone_ui/icon_star2.png">-->
						   <span class="ScXydinner"></span>
					   </span>	
					   <div class="tcicon-star">{KS:Field:Grade}</div>						   
				   </p>
				   <p class="c-mb">{KS:Intro}</p>
			   </div>
		   </a>
		</li>
		<script>
		$(".c-tname .ScXyd").each(function(){
			 var num2 = ($(this).width()/5)*$(".tcicon-star").text();  
			 $(this).children(".ScXydinner").css("width",num2);
		  })
		</script>
]]>
  </classroom_tclist>
  <clasroomview_courselist>
    <![CDATA[
   <li>
    <a href="{KS:Url}" title="{$Field(name,text,0,...,2,)}">
      <div class="N-imgBox" style="height: 102.588px;">
        <div class="hotIcon"></div>
        <img src="{$Field(photourl,text,0,...,2,/sysimg/nopic.gif)}" onerror="this.src='/SysImg/user/10/nopic_200_120.png'">
      </div>
      <div class="N-courseB">
        <h4>{$Field(name,text,0,...,2,)}</h4>
        <div class="N-cmoney clearfix">
          <span class="fr N-read">{$Field(lookcount,text,0,...,2,)}</span>
          <span class="N-moneyfont">{KS:Price_Member}</span>
        </div>
      </div>
    </a>
  </li>
 
    ]]>
  </clasroomview_courselist>

  <classroom_studentlist>
    <![CDATA[                        
          <li>
					   <a href="#" title="{KS:Field:UserName}">
						   <em class="stuTop"></em>
						   <div class="N-stuBox"><img src="/UploadFiles/avatar/{KS:Field:UserID}.jpg" onerror="this.src='/SysImg/user/10/userface.jpg'"></div>
						   <div class="N-tname">
							   <p>{$Field(AddDate,date,YY-MM-DD,0,red)}</p>
							   <p class="N-mb">{KS:Field:UserName}</p>
						   </div>
						   <em class="stuBottom"></em>
					   </a>
					</li>
]]>
  </classroom_studentlist>

  <classroom_teacherlist>
    <![CDATA[
            <li>1111
			   <a href="{KS:Url}" title="{KS:Field:Tname}" class="clearfix">
				   <div class="c-timgBox"><img src="{KS:Field:PhotoUrl}" onerror="this.src='/SysImg/user/10/userface.jpg'"></div>
				   <div class="c-tname">
					   <span class="c-arrow"><span class="c-iarrow"></span></span>
					   <p>{KS:Field:Tname}
						   
						   <span class="ScXyd">
							   <span class="ScXydinner"></span>
							   <!--<img src="{$GetTemplateDir}/phone_ui/icon_star2.png">-->
						   </span>
						   <div class="tcicon-star">{KS:Field:Grade}</div>
											   
					   </p>
					   <p class="c-mb">{KS:Intro}</p>
				   </div>
			   </a>
			</li>
			<script>
			$(".c-tname .ScXyd").each(function(){
				 var num2 = ($(this).width()/5)*$(".tcicon-star").text();  
				 $(this).children(".ScXydinner").css("width",num2);
			  })
			</script>
]]>
  </classroom_teacherlist>


  <classroom_grouplist>
    <![CDATA[
                       
                        <li>
							<a href="{=GetRewriteUrl(clubforum,{KS:Field:BoardID})}">
							   <div class="GroupBox"><img src="{KS:Field:ICO}"onerror="replaceDefaultImg(this)"></div>
							   <div class="GroupName">
								   <span class="GroupTitle">{KS:Field:Boardname}</span>
								   <span class="GroupLabel">{KS:Field:studentnum}人加入&nbsp;|&nbsp;{KS:Field:topicnum}个帖子</span>
								   <span class="intoBtn">进入查看</span>
							   </div>
							</a>
						</li>
						
]]>
  </classroom_grouplist>


  <classroomview_homeworklist>
    <![CDATA[
    
                  <li><span class="class-time">[{KS:Field:AddDate}]</span><a onclick="dohomeword('{KS:Field:WorkID}','{KS:Field:Title}')" title="">{KS:Field:Title}</a></li>
        ]]>
  </classroomview_homeworklist>

  <classroomview_notice>
    <![CDATA[
    
             <li><span class="class-time">[{$Field(AddDate,date,YY-MM-DD,0,red)}]</span><a onclick="getnotice({$Field(ID,url,0,4,)})" title="{$Field(Title,text,10,...,2,)}">{$Field(Title,text,10,...,2,)}</a></li>
        ]]>
  </classroomview_notice>
  <classroomview_talklist>
    <![CDATA[
   
    
    
	<li>
		<div class="usertop">
			<div class="uinfo">
				<span><i class="iconfont">&#xe60f;</i>{KS:Time}</span>
				<div class="uname"><img src="{KS:Face}" onerror='this.src="{$GetTemplateDir}/phone_ui/userface.jpg"' /><em>{KS:Username}</em></div>
			</div>
			<div class="utkct">
		{KS:Title}
			</div>
		</div>
		<div class="userreply">
			<div class="replylist" id="apost{KS:Id}" {KS:STYLE}>
				{&KS:replylist}          
			</div>
			<div class="replybox" id="rtalklist{KS:Id}" {KS:STYLE}>
				<div class="hfbtn" onclick="subaskclasstopic({KS:Id},{KS:RoomID})">发表<br />回复</div>
				<div class="textareabox"><textarea id="content{KS:Id}" name="" class="textarea" placeholder="我来说几句..."></textarea></div>
			</div>
			
		</div>
		<div class="talknum" onClick="rtalklist({KS:Id})"><i class="iconfont">&#xe61a;</i>回复&nbsp;{KS:Count}</div><div class="clear"></div>
		
	</li>
	<div class="line_d"></div>
									
    ]]>
  </classroomview_talklist>

</labeltemplate>