www.pudn.com > blog_swan_bzl14n.rar > comments.php, change:2012-09-06,size:2853b


<?php
define('SW_',true);
require_once('_common.php');

//判断用户登录
SWAdmin::checkLogin();

//获取页面使用的文章对象
$objPost=new SWPost();

//如果是根据文章查询
$postid=SWFunc::checkString(SW::request('postid','get'));

//如果是外部的搜索跳转
$search=SWFunc::checkString(SW::request('search','get'));

//网页头属性
SWAdmin::$js=array('pages.comments');
SWAdmin::$title=LANG('Comment');
SWAdmin::$group='comments';

require('_header.php');
?>

<div id="main">

	<div class="center">
		
		<div class="white_box ui-corner-all" style="padding:16px;">
			
			<div class="input_img_div ui-corner-all" style="float:left;">
				<input type="text" id="search" value="<?php __($search?$search:'');?>" style="width:330px;" /> 
				<img src="images/search.gif" />
			</div>
			
			<div class="dropmenu_box" style="float:left;margin-left:10px;">
				<ul class="dropmenu ui-corner-all" id="type">
					<?php if($postid){?>
						<li class="default ui-corner-top"><a href="#" name="postid" class="active" style="color:yellow;" value="<?php __($postid);?>"><?php __(LANG('Post').' ID: '.$postid); ?></a></li>
						<li><a href="#" name="approved" class="active"><?php __(LANG('State_Approved')); ?></a></li>
					<?php }else{?>
						<li class="default ui-corner-top"><a href="#" name="approved" class="active"><?php __(LANG('State_Approved')); ?></a></li>
					<?php }?>
					<li><a href="#" name="unapproved" class="active"><?php __(LANG('State_Unapproved')); ?></a></li>
					<li><a href="#" name="spam"><?php __(LANG('State_Spam')); ?></a></li>
					<li><a href="#" name="pingback"><?php __(LANG('Pingback')); ?></a></li>
					<li class="ui-corner-bottom"><a href="#" name="trackback"><?php __(LANG('Trackback')); ?></a></li>
				</ul>
			</div>
						
			<div style="clear:both"></div>
			
		</div>
		
		<div class="selectlist_nav">
			<div class="cell5"><input type="checkbox" id="selectall" /></div>
			<div class="cell20 selectamount">
				<span id="amount"></span> 
				<?php __(LANG('Selections_selected')); ?>: <span id="select">0</span>
			</div>
			<div class="cell30 selectoptions">
				<a href="javascript:void(0);" id="approvedsel" class="ui-corner-all"><?php __(LANG('Opt_Approved')); ?></a>
				<a href="javascript:void(0);" id="unapprovedsel" class="ui-corner-all"><?php __(LANG('Opt_Unapproved')); ?></a>
				<a href="javascript:void(0);" id="spamsel" class="ui-corner-all"><?php __(LANG('Opt_Spam')); ?></a>
				<a href="javascript:void(0);" id="deletesel" class="del ui-corner-all"><?php __(LANG('Opt_Delete')); ?></a>
			</div>
			<div class="pagenav" style="float:right;"></div>
			<div style="clear:both"></div>
		</div>
	</div>

	<div class="white_box ui-corner-all">
		<ul id="itemlist" class="selectlist"></ul>
	</div>

	<div style="clear:both;"></div>

</div>

<?php
require('_footer.php');

?>