<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/



 if(!defined('IN_SITETEAM')) {exit('Access Denied');}?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SiteTeam Administrator's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" href="admin/images/admincp.css" type="text/css" media="all" />
<link rel="stylesheet" href="admin/images/form.css" type="text/css" media="all" />
<script src="admin/js/common.js" type="text/javascript"></script>
<script type="text/javascript" src="skin/jq/jquery.js"></script>
<script type="text/javascript" src="tool/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="tool/ckfinder/ckfinder.js"></script>
</head>

<body>
<script type="text/JavaScript">if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='开始&nbsp;&raquo;&nbsp;首页设置';</script>


<div class="container" id="cpcontainer">
  <form name="form1" method="post" action="admin.php?action=first" enctype="multipart/form-data">
	<?php if ($sys_product_close != 4) {?>
		<h3>首页幻灯片设置</h3>
		<ul id="postform"><?=dynamic_form($slide)?></ul>
	<?php }?>
	
	<h3>内容区域设置</h3>
	<ul id="postform"><?=dynamic_form($content)?></ul>
	
  <ul id="postform">
  <li><input name="dosubmit" style="width:50px" class="btn" type="submit" id="dosubmit" value="提交"></li>
  </ul>
  </form>
</div>

<script type="text/javascript">
//<![CDATA[

CKFinder.setupCKEditor( null, { basePath : '<?=SITE_PATH?>/tool/ckfinder/'});





<?php if($sys_product_close == 4){?>


var editor1 = null;

var editor1_status = 0;

function close_editor1() {
	if (editor1_status != 1) {
		return false;
	}
	
	editor1.destroy();
	editor1_status = 0;
}

function create_editor1(div){
	
	if (editor1_status != 0) {
		return false;
	}
	
	editor1 = CKEDITOR.replace( div,
	{
		height:'400px',
		width:'780px',
		
		toolbar:
		[
			['Source','-','NewPage','Preview','-','Templates'],
			['Cut','Copy','Paste','PasteText','PasteFromWord'],
			['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
			['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
			'/',
			['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
			['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
			['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
			['Link','Unlink','Anchor'],
			['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
			'/',
			['Styles','Format','Font','FontSize'],
			['TextColor','BGColor']
		]
	});
	
	editor1_status = 1;
}

<?php if(isset($auto_start_editor) && $auto_start_editor != 4){?>
create_editor1('site_notice');
<?php }?>

<?php }?>



<?php if($display_main_style != 4){?>



var editor2 = null;

var editor2_status = 0;

function close_editor2() {
	if (editor2_status != 1) {
		return false;
	}
	
	editor2.destroy();
	editor2_status = 0;
}


function create_editor2(div){
	
	if (editor2_status != 0) {
		return false;
	}
	
	editor2 = CKEDITOR.replace( div,
	{
		height:'400px',
		width:'780px',
		
		toolbar:
		[
			['Source','-','NewPage','Preview','-','Templates'],
			['Cut','Copy','Paste','PasteText','PasteFromWord'],
			['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
			['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
			'/',
			['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
			['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
			['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
			['Link','Unlink','Anchor'],
			['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
			'/',
			['Styles','Format','Font','FontSize'],
			['TextColor','BGColor']
		]
	});
	
	editor2_status = 1;
}

<?php if(isset($auto_start_editor) && $auto_start_editor != 4){?>
create_editor2('content');
<?php }?>


<?php }?>


//]]>
</script>



</body>
</html>
