function delete() { $id = $this->uri->segment(4); $metro = new metro($id); if (!$metro->exists()) { show_404(); } $metro->delete(); redirect($this->admin . 'metros/list_all/'); }
<span class="input-group-btn"> <button class="btn btn-info btn<? if(!$detect->isMobile()) print "-lg";?>" type="button" onclick="reloadMap();"> <i class="glyphicon glyphicon-search"></i> </button> </span> </div> </div> </div> </div> <select id="metro" name="metro" class="form-control" style="width:200px;margin-top:10px;" title="Станция метро" onchange="reloadMap();"> <option>Станция метро</option> <?php echo metro::getSelect($_GET['metro']); ?> </select> <div class="checkbox" style="display:none"> <input type="checkbox" onChange="reloadMap();" name="ch" id="ch" style="margin-left:10px;" class="checkbox-inline"> <label for="ch" style="font-size:12px; padding-left:30px; line-height: 25px;">Аптеки с доставкой</label> </div> <!-- <select name="act" id="act" onChange="reloadMap();" style="margin-right: 10px; width: 150px"> <option selected="selected" value="buy">Хочу купить</option>