s11
parent
1808fa8757
commit
fa183f628b
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
require_once('../.hta_config/conf.php');
|
require_once('../.hta_config/conf.php');
|
||||||
require_once('../.hta_slug/_header.php');
|
require_once('../.hta_slug/_header.php');
|
||||||
require_once('../.hta_slug/_nav.php');
|
require_once('../.hta_slug/_nav.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section class="diZContainer diZmxAuto diZmb20">
|
<section class="diZContainer diZmxAuto diZmb20">
|
||||||
|
@ -51,3 +51,60 @@ require_once('../.hta_slug/_nav.php');
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<style>
|
||||||
|
.diZContainer {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: auto;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZBorderBottom {
|
||||||
|
border-bottom: 2px solid #87ab63;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZFlexRow {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZButtonDefault {
|
||||||
|
background: #87ab63;
|
||||||
|
color: #121212;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-radius: 5px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZButtonDefault:hover {
|
||||||
|
background: #6f8f52;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZGridCols1-3 {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
|
gap: 15px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZblogStyle {
|
||||||
|
background: #1e1e1e;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 15px;
|
||||||
|
box-shadow: 0px 0px 10px rgba(135, 171, 99, 0.3);
|
||||||
|
transition: transform 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZblogStyle:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0px 0px 15px rgba(135, 171, 99, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZToolsContentHeight {
|
||||||
|
min-height: 60px;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -17,29 +17,88 @@ require_once('../.hta_slug/_nav.php');
|
||||||
</div>
|
</div>
|
||||||
<div class="diZGridCols1-3">
|
<div class="diZGridCols1-3">
|
||||||
<?php
|
<?php
|
||||||
// try {
|
try {
|
||||||
// $conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
||||||
// $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
// $stmt = $conn->prepare("SELECT * FROM api_tools");
|
$stmt = $conn->prepare("SELECT * FROM api_tools");
|
||||||
// $stmt->execute();
|
$stmt->execute();
|
||||||
// $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
// // var_dump($rows);
|
// var_dump($rows);
|
||||||
// foreach($rows as $row){
|
foreach($rows as $row){
|
||||||
// // echo $row['name'].'<br>';
|
// echo $row['name'].'<br>';
|
||||||
// if($row['status']==1){
|
if($row['status']==1){
|
||||||
// $link_button = '<a class="diZButtonDefault" href="/tools/'.$row['slug'].'" ><span class="">'.$row['name'].'</span></a>';
|
$link_button = '<a class="diZButtonDefault" href="/tools/'.$row['slug'].'" ><span class="">'.$row['name'].'</span></a>';
|
||||||
// } else{
|
} else{
|
||||||
// $link_button = '<a class="diZButtonDefault"><span>'.$row['name'].'</span></a>';
|
$link_button = '<a class="diZButtonDefault"><span>'.$row['name'].'</span></a>';
|
||||||
// }
|
}
|
||||||
// echo '
|
echo '
|
||||||
// <div class="diZblogStyle diZPadding10px">
|
<div class="diZblogStyle diZPadding10px">
|
||||||
// <p class="diZLineClamp2 diZTextJustify diZToolsContentHeight" >'.$row['description'].'</p>
|
<p class="diZLineClamp2 diZTextJustify diZToolsContentHeight" >'.$row['description'].'</p>
|
||||||
// '.$link_button.'
|
'.$link_button.'
|
||||||
// </div>';
|
</div>';
|
||||||
// }
|
}
|
||||||
// } catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
// $in_page_message = "<p class='text-danger'>Error: " . $e->getMessage() . "</p>";
|
$in_page_message = "<p class='text-danger'>Error: " . $e->getMessage() . "</p>";
|
||||||
// }
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<style>
|
||||||
|
.diZContainer {
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: auto;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZBorderBottom {
|
||||||
|
border-bottom: 2px solid #87ab63;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZFlexRow {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZButtonDefault {
|
||||||
|
background: #87ab63;
|
||||||
|
color: #121212;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border-radius: 5px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: bold;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZButtonDefault:hover {
|
||||||
|
background: #6f8f52;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZGridCols1-3 {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||||
|
gap: 15px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZblogStyle {
|
||||||
|
background: #1e1e1e;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 15px;
|
||||||
|
box-shadow: 0px 0px 10px rgba(135, 171, 99, 0.3);
|
||||||
|
transition: transform 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZblogStyle:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0px 0px 15px rgba(135, 171, 99, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.diZToolsContentHeight {
|
||||||
|
min-height: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
require_once('.hta_config/siliconpin_sp.php');
|
require_once('../.hta_config/conf.php');
|
||||||
|
require_once('../.hta_slug/_header.php');
|
||||||
|
|
||||||
if($_SERVER['REQUEST_METHOD']=='POST' && strlen($_POST['name']>3)){
|
if($_SERVER['REQUEST_METHOD']=='POST' && strlen($_POST['name']>3)){
|
||||||
$slugText = $_POST['name'];
|
$slugText = $_POST['name'];
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
<?php
|
|
||||||
require_once('.htac_header.php');
|
|
||||||
?>
|
|
||||||
<section class="diZContainer diZmxAuto diZmy8">
|
<section class="diZContainer diZmxAuto diZmy8">
|
||||||
<h1 class="diZBorderBottom">JSON Formatter</h1>
|
<h1 class="diZBorderBottom">JSON Formatter</h1>
|
||||||
<div class="diZFlexRowCol">
|
<div class="diZFlexRowCol">
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
require_once('../.hta_config/var.php');
|
require_once('../.hta_config/conf.php');
|
||||||
|
require_once('../.hta_slug/_header.php');
|
||||||
|
require_once('../.hta_slug/_nav.php');
|
||||||
|
require_once('../.hta_config/var.php');
|
||||||
|
|
||||||
|
|
||||||
$url = explode('/', $_SERVER['REQUEST_URI']);
|
$url = explode('/', $_SERVER['REQUEST_URI']);
|
||||||
if (strpos($url[1], "?") !== false) {
|
if (strpos($url[1], "?") !== false) {
|
||||||
|
|
Loading…
Reference in New Issue