Location: PHPKode > projects > Uchome and Discuz > admin/tpl/eventclass.htm
<!--{template admin/tpl/header}-->
<style type="text/css">
	.poster{
	max-width: 240px; max-height: 180px;}
</style>

<div class="mainarea">
<div class="maininner">

	<div class="tabs_header">
		<ul class="tabs">
			<li$actives[view]><a href="admincp.php?ac=eventclass"><span>ä¯ÀÀÈ«²¿·ÖÀà</span></a></li>
			<li class="null"><a href="admincp.php?ac=eventclass&op=add">Ìí¼Óл·ÖÀà</a></li>
		</ul>
	</div>
		
	<form method="post" action="admincp.php?ac=eventclass" enctype="multipart/form-data">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />

	<div class="bdrcontent">

<!--{if "add" == $_GET['op'] || "edit" == $_GET['op']}-->

		<table cellspacing="0" cellpadding="0" class="formtable">
			<tr>
				<th style="width:15em;">·ÖÀàÃû³Æ</th>
				<td><input type="text" name="classname" value="$thevalue[classname]"></td>
			</tr>
			<tr>
				<th>ĬÈϺ£±¨</th>
				<td>
					»î¶¯·¢ÆðÕß·¢Æð´ËÀàÐ͵ĻʱÈç¹ûûÓÐÉÏ´«º£±¨ÔòĬÈÏʹÓô˺£±¨ <br />
					<img id="posterview" class="poster" src="$thevalue[poster]?v=$_SGLOBAL[timestamp]" alt="ĬÈϺ£±¨" onerror="this.src='image/event/default.jpg'" />
					<a href="#" onclick="$('posterview').src='image/event/default.jpg'; $('delposter').value='1'; return false;">ɾ³ý</a>
					<br />
					<input type="hidden" id="delposter" name="delposter" value="0" />
					<input type="file" name="poster" value="">
				</td>
			</tr>
			<tr>
				<th>ĬÈÏÄ£°å</th>
				<td>
					½¨Òé»î¶¯·¢ÆðÕß·¢Æð´ËÀàÐ͵Ļʱ°´´ËÄÚÈÝÄ£°åÌîд»î¶¯½éÉÜ <br />
					<textarea name="template" rows="8" cols="80">$thevalue[template]</textarea>
				</td>
			</tr>
			<tr>
				<th>ÏÔʾ˳Ðò</th>
				<td>
					<input type="text" name="displayorder" value="$thevalue[displayorder]" />
				</td>
			</tr>
		</table>
	</div>

	<div class="footactions">
		<input type="hidden" name="classid" value="$thevalue[classid]" />
		<input type="submit" name="eventclasssubmit" value="Ìá½»" class="submit">
	</div>

	</form>

<!--{elseif "delete" == $_GET['op']}-->

		<div class="topactions">
			¸Ã»î¶¯·ÖÀàɾ³ýºó£¬ÇëÑ¡Ôñ¸Ã»î¶¯·ÖÀàÏÂÃæÒÑÓеĻ»á¹éÀൽÄǸöл·ÖÀà¡£
		</div>
		<table cellspacing="0" cellpadding="0" class="formtable">
			<tr>
				<th width="150">»î¶¯·ÖÀàϵÄйéÀà</th>
				<td>
				<select name="newclassid">
				<!--{loop $list $key $value}-->
					<!--{if $value}-->
					<option value="$value[classid]">$value[classname]</option>
					<!--{/if}-->
				<!--{/loop}-->
				</select>
				</td>
			</tr>
		</table>
	</div>

	<div class="footactions">
		<input type="hidden" name="classid" value="$thevalue[classid]" />
		<input type="submit" name="deletesubmit" value="È·ÈÏ" class="submit">
	</div>

	</form>

<!--{else}-->

		<table cellspacing="0" cellpadding="0" class="formtable">
			<tr>
				<th>Ãû³Æ</th>
				<th>ÉèÖú£±¨</th>
				<th>ÉèÖÃÄ£°å</th>
				<th>ÏÔʾ˳Ðò</th>
				<th width="80">²Ù×÷</th>
			</tr>
			<!--{loop $list $key=>$value}-->
			<tr>
				<th>$value[classname]</th>
				<td><!--{if $value[poster]=='image/event/default.jpg'}-->·ñ<!--{else}-->ÊÇ<!--{/if}--></td>
				<td><!--{if empty($value[template])}-->·ñ<!--{else}-->ÊÇ<!--{/if}--></td>
				<td><input type="text" name="displayorder[$key]" value="$value[displayorder]" size="5"></td>
				<td width="80">
				<a href="admincp.php?ac=eventclass&op=edit&classid=$key">±à¼­</a> |
				<a onclick="return confirm('È·ÈÏɾ³ý£¿');" href="admincp.php?ac=eventclass&op=delete&classid=$key">ɾ³ý</a></td>
			</tr>
			<!--{/loop}-->
		</table>
	</div>

	<div class="footactions">
		<input type="submit" name="ordersubmit" value="¸üÐÂÅÅÐò" class="submit">
	</div>

	</form>

<!--{/if}-->

</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->
Return current item: Uchome and Discuz