<?php
	include_once("check_login.php");
	//查看企业简介
	include_once("include/config.php");
	if(!$hm_arr = get_config("com_intro"))
		show_error("读取企业简介出错");
?>
<!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=utf-8" />
<title>网站设置</title>
<style type="text/css"></style>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="ckfinder/ckfinder.js"></script>
</head>

<body>
<div class="head_menu"><a href="set_site_admin.php">密码修改</a><a href="set_site_info.php">网站配置</a><span class="head_menu_on"><a href="set_site_intro.php">企业简介</a></span><a href="set_site_contact.php">联系方式</a><a href="set_site_seo.php">网站SEO优化</a><a href="set_site_foot.php">网站页脚</a></div>
<div class="set_main_out">
	<form id="form1" name="form1" method="post" action="set_site_do.php?action=intro">
	<div class="set_main">
		<ul>
        	<li style="width:790px; text-align:center; font-weight:bold;">企业简介</li>
            <li style="width:790px; text-align:center;">网站前台企业简介处图片，请<a onclick="location.href='set_img_upload.php'" class="do_style">点击这里上传</a>，上传完自动更改</li>
      <li style="width:790px; height:auto; padding:5px; text-indent:0px;">
            	<textarea cols="80" id="com_intro" name="com_intro" rows="10" style="margin:0px auto;"><?php echo $hm_arr[0][2]; ?></textarea>
            <script type="text/javascript">
            if (typeof CKEDITOR == 'undefined') {
            	document.write('加载CKEditor失败');
            	}
            	else {
            	var editor = CKEDITOR.replace('com_intro');
            	CKFinder.SetupCKEditor(editor, 'ckfinder'); //ckfinder总目录的相对路径.
            	}
                CKEDITOR.config.height = 350;
            </script>

          </li>
            <li style="width:790px; text-indent:0px; text-align:center;">
              <input type="submit" name="button" id="button" value="  提 交  " />
            </li>
    	</ul>
	</div>
   </form>
</div>
</body>
</html>