<!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>
<script>
var oldtitle="";
var oldindex=-1;
function editArticle(btnedit){
if(oldindex!=-1){
var tbl=document.getElementById("article_list");
tbl.rows[oldindex].cells[1].innerHTML=oldtitle;
tbl.rows[oldindex].cells[2].innerHTML="<input type='button' value='编辑' onclick='editArticle(this);' class='btnoper'>";
}
var cell=btnedit.parentNode;
var row=cell.parentNode;
oldindex=row.rowIndex;
cell.innerHTML="<input type='button' value='确定' onclick='saveArticle(this);' class='btnoper'> <input type='button' value='取消' onclick='cancalEdit(this);' class='btnoper'>";
oldtitle=row.cells[1].innerHTML;
row.cells[1].innerHTML="<input type='text' value='"+oldtitle+"' class='txtedit' maxlength='28'>";
}
function saveArticle(btnsave){
var row=btnsave.parentNode.parentNode;
var title=row.cells[1].chileNodes[0].value;
row.cells[1].innerHTML=title;
row.cells[2].innerHTML="<input type='button' value='编辑' onclick='editArticle(this);' class='btnoper'>";
oldindex=-1;
createwindow('成功','信息以保存<br/>'+title);
}
var xwininterval=null;
function createxwindow(title,contnt){
var xwin=document.createElement("div");
var bgwin=document.createElement("div");
bgwin.id="bgwin";
bgwin.style.position="absolute";
bgwin.style.height=document.body.scrollHeight+"px";
bgwin.style.width=document.body.scrollWidth+"px";
bgwin.style.top="0px";
bgwin.style.left="0px";
bgwin.style.backgroundColor="#f7f7f7";
xwin.style.filter="alpha(opacity=50)";
xwin.style.position="absolute";
xwin.style.height="200px";
xwin.style.width="300px";
xwin.id="xwin";
xwin.style.top=(document.documentElement.scrollTop+(document.documentElement.clientHeight-200)/2)+"px";
xwin.style.left=(document.documentElement.scrollTop+(document.documentElement.offsetWidth-300)/2)+"px";
var html="<div style='width:100%;background:repeat_x url(../images/title_bg.jpg) left top;height:32px;color:#fff;line-height:32px;text-align:center;'>"+title+"</div>";
html=html+"<div style='height:88px;background-color:#b1ada9;border:1px solid #333;color:#fff;padding-top:5px;'><div style='width:100% height:60px;'><p>"+content+"</p></div><div style='height:25px;'><a href='javascript:closexwindow();' style='display:block;width:80px;height:20px;
background-color:#666;border:solid 1px #000;color:#fff;text-decoration:none;line-height:20px;margin:0px auto;
text-align:center;'>关闭</a></div></div>";/*????*/
xwin.innerHTML=html;
document.body.appendChild(bgwin);
document.body.appendChild(xwin);
xwininterval=window.setTimeout(closexwindow,1500);
}
function closexwindow(){
var xwin=document.getElementById("xwin");
var bgwin=document.getElementById("bgwin");
document.body.removeChild(xwin); document.body.removeChild(bgwin);
window.clearTimeout(xwininterval);
}
function cancelEdit(btncancel){
var row=btncancel.parentNode.parentNode;
row.cells[1].innerHTML=oldtitle;
row.cells[2].innerHTML="<input type='button' value='编辑' onclick='editArticle(this);' class='btnoper'>";
oldindex=-1;
}
function selectAll(chkall){
var chks=document.getElementsByTagName("input");
for(var i=0;i<chks.length;i++){
if(chks[i].name=="chk_del"&&chks[i].type=="checkbox"){check[i].checked=chall.checked;}
}
}
function deleteArticle(){
var chks=document.getElementsByTagName("input");
var tb1=document.getElementById("article_list");
var count= 0;
for(var i=chks.length-1;i>=0;i++){
if(chks[i].name=="chk_del"&&chks[i].type=="checkbox"){
if(check[i].checked){
tb1.deteleRow(chks[i].parentNode.parentNode.rowIndex);
count++;
}
}
}
var detall=document.getElementById("detall");
if(detall.checked) detall.cheacked=false;
if (count>0)createxwindow('删除成功','记录已删除');
}
</script>
<style>
*{
margin:0 auto;
padding:0px;
}
#menu{
width:740px;
height:60px;
margin:0 auto;
/*padding-left:10px;*/
background:url(images/img02.jpg);
}
#menu ul{
list-style:none;}
#menu ul li{
float:left;
}
#menu a{
display:block;
background:url(images/img07.gif) no-repeat left 80%;
padding:20px 20px 0 15px;
text-decoration:none;
font-size:136%;
color:#ffffff;
}
#menu a:hover{
text-decoration:underline;
}
#logo{
width:740px;
height:301px;
margin:0 auto;
background:#2a2A2A url(images/img03.jpg);
}
#logo h1,#logo h2{
margin-right:440px;
text-align:center;
font-weight:normal;
}
#logo h1{
padding-top:250px;
font-size:250%;
}
#logo h2{
font-size:12px;
}
#logo a{
text-decoration:none;
color:#ffffff;
}
#page{
width:740px;
height:500px;
margin:0 auto;
background:#e6e6e6 url(images/img04.gif);
}
#sidebar{
width:297px;
height:500px;/*暂定*/
float:left;background:url(images/img05.gif) repeat-x;
border:1px solid #e6e6e6;
}
#sidebar ul{
margin-left:0;
padding-left:0;
list-style:none;}
#sidebar ul li{
padding-left:15px;
background:url(images/img07.gif) no-repeat 0px 13px;
}
.boxed .title{
height:29px;
margin:0;
padding:12px 0 0 20px;
background:#656464 url(images/img06.gif) repeat-x;
font-size:122%;
font-weight:bold;
color:#ffffff;
}
.boxed ul li{
padding:10px 15px ;
background-position:0 13px;
border-top:1px solid #cfcfcf;}
.boxed ul li.first{
border:none;
}
#content{
width:377px;
padding:30px;
background:url(images/img05.gif) repeat-x;
border:1px solid #e6e6e6;
height:500px;/*暂定*/
float:right;
}
.twocols .col1,.twocols .col2{ width:168px;
padding:10px;
background:url(images/img05.gif) repeat-x 0px 30px;}
.twocols .col1{
float:left;}
.twocols .col2{
float:right;}
#content ul{
list-style:none;}
#content ul li{
padding-left:15px;
background:url(images/img07.gif) no-repeat 0px 8px;
line-height:20px;}
#picnews img.left{
border:none;
float:left;
margin:5px 15px 0 0;}
#picnews blockquote{
padding-left:20px;
font-style:italic;
font-size:13px;}
.boxed .content{
padding:20px;
background:url(images/img05.gif) repeat-x;}
#search fieldset{
border:none;
}
#searchinput{
width:180px;}
#footer{
width:740px;
height:100px;
padding:20px 0 0 0;
margin:0 auto;
background-color:#333;
}
body{
margin:20px 0 0 0;
background:#E6E6E6 url(images/img01.gif);
font-size:12px;
color:#666;
}
a{
color:#549400;
}
a:hover{
text-decoration:none;
}
#footer a{
color:#666666;}
#legal{
float:left;}
#links{
float:right;}
#article_list .delete{
width:20px;
}
#article_list .title{
width:257px;
}
#article_list .oper{
width:80px;
text-align:center;
}
#article_list td{
border-bottom:solid 1px #999;
height:26px;
}
#article_list th{
border-bottom:solid 1px #999;
border-top:solid 1px #999;
}
#article_list #ulist li{
float:left;
background:none;
width:25px;
line-height:20px;
padding:1px;
text-align:center;
}
#article_list #ulist li a{
display:block;
background-color:#999;
color:#000;
border:solid 1px #000;
}
#article_list #ulist li a:hover{
background-color:#569400;
color:#fff;
}
#clear{
clear:both;
}
</style>
</head>
<body>
<div id="menu" >
<ul>
<li><a href="index.html">首页</a></li>
<li><a href="产品.html">产品</a></li>
<li><a href="支持.html">支持</a></li>
<li><a href="关于.html">关于</a></li>
<li><a href="联系.html">联系</a></li>
</ul>
</div>
<div id="logo" >
<h1><a href="关于.html">睿博科技</a></h1><!--应可连接到博姆-->