Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 80a5a22c authored by Woraprat's avatar Woraprat
Browse files

update add tab

parent 627e9c26
No related branches found
No related tags found
No related merge requests found
...@@ -105,14 +105,12 @@ ...@@ -105,14 +105,12 @@
.icon{ .icon{
color:#41474c; color:#41474c;
} }
.my-image{ .my-image{
width:200px; width:200px;
height:200px; height:200px;
object-fit:cover; object-fit:cover;
border-radius:50%; border-radius:50%;
} }
.tag-lg { .tag-lg {
font-size: .8em; font-size: .8em;
border-radius: 4px; border-radius: 4px;
...@@ -124,7 +122,6 @@ ...@@ -124,7 +122,6 @@
border-style: solid; border-style: solid;
border-width: 0.7px; border-width: 0.7px;
} }
.tag{ .tag{
display: inline-block; display: inline-block;
border-radius: 3px; border-radius: 3px;
...@@ -133,7 +130,6 @@ ...@@ -133,7 +130,6 @@
font-weight: 400; font-weight: 400;
margin: .25em .1em margin: .25em .1em
} }
.image-detail { .image-detail {
object-fit: cover; object-fit: cover;
width: auto; width: auto;
...@@ -143,27 +139,26 @@ ...@@ -143,27 +139,26 @@
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.text-primary-custom { .text-primary-custom {
color: #007bff !important color: #007bff !important
} }
.form-control:focus { .form-control:focus {
border: 1px solid #767170; border: 1px solid #767170;
box-shadow: none; box-shadow: none;
outline: 0!important; outline: 0!important;
color: #2c2c2c; color: #2c2c2c;
} }
.bg-light { .bg-light {
background-color: while !important; background-color: while !important;
} }
.center { .center {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.tab{
padding-left: 4em;
}
</style> </style>
<div class="wrapper"> <div class="wrapper">
<div class="container"> <div class="container">
...@@ -216,15 +211,7 @@ ...@@ -216,15 +211,7 @@
<div class="card-body " style='padding: 20px; margin-left: 5px;'> <div class="card-body " style='padding: 20px; margin-left: 5px;'>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">
<div style="font-family: Sarabun; font-size: 18px; text-align:justify;"><?php echo $d->description ?></div> <div style="font-family: Sarabun; font-size: 18px; text-align:justify;">&emsp;&emsp;&emsp;&emsp;<?php echo $d->description ?></div>
</div>
<div class="col-6">
<div class="row">
<div class="col-12">
<a href="<?php echo base_url() . $d->image1 ?>" data-toggle="lightbox" data-gallery="example-gallery">
<img class="image-detail center" src="<?php echo base_url() . $d->image1 ?>" alt="">
</a>
</div>
</div> </div>
<div class="col-6"> <div class="col-6">
<div class="row"> <div class="row">
...@@ -264,9 +251,9 @@ ...@@ -264,9 +251,9 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="col-6"> <div class="col-6">
<span style="font-family: Sarabun; font-size: 18px; text-align:justify;"><?php echo $d->description ?></span> <div style="font-family: Sarabun; font-size: 18px; text-align:justify;">&emsp;&emsp;&emsp;&emsp;<?php echo $d->description ?></d>
</div>
</div> </div>
</div> </div>
<?php } ?> <?php } ?>
...@@ -284,17 +271,8 @@ ...@@ -284,17 +271,8 @@
</a> </a>
</div> </div>
</div> </div>
</div>
<div class="col-12">
<span style="font-family: Sarabun; font-size: 18px; text-align:justify;"><?php echo $d->description ?></span>
</div>
</div>
<?php } ?>
<?php if ($d->template == 4) { ?>
<div class="card-body" style='padding: 20px; margin-left: 5px; text-align: justify;'>
<div class="row">
<div class="col-12"> <div class="col-12">
<span style="font-family: Sarabun; font-size: 18px; text-align:justify;"><?php echo $d->description ?></span> <div style="font-family: Sarabun; font-size: 18px; text-align:justify;">&emsp;&emsp;&emsp;&emsp;<?php echo $d->description ?></div>
</div> </div>
</div> </div>
<?php } ?> <?php } ?>
...@@ -302,7 +280,7 @@ ...@@ -302,7 +280,7 @@
<div class="card-body" style='padding: 20px; margin-left: 5px; text-align: justify;'> <div class="card-body" style='padding: 20px; margin-left: 5px; text-align: justify;'>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<span style="font-family: Sarabun; font-size: 18px;"><?php echo $d->description ?></span> <div style="font-family: Sarabun; font-size: 18px; text-align:justify;">&emsp;&emsp;&emsp;&emsp;<?php echo $d->description ?></div>
</div> </div>
<div class="col-6"> <div class="col-6">
<a href="<?php echo base_url().$d->image1 ?>" data-toggle="lightbox" data-gallery="example-gallery"> <a href="<?php echo base_url().$d->image1 ?>" data-toggle="lightbox" data-gallery="example-gallery">
...@@ -331,8 +309,7 @@ ...@@ -331,8 +309,7 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<h5><?php echo $m->prefix.$m->first_name.' '.$m->last_name ?></h5> <h5><?php echo $m->prefix.$m->first_name.' '.$m->last_name ?></h5>
<span> <span><h5><i class="fa fa-envelope icon"></i> : <?php echo $m->email ?></h5</span><br>
<h5><i class="fa fa-envelope icon"></i> : <?php echo $m->email ?></h5< /span><br>
</div> </div>
</div> </div>
</div> </div>
...@@ -346,19 +323,13 @@ ...@@ -346,19 +323,13 @@
<div class="form-group"> <div class="form-group">
<input type="text" id="sender" value="" placeholder="ชื่อ-นามสกุล" class="form-control"> <input type="text" id="sender" value="" placeholder="ชื่อ-นามสกุล" class="form-control">
</div> </div>
<textarea class="form-control ml-1 shadow-none textarea" placeholder="เขียนความคิดเห็น..." id="detail"></textarea> <textarea class="form-control ml-1 shadow-none textarea" placeholder="เขียนความคิดเห็น..." id="detail"></textarea></div>
</div>
<textarea class="form-control ml-1 shadow-none textarea" placeholder="เขียนความคิดเห็น..." id="detail"></textarea>
</div>
<div class="g-recaptcha" data-sitekey="6Lec8uckAAAAABGZ4_CaawpSb9hXgbDlwnhXaJco"></div> <div class="g-recaptcha" data-sitekey="6Lec8uckAAAAABGZ4_CaawpSb9hXgbDlwnhXaJco"></div>
<div class="mt-2 text-right"><button class="btn btn-info btn-sm shadow-none" type="button" onclick="insert_comment()">เพิ่มความคิดเห็น</button></div> <div class="mt-2 text-right"><button class="btn btn-info btn-sm shadow-none" type="button" onclick="insert_comment()">เพิ่มความคิดเห็น</button></div>
</div> </div>
<div class="data-container"></div> <div class="data-container"></div>
<div id="demo"></div> <div id="demo"></div>
</div> </div>
<div class="data-container"></div>
<div id="demo"></div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -391,6 +362,7 @@ ...@@ -391,6 +362,7 @@
<script src="<?php echo base_url()?>assets/plugins/page.js"></script> <script src="<?php echo base_url()?>assets/plugins/page.js"></script>
<script src="https://www.google.com/recaptcha/api.js" async defer></script> <script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
get_comment() get_comment()
}); });
...@@ -414,7 +386,7 @@ ...@@ -414,7 +386,7 @@
} }
function create_table(datas){ function create_table(datas){
let container = $('#demo'); var container = $('#demo');
$('#demo').pagination({ $('#demo').pagination({
dataSource: datas, dataSource: datas,
pageSize: 5, pageSize: 5,
...@@ -441,7 +413,7 @@ ...@@ -441,7 +413,7 @@
} }
function convertDate(dateString){ function convertDate(dateString){
let p = dateString.split(/\D/g) var p = dateString.split(/\D/g)
return [p[2],p[1],p[0] ].join("/") return [p[2],p[1],p[0] ].join("/")
} }
...@@ -513,15 +485,18 @@ ...@@ -513,15 +485,18 @@
title: "เพิ่มข้อมูลไม่สำเร็จ", title: "เพิ่มข้อมูลไม่สำเร็จ",
}) })
} }
}
}); });
} }
}) $(".swal2-cancel").css("border", "1px solid #A79E9E"); })
$(".swal2-cancel").css("border", "1px solid #A79E9E");
} }
} }
function ckeckrude( data ){ function ckeckrude( data ){
let wordrude = new Array("ashole", "a s h o l e", "a.s.h.o.l.e", "bitch", "b i t c h", "b.i.t.c.h", "shit", "s h i t", "s.h.i.t", "fuck", "dick", "f u c k", "d i c k", "f.u.c.k", "d.i.c.k", "มึง", "มึ ง", "ม ึ ง", "ม ึง", "มงึ", "มึ.ง", "มึ_ง", "มึ-ง", "มึ+ง", "กู", "ควย", "ค ว ย", "ค.ว.ย", "คอ วอ ยอ", "คอ-วอ-ยอ", "ปี้", "เหี้ย", "ไอ้เหี้ย", "เฮี้ย", "ชาติหมา", "ชาดหมา", "ช า ด ห ม า", "ช.า.ด.ห.ม.า", "ช า ติ ห ม า", "ช.า.ติ.ห.ม.า", "สัดหมา", "สัด", "เย็ด", "หี", "สันดาน", "แม่ง", "ระยำ", "ส้น ตีน", "แตด"); var wordrude = new Array ( "ashole","a s h o l e","a.s.h.o.l.e","bitch","b i t c h","b.i.t.c.h","shit","s h i t","s.h.i.t","fuck","dick","f u c k","d i c k","f.u.c.k","d.i.c.k","มึง","มึ ง","ม ึ ง","ม ึง","มงึ","มึ.ง","มึ_ง","มึ-ง","มึ+ง","กู","ควย","ค ว ย","ค.ว.ย","คอ วอ ยอ","คอ-วอ-ยอ","ปี้","เหี้ย","ไอ้เหี้ย","เฮี้ย","ชาติหมา","ชาดหมา","ช า ด ห ม า","ช.า.ด.ห.ม.า","ช า ติ ห ม า","ช.า.ติ.ห.ม.า","สัดหมา","สัด","เย็ด","หี","สันดาน","แม่ง","ระยำ","ส้น ตีน","แตด" );
for (n = 0; n < wordrude.length; n++) { for ( n = 0 ; n < wordrude.length ; n++ )
{
if (data.includes(wordrude[n])) { if (data.includes(wordrude[n])) {
return true return true
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment