init
Showing
1 changed file
with
12 additions
and
1 deletions
| ... | @@ -20,7 +20,15 @@ | ... | @@ -20,7 +20,15 @@ |
| 20 | <label>网点</label> | 20 | <label>网点</label> |
| 21 | <span class="form-control select-box"> | 21 | <span class="form-control select-box"> |
| 22 | <select class="select" size="1"> | 22 | <select class="select" size="1"> |
| 23 | <option>请选择</option> | 23 | <option value="" selected>网点</option> |
| 24 | <?php foreach ($this->session->departments as $k=>$v):?> | ||
| 25 | <option value="<?=$v->id?>"><?=$v->name?></option> | ||
| 26 | <?php if($v->children && !empty($v->children)):?> | ||
| 27 | <?php foreach ($v->children as $kk=>$vv):?> | ||
| 28 | <option value="<?=$vv->id?>"><?=$vv->name?></option> | ||
| 29 | <?php endforeach;?> | ||
| 30 | <?php endif;?> | ||
| 31 | <?php endforeach;?> | ||
| 24 | </select> | 32 | </select> |
| 25 | </span> | 33 | </span> |
| 26 | </div> | 34 | </div> |
| ... | @@ -29,6 +37,9 @@ | ... | @@ -29,6 +37,9 @@ |
| 29 | <span class="form-control select-box"> | 37 | <span class="form-control select-box"> |
| 30 | <select class="select" size="1"> | 38 | <select class="select" size="1"> |
| 31 | <option>请选择</option> | 39 | <option>请选择</option> |
| 40 | <?php foreach ($this->session->products as $k=>$v):?> | ||
| 41 | <option value="<?=$v->id?>"><?=$v->productName?></option> | ||
| 42 | <?php endforeach;?> | ||
| 32 | </select> | 43 | </select> |
| 33 | </span> | 44 | </span> |
| 34 | </div> | 45 | </div> | ... | ... |
-
Please register or sign in to post a comment