?> <tr> <td><?php echo $number++; ?> </td> <td><?php echo $casa->code; ?> </td> <td><?php echo $casa->name; ?> </td> <td><?php echo $areaService->getLeafFullName($casa->area->id); ?> </td> <td> <?php if ($_GET['deleted']) { ?> <a id="casa_recover" href='../../application/controllers/casa_recycle_action.php?id=<?php echo $casa->id; ?> &option=recover&deleted=1'> <button type="button" class="btn btn-xs btn-warning">还原</button> </a> <?php } else { ?>
" class="form-control" aria-describedby="sizing-addon3" /> </div> </div> <div id="area_div" class="area"> <input id="area" type="hidden" value="<?php echo $casa->area->id; ?> "/> <h4>地区</h4> <?php include_once $_SERVER['DOCUMENT_ROOT'] . '/casarover/application/services/AreaService.php'; ?> <?php $areaService = new AreaService(); if (isset($casa)) { echo '<span id="area_fullname" style="margin-left:15px;">' . $areaService->getLeafFullName($casa->area->id) . '</span>'; } $areas = $areaService->getAreaHierarchy(); $areas_json = json_encode($areas); echo '<input type="hidden" id="areas_json" value=\'' . $areas_json . '\'/>'; ?> <div class="dropdown col-lg-12 vertical5"> <div id="provinces" style="float: left; margin-right: 5px;"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <span class="area_text">省</span> <span class="caret"></span> </button> <ul id="province_ul" class="dropdown-menu" aria-labelledby="dropdownMenu1"> </ul> </div> <div id="cities" style="float: left; margin-right: 5px;">