<!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>圈子管理-&gt;圈子列表</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.rb{ border-right:1px solid #98CAEF }
.tb{ border-top:1px solid #98CAEF }
</style>
<script type="text/javascript">
var flag=false;
function MyImage(Img){
	var image=new Image();
	image.src=Img.src;
	width=80;//預先設置的所期望的寬的值
	height=80;//預先設置的所期望的高的值
	if(image.width>width||image.height>height){//現有圖片只有寬或高超了預設值就進行js控制
		w=image.width/width;
		h=image.height/height;
		if(w>h){//比值比較大==>寬比高大
			//定下寬度為width的寬度
			Img.width=width;
			//以下為計算高度
			Img.height=image.height/w;
		}else{//高比寬大
			//定下寬度為height高度
			Img.height=height;
			//以下為計算高度
			Img.width=image.width/h;
		}
	}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>

<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">圈子管理 <a href="../group" target="_blank">[查看首頁]</a></div>
</div>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;">
  <tr>
    <td height="30" align="center" bgcolor="#ffffff">
      <form action="group_main.php" name="form1" method="get">
	    <table width="600" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="70">&nbsp;關鍵字：</td>
            <td width="83" align="left">
           	  <input name="keyword" type="text" id="keyword" size="12" style="width:100" value="<?php echo $keyword?>">            </td>
            <td width="80">&nbsp;創建人：</td>
            <td width="87"><input name="username" type="text" id="username" size="12" style="width:100" value="<?php echo $username?>" /></td>
            <td width="59" align="center">類目：            </td>
            <td width="161" align="left"><select name="store" id="store">
              <option value="0">所有</option>
              <?php echo $option?>
            </select></td>
            <td width="81" align="center"><input name="imageField" type="submit" class="np coolbg" value="搜索"/></td>
          </tr>
        </table>
	  </form>
    </td>
  </tr>
</table>

<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="margin-top:10px;background:#CFCFCF;">
  <tr>
    <td height="24" colspan="7" bgcolor="#EDF9D5" background="images/tbg.gif">
	<table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="29%">&nbsp;&nbsp;<strong>圈子管理>>圈子列表</strong></td>
          <td width="71%" align="right">&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr bgcolor="#FDFEE9" height="26">
    <td width="10%" align="center">圖標</td>
    <td width="20%" align="center">[ID]名稱/時間</td>
    <td width="5%" align="center">官方?</td>
    <td width="10%" align="center">創建人</td>
    <td width="30%" align="center">說明</td>
    <td width="10%" align="center">管理員</td>
    <td width="15%" align="center">操作</td>
  </tr>
  <!--分頁-->
 {dede:datalist}
<?php
$row = $fields;
$icon = $row['groupimg'];
if(!$icon) $icon = "images/dfpic.gif";
$issystem = $row['issystem'];
if($issystem) $issystem = "<font color='red'>官方</font>";
else $issystem = "普通";
if($row['ishidden'])
{
	$ishidden = "<font color='red'>關閉</font>";
	$opstauts = "開放";
	$opstautsdo = "open";
}
else
{
	$ishidden = "<font color='green'>開放</font>";
	$opstauts = "關閉";
	$opstautsdo = "close";
}
?>
  <tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
    <td><img src="<?php echo $icon?>" align="absmiddle" onload='javascript:MyImage(this);'/></td>
    <td align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="26">[<?php echo $row['groupid']?>] <?php if($row['isindex']) echo "[<font color='red'>薦</font>]";?><u><a href="group_edit.php?id=<?php echo $row['groupid']?>"><?php echo $row['groupname']?></a></u>/<?php echo GetDateMk($row['stime'])?></td>
        </tr>
        <tr>
          <td height="26">狀態：<?php echo $ishidden?>;類目：<?php echo GetGroupstore($row['storeid']);?></td>
        </tr>
      </table></td>
    <td><?php echo $issystem?></td>
    <td><?php echo $row['creater']?></td>
    <td title="title"><?php echo $row['des']?></td>
    <td><?php echo $row['ismaster']?></td>
    <td>
	<table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="left" height="25"><a href="group_main.php?action=<?php echo $opstautsdo?>&id=<?php echo $row['groupid']?>"><?php echo $opstauts?></a> | <a href="group_edit.php?id=<?php echo $row['groupid']?>">編輯</a> | <a href="group_main.php?action=del&id=<?php echo $row['groupid']?>" onClick="return(confirm('刪除後無法恢復,您確定刪除嗎?'))">刪除</a> |<br /><a href="group_guestbook.php?gid=<?php echo $row['groupid']?>">留言</a> | <a href="group_threads.php?gid=<?php echo $row['groupid']?>">列表</a></td>
        </tr>
      </table></td>
  </tr>
{/dede:datalist}
  <!--分頁-->
  <tr>
     <td height="28" colspan="7" bgcolor="#F9FCEF">&nbsp;&nbsp;{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}</td>
  </tr>
</table>

</body>
</html>