s11
parent
1808fa8757
commit
fa183f628b
|
@ -51,3 +51,60 @@ require_once('../.hta_slug/_nav.php');
|
|||
?>
|
||||
</div>
|
||||
</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 class="diZGridCols1-3">
|
||||
<?php
|
||||
// try {
|
||||
// $conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
||||
// $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
// $stmt = $conn->prepare("SELECT * FROM api_tools");
|
||||
// $stmt->execute();
|
||||
// $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
// // var_dump($rows);
|
||||
// foreach($rows as $row){
|
||||
// // echo $row['name'].'<br>';
|
||||
// if($row['status']==1){
|
||||
// $link_button = '<a class="diZButtonDefault" href="/tools/'.$row['slug'].'" ><span class="">'.$row['name'].'</span></a>';
|
||||
// } else{
|
||||
// $link_button = '<a class="diZButtonDefault"><span>'.$row['name'].'</span></a>';
|
||||
// }
|
||||
// echo '
|
||||
// <div class="diZblogStyle diZPadding10px">
|
||||
// <p class="diZLineClamp2 diZTextJustify diZToolsContentHeight" >'.$row['description'].'</p>
|
||||
// '.$link_button.'
|
||||
// </div>';
|
||||
// }
|
||||
// } catch (PDOException $e) {
|
||||
// $in_page_message = "<p class='text-danger'>Error: " . $e->getMessage() . "</p>";
|
||||
// }
|
||||
try {
|
||||
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
|
||||
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
$stmt = $conn->prepare("SELECT * FROM api_tools");
|
||||
$stmt->execute();
|
||||
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
// var_dump($rows);
|
||||
foreach($rows as $row){
|
||||
// echo $row['name'].'<br>';
|
||||
if($row['status']==1){
|
||||
$link_button = '<a class="diZButtonDefault" href="/tools/'.$row['slug'].'" ><span class="">'.$row['name'].'</span></a>';
|
||||
} else{
|
||||
$link_button = '<a class="diZButtonDefault"><span>'.$row['name'].'</span></a>';
|
||||
}
|
||||
echo '
|
||||
<div class="diZblogStyle diZPadding10px">
|
||||
<p class="diZLineClamp2 diZTextJustify diZToolsContentHeight" >'.$row['description'].'</p>
|
||||
'.$link_button.'
|
||||
</div>';
|
||||
}
|
||||
} catch (PDOException $e) {
|
||||
$in_page_message = "<p class='text-danger'>Error: " . $e->getMessage() . "</p>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</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
|
||||
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)){
|
||||
$slugText = $_POST['name'];
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<?php
|
||||
require_once('.htac_header.php');
|
||||
?>
|
||||
|
||||
<section class="diZContainer diZmxAuto diZmy8">
|
||||
<h1 class="diZBorderBottom">JSON Formatter</h1>
|
||||
<div class="diZFlexRowCol">
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<?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']);
|
||||
if (strpos($url[1], "?") !== false) {
|
||||
$url2 = explode('?', $url[1]);
|
||||
|
|
Loading…
Reference in New Issue