Gitlab@Informatics

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

update add tab

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