<ad:set name="classid" value="$word(request("id"),"id")$" />
<ad:if test="$isnotempty(request("showid"))$">
	<ad:foreach collection="$dataview("c_teacher","id=$request("showid","")$","inputdate desc")$" var="it" index="i">
	<ad:set name="title" value="$it["name"]$" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td class="photointro">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" width="120"><img src="$sitepath$$it["pic"]$" width="120" height="90" /></td>
				<td valign="top"><strong>姓名</strong>：$it["name"]$<br /><strong>职称</strong>：$it["title"]$<br /></td>
			</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td>$it["content"]$</td>
	</tr>
	</table>
	</ad:foreach>
<ad:else />
	<div>
		<ul class="photo">
			<ad:foreach collection="$dataview("c_teacher","classid=$classid$","ordernum desc,inputdate desc,id desc")$" var="it" index="i">
			<ad:set name="url" value="default.aspx?classid=$request("classid")$&id=$request("id")$&showid=$it["id"]$" />
			<li><a href="$url(url)$" title="$it["name"]$ $htmlencode(it["title"])$"><img src="$sitepath$$it["pic"]$" width="120" height="90" /></a><a href="$url(url)$" title="$it["name"]$ $htmlencode(it["title"])$">$it["name"]$&nbsp;&nbsp;$it["title"]$</a></li>
			</ad:foreach>
		</ul>
	</div>
</ad:if>