Initial Commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="page-wrap d-flex flex-row align-items-center">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12 text-center">
|
||||
<span class="display-1 d-block">Error 404</span>
|
||||
<div class="mb-4 lead">
|
||||
<h5><?php echo $jkl["e5"];?></h5>
|
||||
<div class="alert alert-info text-left" role="alert"><i class="fas fa-question-circle"></i> <?php echo $jkl["e6"];?></div>
|
||||
<div class="alert alert-info text-left" role="alert"><i class="fas fa-question-circle"></i> <?php echo $jkl["e7"];?></div>
|
||||
<div class="alert alert-info text-left" role="alert"><i class="fas fa-question-circle"></i> <?php echo $jkl["e8"];?></div>
|
||||
</div>
|
||||
<a href="./" class="btn btn-link">Back to Home</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="page-wrap d-flex flex-row align-items-center">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-12 text-center">
|
||||
<span class="display-1 d-block"><?php echo $jkl['g84'];?></span>
|
||||
<div class="mb-4 lead">
|
||||
<h5><?php echo $jkl["e5"];?></h5>
|
||||
<div class="alert alert-info text-left" role="alert"><i class="fas fa-question-circle"></i> <?php echo $jkl["e6"];?></div>
|
||||
<div class="alert alert-info text-left" role="alert"><i class="fas fa-question-circle"></i> <?php echo $jkl["e7"];?></div>
|
||||
<div class="alert alert-info text-left" role="alert"><i class="fas fa-question-circle"></i> <?php echo $jkl["e8"];?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section bg-gradient-3" id="cards">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="blog-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'blog-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
|
||||
<?php if (JAK_BLOG_A && isset($jak_blogs) && is_array($jak_blogs)) { ?>
|
||||
|
||||
<div class="card-columns">
|
||||
<?php foreach($jak_blogs as $bl) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $bl["id"], JAK_rewrite::jakCleanurl($bl["title"]));
|
||||
?>
|
||||
|
||||
<div class="card" data-background="image" style="background-image: url('<?php echo $bl["previmg"];?>')">
|
||||
<div class="card-body">
|
||||
<label class="badge badge-pill badge-info"><?php echo JAK_base::jakTimesince($bl['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></label>
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<h3 class="card-title"><?php echo $bl["title"];?></h3>
|
||||
</a>
|
||||
<p class="card-description"><?php echo jak_cut_text($bl["content"], 200, '...');?>
|
||||
</p>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $blogparseurl;?>" class="btn btn-link btn-neutral">
|
||||
<i class="fa fa-book" aria-hidden="true"></i> <?php echo $jkl['hd135'];?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="pagination-area">
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd17'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section bg-gradient-3" id="cards">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="blog-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'blog-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
|
||||
<?php if (JAK_BLOG_A && isset($jak_blogs) && is_array($jak_blogs)) { ?>
|
||||
|
||||
<div class="row">
|
||||
<?php foreach($jak_blogs as $bl) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $bl["id"], JAK_rewrite::jakCleanurl($bl["title"]));
|
||||
?>
|
||||
|
||||
<div class="col-md-6 pb-3">
|
||||
<div class="card card-plain card-blog text-center">
|
||||
<div class="card-image">
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<img class="img img-raised" src="<?php echo $bl["previmg"];?>" alt="<?php echo $bl["title"];?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h6 class="card-category text-warning"><?php echo JAK_base::jakTimesince($bl['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></h6>
|
||||
<h3 class="card-title">
|
||||
<a href="<?php echo $blogparseurl;?>"><?php echo $bl["title"];?></a>
|
||||
</h3>
|
||||
<p class="card-description">
|
||||
<?php echo jak_cut_text($bl["content"], 200, '...');?>
|
||||
</p>
|
||||
<br>
|
||||
<a href="<?php echo $blogparseurl;?>" class="btn btn-warning btn-round"> <?php echo $jkl['hd135'];?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="pagination-area">
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd17'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section bg-gradient-3" id="cards">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="blog-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'blog-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
|
||||
<?php if (JAK_BLOG_A && isset($jak_blogs) && is_array($jak_blogs)) { ?>
|
||||
|
||||
<div class="row">
|
||||
<?php foreach($jak_blogs as $bl) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $bl["id"], JAK_rewrite::jakCleanurl($bl["title"]));
|
||||
?>
|
||||
|
||||
<div class="card card-plain card-blog pb-5">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<div class="card-image">
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<img class="img" src="<?php echo $bl["previmg"];?>" alt="<?php echo $bl["title"];?>">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<div class="card-body">
|
||||
<h6 class="card-category text-info"><?php echo JAK_base::jakTimesince($bl['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></h6>
|
||||
<h3 class="card-title">
|
||||
<a href="<?php echo $blogparseurl;?>">The four waves of augmented reality</a>
|
||||
</h3>
|
||||
<p class="card-description">
|
||||
<?php echo jak_cut_text($bl["content"], 350, '...');?> <a href="<?php echo $blogparseurl;?>"> <?php echo $jkl['hd135'];?> </a>
|
||||
</p>
|
||||
<p class="author">
|
||||
by <img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$bl["picture"];?>" alt="<?php echo $bl["name"];?>" class="avatar img-raised">
|
||||
<span><?php echo $bl["name"];?></span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="pagination-area">
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd17'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section bg-gradient-3" id="cards">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="blog-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'blog-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
|
||||
<?php if (JAK_BLOG_A && isset($jak_blogs) && is_array($jak_blogs)) { ?>
|
||||
|
||||
<div>
|
||||
<?php foreach($jak_blogs as $bl) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $bl["id"], JAK_rewrite::jakCleanurl($bl["title"]));
|
||||
?>
|
||||
|
||||
<div class="article">
|
||||
<div class="row">
|
||||
<div class="col-md-8 ml-auto mr-auto">
|
||||
<div class="card card-blog card-plain text-center">
|
||||
<div class="card-image">
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<img class="img img-raised" src="<?php echo $bl["previmg"];?>" alt="<?php echo $bl["title"];?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<h3 class="card-title"><?php echo $bl["title"];?></h3>
|
||||
<h6 class="title-uppercase"><?php echo JAK_base::jakTimesince($bl['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></h6>
|
||||
</a>
|
||||
<div class="card-description">
|
||||
<p><?php echo jak_cut_text($bl["content"], 400, '...');?></p>
|
||||
</div>
|
||||
</div>
|
||||
<a href="<?php echo $blogparseurl;?>" class="btn btn-danger btn-round btn-sm"><?php echo $jkl['hd135'];?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="pagination-area">
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd17'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php include_once APP_PATH . 'template/business/tplblocks/header.php'; ?>
|
||||
|
||||
<div class="section bg-gradient-3" id="cards">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit b-<?php echo $pageid; ?>" data-area="blog-<?php echo $pageid; ?>" data-pageid="b-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave b-<?php echo $pageid; ?>" data-area="blog-<?php echo $pageid; ?>" data-pageid="b-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose b-<?php echo $pageid; ?>" data-area="blog-<?php echo $pageid; ?>" data-pageid="b-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="blog-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'blog-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
<?php if (JAK_BLOG_A && isset($jak_blogs) && is_array($jak_blogs)) { ?>
|
||||
|
||||
<div class="row">
|
||||
<?php foreach ($jak_blogs as $bl) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $bl["id"], JAK_rewrite::jakCleanurl($bl["title"]));
|
||||
?>
|
||||
|
||||
|
||||
<div class="col-md-7 pb-4">
|
||||
<a href="<?php echo $blogparseurl; ?>">
|
||||
<img class="img-fluid rounded mb-3 mb-md-0" src="<?php echo $bl["previmg"]; ?>" alt="<?php echo $bl["title"]; ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<h3><?php echo $bl["title"]; ?></h3>
|
||||
<p><?php echo jak_cut_text($bl["content"], 400, '...'); ?></p>
|
||||
<a class="btn btn-primary" href="<?php echo $blogparseurl; ?>"><?php echo $jkl['hd135']; ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="pagination-area">
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd17']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH . 'template/business/tplblocks/footer.php'; ?>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section bg-gradient-3" id="cards">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose b-<?php echo $pageid;?>" data-area="blog-<?php echo $pageid;?>" data-pageid="b-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="blog-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'blog-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
|
||||
<?php if (JAK_BLOG_A && isset($jak_blogs) && is_array($jak_blogs)) { ?>
|
||||
|
||||
<div class="card-columns">
|
||||
<?php foreach($jak_blogs as $bl) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $bl["id"], JAK_rewrite::jakCleanurl($bl["title"]));
|
||||
?>
|
||||
<div class="card card-blog">
|
||||
<div class="card-image">
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<img class="img" src="<?php echo $bl["previmg"];?>" alt="<?php echo $bl["title"];?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h4 class="card-title">
|
||||
<?php echo $bl["title"];?>
|
||||
</h4>
|
||||
<div class="card-description">
|
||||
<?php echo jak_cut_text($bl["content"], 200, '...');?>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $blogparseurl;?>" class="btn btn-danger btn-round"><?php echo $jkl['hd135'];?></a>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
<div class="card-footer pb-4">
|
||||
<div class="author float-left">
|
||||
<a href="#">
|
||||
<img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$bl["picture"];?>" alt="<?php echo $bl["name"];?>" class="avatar img-raised">
|
||||
<span><?php echo $bl["name"];?></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($bl['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="pagination-area">
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd17'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="main">
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 ml-auto mr-auto">
|
||||
<div class="article-content">
|
||||
<?php echo $JAK_FORM_DATA["content"];?>
|
||||
</div>
|
||||
<br>
|
||||
<div class="article-footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<h5><?php echo $jkl['hd138'];?></h5>
|
||||
<?php echo jak_get_tags_frontend($opcacheid, "blogid", $page2);?>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<?php if ($JAK_FORM_DATA["socialbutton"]) { ?>
|
||||
<div class="sharing float-right">
|
||||
<h5><?php echo $jkl['hd137'];?></h5>
|
||||
<a href="mailto:?subject=<?php echo urlencode($JAK_FORM_DATA["title"]);?>&body=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-email"><i class="fa fa-envelope"></i></a>
|
||||
<a href="whatsapp://send?text=<?php echo urlencode($JAK_FORM_DATA["title"]);?>%20<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-whatsapp"><i class="fab fa-whatsapp"></i></a>
|
||||
<a href="https://twitter.com/intent/tweet/?text=<?php echo urlencode($JAK_FORM_DATA["title"]);?>&url=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" target="_blank" class="btn btn-just-icon btn-border btn-twitter"><i class="fab fa-twitter"></i></a>
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?href=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>&t=<?php echo urlencode($JAK_FORM_DATA["title"]);?>" class="btn btn-just-icon btn-border btn-facebook"><i class="fab fa-facebook"></i></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="media-area">
|
||||
<h3 class="text-center"><?php echo $jkl['hd136'];?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="media">
|
||||
<a class="pull-left" href="javascript:void(0)">
|
||||
<div class="avatar big-avatar">
|
||||
<img class="media-object" alt="64x64" src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$JAK_OP_DETAILS["picture"];?>">
|
||||
</div>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><?php echo $JAK_OP_DETAILS["name"];?></h4>
|
||||
<p><?php echo $JAK_OP_DETAILS["aboutme"];?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php if ($JAK_FORM_DATA["comments"]) { ?>
|
||||
<div class="comments media-area">
|
||||
<h3 class="text-center"><?php echo sprintf($jkl['hd65'], '<span id="cComT">'.$JAK_COMMENTS_TOTAL.'</span>');?></h3>
|
||||
<?php if (isset($JAK_COMMENTS) && !empty($JAK_COMMENTS)) { echo jak_build_comments(0, $JAK_COMMENTS, $BLOGADMIN, $CHECK_USR_SESSION, $jkl['hd69'], $jkl['hd67'], false, true); } else { ?>
|
||||
|
||||
<div class="media-body" id="comments-blank"><?php echo $jkl['hd74'];?></div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<span id="insertPost"></span>
|
||||
|
||||
<?php } if ($JAK_FORM_DATA["comments"] && JAK_USERISLOGGED) { ?>
|
||||
|
||||
<h3 class="title text-center"><?php echo $jkl['hd70'];?></h3>
|
||||
<div class="media media-post">
|
||||
<a class="author float-left" href="javascript:void(0)">
|
||||
<div class="avatar">
|
||||
<?php if (JAK_USERID) { ?>
|
||||
<img class="media-object" src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$jakuser->getVar("picture");?>" alt="<?php echo $jakuser->getVar("name");?>">
|
||||
<?php } else { ?>
|
||||
<img class="media-object" src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$jakclient->getVar("picture");?>" alt="<?php echo $jakclient->getVar("name");?>">
|
||||
<?php } ?>
|
||||
</div>
|
||||
</a>
|
||||
<div class="col-md-10">
|
||||
<form class="jak-blogform" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
|
||||
<div class="form-group label-floating bmd-form-group">
|
||||
<label class="form-control-label bmd-label-floating" for="bmessage"><?php echo $jkl["g28"];?></label>
|
||||
<textarea class="form-control" rows="5" name="bmessage" id="bmessage"></textarea>
|
||||
</div>
|
||||
<div class="media-footer">
|
||||
<button type="submit" class="btn btn-primary btn-round btn-wd float-right jak-submit"><?php echo $jkl['g11'];?></button>
|
||||
<input type="hidden" name="send_comment" value="1">
|
||||
<input type="hidden" name="comanswerid" id="comanswerid" value="">
|
||||
<input type="hidden" name="editpostid" id="editpostid" value="">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end media-post -->
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row space-top">
|
||||
<div class="col-6">
|
||||
<?php if (isset($JAK_NAV_PREV) && !empty($JAK_NAV_PREV)) { ?>
|
||||
<a href="<?php echo $JAK_NAV_PREV;?>" class="btn btn-outline-info btn-round"><i class="fa fa-arrow-left"></i> <?php echo $JAK_NAV_PREV_TITLE;?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<?php if (isset($JAK_NAV_NEXT) && !empty($JAK_NAV_NEXT)) { ?>
|
||||
<a href="<?php echo $JAK_NAV_NEXT;?>" class="btn btn-outline-info btn-round"><?php echo $JAK_NAV_NEXT_TITLE;?> <i class="fa fa-arrow-right"></i></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
if (JAK_BLOG_A) {
|
||||
$newblogarticle = $jakdb->select("blog", ["[>]user" => ["opid" => "id"]], ["blog.id", "blog.title", "blog.content", "blog.previmg", "blog.time", "user.name", "user.picture"], ["AND" => ["lang" => $BT_LANGUAGE, "active" => 1], "ORDER" => ["dorder" => "DESC"], "LIMIT" => JAK_BLOG_HOME]);
|
||||
}
|
||||
|
||||
if (isset($newblogarticle) && !empty($newblogarticle)){?>
|
||||
<div class="section" id="cards">
|
||||
<div class="container tim-container">
|
||||
<div class="card-columns">
|
||||
<?php foreach($newblogarticle as $bl) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $bl["id"], JAK_rewrite::jakCleanurl($bl["title"]));
|
||||
?>
|
||||
<div class="card card-blog">
|
||||
<div class="card-image">
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<img class="img" src="<?php echo $bl["previmg"];?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h4 class="card-title">
|
||||
<?php echo $bl["title"];?>
|
||||
</h4>
|
||||
<div class="card-description">
|
||||
<?php echo jak_cut_text($bl["content"], 200, '...');?>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $blogparseurl;?>" class="btn btn-danger btn-round"><?php echo $jkl['hd135'];?></a>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
<div class="card-footer pb-4">
|
||||
<div class="author float-left">
|
||||
<a href="javascript:;">
|
||||
<img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$bl["picture"];?>" alt="<?php echo $bl["name"];?>" class="avatar img-raised">
|
||||
<span><?php echo $bl["name"];?></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($bl['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="container">
|
||||
<div class="row pb-4">
|
||||
<div class="col-md-6 col-sm-10 mb-3">
|
||||
|
||||
<?php if (isset($_SESSION["webembed"])) { ?>
|
||||
<p><a href="<?php echo JAK_rewrite::jakParseurl(JAK_SUPPORT_URL);?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i></a></p>
|
||||
<?php } ?>
|
||||
|
||||
<div class="login-wrapper">
|
||||
|
||||
<div class="login-title">
|
||||
<h2 class="pb-3"><?php echo $jkl['hd18'];?></h2>
|
||||
</div>
|
||||
|
||||
<div class="form-signin">
|
||||
|
||||
<div class="loginF">
|
||||
<?php if (isset($ErrLogin)) { ?>
|
||||
<?php if (defined('JAK_API_PROFILE') && !empty(JAK_API_PROFILE)) { ?>
|
||||
<p class="pt-2"><a href="<?php echo JAK_API_PROFILE;?>" class="btn btn-block btn-danger"><i class="fa fa-key"></i> <?php echo $jkl["hd19"];?></a></p>
|
||||
<?php } else { ?>
|
||||
<p class="pt-2"><a href="javascript:void(0)" class="btn btn-block btn-danger lost-pwd"><i class="fa fa-key"></i> <?php echo $jkl["hd19"];?></a></p>
|
||||
<?php } } ?>
|
||||
<?php if (isset($errorsl)) { ?><div class="alert alert-danger mt-2"><?php echo $errorsl["recaptcha"];?></div><?php } ?>
|
||||
<form id="login_form" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>">
|
||||
<div class="form-group<?php if (isset($ErrLogin)) echo " has-danger";?>">
|
||||
<label for="email"><?php echo $jkl["g5"];?></label>
|
||||
<input type="text" name="email" class="form-control" id="email">
|
||||
</div>
|
||||
<div class="form-group<?php if (isset($ErrLogin)) echo " has-danger";?>">
|
||||
<label for="password"><?php echo $jkl["g77"];?></label>
|
||||
<input type="password" name="password" class="form-control" id="password">
|
||||
</div>
|
||||
|
||||
<?php if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<p><div class="g-recaptcha" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div></p>
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="lcookies" checked>
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
<?php echo $jkl["hd20"];?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="action" value="login">
|
||||
<button type="submit" name="logID" class="btn btn-rose btn-round"><?php echo $jkl["hd18"];?></button>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="forgotP">
|
||||
<h4><?php echo $jkl["hd21"];?></h4>
|
||||
<?php if (isset($errorfp)) { ?><div class="alert alert-danger mt-2"><?php echo $errorfp["e"];?></div><?php } ?>
|
||||
<form action="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>" method="post">
|
||||
<div class="form-group<?php if (isset($errorfp)) echo " has-danger";?>">
|
||||
<label for="lsE"><?php echo $jkl["g5"];?></label>
|
||||
<input type="text" name="lsE" class="form-control" id="lsE">
|
||||
</div>
|
||||
|
||||
<?php if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<p><div class="g-recaptcha" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div></p>
|
||||
<?php } ?>
|
||||
|
||||
<button type="submit" name="forgotP" class="btn btn-rose btn-round"><?php echo $jkl["hd22"];?></button>
|
||||
<input type="hidden" name="action" value="forgot-password">
|
||||
</form>
|
||||
<hr>
|
||||
<p><a href="javascript:void(0)" class="btn btn-success btn-round lost-pwd"><i class="fa fa-lightbulb-o"></i> <?php echo $jkl["hd23"];?></a></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-10">
|
||||
<?php if (JAK_REGISTER) { ?>
|
||||
<div class="register-wrapper">
|
||||
|
||||
<div class="register-title">
|
||||
<h2 class="pb-3"><?php echo $jkl['hd24'];?></h2>
|
||||
</div>
|
||||
|
||||
<div class="form-signin">
|
||||
<?php if ($errorsreg) { ?>
|
||||
<div class="alert alert-danger mt-2">
|
||||
<?php if (isset($errorsreg) && !empty($errorsreg)) foreach ($errorsreg as $e) { echo $e; }?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<form method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>">
|
||||
<div class="form-group<?php if (isset($errorsreg["e"])) echo " has-danger";?>">
|
||||
<label for="namereg"><?php echo $jkl["g4"];?></label>
|
||||
<input type="text" name="reg_name" class="form-control" id="namereg" value="<?php if (isset($_REQUEST["reg_name"])) echo $_REQUEST["reg_name"];?>">
|
||||
</div>
|
||||
<div class="form-group<?php if (isset($errorsreg["e1"])) echo " has-danger";?>">
|
||||
<label for="emailreg"><?php echo $jkl["g5"];?></label>
|
||||
<input type="text" name="reg_email" class="form-control" id="emailreg" value="<?php if (isset($_REQUEST["reg_email"])) echo $_REQUEST["reg_email"];?>">
|
||||
</div>
|
||||
|
||||
<?php if (isset($custom_fields_register) && !empty($custom_fields_register)) echo $custom_fields_register;?>
|
||||
|
||||
<?php if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<p><div class="g-recaptcha" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div></p>
|
||||
<?php } ?>
|
||||
|
||||
<input type="hidden" name="action" value="register">
|
||||
<button type="submit" name="registerID" class="btn btn-rose btn-round"><?php echo $jkl["hd30"];?></button>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,116 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>" enctype="multipart/form-data">
|
||||
<div class="container">
|
||||
<div class="col-md-4 col-sm-6 ml-auto mr-auto">
|
||||
<div class="card card-profile card-plain">
|
||||
<div class="card-avatar border-white">
|
||||
<a href="#avatar">
|
||||
<img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$jakclient->getVar("picture");?>" alt="Profile Picture">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php echo $jakclient->getVar("name");?></h4>
|
||||
<h6 class="card-category"><?php echo $jakclient->getVar("email");?></h6>
|
||||
<span class="badge badge-pill badge-primary"><?php echo sprintf($jkl['hd56'], (!empty($jakclient->getVar("chatrequests")) ? $jakclient->getVar("chatrequests") : 0));?></span>
|
||||
<span class="badge badge-pill badge-primary"><?php echo sprintf($jkl['hd57'], $jakclient->getVar("supportrequests"));?></span>
|
||||
<?php if (JAK_BILLING_MODE == 1) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd44'], $jakclient->getVar("credits"));?></span>
|
||||
<?php } elseif (JAK_BILLING_MODE == 2) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd45'], JAK_base::jakTimesince($jakclient->getVar("paid_until"), JAK_DATEFORMAT, JAK_TIMEFORMAT));?></span>
|
||||
<?php } elseif (JAK_BILLING_MODE == 3) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd142'], JAK_base::jakTimesince($jakclient->getVar("support_until"), JAK_DATEFORMAT, JAK_TIMEFORMAT));?></span>
|
||||
<?php } ?>
|
||||
|
||||
<hr>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>" class="btn btn-round btn-outline-primary btn-sm"><i class="fa fa-chevron-left"></i><?php echo $jkl['hd143'];?></a>
|
||||
<button type="submit" class="btn btn-round btn-success btn-sm"><i class="fa fa-check"></i> <?php echo $jkl['hd53'];?></button>
|
||||
|
||||
</div>
|
||||
|
||||
</div> <!-- end card -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="row mb-5">
|
||||
|
||||
<div class="col-md-8 ml-auto mr-auto">
|
||||
<div class="form-group">
|
||||
<label for="name" class="bmd-label-floating"><?php echo $jkl["g4"];?></label>
|
||||
<input type="text" name="name" id="name" class="form-control" value="<?php echo $jakclient->getVar("name");?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email" class="bmd-label-floating"><?php echo $jkl["g5"];?></label>
|
||||
<input type="text" name="email" id="email" class="form-control" value="<?php echo $jakclient->getVar("email");?>"<?php if (defined('JAK_API_PROFILE') && !empty(JAK_API_PROFILE)) echo ' readonly';?>>
|
||||
<?php if (defined('JAK_API_PROFILE') && !empty(JAK_API_PROFILE)) { ?>
|
||||
<small class="form-text text-muted">
|
||||
<?php echo sprintf($jkl['hd120'], JAK_API_PROFILE);?>
|
||||
</small>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group<?php if (isset($errorsp["e2"]) || isset($errorsp["e3"])) echo " has-danger";?>">
|
||||
<label for="pass" class="bmd-label-floating"><?php echo $jkl["hd25"];?></label>
|
||||
<input type="password" value placeholder="<?php echo $jkl["hd25"];?>" name="jak_newpassword" id="pass" class="form-control"<?php if (defined('JAK_API_PROFILE') && !empty(JAK_API_PROFILE)) echo ' readonly';?>>
|
||||
</div>
|
||||
|
||||
<div class="form-group<?php if (isset($errorsp["e2"]) || isset($errorsp["e3"])) echo " has-danger";?>">
|
||||
<label for="jak_cpassword" class="bmd-label-floating"><?php echo $jkl["hd59"];?></label>
|
||||
<input type="password" value placeholder="<?php echo $jkl["hd59"];?>" name="jak_cpassword" id="jak_cpassword" class="form-control"<?php if (defined('JAK_API_PROFILE') && !empty(JAK_API_PROFILE)) echo ' readonly';?>>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="progress">
|
||||
<div id="jak_pstrength" class="progress-bar progress-bar-striped progress-bar-animated" style="width:0" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (defined('JAK_API_PROFILE') && !empty(JAK_API_PROFILE)) { ?>
|
||||
<small class="form-text text-muted">
|
||||
<?php echo sprintf($jkl['hd120'], JAK_API_PROFILE);?>
|
||||
</small>
|
||||
<?php } ?>
|
||||
<hr>
|
||||
|
||||
<div class="form-group form-file-upload form-file-multiple<?php if (isset($errorsp["e4"])) echo " has-danger";?>">
|
||||
<label for="avatar" class="bmd-label-floating"><?php echo $jkl["g18"];?></label>
|
||||
<div class="input-group">
|
||||
<input type="file" class="form-control inputFileVisible" name="avatar" id="avatar" autocomplete="off" accept="image/*">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text"><i class="fa fa-link"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="deleteavatar" value="1"> <?php echo $jkl["hd126"];?>
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="jak_lang" class="bmd-label-floating"><?php echo $jkl["hd54"];?></label>
|
||||
<select name="jak_lang" class="form-control">
|
||||
<option value=""><?php echo $jkl["hd55"];?></option>
|
||||
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { if ($lf != JAK_LANG) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["language"] == $lf) echo ' selected';?>><?php echo ucwords($lf);?></option><?php } } ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<?php if (isset($custom_fields) && !empty($custom_fields)) echo $custom_fields;?>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="text-center">
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>" class="btn btn-round btn-outline-primary btn-sm"><i class="fa fa-chevron-left"></i><?php echo $jkl['hd143'];?></a>
|
||||
<button type="submit" class="btn btn-round btn-success btn-sm"><i class="fa fa-check"></i> <?php echo $jkl['hd53'];?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="save_client">
|
||||
</form>
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,87 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section section-gray">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-10 ml-auto mr-auto">
|
||||
<div class="card card-contact no-transition">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit ct-<?php echo $pageid;?>" data-area="contact-title-<?php echo $pageid;?>" data-pageid="ct-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave ct-<?php echo $pageid;?>" data-area="contact-title-<?php echo $pageid;?>" data-pageid="ct-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose ct-<?php echo $pageid;?>" data-area="contact-title-<?php echo $pageid;?>" data-pageid="ct-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="text-center contact-title-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'contact-title-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-5 ml-auto">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit cb-<?php echo $pageid;?>" data-area="contact-body-<?php echo $pageid;?>" data-pageid="cb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave cb-<?php echo $pageid;?>" data-area="contact-body-<?php echo $pageid;?>" data-pageid="cb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose cb-<?php echo $pageid;?>" data-area="contact-body-<?php echo $pageid;?>" data-pageid="cb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="card-body contact-body-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'contact-body-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5 mr-auto pt-5">
|
||||
<div class="jak-thankyou"></div>
|
||||
<form class="jak-ajaxform" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group label-floating">
|
||||
<label for="gname" class="control-label"><?php echo $jkl["g4"];?></label>
|
||||
<input type="text" name="gname" id="gname" class="form-control" placeholder="<?php echo $jkl["g4"];?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group label-floating">
|
||||
<label for="gemail" class="control-label"><?php echo $jkl["g5"];?></label>
|
||||
<input type="email" name="gemail" id="gemail" class="form-control" placeholder="<?php echo $jkl["g5"];?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (isset($custom_fields_contact) && !empty($custom_fields_contact)) echo $custom_fields_contact;?>
|
||||
|
||||
<div class="form-group label-floating">
|
||||
<label for="gmessage" class="control-label"><?php echo $jkl["g6"];?></label>
|
||||
<textarea name="gmessage" class="form-control" id="gmessage" rows="6" placeholder="Message"></textarea>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<?php if (!empty(JAK_DSGVO_CONTACT)) { ?>
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="gdsgvo" id="gdsgvo">
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
<?php echo JAK_DSGVO_CONTACT;?>
|
||||
</label>
|
||||
</div>
|
||||
<?php } if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<p><div class="g-recaptcha" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-md-6 text-right">
|
||||
<button type="submit" class="btn btn-primary ls-submit"><?php echo $jkl['g7'];?></button>
|
||||
<input type="hidden" name="send_email" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,58 @@
|
||||
<div class="content-contact">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit cf-<?php echo $pageid;?>" data-area="contact-form-<?php echo $pageid;?>" data-pageid="cf-<?php echo $pageid;?>"data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave cf-<?php echo $pageid;?>" data-area="contact-form-<?php echo $pageid;?>" data-pageid="cf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose cf-<?php echo $pageid;?>" data-area="contact-form-<?php echo $pageid;?>" data-pageid="cf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 contact-form-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'contact-form-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
|
||||
<div class="jak-thankyou"></div>
|
||||
<form class="jak-ajaxform" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="gname" class="sr-only"><?php echo $jkl["g4"];?></label>
|
||||
<input type="text" name="gname" id="gname" class="form-control" placeholder="<?php echo $jkl["g4"];?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="form-group">
|
||||
<label for="gemail" class="sr-only"><?php echo $jkl["g5"];?></label>
|
||||
<input type="text" name="gemail" id="gemail" class="form-control" placeholder="<?php echo $jkl["g5"];?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (isset($custom_fields_contact) && !empty($custom_fields_contact)) echo $custom_fields_contact;?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="gmessage" class="sr-only"><?php echo $jkl["g6"];?></label>
|
||||
<textarea class="form-control" name="gmessage" id="gmessage" rows="5" placeholder="<?php echo $jkl["g6"];?>"></textarea>
|
||||
</div>
|
||||
<?php if (!empty(JAK_DSGVO_CONTACT)) { ?>
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="gdsgvo" id="gdsgvo">
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
<?php echo JAK_DSGVO_CONTACT;?>
|
||||
</label>
|
||||
</div>
|
||||
<?php } if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<p><div class="g-recaptcha" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div></p>
|
||||
<?php } ?>
|
||||
<p class="mb-0"><button type="submit" class="btn btn-success btn-green ls-submit"><?php echo $jkl['g7'];?></button></p>
|
||||
<input type="hidden" name="send_email" value="1">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,264 @@
|
||||
<?php include_once APP_PATH . 'template/business/tplblocks/header.php'; ?>
|
||||
|
||||
<?php if (isset($page1) && isset($page2) && $page1 == "pay") {
|
||||
if ($page2 == "success") { ?>
|
||||
<div class="alert alert-success"><?php echo $jkl['hd113']; ?></div>
|
||||
<?php } else { ?>
|
||||
<div class="alert alert-danger"><?php echo $jkl['hd114']; ?></div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php if (isset($allcsupport) && is_array($allcsupport)) { ?>
|
||||
<div class="container">
|
||||
<div class="col-md-6 col-sm-8 ml-auto mr-auto">
|
||||
<div class="card card-profile card-plain">
|
||||
<div class="card-avatar border-white">
|
||||
<a href="#avatar">
|
||||
<img src="<?php echo BASE_URL . JAK_FILES_DIRECTORY . $jakclient->getVar("picture"); ?>" alt="<?php echo $jakclient->getVar("name"); ?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php echo $jakclient->getVar("name"); ?></h4>
|
||||
<h6 class="card-category"><?php echo $jakclient->getVar("email"); ?></h6>
|
||||
|
||||
<span class="badge badge-pill badge-primary"><?php echo sprintf($jkl['hd56'], (!empty($jakclient->getVar("chatrequests")) ? $jakclient->getVar("chatrequests") : 0)); ?></span>
|
||||
<span class="badge badge-pill badge-primary"><?php echo sprintf($jkl['hd57'], $jakclient->getVar("supportrequests")); ?></span>
|
||||
<?php if (JAK_BILLING_MODE == 1) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd44'], $jakclient->getVar("credits")); ?></span>
|
||||
<?php } elseif (JAK_BILLING_MODE == 2) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd45'], JAK_base::jakTimesince($jakclient->getVar("paid_until"), JAK_DATEFORMAT, JAK_TIMEFORMAT)); ?></span>
|
||||
<?php } elseif (JAK_BILLING_MODE == 3) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd142'], JAK_base::jakTimesince($jakclient->getVar("support_until"), JAK_DATEFORMAT, JAK_TIMEFORMAT)); ?></span>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit d-<?php echo $pageid; ?>" data-area="dashboard-<?php echo $pageid; ?>" data-pageid="d-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave d-<?php echo $pageid; ?>" data-area="dashboard-<?php echo $pageid; ?>" data-pageid="d-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose d-<?php echo $pageid; ?>" data-area="dashboard-<?php echo $pageid; ?>" data-pageid="d-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="col-md-12 dashboard-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'dashboard-' . $pageid) {
|
||||
|
||||
$phold = array('{clientname}', '{clientregister}', '{clientlastactivity}', '{clientemail}');
|
||||
if (JAK_USERID) {
|
||||
$replace = array($jakuser->getVar("name"), JAK_base::jakTimesince($jakuser->getVar("time"), JAK_DATEFORMAT, JAK_TIMEFORMAT), JAK_base::jakTimesince($jakuser->getVar("lastactivity"), JAK_DATEFORMAT, JAK_TIMEFORMAT), $jakuser->getVar("email"));
|
||||
} else {
|
||||
$replace = array($jakclient->getVar("name"), JAK_base::jakTimesince($jakclient->getVar("time"), JAK_DATEFORMAT, JAK_TIMEFORMAT), JAK_base::jakTimesince($jakclient->getVar("lastactivity"), JAK_DATEFORMAT, JAK_TIMEFORMAT), $jakclient->getVar("email"));
|
||||
}
|
||||
$regtext = str_replace($phold, $replace, $t["description"]);
|
||||
|
||||
echo $regtext;
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
<hr>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 'n'); ?>"><button class="btn btn-rotate btn-round btn-outline-primary btn-sm"><i class="fa fa-paper-plane"></i> <?php echo $jkl['hd47']; ?></button></a>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL, 'edit'); ?>" class="btn btn-rotate btn-round btn-outline-primary btn-sm"><i class="fa fa-cog"></i> <?php echo $jkl['g85']; ?></a>
|
||||
<?php if (JAK_BILLING_MODE == 3) { ?>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL, 'envato'); ?>" class="btn btn-rotate btn-round btn-outline-primary btn-sm"><i class="fa fa-list-alt"></i> <?php echo $jkl['hd144']; ?></a>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div> <!-- end card -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-inputs section-white">
|
||||
<div class="container">
|
||||
|
||||
<div class="navbar navbar-expand-lg bg-primary">
|
||||
<div class="container">
|
||||
<h4 class="navbar-brand"><?php echo $jkl['hd141']; ?></h4>
|
||||
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
<select class="selectpicker" name="jak_shownr" id="jak_shownr" data-style="select-with-transition btn-primary btn-round">
|
||||
<option value="10"><?php echo sprintf($jkl['hd139'], 10); ?></option>
|
||||
<option value="25" <?php if (isset($_SESSION["shownr"]) && $_SESSION["shownr"] == 25) echo ' selected'; ?>><?php echo sprintf($jkl['hd139'], 25); ?></option>
|
||||
<option value="50" <?php if (isset($_SESSION["shownr"]) && $_SESSION["shownr"] == 50) echo ' selected'; ?>><?php echo sprintf($jkl['hd139'], 50); ?></option>
|
||||
<option value="100" <?php if (isset($_SESSION["shownr"]) && $_SESSION["shownr"] == 100) echo ' selected'; ?>><?php echo sprintf($jkl['hd139'], 100); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<?php if (isset($dep_filter) && is_array($dep_filter) && !empty($dep_filter)) { ?>
|
||||
<form id="jak_statform" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
||||
<select name="jak_depid" id="jak_depid" class="selectpicker" data-style="select-with-transition btn-primary btn-round">
|
||||
<option value="0"><?php echo $jkl['g88']; ?></option>
|
||||
<?php foreach ($dep_filter as $v) { ?>
|
||||
<option value="<?php echo $v["id"]; ?>" <?php if (isset($_SESSION["sortdepid"]) && $_SESSION["sortdepid"] == $v["id"]) echo ' selected'; ?>><?php echo $v["title"]; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<input type="hidden" name="action" value="filter">
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-row align-items-center">
|
||||
<div class="col-10">
|
||||
<input class="form-control mr-sm-2 no-border" type="text" placeholder="Search" id="supportItext">
|
||||
</div>
|
||||
<div class="col-2 text-left">
|
||||
<button type="submit" class="btn btn-primary btn-just-icon btn-round" id="supportIsearch"><i class="fa fa-search" aria-hidden="true"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-auto text-center">
|
||||
<a href="<?php echo (JAK_USERID ? JAK_rewrite::jakParseurl(JAK_OPERATOR_LOC, 'support', 'new') : JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 'n')); ?>" class="btn btn-block btn-rotate btn-round btn-danger"><i class="fa fa-paper-plane"></i> <?php echo $jkl['hd47']; ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table id="dynamic-data" class="table table-hover" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<th class="text-center"><span class="badge badge-pill badge-info"><i class="fa fa-hashtag" aria-hidden="true" data-toggle="tooltip" data-placement="top" title="" data-original-title="Ticket ID" aria-describedby="tooltip50022"></i></span></th>
|
||||
<th><?php echo $jkl['hd7']; ?></th>
|
||||
<th><?php echo $jkl['hd9']; ?></th>
|
||||
<th><?php echo $jkl['hd8']; ?></th>
|
||||
<th><?php echo $jkl['hd10']; ?></th>
|
||||
<th class="text-right"><?php echo $jkl['hd11'] . ' / ' . $jkl['hd12']; ?></th>
|
||||
<th class="text-right"><?php echo $jkl['hd13']; ?></th>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<?php if (JAK_BILLING_MODE != 0 && isset($allpackages) && !empty($allpackages)) { ?>
|
||||
<div class="row">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit db-<?php echo $pageid; ?>" data-area="dashboard-billing-<?php echo $pageid; ?>" data-pageid="db-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave db-<?php echo $pageid; ?>" data-area="dashboard-billing-<?php echo $pageid; ?>" data-pageid="db-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose db-<?php echo $pageid; ?>" data-area="dashboard-billing-<?php echo $pageid; ?>" data-pageid="db-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 dashboard-billing-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'dashboard-billing-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
<form method="post" id="buypackage" action="<?php echo $_SERVER['REQUEST_URI'];?>">
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-12">
|
||||
<div class="card-deck">
|
||||
<?php foreach ($allpackages as $allp) { ?>
|
||||
<div class="card">
|
||||
<?php if (!empty($allp["previmg"])) { ?><img class="card-img-top img-fluid" src="<?php echo $allp["previmg"]; ?>" alt="<?php echo $allp["title"]; ?>"><?php } ?>
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php echo $allp["title"]; ?></h4>
|
||||
<p class="card-text"><?php echo $allp["content"]; ?></p>
|
||||
<?php if (JAK_BILLING_MODE == 1) { ?>
|
||||
<p class="card-text"><?php echo sprintf($jkl['hd50'], $allp["credits"]); ?></p>
|
||||
<?php } elseif (JAK_BILLING_MODE == 2) { ?>
|
||||
<p class="card-text"><?php echo sprintf($jkl['hd51'], $allp["paidtill"]); ?></p>
|
||||
<?php } ?>
|
||||
<p class="card-text"><?php echo sprintf($jkl['hd52'], jak_calc_indiv_price($allp["amount"], $jakclient->getVar("custom_price")) . ' ' . $allp["currency"]); ?></p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<?php if (JAK_BILLING_MODE == 2) { ?>
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="subscribe" id="subscribe-<?php echo $allp["id"]; ?>" value="1"> <?php echo $jkl["hd169"];?>
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<?php } if (JAK_STRIPE_PUBLISH_KEY) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-success btn-green paynow" data-package="<?php echo $allp["id"]; ?>" data-amount="<?php echo jak_calc_indiv_price($allp["amount"], $jakclient->getVar("custom_price")); ?>" data-currency="<?php echo $allp["currency"]; ?>" data-title="<?php echo $allp["title"]; ?>" data-description="<?php echo $allp["content"]; ?>" data-paidhow="stripe"><i class="jak-loadbtn"></i> <i class="fab fa-cc-stripe"></i> <?php echo $jkl['hd48'];?></a>
|
||||
<?php }
|
||||
if (JAK_PAYPAL_CLIENT) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-success btn-green paynow" data-package="<?php echo $allp["id"]; ?>" data-amount="<?php echo jak_calc_indiv_price($allp["amount"], $jakclient->getVar("custom_price")); ?>" data-currency="<?php echo $allp["currency"]; ?>" data-title="<?php echo $allp["title"]; ?>" data-description="<?php echo $allp["content"]; ?>" data-paidhow="paypal"><i class="jak-loadbtn"></i> <i class="fab fa-paypal"></i> <?php echo $jkl['hd49'];?></a>
|
||||
<?php }
|
||||
if (JAK_YOOKASSA_ID) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-success btn-green paynow" data-package="<?php echo $allp["id"]; ?>" data-amount="<?php echo jak_calc_indiv_price($allp["amount"], $jakclient->getVar("custom_price")); ?>" data-currency="<?php echo $allp["currency"]; ?>" data-title="<?php echo $allp["title"]; ?>" data-description="<?php echo $allp["content"]; ?>" data-paidhow="yookassa"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> <?php echo $jkl['hd170'];?></a>
|
||||
<?php }
|
||||
if (JAK_PAYSTACK_SECRET) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-success btn-green paynow" data-package="<?php echo $allp["id"]; ?>" data-amount="<?php echo jak_calc_indiv_price($allp["amount"], $jakclient->getVar("custom_price")); ?>" data-currency="<?php echo $allp["currency"]; ?>" data-title="<?php echo $allp["title"]; ?>" data-description="<?php echo $allp["content"]; ?>" data-paidhow="paystack"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> <?php echo $jkl['hd171'];?></a>
|
||||
<?php }
|
||||
if (JAK_AUTHORIZE_ID) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-success btn-green paynow" data-package="<?php echo $allp["id"]; ?>" data-amount="<?php echo jak_calc_indiv_price($allp["amount"], $jakclient->getVar("custom_price")); ?>" data-currency="<?php echo $allp["currency"]; ?>" data-title="<?php echo $allp["title"]; ?>" data-description="<?php echo $allp["content"]; ?>" data-paidhow="authorize.net"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> <?php echo $jkl['hd172'];?></a>
|
||||
<?php }
|
||||
if (JAK_TWOCO) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-success btn-green paynow" data-package="<?php echo $allp["id"]; ?>" data-amount="<?php echo jak_calc_indiv_price($allp["amount"], $jakclient->getVar("custom_price")); ?>" data-currency="<?php echo $allp["currency"]; ?>" data-title="<?php echo $allp["title"]; ?>" data-description="<?php echo $allp["content"]; ?>" data-paidhow="2checkout"><i class="jak-loadbtn"></i> <i class="fas fa-credit-card-front"></i> <?php echo $jkl['hd129'];?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="pid" id="pid">
|
||||
<input type="hidden" name="paidhow" id="paidhow">
|
||||
<input type="hidden" name="amount" id="amount">
|
||||
<input type="hidden" name="subscribe" id="subscribe" value="0">
|
||||
<input type="hidden" name="action" value="payment">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (JAK_BILLING_MODE != 0 && isset($last5pay) && !empty($last5pay)) { ?>
|
||||
<div class="row">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit dbh-<?php echo $pageid; ?>" data-area="dashboard-billing-history-<?php echo $pageid; ?>" data-pageid="dbh-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave dbh-<?php echo $pageid; ?>" data-area="dashboard-billing-history-<?php echo $pageid; ?>" data-pageid="dbh-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose dbh-<?php echo $pageid; ?>" data-area="dashboard-billing-history-<?php echo $pageid; ?>" data-pageid="dbh-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 dashboard-billing-history-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'dashboard-billing-history-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table class="table table-responsive table-light w-100 d-block d-md-table">
|
||||
<thead class="table-custom-green">
|
||||
<th><?php echo $jkl['hd38']; ?></th>
|
||||
<th><?php echo $jkl['hd39']; ?></th>
|
||||
<th><?php echo $jkl['hd41']; ?></th>
|
||||
<th><?php echo $jkl['hd40']; ?></th>
|
||||
<th><?php echo $jkl['hd178']; ?></th>
|
||||
<th><?php echo $jkl['hd46']; ?></th>
|
||||
<th><?php echo $jkl['hd11']; ?></th>
|
||||
</thead>
|
||||
<?php foreach ($last5pay as $l5p) { ?>
|
||||
<tr>
|
||||
<td><?php echo $l5p["title"]; ?></td>
|
||||
<td><?php echo $l5p["amount"] . ' ' . $l5p["currency"]; ?></td>
|
||||
<td><?php echo $l5p["paidhow"]; ?></td>
|
||||
<td><?php echo JAK_base::jakTimesince($l5p['paidwhen'], JAK_DATEFORMAT, JAK_TIMEFORMAT); ?></td>
|
||||
<td><?php echo JAK_base::jakTimesince($l5p['paidtill'], JAK_DATEFORMAT, JAK_TIMEFORMAT); ?></td>
|
||||
<td><?php echo ($l5p["subscribed"] && $l5p["active"] ? '<a href="'.JAK_rewrite::jakParseurl(JAK_CLIENT_URL, 'withdrawal', $l5p["id"], JAK_CLIENTID).'" class="btn btn-sm btn-danger">'.$jkl['hd179'].'</a>' : '-');?></td>
|
||||
<td><?php echo ($l5p["success"] == 0 ? '<span class="badge badge-warning">' . $jkl['hd43'] . '</span>' : '<span class="badge badge-success">' . $jkl['hd42'] . '</span>'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } include_once APP_PATH . 'template/business/tplblocks/footer.php'; ?>
|
||||
@@ -0,0 +1,115 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="row center">
|
||||
<div class="col-md-4 col-sm-6 ml-auto mr-auto">
|
||||
<div class="card card-profile card-plain">
|
||||
<div class="card-avatar border-white">
|
||||
<a href="#avatar">
|
||||
<img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$jakclient->getVar("picture");?>" alt="<?php echo $jakclient->getVar("name");?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php echo $jakclient->getVar("name");?></h4>
|
||||
<h6 class="card-category"><?php echo $jakclient->getVar("email");?></h6>
|
||||
<span class="badge badge-pill badge-primary"><?php echo sprintf($jkl['hd56'], (!empty($jakclient->getVar("chatrequests")) ? $jakclient->getVar("chatrequests") : 0));?></span>
|
||||
<span class="badge badge-pill badge-primary"><?php echo sprintf($jkl['hd57'], $jakclient->getVar("supportrequests"));?></span>
|
||||
<?php if (JAK_BILLING_MODE == 1) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd44'], $jakclient->getVar("credits"));?></span>
|
||||
<?php } elseif (JAK_BILLING_MODE == 2) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd45'], JAK_base::jakTimesince($jakclient->getVar("paid_until"), JAK_DATEFORMAT, JAK_TIMEFORMAT));?></span>
|
||||
<?php } elseif (JAK_BILLING_MODE == 3) { ?>
|
||||
<span class="badge badge-pill badge-success"><?php echo sprintf($jkl['hd142'], JAK_base::jakTimesince($jakclient->getVar("support_until"), JAK_DATEFORMAT, JAK_TIMEFORMAT));?></span>
|
||||
<?php } ?>
|
||||
|
||||
<hr>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>" class="btn btn-move-left btn-round btn-outline-primary btn-sm"><i class="fa fa-chevron-left"></i><?php echo $jkl['hd143'];?></a>
|
||||
|
||||
</div>
|
||||
|
||||
</div> <!-- end card -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit e-<?php echo $pageid;?>" data-area="envato-<?php echo $pageid;?>" data-pageid="e-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave e-<?php echo $pageid;?>" data-area="envato-<?php echo $pageid;?>" data-pageid="e-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose e-<?php echo $pageid;?>" data-area="envato-<?php echo $pageid;?>" data-pageid="e-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 envato-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'envato-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3><?php echo $jkl['hd144'];?></h3>
|
||||
|
||||
<?php if ($errors) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php if (isset($errors) && !empty($errors)) foreach ($errors as $e) { echo $e; }?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<input type="text" class="form-control" name="purchase_code" id="purchase_code" placeholder="<?php echo $jkl["hd147"];?>" aria-label="<?php echo $jkl["hd147"];?>" aria-describedby="button-addon2">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-success" type="submit" id="purchase_code2"><?php echo $jkl['hd151'];?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="action" value="add_license">
|
||||
|
||||
</form>
|
||||
|
||||
<nav class="navbar navbar-expand-lg bg-primary">
|
||||
<div class="container">
|
||||
<h4 class="navbar-brand"><?php echo $jkl['hd145'];?></h4>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
|
||||
<?php if (isset($allLics) && !empty($allLics)) { ?>
|
||||
|
||||
<div class="table-responsive mb-5">
|
||||
<table id="sortable-data" class="table">
|
||||
<thead class="table-custom-dark">
|
||||
<th><?php echo $jkl['hd150'];?></th>
|
||||
<th><?php echo $jkl['hd146'];?></th>
|
||||
<th><?php echo $jkl['hd147'];?></th>
|
||||
<th><?php echo $jkl['hd148'];?></th>
|
||||
<th><?php echo $jkl['hd149'];?></th>
|
||||
</thead>
|
||||
<?php foreach($allLics as $al) { ?>
|
||||
<tr>
|
||||
<td><?php echo $al["product_name"];?></td>
|
||||
<td><?php echo $al["purchase_name"];?></td>
|
||||
<td><?php echo $al["purchase_code"];?></td>
|
||||
<td><?php echo JAK_base::jakTimesince($al['purchased'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
|
||||
<td><?php echo JAK_base::jakTimesince($al['support_expires'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="btn-block alert alert-info mt-3 mb-5">
|
||||
<?php echo $jkl['nolicense'];?>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,152 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if ($category_tpl) { ?>
|
||||
<!-- Category View -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<h2 class="title mb-0"><?php echo $catgory_title;?></h2>
|
||||
<?php echo (isset($catgory_description) && !empty($catgory_description) ? '<h5 class="description">'.$catgory_description.'</h5>' : '')?>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<nav class="col-md-3 sidebar" id="sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<span class="badge badge-info"><i class="fa fa-feather" aria-hidden="true"></i> <?php echo $jkl['hd76'];?></span>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"];?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"];?></strong></a> <span class="badge badge-pill badge-info float-right mb-0"><?php echo $c["articles"];?></span>
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show";?>" id="dropdownMenuLink<?php echo $c["id"];?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"];?></a></li>
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"];?></a> <span class="badge badge-pill badge-primary float-right mb-0"><?php echo $sc["articles"];?></span></li>
|
||||
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="col-md-9 pl-5 pr-5">
|
||||
<div class="row">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-xl-6">
|
||||
<div class="card">
|
||||
<div class="card-body pb-5">
|
||||
<h4 class="card-title"><?php echo $faq["title"];?></h4>
|
||||
<h6 class="text-info card-category pb-2"><i class="<?php echo $faq["icon"];?>"></i> <?php echo $faq["titlecat"];?></h6>
|
||||
|
||||
<p class="card-text"><?php echo jak_cut_text($faq["content"], 100, '...');?></p>
|
||||
|
||||
<a href="<?php echo $faqparseurl;?>" class="float-right btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
<i class="fa fa-clock" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- Main view -->
|
||||
|
||||
<?php if (JAK_FAQ_A && isset($allfaq) && is_array($allfaq)) { ?>
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section bg-gradient-3">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center space-bot-big">
|
||||
<ul class="nav nav-pills nav-pills-info justify-content-center">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if (empty($page1)) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL);?>"><?php echo $jkl['hd122'];?></a>
|
||||
</li>
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if ($page2 == $c["id"]) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><?php echo $c["title"];?></a>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="card-columns">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="card">
|
||||
<div class="card-body pb-5">
|
||||
<h4 class="card-title"><?php echo $faq["title"];?></h4>
|
||||
<h6 class="text-info card-category pb-2"><i class="<?php echo $faq["icon"];?>"></i> <?php echo $faq["titlecat"];?></h6>
|
||||
|
||||
<p class="card-text"><?php echo jak_cut_text($faq["content"], 100, '...');?></p>
|
||||
|
||||
<a href="<?php echo $faqparseurl;?>" class="float-right btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
<i class="fa fa-clock" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
<?php if (isset($_SESSION["webembed"]) && $page1 == 'c') { ?>
|
||||
<p><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL);?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i></a></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container-fluid">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-bottom-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-bottom-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,133 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if ($category_tpl) { ?>
|
||||
<!-- Category View -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<h2 class="title mb-0"><?php echo $catgory_title;?></h2>
|
||||
<?php echo (isset($catgory_description) && !empty($catgory_description) ? '<h5 class="description">'.$catgory_description.'</h5>' : '')?>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<nav class="col-md-3 sidebar" id="sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<span class="badge badge-info"><i class="fa fa-feather" aria-hidden="true"></i> <?php echo $jkl['hd76'];?></span>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"];?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"];?></strong></a> <span class="badge badge-pill badge-info float-right mb-0"><?php echo $c["articles"];?></span>
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show";?>" id="dropdownMenuLink<?php echo $c["id"];?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"];?></a></li>
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"];?></a> <span class="badge badge-pill badge-primary float-right mb-0"><?php echo $sc["articles"];?></span></li>
|
||||
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="col-md-9 pl-5 pr-5">
|
||||
<div class="row">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-xl-6">
|
||||
<div class="card">
|
||||
<div class="card-body pb-5">
|
||||
<h4 class="card-title"><?php echo $faq["title"];?></h4>
|
||||
<h6 class="text-info card-category pb-2"><i class="<?php echo $faq["icon"];?>"></i> <?php echo $faq["titlecat"];?></h6>
|
||||
|
||||
<p class="card-text"><?php echo jak_cut_text($faq["content"], 100, '...');?></p>
|
||||
|
||||
<a href="<?php echo $faqparseurl;?>" class="float-right btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
<i class="fa fa-clock" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- Main view -->
|
||||
|
||||
<?php if (JAK_FAQ_A && isset($allfaq) && is_array($allfaq)) { ?>
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { $totalA = 0; if ($c["subcat"] == 0) { $totalA = $c["articles"]; ?>
|
||||
<div class="info info-horizontal faq-width">
|
||||
<div class="icon icon-<?php echo $c["class"];?>">
|
||||
<i class="fa fa-graduation-cap"></i>
|
||||
</div>
|
||||
<div class="description">
|
||||
<h4 class="info-title"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><?php echo $c["title"];?></a> (<?php echo $c["articles"];?>)</h4>
|
||||
<p><?php echo $c["description"];?></p>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><i class="fas fa-angle-right text-info mx-2"></i><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><strong><?php echo $sc["title"];?></strong></a> (<?php echo $sc["articles"];?>)</li>
|
||||
|
||||
<?php $totalA = $totalA + $sc["articles"]; } } ?>
|
||||
</ul>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>" class="btn btn-link btn-info"><?php echo sprintf($jkl['hd156'], $totalA);?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container-fluid">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-bottom-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-bottom-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,168 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if ($category_tpl) { ?>
|
||||
<!-- Category View -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<h2 class="title mb-0"><?php echo $catgory_title;?></h2>
|
||||
<?php echo (isset($catgory_description) && !empty($catgory_description) ? '<h5 class="description">'.$catgory_description.'</h5>' : '')?>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<nav class="col-md-3 sidebar" id="sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<span class="badge badge-info"><i class="fa fa-feather" aria-hidden="true"></i> <?php echo $jkl['hd76'];?></span>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"];?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"];?></strong></a> <span class="badge badge-pill badge-info float-right mb-0"><?php echo $c["articles"];?></span>
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show";?>" id="dropdownMenuLink<?php echo $c["id"];?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"];?></a></li>
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"];?></a> <span class="badge badge-pill badge-primary float-right mb-0"><?php echo $sc["articles"];?></span></li>
|
||||
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="col-md-9 pl-5 pr-5">
|
||||
<div class="row">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-xl-4">
|
||||
<div class="card card-blog">
|
||||
<div class="card-icon">
|
||||
<i class="<?php echo $faq["icon"];?>"></i>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h6 class="card-category text-info"><?php echo $faq["titlecat"];?></h6>
|
||||
<h4 class="card-title">
|
||||
<?php echo $faq["title"];?>
|
||||
</h4>
|
||||
<p class="card-description">
|
||||
<?php echo jak_cut_text($faq["content"], 150, '...');?></p>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $faqparseurl;?>" class="btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- Main view -->
|
||||
|
||||
<?php if (JAK_FAQ_A && isset($allfaq) && is_array($allfaq)) { ?>
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section bg-gradient-3">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center space-bot-big">
|
||||
<ul class="nav nav-pills nav-pills-primary justify-content-center">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if (empty($page1)) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL);?>"><?php echo $jkl['hd122'];?></a>
|
||||
</li>
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if ($page2 == $c["id"]) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><?php echo $c["title"];?></a>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="card-columns">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="card card-blog">
|
||||
<div class="card-icon">
|
||||
<i class="<?php echo $faq["icon"];?>"></i>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h6 class="card-category text-info"><?php echo $faq["titlecat"];?></h6>
|
||||
<h4 class="card-title">
|
||||
<?php echo $faq["title"];?>
|
||||
</h4>
|
||||
<p class="card-description">
|
||||
<?php echo jak_cut_text($faq["content"], 200, '...');?></p>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $faqparseurl;?>" class="btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
<hr>
|
||||
|
||||
<div class="stats pb-3">
|
||||
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
<?php if (isset($_SESSION["webembed"]) && $page1 == 'c') { ?>
|
||||
<p><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL);?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i></a></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container-fluid">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-bottom-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-bottom-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,169 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if ($category_tpl) { ?>
|
||||
<!-- Category View -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<h2 class="title mb-0"><?php echo $catgory_title;?></h2>
|
||||
<?php echo (isset($catgory_description) && !empty($catgory_description) ? '<h5 class="description">'.$catgory_description.'</h5>' : '')?>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<nav class="col-md-3 sidebar" id="sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<span class="badge badge-info"><i class="fa fa-feather" aria-hidden="true"></i> <?php echo $jkl['hd76'];?></span>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"];?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"];?></strong></a> <span class="badge badge-pill badge-info float-right mb-0"><?php echo $c["articles"];?></span>
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show";?>" id="dropdownMenuLink<?php echo $c["id"];?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"];?></a></li>
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"];?></a> <span class="badge badge-pill badge-primary float-right mb-0"><?php echo $sc["articles"];?></span></li>
|
||||
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="col-md-9 pl-5 pr-5">
|
||||
<div class="row">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-sm-12">
|
||||
<div class="notice notice-primary">
|
||||
<strong><i class="<?php echo $faq["icon"];?>"></i> <?php echo $faq["titlecat"];?></strong>: <a class="text-secondary" href="<?php echo $faqparseurl;?>"><?php echo $faq["title"];?></a>
|
||||
<a href="<?php echo $faqparseurl;?>" class="badge badge-secondary float-right"><?php echo $jkl['hd1'];?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- Main view -->
|
||||
|
||||
<?php if (JAK_FAQ_A && isset($allfaq) && is_array($allfaq)) { ?>
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { $totalA = 0; if ($c["subcat"] == 0) { $totalA = $c["articles"]; ?>
|
||||
<div class="info info-horizontal faq-width">
|
||||
<div class="icon icon-<?php echo $c["class"];?>">
|
||||
<i class="fa fa-graduation-cap"></i>
|
||||
</div>
|
||||
<div class="description">
|
||||
<h4 class="info-title"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><?php echo $c["title"];?></a> (<?php echo $c["articles"];?>)</h4>
|
||||
<p><?php echo $c["description"];?></p>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><i class="fas fa-angle-right text-info mx-2"></i><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><strong><?php echo $sc["title"];?></strong></a> (<?php echo $sc["articles"];?>)</li>
|
||||
|
||||
<?php $totalA = $totalA + $sc["articles"]; } } ?>
|
||||
</ul>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>" class="btn btn-link btn-info"><?php echo sprintf($jkl['hd156'], $totalA);?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section bg-gradient-3">
|
||||
<div class="container">
|
||||
<div class="card-columns">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="card card-blog">
|
||||
<div class="card-icon">
|
||||
<i class="<?php echo $faq["icon"];?>"></i>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h6 class="card-category text-info"><?php echo $faq["titlecat"];?></h6>
|
||||
<h4 class="card-title">
|
||||
<?php echo $faq["title"];?>
|
||||
</h4>
|
||||
<p class="card-description">
|
||||
<?php echo jak_cut_text($faq["content"], 200, '...');?></p>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $faqparseurl;?>" class="btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
<hr>
|
||||
|
||||
<div class="stats pb-3">
|
||||
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
<?php if (isset($_SESSION["webembed"]) && $page1 == 'c') { ?>
|
||||
<p><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL);?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i></a></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container-fluid">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-bottom-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-bottom-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,171 @@
|
||||
<?php include_once APP_PATH . 'template/business/tplblocks/header.php'; ?>
|
||||
|
||||
<?php if ($category_tpl) { ?>
|
||||
<!-- Category View -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<h2 class="title mb-0"><?php echo $catgory_title;?></h2>
|
||||
<?php echo (isset($catgory_description) && !empty($catgory_description) ? '<h5 class="description">'.$catgory_description.'</h5>' : '')?>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<nav class="col-md-3 sidebar" id="sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<span class="badge badge-info"><i class="fa fa-feather" aria-hidden="true"></i> <?php echo $jkl['hd76']; ?></span>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) {
|
||||
if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"]; ?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"]; ?></strong></a> <span class="badge badge-pill badge-info float-right mb-0"><?php echo $c["articles"]; ?></span>
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show"; ?>" id="dropdownMenuLink<?php echo $c["id"]; ?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"])); ?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"]; ?></a></li>
|
||||
<?php foreach ($allcategories as $sc) {
|
||||
if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"])); ?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"]; ?></a> <span class="badge badge-pill badge-primary float-right mb-0"><?php echo $sc["articles"]; ?></span></li>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="col-md-9 pl-5 pr-5">
|
||||
<div class="faq-box row pb-4">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach ($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-md-6">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="icon">
|
||||
<i class="<?php echo $faq["icon"]; ?>"></i>
|
||||
</div>
|
||||
<span class="time"><?php echo $faq["titlecat"]; ?> | <i class="fa fa-clock" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT); ?></span>
|
||||
<h5><?php echo $faq["title"]; ?></h5>
|
||||
<p><?php echo jak_cut_text($faq["content"], 200, '...'); ?></p>
|
||||
|
||||
<a href="<?php echo $faqparseurl; ?>" class="btn btn-sm btn-primary btn-round mt-3"><?php echo $jkl['hd1']; ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- Main view -->
|
||||
|
||||
<?php if (JAK_FAQ_A && isset($allfaq) && is_array($allfaq)) { ?>
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit f-<?php echo $pageid; ?>" data-area="faq-<?php echo $pageid; ?>" data-pageid="f-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave f-<?php echo $pageid; ?>" data-area="faq-<?php echo $pageid; ?>" data-pageid="f-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose f-<?php echo $pageid; ?>" data-area="faq-<?php echo $pageid; ?>" data-pageid="f-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'faq-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section bg-gradient-3">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center space-bot-big">
|
||||
<ul class="nav nav-pills nav-pills-primary justify-content-center">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if (empty($page1)) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL);?>"><?php echo $jkl['hd122'];?></a>
|
||||
</li>
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if ($page2 == $c["id"]) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><?php echo $c["title"];?></a>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container pb-5">
|
||||
<div class="faq-box row">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach ($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-md-4">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="icon">
|
||||
<i class="<?php echo $faq["icon"]; ?>"></i>
|
||||
</div>
|
||||
<span class="time"><?php echo $faq["titlecat"]; ?> | <i class="fa fa-clock" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT); ?></span>
|
||||
<h5><?php echo $faq["title"]; ?></h5>
|
||||
<p><?php echo jak_cut_text($faq["content"], 200, '...'); ?></p>
|
||||
|
||||
<a href="<?php echo $faqparseurl; ?>" class="btn btn-sm btn-primary btn-round mt-3"><?php echo $jkl['hd1']; ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE; ?>
|
||||
<?php if (isset($_SESSION["webembed"]) && $page1 == 'c') { ?>
|
||||
<p><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL); ?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i></a></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container-fluid">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid; ?>" data-area="faq-bottom-<?php echo $pageid; ?>" data-pageid="fb-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid; ?>" data-area="faq-bottom-<?php echo $pageid; ?>" data-pageid="fb-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid; ?>" data-area="faq-bottom-<?php echo $pageid; ?>" data-pageid="fb-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-bottom-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'faq-bottom-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } include_once APP_PATH . 'template/business/tplblocks/footer.php'; ?>
|
||||
@@ -0,0 +1,191 @@
|
||||
<?php include_once APP_PATH . 'template/business/tplblocks/header.php'; ?>
|
||||
|
||||
<?php if ($category_tpl) { ?>
|
||||
<!-- Category View -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<h2 class="title mb-0"><?php echo $catgory_title; ?></h2>
|
||||
<?php echo (isset($catgory_description) && !empty($catgory_description) ? '<h5 class="description">' . $catgory_description . '</h5>' : '') ?>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<nav class="col-md-3 sidebar" id="sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<span class="badge badge-info"><i class="fa fa-feather" aria-hidden="true"></i> <?php echo $jkl['hd76']; ?></span>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) {
|
||||
if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"]; ?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"]; ?></strong></a> <span class="badge badge-pill badge-info float-right mb-0"><?php echo $c["articles"]; ?></span>
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show"; ?>" id="dropdownMenuLink<?php echo $c["id"]; ?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"])); ?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"]; ?></a></li>
|
||||
<?php foreach ($allcategories as $sc) {
|
||||
if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"])); ?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"]; ?></a> <span class="badge badge-pill badge-primary float-right mb-0"><?php echo $sc["articles"]; ?></span></li>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="col-md-9 pl-5 pr-5">
|
||||
<div class="faq-box row pb-4">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach ($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-md-6">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="icon">
|
||||
<i class="<?php echo $faq["icon"]; ?>"></i>
|
||||
</div>
|
||||
<span class="time"><?php echo $faq["titlecat"]; ?> | <i class="fa fa-clock" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT); ?></span>
|
||||
<h5><?php echo $faq["title"]; ?></h5>
|
||||
<p><?php echo jak_cut_text($faq["content"], 200, '...'); ?></p>
|
||||
|
||||
<a href="<?php echo $faqparseurl; ?>" class="btn btn-sm btn-primary btn-round mt-3"><?php echo $jkl['hd1']; ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- Main view -->
|
||||
|
||||
<?php if (JAK_FAQ_A && isset($allfaq) && is_array($allfaq)) { ?>
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit f-<?php echo $pageid; ?>" data-area="faq-<?php echo $pageid; ?>" data-pageid="f-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave f-<?php echo $pageid; ?>" data-area="faq-<?php echo $pageid; ?>" data-pageid="f-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose f-<?php echo $pageid; ?>" data-area="faq-<?php echo $pageid; ?>" data-pageid="f-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'faq-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) {
|
||||
$totalA = 0;
|
||||
if ($c["subcat"] == 0) {
|
||||
$totalA = $c["articles"]; ?>
|
||||
<div class="info info-horizontal faq-width">
|
||||
<div class="icon icon-<?php echo $c["class"]; ?>">
|
||||
<i class="fa fa-graduation-cap"></i>
|
||||
</div>
|
||||
<div class="description">
|
||||
<h4 class="info-title"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"])); ?>"><?php echo $c["title"]; ?></a> (<?php echo $c["articles"]; ?>)</h4>
|
||||
<p><?php echo $c["description"]; ?></p>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($allcategories as $sc) {
|
||||
if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><i class="fas fa-angle-right text-info mx-2"></i><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"])); ?>"><strong><?php echo $sc["title"]; ?></strong></a> (<?php echo $sc["articles"]; ?>)</li>
|
||||
|
||||
<?php $totalA = $totalA + $sc["articles"];
|
||||
}
|
||||
} ?>
|
||||
</ul>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"])); ?>" class="btn btn-link btn-info"><?php echo sprintf($jkl['hd156'], $totalA); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section bg-gradient-3">
|
||||
<div class="container pb-5">
|
||||
<div class="faq-box row">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach ($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-md-4">
|
||||
<ul>
|
||||
<li>
|
||||
<div class="icon">
|
||||
<i class="<?php echo $faq["icon"]; ?>"></i>
|
||||
</div>
|
||||
<span class="time"><?php echo $faq["titlecat"]; ?> | <i class="fa fa-clock" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faq['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT); ?></span>
|
||||
<h5><?php echo $faq["title"]; ?></h5>
|
||||
<p><?php echo jak_cut_text($faq["content"], 200, '...'); ?></p>
|
||||
|
||||
<a href="<?php echo $faqparseurl; ?>" class="btn btn-sm btn-primary btn-round mt-3"><?php echo $jkl['hd1']; ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE; ?>
|
||||
<?php if (isset($_SESSION["webembed"]) && $page1 == 'c') { ?>
|
||||
<p><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL); ?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i></a></p>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container-fluid">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid; ?>" data-area="faq-bottom-<?php echo $pageid; ?>" data-pageid="fb-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid; ?>" data-area="faq-bottom-<?php echo $pageid; ?>" data-pageid="fb-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid; ?>" data-area="faq-bottom-<?php echo $pageid; ?>" data-pageid="fb-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-bottom-<?php echo $pageid; ?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'faq-bottom-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } include_once APP_PATH . 'template/business/tplblocks/footer.php'; ?>
|
||||
@@ -0,0 +1,140 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if ($category_tpl) { ?>
|
||||
<!-- Category View -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-6 ml-auto mr-auto text-center">
|
||||
<h2 class="title mb-0"><?php echo $catgory_title;?></h2>
|
||||
<h5 class="description"><?php echo $catgory_description;?></h5>
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 sidebar">
|
||||
<div class="sidebar-sticky">
|
||||
<span class="badge badge-info"><i class="fa fa-feather" aria-hidden="true"></i> <?php echo $jkl['hd76'];?></span>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"];?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"];?></strong></a> <span class="badge badge-pill badge-info float-right mb-0"><?php echo $c["articles"];?></span>
|
||||
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show";?>" id="dropdownMenuLink<?php echo $c["id"];?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"];?></a></li>
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"];?></a> <span class="badge badge-pill badge-primary float-right mb-0"><?php echo $sc["articles"];?></span></li>
|
||||
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9 pl-5 pr-5">
|
||||
<div class="row">
|
||||
<?php if (isset($allfaq) && !empty($allfaq)) foreach($allfaq as $faq) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faq["id"], JAK_rewrite::jakCleanurl($faq["title"]));
|
||||
?>
|
||||
<div class="col-xl-4">
|
||||
<div class="card card-blog">
|
||||
<div class="card-icon">
|
||||
<i class="<?php echo $faq["icon"];?>"></i>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h6 class="card-category text-info"><?php echo $faq["titlecat"];?></h6>
|
||||
<h4 class="card-title">
|
||||
<?php echo $faq["title"];?>
|
||||
</h4>
|
||||
<p class="card-description">
|
||||
<?php echo jak_cut_text($faq["content"], 150, '...');?></p>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $faqparseurl;?>" class="btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if ($JAK_PAGINATE) echo $JAK_PAGINATE;?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<!-- Main view -->
|
||||
|
||||
<?php if (JAK_FAQ_A && isset($allfaq) && is_array($allfaq)) { ?>
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose f-<?php echo $pageid;?>" data-area="faq-<?php echo $pageid;?>" data-pageid="f-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { $totalA = 0; if ($c["subcat"] == 0) { $totalA = $c["articles"]; ?>
|
||||
<div class="info info-horizontal faq-width">
|
||||
<div class="icon icon-<?php echo $c["class"];?>">
|
||||
<i class="fa fa-graduation-cap"></i>
|
||||
</div>
|
||||
<div class="description">
|
||||
<h4 class="info-title"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><?php echo $c["title"];?></a> (<?php echo $c["articles"];?>)</h4>
|
||||
<p><?php echo $c["description"];?></p>
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><i class="fas fa-angle-right text-info mx-2"></i><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><strong><?php echo $sc["title"];?></strong></a> (<?php echo $sc["articles"];?>)</li>
|
||||
|
||||
<?php $totalA = $totalA + $sc["articles"]; } } ?>
|
||||
</ul>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>" class="btn btn-link btn-info"><?php echo sprintf($jkl['hd156'], $totalA);?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } } ?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container-fluid">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid;?>" data-area="faq-bottom-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 faq-bottom-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'faq-bottom-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-3 pt-5 card card-refine">
|
||||
|
||||
<nav id="sidebar">
|
||||
<div>
|
||||
<h5><?php echo $jkl['hd76'];?></h5>
|
||||
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php if (isset($allcategories) && !empty($allcategories)) foreach ($allcategories as $c) { if ($c["subcat"] == 0) { ?>
|
||||
<li class="list-group-item">
|
||||
<a href="#dropdownMenuLink<?php echo $c["id"];?>" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"><strong><?php echo $c["title"];?></strong></a> <span class="badge badge-pill badge-info pull-right"><?php echo $c["articles"];?></span>
|
||||
|
||||
|
||||
<ul class="collapse list-group list-group-flush<?php if ($c["id"] == $showcat) echo " show";?>" id="dropdownMenuLink<?php echo $c["id"];?>">
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $c["id"], JAK_rewrite::jakCleanurl($c["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $c["title"];?></a></li>
|
||||
<?php foreach ($allcategories as $sc) { if ($sc["subcat"] == $c["id"]) { ?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'c', $sc["id"], JAK_rewrite::jakCleanurl($sc["title"]));?>"><span class="fa fa-angle-right mr-2"></span><?php echo $sc["title"];?></a> <span class="badge badge-pill badge-info pull-right"><?php echo $sc["articles"];?></span></li>
|
||||
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9">
|
||||
<div class="faq-title">
|
||||
<h2><?php echo $JAK_FORM_DATA["title"];?></h2>
|
||||
</div>
|
||||
|
||||
<div class="article-content">
|
||||
<?php echo $JAK_FORM_DATA["content"];?>
|
||||
</div>
|
||||
<br>
|
||||
<div class="article-footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h5><?php echo $jkl['hd138'];?></h5>
|
||||
<?php echo jak_get_tags_frontend($opcacheid, "faqid", $page2);?>
|
||||
</div>
|
||||
<div class="col-md-4 ml-auto">
|
||||
<?php if ($JAK_FORM_DATA["socialbutton"]) { ?>
|
||||
<div class="sharing">
|
||||
<h5><?php echo $jkl['hd137'];?></h5>
|
||||
<a href="mailto:?subject=<?php echo $JAK_FORM_DATA["title"];?>&body=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-email"><i class="fa fa-envelope"></i></a>
|
||||
<a href="whatsapp://send?text=<?php echo $JAK_FORM_DATA["title"];?>%20<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-whatsapp"><i class="fab fa-whatsapp"></i></a>
|
||||
<a href="https://twitter.com/intent/tweet/?text=<?php echo urlencode($JAK_FORM_DATA["title"]);?>&url=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>" target="_blank" class="btn btn-just-icon btn-border btn-twitter"><i class="fab fa-twitter"></i></a>
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?href=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $page2, $page3))?>&t=<?php echo $JAK_FORM_DATA["title"];?>" class="btn btn-just-icon btn-border btn-facebook"><i class="fab fa-facebook"></i></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row space-top">
|
||||
<div class="col-6">
|
||||
<?php if (isset($JAK_NAV_PREV) && !empty($JAK_NAV_PREV)) { ?>
|
||||
<a href="<?php echo $JAK_NAV_PREV;?>" class="btn btn-outline-info btn-round"><i class="fa fa-arrow-left"></i> <?php echo $JAK_NAV_PREV_TITLE;?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
<?php if (isset($JAK_NAV_NEXT) && !empty($JAK_NAV_NEXT)) { ?>
|
||||
<a href="<?php echo $JAK_NAV_NEXT;?>" class="btn btn-outline-info btn-round"><?php echo $JAK_NAV_NEXT_TITLE;?> <i class="fa fa-arrow-right"></i></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
// FAQ is turned on in general
|
||||
if (JAK_FAQ_A) {
|
||||
|
||||
// Client Access
|
||||
if (JAK_CLIENTID) {
|
||||
// All access
|
||||
if ($jakclient->getVar("faq_cat") == 0) {
|
||||
$newfaqart = $jakdb->select("faq_article", ["[>]faq_categories" => ["catid" => "id"]], ["faq_article.id", "faq_article.lang", "faq_article.title", "faq_article.content", "faq_article.time", "faq_categories.class", "faq_categories.title(titlecat)"], ["AND" => ["faq_article.lang" => $BT_LANGUAGE, "faq_article.active" => 1],
|
||||
"ORDER" => ["faq_article.dorder" => "DESC"],
|
||||
"LIMIT" => JAK_FAQ_HOME
|
||||
]);
|
||||
// Only for certain categories
|
||||
} else {
|
||||
$newfaqart = $jakdb->select("faq_article", ["[>]faq_categories" => ["catid" => "id"]], ["faq_article.id", "faq_article.lang", "faq_article.title", "faq_article.content", "faq_article.time", "faq_categories.class", "faq_categories.title(titlecat)"], ["AND" => ["faq_article.lang" => $BT_LANGUAGE, "faq_article.catid" => [$jakclient->getVar("faq_cat")], "faq_article.active" => 1],
|
||||
"ORDER" => ["faq_article.dorder" => "DESC"],
|
||||
"LIMIT" => JAK_FAQ_HOME
|
||||
]);
|
||||
}
|
||||
// Can see all active articles
|
||||
} elseif (JAK_USERID) {
|
||||
$newfaqart = $jakdb->select("faq_article", ["[>]faq_categories" => ["catid" => "id"]], ["faq_article.id", "faq_article.lang", "faq_article.title", "faq_article.content", "faq_article.time", "faq_categories.class", "faq_categories.title(titlecat)"], ["AND" => ["faq_article.lang" => $BT_LANGUAGE, "faq_article.active" => 1],
|
||||
"ORDER" => ["faq_article.dorder" => "DESC"],
|
||||
"LIMIT" => JAK_FAQ_HOME
|
||||
]);
|
||||
// Can see categories for guests
|
||||
} else {
|
||||
$newfaqart = $jakdb->select("faq_article", ["[>]faq_categories" => ["catid" => "id"]], ["faq_article.id", "faq_article.lang", "faq_article.title", "faq_article.content", "faq_article.time", "faq_categories.class", "faq_categories.title(titlecat)"], ["AND" => ["faq_categories.guesta" => 1, "faq_article.lang" => $BT_LANGUAGE, "faq_article.active" => 1],
|
||||
"ORDER" => ["faq_article.dorder" => "DESC"],
|
||||
"LIMIT" => JAK_FAQ_HOME
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (isset($newfaqart) && !empty($newfaqart)){?>
|
||||
|
||||
<div class="card-columns">
|
||||
<?php foreach($newfaqart as $faqn) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $faqn["id"], JAK_rewrite::jakCleanurl($faqn["title"]));
|
||||
?>
|
||||
|
||||
<div class="card card-blog">
|
||||
<div class="card-icon">
|
||||
<i class="<?php echo (!empty($faqn["icon"]) ? $faqn["icon"] : 'far fa-question-circle');?>"></i>
|
||||
</div>
|
||||
<div class="card-body text-center">
|
||||
<h6 class="card-category text-info"><?php echo $faqn["titlecat"];?></h6>
|
||||
<h4 class="card-title">
|
||||
<?php echo $faqn["title"];?>
|
||||
</h4>
|
||||
<p class="card-description">
|
||||
<?php echo jak_cut_text($faqn["content"], 180, '...');?></p>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $faqparseurl;?>" class="btn btn-danger btn-round"><?php echo $jkl['hd1'];?></a>
|
||||
<hr>
|
||||
|
||||
<div class="stats pb-3">
|
||||
<i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo JAK_base::jakTimesince($faqn['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
@@ -0,0 +1,173 @@
|
||||
<?php if (isset($_SESSION["webembed"])) { ?>
|
||||
<p class="text-center"><a href="<?php echo JAK_rewrite::jakParseurl('embedexit');?>"><i class="fa fa-window-restore"></i></a></p>
|
||||
<?php } else { ?>
|
||||
|
||||
<?php if (isset($JAK_CMS_PAGE["custom4"]) && $JAK_CMS_PAGE["custom4"] == 1 && isset($similarart) && !empty($similarart)) { ?>
|
||||
|
||||
<div class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2 class="title text-center"><?php echo $similartitle;?></h2>
|
||||
<br>
|
||||
<div class="row">
|
||||
<?php if (isset($_SESSION["webembed"])) { ?>
|
||||
<p><a href="<?php echo JAK_rewrite::jakParseurl(JAK_SUPPORT_URL);?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i></a></p>
|
||||
<?php } else { ?>
|
||||
|
||||
<?php foreach ($similarart as $s) {
|
||||
$similarurl = JAK_rewrite::jakParseurl($similarlink, $similarshort, $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
<div class="col-md-4">
|
||||
<div class="card card-blog">
|
||||
<?php if (!empty($s["previmg"])) { ?>
|
||||
<div class="card-header card-header-image">
|
||||
<a href="<?php echo $similarurl;?>">
|
||||
<img class="card-img-top img-fluid" src="<?php echo $s["previmg"];?>" alt="<?php echo $s["title"];?>">
|
||||
<div class="card-title">
|
||||
<?php echo $s["title"];?>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="card-body">
|
||||
<?php if (empty($s["previmg"])) { ?>
|
||||
<a href="<?php echo $similarurl;?>">
|
||||
<h6 class="card-category text-primary"><?php echo $s["title"];?></h6>
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
<p class="card-text"><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
</div>
|
||||
<div class="card-footer justify-content-center">
|
||||
<div class="author">
|
||||
<a href="<?php echo $similarurl;?>" class="text-primary"><?php echo $jkl["hd1"];?></a>
|
||||
</div>
|
||||
<div class="stats ml-auto">
|
||||
<i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<!-- Footer -->
|
||||
<?php if (isset($JAK_CMS_PAGE["footer_tpl"]) && !empty($JAK_CMS_PAGE["footer_tpl"])) include_once APP_PATH.'template/business/tplblocks/footer_tpl/'.$JAK_CMS_PAGE["footer_tpl"];?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="JAKModal" tabindex="-1" role="dialog" aria-labelledby="JAKModal" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="JAKModalLabel"> </h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo $jkl['g3'];?></button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
|
||||
<script src="<?php echo BASE_URL;?>js/jquery.js"></script>
|
||||
<script src="<?php echo BASE_URL;?>js/functions.js"></script>
|
||||
<!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
|
||||
<script src="<?php echo BASE_URL;?>template/business/js/plugins/bootstrap-switch.js"></script>
|
||||
<!-- Plugin for the Sliders, full documentation here: http://refreshless.com/nouislider/ -->
|
||||
<script src="<?php echo BASE_URL;?>template/business/js/plugins/nouislider.min.js"></script>
|
||||
<!-- Plugin for the DatePicker, full documentation here: https://github.com/uxsolutions/bootstrap-datepicker -->
|
||||
<script src="<?php echo BASE_URL;?>template/business/js/plugins/moment.min.js"></script><!-- Plugin for Tags, full documentation here: https://github.com/bootstrap-tagsinput/bootstrap-tagsinputs -->
|
||||
<script src="<?php echo BASE_URL;?>template/business/js/plugins/bootstrap-tagsinput.js"></script>
|
||||
<!-- Plugin for Select, full documentation here: http://silviomoreto.github.io/bootstrap-select -->
|
||||
<script src="<?php echo BASE_URL;?>template/business/js/plugins/bootstrap-selectpicker.js"></script>
|
||||
<!-- Plugin for Datetimepicker, full documentation here: https://eonasdan.github.io/bootstrap-datetimepicker/ -->
|
||||
<script src="<?php echo BASE_URL;?>template/business/js/plugins/bootstrap-datetimepicker.js"></script>
|
||||
<!-- for Jasny fileupload -->
|
||||
<script src="<?php echo BASE_URL;?>template/business/js/plugins/jasny-bootstrap.min.js"></script>
|
||||
|
||||
<?php if ($jkl["rtlsupport"]) { ?>
|
||||
<!-- RTL Support -->
|
||||
<script src="https://cdn.rtlcss.com/bootstrap/v4.5.3/js/bootstrap.min.js" integrity="sha384-54+cucJ4QbVb99v8dcttx/0JRx4FHMmhOWi4W+xrXpKcsKQodCBwAvu3xxkZAwsH" crossorigin="anonymous"></script>
|
||||
<!-- End RTL Support -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<script src="<?php echo BASE_URL;?>template/business/editor/summernote-bs4.min.js"></script>
|
||||
<script src="<?php echo BASE_URL;?>template/business/editor/editor.js"></script>
|
||||
<?php } ?>
|
||||
|
||||
<script src="<?php echo BASE_URL;?>js/contact.js"></script>
|
||||
<?php if (!empty(JAK_RECAP_CLIENT) && !JAK_CLIENTID) { ?>
|
||||
<script src="https://www.google.com/recaptcha/api.js?onload=CaptchaCallback&render=explicit" async defer></script>
|
||||
<script>
|
||||
var CaptchaCallback = function() {
|
||||
$('.g-recaptcha').each(function(index, el) {
|
||||
grecaptcha.render(el, {'sitekey' : '<?php echo JAK_RECAP_CLIENT;?>'});
|
||||
});
|
||||
};
|
||||
</script>
|
||||
<?php } ?>
|
||||
<script>
|
||||
ls.main_url = "<?php echo BASE_URL;?>";
|
||||
ls.ls_submit = "<?php echo $jkl['g11'];?>";
|
||||
ls.ls_submitwait = "<?php echo $jkl['g8'];?>";
|
||||
$(document).ready(function() {
|
||||
jQuery("#pass").keyup(function() {
|
||||
passwordStrength(jQuery(this).val());
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Control Center for all Business Template related features -->
|
||||
<script src="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/js/mainkit.js"></script>
|
||||
<!-- Load Prism -->
|
||||
<script src="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/js/prism.js"></script>
|
||||
|
||||
<script>
|
||||
<?php if (isset($_SESSION["infomsg"])) { ?>
|
||||
$.notify({icon: 'info', message: '<?php echo addslashes($_SESSION["infomsg"]);?>'}, {type: 'info', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
<?php } if (isset($_SESSION["successmsg"])) { ?>
|
||||
$.notify({icon: 'check', message: '<?php echo addslashes($_SESSION["successmsg"]);?>'}, {type: 'success', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
<?php } if (isset($_SESSION["errormsg"])) { ?>
|
||||
$.notify({icon: 'warning', message: '<?php echo addslashes($_SESSION["errormsg"]);?>'}, {type: 'danger', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
<?php } ?>
|
||||
</script>
|
||||
|
||||
<?php if (!empty($js_file_footer)) include_once('template/business/tplblocks/'.$js_file_footer);?>
|
||||
|
||||
<?php if (JAK_CHATWIDGET_ID > 0 && !isset($_SESSION["webembed"])) { ?>
|
||||
<!-- Cloud Desk 3 widget -->
|
||||
<script>
|
||||
(function(w, d, s, u) {
|
||||
w.id = <?php echo JAK_CHATWIDGET_ID;?>; w.lang = '<?php echo $BT_LANGUAGE;?>'; w.cName = '<?php echo (isset($jakclient) ? $jakclient->getVar("username") : "");?>'; w.cEmail = '<?php echo (isset($jakclient) ? $jakclient->getVar("email") : "");?>'; w.cMessage = ''; w.lcjUrl = u;
|
||||
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
|
||||
j.async = true; j.src = '<?php echo BASE_URL;?>js/jaklcpchat.js';
|
||||
h.parentNode.insertBefore(j, h);
|
||||
})(window, document, 'script', '<?php echo BASE_URL;?>');
|
||||
</script>
|
||||
<div id="jaklcp-chat-container"></div>
|
||||
<!-- end Cloud Desk 3 widget -->
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,66 @@
|
||||
<footer class="footer footer-big footer-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-5" data-editable data-name="footer-big-<?php echo $pageid;?>">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid;?>" data-area="footer-big-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid;?>" data-area="footer-big-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid;?>" data-area="footer-big-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fbt-<?php echo $pageid;?>" data-area="footer-big-two-<?php echo $pageid;?>" data-pageid="fbt-<?php echo $pageid;?>" data-lighteditor="true" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fbt-<?php echo $pageid;?>" data-area="footer-big-two-<?php echo $pageid;?>" data-pageid="fbt-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fbt-<?php echo $pageid;?>" data-area="footer-big-two-<?php echo $pageid;?>" data-pageid="fbt-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-two-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-two-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
<div class="links">
|
||||
<?php echo jak_build_menu(0, $mfooter, $page, 'stacked-links', '', '', '', false, JAK_USERISLOGGED, 'nav-item', 'nav-link', 0, 6);?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fbth-<?php echo $pageid;?>" data-area="footer-big-three-<?php echo $pageid;?>" data-pageid="fbth-<?php echo $pageid;?>" data-lighteditor="true" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fbth-<?php echo $pageid;?>" data-area="footer-big-three-<?php echo $pageid;?>" data-pageid="fbth-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fbth-<?php echo $pageid;?>" data-area="footer-big-three-<?php echo $pageid;?>" data-pageid="fbth-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-three-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-three-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
<div class="links">
|
||||
<?php echo jak_build_menu(0, $mfooter, $page, 'stacked-links', '', '', '', JAK_USERID, JAK_USERISLOGGED, 'nav-item', 'nav-link', 6, 12);?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fbf-<?php echo $pageid;?>" data-area="footer-big-four-<?php echo $pageid;?>" data-pageid="fbf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fbf-<?php echo $pageid;?>" data-area="footer-big-four-<?php echo $pageid;?>" data-pageid="fbf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fbf-<?php echo $pageid;?>" data-area="footer-big-four-<?php echo $pageid;?>" data-pageid="fbf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-four-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-four-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Do not remove or edit except you have a copyright link free license -->
|
||||
<?php if (!empty(JAK_COPYRIGHT_LINK)) echo '<hr><div class="copyright pull-center"><div class="ml-auto">'.JAK_COPYRIGHT_LINK.'</div></div>';?>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,66 @@
|
||||
<footer class="footer footer-big footer-black">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-5" data-editable data-name="footer-big-<?php echo $pageid;?>">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fb-<?php echo $pageid;?>" data-area="footer-big-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fb-<?php echo $pageid;?>" data-area="footer-big-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fb-<?php echo $pageid;?>" data-area="footer-big-<?php echo $pageid;?>" data-pageid="fb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fbt-<?php echo $pageid;?>" data-area="footer-big-two-<?php echo $pageid;?>" data-pageid="fbt-<?php echo $pageid;?>" data-lighteditor="true" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fbt-<?php echo $pageid;?>" data-area="footer-big-two-<?php echo $pageid;?>" data-pageid="fbt-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fbt-<?php echo $pageid;?>" data-area="footer-big-two-<?php echo $pageid;?>" data-pageid="fbt-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-two-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-two-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
<div class="links">
|
||||
<?php echo jak_build_menu(0, $mfooter, $page, 'stacked-links', '', '', '', false, JAK_USERISLOGGED, 'nav-item', 'nav-link', 0, 6);?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fbth-<?php echo $pageid;?>" data-area="footer-big-three-<?php echo $pageid;?>" data-pageid="fbth-<?php echo $pageid;?>" data-lighteditor="true" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fbth-<?php echo $pageid;?>" data-area="footer-big-three-<?php echo $pageid;?>" data-pageid="fbth-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fbth-<?php echo $pageid;?>" data-area="footer-big-three-<?php echo $pageid;?>" data-pageid="fbth-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-three-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-three-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
<div class="links">
|
||||
<?php echo jak_build_menu(0, $mfooter, $page, 'stacked-links', '', '', '', JAK_USERID, JAK_USERISLOGGED, 'nav-item', 'nav-link', 6, 12);?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit fbf-<?php echo $pageid;?>" data-area="footer-big-four-<?php echo $pageid;?>" data-pageid="fbf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave fbf-<?php echo $pageid;?>" data-area="footer-big-four-<?php echo $pageid;?>" data-pageid="fbf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose fbf-<?php echo $pageid;?>" data-area="footer-big-four-<?php echo $pageid;?>" data-pageid="fbf-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="footer-big-four-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'footer-big-four-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Do not remove or edit except you have a copyright link free license -->
|
||||
<?php if (!empty(JAK_COPYRIGHT_LINK)) echo '<hr><div class="copyright pull-center"><div class="ml-auto">'.JAK_COPYRIGHT_LINK.'</div></div>';?>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,15 @@
|
||||
<footer class="footer footer-white">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-10 text-center">
|
||||
<nav class="footer-nav">
|
||||
<?php echo jak_build_menu(0, $mfooter, $page, 'flex-sm-column', '', '', '', JAK_USERID, JAK_USERISLOGGED, '', '', 0, 9);?>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<!-- Do not remove or edit except you have a copyright link free license -->
|
||||
<?php if (!empty(JAK_COPYRIGHT_LINK)) echo '<div class="col-md-10 text-center"><div class="credits ml-auto"><hr><span class="copyright">'.JAK_COPYRIGHT_LINK.'</span></div></div>';?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,15 @@
|
||||
<footer class="footer footer-black">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-10 text-center">
|
||||
<nav class="footer-nav">
|
||||
<?php echo jak_build_menu(0, $mfooter, $page, 'flex-sm-column', '', '', '', JAK_USERID, JAK_USERISLOGGED, '', '', 0, 9);?>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<!-- Do not remove or edit except you have a copyright link free license -->
|
||||
<?php if (!empty(JAK_COPYRIGHT_LINK)) echo '<div class="col-md-10 text-center"><div class="credits ml-auto"><hr><span class="copyright">'.JAK_COPYRIGHT_LINK.'</span></div></div>';?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo BASE_URL.$JAK_CMS_PAGE["previmg"];?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container">
|
||||
<h1 class="h1-small"><?php echo $jkl['g2'];?></h1>
|
||||
<h3><?php echo $jkl['e4'];?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo (isset($JAK_FORM_DATA["previmg"]) && !empty($JAK_FORM_DATA["previmg"]) ? $JAK_FORM_DATA["previmg"] : (isset($JAK_CMS_PAGE["custom"]) && !empty($JAK_CMS_PAGE["custom"]) ? BASE_URL."template/".JAK_FRONT_TEMPLATE."/img/".$JAK_CMS_PAGE["custom"] : ""));?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container">
|
||||
<h1 class="h1-small"><?php echo $JAK_FORM_DATA["title"];?></h1>
|
||||
<?php if ($JAK_FORM_DATA["showdate"]) { ?>
|
||||
<h3><?php echo JAK_base::jakTimesince($JAK_FORM_DATA['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></h3>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo BASE_URL."files/editor/header/bg14.jpg";?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container">
|
||||
<h1 class="h1-small"><?php echo $JAK_FORM_DATA["title"];?></h1>
|
||||
<h3><?php echo JAK_base::jakTimesince($JAK_FORM_DATA['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo BASE_URL."files/editor/header/bg17.jpg";?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container">
|
||||
<h1 class="h1-small"><?php echo $row["subject"];?></h1>
|
||||
<h3><?php echo $jkl["g29"];?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo BASE_URL."files/editor/header/bg17.jpg";?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container">
|
||||
<h1 class="h1-small"><?php echo $JAK_FORM_DATA["title"];?></h1>
|
||||
<h3><?php echo sprintf($jkl['hd91'], $page2);?></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $JAK_CMS_PAGE["lang"];?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta content="width=device-width, shrink-to-fit=no" name="viewport">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="keywords" content="<?php echo (isset($JAK_CMS_PAGE["meta_keywords"]) ? trim($JAK_CMS_PAGE["meta_keywords"]) : '');?>">
|
||||
<meta name="description" content="<?php echo (isset($JAK_CMS_PAGE["meta_description"]) ? trim($JAK_CMS_PAGE["meta_description"]) : '');?>">
|
||||
<meta name="author" content="<?php echo JAK_TITLE;?>">
|
||||
<?php if ($page == '404') { ?>
|
||||
<meta name="robots" content="noindex, follow">
|
||||
<?php } else { ?>
|
||||
<meta name="robots" content="index, follow">
|
||||
<?php } if ($page == "success" or $page == "logout") { ?>
|
||||
<meta http-equiv="refresh" content="1;URL=<?php echo $_SERVER['HTTP_REFERER'];?>">
|
||||
<?php } ?>
|
||||
<title><?php echo (isset($JAK_CMS_PAGE["title"]) && !empty($JAK_CMS_PAGE["title"]) ? $JAK_CMS_PAGE["title"].' - ' : '').JAK_TITLE;?></title>
|
||||
<?php if (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"])) { ?>
|
||||
<meta property="og:title" content="<?php echo (isset($JAK_CMS_PAGE["title"]) && !empty($JAK_CMS_PAGE["title"]) ? $JAK_CMS_PAGE["title"] : JAK_TITLE);?>">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="<?php echo JAK_rewrite::jakParseurl($page, $page1, $page2, $page3, $page4, $page5, $page6);?>">
|
||||
<meta property="og:image" content="<?php echo (JAK_USE_APACHE ? substr(BASE_URL, 0, -1) : BASE_URL).str_replace(JAK_EDITOR_PATH_BASE, "", $JAK_CMS_PAGE["previmg"]);?>">
|
||||
<meta property="og:description" content="<?php echo trim($JAK_CMS_PAGE["meta_description"]);?>">
|
||||
<?php if (!empty(JAK_FACEBOOK_APP_ID)) { ?><meta property="fb:app_id" content="<?php echo JAK_FACEBOOK_APP_ID;?>"><?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<link rel="canonical" href="<?php echo JAK_rewrite::jakParseurl($page, $page1, $page2, $page3, $page4, $page5, $page6);?>">
|
||||
<link rel="alternate" hreflang="<?php echo (isset($JAK_CMS_PAGE["lang"]) ? $JAK_CMS_PAGE["lang"] : '');?>" href="<?php echo BASE_URL;?>">
|
||||
|
||||
<?php if ($jkl["rtlsupport"]) { ?>
|
||||
<!-- RTL Support -->
|
||||
<link rel="stylesheet" href="https://cdn.rtlcss.com/bootstrap/v4.5.3/css/bootstrap.min.css" integrity="sha384-P4uhUIGk/q1gaD/NdgkBIl3a6QywJjlsFJFk7SPRdruoGddvRVSwv5qFnvZ73cpz" crossorigin="anonymous">
|
||||
<link href="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/css/style-rtl.css" rel="stylesheet">
|
||||
<!-- End RTL Support -->
|
||||
<?php } ?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo BASE_URL;?>css/bootstrap.css" media="screen">
|
||||
<link rel="stylesheet" href="<?php echo BASE_URL;?>css/fontawesome.css" media="screen">
|
||||
<link rel="stylesheet" href="<?php echo BASE_URL;?>css/dropzone.css">
|
||||
|
||||
<!-- Fonts and icons -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?php echo BASE_URL;?>css/fontawesome.css" media="screen">
|
||||
<!-- CSS Files -->
|
||||
<link href="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/css/style.css" rel="stylesheet">
|
||||
<link href="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/css/prism.css" rel="stylesheet">
|
||||
|
||||
<?php if ($jkl["rtlsupport"]) { ?>
|
||||
<!-- RTL Support -->
|
||||
<link rel="stylesheet" href="<?php echo BASE_URL;?>css/style-rtl.css?=<?php echo JAK_UPDATED;?>" type="text/css" media="screen">
|
||||
<!-- End RTL Support -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<link rel="stylesheet" href="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/editor/summernote-bs4.min.css" type="text/css" media="screen">
|
||||
<?php } ?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<div class="alert alert-danger">We have dropped Support for IE9 and below. Please update your browser or use the latest Firefox, Chrome or Safari.</div>
|
||||
<![endif]-->
|
||||
|
||||
<?php if (JAK_HOLIDAY_MODE == 1 && JAK_USERID) { ?>
|
||||
<div class="alert-offline"><?php echo $tl["title"]["t10"];?></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!isset($_SESSION["webembed"])) {
|
||||
|
||||
include_once APP_PATH.'template/business/tplblocks/navbar.php';
|
||||
|
||||
if ($page == "404") {
|
||||
include_once APP_PATH.'template/business/tplblocks/header-404.php';
|
||||
} elseif ($page == JAK_SUPPORT_URL && $page1 == "t") {
|
||||
include_once APP_PATH.'template/business/tplblocks/header-ticket.php';
|
||||
} elseif ($page == JAK_FAQ_URL && $page1 == "a") {
|
||||
include_once APP_PATH.'template/business/tplblocks/header-faq-article.php';
|
||||
} elseif ($page == JAK_BLOG_URL && $page1 == "a") {
|
||||
include_once APP_PATH.'template/business/tplblocks/header-blog-article.php';
|
||||
} elseif ($page == JAK_CLIENT_URL && $page1 == "rt") {
|
||||
include_once APP_PATH.'template/business/tplblocks/header-rating-ticket.php';
|
||||
} elseif (isset($JAK_CMS_PAGE["header_tpl"]) && !empty($JAK_CMS_PAGE["header_tpl"])) {
|
||||
include_once APP_PATH.'template/business/tplblocks/header_tpl/'.$JAK_CMS_PAGE["header_tpl"];
|
||||
} else {
|
||||
include_once APP_PATH.'template/business/tplblocks/header_tpl/header-standard.php';
|
||||
}
|
||||
|
||||
} ?>
|
||||
@@ -0,0 +1 @@
|
||||
<div class="page-header-blank"></div>
|
||||
@@ -0,0 +1,46 @@
|
||||
<div class="header-2">
|
||||
<div class="page-header" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : BASE_URL."files/editor/header/bg3.jpg");?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 120px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit hs-<?php echo $pageid;?>" data-area="header-search-<?php echo $pageid;?>" data-pageid="hs-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave hs-<?php echo $pageid;?>" data-area="header-search-<?php echo $pageid;?>" data-pageid="hs-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose hs-<?php echo $pageid;?>" data-area="header-search-<?php echo $pageid;?>" data-pageid="hs-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center header-search-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-search-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-md-10 col-lg-10">
|
||||
<form class="card card-sm" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL); ?>">
|
||||
<div class="card-body row no-gutters align-items-center">
|
||||
<div class="col pr-2">
|
||||
<input type="text" name="smart_search" id="smart_search" class="form-control form-control-borderless" placeholder="<?php echo $jkl['hd']; ?>" autocomplete="off">
|
||||
</div>
|
||||
<div class="col-2"> <button class="btn btn-block btn-danger" type="submit"><i class="fa fa-search"></i></button></div>
|
||||
</div>
|
||||
<input type="hidden" name="search_now" value="1">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php $searchfield = true; if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit hsb-<?php echo $pageid;?>" data-area="header-search-below-<?php echo $pageid;?>" data-pageid="hsb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave hsb-<?php echo $pageid;?>" data-area="header-search-below-<?php echo $pageid;?>" data-pageid="hsb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose hsb-<?php echo $pageid;?>" data-area="header-search-below-<?php echo $pageid;?>" data-pageid="hsb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center header-search-below-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-search-below-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
<div class="header-2">
|
||||
<div class="page-header" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : BASE_URL."files/editor/header/bg3.jpg");?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 120px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit hh-<?php echo $pageid;?>" data-area="header-hero-<?php echo $pageid;?>" data-pageid="hh-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave hh-<?php echo $pageid;?>" data-area="header-hero-<?php echo $pageid;?>" data-pageid="hh-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose hh-<?php echo $pageid;?>" data-area="header-hero-<?php echo $pageid;?>" data-pageid="hh-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center header-hero-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-hero-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : '');?>')">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 120px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="container header-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,64 @@
|
||||
<header class="page-header">
|
||||
<div id="carouselHD3Indicators" class="carousel slide" data-ride="carousel">
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#carouselHD3Indicators" data-slide-to="0" class="active"></li>
|
||||
<li data-target="#carouselHD3Indicators" data-slide-to="1"></li>
|
||||
<li data-target="#carouselHD3Indicators" data-slide-to="2"></li>
|
||||
</ol>
|
||||
<div class="carousel-inner" role="listbox">
|
||||
<!-- Slide One - Set the background image for this slide in the line below -->
|
||||
<div class="carousel-item active" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : BASE_URL."files/editor/header/bg3.jpg");?>')">
|
||||
<div class="carousel-caption">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 120px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit hsli-<?php echo $pageid;?>" data-area="header-slider-<?php echo $pageid;?>" data-pageid="hsli-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave hsli-<?php echo $pageid;?>" data-area="header-slider-<?php echo $pageid;?>" data-pageid="hsli-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose hsli-<?php echo $pageid;?>" data-area="header-slider-<?php echo $pageid;?>" data-pageid="hsli-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="header-slider-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-slider-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Slide Two - Set the background image for this slide in the line below -->
|
||||
<div class="carousel-item" style="background-image: url('<?php echo BASE_URL;?>files/editor/header/bg3.jpg')">
|
||||
<div class="carousel-caption">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 100px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit hslit-<?php echo $pageid;?>" data-area="header-slider-two-<?php echo $pageid;?>" data-pageid="hslit-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave hslit-<?php echo $pageid;?>" data-area="header-slider-two-<?php echo $pageid;?>" data-pageid="hslit-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose hslit-<?php echo $pageid;?>" data-area="header-slider-two-<?php echo $pageid;?>" data-pageid="hslit-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="header-slider-two-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-slider-two-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Slide Three - Set the background image for this slide in the line below -->
|
||||
<div class="carousel-item" style="background-image: url('<?php echo BASE_URL;?>files/editor/header/bg9.jpg')">
|
||||
<div class="carousel-caption">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 100px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit hslitr-<?php echo $pageid;?>" data-area="header-slider-three-<?php echo $pageid;?>" data-pageid="hslitr-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave hslitr-<?php echo $pageid;?>" data-area="header-slider-three-<?php echo $pageid;?>" data-pageid="hslitr-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose hslitr-<?php echo $pageid;?>" data-area="header-slider-three-<?php echo $pageid;?>" data-pageid="hslitr-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="header-slider-three-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-slider-three-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="carousel-control-prev" href="#carouselHD3Indicators" role="button" data-slide="prev">
|
||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="carousel-control-next" href="#carouselHD3Indicators" role="button" data-slide="next">
|
||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,39 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : BASE_URL."files/editor/header/bg3.jpg"); ?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<div class="container mt-5 pt-1">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 100px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit hs-<?php echo $pageid; ?>" data-area="header-search-<?php echo $pageid; ?>" data-pageid="hs-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave hs-<?php echo $pageid; ?>" data-area="header-search-<?php echo $pageid; ?>" data-pageid="hs-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose hs-<?php echo $pageid; ?>" data-area="header-search-<?php echo $pageid; ?>" data-pageid="hs-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="header-search-<?php echo $pageid; ?>">
|
||||
<?php $searchfield = true;
|
||||
if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
|
||||
if ($t["cmsslug"] . $t["cmsid"] == 'header-search-' . $pageid) {
|
||||
echo $t["description"];
|
||||
break;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-md-10 col-lg-10">
|
||||
<form class="card card-sm" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL); ?>">
|
||||
<div class="card-body row no-gutters align-items-center">
|
||||
<div class="col pr-2">
|
||||
<input type="text" name="smart_search" id="smart_search" class="form-control form-control-borderless" placeholder="<?php echo $jkl['hd']; ?>" autocomplete="off">
|
||||
</div>
|
||||
<div class="col-2"> <button class="btn btn-block btn-danger" type="submit"><i class="fa fa-search"></i></button></div>
|
||||
</div>
|
||||
<input type="hidden" name="search_now" value="1">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : BASE_URL."files/editor/header/bg3.jpg");?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 120px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="container header-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="page-header page-header-xs" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : BASE_URL."files/editor/header/bg3.jpg");?>');">
|
||||
<div class="filter"></div>
|
||||
<div class="content-center">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 120px">
|
||||
<button class="btn btn-sm btn-primary firefrontedit h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose h-<?php echo $pageid;?>" data-area="header-<?php echo $pageid;?>" data-pageid="h-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="container header-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,295 @@
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
/* The following code is executed once the DOM is loaded */
|
||||
|
||||
/* This flag will prevent multiple comment submits: */
|
||||
var working = false;
|
||||
|
||||
/* Listening for the submit event of the form: */
|
||||
$('.jak-blogform').submit(function(e){
|
||||
|
||||
e.preventDefault();
|
||||
if(working) return false;
|
||||
|
||||
working = true;
|
||||
var jakform = $(this);
|
||||
var button = $(this).find('.jak-submit');
|
||||
var answerid = $('#comanswerid').val();
|
||||
$(this).find('.form-group').removeClass("has-danger");
|
||||
$(this).find('input, textarea').removeClass("has-danger");
|
||||
$(this).find('input, textarea').removeClass("is-valid");
|
||||
|
||||
$(button).html(ls.ls_submitwait);
|
||||
|
||||
// Now this is ajax
|
||||
var data = $(this).serializeArray(); // convert form to array
|
||||
data.push({name: "jakajax", value: "yes"});
|
||||
|
||||
/* Sending the form fields to any post request: */
|
||||
$.post('<?php echo $_SERVER['REQUEST_URI'];?>', $.param(data), function(msg) {
|
||||
|
||||
working = false;
|
||||
$(button).html(ls.ls_submit);
|
||||
|
||||
if (msg.status == 1) {
|
||||
|
||||
$('#comments-blank').fadeOut();
|
||||
if (answerid) {
|
||||
$('#insertPost_'+answerid).html(msg.html).fadeIn();
|
||||
// Check if we have an id
|
||||
$('#comanswerid').val(0);
|
||||
$('.jak-creply .reply').removeClass("btn-success reply").addClass("btn-primary");
|
||||
} else {
|
||||
$('#insertPost').html(msg.html).fadeIn();
|
||||
}
|
||||
$('#bmessage').val('');
|
||||
|
||||
var countSpan = $('#cComT').text();
|
||||
var newSpan = parseInt(countSpan) + 1;
|
||||
|
||||
$('#cComT').html(newSpan);
|
||||
$(jakform)[0].reset();
|
||||
|
||||
// Fade out the form
|
||||
$(button).fadeOut().delay('500');
|
||||
|
||||
} else if (msg.status == 2) {
|
||||
|
||||
$('.jak-epost').removeClass("btn-success edit").addClass("btn-secondary");
|
||||
|
||||
$('#msgid_'+msg.id).html(msg.html);
|
||||
$('#bmessage').val('');
|
||||
|
||||
} else {
|
||||
/*
|
||||
/ If there were errors, loop through the
|
||||
/ msg.errors object and display them on the page
|
||||
/*/
|
||||
|
||||
$('#bmessage').closest(".form-group").addClass("has-danger");
|
||||
}
|
||||
}, 'json');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// get the vote button
|
||||
var votelems = document.getElementsByClassName('jak-cvote');
|
||||
// Get the reply button
|
||||
var replyelems = document.getElementsByClassName('jak-creply');
|
||||
// Get the edit buttons
|
||||
var epostelems = document.getElementsByClassName('jak-epost');
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
for (var i = 0; i < votelems.length; i++) {
|
||||
votelems[i].addEventListener('click', jak_record_votes, false);
|
||||
}
|
||||
|
||||
for (var i = 0; i < replyelems.length; i++) {
|
||||
replyelems[i].addEventListener('click', jak_set_replyid, false);
|
||||
}
|
||||
|
||||
for (var i = 0; i < epostelems.length; i++) {
|
||||
epostelems[i].addEventListener('click', jak_set_editpost, false);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function jak_record_votes() {
|
||||
|
||||
// Do we have a vote already
|
||||
voted = false;
|
||||
if (this.classList)
|
||||
voted = this.classList.contains("voted");
|
||||
else
|
||||
voted = new RegExp('(^| )' + className + '( |$)', 'gi').test(this.className);
|
||||
|
||||
if (!voted) {
|
||||
|
||||
// Which container to update
|
||||
vc = document.getElementById("jak-cvotec"+this.dataset.id);
|
||||
|
||||
// tak the vote status
|
||||
vs = this.dataset.cvote;
|
||||
|
||||
// Curren Vote
|
||||
cv = vc.textContent;
|
||||
|
||||
// finally add the class so we can only vote once
|
||||
if (this.classList)
|
||||
this.classList.add("voted");
|
||||
else
|
||||
this.className += ' ' + className;
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', '<?php echo BASE_URL;?>include/comment_vote.php?vid='+this.dataset.id+'&vote='+this.dataset.cvote, true);
|
||||
|
||||
request.onload = function() {
|
||||
if (request.status >= 200 && request.status < 400) {
|
||||
// Success!
|
||||
var data = JSON.parse(request.responseText);
|
||||
|
||||
if (data.status == 1) {
|
||||
|
||||
if (cv == "0" && vs == "down") {
|
||||
|
||||
jak_remove_add_class(vc, "badge-default", "badge-danger");
|
||||
|
||||
} else if (cv == "0" && vs == "up") {
|
||||
|
||||
jak_remove_add_class(vc, "badge-default", "badge-success");
|
||||
|
||||
} else if (cv == "-1" && vs == "up") {
|
||||
|
||||
jak_remove_add_class(vc, "badge-danger", "badge-default");
|
||||
|
||||
} else if (cv == "1" && vs == "down") {
|
||||
|
||||
jak_remove_add_class(vc, "badge-success", "badge-default");
|
||||
|
||||
} else {
|
||||
// Nothing to change
|
||||
}
|
||||
|
||||
// Update the number
|
||||
if (vs == "up") {
|
||||
vc.textContent = parseInt(cv) + 1;
|
||||
} else {
|
||||
vc.textContent -= 1;
|
||||
}
|
||||
|
||||
$.notify({icon: 'check', message: '<?php echo $jkl['hd71'];?>'}, {type: 'success', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
// We reached our target server, but it returned an error
|
||||
$.notify({icon: 'warning', message: '<?php echo $jkl['hd72'];?>'}, {type: 'danger', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
request.onerror = function() {
|
||||
// There was a connection error of some sort
|
||||
};
|
||||
|
||||
request.send();
|
||||
|
||||
} else {
|
||||
// We could output something.
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
function jak_set_replyid() {
|
||||
|
||||
// Check if we have an id
|
||||
ri = document.getElementById("comanswerid");
|
||||
|
||||
[].forEach.call(replyelems, function(el) {
|
||||
|
||||
// remove the success button
|
||||
jak_remove_add_class(el, "btn-warning", "btn-primary");
|
||||
|
||||
if (el.classList)
|
||||
el.classList.remove("reply");
|
||||
else
|
||||
el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
||||
|
||||
});
|
||||
|
||||
if (ri.value == this.dataset.id) {
|
||||
|
||||
// Add the danger button
|
||||
jak_remove_add_class(this, "btn-warning", "btn-primary");
|
||||
|
||||
ri.value = 0;
|
||||
|
||||
} else {
|
||||
|
||||
// Now set the id
|
||||
ri.value = this.dataset.id;
|
||||
|
||||
// Add the danger button
|
||||
jak_remove_add_class(this, "btn-primary", "btn-warning");
|
||||
|
||||
if (this.classList)
|
||||
this.classList.add("reply");
|
||||
else
|
||||
this.className += ' ' + className;
|
||||
|
||||
// Focuse the textarea
|
||||
document.getElementById("bmessage").focus();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function jak_set_editpost() {
|
||||
|
||||
// Check if we have an id
|
||||
ri = document.getElementById("editpostid");
|
||||
|
||||
[].forEach.call(epostelems, function(el) {
|
||||
|
||||
// remove the success button
|
||||
jak_remove_add_class(el, "btn-warning", "btn-primary");
|
||||
|
||||
if (el.classList)
|
||||
el.classList.remove("edit");
|
||||
else
|
||||
el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
||||
|
||||
});
|
||||
|
||||
if (ri.value == this.dataset.id) {
|
||||
|
||||
// Add the danger button
|
||||
jak_remove_add_class(this, "btn-warning", "btn-primary");
|
||||
|
||||
ri.value = 0;
|
||||
|
||||
document.getElementById("bmessage").value = '';
|
||||
|
||||
} else {
|
||||
|
||||
// Now set the id
|
||||
ri.value = this.dataset.id;
|
||||
|
||||
// Add the danger button
|
||||
jak_remove_add_class(this, "btn-primary", "btn-warning");
|
||||
|
||||
if (this.classList)
|
||||
this.classList.add("edit");
|
||||
else
|
||||
this.className += ' ' + className;
|
||||
|
||||
// Focuse the textarea
|
||||
document.getElementById("bmessage").value = this.dataset.msg;
|
||||
document.getElementById("bmessage").focus();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function jak_remove_add_class(el, classremove, classadd) {
|
||||
|
||||
if (el.classList)
|
||||
el.classList.remove(classremove);
|
||||
else
|
||||
el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
||||
|
||||
if (el.classList)
|
||||
el.classList.add(classadd);
|
||||
else
|
||||
el.className += ' ' + className;
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".forgotP").hide();
|
||||
|
||||
// Switch buttons from "Log In | Register" to "Close Panel" on click
|
||||
$(".lost-pwd").click(function(e) {
|
||||
e.preventDefault();
|
||||
$(".loginF").slideToggle();
|
||||
$(".forgotP").slideToggle();
|
||||
});
|
||||
|
||||
<?php if (isset($errorfp)) { ?>
|
||||
$(".loginF").hide();
|
||||
$(".forgotP").show();
|
||||
$(".forgotP").addClass("shake");
|
||||
<?php } if (isset($ErrLogin)) { ?>
|
||||
$(".loginF").addClass("shake");
|
||||
<?php } ?>
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,194 @@
|
||||
<script src="<?php echo BASE_URL;?>js/database.table.js"></script>
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$(document).on("change", "#jak_depid", function() {
|
||||
$("#jak_statform").submit();
|
||||
});
|
||||
|
||||
// DataTables initialisation
|
||||
var supportTable = $('#dynamic-data').DataTable( {
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
responsive: true,
|
||||
pageLength: 10,
|
||||
sDom: 'tirp',
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [ 7,8,9 ],
|
||||
visible: false,
|
||||
searchable: false
|
||||
},
|
||||
{ className: "text-right", targets: [5,6] },
|
||||
{ className: "text-center", targets: [0] }
|
||||
],
|
||||
<?php if ($BT_LANGUAGE != "en") { ?>
|
||||
language: {
|
||||
"url": "<?php echo BASE_URL;?>js/dt_lang/<?php echo $BT_LANGUAGE;?>.js"
|
||||
},
|
||||
<?php } ?>
|
||||
order: [4, "ASC"],
|
||||
ajax: $.fn.dataTable.pipeline( {
|
||||
url: '<?php echo BASE_URL;?>include/dashboard_business.php',
|
||||
pages: 5 // number of pages to cache
|
||||
}),
|
||||
drawCallback: function () {
|
||||
$('.dataTables_paginate > .pagination').addClass('pagination-primary pagination-no-border justify-content-center');
|
||||
}
|
||||
});
|
||||
|
||||
$('#supportItext, #supportIsearch').on('keyup click', function() {
|
||||
supportTable.search($('#supportItext').val()).draw();
|
||||
});
|
||||
|
||||
$('#jak_shownr').on('change', function() {
|
||||
supportTable.page.len($('#jak_shownr').val()).draw();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//
|
||||
// Pipelining function for DataTables. To be used to the `ajax` option of DataTables
|
||||
//
|
||||
$.fn.dataTable.pipeline = function ( opts ) {
|
||||
// Configuration options
|
||||
var conf = $.extend( {
|
||||
pages: 5, // number of pages to cache
|
||||
url: '', // script url
|
||||
method: 'GET' // Ajax HTTP method
|
||||
}, opts );
|
||||
|
||||
// Private variables for storing the cache
|
||||
var cacheLower = -1;
|
||||
var cacheUpper = null;
|
||||
var cacheLastRequest = null;
|
||||
var cacheLastJson = null;
|
||||
|
||||
return function ( request, drawCallback, settings ) {
|
||||
var ajax = false;
|
||||
var requestStart = request.start;
|
||||
var drawStart = request.start;
|
||||
var requestLength = request.length;
|
||||
var requestEnd = requestStart + requestLength;
|
||||
|
||||
if ( settings.clearCache ) {
|
||||
// API requested that the cache be cleared
|
||||
ajax = true;
|
||||
settings.clearCache = false;
|
||||
}
|
||||
else if ( cacheLower < 0 || requestStart < cacheLower || requestEnd > cacheUpper ) {
|
||||
// outside cached data - need to make a request
|
||||
ajax = true;
|
||||
}
|
||||
else if ( JSON.stringify( request.order ) !== JSON.stringify( cacheLastRequest.order ) ||
|
||||
JSON.stringify( request.columns ) !== JSON.stringify( cacheLastRequest.columns ) ||
|
||||
JSON.stringify( request.search ) !== JSON.stringify( cacheLastRequest.search )
|
||||
) {
|
||||
// properties changed (ordering, columns, searching)
|
||||
ajax = true;
|
||||
}
|
||||
|
||||
// Store the request for checking next time around
|
||||
cacheLastRequest = $.extend( true, {}, request );
|
||||
|
||||
if ( ajax ) {
|
||||
// Need data from the server
|
||||
if ( requestStart < cacheLower ) {
|
||||
requestStart = requestStart - (requestLength*(conf.pages-1));
|
||||
|
||||
if ( requestStart < 0 ) {
|
||||
requestStart = 0;
|
||||
}
|
||||
}
|
||||
|
||||
cacheLower = requestStart;
|
||||
cacheUpper = requestStart + (requestLength * conf.pages);
|
||||
|
||||
request.start = requestStart;
|
||||
request.length = requestLength*conf.pages;
|
||||
|
||||
// Provide the same `data` options as DataTables.
|
||||
if ( $.isFunction ( conf.data ) ) {
|
||||
// As a function it is executed with the data object as an arg
|
||||
// for manipulation. If an object is returned, it is used as the
|
||||
// data object to submit
|
||||
var d = conf.data( request );
|
||||
if ( d ) {
|
||||
$.extend( request, d );
|
||||
}
|
||||
}
|
||||
else if ( $.isPlainObject( conf.data ) ) {
|
||||
// As an object, the data given extends the default
|
||||
$.extend( request, conf.data );
|
||||
}
|
||||
|
||||
settings.jqXHR = $.ajax( {
|
||||
"type": conf.method,
|
||||
"url": conf.url,
|
||||
"data": request,
|
||||
"dataType": "json",
|
||||
"cache": false,
|
||||
"success": function ( json ) {
|
||||
cacheLastJson = $.extend(true, {}, json);
|
||||
|
||||
if ( cacheLower != drawStart ) {
|
||||
json.data.splice( 0, drawStart-cacheLower );
|
||||
}
|
||||
if ( requestLength >= -1 ) {
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
}
|
||||
|
||||
drawCallback( json );
|
||||
}
|
||||
} );
|
||||
}
|
||||
else {
|
||||
json = $.extend( true, {}, cacheLastJson );
|
||||
json.draw = request.draw; // Update the echo for each response
|
||||
json.data.splice( 0, requestStart-cacheLower );
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
|
||||
drawCallback(json);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Register an API method that will empty the pipelined data, forcing an Ajax
|
||||
// fetch on the next draw (i.e. `table.clearPipeline().draw()`)
|
||||
$.fn.dataTable.Api.register( 'clearPipeline()', function () {
|
||||
return this.iterator( 'table', function ( settings ) {
|
||||
settings.clearCache = true;
|
||||
});
|
||||
});
|
||||
|
||||
<?php if (JAK_BILLING_MODE != 0) { ?>
|
||||
// Extend Membership
|
||||
$('.paynow').on('click', function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
$(this).find(".jak-loadbtn").addClass("fa fa-spinner fa-spin");
|
||||
|
||||
var subscribe = false;
|
||||
var _this = $(this);
|
||||
var pid = $(this).data("package");
|
||||
var paidhow = $(this).data("paidhow");
|
||||
var amount = $(this).data("amount");
|
||||
|
||||
// Populate the hidden fields
|
||||
$("#pid").val(pid);
|
||||
$("#paidhow").val(paidhow);
|
||||
$("#amount").val(amount);
|
||||
|
||||
if ($('#subscribe-'+pid).is(':checked')) {
|
||||
$("#subscribe").val(1);
|
||||
} else {
|
||||
$("#subscribe").val(0);
|
||||
}
|
||||
|
||||
$("#buypackage").submit();
|
||||
|
||||
});
|
||||
<?php } ?>
|
||||
</script>
|
||||
@@ -0,0 +1,126 @@
|
||||
<script>
|
||||
|
||||
// get the vote button
|
||||
var votelems = document.getElementsByClassName('jak-cvote');
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
for (var i = 0; i < votelems.length; i++) {
|
||||
votelems[i].addEventListener('click', jak_record_votes, false);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
function jak_record_votes() {
|
||||
|
||||
// Do we have a vote already
|
||||
voted = false;
|
||||
if (this.classList)
|
||||
voted = this.classList.contains("voted");
|
||||
else
|
||||
voted = new RegExp('(^| )' + className + '( |$)', 'gi').test(this.className);
|
||||
|
||||
if (!voted) {
|
||||
|
||||
// Which container to update
|
||||
vc = document.getElementById("jak-cvotec"+this.dataset.id);
|
||||
|
||||
// tak the vote status
|
||||
vs = this.dataset.cvote;
|
||||
|
||||
// Curren Vote
|
||||
cv = vc.textContent;
|
||||
|
||||
// finally add the class so we can only vote once
|
||||
if (this.classList)
|
||||
this.classList.add("voted");
|
||||
else
|
||||
this.className += ' ' + className;
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', '<?php echo BASE_URL;?>include/faq_vote.php?vid='+this.dataset.id+'&vote='+this.dataset.cvote, true);
|
||||
|
||||
request.onload = function() {
|
||||
if (request.status >= 200 && request.status < 400) {
|
||||
// Success!
|
||||
var data = JSON.parse(request.responseText);
|
||||
|
||||
if (data.status == 1) {
|
||||
|
||||
if (cv == "0" && vs == "down") {
|
||||
|
||||
jak_remove_add_class(vc, "label-secondary", "label-danger");
|
||||
|
||||
} else if (cv == "0" && vs == "up") {
|
||||
|
||||
jak_remove_add_class(vc, "label-secondary", "label-success");
|
||||
|
||||
} else if (cv == "-1" && vs == "up") {
|
||||
|
||||
jak_remove_add_class(vc, "label-danger", "label-secondary");
|
||||
|
||||
} else if (cv == "1" && vs == "down") {
|
||||
|
||||
jak_remove_add_class(vc, "label-success", "label-secondary");
|
||||
|
||||
} else {
|
||||
// Nothing to change
|
||||
}
|
||||
|
||||
// Update the number
|
||||
if (vs == "up") {
|
||||
vc.textContent = parseInt(cv) + 1;
|
||||
} else {
|
||||
vc.textContent -= 1;
|
||||
}
|
||||
|
||||
$.notify({icon: 'check', message: '<?php echo $jkl['hd71'];?>'}, {type: 'success', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
|
||||
} else {
|
||||
// We reached our target server, but it returned an error
|
||||
$.notify({icon: 'warning', message: '<?php echo $jkl['hd72'];?>'}, {type: 'danger', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
// We reached our target server, but it returned an error
|
||||
$.notify({icon: 'warning', message: '<?php echo $jkl['hd72'];?>'}, {type: 'danger', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
request.onerror = function() {
|
||||
// There was a connection error of some sort
|
||||
};
|
||||
|
||||
request.send();
|
||||
|
||||
} else {
|
||||
// We could output something.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function jak_remove_add_class(el, classremove, classadd) {
|
||||
|
||||
if (el.classList)
|
||||
el.classList.remove(classremove);
|
||||
else
|
||||
el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
||||
|
||||
if (el.classList)
|
||||
el.classList.add(classadd);
|
||||
else
|
||||
el.className += ' ' + className;
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,320 @@
|
||||
<script src="<?php echo BASE_URL;?>js/editor/tinymce.min.js"></script>
|
||||
<?php if ($uploadactive) { ?>
|
||||
<script src="<?php echo BASE_URL;?>js/dropzone.js"></script>
|
||||
<?php } ?>
|
||||
<script>
|
||||
|
||||
// Working Flag to 0
|
||||
var working = false;
|
||||
Dropzone.autoDiscover = false;
|
||||
|
||||
$(document).ready(function() {
|
||||
tinymce.init({
|
||||
selector: '#content-editor',
|
||||
height: 300,
|
||||
menubar: false,
|
||||
paste_as_text: true,
|
||||
entity_encoding : "raw",
|
||||
plugins: [
|
||||
'advlist autolink lists link charmap print preview textcolor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'insertdatetime table contextmenu paste code codesample'
|
||||
],
|
||||
toolbar: 'insert | undo redo | bold italic underline | bullist numlist | removeformat codesample code',
|
||||
language: '<?php echo $BT_LANGUAGE;?>',
|
||||
<?php if ($jkl["rtlsupport"]) { ?>
|
||||
directionality : 'rtl',
|
||||
<?php } ?>
|
||||
relative_urls: false
|
||||
});
|
||||
|
||||
<?php if (JAK_TICKET_SIMILAR == 1) { ?>
|
||||
|
||||
$("#subject").on("keyup", function(e) {
|
||||
// We call the function for client is typing and input is bigger then 3
|
||||
if (e.keyCode != 13 && $(this).val().length > 2) {
|
||||
ticketSearch($(this).val());
|
||||
} else {
|
||||
$('#loadsimArticle').html("");
|
||||
$('#similarArticle').fadeOut();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
<?php } ?>
|
||||
|
||||
$('#jak_depid').change(function(){
|
||||
ticketDepartment($(this).val());
|
||||
});
|
||||
|
||||
$("#loader, #ticketpriority, #ticketoption").hide();
|
||||
|
||||
// Now that the DOM is fully loaded, create the dropzone, and setup the
|
||||
var myDropzone = new Dropzone("#share-attachments", {dictResponseError: "SERVER ERROR",
|
||||
dictDefaultMessage: '<i class="fa fa-file-upload fa-3x"></i>',
|
||||
acceptedFiles: "<?php echo JAK_ALLOWED_FILES;?>",
|
||||
addRemoveLinks: true,
|
||||
autoProcessQueue: false,
|
||||
url: "<?php echo BASE_URL;?>uploader/uploadert.php"});
|
||||
|
||||
// JavaScript to disable send button and show loading.gif image
|
||||
$('.jak_form').submit(function(e){
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
if(working) return false;
|
||||
|
||||
working = true;
|
||||
|
||||
$("#loader").show();
|
||||
$('.sendTM').attr("disabled", "disabled");
|
||||
$(this).find('input').removeClass("is-invalid");
|
||||
|
||||
// Call the server and due the necessary
|
||||
var request = $.ajax({
|
||||
async: true,
|
||||
url: '<?php echo JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 'n');?>',
|
||||
type: "POST",
|
||||
data: $(this).serialize(),
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
cache: false
|
||||
});
|
||||
|
||||
request.done(function(data) {
|
||||
|
||||
working = false;
|
||||
|
||||
if (data.status) {
|
||||
|
||||
if (myDropzone.files != "") {
|
||||
|
||||
myDropzone.on("sending", function(file, xhr, formData) {
|
||||
// Will send the filesize along with the file as POST data.
|
||||
formData.append("ticketId", data.ticketid);
|
||||
formData.append("userIDU", data.userid);
|
||||
formData.append("userIDC", data.clientid);
|
||||
formData.append("base_url", "<?php echo BASE_URL;?>");
|
||||
});
|
||||
|
||||
myDropzone.processQueue();
|
||||
|
||||
myDropzone.on("queuecomplete", function(a,b,c){
|
||||
// Redirect to the ticket
|
||||
window.location.replace(data.redirecturl);
|
||||
});
|
||||
|
||||
} else {
|
||||
// Redirect to the ticket
|
||||
window.location.replace(data.redirecturl);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
$.notifyClose();
|
||||
|
||||
// We will need to go through each error message
|
||||
$.each(data.errors,function(k,v) {
|
||||
$.notify({icon: 'warning', message: v}, {type: 'danger', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
console.log(v);
|
||||
$('#'+k).addClass("is-invalid");
|
||||
});
|
||||
|
||||
$("#loader").hide();
|
||||
$('.sendTM').removeAttr("disabled");
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
function ticketDepartment(v) {
|
||||
|
||||
// Check if we have a value
|
||||
if (v) {
|
||||
|
||||
// Ticket Priorities
|
||||
var tprio = $('#ticketpriority');
|
||||
|
||||
// Ticket Options
|
||||
var topt = $('#ticketoption');
|
||||
|
||||
// Custom fields
|
||||
var tcfield = $('#custom_fields');
|
||||
|
||||
// Get the value again from the input field
|
||||
var depid = $('#jak_depid').val();
|
||||
|
||||
// Now let's cross check if the value is the same or stop the request
|
||||
if (depid != v) {
|
||||
tprio.fadeOut();
|
||||
topt.fadeOut();
|
||||
tcfield.fadeOut();
|
||||
// return false;
|
||||
}
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', '<?php echo BASE_URL;?>include/new_ticket.php?depid='+depid, true);
|
||||
|
||||
request.onload = function() {
|
||||
if (request.status >= 200 && request.status < 400) {
|
||||
// Success!
|
||||
var data = JSON.parse(request.responseText);
|
||||
|
||||
if (data.status == 1) {
|
||||
|
||||
if (data.ticketpriority) {
|
||||
|
||||
let sel = document.querySelector('#prioirty');
|
||||
|
||||
// We will need to empty the list first
|
||||
for (a in sel.options) { sel.options.remove(0); }
|
||||
|
||||
data.ticketpriority.forEach((tprio)=>{
|
||||
let prioopt = document.createElement('option');
|
||||
prioopt.value = tprio.id;
|
||||
let prioTitle = document.createTextNode(tprio.title);
|
||||
prioopt.appendChild(prioTitle);
|
||||
sel.appendChild(prioopt);
|
||||
});
|
||||
|
||||
tprio.fadeIn();
|
||||
|
||||
}
|
||||
|
||||
if (data.ticketoptions) {
|
||||
|
||||
let sel2 = document.querySelector('#toption');
|
||||
|
||||
// We will need to empty the list first
|
||||
for (a in sel2.options) { sel2.options.remove(0); }
|
||||
|
||||
data.ticketoptions.forEach((topt)=>{
|
||||
let optopt = document.createElement('option');
|
||||
optopt.value = topt.id;
|
||||
let optTitle = document.createTextNode(topt.title);
|
||||
optopt.appendChild(optTitle);
|
||||
sel2.appendChild(optopt);
|
||||
});
|
||||
|
||||
topt.fadeIn();
|
||||
|
||||
}
|
||||
|
||||
if (data.customfields) {
|
||||
|
||||
$('#custom_fields').html(data.customfields);
|
||||
|
||||
tcfield.fadeIn();
|
||||
|
||||
}
|
||||
|
||||
if (data.precontent) tinymce.activeEditor.execCommand('mceInsertContent', false, data.precontent);
|
||||
|
||||
} else {
|
||||
|
||||
$.notifyClose();
|
||||
|
||||
$.notify({icon: 'warning', message: data.errormsg}, {type: 'danger', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
|
||||
// Nothing to do, remove the container
|
||||
tprio.fadeOut();
|
||||
topt.fadeOut();
|
||||
tcfield.fadeOut();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
request.onerror = function() {
|
||||
return false;
|
||||
}
|
||||
|
||||
request.send();
|
||||
|
||||
} else {
|
||||
|
||||
$.notifyClose();
|
||||
|
||||
$.notify({icon: 'warning', message: '<?php echo addslashes($jkl['e25']);?>'}, {type: 'danger', animate: {
|
||||
enter: 'animate__animated animate__fadeInDown',
|
||||
exit: 'animate__animated animate__fadeOutUp'
|
||||
}});
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function ticketSearch(v) {
|
||||
|
||||
// Check if we have a value
|
||||
if (v) {
|
||||
|
||||
// similar Article Container
|
||||
var sac = $('#similarArticle');
|
||||
|
||||
// similar Article Div
|
||||
var sadiv = $('#loadsimArticle');
|
||||
|
||||
// Get the value again from the input field
|
||||
var newTsubject = $('#subject').val();
|
||||
|
||||
// Now let's cross check if the value is the same or stop the request
|
||||
if (newTsubject != v) {
|
||||
sadiv.html("");
|
||||
sac.fadeOut();
|
||||
return false;
|
||||
}
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', '<?php echo BASE_URL;?>include/similar_search.php?s='+newTsubject, true);
|
||||
|
||||
request.onload = function() {
|
||||
if (request.status >= 200 && request.status < 400) {
|
||||
// Success!
|
||||
var data = JSON.parse(request.responseText);
|
||||
|
||||
if (data.status == 1) {
|
||||
|
||||
// Show Similar Article Container
|
||||
sac.fadeIn();
|
||||
|
||||
// Load the content
|
||||
sadiv.html(data.articles);
|
||||
|
||||
} else {
|
||||
|
||||
// Nothing to do, remove the container
|
||||
sadiv.html("");
|
||||
sac.fadeOut();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
request.onerror = function() {
|
||||
// There was a connection error of some sort
|
||||
sadiv.html("");
|
||||
sac.fadeOut();
|
||||
}
|
||||
|
||||
request.send();
|
||||
|
||||
} else {
|
||||
// We could not output something.
|
||||
sadiv.html("");
|
||||
sac.fadeOut();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
<script src="<?php echo BASE_URL;?>js/rating.js"></script>
|
||||
@@ -0,0 +1,164 @@
|
||||
<script src="<?php echo BASE_URL;?>js/database.table.js"></script>
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$(document).on("change", "#jak_depid", function() {
|
||||
$("#jak_statform").submit();
|
||||
});
|
||||
|
||||
// DataTables initialisation
|
||||
var supportTable = $('#dynamic-data').DataTable( {
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
responsive: true,
|
||||
pageLength: 10,
|
||||
sDom: 'tirp',
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [ 7,8,9 ],
|
||||
visible: false,
|
||||
searchable: false
|
||||
},
|
||||
{ className: "text-right", targets: [5,6] },
|
||||
{ className: "text-center", targets: [0] }
|
||||
],
|
||||
<?php if ($BT_LANGUAGE != "en") { ?>
|
||||
language: {
|
||||
"url": "<?php echo BASE_URL;?>js/dt_lang/<?php echo $BT_LANGUAGE;?>.js"
|
||||
},
|
||||
<?php } ?>
|
||||
order: [7, "ASC"],
|
||||
ajax: $.fn.dataTable.pipeline( {
|
||||
url: '<?php echo BASE_URL;?>include/support_business.php',
|
||||
pages: 5 // number of pages to cache
|
||||
}),
|
||||
drawCallback: function () {
|
||||
$('.dataTables_paginate > .pagination').addClass('pagination-primary pagination-no-border justify-content-center');
|
||||
}
|
||||
});
|
||||
|
||||
$('#supportItext, #supportIsearch').on('keyup click', function() {
|
||||
supportTable.search($('#supportItext').val()).draw();
|
||||
});
|
||||
|
||||
$('#jak_shownr').on('change', function() {
|
||||
supportTable.page.len($('#jak_shownr').val()).draw();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//
|
||||
// Pipelining function for DataTables. To be used to the `ajax` option of DataTables
|
||||
//
|
||||
$.fn.dataTable.pipeline = function ( opts ) {
|
||||
// Configuration options
|
||||
var conf = $.extend( {
|
||||
pages: 5, // number of pages to cache
|
||||
url: '', // script url
|
||||
method: 'GET' // Ajax HTTP method
|
||||
}, opts );
|
||||
|
||||
// Private variables for storing the cache
|
||||
var cacheLower = -1;
|
||||
var cacheUpper = null;
|
||||
var cacheLastRequest = null;
|
||||
var cacheLastJson = null;
|
||||
|
||||
return function ( request, drawCallback, settings ) {
|
||||
var ajax = false;
|
||||
var requestStart = request.start;
|
||||
var drawStart = request.start;
|
||||
var requestLength = request.length;
|
||||
var requestEnd = requestStart + requestLength;
|
||||
|
||||
if ( settings.clearCache ) {
|
||||
// API requested that the cache be cleared
|
||||
ajax = true;
|
||||
settings.clearCache = false;
|
||||
}
|
||||
else if ( cacheLower < 0 || requestStart < cacheLower || requestEnd > cacheUpper ) {
|
||||
// outside cached data - need to make a request
|
||||
ajax = true;
|
||||
}
|
||||
else if ( JSON.stringify( request.order ) !== JSON.stringify( cacheLastRequest.order ) ||
|
||||
JSON.stringify( request.columns ) !== JSON.stringify( cacheLastRequest.columns ) ||
|
||||
JSON.stringify( request.search ) !== JSON.stringify( cacheLastRequest.search )
|
||||
) {
|
||||
// properties changed (ordering, columns, searching)
|
||||
ajax = true;
|
||||
}
|
||||
|
||||
// Store the request for checking next time around
|
||||
cacheLastRequest = $.extend( true, {}, request );
|
||||
|
||||
if ( ajax ) {
|
||||
// Need data from the server
|
||||
if ( requestStart < cacheLower ) {
|
||||
requestStart = requestStart - (requestLength*(conf.pages-1));
|
||||
|
||||
if ( requestStart < 0 ) {
|
||||
requestStart = 0;
|
||||
}
|
||||
}
|
||||
|
||||
cacheLower = requestStart;
|
||||
cacheUpper = requestStart + (requestLength * conf.pages);
|
||||
|
||||
request.start = requestStart;
|
||||
request.length = requestLength*conf.pages;
|
||||
|
||||
// Provide the same `data` options as DataTables.
|
||||
if ( $.isFunction ( conf.data ) ) {
|
||||
// As a function it is executed with the data object as an arg
|
||||
// for manipulation. If an object is returned, it is used as the
|
||||
// data object to submit
|
||||
var d = conf.data( request );
|
||||
if ( d ) {
|
||||
$.extend( request, d );
|
||||
}
|
||||
}
|
||||
else if ( $.isPlainObject( conf.data ) ) {
|
||||
// As an object, the data given extends the default
|
||||
$.extend( request, conf.data );
|
||||
}
|
||||
|
||||
settings.jqXHR = $.ajax( {
|
||||
"type": conf.method,
|
||||
"url": conf.url,
|
||||
"data": request,
|
||||
"dataType": "json",
|
||||
"cache": false,
|
||||
"success": function ( json ) {
|
||||
cacheLastJson = $.extend(true, {}, json);
|
||||
|
||||
if ( cacheLower != drawStart ) {
|
||||
json.data.splice( 0, drawStart-cacheLower );
|
||||
}
|
||||
if ( requestLength >= -1 ) {
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
}
|
||||
|
||||
drawCallback( json );
|
||||
}
|
||||
} );
|
||||
}
|
||||
else {
|
||||
json = $.extend( true, {}, cacheLastJson );
|
||||
json.draw = request.draw; // Update the echo for each response
|
||||
json.data.splice( 0, requestStart-cacheLower );
|
||||
json.data.splice( requestLength, json.data.length );
|
||||
|
||||
drawCallback(json);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Register an API method that will empty the pipelined data, forcing an Ajax
|
||||
// fetch on the next draw (i.e. `table.clearPipeline().draw()`)
|
||||
$.fn.dataTable.Api.register( 'clearPipeline()', function () {
|
||||
return this.iterator( 'table', function ( settings ) {
|
||||
settings.clearCache = true;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,87 @@
|
||||
<script src="<?php echo BASE_URL;?>js/editor/tinymce.min.js"></script>
|
||||
<?php if ($ticketwrite && $ticketopen && $uploadactive) { ?>
|
||||
<script src="<?php echo BASE_URL;?>js/dropzone.js"></script>
|
||||
<?php } ?>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
tinymce.init({
|
||||
selector: '#content-editor',
|
||||
height: 300,
|
||||
menubar: false,
|
||||
paste_as_text: true,
|
||||
entity_encoding : "raw",
|
||||
plugins: [
|
||||
'advlist autolink lists charmap print preview textcolor',
|
||||
'searchreplace visualblocks code fullscreen',
|
||||
'table contextmenu paste code codesample'
|
||||
],
|
||||
toolbar: 'undo redo | bold italic underline | bullist numlist | removeformat codesample code',
|
||||
language: '<?php echo $BT_LANGUAGE;?>',
|
||||
<?php if ($jkl["rtlsupport"]) { ?>
|
||||
directionality : 'rtl',
|
||||
<?php } ?>
|
||||
relative_urls: false
|
||||
});
|
||||
|
||||
$("#loader").hide();
|
||||
|
||||
// JavaScript to disable send button and show loading.gif image
|
||||
$("#sendTM").click(function() {
|
||||
$("#loader").show();
|
||||
$('#sendTM').attr("disabled", "disabled");
|
||||
$('.jak_form').submit();
|
||||
});
|
||||
});
|
||||
|
||||
<?php if ($ticketwrite && $ticketopen && $uploadactive) { ?>
|
||||
Dropzone.autoDiscover = false;
|
||||
$(function() {
|
||||
// Now that the DOM is fully loaded, create the dropzone, and setup the
|
||||
// event listeners
|
||||
var myDropzone = new Dropzone("#share-attachments", {dictResponseError: "SERVER ERROR",
|
||||
dictDefaultMessage: '<i class="fa fa-upload fa-3x"></i>',
|
||||
acceptedFiles: "<?php echo JAK_ALLOWED_FILES;?>",
|
||||
addRemoveLinks: true,
|
||||
url: "<?php echo BASE_URL;?>uploader/uploadert.php"});
|
||||
myDropzone.on("sending", function(file, xhr, formData) {
|
||||
// Will send the filesize along with the file as POST data.
|
||||
formData.append("ticketId", <?php echo $page2;?>);
|
||||
formData.append("userIDU", <?php echo (JAK_USERID ? $jakuser->getVar("id") : 0);?>);
|
||||
formData.append("userIDC", <?php echo (JAK_CLIENTID ? $jakclient->getVar("id") : 0);?>);
|
||||
formData.append("base_url", "<?php echo BASE_URL;?>");
|
||||
});
|
||||
myDropzone.on("success", function(file, serverResponse) {
|
||||
//myDropzone.removeAllFiles();
|
||||
// Update the counter
|
||||
var thefile = "";
|
||||
var countSpan = $('#upload-counter').text();
|
||||
var newSpan = parseInt(countSpan) + 1;
|
||||
$('#upload-counter').html(newSpan);
|
||||
data = JSON.parse(serverResponse);
|
||||
if (data.isimage) {
|
||||
thefile = '<li class="account space-top"><div class="row"><div class="col-md-3"><div class="avatar"><img src="<?php echo BASE_URL;?>_showfile.php?i='+data.filepath+'" alt="'+data.filename+'" class="attachment-thumbnail img-no-padding img-responsive"></div></div><div class="col-md-8 description-section"><span><a href="<?php echo BASE_URL;?>_showfile.php?i='+data.filepath+'" target="_blank">'+data.filename.substr(17)+'</a></span><br><span class="text-muted"><small>'+data.filesize+'</small></span></div></div></li>';
|
||||
} else {
|
||||
thefile = '<li class="account space-top"><div class="row"><div class="col-md-3"><div class="avatar"><img src="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/assets/img/attachments.jpg" alt="Circle Image" class="img-circle img-no-padding img-responsive"></div></div><div class="col-md-8 description-section"><span><a href="<?php echo BASE_URL;?>_showfile.php?i='+data.filepath+'" target="_blank">'+data.filename.substr(17)+'</a></span><br><span class="text-muted"><small>'+data.filesize+'</small></span></div></div></li>';
|
||||
}
|
||||
|
||||
$('#attach-list').append(thefile);
|
||||
|
||||
$.notify({icon: 'check', message: '<?php echo $jkl['hd92'];?>'}, {type: 'success', animate: {
|
||||
enter: 'animated fadeInDown',
|
||||
exit: 'animated fadeOutUp'
|
||||
}});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
<?php } if (JAK_SUPERADMINACCESS || JAK_USERISLOGGED) { ?>
|
||||
function edit_post(id) {
|
||||
var editmsg = this.document.getElementById("edit-content"+id).innerHTML;
|
||||
tinymce.activeEditor.setContent(editmsg);
|
||||
tinyMCE.activeEditor.focus();
|
||||
document.getElementById("edit-post").value = id;
|
||||
$(".show_editor").fadeIn();
|
||||
}
|
||||
<?php } ?>
|
||||
</script>
|
||||
@@ -0,0 +1,233 @@
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar fixed-top navbar-expand-lg<?php echo (isset($JAK_CMS_PAGE["custom2"]) && !empty($JAK_CMS_PAGE["custom2"]) ? ' navbar-color-on-scroll navbar-transparent' : '');?>"<?php echo (isset($JAK_CMS_PAGE["custom2"]) && !empty($JAK_CMS_PAGE["custom2"]) ? ' color-on-scroll="100" id="sectionsNav"' : '');?>>
|
||||
<div class="container">
|
||||
|
||||
<!-- Logo -->
|
||||
<a class="navbar-brand" href="<?php echo BASE_URL;?>"><?php echo JAK_TITLE;?></a>
|
||||
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#hd3-top-navbar" aria-controls="hd3-top-navbar" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="hd3-top-navbar">
|
||||
<!-- Menu -->
|
||||
<?php echo jak_build_menu(0, $mheader, $page, 'navbar-nav ml-auto', 'dropdown', 'dropdown-menu', '', false, JAK_USERISLOGGED, 'nav-item', 'nav-link');?>
|
||||
|
||||
<?php if (!JAK_USERISLOGGED) { ?>
|
||||
<button class="btn btn-info btn-round" data-toggle="modal" data-target="#loginModal"><i class="far fa-sign-in"></i>
|
||||
<?php echo $jkl["hd18"];?>
|
||||
</button>
|
||||
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-hidden="false">
|
||||
<div class="modal-dialog modal-register">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header no-border-header text-center">
|
||||
<h3 class="modal-title"><?php echo JAK_TITLE;?></h3>
|
||||
<p><?php echo $jkl['hd161'];?></p>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="signup-form" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="fa fa-at"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="email" class="form-control" id="email" placeholder="<?php echo $jkl["g5"];?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="fa fa-key"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="password" name="password" class="form-control" id="password" placeholder="<?php echo $jkl["g77"];?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<div class="g-recaptcha my-3 ml-3" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div>
|
||||
<?php } ?>
|
||||
|
||||
<input type="hidden" name="action" value="login">
|
||||
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="lcookies" checked>
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
<?php echo $jkl["hd20"];?>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button type="submit" name="logID" class="btn btn-success btn-block btn-round"><?php echo $jkl["hd18"];?></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer no-border-footer">
|
||||
<span class="text-center">
|
||||
<?php if (defined('JAK_API_PROFILE') && !empty(JAK_API_PROFILE)) { ?>
|
||||
<a class="btn btn-sm btn-info" href="<?php echo JAK_API_PROFILE;?>"><?php echo $jkl["hd24"];?></a> <a class="btn btn-sm btn-warning" href="<?php echo JAK_API_PROFILE;?>"><?php echo $jkl["hd19"];?></a>
|
||||
<?php } else { if (JAK_REGISTER) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-info" data-toggle="modal" data-target="#RegisterModal" data-dismiss="modal"><?php echo $jkl['hd24'];?></a> <?php } ?><a href="javascript:void(0)" class="btn btn-sm btn-warning" data-toggle="modal" data-target="#forgotModal" data-dismiss="modal"><?php echo $jkl['hd19'];?></a>
|
||||
<?php } ?>
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal"><?php echo $jkl['hd162'];?></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="forgotModal" tabindex="-1" role="dialog" aria-hidden="false">
|
||||
<div class="modal-dialog modal-register">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header no-border-header">
|
||||
<h3 class="modal-title"><?php echo JAK_TITLE;?></h3>
|
||||
<p><?php echo $jkl['f'];?></p>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="signup-form" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="fa fa-at"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="lsE" class="form-control" id="lsEM" placeholder="<?php echo $jkl["g5"];?>">
|
||||
</div>
|
||||
</div>
|
||||
<?php if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<div class="g-recaptcha my-3 ml-3" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div>
|
||||
<?php } ?>
|
||||
|
||||
<input type="hidden" name="action" value="forgot-password">
|
||||
|
||||
<button type="submit" name="forgotP" class="btn btn-success btn-block btn-round"><?php echo $jkl["hd22"];?></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer no-border-footer">
|
||||
<span class="text-center">
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-info" data-toggle="modal" data-target="#loginModal" data-dismiss="modal"><?php echo $jkl['hd18'];?></a>
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal"><?php echo $jkl['hd162'];?></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (JAK_REGISTER) { ?>
|
||||
<button class="btn btn-danger btn-round" data-toggle="modal" data-target="#RegisterModal"><i class="fa fa-user-plus"></i>
|
||||
<?php echo $jkl["hd24"];?>
|
||||
</button>
|
||||
<div class="modal fade" id="RegisterModal" tabindex="-1" role="dialog" aria-hidden="false">
|
||||
<div class="modal-dialog modal-register">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header no-border-header text-center">
|
||||
<h3 class="modal-title"><?php echo JAK_TITLE;?></h3>
|
||||
<p><?php echo $jkl['hd160'];?></p>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>">
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="fas fa-signature"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="reg_name" class="form-control" id="reg_name" placeholder="<?php echo $jkl["g4"];?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">
|
||||
<i class="fa fa-at"></i>
|
||||
</span>
|
||||
</div>
|
||||
<input type="text" name="reg_email" class="form-control" id="reg_email" placeholder="<?php echo $jkl["g5"];?>">
|
||||
</div>
|
||||
|
||||
<?php if (isset($custom_fields_register_modal) && !empty($custom_fields_register_modal)) echo $custom_fields_register_modal;?>
|
||||
|
||||
<?php if (!empty(JAK_RECAP_CLIENT)) { ?>
|
||||
<div class="g-recaptcha my-3 ml-3" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div>
|
||||
<?php } ?>
|
||||
<input type="hidden" name="action" value="register">
|
||||
</div>
|
||||
<button type="submit" name="registerID" class="btn btn-success btn-block btn-round"><?php echo $jkl["hd30"];?></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer no-border-footer">
|
||||
<span class="text-center">
|
||||
<a href="javascript:void(0)" class="btn btn-sm btn-info" data-toggle="modal" data-target="#loginModal" data-dismiss="modal"><?php echo $jkl['hd18'];?></a>
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal"><?php echo $jkl['hd162'];?></button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
<?php if (JAK_CLIENTID) { ?>
|
||||
<div class="dropdown" id="notifcation-alarm-business" style="display:none;">
|
||||
<button class="btn btn-warning btn-just-icon btn-round" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="far fa-bells" aria-hidden="true"></i></button>
|
||||
|
||||
<ul class="dropdown-menu dropdown-menu-right dropdown-wide dropdown-notification" aria-labelledby="dropdownMenuButton">
|
||||
<li class="dropdown-header" id="notification-count-business">
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<ul class="dropdown-notification-list scroll-area">
|
||||
<li id="notification-list-business">
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- end scroll area -->
|
||||
<li class="dropdown-footer">
|
||||
<ul class="dropdown-footer-menu">
|
||||
<li>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="nav-item dropdown">
|
||||
<a href="javascript:;" class="nav-link navbar-brand" data-toggle="dropdown" width="30" height="30" aria-expanded="false">
|
||||
<div class="profile-photo-small">
|
||||
<img src="<?php echo $avatar_img;?>" alt="Circle Image" class="img-circle img-responsive img-no-padding">
|
||||
</div>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right dropdown-danger">
|
||||
<div class="dropdown-header"><?php echo $jkl['hd155'];?></div>
|
||||
<?php if (JAK_CLIENTID) { ?>
|
||||
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL);?>"><?php echo $jkl['g89'];?></a>
|
||||
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL, 'edit');?>"><?php echo $jkl['g85'];?></a>
|
||||
<?php if (JAK_BILLING_MODE == 3) { ?>
|
||||
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl(JAK_CLIENT_URL, 'envato');?>"><?php echo $jkl['hd144'];?></a>
|
||||
<?php } } else { ?>
|
||||
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl(JAK_OPERATOR_LOC, 'users', 'edit', JAK_USERID);?>"><?php echo $jkl['g85'];?></a>
|
||||
<?php } ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<?php if (JAK_BLOG_A) { ?>
|
||||
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl(JAK_SUPPORT_URL);?>">Support</a>
|
||||
<?php } if (JAK_FAQ_A) { ?>
|
||||
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'edit');?>">FAQ</a>
|
||||
<?php } ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl('logout');?>"><?php echo $jkl['g26'];?></a>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -0,0 +1,178 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI'];?>" enctype="multipart/form-data">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php if ($limitreached) { ?>
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-info"><?php echo sprintf($jkl['hd115'], '<a href="'.JAK_rewrite::jakParseurl(JAK_CLIENT_URL).'">'.JAK_rewrite::jakParseurl(JAK_CLIENT_URL).'</a>');?></div>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="card card-profile no-transition" style="width: 20rem;">
|
||||
<div class="card-cover" style="background-image: url('<?php echo BASE_URL;?>/template/business/img/card-project4.jpg')">
|
||||
</div>
|
||||
<div class="card-avatar border-white">
|
||||
<a href="#avatar">
|
||||
<img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.(!empty($jakclient->getVar("picture")) ? $jakclient->getVar("picture") : '/standard.jpg');?>" alt="<?php echo (!empty($jakclient->getVar("name")) ? $jakclient->getVar("name") : $jkl['g51']);?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php echo $jkl['hd157'];?></h4>
|
||||
<p><?php echo sprintf($jkl['hd158'], (!empty($jakclient->getVar("name")) ? $jakclient->getVar("name") : $jkl['g51']));?></p>
|
||||
<hr>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="content-editor"><?php echo $jkl['hd102'];?></label>
|
||||
<select name="jak_depid" id="jak_depid" class="form-control">
|
||||
<option value="0"><?php echo $jkl['hd102'];?></option>
|
||||
<?php foreach ($DEPARTMENTS_ALL as $d) {
|
||||
echo '<option value="'.$d["id"].'">'.$d["title"].'</option>';
|
||||
} ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ticketpriority">
|
||||
<label for="email"><?php echo $jkl['hd12'];?></label>
|
||||
<select name="jak_priority" id="prioirty" class="form-control">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ticketoption">
|
||||
<label for="email"><?php echo $jkl['hd98'];?></label>
|
||||
<select name="jak_toption" id="toption" class="form-control">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<?php if (JAK_TICKET_PRIVATE_SHOW == 1) { ?>
|
||||
<label for="email"><?php echo $jkl['hd109'];?></label>
|
||||
<select name="jak_private" id="jak_private" class="form-control">
|
||||
<option value="1"<?php if ((isset($_REQUEST["jak_private"]) && $_REQUEST["jak_private"] == 1) || (!isset($_REQUEST["jak_private"]) && JAK_TICKET_PRIVATE == 1)) echo ' selected';?>><?php echo $jkl["g72"];?></option>
|
||||
<option value="0"<?php if ((isset($_REQUEST["jak_private"]) && $_REQUEST["jak_private"] == 0) || (!isset($_REQUEST["jak_private"]) && JAK_TICKET_PRIVATE == 0)) echo ' selected';?>><?php echo $jkl["g73"];?></option>
|
||||
</select>
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="jak_private" value="<?php echo JAK_TICKET_PRIVATE;?>">
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="custom_fields"></div>
|
||||
|
||||
<button type="submit" class="btn btn-lg btn-block btn-success" id="sendTM"><?php echo $jkl['hd108'];?> <i id="loader" class="fa fa-spinner fa-pulse"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<br>
|
||||
<div class="card no-transition">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php echo $jkl['hd47'];?></h4>
|
||||
<hr>
|
||||
<?php if (isset($paymsg) && !empty($paymsg)) { ?>
|
||||
<div class="message"><?php echo $paymsg;?></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($errors) { ?>
|
||||
<div class="alert alert-danger alert-with-icon" data-notify="container">
|
||||
<div class="container">
|
||||
<div class="alert-wrapper">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
<div class="message"><?php if (isset($errors) && !empty($errors)) foreach ($errors as $e) { echo $e; }?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (isset($NEW_TICKET_HELP) && !empty($NEW_TICKET_HELP)) foreach ($NEW_TICKET_HELP as $th) { ?>
|
||||
|
||||
<p><button class="btn btn-outline-info btn-sm btn-block faq-newticket" type="button" data-toggle="collapse" data-target="#newtickethelp<?php echo $th["id"];?>" aria-expanded="false" aria-controls="newtickethelp<?php echo $th["id"];?>">
|
||||
<i class="<?php echo $th["icon"];?>"></i>
|
||||
<?php echo $th["title"];?>
|
||||
</button></p>
|
||||
|
||||
<div class="collapse" id="newtickethelp<?php echo $th["id"];?>">
|
||||
<div class="card card-body no-transition">
|
||||
<?php echo $th["content"];?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } if (isset($NEW_TICKET_HELP) && !empty($NEW_TICKET_HELP)) { ?>
|
||||
|
||||
<hr>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="subject"><?php echo $jkl['hd7'];?></label>
|
||||
<input type="text" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" maxlength="200" name="subject" id="subject" value="<?php if (isset($_REQUEST["subject"]) && !empty($_REQUEST["subject"])) echo $_REQUEST["subject"];?>">
|
||||
</div>
|
||||
|
||||
<div id="similarArticle" style="display: none">
|
||||
<div class="card bg-info">
|
||||
<div class="card-body">
|
||||
<h4 class="card-title"><?php echo $jkl['hd132'];?></h4>
|
||||
<p><?php echo $jkl['hd133'];?></p>
|
||||
<div id="loadsimArticle"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!JAK_CLIENTID) { ?>
|
||||
<div class="form-group">
|
||||
<label for="ntname"><?php echo $jkl['g4'];?></label>
|
||||
<input type="text" class="form-control<?php if (isset($errors["name"])) echo " is-invalid";?>" maxlength="100" name="name" id="ntname" value="<?php if (isset($_REQUEST["name"]) && !empty($_REQUEST["name"])) echo $_REQUEST["name"];?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="ntemail"><?php echo $jkl['g5'];?></label>
|
||||
<input type="text" class="form-control<?php if (isset($errors["email"])) echo " is-invalid";?>" maxlength="200" name="email" id="ntemail" value="<?php if (isset($_REQUEST["email"]) && !empty($_REQUEST["email"])) echo $_REQUEST["email"];?>">
|
||||
</div>
|
||||
|
||||
<div class="form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="createaccount" value="1" checked<?php if (JAK_TICKET_ACCOUNT) echo ' disabled';?>> <?php echo $jkl["hd118"];?>
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<?php if (JAK_TICKET_ACCOUNT) { ?>
|
||||
<input type="hidden" name="createaccount" value="1">
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!empty(JAK_RECAP_CLIENT) && !JAK_CLIENTID) { ?>
|
||||
<div class="g-recaptcha my-3 ml-0" data-sitekey="<?php echo JAK_RECAP_CLIENT;?>"></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="content-editor"><?php echo $jkl['hd90'];?></label><br>
|
||||
<textarea name="content" id="content-editor" rows="5" class="form-control<?php if (isset($errors["subject"])) echo " is-invalid";?>"><?php if (isset($_REQUEST["content"]) && !empty($_REQUEST["content"])) { echo $_REQUEST["content"]; } else if (isset($JAK_EDIT_CONTENT) && !empty($JAK_EDIT_CONTENT)) { echo $JAK_EDIT_CONTENT;} else if (isset($JAK_PRE_CONTENT) && !empty($JAK_PRE_CONTENT)) { echo $JAK_PRE_CONTENT;}?></textarea>
|
||||
</div>
|
||||
|
||||
<?php if ($uploadactive) { ?>
|
||||
<p><?php echo $jkl['hd117'];?></p>
|
||||
<div id="share-attachments" class="dropzone upload-ticket"></div>
|
||||
<span class="text-muted"><small><?php echo sprintf($jkl['hd168'], JAK_ALLOWED_FILES);?></small></span>
|
||||
<div class="clearfix"></div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="action" value="send_ticket">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit ps-<?php echo $pageid;?>" data-area="page-standard-<?php echo $pageid;?>" data-pageid="ps-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave ps-<?php echo $pageid;?>" data-area="page-standard-<?php echo $pageid;?>" data-pageid="ps-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose ps-<?php echo $pageid;?>" data-area="page-standard-<?php echo $pageid;?>" data-pageid="ps-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="section">
|
||||
<div class="container">
|
||||
<div class="col-md-12 page-standard-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'page-standard-'.$pageid) {
|
||||
|
||||
$results = $t["description"];
|
||||
$pattern = "/{([a-z_]+)}/";
|
||||
$results = preg_replace_callback($pattern, "produce_replacement", $results);
|
||||
echo $results;
|
||||
break;
|
||||
|
||||
} } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 offset-md-2">
|
||||
|
||||
<form action="<?php echo htmlentities($_SERVER['REQUEST_URI']);?>" method="post">
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="vote5"><?php echo $jkl["g29"];?></label>
|
||||
<div id="star-container">
|
||||
<i class="fa fa-star fa-2x star star-checked" id="star-1"></i>
|
||||
<i class="fa fa-star fa-2x star star-checked" id="star-2"></i>
|
||||
<i class="fa fa-star fa-2x star star-checked" id="star-3"></i>
|
||||
<i class="fa fa-star fa-2x star star-checked" id="star-4"></i>
|
||||
<i class="fa fa-star fa-2x star star-checked" id="star-5"></i>
|
||||
</div>
|
||||
<input type="hidden" name="fbvote" id="fbvote" value="5">
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="name"><?php echo $jkl["g4"];?></label>
|
||||
<input type="text" name="name" id="name" class="form-control" value="<?php echo $row["name"];?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="email"><?php echo $jkl["g5"];?></label>
|
||||
<input type="email" name="email" id="email" class="form-control" value="<?php echo $row["email"];?>">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="feedback"><?php echo $jkl["g24"];?></label>
|
||||
<textarea name="message" id="feedback" rows="5" class="form-control"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary btn-block ls-submit"><?php echo $jkl["g25"];?></button>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="support_rating">
|
||||
<input type="hidden" name="ticketid" value="<?php echo $row["id"];?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if (!$searchfield) { ?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form class="jak_form pt-4" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL);?>">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-raised card-form-horizontal no-transition">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<div class="form-group">
|
||||
<input type="text" name="smart_search" id="smart_search" class="form-control" placeholder="<?php echo $jkl['hd'];?>" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button type="button" class="btn btn-danger btn-block btn-search"><i class="fa fa-search"></i> <?php echo $jkl['hd'];?></button>
|
||||
</div>
|
||||
<input type="hidden" name="search_now" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="container pt-3">
|
||||
<div class="row">
|
||||
<div class="col-md-8 ml-auto mr-auto">
|
||||
|
||||
<?php if ($errors) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php if (isset($errors["e"])) echo $errors["e"];
|
||||
if (isset($errors["e1"])) echo $errors["e1"];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($SearchInput)) { if (JAK_FAQ_A == 1 && isset($searchresult) && !empty($searchresult)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchresult as $s) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
|
||||
<div class="card text-center" style="width: 20rem;">
|
||||
<div class="card-body">
|
||||
<span class="badge badge-primary"><?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></span>
|
||||
<h4 class="card-title"><?php echo $s["title"];?></h4>
|
||||
<p class="card-text"><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
<a href="<?php echo $faqparseurl;?>" class="btn btn-primary"><?php echo $jkl["hd1"];?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_FAQ_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd4'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_BLOG_A == 1 && isset($searchblog) && !empty($searchblog)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchblog as $s) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
|
||||
<div class="card text-center" style="width: 20rem;">
|
||||
<div class="card-body">
|
||||
<span class="badge badge-primary"><?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></span>
|
||||
<h4 class="card-title"><?php echo $s["title"];?></h4>
|
||||
<p class="card-text"><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
<a href="<?php echo $blogparseurl;?>" class="btn btn-primary"><?php echo $jkl["hd1"];?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_BLOG_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd166'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_TICKET_GUEST_WEB == 1 && isset($searchsupport) && !empty($searchsupport)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchsupport as $s) {
|
||||
$supportparseurl = JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 't', $s["id"], JAK_rewrite::jakCleanurl($s["subject"]));
|
||||
?>
|
||||
|
||||
<div class="card text-center" style="width: 20rem;">
|
||||
<div class="card-body">
|
||||
<span class="badge badge-primary"><?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></span>
|
||||
<h4 class="card-title"><?php echo $s["subject"];?></h4>
|
||||
<p class="card-text"><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
<a href="<?php echo $supportparseurl;?>" class="btn btn-primary"><?php echo $jkl["hd1"];?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_TICKET_GUEST_WEB == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd167'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } } else { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd5'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,158 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if (!$searchfield) { ?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form class="jak_form pt-4" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL);?>">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-raised card-form-horizontal no-transition">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<div class="form-group">
|
||||
<input type="text" name="smart_search" id="smart_search" class="form-control" placeholder="<?php echo $jkl['hd'];?>" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button type="button" class="btn btn-danger btn-block btn-search"><i class="fa fa-search"></i> <?php echo $jkl['hd'];?></button>
|
||||
</div>
|
||||
<input type="hidden" name="search_now" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="container pt-3">
|
||||
<div class="row">
|
||||
<div class="col-md-8 ml-auto mr-auto">
|
||||
|
||||
<?php if ($errors) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php if (isset($errors["e"])) echo $errors["e"];
|
||||
if (isset($errors["e1"])) echo $errors["e1"];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($SearchInput)) { if (JAK_FAQ_A == 1 && isset($searchresult) && !empty($searchresult)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchresult as $s) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
|
||||
<div class="card mb-3" style="max-width: 540px;">
|
||||
<div class="row no-gutters">
|
||||
<div class="col-md-1 <?php echo (!empty($s["class"]) && $s["class"] != "teal" ? ' bg-'.$s["class"] : '');?>">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<div class="card-body">
|
||||
<a href="<?php echo $faqparseurl;?>">
|
||||
<h4 class="card-title"><?php echo $s["title"];?></h4></a>
|
||||
<p class="card-text"><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
<p class="card-text"><small class="text-muted"><i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_FAQ_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd4'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_BLOG_A == 1 && isset($searchblog) && !empty($searchblog)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchblog as $s) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
|
||||
<div class="card mb-3" style="max-width: 540px;">
|
||||
<div class="row no-gutters">
|
||||
<div class="col-md-1 bg-primary">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<div class="card-body">
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<h4 class="card-title"><?php echo $s["title"];?></h4></a>
|
||||
<p class="card-text"><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
<p class="card-text"><small class="text-muted"><i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_BLOG_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd166'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_TICKET_GUEST_WEB == 1 && isset($searchsupport) && !empty($searchsupport)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchsupport as $s) {
|
||||
$supportparseurl = JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 't', $s["id"], JAK_rewrite::jakCleanurl($s["subject"]));
|
||||
?>
|
||||
|
||||
<div class="card mb-3" style="max-width: 540px;">
|
||||
<div class="row no-gutters">
|
||||
<div class="col-md-1 bg-info">
|
||||
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
<div class="card-body">
|
||||
<a href="<?php echo $supportparseurl;?>">
|
||||
<h4 class="card-title"><?php echo $s["subject"];?></h4></a>
|
||||
<p class="card-text"><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
<p class="card-text"><small class="text-muted"><i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></small></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_TICKET_GUEST_WEB == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd167'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } } else { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd5'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if (!$searchfield) { ?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form class="jak_form pt-4" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL);?>">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-raised card-form-horizontal no-transition">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<div class="form-group">
|
||||
<input type="text" name="smart_search" id="smart_search" class="form-control" placeholder="<?php echo $jkl['hd'];?>" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button type="button" class="btn btn-danger btn-block btn-search"><i class="fa fa-search"></i> <?php echo $jkl['hd'];?></button>
|
||||
</div>
|
||||
<input type="hidden" name="search_now" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="container pt-3">
|
||||
<div class="row">
|
||||
<div class="col-md-8 ml-auto mr-auto">
|
||||
|
||||
<?php if ($errors) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php if (isset($errors["e"])) echo $errors["e"];
|
||||
if (isset($errors["e1"])) echo $errors["e1"];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($SearchInput)) { if (JAK_FAQ_A == 1 && isset($searchresult) && !empty($searchresult)) { ?>
|
||||
<div class="container pb-5">
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($searchresult as $s) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo $faqparseurl;?>"><strong><?php echo $s["title"];?></strong></a> <span class="badge badge-primary"><?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></span>
|
||||
<br>
|
||||
<?php echo jak_cut_text($s["content"], 200, '...');?>
|
||||
</li>
|
||||
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } else { if (JAK_FAQ_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd4'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_BLOG_A == 1 && isset($searchblog) && !empty($searchblog)) { ?>
|
||||
<div class="container pb-3">
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($searchblog as $s) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo $blogparseurl;?>"><strong><?php echo $s["title"];?></strong></a> <span class="badge badge-success"><?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></span>
|
||||
<br>
|
||||
<?php echo jak_cut_text($s["content"], 200, '...');?>
|
||||
</li>
|
||||
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } else { if (JAK_BLOG_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd166'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_TICKET_GUEST_WEB == 1 && isset($searchsupport) && !empty($searchsupport)) { ?>
|
||||
<div class="container pb-3">
|
||||
<ul class="list-group list-group-flush">
|
||||
<?php foreach ($searchsupport as $s) {
|
||||
$supportparseurl = JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 't', $s["id"], JAK_rewrite::jakCleanurl($s["subject"]));
|
||||
?>
|
||||
|
||||
<li class="list-group-item"><a href="<?php echo $supportparseurl;?>"><strong><?php echo $s["subject"];?></strong></a> <span class="badge badge-info"><?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></span>
|
||||
<br>
|
||||
<?php echo jak_cut_text($s["content"], 200, '...');?>
|
||||
</li>
|
||||
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } else { if (JAK_TICKET_GUEST_WEB == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd167'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } } else { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd5'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,170 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<?php if (!$searchfield) { ?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form class="jak_form pt-4" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL);?>">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-raised card-form-horizontal no-transition">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<div class="form-group">
|
||||
<input type="text" name="smart_search" id="smart_search" class="form-control" placeholder="<?php echo $jkl['hd'];?>" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button type="button" class="btn btn-danger btn-block btn-search"><i class="fa fa-search"></i> <?php echo $jkl['hd'];?></button>
|
||||
</div>
|
||||
<input type="hidden" name="search_now" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="container pt-3">
|
||||
<div class="row">
|
||||
<div class="col-md-8 ml-auto mr-auto">
|
||||
|
||||
<?php if ($errors) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php if (isset($errors["e"])) echo $errors["e"];
|
||||
if (isset($errors["e1"])) echo $errors["e1"];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($SearchInput)) { if (JAK_FAQ_A == 1 && isset($searchresult) && !empty($searchresult)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchresult as $s) {
|
||||
$faqparseurl = JAK_rewrite::jakParseurl(JAK_FAQ_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
<div class="card card-blog">
|
||||
|
||||
<div class="card-body">
|
||||
<a href="<?php echo $faqparseurl;?>">
|
||||
<h4 class="card-title"><?php echo $s["title"];?></h4>
|
||||
</a>
|
||||
|
||||
<p><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
</div>
|
||||
<div class="card-footer justify-content-center">
|
||||
<div class="author">
|
||||
<a href="<?php echo $faqparseurl;?>"><?php echo $jkl["hd1"];?></a>
|
||||
</div>
|
||||
<div class="stats ml-auto">
|
||||
<i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="s-height-5 <?php echo (!empty($s["class"]) && $s["class"] != "teal" ? ' bg-'.$s["class"] : '');?>"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_FAQ_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd4'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_BLOG_A == 1 && isset($searchblog) && !empty($searchblog)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchblog as $s) {
|
||||
$blogparseurl = JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $s["id"], JAK_rewrite::jakCleanurl($s["title"]));
|
||||
?>
|
||||
<div class="card card-blog">
|
||||
|
||||
<div class="card-body">
|
||||
<a href="<?php echo $blogparseurl;?>">
|
||||
<h4 class="card-title"><?php echo $s["title"];?></h4>
|
||||
</a>
|
||||
|
||||
<p><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
</div>
|
||||
<div class="card-footer justify-content-center">
|
||||
<div class="author">
|
||||
<a href="<?php echo $blogparseurl;?>"><?php echo $jkl["hd1"];?></a>
|
||||
</div>
|
||||
<div class="stats ml-auto">
|
||||
<i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="s-height-5 <?php echo (!empty($s["class"]) && $s["class"] != "teal" ? ' bg-'.$s["class"] : '');?>"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_BLOG_A == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd166'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } if (JAK_TICKET_GUEST_WEB == 1 && isset($searchsupport) && !empty($searchsupport)) { ?>
|
||||
<div class="container pb-3">
|
||||
<div class="card-columns">
|
||||
<?php foreach ($searchsupport as $s) {
|
||||
$supportparseurl = JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 't', $s["id"], JAK_rewrite::jakCleanurl($s["subject"]));
|
||||
?>
|
||||
<div class="card card-blog">
|
||||
|
||||
<div class="card-body">
|
||||
<a href="<?php echo $supportparseurl;?>">
|
||||
<h4 class="card-title"><?php echo $s["subject"];?></h4>
|
||||
</a>
|
||||
|
||||
<p><?php echo jak_cut_text($s["content"], 200, '...');?></p>
|
||||
</div>
|
||||
<div class="card-footer justify-content-center">
|
||||
<div class="author">
|
||||
<a href="<?php echo $supportparseurl;?>"><?php echo $jkl["hd1"];?></a>
|
||||
</div>
|
||||
<div class="stats ml-auto">
|
||||
<i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($s['time'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="s-height-5 <?php echo (!empty($s["class"]) && $s["class"] != "teal" ? ' bg-'.$s["class"] : '');?>"></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } else { if (JAK_TICKET_GUEST_WEB == 1) { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd167'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } } } else { ?>
|
||||
<div class="container">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-info">
|
||||
<?php echo $jkl['hd5'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
<form class="jak_form pt-4" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL);?>">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card card-raised card-form-horizontal no-transition">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<div class="form-group">
|
||||
<input type="text" name="smart_search" id="smart_search" class="form-control" placeholder="<?php echo $jkl['hd'];?>" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<button type="button" class="btn btn-danger btn-block btn-search"><i class="fa fa-search"></i> <?php echo $jkl['hd'];?></button>
|
||||
</div>
|
||||
<input type="hidden" name="search_now" value="1">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section section-white">
|
||||
<div class="container">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-8 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit s-<?php echo $pageid;?>" data-area="support-<?php echo $pageid;?>" data-pageid="s-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave s-<?php echo $pageid;?>" data-area="support-<?php echo $pageid;?>" data-pageid="s-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose s-<?php echo $pageid;?>" data-area="support-<?php echo $pageid;?>" data-pageid="s-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="support-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'support-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
|
||||
<div class="navbar navbar-expand-lg bg-primary">
|
||||
<div class="container">
|
||||
<h4 class="navbar-brand"><?php echo $jkl['hd141'];?></h4>
|
||||
|
||||
<div class="col-md-2">
|
||||
<select class="selectpicker" name="jak_shownr" id="jak_shownr" data-style="select-with-transition btn-primary btn-round">
|
||||
<option value="10"><?php echo sprintf($jkl['hd139'], 10);?></option>
|
||||
<option value="25"<?php if (isset($_SESSION["shownr"]) && $_SESSION["shownr"] == 25) echo ' selected';?>><?php echo sprintf($jkl['hd139'], 25);?></option>
|
||||
<option value="50"<?php if (isset($_SESSION["shownr"]) && $_SESSION["shownr"] == 50) echo ' selected';?>><?php echo sprintf($jkl['hd139'], 50);?></option>
|
||||
<option value="100"<?php if (isset($_SESSION["shownr"]) && $_SESSION["shownr"] == 100) echo ' selected';?>><?php echo sprintf($jkl['hd139'], 100);?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<?php if (isset($dep_filter) && is_array($dep_filter) && !empty($dep_filter)) { ?>
|
||||
<form id="jak_statform" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
|
||||
<select name="jak_depid" id="jak_depid" class="selectpicker" data-style="select-with-transition btn-primary btn-round">
|
||||
<option value="0"><?php echo $jkl['g88'];?></option>
|
||||
<?php foreach ($dep_filter as $v) { ?>
|
||||
<option value="<?php echo $v["id"];?>"<?php if (isset($_SESSION["sortdepid"]) && $_SESSION["sortdepid"] == $v["id"]) echo ' selected';?>><?php echo $v["title"];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<input type="hidden" name="action" value="filter">
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-row align-items-center">
|
||||
<div class="col-10">
|
||||
<input class="form-control mr-sm-2 no-border" type="text" placeholder="Search" id="supportItext">
|
||||
</div>
|
||||
<div class="col-2 text-left">
|
||||
<button type="submit" class="btn btn-primary btn-just-icon btn-round" id="supportIsearch"><i class="fa fa-search" aria-hidden="true"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-auto text-center">
|
||||
<?php if (JAK_CLIENTID || JAK_TICKET_GUEST_WEB) { ?>
|
||||
<a href="<?php echo (JAK_USERID ? JAK_rewrite::jakParseurl(JAK_OPERATOR_LOC, 'support', 'new') : JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 'n'));?>" class="btn btn-block btn-rotate btn-round btn-danger"><i class="fa fa-paper-plane"></i> <?php echo $jkl['hd47'];?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table id="dynamic-data" class="table table-hover" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<th class="text-center"><span class="badge badge-pill badge-info"><i class="fa fa-hashtag" aria-hidden="true" data-toggle="tooltip" data-placement="top" title="" data-original-title="Ticket ID" aria-describedby="tooltip50022"></i></span></th>
|
||||
<th><?php echo $jkl['hd7'];?></th>
|
||||
<th><?php echo $jkl['hd9'];?></th>
|
||||
<th><?php echo $jkl['hd8'];?></th>
|
||||
<th><?php echo $jkl['hd10'];?></th>
|
||||
<th class="text-right"><?php echo $jkl['hd11'].' / '.$jkl['hd12'];?></th>
|
||||
<th class="text-right"><?php echo $jkl['hd13'];?></th>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<div class="section section-white p-0">
|
||||
<div class="row">
|
||||
<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
|
||||
<div class="col-md-12 ml-auto mr-auto text-center mb-1">
|
||||
<button class="btn btn-sm btn-primary firefrontedit sb-<?php echo $pageid;?>" data-area="support-bottom-<?php echo $pageid;?>" data-pageid="sb-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
|
||||
<button class="btn btn-sm btn-success firefrontsave sb-<?php echo $pageid;?>" data-area="support-bottom-<?php echo $pageid;?>" data-pageid="sb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
|
||||
<button class="btn btn-sm btn-danger firefrontclose sb-<?php echo $pageid;?>" data-area="support-bottom-<?php echo $pageid;?>" data-pageid="sb-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 support-bottom-<?php echo $pageid;?>">
|
||||
<?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'support-bottom-'.$pageid) { echo $t["description"]; break; } } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
// Client Access
|
||||
if (JAK_CLIENTID) {
|
||||
// All access
|
||||
if ($jakclient->getVar("support_dep") == 0) {
|
||||
|
||||
// Get the result
|
||||
$newsupport = $jakdb->select("support_tickets", ["[>]support_departments" => ["depid" => "id"], "[>]ticketpriority" => ["priorityid" => "id"], "[>]clients" => ["clientid" => "id"]], ["support_tickets.id", "support_tickets.subject", "support_tickets.content", "support_tickets.status", "ticketpriority.title(titleprio)", "ticketpriority.class", "support_tickets.initiated", "support_departments.title(titledep)", "clients.name"], ["OR" => ["support_tickets.private" => 0, "support_tickets.clientid" => JAK_CLIENTID],
|
||||
"ORDER" => ["support_tickets.updated" => "DESC"],
|
||||
"LIMIT" => "3"
|
||||
]);
|
||||
|
||||
// Only for certain categories
|
||||
} else {
|
||||
|
||||
// Get the result
|
||||
$newsupport = $jakdb->select("support_tickets", ["[>]support_departments" => ["depid" => "id"], "[>]ticketpriority" => ["priorityid" => "id"], "[>]clients" => ["clientid" => "id"]], ["support_tickets.id", "support_tickets.subject", "support_tickets.content", "support_tickets.status", "ticketpriority.title(titleprio)", "ticketpriority.class", "support_tickets.initiated", "support_departments.title(titledep)", "clients.name"], ["OR" => ["support_tickets.private" => 0, "support_tickets.depid" => [$jakclient->getVar("support_dep")], "support_tickets.clientid" => JAK_CLIENTID],
|
||||
"ORDER" => ["support_tickets.updated" => "DESC"],
|
||||
"LIMIT" => "3"
|
||||
]);
|
||||
|
||||
}
|
||||
// Can see all active articles
|
||||
} elseif (JAK_USERID) {
|
||||
|
||||
if ($jakuser->getVar("support_dep") == 0) {
|
||||
|
||||
// Get the result
|
||||
$newsupport = $jakdb->select("support_tickets", ["[>]support_departments" => ["depid" => "id"], "[>]ticketpriority" => ["priorityid" => "id"], "[>]clients" => ["clientid" => "id"]], ["support_tickets.id", "support_tickets.subject", "support_tickets.content", "support_tickets.status", "support_tickets.initiated", "ticketpriority.title(titleprio)", "ticketpriority.class", "support_departments.title(titledep)", "clients.name"], [
|
||||
"ORDER" => ["support_tickets.updated" => "DESC"],
|
||||
"LIMIT" => "3"
|
||||
]);
|
||||
|
||||
} else {
|
||||
|
||||
// Get the result
|
||||
$newsupport = $jakdb->select("support_tickets", ["[>]support_departments" => ["depid" => "id"], "[>]ticketpriority" => ["priorityid" => "id"], "[>]clients" => ["clientid" => "id"]], ["support_tickets.id", "support_tickets.subject", "support_tickets.content", "support_tickets.status", "support_tickets.initiated", "ticketpriority.title(titleprio)", "ticketpriority.class", "support_departments.title(titledep)", "clients.name"], ["support_tickets.depid" => [$jakuser->getVar("support_dep")],
|
||||
"ORDER" => ["support_tickets.updated" => "DESC"],
|
||||
"LIMIT" => "3"
|
||||
]);
|
||||
|
||||
}
|
||||
// Can see categories for guests
|
||||
} else {
|
||||
|
||||
// Get the result
|
||||
$newsupport = $jakdb->select("support_tickets", ["[>]support_departments" => ["depid" => "id"], "[>]ticketpriority" => ["priorityid" => "id"], "[>]clients" => ["clientid" => "id"]], ["support_tickets.id", "support_tickets.subject", "support_tickets.content", "support_tickets.status", "ticketpriority.title(titleprio)", "ticketpriority.class", "support_tickets.initiated", "support_departments.title(titledep)", "clients.name"], ["AND" => ["support_tickets.private" => 0, "support_departments.guesta" => 1],
|
||||
"ORDER" => ["support_tickets.updated" => "DESC"],
|
||||
"LIMIT" => "3"
|
||||
]);
|
||||
}
|
||||
|
||||
if (isset($newsupport) && !empty($newsupport)) { ?>
|
||||
|
||||
<div class="content-support-block">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<table class="table table-responsive table-light w-100 d-block d-md-table">
|
||||
<thead class="table-custom-dark">
|
||||
<th><?php echo $jkl['hd7'];?></th>
|
||||
<th><?php echo $jkl['hd9'];?></th>
|
||||
<th><?php echo $jkl['hd8'];?></th>
|
||||
<th><?php echo $jkl['hd6'];?></th>
|
||||
<th><?php echo $jkl['hd10'];?></th>
|
||||
<th><?php echo $jkl['hd11'].'/'.$jkl['hd12'];?></th>
|
||||
<th><?php echo $jkl['hd13'];?></th>
|
||||
</thead>
|
||||
<?php foreach($newsupport as $supn) {
|
||||
$supnparseurl = JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 't', $supn["id"], JAK_rewrite::jakCleanurl($supn["subject"]));
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?php echo $supnparseurl;?>"><?php echo $supn["subject"];?></a></td>
|
||||
<td><?php echo $supn["titledep"];?></td>
|
||||
<td><?php echo $supn["name"];?></td>
|
||||
<td class="text-center"><?php echo $supn["id"];?></td>
|
||||
<td><?php echo JAK_base::jakTimesince($supn['initiated'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
|
||||
<td><?php echo ($supn["status"] == 1 ? '<span class="badge badge-pill badge-info">'.$jkl['hd14'].'</span>' : ($supn["status"] == 2 ? '<span class="badge badge-pill badge-warning">'.$jkl['hd15'].'</span>' : '<span class="badge badge-pill badge-success">'.$jkl['hd16'].'</span>'));?> / <span class="badge badge-pill badge-<?php echo $supn["class"];?>"><?php echo $supn["titleprio"];?></span></td>
|
||||
<td><a href="<?php echo $supnparseurl;?>" class="btn btn-sm btn-secondary"><?php echo $jkl['hd13'];?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -0,0 +1,301 @@
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>
|
||||
|
||||
<div class="section bg-gradient-3">
|
||||
<div class="container">
|
||||
|
||||
<div class="card no-transition">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-9 text-center text-md-left">
|
||||
<div class="row">
|
||||
|
||||
</div>
|
||||
<span class="pl-0 float-left ticket-bg text-danger d-none d-sm-block"><?php echo sprintf($jkl['hd91'], $page2);?></span>
|
||||
<a href="<?php echo JAK_rewrite::jakParseurl(JAK_SUPPORT_URL);?>" class="btn btn-round btn-info btn-just-icon ticket-icon-pulse" data-toggle="tooltip" title="<?php echo $jkl['hd141'];?>" ><i class="fa fa-arrow-up"></i></a>
|
||||
<?php if (isset($JAK_NAV_PREV) && !empty($JAK_NAV_PREV)) { ?>
|
||||
<a href="<?php echo $JAK_NAV_PREV;?>" class="btn btn-round btn-primary btn-just-icon ticket-icon-pulse" data-toggle="tooltip" title="<?php echo $JAK_NAV_PREV_TITLE;?>" ><i class="fa fa-arrow-left"></i></a>
|
||||
<?php } if (isset($JAK_NAV_NEXT) && !empty($JAK_NAV_NEXT)) { ?>
|
||||
<a href="<?php echo $JAK_NAV_NEXT;?>" class="btn btn-round btn-primary btn-just-icon ticket-icon-pulse" data-toggle="tooltip" title="<?php echo $JAK_NAV_NEXT_TITLE;?>" ><i class="fa fa-arrow-right"></i></a>
|
||||
<?php } if ($ticketwrite && $ticketopen) { ?>
|
||||
<a href="#reply" class="btn btn-success btn-just-icon ticket-icon-pulse" data-toggle="tooltip" title="<?php echo $jkl['hd67'];?>"><i class="fa fa-paper-plane"></i></a>
|
||||
<?php } if (JAK_USERISLOGGED || JAK_TICKET_GUEST_WEB) { ?>
|
||||
<a href="<?php echo (JAK_USERID ? JAK_rewrite::jakParseurl(JAK_OPERATOR_LOC, 'support', 'new') : JAK_rewrite::jakParseurl(JAK_SUPPORT_URL, 'n'));?>" class="btn btn-danger btn-just-icon ticket-icon-pulse" data-toggle="tooltip" title="<?php echo $jkl['hd47'];?>"><i class="fa fa-ticket-alt"></i></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 d-none d-sm-block">
|
||||
<div class="row float-right pr-2">
|
||||
<a href="mailto:?subject=<?php echo $JAK_FORM_DATA["title"];?>&body=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-email"><i class="fa fa-envelope"></i></a>
|
||||
<a href="whatsapp://send?text=<?php echo $JAK_FORM_DATA["title"];?>%20<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" class="btn btn-just-icon btn-border btn-whatsapp"><i class="fab fa-whatsapp"></i></a>
|
||||
<a href="https://twitter.com/intent/tweet/?text=<?php echo urlencode($JAK_FORM_DATA["title"]);?>&url=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>" target="_blank" class="btn btn-just-icon btn-border btn-twitter"><i class="fab fa-twitter"></i></a>
|
||||
<a href="https://www.facebook.com/sharer/sharer.php?href=<?php echo urlencode(JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $page2, $page3))?>&t=<?php echo $JAK_FORM_DATA["title"];?>" class="btn btn-just-icon btn-border btn-facebook"><i class="fab fa-facebook"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
|
||||
<ul class="cbp_tmtimeline">
|
||||
<li>
|
||||
<div class="cbp_tmlabel">
|
||||
<div class="media-body">
|
||||
<h2 class="media-heading"><?php echo $JAK_FORM_DATA["title"];?></h5>
|
||||
<hr>
|
||||
<?php echo $JAK_FORM_DATA["content"];?>
|
||||
<div class="media-footer">
|
||||
|
||||
<a href="javascript:void(0)" class="btn btn-link">
|
||||
<i class="fa fa-user" aria-hidden="true"></i> <?php echo $JAK_FORM_DATA["name"];?>
|
||||
</a>
|
||||
|
||||
<button type="button" class="btn btn-link btn-round"><i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($JAK_FORM_DATA['initiated'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cbp_tmicon bg-info d-none d-sm-block"><i class="fas fa-ticket-alt"></i></div>
|
||||
</li>
|
||||
<?php if (isset($JAK_ANSWER_DATA) && !empty($JAK_ANSWER_DATA)) $numItems = count($JAK_ANSWER_DATA); $i = 0; foreach ($JAK_ANSWER_DATA as $a) { ?>
|
||||
<li>
|
||||
<div class="d-none d-sm-block cbp_tmicon<?php echo ($a["file"] ? ' bg-orange' : ($a["oname"] ? ' bg-green' : ' bg-info'));?>"> <i class="fa fa-<?php echo ($a["file"] ? 'file-archive' : ($a["oname"] ? 'life-ring' : 'user'));?>"></i></div>
|
||||
<div class="cbp_tmlabel">
|
||||
|
||||
<?php if ($a["file"] == 1 && !empty($targetPathTA)) { ?>
|
||||
<div id="file-delete<?php echo $a["id"];?>"><?php echo sprintf($jkl['hd163'], '<a href="'.BASE_URL.'_showfile.php?i='.jak_single_file_encrypt($targetPathTA, $a["content"], $opcacheid, $page2).'" target="_blank" class="btn btn-warning btn-sm">'.substr($a["content"], 17).'</a>');?></div>
|
||||
<?php } else { ?>
|
||||
<div id="edit-content<?php echo $a["id"];?>"><?php echo $a["content"];?></div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="media-footer">
|
||||
<a href="javascript:void(0)" class="btn btn-success btn-link">
|
||||
<i class="fa fa-user" aria-hidden="true"></i> <?php echo ($a["cname"] ? $a["cname"] : $a["oname"]);?>
|
||||
</a>
|
||||
<button type="button" class="btn btn-link btn-round"><i class="fa fa-clock"></i> <?php echo JAK_base::jakTimesince($a["sent"], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></button>
|
||||
<?php if ((++$i === $numItems && JAK_CLIENTID && $a['cid'] == JAK_CLIENTID && $a["sent"] > $mino && $a["file"] == 0) || (JAK_USERID && jak_get_access("support", $jakuser->getVar("permissions"), JAK_SUPERADMINACCESS)) && $a["sent"] > $mino && $a["file"] == 0) { $edit_last = true; $last_post_id = $a["id"];?> <a href="javascript:void(0)" class="btn btn-link" onclick="edit_post(<?php echo $a["id"];?>)"><i class="fa fa-edit"></i> <?php echo $jkl['hd66'];?></a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php } if ($ticketwrite && $ticketopen) { ?>
|
||||
<li>
|
||||
<div class="cbp_tmicon bg-gray d-none d-sm-block" id="reply"> <i class="fa fa-paper-plane"></i></div>
|
||||
<div class="cbp_tmlabel">
|
||||
|
||||
<?php if ($errors) { ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php if (isset($errors["e"])) echo $errors["e"];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI'];?>">
|
||||
<?php if ($edit_last) { ?>
|
||||
<a href="javascript:void(0)" class="btn btn-info" onclick="edit_post(<?php echo $last_post_id;?>)"><i class="fa fa-edit"></i> <?php echo $jkl['hd134'];?></a>
|
||||
<?php } ?>
|
||||
<div class="form-group show_editor"<?php if ($edit_last) echo ' style="display:none;"';?>>
|
||||
<label for="content-editor"><?php echo $jkl['hd90'];?></label>
|
||||
<textarea name="content" id="content-editor" rows="5" class="form-control"><?php if (isset($_REQUEST["content"]) && !empty($_REQUEST["content"])) { echo $_REQUEST["content"]; } elseif (isset($JAK_EDIT_CONTENT) && !empty($JAK_EDIT_CONTENT)) { echo $JAK_EDIT_CONTENT;}?></textarea>
|
||||
</div>
|
||||
|
||||
<?php if ($uploadactive) { ?>
|
||||
<p><?php echo $jkl['hd117'];?></p>
|
||||
<div id="share-attachments" class="dropzone upload-ticket"></div>
|
||||
<span class="text-muted"><small><?php echo sprintf($jkl['hd168'], JAK_ALLOWED_FILES);?></small></span>
|
||||
<div class="clearfix"></div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="show_editor"<?php if ($edit_last) echo ' style="display:none;"';?>>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-success btn-block" id="sendTM"><?php echo $jkl['g11'];?> <i id="loader" class="fa fa-spinner fa-pulse"></i></button>
|
||||
</div>
|
||||
<input type="hidden" name="action" value="send_answer">
|
||||
<input type="hidden" name="editpost" id="edit-post">
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="card card-profile no-transition margin-top-0">
|
||||
<div class="card-cover" style="background-image: url('<?php echo BASE_URL;?>template/business/img/card-project4.jpg')">
|
||||
</div>
|
||||
<div class="card-avatar border-white">
|
||||
<a href="#avatar">
|
||||
<img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$JAK_FORM_DATA["picture"];?>" alt="<?php echo $JAK_FORM_DATA["name"];?>">
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<h4 class="card-title"><?php echo $JAK_FORM_DATA["name"];?></h4>
|
||||
<p><?php echo sprintf($jkl['hd91'], $page2);?></p>
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-left"><?php echo $jkl['hd9'];?></td>
|
||||
<td class="text-left"><?php echo $JAK_FORM_DATA['department'];?></td>
|
||||
<td class="text-center"><span class="badge badge-pill badge-success"><i class="fa fa-building" aria-hidden="true"></i></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left"><?php echo $jkl['hd11'];?></td>
|
||||
<td class="text-left"><span class="badge badge-pill badge-<?php echo ($JAK_FORM_DATA["status"] == $support_status_id ? 'default' : ($JAK_FORM_DATA["status"] == ($support_status_id + 1) ? 'warning' : 'danger'));?>"><?php echo ($JAK_FORM_DATA["status"] == $support_status_id ? $jkl['hd14'] : ($JAK_FORM_DATA["status"] == ($support_status_id + 1) ? $jkl['hd15'] : $jkl['hd16']));?></span></td>
|
||||
<td class="text-center"><span class="badge badge-pill badge-<?php echo ($JAK_FORM_DATA["status"] == $support_status_id ? 'default' : ($JAK_FORM_DATA["status"] == ($support_status_id + 1) ? 'warning' : 'danger'));?>"><i class="fa fa-clock" aria-hidden="true"></i></span></td>
|
||||
</tr>
|
||||
<?php if (isset($JAK_PRIORITY_DATA) && !empty($JAK_PRIORITY_DATA)) { ?>
|
||||
<tr>
|
||||
<td class="text-left"><?php echo $jkl['hd12'];?></td>
|
||||
<td class="text-left"><span class="badge badge-pill badge-<?php echo $JAK_PRIORITY_DATA["class"];?>"><?php echo $JAK_PRIORITY_DATA["title"];?></span></td>
|
||||
<td class="text-center"><span class="badge badge-pill badge-<?php echo $JAK_PRIORITY_DATA["class"];?>"><i class="fa fa-fire" aria-hidden="true"></i></span></td>
|
||||
</tr>
|
||||
<?php } if (isset($JAK_OPTION_DATA) && !empty($JAK_OPTION_DATA)) { ?>
|
||||
<tr>
|
||||
<td class="text-left"><?php echo $jkl['hd98'];?></td>
|
||||
<td class="text-left"><?php echo $JAK_OPTION_DATA["title"];?></td>
|
||||
<td class="text-center"><?php if (!empty($JAK_OPTION_DATA["icon"])) echo '<span class="badge badge-pill badge-info"><i class="'.$JAK_OPTION_DATA["icon"].'" aria-hidden="true"></i></span>';?></td>
|
||||
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td class="text-left"><?php echo $jkl['hd79'];?></td>
|
||||
<td class="text-left"><?php echo JAK_base::jakTimesince($JAK_FORM_DATA['updated'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
|
||||
<td class="text-center"><span class="badge badge-pill badge-default"><i class="fa fa-clock" aria-hidden="true"></i></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left"><?php echo $jkl['hd80'];?></td>
|
||||
<td class="text-left"><?php echo JAK_base::jakTimesince($JAK_FORM_DATA['initiated'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
|
||||
<td class="text-center"><span class="badge badge-pill badge-default"><i class="fa fa-clock" aria-hidden="true"></i></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-left"><?php echo $jkl['hd81'];?></td>
|
||||
<td class="text-left"><?php echo ($JAK_FORM_DATA['ended'] ? JAK_base::jakTimesince($JAK_FORM_DATA['ended'], JAK_DATEFORMAT, JAK_TIMEFORMAT) : '-');?></td>
|
||||
<td class="text-center"><span class="badge badge-pill badge-info"><i class="fa fa-lock" aria-hidden="true"></i></span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr>
|
||||
<h5 class="card-title space-bot"><?php echo $jkl['hd11'];?></h5>
|
||||
<?php if ($ticketwrite && $ticketopen) { ?>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="jak_status" class="bmd-label-floating sr-only"><?php echo $jkl['hd11'];?></label>
|
||||
<select name="jak_status" id="jak_status" class="form-control">
|
||||
<option value="<?php echo $support_status_id;?>"<?php if ($JAK_FORM_DATA["status"] == $support_status_id) echo ' selected';?>><?php echo $jkl["hd14"];?></option>
|
||||
<?php if ($JAK_FORM_DATA["status"] == ($support_status_id + 1)) { ?><option value="<?php echo ($support_status_id + 1);?>" selected><?php echo $jkl["hd15"];?></option><?php } ?>
|
||||
<option value="<?php echo ($support_status_id + 2);?>"<?php if ($JAK_FORM_DATA["status"] == ($support_status_id + 2) || $JAK_FORM_DATA["status"] == ($support_status_id + 4)) echo ' selected';?>><?php echo $jkl["hd16"];?></option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-check float-left">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="checkbox" name="changestatus" value="1"> <?php echo $jkl["hd99"];?>
|
||||
<span class="form-check-sign">
|
||||
<span class="check"></span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<hr>
|
||||
<?php if (isset($custom_fields) && !empty($custom_fields)) echo $custom_fields;?>
|
||||
</form>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card card-with-shadow no-transition">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title text-center"><?php echo $jkl['hd159'];?></h5>
|
||||
<div class="accounts-suggestion">
|
||||
<ul class="list-unstyled">
|
||||
<?php if (isset($involvedOperator) && is_array($involvedOperator)) foreach($involvedOperator as $io) { ?>
|
||||
<li class="account space-top">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="avatar text-center">
|
||||
<img src="<?php echo BASE_URL.JAK_FILES_DIRECTORY.$io["picture"];?>" alt="<?php echo $io["name"];?>" class="img-circle img-no-padding img-responsive">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8 description-section">
|
||||
<span class="h6"><?php echo $io["name"];?></span>
|
||||
<br>
|
||||
<span class="text-muted"><small><?php echo $io["aboutme"];?></small></span>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card card-with-shadow no-transition">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title text-center"><?php echo sprintf($jkl['hd82'], '(<span id="upload-counter">'.$JAK_FORM_DATA["attachments"].'</span>)');?></h5>
|
||||
<div class="accounts-suggestion">
|
||||
<ul class="list-unstyled" id="attach-list">
|
||||
|
||||
<?php if (isset($JAK_TICKET_FILES) && is_array($JAK_TICKET_FILES)) foreach($JAK_TICKET_FILES as $k) { if (getimagesize($k["path"])) { ?>
|
||||
<li class="account space-top">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="avatar">
|
||||
<img src="<?php echo BASE_URL;?>_showfile.php?i=<?php echo jak_encrypt_decrypt($k["encrypt"]);?>" alt="<?php echo $k["name"];?>" class="attachment-thumbnail img-no-padding img-responsive">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8 description-section">
|
||||
<span><a href="<?php echo BASE_URL;?>_showfile.php?i=<?php echo jak_encrypt_decrypt($k["encrypt"]);?>" target="_blank"><?php echo substr($k["name"], 17);?></a></span>
|
||||
<br>
|
||||
<span class="text-muted"><small><?php echo sprintf($jkl['hd140'], human_filesize($k["path"]));?></small></span>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php } else { ?>
|
||||
<li class="account space-top">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="avatar">
|
||||
<img src="<?php echo BASE_URL;?>template/<?php echo JAK_FRONT_TEMPLATE;?>/img/attachments.jpg" alt="Circle Image" class="img-circle img-no-padding img-responsive">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8 description-section">
|
||||
<span><a href="<?php echo BASE_URL;?>_showfile.php?i=<?php echo jak_encrypt_decrypt($k["encrypt"]);?>" target="_blank"><?php echo substr($k["name"], 17);?></a></span>
|
||||
<br>
|
||||
<span class="text-muted"><small><?php echo sprintf($jkl['hd140'], human_filesize($k["path"]));?></small></span>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<?php } } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card no-transition">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<?php if (isset($JAK_NAV_PREV) && !empty($JAK_NAV_PREV)) { ?>
|
||||
<div class="col-6 text-left">
|
||||
<div class="row float-left pl-2 pr-1">
|
||||
<a href="<?php echo $JAK_NAV_PREV;?>" class="btn btn-outline-info btn-round"><i class="fa fa-arrow-left"></i> <?php echo $JAK_NAV_PREV_TITLE;?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php } if (isset($JAK_NAV_NEXT) && !empty($JAK_NAV_NEXT)) { ?>
|
||||
<div class="col-6 text-right">
|
||||
<div class="row float-right pr-2 pl-1">
|
||||
<a href="<?php echo $JAK_NAV_NEXT;?>" class="btn btn-outline-info btn-round"><?php echo $JAK_NAV_NEXT_TITLE;?> <i class="fa fa-arrow-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
|
||||
Reference in New Issue
Block a user