### 一级部门

if($k%2==0){ $floattype="left"; }else{ $floattype="right"; }
- ;color: #ffffff; width: 49%; height: 200px; float: <{$floattype}>"> <{$val_departmentLists.dName}>

### 二级部门

if($k2%2==0){ $floattype="left"; }else{ $floattype="right"; } $departmentLists=M("department"); $dPid=$val_departmentLists2["dPid"]; $rs_d1=$departmentLists->where("dId={$dPid}")->find();
- ;color: #ffffff; width: 49%; height: 140px; float: <{$floattype}>">
  <{$rs_d1["dName"]}>
  ↓
  <{$val_departmentLists2.dName}>

### 三级部门

if($k3%2==0){ $floattype="left"; }else{ $floattype="right"; } $departmentLists=M("department"); $dPsid=$val_departmentLists3["dPsid"]; $rs_d2=$departmentLists->where("dId={$dPsid}")->find(); $dPid1=$rs_d2["dPid"]; $rs_d1=$departmentLists->where("dId={$dPid1}")->find();
- ;color: #ffffff; width: 49%; height: 120px; float: <{$floattype}>"> <{$rs_d1.dName}>
  ↓
  <{$rs_d2.dName}>
  ↓
  <{$val_departmentLists3.dName}>