<!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>DedeCms 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" />
<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>
</head>
<body leftmargin="8" topmargin='8' bgcolor="#FFFFFF">
<div style="min-width:780px">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
     <div style='float:left'>
       歡迎使用專業的PHP網站管理系統，輕鬆建站的首選利器 -- <?php echo $cfg_softname; ?>
     </div>
     <div id='' style='float:right;padding-right:8px;'>
         <!--  //保留位置（頂右）  -->
     </div>
   </td>
  </tr>
  <tr>
    <td height="1" background="images/sp_bg.gif" style='padding:0px'></td>
  </tr>
</table>

<div id='mainmsg'>
    <div class="column" id="column1"><!--左側開始-->    
        <dl class="dbox" id="item1">
            <dt class='lside'><span class='l'><?php echo $cfg_soft_enname; ?> 更新消息</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'>進行在線更新</a> &nbsp; \r\n";
                            echo " <a href='sys_repair.php' class='np coolbg'>系統錯誤修復</a></div>\r\n";
                            echo "<iframe name='stafrm' src='{$offUrl}&uptime={$oktime}' frameborder='0' id='stafrm' width='98%' height='50'></iframe>";
                        ?>
                    </div>
                 </div>
            </dd>
        </dl><!--更新消息結束-->        
        <dl class='dbox' id="item2">
            <dt class='lside'><span class='l'>商業授權查詢</span></dt>
            <dd>               
                <iframe name="showauth" src="index_body.php?dopost=showauth" width="100%" frameborder="0" scrolling="no" marginwidth="10" marginheight="10" id="showauth"></iframe>                
            </dd>
        </dl><!--更新消息結束-->
        <dl class='dbox' id="item3">
            <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='quickmenu'>
                    <?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='icoitem' style='background:url($ico) 10px 3px no-repeat;'><a href='{$link}'>{$title}</a></div>\r\n";
                            }
                        }
                    ?>
                </div>
            </dd>

        </dl><!--快捷操作結束-->   
        <dl class="dbox" id="item4">
            <dt class='lside'><div class='l'>系統基本信息</div></dt>
            <dd class='intable'>
                <table width="98%" class="dboxtable">
                    <tr>
                        <td width="25%" class='nline' style="text-align:right">您的級別：</td>
                        <td class='nline'>
                            <?php
                                if($cuserLogin->getUserType()==10) {
                                    echo "總管理員";
                            } else if($cuserLogin->getUserType()==5) {
                                echo "頻道總編";
                            } else {
                                echo "信息採集員或其它管理員";
                            }
                        ?>
                        [<a href="javascript:showMore()">查看更多</a>]</td>
                    </tr>
                    <tr>
                     <td colspan="2" class='nline' id="allInfoTD" style="display:none"><table width="100%" border="0" cellspacing="0" cellpadding="0" id="allInfo" style="display:none">
                    <tr>
                        <td rowspan="5" class='nline' style="text-align:right">PHP環境摘要：</td>
                        <td class='nline' style="text-align:left"> PHP版本：<?php echo @phpversion(); ?>&nbsp;GD版本：<?php echo @gdversion(); ?></td>
                    </tr>
                    <tr>
                        <td class='nline' style="text-align:left">是否安全模式：<font color='red'><?php echo ($isSafeMode ? 'On' : 'Off')?></font>
                            <?php
                                if($isSafeMode) {
                                    echo "<br>　　<font color='blue'>由於您的系統以安全模式運行，為了確保程序兼容性，第一次進入本系統時請更改「<a href='sys_info.php'><u>更改系統參數</u></a>」裡的FTP選項，並選擇用FTP形式創建目錄，完成後：<a href='testenv.php' style='color:red'><u>點擊此進行一次DedeCms目錄權限檢測&gt;&gt;</u></a></font>";
                                } else {
                                    echo "　<a href='testenv.php' style='color:blue'><u>DedeCMS目錄權限檢測&gt;&gt;</u></a></font>";
                                }
                            ?>
                        </td>
                    </tr>
                    <tr>
                        <td class='nline' style="text-align:left">
                            Register_Globals：<font color='red'><?php echo ini_get("register_globals") ? 'On' : 'Off'?></font> &nbsp;
                            Magic_Quotes_Gpc：<font color='red'><?php echo ini_get("magic_quotes_gpc") ? 'On' : 'Off'?></font>
                        </td>
                    </tr>
                    <tr>
                        <td class='nline' style="text-align:left">支持上傳的最大文件：<?php echo ini_get("post_max_size")?></td>
                    </tr>
                    <tr>
                        <td class='nline' style="text-align:left">是否允許打開遠程連接：<?php echo ini_get("allow_url_fopen") ? '支持' : '不支持'; ?></td>
                    </tr>
                    <tr>
                        <td class='nline' style="text-align:right"> 其它必須函數檢測：</td>
                        <td class='nline' style="text-align:left">
                            <?php
                                $needfunc = array('dir','phpinfo');
                                $n = 0;
                                foreach($needfunc as $k) {
                                    if(!function_exists($k)) {
                                        echo "<font color='red'>[{$k}×]</font> ";
                                        $n++;
                                    }
                                }
                                if($n==0) {
                                    echo "符合要求";
                                } else {
                                echo "被禁用的函數可能導致部份功能無法使用！";
                                }
                            ?>
                        </td>
                    </tr>
                    <tr>
                        <td class='nline' style="text-align:right"> 軟件版本信息： </td>
                        <td class='nline' style="text-align:left"> 版本名稱：<?php echo $cfg_soft_enname; ?>&nbsp;版本號：<?php echo $cfg_version; ?></td>
                    </tr>
                     </table></td>
                    </tr>
                </table>
            </dd>
        </dl><!--系統基本信息結束-->
        <dl class='dbox' id="item5">
            <dt class='lside'><div class='l'>開發團隊</div></dt>
            <dd class='intable'>
                <table width="98%" class="dboxtable">
                    <tr>
                        <td width='25%' height='36' class='nline' style="text-align:right"> 主程序開發： </td>
                        <td class='nline' style="text-align:left">天涯、IT柏拉圖、沙羨、藍色隨想、Niap、木匠、cha369</td>
                    </tr>
                    <tr>
                        <td height='36' class='nline' style="text-align:right">界面及交互設計：</td>
                        <td class='nline' style="text-align:left">尐泉細蓅、like、豬頭心宇、方域、小王</td>
                    </tr>
                    <tr>
                        <td height='36' class='nline' style="text-align:right">官方論壇協助：</td>
                        <td class='nline' style="text-align:left">感謝以下站長（排名不分先後）:瘋狂的錘子、木木/阿傑</td>
                    </tr>

                </table>
            </dd>
        </dl><!--開發團隊結束-->
    </div><!--左側結束-->
    <div class="column" id="column2" ><!-- //右邊的快捷消息開始 -->
        <dl class='dbox' id="item8">
            <dt class='lside'><div class='l'>贊助商鏈接(<a href="http://ad.dedecms.com/ad/" target="_blank">說明</a>)</div></dt>
            <dd>
                <iframe name="showad" src="index_body.php?dopost=showad" frameborder="0" width="100%" id="showad" frameborder="0" scrolling="no"  marginheight="5"></iframe>
            </dd>
        </dl><!--贊助商鏈接結束-->
        <dl class='dbox' id="item6">
            <dt class='lside'><div class='l'>信息統計</div></dt>
            <dd id='listCount'>
                正在載入中...
            </dd>
        </dl><!--信息統計結束-->
        <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 class='nline'  style="text-align:left">
                <?php echo $linkstr; ?>
            </td>
        </tr>
        <?php
        }
    } else {
    ?>
        <tr>
            <td class='nline'  style="text-align:left">
                暫無新增內容
            </td>
        </tr>
    <?php
    }
    ?>
    </table>
            </dd>
        </dl><!--最新文檔結束-->
    </div>
</div>
<br style='clear:both'/>
<!-- //底部 -->
<div align="center" class="footer">
Copyright &copy; 2004-2011 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>. 織夢科技 版權所有
</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>
</body>
</html>