<? if (!defined('ROOT')) exit('Can\'t Access !'); include template('admin_header','admin'); ?>
  <div id="right">
    <div class="right">
      <div style="width:auto;overflow-x:hidden;overflow-y:auto">
      <? if($_GET['get']=='system') { ?>
        <div class="homecon">
          <div id="homecon_left">
            <div class="homecon_lefttit">系统信息</div>
            <div class="homecon_leftcon">
              服务器软件：<?=$_SERVER['SERVER_SOFTWARE']?><br />
              操作系统：<? echo defined('PHP_OS') ? PHP_OS : '未知'; ?><br />
              PHP版本：<? echo @phpversion(); ?><br />
              MYSQL版本：<? echo @mysql_get_server_info(); ?><br />
              全局变量：<?=$this->globals?> <span style="color:red; font-weight:bold">(强烈建议关闭)</span><br />
              上传文件：<?=$this->uploads?> <br />
              当前时间：<? echo date("Y-m-d H:i:s"); ?> <br />
              使用域名：<?=$_SERVER['HTTP_HOST']?> <br />
            </div>
          </div>
          <div id="homecon_right">
            <div class="homecon_lefttit">信息统计</div>
            <div class="homecon_leftcon">
              会员个数：<?=config::get('sitename')?>版权所属<br />
              今日免费注册会员：polang.net.cn<br />
              今日排队：5个<br />
              当前应支付款项：2项<br />
              全局变量：polang.net.cn <br />
              上传文件：bjlgww <br />
              当前时间：bjlgww <br />
              授权域名：polang.net.cn<br />
            </div>
          </div>
          <div class="clear" style="height:5px;">&nbsp;</div>
          <div id="homecon_left">
            <div class="homecon_lefttit">官方信息</div>
            <div class="homecon_leftcon">
              官方主页：http://www.polang.net.cn<br />
              产品主页：http://fanxian.polang.net.cn<br />
              演示网址：http://fenhong.6.demo.polang.net.cn/<br />
            </div>
          </div>
          <div id="homecon_right">
            <div class="homecon_lefttit">开发团队</div>
            <div class="homecon_leftcon">
              版权所有：<?=config::get('sitename')?>版权所属<br />
              程序与开发：山东破浪网络科技有限公司<br />
              美工与架构：青岛网众文化传媒有限公司<br />
            </div>
          </div>
          
          
          <div class="clear"></div>
        </div>
        <? } ?>


      <? if($_GET['get']=='link') { ?>

        <div class="tags">
        
          <div id="tagstitle"> <a class="hover" href="javascript:;"><?=$getName?></a> </div>
          
          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th align="center">编号</th>

                        <th align="center">友情链接名称</th>

                        <th align="center">友情链接网址</th>

                        <th align="center">排序</th>

                        <th align="center" width="150">操作</th>

                      </tr>

                    </thead>

                    <tbody id="type">         

            <? if(is_array($this->typelist)) { foreach($this->typelist as $value) { ?>                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">

                        <td align="center"><?=$value['id']?><input type="hidden" name="id[]" value="<?=$value['id']?>"></td>

                        <td align="left" style="padding-left:10px;">

                          <?=config::form('linkname[]',$value['linkname'],'input','','class=\'skey\' style=\'width:130px;\'');?>

                        </td>

                        <td align="left" style="padding-left:10px;">

                          <?=config::form('linkurl[]',$value['linkurl'],'input','','class=\'skey\' style=\'width:250px;\'');?>

                        </td>
                        
                        <td align="left" style="padding-left:10px;">

                          <?=config::form('linkorder[]',$value['linkorder'],'input','','class=\'skey\' style=\'width:50px;\'');?>

                        </td>

                        <td align="center"><a onclick="return remind();" href="<?=$value['delurl']?>">删除</a></td>

                      </tr>



            <? } } ?>                    </tbody>      



                  </table>

                <div class="blank20"></div>

                 <?=config::form('button','确认修改','submit','','class=\'button\'');?> 

                 <input type="button" name="button" id="typebutton" value="添加一个友情链接" onclick="addlink();" class="button" />

              </form>

              </div>

            </div>

          </div>

        </div>

        <div class="blank20"></div>

      <? } ?>
        
        <? if($_GET['get']=='template') { ?>  
      <form method="post" action="" name="config_form">
        <div class="tags" style="margin-bottom:20px;">
          <div id="tagstitle"> <a class="hover" href="javascript:;"><?=$getName?></a> </div>
          <div id="tagscontent">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table">
              <tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                <td width="100%">                               
                  <div id="template">
       <? if(is_array($this->files)) { foreach($this->files as $v) { ?>          <? $checked=""; ?>          <? if(config::get('template_dir')==$v['path']) { ?>
            <? $checked="checked"; ?>          <? } ?>
                    <div class="template_box">
                      <div class="t_box">
                        <div class="img-wrap"><img src="<?=$v['pic']?>" /></div>
                      </div>
                      <?=$v['path']?>
                      <input name="template_dir" type="radio" value="<?=$v['path']?>" <?=$checked?>/>
                      选择</div>
       <? } } ?>                                
                 </div>
                </td>              
              </tr>              
            </table>
          </div>
          <div style="margin-left:10%; margin-top:10px;">
            <?=config::form('submit','提交','submit');?>
          </div>
        </div>
      </form>
        <? } ?>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<? include template('admin_footer','admin'); ?>
