<!-- // $foo= new Bidule(); // if($foo->getTruc()){ // echo 'le truc est vrai'; // } else { // echo "le truc est faux"; // } --> <ul> <?php $counters = new Counter(); foreach ($counters->all() as $c) { ?> <li><a href="?id=<?php echo $c->id; ?> &p=show"><?php echo $c->name; ?> </a></li> <?php } ?> </ul> <?php include 'foot.part.php';
<div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">x</span><span class="sr-only">Close</span></button> <h3 class="modal-title" id="lineModalLabel">Добавление пользователя</h3> </div> <div class="modal-body"> <!-- content goes here --> <div class="form-group"> <label for="login_modal">Название</label> <input name="login" type="text" class="form-control" id="login_modal" autocomplete="off" > </div> <div class="form-group"> <label for="login_modal">Концентраторы</label> <select multiple="multiple" id="select" autocomplete="off"> <?php $koncentrator = Counter::all(array('select' => 'DISTINCT concetrator')); $i = 0; foreach ($koncentrator as $value) { $check = KoncentrTovarishestvo::find_by_name_konc($value->concetrator); $checked = ""; if (!is_null($check)) { $checked = 'selected'; } echo '<option value="' . $value->concetrator . '" data-id="' . $value->concetrator . '">' . $value->concetrator . '</option>'; $i++; } ?> </select> </div> <input id="idTovar" type="hidden" name="idTovar" value="0"> </div>