本文整理汇总了PHP中Fachada::listarBairro方法的典型用法代码示例。如果您正苦于以下问题:PHP Fachada::listarBairro方法的具体用法?PHP Fachada::listarBairro怎么用?PHP Fachada::listarBairro使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fachada
的用法示例。
在下文中一共展示了Fachada::listarBairro方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="col-sm-10">
<input type="text" name="nome_entidade_religiosa" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label"> Endereço </label>
<div class="col-sm-10">
<input type="text" name="endereco_entidade_religiosa" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label"> Bairro </label>
<div class="col-sm-10">
<select class="form-control" name="bairro_entidade_religiosa">
<?php
$lista = $fachada->listarBairro()->fetchAll(PDO::FETCH_OBJ);
foreach ($lista as $linha) {
?>
<option value="<?php
echo $linha->id_bairro;
?>
"><?php
echo $linha->nome_bairro;
?>
</option>
<?php
}
?>
</select>
</div>
</div>
示例2: Fachada
<?php
include_once "../../../fachada/Fachada.php";
$fachada = new Fachada();
$fachada->verificarLogin();
$lista = $fachada->listarSindicato($_GET['bairro'], $_GET['genero'])->fetchAll(PDO::FETCH_OBJ);
$bairros = $fachada->listarBairro()->fetchAll();
if (!empty($_POST['pdf'])) {
$fachada->pdfListarSindicato($lista);
} else {
if (!empty($_POST['pdf_cidadao'])) {
$fachada->pdfListarSindicato($_POST['pdf_cidadao']);
}
}
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Dashboard">
<meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
<title>SPS - Secretária de Participação Social</title>
<!-- Bootstrap core CSS -->
<link href="../../../assets/css/bootstrap.css" rel="stylesheet">
<!--external css-->
<link href="../../../assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../../../assets/css/zabuto_calendar.css">