kokjan/frontend/views/site/index_old.php

1050 lines
56 KiB
PHP
Executable File

<?php
ini_set("allow_url_fopen", 1);
/* @var $this yii\web\View */
use common\models\CmsEgp;
use common\models\CmsFile;
use common\models\CmsFileCategory;
use common\models\CmsPage;
use common\models\CmsPost;
use common\models\Ebook;
use common\models\EbookCategory;
use xgosoftwarecraft\RssFeed\RssReader;
use yii\data\ActiveDataProvider;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\bootstrap4\ActiveForm;
use yii\helpers\Url;
use yii\widgets\ListView;
use yii\widgets\Pjax;
use yii2fullcalendar\yii2fullcalendar;
$asset = Yii::$app->assetManager->getPublishedUrl('@frontend/themes/mub/assets');
$this->title = 'องค์การบริหารส่วนตำบลบอน';
?>
<!-- face -->
<div class="text-center">
<button type="button" class="floatGroupBuy" data-toggle="modal" data-target="#myModal2">
<img src="http://3.bp.blogspot.com/-TaZRLv66f8g/UoMnTyTbF6I/AAAAAAAAAGY/U4qcf-SP6d0/TheBlogWidgets_facebook_widget.png"
class="my-floatGroupBuy">
</button>
</div>
<!-- Modal -->
<div class="modal right fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">&times;</span></button>
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2FNONPHEK%2F&tabs=timeline&width=280&height=300&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId"
width="280" height="300" style="border:none;overflow:hidden" scrolling="no"
frameborder="0" allowfullscreen="true"
allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>
</div>
</div><!-- modal-content -->
</div><!-- modal-dialog -->
</div><!-- modal -->
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'></script>
<!-- partial -->
<!-- face end -->
<!-- popup -->
<div class="modal fade" id="modal-load" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body">
<?= Html::img(Yii::getAlias('@web') . '/img/nogif3.jpg', ['width' => '100%']) ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">ปิด</button>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$('#modal-load').modal('show');
})
</script>
<!-- popup -->
<div class="section-slide" id="animated-bg"
style="background: url('<?= Yii::getAlias('@web') ?>/img/index_bg1.png'); background-repeat: no-repeat; background-position: center; background-size: cover; margin-top: -120px">
<div class="container-fluid vh-100">
<div class="row h-100">
</div><!--row-->
</div>
</div>
<div><?= Html::img(Yii::getAlias('@web') . '/img/header/header_002.jpng', ['width' => '100%','style' => 'margin-top: -42%']) ?>
<?php $this->registerJs('
var bgImageArray = ["banner.jpg"],
base = "' . Yii::$app->params['frontendUrl'] . '/img/",
secs = 10;
bgImageArray.forEach(function(img){
new Image().src = base + img;
});
function backgroundSequence() {
window.clearTimeout();
var k = 0;
for (i = 0; i < bgImageArray.length; i++) {
setTimeout(function(){
document.getElementById(\'animated-bg\').style.background = " url(" + base + bgImageArray[k] + ") no-repeat center center";
document.getElementById(\'animated-bg\').style.backgroundSize = "cover";
/*$("#animated-bg").animate({
"background-size" : "100%"
},5000);*/
if ((k + 1) === bgImageArray.length) {
setTimeout(function() {
backgroundSequence()
}, (secs * 1000))} else { k++; }
}, (secs * 1000) * i)
}
}
backgroundSequence();
') ?>
</div>
<!--search-->
<section class="section-search">
<div class="container">
<div class="row">
<div class="col-md-4">
<?= Html::img(Yii::getAlias('@web') . '/img/nayok.png', ['class' => 'img-fluid rounded', 'style' => 'position: absolute;
top: -13rem; left: -160px;']) ?>
</div>
<div class="col-md-4">
</div>
<div class="col-md-4">
</div>
</div>
<div class="row my-4">
<div class="col-md-6 align-self-center my-auto">
</div>
<div class="col-md-3 text-center">
<h1 style="font-size: 20px !important; line-height: 5px;">
<small style="font-size: 22px; color: #FFFFFF;">ข่าวสาร อบต.</small><br/>
</h1>
</div>
<div class="col-md-3 text-center">
<h1 style="font-size: 20px !important; line-height: 5px;">
<small style="font-size: 22px; color: #FFFFFF;">ร้องเรียนร้องทุกข์</small><br/>
</h1>
</div>
</div>
<div class="row my-4">
<div class="col-md-6 my-auto"
style="background-color: rgba(255, 255, 255, 0.7); padding: 6px; border-radius: 10px;">
<div class="mx-auto text-center mt-4 mb-4">
<h1 style="font-size: 30px !important; line-height: 30px;">
<small style="font-size: 18px; color: #05627d;">ค้นหาข้อมูลข่าวสารองค์การบริหารส่วนตำบล</small><br/><span
style="color: #0051e4"><?= Yii::$app->params['org_short2'] ?></span>
</h1>
<strong style="font-family: 'Roboto Slab', serif;"><?= Yii::$app->params['org_name_en'] ?>
Office</strong>
<?php $form = ActiveForm::begin(['method' => 'get', 'action' => ['/site/search']]) ?>
<?= $form->field($model, 'q', [
'inputTemplate' => '<div class="input-group">{input}<div class="input-group-append">
' . (Html::submitButton('<i class="fa fa-search"></i>', ['class' => 'btn btn-secondary'])) . '</div></div>',
])->label(false)->textInput(['placeholder' => 'คำค้น เช่น ข้อบัญญัติ']) ?>
<?php ActiveForm::end() ?>
<small><span class="fa fa-info"></span> คำแนะนำ การค้นหาข้อมูลข่าวสาร<?= Yii::$app->params['org_name_th'] ?>
โดยพิมพ์คำค้นที่ต้องการค้นหา จากนั้นกดรูปแว่นขยาย เพื่อค้นหาข้อมูลข่าวสารที่ต้องการ</small>
</div>
</div>
<div class="col-md-3 text-center my-auto">
<?= Html::img('', ['class' => 'img-fluid rounded', 'width' => '100%']) ?>
</div>
<div class="col-md-3 text-center my-auto">
<?= Html::img('', ['class' => 'img-fluid rounded', 'width' => '100%']) ?>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<?= Html::img(Yii::getAlias('@web') . '/img/icons/facebook.png', ['width' => 50]) ?> <?= Html::a('อบต.ดองกำเม็ด', '') ?>
<?= Html::img(Yii::getAlias('@web') . '/img/icons/line.png', ['width' => 50]) ?> <?= Html::a('ข่าวสาร อบต.ดองกำเม็ด', '') ?>
<?= Html::img(Yii::getAlias('@web') . '/img/icons/whatsapp.png', ['width' => 50]) ?> <?= Html::a('045-756943', ['site/contact']) ?>
<?= Html::img(Yii::getAlias('@web') . '/img/icons/telegram.png', ['width' => 50]) ?> <?= Html::mailto('saraban@dongkammed.go.th', 'saraban@dongkammed.go.th') ?>
</div>
</div>
</div>
</section><!--search-->
<!--scroll-->
<section class="section-scroll">
<div class="container">
<div class="row">
<div class="col-3 text-right"
style="padding-top: 10px; padding-bottom: 5px; background: linear-gradient(to right, #d39547, #dc9d4e);">
<strong style="color: #fff7f2e6; font-size: 16px;"><?= Yii::$app->params['org_name_th'] ?></strong>
</div>
<div class="col-9" style="padding-top: 10px; padding-bottom: 5px; font-size: 15px; color: ">
<marquee direction="left" scrollamount="5">
<?php foreach (CmsPost::find()->orderBy(['id' => SORT_DESC])->limit(10)->all() as $post) { ?>
<li class="list-inline-item"><?= Html::a('<i class="fa fa-file-text"></i> ' . $post->name, ['/post/view', 'id' => $post->id]) ?></li>
<?php } ?>
-</ul>
</marquee>
</div>
</div>
</div>
</section>
<!--scroll-->
<!--No -->
<div class="section-bgimg">
<section class="section section-ita">
<?= CmsPage::findOne(35)->description ?>
<div class="container">
<div class="row my-3">
<div class="col-md-4">
<div class="ita-icon">
<h3 class="text-center text-black-50"><?= Html::img(Yii::getAlias('@web') . '/img/icons/013-megaphone.png', ['class' => 'img-fluid', 'width' => 64]) ?> <?= Html::a('ช่องทางร้องเรียน', ['/complaint/index']) ?></h3>
</div>
</div>
<div class="col-md-4">
<div class="ita-icon">
<h3 class="text-center text-black-50"><?= Html::img(Yii::getAlias('@web') . '/img/icons/037-business.png', ['class' => 'img-fluid', 'width' => 64]) ?> <?= Html::a('รับฟังความคิดเห็น', ['/forum/index', 'id' => 1]) ?></h3>
</div>
</div>
<div class="col-md-4">
<div class="ita-icon">
<h3 class="text-center text-black-50"><?= Html::img(Yii::getAlias('@web') . '/img/icons/044-chat box.png', ['class' => 'img-fluid', 'width' => 64]) ?> <?= Html::a('คำถาม-คำตอบ (Q & A)', ['/forum/index', 'id' => 2]) ?></h3>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="ita-icon">
<h5 class="text-center text-black-50"><?= Html::img(Yii::getAlias('@web') . '/img/icons/002-document.png', ['class' => 'img-fluid', 'width' => 32]) ?>
<?= Html::a('แบบสอบถามความพึงพอใจในการให้บริการ', ['/site/form-service']) ?>
</h5>
</div>
</div>
<div class="col-md-6">
<div class="ita-icon">
<h5 class="text-center text-black-50"><?= Html::img(Yii::getAlias('@web') . '/img/icons/002-document.png', ['class' => 'img-fluid', 'width' => 32]) ?> <?= Html::a('แบบสำรวจความคิดเห็นต่อบริการเว็บไซต์', ['/site/form-website']) ?></h5>
</div>
</div>
</div>
</div>
</section>
<!--No-->
<section class="section section-link-banner">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card shadow">
<div class="card-body text-center">
<a href="<?= Url::to(['post/view', 'id' => 447]) ?>"
target="_blank"
rel="noopener noreferrer">
<img src="<?= Yii::getAlias('@web') ?>/img/ita65.png"
width="217" height="80" alt="">
</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card shadow">
<div class="card-body text-center text-black-50">
<h3 class="text-center text-black-50"
style="font-family: 'Roboto Slab', serif;"><?= Html::img(Yii::getAlias('@web') . '/img/e-service.png', ['class' => 'img-fluid', 'width' => 79]) ?> <?= Html::a('E-Service', ['/file/index']) ?></h3>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="section section-news">
<div class="container">
<div class="section-pgimg">
<h4 class="section-title" style="color: white !important;">
ข่าวสาร</h4>
</div>
<ul class="nav nav-pills nav-justified mb-3" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pills-news-tab" data-toggle="pill" href="#pills-news" role="tab"
aria-controls="pills-news" aria-selected="true">ประชาสัมพันธ์</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-cgd-tab" data-toggle="pill" href="#pills-cgd" role="tab"
aria-controls="pills-cgd" aria-selected="false">ประกาศจัดซื้อจัดจ้าง</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-job-tab" data-toggle="pill" href="#pills-job" role="tab"
aria-controls="pills-job" aria-selected="false">รับสมัครงาน/โอน/ย้าย</a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-news" role="tabpanel" aria-labelledby="pills-news-tab">
<?php Pjax::begin(['id' => 'pjax-news']) ?>
<?= ListView::widget([
'dataProvider' => $dataProviderNews,
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_news',
'options' => [
'class' => 'list-view row'
],
'itemOptions' => [
'tag' => false,
]
]) ?>
<?php Pjax::end() ?>
<div class="text-center" style="margin-top: 20px">
<?= Html::a('<span class="fa fa-search"></span> ข่าวประชาสัมพันธ์ทั้งหมด', ['/post/index', 'slug' => Yii::$app->abt->simpleSlug('ข่าวประชาสัมพันธ์'), 'id' => 1], ['class' => 'btn btn-secondary']) ?>
</div>
</div><!-- tab news-->
<div class="tab-pane fade" id="pills-cgd" role="tabpanel" aria-labelledby="pills-cgd-tab"><!--tab cgd-->
<?php Pjax::begin(['id' => 'pjax-procurement']) ?>
<?= ListView::widget([
'dataProvider' => $dataProviderProcurement,
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_procurement',
'options' => [
'class' => '',
'tag' => 'ul',
],
'itemOptions' => [
'tag' => 'li',
]
]) ?>
<?php Pjax::end() ?>
<div class="text-center">
<?= Html::a('<span class="fa fa-search"></span> ประกาศจัดซื้อจัดจ้างทั้งหมด', ['/post/index', 'slug' => Yii::$app->abt->simpleSlug('ประกาศจัดซื้อจัดจ้าง'), 'id' => 3], ['class' => 'btn btn-secondary']) ?>
</div>
</div><!-- tab procurement-->
<div class="tab-pane fade" id="pills-job" role="tabpanel" aria-labelledby="pills-job-tab">
<?php Pjax::begin(['id' => 'pjax-jobs']) ?>
<?= ListView::widget([
'dataProvider' => $dataProviderJob,
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_job',
'options' => [
'class' => '',
'tag' => 'ul',
],
'itemOptions' => [
'tag' => 'li',
]
]) ?>
<?php Pjax::end() ?>
<div class="text-center">
<?= Html::a('<span class="fa fa-search"></span> รับสมัครงาน/โอน/ย้ายทั้งหมด', ['/post/index', 'slug' => Yii::$app->abt->simpleSlug('รับสมัครงาน/โอน/ย้าย'), 'id' => 4], ['class' => 'btn btn-secondary']) ?>
</div>
</div><!--tab job-->
</div>
</div>
</div><!--section-news-->
<div class="section section-egp">
<?php
$type = [
'P0' => 'แผนการจัดซื้อจัดจ้าง',
'15' => 'ประกาศราคากลาง',
'B0' => 'ร่างเอกสารประกวดราคา',
'D0' => 'ประกาศเชิญชวน',
'W0' => 'ประกาศรายชื่อผู้ชนะการเสนอราคา',
'D1' => 'ยกเลิกประกาศเชิญชวน',
'W1' => 'ยกเลิกประกาศรายชื่อผู้ชนะการเสนอราคา',
'D2' => 'เปลียนแปลงประกาศเชิญชวน',
'W2' => 'เปลี่ยนแปลงประกาศรายชื่อ'
];
?>
<div class="container">
<div class="section-pgimg">
<h4 class="section-title" style="color: white !important;">ประกาศจัดซื้อจัดจ้าง e-GP</h4>
</div>
<ul class="nav nav-pills nav-justified mb-3" id="pills-tab" role="tablist">
<?php
$i = 1;
foreach ($type as $key => $value) {
?>
<li class="nav-item">
<a class="nav-link <?= $key == 'W0' ? 'active' : '' ?>" id="pills-egp<?= $i ?>-tab"
data-toggle="pill" href="#pills-egp<?= $i ?>" role="tab"
aria-controls="pills-egp<?= $i ?>" aria-selected="true"><?= $value ?></a>
</li>
<?php
$i++;
} ?>
</ul>
<div class="tab-content" id="pills-tabContent">
<?php
$i = 1;
foreach ($type as $key => $value) { ?>
<div class="tab-pane fade show <?= $key == 'W0' ? 'active' : '' ?>" id="pills-egp<?= $i ?>"
role="tabpanel" aria-labelledby="pills-egp<?= $i ?>-tab">
<?php
$dataProvider = new ActiveDataProvider([
'query' => CmsEgp::find()->where(['type' => $key]),
'sort' => [
'defaultOrder' => [
'pub_date' => SORT_DESC
]
]
]);
Pjax::begin(['id' => 'pjax-egp-' . $key]);
echo ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_egp'
]);
Pjax::end();
?>
</div><!--tab egp<?= $i ?>-->
<?php
$i++;
} ?>
</div>
</div>
</div><!--section-egp-->
<!-- หังสือราชการ -->
<?php if ($dataProviderDla != false) { ?>
<div class="section section-egp">
<div class="container">
<div class="section-pgimg-dla">
</div>
<h4 class="section-title" style="color: white !important;">
หนังสือราชการกรมส่งเสริมการปกครองท้องถิ่น</h4>
<div class="card shadow">
<div class="card-body" style="background: rgb(32,21,218);
background: radial-gradient(circle, rgba(32,21,218,1) 0%, rgba(22,105,225,0.1632003143054097) 0%, rgba(142,203,255,0.63) 0%);
background-color: currentcolor;">
<?php Pjax::begin(['id' => 'pjax-dla']) ?>
<?= GridView::widget([
'layout' => "{summary}\n{items}\n<div class='d-flex justify-content-center'>{pager}</div>",
'dataProvider' => $dataProviderDla,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'label' => 'หนังสือราชการ สถ.',
'attribute' => 'DOCUMENT_TOPIC',
'format' => 'html',
'value' => function ($model) {
$file = '';
if (isset($model['UPLOAD_FILE2']) && !empty($model['UPLOAD_FILE2'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC2'], $model['UPLOAD_FILE2'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE3']) && !empty($model['UPLOAD_FILE3'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC3'], $model['UPLOAD_FILE3'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE4']) && !empty($model['UPLOAD_FILE4'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC4'], $model['UPLOAD_FILE4'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE5']) && !empty($model['UPLOAD_FILE5'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC5'], $model['UPLOAD_FILE5'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE6']) && !empty($model['UPLOAD_FILE6'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC6'], $model['UPLOAD_FILE6'], ['target' => '_blank']) . '] ';
}
return (isset($model['UPLOAD_FILE1']) && !empty($model['UPLOAD_FILE1']) ? Html::a($model['DOCUMENT_TOPIC'], $model['UPLOAD_FILE1'], ['target' => '_blank']) : $model['DOCUMENT_TOPIC']) . '<br />' . $file;
}
],
[
'label' => 'หน่วยงาน',
'attribute' => 'ORG',
],
[
'label' => 'เลขที่หนังสือ',
'attribute' => 'DOCUMENT_NO',
],
[
'label' => 'หนังสือลงวันที่',
'attribute' => 'DOCUMENT_DATE',
],
[
'label' => 'วันที่ลงเว็บไซต์',
'attribute' => 'RECORD_DATE',
],
]
]) ?>
<?php Pjax::end() ?>
</div>
</div>
</div>
</div><!--section-egp-->
<?php } ?>
<!--section activity -->
<!--<div class="bgimg">-->
<div class="section section-activity">
<div class="container">
<div class="section-pgimg">
<h4 class="section-title">กิจกรรม <?= Yii::$app->params['org_short'] ?></h4>
</div>
<?php Pjax::begin(['id' => 'pjax-activity']) ?>
<?= ListView::widget([
'dataProvider' => $dataProviderActivity,
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_activity',
'options' => [
'class' => 'list-view row'
],
'itemOptions' => [
'tag' => false,
]
]) ?>
<?php Pjax::end() ?>
<div class="text-center" style="margin-top: 20px;">
<?= Html::a('<span class="fa fa-search"></span> ดูกิจกรรมทั้งหมด', ['post/index', 'slug' => Yii::$app->abt->simpleSlug('กิจกรรม องค์การบริหารส่วนตำบลบอน'), 'id' => 2], ['class' => 'btn btn-secondary']) ?>
</div>
</div>
</div>
<!--section-tour-->
<div class="section section-tour">
<div class="container">
<div class="section-pgimg">
<h4 class="section-title">แหล่งท่องเที่ยว/สถานที่สำคัญ</h4>
</div>
<?php Pjax::begin(['id' => 'pjax-place']) ?>
<?= ListView::widget([
'dataProvider' => $dataProviderPlace,
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_place',
'options' => [
'class' => 'list-view row'
],
'itemOptions' => [
'tag' => false,
]
]) ?>
<?php Pjax::end() ?>
<div class="text-center" style="margin-top: 20px;">
<?= Html::a('<span class="fa fa-search"></span> ดูแหล่งท่องเที่ยว/สถานที่สำคัญทั้งหมด', ['post/index', 'slug' => Yii::$app->abt->simpleSlug('แหล่งท่องเที่ยว/สถานที่สำคัญ'), 'id' => 23], ['class' => 'btn btn-secondary']) ?>
</div>
</div>
</div><!--section-tour-->
<!--section-tour-->
<div class="section section-product">
<div class="container">
<div class="section-pgimg">
<h4 class="section-title">ผลิตภัณฑ์ในตำบล</h4>
</div>
<?php Pjax::begin(['id' => 'pjax-product']) ?>
<?= ListView::widget([
'dataProvider' => $dataProviderProduct,
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_product',
'options' => [
'class' => 'list-view row'
],
'itemOptions' => [
'tag' => false,
]
]) ?>
<?php Pjax::end() ?>
<div class="text-center" style="margin-top: 20px;">
<?= Html::a('<span class="fa fa-search"></span> ดูผลิตภัณฑ์ในตำบลทั้งหมด', ['post/index', 'slug' => Yii::$app->abt->simpleSlug('ผลิตภัณฑ์ในตำบล'), 'id' => 34], ['class' => 'btn btn-secondary']) ?>
</div>
</div>
</div><!--section-tour-->
<!--section-service-->
<div class="section section-service">
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="section-pgimg-eser1">
<h4 class="section-title " style="color: white !important;">บริการประชาชน</h4>
</div>
<div class="row">
<div class="col-9">
<div class="tab-content" id="v-pills-tabContent">
<?php
$i = 1;
foreach (CmsFileCategory::find()->all() as $category) {
?>
<div class="tab-pane fade <?= $i == 1 ? ' show active' : '' ?>"
id="v-pills-tab<?= $category->id ?>" role="tabpanel"
aria-labelledby="v-pills-tab<?= $category->id ?>-tab">
<h5><?= $category->name ?></h5>
<?php Pjax::begin(['id' => 'pjax-service-' . $i]) ?>
<?= ListView::widget([
'dataProvider' => new ActiveDataProvider([
'query' => CmsFile::find()->where(['cms_file_category_id' => $category->id]),
'sort' => [
'defaultOrder' => [
'id' => SORT_DESC
]
],
'pagination' => [
'pageSize' => 50
]
]),
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'summary' => false,
'itemView' => '_file',
'options' => [
'class' => '',
'tag' => 'ul',
],
'itemOptions' => [
'tag' => 'li',
]
]) ?>
<?php Pjax::end() ?>
</div>
<?php
$i++;
} ?>
</div>
</div>
<div class="col-3">
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist"
aria-orientation="vertical">
<?php
$i = 1;
foreach (CmsFileCategory::find()->all() as $category) {
?>
<a class="nav-link <?= $i == 1 ? 'active' : '' ?>"
id="v-pills-tabtab<?= $category->id ?>-tab" data-toggle="pill"
href="#v-pills-tab<?= $category->id ?>" role="tab"
aria-controls="v-pills-tab<?= $category->id ?>"
aria-selected="true"><?= $category->name ?></a>
<?php
$i++;
} ?>
</div>
</div>
</div>
<div class="text-center" style="margin-top: 20px;">
<?= Html::a('<span class="fa fa-search"></span> ดูทั้งหมด', ['file/index'], ['class' => 'btn btn-secondary']) ?>
</div>
</div><!--col-md-8-->
<div class="col-md-4">
<div class="section-pgimg-eser2">
<h4 class="section-title " style="color: white !important;">ปฏิทินงาน</h4>
</div>
<?= yii2fullcalendar::widget([
'events' => Url::to(['/site/jsoncalendar']),
/*'events' => [
'googleCalendarId' => 'l6nbt4hdoua2b0vpldogt3tmes@group.calendar.google.com',
'className' => 'gcal-event'
],
'googleCalendar' => true,
'clientOptions' => [
'googleCalendarApiKey' => '195023435793-j7pbkoq1i6e0mjpg2vt06ajc4gf28aq6.apps.googleusercontent.com'
]*/
'options' => [
'header' => [
'left' => 'prev,next today',
'center' => 'title',
'right' => 'dayGridMonth,timerGridWeek,timerGridDay'
]
]
]) ?>
<?php $this->registerCss("
.fc-day-grid-event > .fc-content {
white-space: normal;
}
.btn-default {
color: aliceblue !important;
}
") ?>
</div>
</div><!--row-->
</div>
</div><!--section-service-->
<!--
<div class="section section-dla">
<div class="container">
<h4 class="section-title">หนังสือราชการกรมส่งเสริมการปกครองท้องถิ่น</h4>
<div class="card shadow">
<div class="card-body">
<div class="table-responsive">
<?php // Pjax::begin(['id' => 'pjax-dla']) ?>
<?php /*= GridView::widget([
'pager' => ['class' => 'yii\bootstrap4\LinkPager'],
'layout' => "{summary}\n{items}\n<div class='mx-auto'>{pager}</div>",
'dataProvider' => $dataProviderDla,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'label' => 'หนังสือราชการ สถ.',
'attribute' => 'DOCUMENT_TOPIC',
'format' => 'html',
'value' => function ($model) {
$file = '';
if (isset($model['UPLOAD_FILE2']) && !empty($model['UPLOAD_FILE2'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC2'], $model['UPLOAD_FILE2'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE3']) && !empty($model['UPLOAD_FILE3'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC3'], $model['UPLOAD_FILE3'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE4']) && !empty($model['UPLOAD_FILE4'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC4'], $model['UPLOAD_FILE4'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE5']) && !empty($model['UPLOAD_FILE5'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC5'], $model['UPLOAD_FILE5'], ['target' => '_blank']) . '] ';
}
if (isset($model['UPLOAD_FILE6']) && !empty($model['UPLOAD_FILE6'])) {
$file .= '[' . Html::a($model['UPLOAD_DESC6'], $model['UPLOAD_FILE6'], ['target' => '_blank']) . '] ';
}
return (isset($model['UPLOAD_FILE1']) && !empty($model['UPLOAD_FILE1']) ? Html::a($model['DOCUMENT_TOPIC'], $model['UPLOAD_FILE1'], ['target' => '_blank']) : $model['DOCUMENT_TOPIC']) . '<br />' . $file;
}
],
[
'label' => 'หน่วยงาน',
'attribute' => 'ORG',
],
[
'label' => 'เลขที่หนังสือ',
'attribute' => 'DOCUMENT_NO',
],
[
'label' => 'หนังสือลงวันที่',
'attribute' => 'DOCUMENT_DATE',
],
[
'label' => 'วันที่ลงเว็บไซต์',
'attribute' => 'RECORD_DATE',
],
]
])*/ ?>
<?php //Pjax::end() ?>
</div>
</div>
</div>
</div>
</div>
-->
<!--section-ebook-->
<div class="section section-ebook">
<div class="container">
<div class="section-pgimg-ebook1">
<h4 class="section-title ">หนังสือ/วารสาร/เอกสาร อิเล็กทรอนิกส์</h4>
</div>
<div class="row">
<div class="col-md-12">
<?php
\frontend\assets\EbookAsset::register($this);
$script = '';
foreach (EbookCategory::find()->orderBy(['sort_order' => SORT_ASC])->all() as $category) {
?>
<h5 class="text-center"><?= $category->name ?></h5>
<!-- begin BookShelf html -->
<div id="bookshelf_<?= $category->id ?>" class="bs-container">
<!-- begin images for bookshelf -->
<section>
<?php foreach (Ebook::find()->where(['ebook_category_id' => $category->id])->limit(4)->orderBy(['id' => SORT_DESC])->all() as $book) { ?>
<div class="bs-shelf-image">
<?= Html::a(Html::img(Yii::$app->params['backendUrl'] . '/uploads/ebook/cover/' . $book->cover),
['/ebook/view', 'id' => $book->id], ['target' => '_blank']) ?>
<div class="bs-textbox">
<p><?= $book->name ?></p>
</div>
</div>
<?php } ?>
</section>
<!-- end images for bookshelf -->
</div>
<!-- end BookShelf html -->
<?php
$script .= "$('#bookshelf_" . $category->id . "').bookshelf({color:\"#dd9933\",width:900});";
} ?>
<?php $this->registerJs($script) ?>
</div>
</div>
</div>
</div><!--section-ebook-->
<!-- section-banner-->
<div class="section section-banner">
<div class="container">
<div class="section-pgimg">
<h4 class="section-title">ลิงก์ที่น่าสนใจ</h4>
</div>
<div class="row">
<div class="col-md-3">
<h5 style="color: antiquewhite">เว็บไซต์ที่เกี่ยวข้อง</h5>
<ul class="menu">
<li><a style="color: #ffffff" target="_blank" href="http://www.thaigov.go.th">รัฐบาลไทย</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://www.moi.go.th">กระทรวงมหาดไทย</a></li>
<li><a style="color: #ffffff" target="_blank" href="https://dopa.go.th/">กรมการปกครอง</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://www.dla.go.th/">กรมส่งเสริมการปกครองส่วนท้องถิ่น</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://www.cdd.go.th/">กรมการพัฒนาชุมชน</a></li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dpt.go.th/">กรมโยธาธิการและผังเมือง</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://www.doh.go.th">กรมทางหลวง</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://www.rid.go.th">กรมชลประทาน</a></li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/servlet/TemplateServlet?province=ssk">ท้องถิ่นจังหวัดศรีสะเกษ</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://www.sisaket.go.th/">จังหวัดศรีสะเกษ</a>
</li>
</ul>
</div>
<div class="col-md-3">
<h5 style="color: antiquewhite">ข้อมูลสารสนเทศ</h5>
<ul class="menu">
<li><a style="color: #ffffff" target="_blank" href="http://info.dla.go.th/">ระบบข้อมูลกลาง อปท.</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://www.dla.go.th/work/abt/index.jsp">ข้อมูล
อปท.</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://info.dla.go.th/public/orgWebSite.do">เว็บไซต์
อปท.</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://www.dla.go.th/work/2559/LPA/index.jsp">การประเมินประสิทธิภาพ
อปท.</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://ereport.dla.go.th/teacher.jsp">ข้อมูลผู้ดูแลเด็ก</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://ltax3000.dla.go.th/download.html">ดาวน์โหลดโปรแกรมแผนที่ภาษี</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/work/money/index.jsp">การเงินการคลังท้องถิ่น</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/servlet/DynamicWebServlet?dynamicwebId=21">ดาวน์โหลดแบบฟอร์ม</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://sis.dla.go.th/gpa.jsp">โปรแกรมจัดการผลการเรียนเฉลี่ย</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://www.dla.go.th/servlet/DocumentServlet">หนังสือราชการจาก
สถ.</a>
</li>
</ul>
</div>
<div class="col-md-3">
<h5 style="color: antiquewhite">ระบบสารสนเทศ</h5>
<ul class="menu">
<li><a style="color: #ffffff" target="_blank" href="http://sarabun.dla.go.th/">ระบบสารบรรณ</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://ereport.dla.go.th/">ระบบแบบฟอร์มอิเล็กทรอนิกส์</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://info.dla.go.th/">ระบบข้อมูลกลาง อปท.</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://e-plan.dla.go.th/">ระบบสารสนเทศ
เพื่อการวางแผน</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://welfare.dla.go.th/">ระบบเบี้ยยังชีพ</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://sis.dla.go.th/">ระบบการศึกษาท้องถิ่น</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://ccis.dla.go.th/">ระบบศูนย์พัฒนาเด็กเล็ก</a></li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.laas.go.th/">ระบบบันทึกบัญชีท้องถิ่น</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://lhr.dla.go.th/hr/">ระบบข้อมูลบุคลากร</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/servlet/NewsServlet?_mode=new_abt_news">ฝากข่าว
อปท.</a></li>
</ul>
</div>
<div class="col-md-3">
<h5 style="color: antiquewhite">ลิงก์ที่น่าสนใจ</h5>
<ul class="menu">
<li><a style="color: #ffffff" target="_blank"
href="http://asean.dla.go.th/">ศูนย์การเรียนรู้อาเซียน</a></li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/servlet/TemplateOrganizeServlet?organize=quality&amp;_mode=menu&amp;tempWebMenuId=3261">คู่มือสำหรับประชาชน</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/DLA-Magazine/DLA_Bookshelf/DLA_Bookshelf.html">DLA
ฉบับปฐมฤกษ์</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://info.dla.go.th/travel/main.do">ท้องถิ่นไทยหัวใจพอเพียง</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/servlet/ServiceServlet">ศูนย์บริการข้อมูลข่าวสาร</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://www.dla.go.th/dla/doc.jsp">ศูนย์ปฎิบัติการ
DOC</a></li>
<li><a style="color: #ffffff" target="_blank" href="http://info.dla.go.th/travel/">สถ. ชวนเที่ยว</a>
</li>
<li><a style="color: #ffffff" target="_blank"
href="http://www.dla.go.th/servlet/TemplateOrganizeServlet?_mode=menu&amp;tempWebMenuId=7281&amp;organize=secretary">ข่าวรัฐบาลสู่ประชาชน</a>
</li>
<li><a style="color: #ffffff" target="_blank" href="http://www.oic.go.th/ginfo/">ฐานข้อมูลหน่วยงานของรัฐ</a>
</li>
<li>
<a style="color: #ffffff"
href="/%E0%B8%A5%E0%B8%B4%E0%B8%87%E0%B8%84%E0%B9%8C%E0%B8%A0%E0%B8%B2%E0%B8%A2%E0%B8%99%E0%B8%AD%E0%B8%81/">ลิงก์หน่วยงานทั่วไป</a>
</li>
</ul>
</div>
</div>
</div>
<br/>
<div class="container">
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/banner_local2.jpg'), 'http://www.localsociety.org/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/bb01.jpg'), 'http://www.bb.go.th/bbhome/index.asp') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/bc.jpg'), 'http://www.cgd.go.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/bnn12.jpg'), 'http://thai.tourismthailand.org/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/ginfo.jpg'), 'http://www.oic.thaigov.go.th/ginfo/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/kkt.jpg'), 'http://www.ect.go.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/law.jpg'), 'http://www.krisdika.go.th/lawChar.jsp?head=3&item=3&process=displayLawList&id=1') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/mict.jpg'), 'http://www.mict.go.th/main.php?filename=index') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/ppch.jpg'), 'http://www.nccc.thaigov.net/nccc/1.php') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/pricem.jpg'), 'http://www.dit.go.th/pricemain2.asp') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/sahakorn.jpg'), 'http://www.savingcoop.com/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/sml.jpg'), 'http://www.dopa.go.th/sml/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/stng.jpg'), 'http://www.oag.go.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/tac.jpg'), 'http://www.admincourt.go.th/amc_tha.html') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/yota.jpg', ['width' => 152, 'height' => 45]), 'http://www.yotathai.net/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/lpa.png', ['width' => 152, 'height' => 45]), 'http://203.151.233.115/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/245_1.jpg', ['width' => 152, 'height' => 45]), 'http://sufficiency.dla.go.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/229_1.jpg', ['width' => 152, 'height' => 45]), 'http://www.paosavingcoop.or.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/4_1.gif', ['width' => 152, 'height' => 45]), 'http://www.lgp.go.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/190_1.gif', ['width' => 152, 'height' => 45]), 'http://cremation.no-ip.org/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/1_1.gif', ['width' => 152, 'height' => 45]), 'http://www.munsaving.com/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/181_1.gif', ['width' => 152, 'height' => 45]), 'http://203.150.231.1/pensionfund/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/7_1.gif', ['width' => 152, 'height' => 45]), 'http://www.dla.go.th/work/WebHR2/home/home.htm') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/10_1.gif', ['width' => 152, 'height' => 45]), 'http://www.dla.go.th/organize/quality') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/225_1.jpg', ['width' => 152, 'height' => 45]), 'http://www.lpdi.go.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/9_1.gif', ['width' => 152, 'height' => 45]), 'http://www.dla.go.th/servlet/ServiceServlet') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/185_1.gif', ['width' => 152, 'height' => 45]), 'http://km.laas.go.th/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/68_1.gif', ['width' => 152, 'height' => 45]), 'http://www.dla.go.th/servlet/DocumentServlet?documentType=13') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/230_1.jpg', ['width' => 152, 'height' => 45]), 'http://info.dla.go.th/travel/') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/252_1.jpg', ['width' => 152, 'height' => 45]), 'http://www.dla.go.th/dla/dss.jsp') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/224_1.jpg', ['width' => 152, 'height' => 45]), 'http://www.dla.go.th/work/DIN/index.html') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/182_1.gif', ['width' => 152, 'height' => 45]), 'http://www.dla.go.th/work/planlocal/index.htm') ?>
<?= Html::a(Html::img(Yii::getAlias('@web') . '/img/banner/235_1.jpg', ['width' => 152, 'height' => 45]), 'http://321-ac.eg.mahidol.ac.th/') ?>
</div>
</div>
</div>
<!--section-banner-->