<!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>AiteCms Home</title>
<base target="_self">
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/indexbody.css" />
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script type="text/javascript" src="../include/js/jquery/jquery.js" ></script>
<script language="javascript" src="../include/js/jquery/ui.core.js"></script>
<script language="javascript" src="../include/js/jquery/ui.draggable.js"></script>
<script language="javascript" src="../include/js/jquery/ui.sortable.js"></script>
<script language="javascript" src="js/jquery.json-2.2.min.js"></script>
<script language="javascript" src="js/indexbody.js"></script>
<script language="javascript" src="js/drag.js"></script>
<script type="text/javascript">
function showMore()
{
	$("#allInfo").toggle();
	$("#allInfoTD").toggle();
}

 </script>
 
 
<style type="text/css">
.ul2{}
.ul2 li{ float:left; height:150px; width:150px; margin-right:3px; margin-left:8px;}
.ul2 li a{ display:block; height:150px; width:150px; text-align:center; line-height:150px; font-size:18px; font-family:"微软雅黑"; color:#333333; background:#fff;}



#quickmenu2{}
.icoitem2{float:left; height:110px; width:110px; margin-right:10px; margin-top:8px;}
.icoitem2 a{display:block; height:110px; width:110px; text-align:center; line-height:110px; font-size:16px; font-family:"微软雅黑"; color:#555; background:#fff;box-shadow: 0 0 4px rgba(0,0,0,0.2);}
.icoitem2 a:hover{ background:#6DC410; color:#fff;}
</style>
</head>
<body leftmargin="8" topmargin='8' bgcolor="#FFFFFF">
<div style="padding:10px 0 10px 0px; background:#f1f1f1;">
<dl class='dbox' id="item3" style="margin-left:5px;">
          <dt class='lside'>
            <div class='l'>快捷操作</div>
            <div class='r'><a href='#' onClick="AddNew()"><b>【新增】</b></a><a href='#' onClick="ListAll()"><b>【管理】</b></a></div>
          </dt>
          <dd>
            <div id='quickmenu2'>
              <?php
                        $dtp = new DedeTagparse();
                        $dtp->SetNameSpace('menu','<','>');
                        $dtp->LoadTemplet($myIcoFile);
                        if(is_array($dtp->CTags)){
                            foreach($dtp->CTags as $ctag){
                                $title = $ctag->GetAtt('title');
                                $ico = $ctag->GetAtt('ico');
                                $link = $ctag->GetAtt('link');
                                echo "<div class='icoitem2' style='background:url($ico) 10px 3px no-repeat;'><a href='{$link}'>{$title}</a></div>\r\n";
                            }
                        }
                    ?>
                    
            </div>
          </dd>
        </dl>
<div style="clear:both;"></div>
  <div style="min-width:780px">
    <div id='mainmsg'>
      <div class="column" id="column1">
       
        
        <!--快捷操作结束-->
        
         <!--左侧开始-->
        <dl class="dbox" id="item1">
          <dt class='lside'><span class='l'>更新消息</span></dt>
          <dd>
            <div id='updatetest'>
              <div id='updateinfos'>
                <?php
                            echo "<div class='updatedvt'><b>您系统版本最后更新时间为：{$oktime} </b><br/>";
                            echo " <a href='javascript:LoadUpdateInfos();' class='np coolbg' style='color:#fff;'>进行在线更新</a> &nbsp; \r\n";
                            echo " <a href='sys_repair.php' class='np coolbg' style='color:#fff;'>系统错误修复</a></div>\r\n";
                            echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='100%' height='50'></iframe>";
                        ?>
              </div>
            </div>
          </dd>
        </dl>
       
      </div>
      <!--左侧结束-->
      <div class="column" id="column2" >
        <!--信息统计结束-->
        <dl class='dbox' id="item7">
          <dt class='lside'>
            <div class='l'>最新文档</div>
          </dt>
          <dd id='listNews'>
            <?php
    $query = "SELECT arc.id, arc.arcrank, arc.title, arc.channel, ch.editcon  FROM `#@__archives` arc
            LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel
             WHERE arc.arcrank<>-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
    $arcArr = array();
    $dsql->Execute('m', $query);
    while($row = $dsql->GetArray('m'))
    {
        $arcArr[] = $row;
    }
?>
            <table width="100%" class="dboxtable">
              <?php
    if(count($arcArr) > 1)
    {
        foreach($arcArr as $row)
        {
            if(trim($row['editcon'])=='') {
                $row['editcon'] = 'archives_edit.php';
            }
            $linkstr = "·<a href='{$row['editcon']}?aid={$row['id']}&channelid={$row['channel']}'>{$row['title']}</a>";
            if($row['arcrank']==-1) $linkstr .= "<font color='red'>(未审核)</font>";
        ?>
              <tr>
                <td style="text-align:left; padding:2px 10px;"><?php echo $linkstr; ?> </td>
              </tr>
              <?php
        }
    } else {
    ?>
              <tr>
                <td style="text-align:left"> 暂无新增内容 </td>
              </tr>
              <?php
    }
    ?>
            </table>
          </dd>
          <dd id='listCount'> 正在载入中... </dd>
        </dl>
        <!--最新文档结束-->
        <!--------安全提示-------
         <div id="__testEvn"></div>-->
      </div>
    </div>
    <br style='clear:both'/>
    <!-- //底部 -->
    <div align="center" class="footer" style="color:#555">Copyright&copy;2004-2014  </div>
    
    
    
    <!--  下面是隐藏的项目  -->
    <div id='loaddiv' style='display:none'>
      <p align='center' style='padding-top:200px'><img src='images/loadinglit.gif' /> 请稍后，正在下载更新文件列表...</p>
    </div>
    <div id="editTab"> <span id='editTabBody'>请稍候，正在载入...</span> </div>
    <div id="addTab">
      <form name='addform' action='index_body.php'>
        <input type='hidden' name='dopost' value='addnew' />
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height='28' colspan='3' background="images/tbg.gif"><div style='float:left'><b>增加快捷操作项</b></div>
              <div style='float:right;padding:3px 10px 0 0;'> <a href="javascript:CloseTab('addTab')"><img src="images/close.gif" width="12" height="12" border="0" /></a> </div></td>
          </tr>
          <tr>
            <td style="height:6px;font-size:1px;border-top:1px solid #8DA659" colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td width="20%" height="28" align="right">链接标题：</td>
            <td width="70%"><input name="title" type="text" id="title" class='pubinputs' style="width:255px;"/>
            </td>
          </tr>
          <tr>
            <td height="28" width="20%" align="right">ICO图片：</td>
            <td width="70%"><input name="ico" type="text" id="ico" class='pubinputs' style="width:255px;"/>
            </td>
          </tr>
          <tr>
            <td height="28" width="20%" align="right">链接网址：</td>
            <td width="70%"><input name="link" type="text" id="link" class='pubinputs' style="width:255px;"/>
            </td>
          </tr>
          <tr>
            <td height="45">&nbsp;</td>
            <td><input type="submit" name="Submit" value="保存项目" class="np coolbg" style="width:80px;cursor:pointer" />
            </td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
</body>
</html>
