Location: PHPKode > projects > Uchome and Discuz > admin/tpl/feed.htm
<!--{template admin/tpl/header}-->

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

<!--{if $allowmanage}-->
<div class="tabs_header">
	<ul class="tabs">
		<li$actives[all]><a href="admincp.php?ac=feed"><span>ä¯ÀÀÈ«²¿¶¯Ì¬</span></a></li>
		<li$actives[site]><a href="admincp.php?ac=feed&uid=0"><span>ä¯ÀÀÈ«¾Ö¶¯Ì¬</span></a></li>
		<li class="null"><a href="admincp.php?ac=feed&op=add">·¢²¼È«¾Ö¶¯Ì¬</a></li>
	</ul>
</div>
<!--{/if}-->
	
<!--{if $_GET['op']!='add'}-->
	
	<form method="get" action="admincp.php">
	<div class="block style4">
		<table cellspacing="3" cellpadding="3">

		<!--{if $allowmanage}-->
		<tr><th>×÷ÕßUID</th><td><input type="text" name="uid" value="$_GET[uid]"></td>
			<th>×÷ÕßÃû</th><td><input type="text" name="username" value="$_GET[username]"></td>
		</tr>
		<!--{/if}-->
		<tr><th>¶¯Ì¬(feedid)</th><td><input type="text" name="feedid" value="$_GET[feedid]"></td>
			<th>¶¯Ì¬ÀàÐÍ(icon)</th><td><input type="text" name="icon" value="$_GET[icon]"></td>
		</tr>
		<tr><th>·¢²¼Ê±¼ä</th><td colspan="3">
			<input type="text" name="dateline1" value="$_GET[dateline1]" size="10"> ~
			<input type="text" name="dateline2" value="$_GET[dateline2]" size="10"> (YYYY-MM-DD)
		</td></tr>
		
		<tr><th>Èȶȷ¶Î§</th><td colspan="3">
			<input type="text" name="hot1" value="$_GET[hot1]" size="10"> ~
			<input type="text" name="hot2" value="$_GET[hot2]" size="10">
		</td></tr>

		<tr><th>½á¹ûÅÅÐò</th>
		<td colspan="3">
		<select name="orderby">
		<option value="">ĬÈÏÅÅÐò</option>
		<option value="dateline"$orderby[dateline]>·¢²¼Ê±¼ä</option>
		<option value="hot"$orderby[hot]>ÈȶÈ</option>
		</select>
		<select name="ordersc">
		<option value="desc"$ordersc[desc]>µÝ¼õ</option>
		<option value="asc"$ordersc[asc]>µÝÔö</option>
		</select>
		<select name="perpage">
		<option value="20"$perpages[20]>ÿҳÏÔʾ20¸ö</option>
		<option value="50"$perpages[50]>ÿҳÏÔʾ50¸ö</option>
		<option value="100"$perpages[100]>ÿҳÏÔʾ100¸ö</option>
		<option value="1000"$perpages[1000]>Ò»´Î´¦Àí1000¸ö</option>
		</select>
		<input type="hidden" name="ac" value="feed">
		<input type="submit" name="searchsubmit" value="ËÑË÷" class="submit">
		</td>
		</tr>
		</table>
	</div>
	</form>
<!--{else}-->
	<div class="bdrcontent">
		È«¾Ö¶¯Ì¬£¬¾ÍÊÇ»áÔÚÕ¾ÄÚÈκÎÒ»¸ö³ÉÔ±µÄºÃÓѶ¯Ì¬ÀïÃ涼»á³öÏֵĶ¯Ì¬£¬Ã¿¸ö³ÉÔ±¶¼ÄܵÚһʱ¼ä¿´µ½¡£Õ¾³¤¿ÉÒÔÁé»îʹÓÃÈ«¾Ö¶¯Ì¬À´·¢²¼Ò»Ð©¹«¿ªµÄÐÅÏ¢¡£
	</div>
	<br>
<!--{/if}-->


<!--{if $_GET['op']=='add' || $_GET['op']=='edit'}-->
	<form method="post" action="admincp.php?ac=feed">

	<script language="javascript" src="image/editor/editor_function.js"></script>
	<div class="bdrcontent">
		<table cellspacing="3" cellpadding="3" width="100%">

		<!--{if empty($feed[uid])}-->
		<tr><th width="150">¶¯Ì¬±êÌâ</th><td><input type="text" name="title_template" value="$feed[title_template]" size="100"> <br>Ö§³Öhtml£¬ÀýÈ磺¼Ó´Ö &lt;b>&lt;/b>£¬±äÉ« &lt;font color=red>&lt;/font></td></tr>
		<tr><th>¶¯Ì¬ÄÚÈÝ</th><td>
			<textarea class="userData" name="body_template" id="uchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0px">$feed[body_template]</textarea>
			<iframe src="editor.php?charset=$_SC[charset]&allowhtml=1" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;border: 1px solid #C5C5C5;" height="400"></iframe>
		</td></tr>
		<tr><th>¶¯Ì¬±¸×¢</th><td><input type="text" name="body_general" value="$feed[body_general]" size="60"> (Ö§³Öhtml)</td></tr>
		<!--{else}-->
		<tr><th width="150">¶¯Ì¬±êÌâ</th><td>$feed[title_template]</td></tr>
		<tr><th>¶¯Ì¬ÄÚÈÝ</th><td>$feed[body_template]</td></tr>
		<tr><th>¶¯Ì¬±¸×¢</th><td>$feed[body_general]</td></tr>
		<!--{/if}-->

		<tbody id="image">
		<tr><th>µÚ1ÕÅͼƬµØÖ·</th><td><input type="text" name="image_1" value="$feed[image_1]" size="60"></td></tr>
		<tr><th>µÚ1ÕÅͼƬÁ´½Ó</th><td><input type="text" name="image_1_link" value="$feed[image_1_link]" size="60"></td></tr>
		<tr><th>µÚ2ÕÅͼƬµØÖ·</th><td><input type="text" name="image_2" value="$feed[image_2]" size="60"></td></tr>
		<tr><th>µÚ2ÕÅͼƬÁ´½Ó</th><td><input type="text" name="image_2_link" value="$feed[image_2_link]" size="60"></td></tr>
		<tr><th>µÚ3ÕÅͼƬµØÖ·</th><td><input type="text" name="image_3" value="$feed[image_3]" size="60"></td></tr>
		<tr><th>µÚ3ÕÅͼƬÁ´½Ó</th><td><input type="text" name="image_3_link" value="$feed[image_3_link]" size="60"></td></tr>
		<tr><th>µÚ4ÕÅͼƬµØÖ·</th><td><input type="text" name="image_4" value="$feed[image_4]" size="60"></td></tr>
		<tr><th>µÚ4ÕÅͼƬÁ´½Ó</th><td><input type="text" name="image_4_link" value="$feed[image_4_link]" size="60"></td></tr>
		</tbody>
		
		<tr><th>·¢²¼Ê±¼ä</th><td><input type="text" name="dateline" value="$feed[dateline]" size="30"> (µ±Ç°Ê±¿Ì£º<!--{eval echo sgmdate('Y-m-d H:i');}-->)
			<br>Äú¿ÉÒÔÌîдһ¸ö½«À´µÄÈÕÆÚºÍʱ¼ä£¬ÄÇôÕâÌõ¶¯Ì¬»áÔÚÕâ¸ö½«À´µÄÈÕÆÚµ½À´Ö®Ç°£¬Ò»Ö±ÏÔʾÔÚµÚһλ¡£</td></tr>
			
		<!--{if $feed['id']}-->
		<tr><th>¶¯Ì¬ÈȶÈ</th><td><input type="text" name="hot" value="$feed[hot]" size="10"></td></tr>
		<!--{/if}-->

		<tr><td>&nbsp;</td><td>
		<input type="hidden" name="feedid" value="$feed[feedid]">
		<input type="hidden" name="feeduid" value="$feed[uid]">
		<input type="hidden" name="id" value="$feed[id]">
		<input type="hidden" name="idtype" value="$feed[idtype]">
		<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
		<input type="submit" name="feedsubmit" value="Ìá½»±£´æ" class="submit"<!--{if empty($feed[uid])}--> onclick="edit_save();"<!--{/if}-->>
		<!--{if $feed[feedid]}-->
		&nbsp; <a href="admincp.php?ac=feed&op=delete&feedid=$feed[feedid]" onclick="return confirm('È·¶¨ÒªÉ¾³ýÂð£¿');">ɾ³ý´Ë¶¯Ì¬</a>
		<!--{/if}-->
		</td>
		</tr>
		</table>
	</div>
	</form>
	<br>
<!--{else}-->

	<!--{if $list}-->

	<form method="post" action="admincp.php?ac=feed">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
		<div class="feed">
		<div id="feed_div" class="feed_content">
			<ul>
			<!--{loop $list $value}-->
			<!--{eval $value = mkfeed($value);}-->
			<li id="feed_$value[feedid]_li">
				<div style="width:100%;overflow:hidden;">
					<div style="padding:10px 0 0 0;" class="r_option gray">
						<input type="<!--{if $allowbatch}-->checkbox<!--{else}-->radio<!--{/if}-->" name="ids[]" value="$value[feedid]"> Ñ¡Ôñ
						<!--{if $allowmanage}--> &nbsp;
						<a href="admincp.php?ac=feed&op=edit&feedid=$value[feedid]">±à¼­</a>
						<!--{/if}-->
					</div>
					<a class="type" href="admincp.php?ac=feed&icon=$value[icon]" title="Ö»¿´´ËÀද̬"><img src="$value[icon_image]" /></a>
					$value[title_template] 
					<span class="time"><!--{date('m-d H:i',$value[dateline],1)}--></span>
					<!--{if $value[hot]}--><span style="color:red;">(Èȶȣº$value[hot])</span><!--{/if}-->
					<div class="feedContent">
						<!--{if $value['image_1']}-->
						<a href="$value[image_1_link]"><img src="$value[image_1]" class="summaryimg" /></a>
						<!--{/if}-->
						<!--{if $value['image_2']}-->
						<a href="$value[image_2_link]"><img src="$value[image_2]" class="summaryimg" /></a>
						<!--{/if}-->
						<!--{if $value['image_3']}-->
						<a href="$value[image_3_link]"><img src="$value[image_3]" class="summaryimg" /></a>
						<!--{/if}-->
						<!--{if $value['image_4']}-->
						<a href="$value[image_4_link]"><img src="$value[image_4]" class="summaryimg" /></a>
						<!--{/if}-->
						<!--{if $value['body_template']}-->
						<div class="detail" <!--{if $value['image_3']}-->style="clear: both;"<!--{/if}-->>
							$value[body_template]
						</div>
						<!--{/if}-->
						<!--{if $value['body_general']}-->
						<div class="quote"><span class="q">$value[body_general]</span></div>
						<!--{/if}-->
					</div>
				</div>
			</li>
			<!--{/loop}-->
			</ul>
		</div>
		</div>
	</div>
	<div class="footactions">
		<!--{if $allowbatch}-->
		<input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">È«Ñ¡
		<!--{/if}--> 
		<input type="hidden" name="mpurl" value="$mpurl">
		<input type="submit" name="deletesubmit" value="ÅúÁ¿É¾³ý" onclick="return confirm('±¾²Ù×÷²»¿É»Ö¸´£¬È·ÈÏɾ³ý£¿');" class="submit">

		<div class="pages">$multi</div>
	</div>

	</form>
	<!--{else}-->
	<div class="bdrcontent">
		<p>Ö¸¶¨Ìõ¼þÏ»¹Ã»ÓÐÊý¾Ý</p>
	</div>
	<!--{/if}-->

<!--{/if}-->

</div>
</div>


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

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