<?php
	$duoshuoPlugin = Duoshuo_Dedecms::getInstance();
	$params = array(
			'template'		=>	'dedecms',
			//'remote_auth'	=>	Duoshuo_Abstract::remoteAuth(),
	);
	if(!isset($adminPath)){
		$adminPath = 'admin/';
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>多说评论管理</title>
<script language="javascript" src="../plus/duoshuo/js/jquery-1.7.2.min.js"></script>
<link href="<?php echo CSSPATH;?>/base.css" rel="stylesheet" type="text/css" />
</head>
<body background="<?php echo IMAGEPATH;?>/allbg.gif" leftmargin="8" topmargin="8">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
	<tr>
		<td height="28" background="<?php echo IMAGEPATH;?>/tbg.gif" colspan="8" style="padding-left:10px;">
		<div style="float:left">
			<b>多说管理后台</b>
			[<a style="font-size:13px" target="_blank" href="<?php echo 'http://' . $duoshuoPlugin->getOption('short_name') . '.' . Duoshuo_Abstract::DOMAIN.'/'.$adminPath;?>"><u>在新窗口中打开</u></a>]
			[<a style="font-size:13px" target="_blank" href="<?php echo 'http://' . Duoshuo_Abstract::DOMAIN.'/settings/';?>"><u>个人资料设置</u></a>]
		</div>
		</td>
	</tr>
</table>
<iframe id="duoshuo-remote-window" src="<?php echo 'http://' . $duoshuoPlugin->getOption('short_name') . '.' . Duoshuo_Abstract::DOMAIN .'/'.$adminPath.'?'.http_build_query($params);?>" style="width:100%;border: 0 none;">
</iframe>

<script>
jQuery(function(){
var $ = jQuery,
	iframe = $('#duoshuo-remote-window'),
	resetIframeHeight = function(){
		iframe.height($(window).height() - iframe.offset().top - 70);
	};
resetIframeHeight();
$(window).resize(resetIframeHeight);
});
</script>
</body>
</html>