<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SystemTeacherControl.ascx.cs" Inherits="Kesion.NET.WebSite.Course.SystemCourse.SystemTeacherControl" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Kesion.Course" %>

 <% if (tcid != 0)
  { %>

<div class="courseImg">
 <img src="<%=dr2["photo"].ToString() %>" onerror="this.src='../../admin/images/imagespic_200_200.png'"/>

</div><div class="courseInfo">
    <div class="title"><a href="<%=Kesion.HtmlTags.BasicField.GetRewriteUrl("teacherview", Utils.StrToInt(dr2["TcID"].ToString())) %>" title="前台页" target="_blank"><%=dr2["tname"].ToString() %></a><span><%= Convert.ToString(dr2["Tlevel"]) == string.Empty ? "" : Utils.CutStr(Convert.ToString(dr2["Tlevel"]), 255) %></span>
    </div><div class="starImg"><img src="../../SysImg/star/star<%=dr2["Grade"].ToString() %>.png" /></div>
    <div class="info"><span>发布者：<em title="<%= Utils.StrToInt(dr2["system"]) == 0 ? "系统" : Utils.StrToInt(dr2["system"]) == 1 ? "企业" : "教师" %>"><%=dr2["username"].ToString() %></em></span><span>时间：<%=Convert.ToDateTime(dr2["adddate"].ToString()).ToString("yyyy-MM-dd") %></span>
  <span>分类：<%=MyCache.GetCosClass(Utils.StrToInt(dr2["classid"]), "ClassName", 0) %></span><span>性别：<%= Convert.ToString(dr2["sex"]) == "1" ? "男" : "女" %></span> </div> <div class="clear"></div> </div>
<%} %>