Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (count($fornecedor_tipos)>0) {
- foreach ($fornecedor_tipos as $key => $value) { ?>
- <div class="col-sm-6">
- <?php if ($value->id == 2) { ?>
- <input class="inpchoice" type="radio" name="data[Fornecedor][tipo_id]" id="<?=$value->id?>" value="<?=$value->id?>" checked>
- <?php } else { ?>
- <input class="inpchoice" type="radio" name="data[Fornecedor][tipo_id]" id="<?=$value->id?>" value="<?=$value->id?>">
- <?php } ?>
- <label class="choice" for="<?=$value->id?>" style="width:50%;"><?=$value->nome?></label>
- </div>
- <?php
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement