<html>
<head>
<title>项目基本信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="template/default/content/css/style.css">
<script language="javascript" type="text/javascript" src="template/default/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="template/default/content/js/common.js"></script>
</head>
<body class="bodycolor">
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="0" class="small">
  <tr>
    <td class="Big"><img src="template/default/content/images/notify_new.gif" align="absmiddle"><span class="big3"> 分支机构管理</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="?ac=<?=$ac?>&fileurl=<?=$fileurl?>&do=add" style="font-size:16px;">+新增企业</a></td>
  </tr>
</table>
<form name="update" method="post" action="?ac=<?=$ac?>&fileurl=<?=$fileurl?>&do=update">
 <table width="90%" border="0" align="center" bgcolor="#FFFFFF" class="TableBlock">
  	<tr>
  	  <td width="39" nowrap class="TableHeader">NO</td>
  	  <td width="350" class="TableHeader">公司名称</td>
  	  <td width="109" align="center"  class="TableHeader">状态</td>
  	  <td width="144" align="center" class="TableHeader">用户名</td>
	  <td width="166" align="center" class="TableHeader">密码</td>
  	  <td width="126" align="center"  class="TableHeader">企业类型</td>
	  <!--<td width="126"  class="TableHeader">管理人员</td> -->
  	  <td width="200" align="center"  class="TableHeader">操作</td>
    </tr>
	<?php foreach ($result as $row) {?>
  	<tr>
  	  <td class="TableContent">
	  <?php echo $row['id']?></td>
  	  <td class="TableData"><?php echo $row['name'];?>
      </td>
  	  <td align="center" class="TableData">
	  <?php
	  if($row['type2']==1){
		  echo '开启';
	  }else{
		  echo '关闭';
	  }
	  ?>	  </td>
  	  <td align="center" class="TableData"><?php echo $row['username'];?></td>
	  <td align="center" class="TableData"><?=$row['password']?></td>
  	  <td align="center" class="TableData"><?
	  if($row['type1']=='1'){
	  	echo '总部';
	  }else{
	  	echo '分公司';
	  }
	  ?></td>
	 <!-- <td class="TableData"><?=$row['useradmin']?></td> -->
  	  <td align="center" class="TableData">
	  <?
	  echo '<a href="?ac='.$ac.'&fileurl='.$fileurl.'&do=add&id='.$row['id'].'">编辑</a> | ';
	  echo '<a href="?ac='.$ac.'&fileurl='.$fileurl.'&do=table&id='.$row['id'].'">生成数据表</a><br>';
	  echo '<a href="?ac='.$ac.'&fileurl='.$fileurl.'&do=config&id='.$row['id'].'">生成配置文件</a> | ';
	  echo '<a href="?ac='.$ac.'&fileurl='.$fileurl.'&do=uncache&id='.$row['id'].'">更新系统缓存</a>';
	  ?>
	  </td>

    </tr>
	<?php }?>
 </table>
  
</form>

 
</body>
</html>
