Initial Commit

This commit is contained in:
2024-02-08 12:07:49 -07:00
parent 5813b1109f
commit 43077b57ed
5471 changed files with 682195 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php include_once 'header.php';?>
<!-- Main content -->
<section class="content">
<div class="error-page">
<h2 class="headline text-yellow"> 404</h2>
<div class="error-content">
<h3><i class="fa fa-warning text-yellow"></i> <?php echo $jkl["404"];?></h3>
<p>
We could not find the page you were looking for.
Meanwhile, you may <a href="<?php echo BASE_URL;?>">return to home</a>.
</p>
</div><!-- /.error-content -->
</div><!-- /.error-page -->
</section><!-- /.content -->
<?php include_once 'footer.php';?>
+211
View File
@@ -0,0 +1,211 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('answers');?>"><?php echo $jkl["m20"];?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms');?>"><?php echo $jkl["hd126"];?></a>
</li>
</ul>
<hr>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">language</i>
</div>
<h4 class="card-title "><?php echo $jkl["g22"];?></h4>
</div>
<div class="card-body">
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group">
<select name="jak_lang_pack" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($unique_lang) && is_array($unique_lang)) foreach($unique_lang as $lfu) { ?><option value="<?php echo $lfu;?>"><?php echo ucwords($lfu);?></option><?php } ?>
</select>
</div>
<button type="submit" name="create_language_pack" class="btn btn-primary btn-block"><?php echo $jkl["g326"];?></button>
</form>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g244"];?></h4>
</div>
<div class="card-body">
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];?></div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" class="form-control" value="<?php if (isset($_POST["title"])) echo $_POST["title"];?>">
</div>
<div class="form-group">
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g131"];?></option>
<option value="0"><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"><?php echo $z["title"];?></option>
<?php } ?>
</select>
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["hd133"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
<div class="form-group">
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if (JAK_LANG == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="form-group">
<select name="jak_msgtype" id="jak_msgtype" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g250"];?></option>
<option value="1" checked> <?php echo $jkl["g246"];?></option>
<option value="2"> <?php echo $jkl["g247"];?></option>
<option value="3"> <?php echo $jkl["g248"];?></option>
<option value="4"> <?php echo $jkl["g249"];?></option>
<option value="5"> <?php echo $jkl["g255"];?></option>
<option value="6"> <?php echo $jkl["g259"];?></option>
<option value="7"> <?php echo $jkl["g260"];?></option>
<option value="24"> <?php echo $jkl["hd209"];?></option>
<option value="8"> <?php echo $jkl["g261"];?></option>
<option value="9"> <?php echo $jkl["g262"];?></option>
<option value="10"> <?php echo $jkl["g263"];?></option>
<option value="11"> <?php echo $jkl["g307"];?></option>
<option value="12"> <?php echo $jkl["g308"];?></option>
<option value="13"> <?php echo $jkl["g309"];?></option>
<option value="14"> <?php echo $jkl["hd113"];?></option>
<option value="15"> <?php echo $jkl["hd114"];?></option>
<option value="16"> <?php echo $jkl["hd115"];?></option>
<option value="17"> <?php echo $jkl["hd116"];?></option>
<option value="18"> <?php echo $jkl["hd117"];?></option>
<option value="19"> <?php echo $jkl["hd121"];?></option>
<option value="20"> <?php echo $jkl["hd122"];?></option>
<option value="21"> <?php echo $jkl["hd123"];?></option>
<option value="22"> <?php echo $jkl["hd124"];?></option>
<option value="23"> <?php echo $jkl["hd125"];?></option>
<option value="25"> <?php echo $jkl["g85"];?></option>
<option value="26"> <?php echo $jkl["g328"];?></option>
<option value="27"> <?php echo $jkl["g329"];?></option>
<option value="28"> <?php echo $jkl["g350"];?></option>
<option value="29"> <?php echo $jkl["g358"];?></option>
<option value="30"> <?php echo $jkl["g359"];?></option>
</select>
</div>
<div class="form-group">
<select name="jak_fireup" id="fireup" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g251"];?></option>
<option value="15">15 <?php echo $jkl["g196"];?></option>
<option value="30">30 <?php echo $jkl["g196"];?></option>
<option value="60">1 <?php echo $jkl["g197"];?></option>
<option value="120">2 <?php echo $jkl["g197"];?></option>
<option value="180">3 <?php echo $jkl["g197"];?></option>
<option value="240">4 <?php echo $jkl["g197"];?></option>
<option value="300">5 <?php echo $jkl["g197"];?></option>
<option value="360">6 <?php echo $jkl["g197"];?></option>
<option value="420">7 <?php echo $jkl["g197"];?></option>
<option value="480">8 <?php echo $jkl["g197"];?></option>
<option value="540">9 <?php echo $jkl["g197"];?></option>
<option value="600">10 <?php echo $jkl["g197"];?></option>
<option value="900">15 <?php echo $jkl["g197"];?></option>
<option value="1200">20 <?php echo $jkl["g197"];?></option>
</select>
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h17"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="answer"><?php echo $jkl["g245"];?></label>
<textarea name="answer" id="answer" class="form-control" rows="3"><?php if (isset($_POST["answer"])) echo $_POST["answer"];?></textarea>
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h13"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
<div class="card-footer">
<button type="submit" name="insert_answer" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">list</i>
</div>
<h4 class="card-title "><?php echo $jkl["g243"];?></h4>
</div>
<div class="card-body">
<?php if (isset($only_used_lang) && count($only_used_lang) > 1) { ?>
<p>
<ul class="nav nav-pills nav-pills-primary">
<?php foreach ($only_used_lang as $ul) { ?>
<li class="nav-item">
<a class="nav-link<?php echo ($ul == $page1 ? ' active' : (empty($page1) && $ul == JAK_LANG ? ' active' : ''));?>" href="<?php echo JAK_rewrite::jakParseurl('answers', ($ul == JAK_LANG ? '' : $ul));?>"><?php echo $ul;?></a>
</li>
<?php } ?>
</ul>
</p>
<?php } ?>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g22"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<?php if (isset($ANSWERS_ALL) && is_array($ANSWERS_ALL)) foreach($ANSWERS_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td class="title"><a href="<?php echo JAK_rewrite::jakParseurl('answers', 'edit', $v["id"]);?>"><?php echo $v["title"];?></a></td>
<td class="desc"><?php echo $v["lang"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('answers', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('answers', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e31"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+68
View File
@@ -0,0 +1,68 @@
<div class="modal-header">
<h4 class="modal-title"><?php echo $pg["title"];?></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<div class="padded-box">
<div id="contact-container">
<div class="row">
<div class="col-md-6">
<h4><?php echo $jkl['g355'];?></h4>
<?php echo nl2br($pg["bank_info"]);?>
</div>
<div class="col-md-6">
<h4><?php echo $jkl['g137'];?></h4>
<ul>
<li><?php echo sprintf($jkl['g351'], $pg["packageid"]);?></li>
<li><?php echo sprintf($jkl['g352'], JAK_USERID);?></li>
<li><?php echo sprintf($jkl['g353'], JAK_MAIN_LOC);?></li>
</ul>
<small><?php echo $jkl['g354'];?>
</div>
</div>
<hr>
<p><?php echo $jkl['g356'];?></p>
</div>
</div>
</div>
<div class="modal-footer">
<a href="javascript:void(0)" class="btn btn-primary paynowbank" data-packageid="<?php echo $pg["packageid"];?>" data-paymentid="<?php echo $pg["id"];?>" data-amount="<?php echo $pg["amount"];?>" data-currency="<?php echo $pg["currency"];?>" data-paidhow="<?php echo $pg["paygateid"];?>" data-ccid="<?php echo $pg["ccid"];?>" data-payfor="paymember" data-dismiss="modal"><i class="jak-loadbtn"></i> <?php echo $jkl['g357'];?></a>
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $jkl["g180"];?></button>
</div>
<script>
// Extend Membership
$('.paynowbank').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("packageid");
var paygateid = $(this).data("paymentid");
var amount = $(this).data("amount");
var currency = $(this).data("currency");
var paidhow = $(this).data("paidhow");
var ccid = $(this).data("ccid");
var pfp = $(this).data("payfor");
// Populate the hidden fields
$("#pid").val(pid);
$("#pgid").val(paygateid);
$("#paidhow").val(paidhow);
$("#check").val(pfp);
$("#ccid").val(ccid);
$("#subscribe").val(0);
$("#buypackage").submit();
});
</script>
+202
View File
@@ -0,0 +1,202 @@
<?php include_once 'header.php';?>
<?php if (JAK_BILLING_MODE == 0) { ?>
<div class="alert alert-rose"><?php echo $jkl['hd86'];?></div>
<?php } ?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('billing');?>"><?php echo $jkl["hd57"];?></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('billing', 'packages');?>"><?php echo $jkl["hd60"];?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('billing', 'products');?>"><?php echo $jkl["hd296"];?></a>
</li>
</ul>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-4">
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd70"];?></h4>
</div>
<div class="card-body">
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];
if (isset($errors["e3"])) echo $errors["e3"];?></div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php if (isset($_POST["title"])) echo $_POST["title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="content"><?php echo $jkl["g52"];?></label>
<textarea class="form-control" name="content" rows="3"><?php if (isset($_POST["content"])) echo $_POST["content"];?></textarea>
</div>
<div class="form-group">
<label class="control-label" for="previmg"><?php echo $jkl["hd34"];?></label>
<div class="input-group">
<input type="text" name="previmg" id="previmg" class="form-control" value="<?php if (isset($_POST["previmg"])) echo $_POST["previmg"];?>">
<span class="input-group-btn">
<a class="btn btn-rose btn-round btn-fab" data-toggle="modal" data-target="#jakFM" type="button" href="javascript:void(0)"><i class="far fa-file-archive"></i></a>
</span>
</div>
</div>
<?php if (JAK_BILLING_MODE == 1) { ?>
<div class="form-group">
<label class="control-label" for="credits"><?php echo $jkl["hd61"];?></label>
<input type="number" min="0" name="credits" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php if (isset($_POST["credits"])) echo $_POST["credits"];?>">
</div>
<?php } else { ?>
<div class="form-group">
<label class="control-label" for="paidtill"><?php echo $jkl["hd62"];?></label>
<select name="paidtill" class="selectpicker col-12" data-live-search="true" title="<?php echo $jkl["g335"];?>">
<option value="1 WEEK"><?php echo sprintf($jkl['hd65'], "1");?></option>
<option value="1 MONTH"><?php echo sprintf($jkl['hd67'], "1");?></option>
<option value="6 MONTHS"><?php echo sprintf($jkl['hd68'], "6");?></option>
<option value="1 YEAR"><?php echo sprintf($jkl['hd69'], "1");?></option>
</select>
</div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="jak_depid"><?php echo $jkl["hd2"].$jkl['hd132'];?></label>
<select name="jak_depid[]" class="selectpicker col-12" data-live-search="true" title="<?php echo $jkl["g335"];?>" multiple>
<option value="0"<?php if (isset($_POST["jak_depid"]) && $_POST["jak_depid"] == 0) echo ' selected';?>><?php echo $jkl["g246"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $v) { ?>
<option value="<?php echo $v["id"];?>"><?php echo $v["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depids"><?php echo $jkl["hd3"].$jkl['hd132'];?></label>
<select name="jak_depids[]" class="selectpicker col-12" data-live-search="true" title="<?php echo $jkl["g335"];?>" multiple>
<option value="0"<?php if (isset($_POST["jak_depid"]) && $_POST["jak_depid"] == 0) echo ' selected';?>><?php echo $jkl["g246"];?></option>
<?php if (isset($JAK_DEP_SUPPORT) && is_array($JAK_DEP_SUPPORT)) foreach($JAK_DEP_SUPPORT as $d) { ?>
<option value="<?php echo $d["id"];?>"><?php echo $d["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depidf"><?php echo $jkl["hd4"].$jkl['hd132'];?></label>
<select name="jak_depidf[]" class="selectpicker col-12" data-live-search="true" title="<?php echo $jkl["g335"];?>" multiple>
<option value="0"<?php if (isset($_POST["jak_depid"]) && $_POST["jak_depid"] == 0) echo ' selected';?>><?php echo $jkl["g246"];?></option>
<?php if (isset($JAK_CAT_FAQ) && is_array($JAK_CAT_FAQ)) foreach($JAK_CAT_FAQ as $f) { ?>
<option value="<?php echo $f["id"];?>"><?php echo $f["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="amount"><?php echo $jkl["hd71"];?></label>
<input type="number" min="0" name="amount" class="form-control<?php if (isset($errors["e2"])) echo " is-invalid";?>" value="<?php if (isset($_POST["amount"])) echo $_POST["amount"];?>">
</div>
<div class="form-group">
<label class="control-label" for="currency"><?php echo $jkl["hd72"];?></label>
<input type="text" maxlength="3" minlength="3" name="currency" class="form-control<?php if (isset($errors["e3"])) echo " is-invalid";?>" value="<?php if (isset($_POST["currency"])) echo $_POST["currency"];?>">
</div>
</div>
<div class="card-footer">
<button type="submit" name="insert_billing" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">list</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd60"];?></h4>
</div>
<div class="card-body">
<?php if (isset($BILLING_ALL) && is_array($BILLING_ALL) && !empty($BILLING_ALL)) { ?>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<?php if (JAK_BILLING_MODE == 1) { ?>
<th><?php echo $jkl["hd74"];?></th>
<?php } else { ?>
<th><?php echo $jkl["hd75"];?></th>
<?php } ?>
<th><?php echo $jkl["hd71"];?></th>
<th><?php echo $jkl["g101"];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<?php foreach($BILLING_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td class="title"><a class="btn btn-sm btn-primary" href="<?php echo JAK_rewrite::jakParseurl('billing', 'packages', 'edit', $v["id"]);?>"><?php echo $v["title"];?></a></td>
<?php if (JAK_BILLING_MODE == 1) { ?>
<td><?php echo $v["credits"];?></td>
<?php } else { ?>
<td><?php echo $v["paidtill"];?></td>
<?php } ?>
<td><?php echo $v["amount"].' '.$v["currency"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('billing', 'packages', 'lock', $v["id"]);?>"><i class="fa fa-<?php if ($v["active"] == '1') { ?>check<?php } else { ?>lock<?php } ?>"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('billing', 'packages', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e31"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
<?php } else { ?>
<div class="alert alert-info">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+87
View File
@@ -0,0 +1,87 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g184"];?></h4>
</div>
<div class="card-body">
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="path"><?php echo $jkl["g167"];?></label>
<input type="text" name="path" class="form-control" value="<?php if (isset($_POST["path"])) echo $_POST["path"];?>">
</div>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control" value="<?php if (isset($_POST["title"])) echo $_POST["title"];?>">
</div>
</div>
<div class="card-footer">
<button type="submit" name="insert_blacklist" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
</form>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">traffic</i>
</div>
<h4 class="card-title "><?php echo $jkl["m27"];?></h4>
</div>
<div class="card-body">
<?php if (isset($BLACKLIST_ALL) && is_array($BLACKLIST_ALL) && !empty($BLACKLIST_ALL)) { ?>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g167"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<?php foreach($BLACKLIST_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td><a href="<?php echo JAK_rewrite::jakParseurl('blacklist', 'edit', $v["id"]);?>"><?php echo $v["title"];?></a></td>
<td><?php echo $v["path"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('blacklist', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('blacklist', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+35
View File
@@ -0,0 +1,35 @@
<?php include_once 'header.php';?>
<?php if ($success) { ?>
<div class="alert alert-success">
<?php if (isset($success["e"])) echo $success["e"];?>
</div>
<?php } ?>
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="box box-danger">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $jkl["g97"];?></h3>
</div><!-- /.box-header -->
<div class="box-body">
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td><?php echo $jkl["g95"];?> <a href="javascript:void(0)" class="jakweb-help" data-content="<?php echo $jkl["h3"];?>" data-original-title="<?php echo $jkl["t"];?>"><i class="fa fa-question-circle"></i></a></td>
<td><textarea name="ip_block" rows="5" class="form-control"><?php echo JAK_IP_BLOCK;?></textarea></td>
</tr>
<tr>
<td><?php echo $jkl["g96"];?> <a href="javascript:void(0)" class="jakweb-help" data-content="<?php echo $jkl["h4"];?>" data-original-title="<?php echo $jkl["t"];?>"><i class="fa fa-question-circle"></i></a></td>
<td><textarea name="email_block" rows="5" class="form-control"><?php echo JAK_EMAIL_BLOCK;?></textarea></td>
</tr>
</table>
</div>
</div>
<div class="box-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+88
View File
@@ -0,0 +1,88 @@
<?php include_once 'header.php';?>
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-md-3">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">description</i>
</div>
<p class="card-category"><?php echo $jkl["hd23"];?></p>
<h3 class="card-title"><?php echo $totalAll;?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<div class="col-md-3">
<div class="card card-stats">
<div class="card-header card-header-rose card-header-icon">
<div class="card-icon">
<i class="material-icons">comment</i>
</div>
<p class="card-category"><?php echo $jkl["hd37"];?></p>
<h3 class="card-title"><?php echo $totalAllC;?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
</div>
<?php if (!$blogaccess) { ?>
<div class="alert alert-danger"><?php echo $jkl['i13'];?></div>
<?php } else { ?>
<p><a class="btn btn-primary" href="<?php echo JAK_rewrite::jakParseurl('blog', 'new');?>"><?php echo $jkl["hd30"];?></a></p>
<?php if (isset($totalAll) && $totalAll != 0) { ?>
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">description</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd13"];?></h4>
</div>
<div class="card-body">
<?php if (JAK_SUPERADMINACCESS) { ?>
<p class="pull-right">
<button class="btn btn-default btn-sm btn-confirm" data-action="status" data-title="<?php echo addslashes($jkl["hd25"]);?>" data-text="<?php echo addslashes($jkl["hd26"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="material-icons">check</i> / <i class="material-icons">clear</i></button> <button class="btn btn-danger btn-sm btn-confirm" data-action="delete" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></button>
</p>
<div class="clearfix"></div>
<?php } ?>
<table id="dynamic-data" class="table table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>#</th>
<th><input type="checkbox" id="jak_delete_all"></th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g22"];?></th>
<th><?php echo $jkl["g321"];?></th>
<th><?php echo $jkl["g102"];?></th>
<th><?php echo $jkl["g101"];?></th>
<th><?php echo $jkl["g13"];?></th>
</tr>
</thead>
</table>
</div>
</div>
<input type="hidden" name="action" id="action">
</form>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } } ?>
<?php include_once 'footer.php';?>
+170
View File
@@ -0,0 +1,170 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings');?>"><?php echo $jkl["hd9"];?></a>
</li>
<?php if ($jakosub['tickets'] && jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'support');?>"><?php echo $jkl["hd10"];?></a>
</li>
<?php } if ($jakosub['faq'] && jak_get_access("faq", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'faq');?>"><?php echo $jkl["hd11"];?></a>
</li>
<?php } if ($jakosub['blog'] && jak_get_access("blog", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('settings', 'blog');?>"><?php echo $jkl["hd12"];?></a>
</li>
<?php } ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'email');?>"><?php echo $jkl["hd119"];?></a>
</li>
<?php if ($jakosub['tickets'] && jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'phpimap');?>"><?php echo $jkl["hd43"];?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
<hr>
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">description</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd107"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_blog"><?php echo $jkl["hd108"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_blog" value="1"<?php if (JAK_BLOG_A == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_blog" value="0"<?php if (JAK_BLOG_A == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_blogc"><?php echo $jkl["hd218"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_blogc" value="1"<?php if (JAK_BLOGPOSTAPPROVE == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_blogc" value="0"<?php if (JAK_BLOGPOSTAPPROVE == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_blog_home"><?php echo $jkl["hd109"];?></label>
<select name="jak_blog_home" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (JAK_BLOG_HOME == 0) echo ' selected';?>><?php echo $jkl["g304"];?></option>
<?php for ($i = 1; $i < 13; $i++) {
if ($i == JAK_BLOG_HOME) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div>
<!-- <div class="form-group">
<label class="control-label" for="jak_blog_footer"><?php echo $jkl["hd110"];?></label>
<select name="jak_blog_footer" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (JAK_BLOG_FOOTER == 0) echo ' selected';?>><?php echo $jkl["g304"];?></option>
<?php for ($i = 1; $i < 11; $i++) {
if ($i == JAK_BLOG_FOOTER) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div> -->
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-primary">
<div class="card-icon">
<i class="material-icons">view_array</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd261"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_blog_page"><?php echo $jkl["hd262"];?></label>
<select name="jak_blog_page" class="selectpicker col-12" data-live-search="true">
<?php for ($i = 1; $i < 20; $i++) {
if ($i == JAK_BLOG_PAGE) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_blog_pagination"><?php echo $jkl["hd261"];?></label>
<select name="jak_blog_pagination" class="selectpicker col-12" data-live-search="true">
<?php for ($i = 5; $i < 20; $i++) {
if ($i == JAK_BLOG_PAGINATION) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+126
View File
@@ -0,0 +1,126 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-3">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g270"];?></h4>
</div>
<div class="card-body">
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="question"><?php echo $jkl["g269"];?></label>
<input type="text" name="question" class="form-control" value="<?php if (isset($_POST["question"])) echo $_POST["question"];?>">
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h22"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
<div class="form-group">
<label class="control-label" for="widgetid"><?php echo $jkl["g291"];?></label>
<select name="jak_widgetid[]" id="widgetid" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0" selected><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_WIDGETS) && is_array($JAK_WIDGETS)) foreach($JAK_WIDGETS as $w) { ?>
<option value="<?php echo $w["id"];?>"><?php echo $w["title"];?></option>
<?php } ?>
</select>
<small class="form-text text-muted">
<?php echo $jkl["h6"];?>
</small>
</div>
<div class="form-group">
<label class="control-label" for="department"><?php echo $jkl["g131"];?></label>
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option value="0"><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_lang"><?php echo $jkl["g22"];?></label>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if (JAK_LANG == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="answer"><?php echo $jkl["g273"];?></label>
<textarea name="answer" class="form-control" rows="3"><?php if (isset($_POST["answer"])) echo $_POST["answer"];?></textarea>
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h21"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
<div class="card-footer">
<button type="submit" name="insert_bot" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-9">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">mood</i>
</div>
<h4 class="card-title "><?php echo $jkl["g271"];?></h4>
</div>
<div class="card-body">
<?php if (isset($BOT_ALL) && is_array($BOT_ALL) && !empty($BOT_ALL)) { ?>
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g269"];?></th>
<th><?php echo $jkl["g273"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<?php foreach($BOT_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td class="title"><a href="<?php echo JAK_rewrite::jakParseurl('bot', 'edit', $v["id"]);?>"><?php echo $v["question"];?></a></td>
<td class="desc"><?php echo $v["answer"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('bot', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('bot', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+165
View File
@@ -0,0 +1,165 @@
<?php include_once 'header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php echo $errors["e"];?></div>
<?php } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g164"];?></h4>
</div>
<div class="card-body">
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h15"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
<div class="row">
<div class="col-md-3">
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
</div>
<div class="fileinput-preview fileinput-exists thumbnail"></div>
<div>
<span class="btn btn-rose btn-round btn-file">
<span class="fileinput-new"><?php echo $jkl["g165"];?></span>
<span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
<input type="file" name="uploadpp" accept="image/*" />
</span>
<a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
</div>
</div>
</div>
<div class="col-md-3">
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
</div>
<div class="fileinput-preview fileinput-exists thumbnail"></div>
<div>
<span class="btn btn-rose btn-round btn-file">
<span class="fileinput-new"><?php echo $jkl["g166"];?></span>
<span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
<input type="file" name="uploadpp1" accept="image/*" />
</span>
<a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer">
<button type="submit" name="upload" class="btn btn-primary pull-right"><?php echo $jkl["g127"];?></button>
</div>
</div>
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $jkl["g71"];?></h3>
</div><!-- /.box-header -->
<div class="box-body">
<div class="card-columns">
<?php if (isset($BUTTONS_ALL) && !empty($BUTTONS_ALL)) foreach($BUTTONS_ALL as $k) { if (getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/buttons/'.$usrfolder.$k) && strpos($k,"_on")) { ?>
<div class="card card-body text-center">
<img src="../<?php echo JAK_FILES_DIRECTORY;?>/buttons/<?php echo $usrfolder.$k;?>" alt="<?php echo $k;?>" class="img-fluid center hover-button">
<div class="card-body">
<h4 class="card-title"><?php echo $k;?></h4>
<a href="<?php echo JAK_rewrite::jakParseurl('buttons', 'delete', $k, JAK_USERID);?>" class="btn btn-danger btn-sm btn-confirm" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e43"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a>
</div>
</div>
<?php } } ?>
</div>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g298"];?></h4>
</div>
<div class="card-body">
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h15"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
<div class="row">
<div class="col-md-3">
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
</div>
<div class="fileinput-preview fileinput-exists thumbnail"></div>
<div>
<span class="btn btn-rose btn-round btn-file">
<span class="fileinput-new"><?php echo $jkl["g165"];?></span>
<span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
<input type="file" name="uploadppsi" accept="image/*" />
</span>
<a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
</div>
</div>
</div>
<div class="col-md-3">
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
</div>
<div class="fileinput-preview fileinput-exists thumbnail"></div>
<div>
<span class="btn btn-rose btn-round btn-file">
<span class="fileinput-new"><?php echo $jkl["g166"];?></span>
<span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
<input type="file" name="uploadppsi1" accept="image/*" />
</span>
<a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer">
<button type="submit" name="upload" class="btn btn-primary pull-right"><?php echo $jkl["g127"];?></button>
</div>
</div>
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $jkl["g292"];?></h3>
</div><!-- /.box-header -->
<div class="box-body">
<div class="card-columns">
<?php if (isset($SLIDEIMG_ALL) && !empty($SLIDEIMG_ALL)) foreach($SLIDEIMG_ALL as $k) { if (getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/slideimg/'.$usrfolder.$k) && strpos($k,"_on")) { ?>
<div class="card card-body text-center">
<img src="../<?php echo JAK_FILES_DIRECTORY;?>/slideimg/<?php echo $usrfolder.$k;?>" alt="<?php echo $k;?>" class="img-fluid center hover-button">
<div class="card-body">
<h4 class="card-title"><?php echo $k;?></h4>
<a href="<?php echo JAK_rewrite::jakParseurl('buttons', 'deletef', $k, JAK_USERID);?>" class="btn btn-danger btn-sm btn-confirm" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e43"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a>
</div>
</div>
<?php } } ?>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+91
View File
@@ -0,0 +1,91 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="description" content="Cloud Desk 3 - Operator Public Chat">
<meta name="keywords" content="Your premium Live Support/Chat application from JAKWEB">
<meta name="author" content="Cloud Desk 3">
<title><?php if ($page) { ?><?php echo ucwords($page);?> - <?php } echo JAK_TITLE;?></title>
<link rel="shortcut icon" href="<?php echo BASE_URL_ORIG;?>favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="<?php echo BASE_URL_ORIG;?>css/stylesheet.css?=<?php echo JAK_UPDATED;?>" type="text/css" media="screen">
<link rel="stylesheet" href="<?php echo BASE_URL;?>css/screen.css?=<?php echo JAK_UPDATED;?>" type="text/css" media="screen">
<?php if ($jkl["rtlsupport"]) { ?>
<!-- RTL Support -->
<link rel="stylesheet" href="<?php echo BASE_URL_ORIG;?>css/style-rtl.css?=<?php echo JAK_UPDATED;?>" type="text/css" media="screen">
<!-- End RTL Support -->
<?php } ?>
<!--[if lt IE 9]>
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div id="operator-chat"></div>
<!-- Error MSG -->
<div id="msgErrorOC"></div>
<form role="form" name="messageInputOC" id="MessageInputOC" action="javascript:sendInputOC();">
<div class="form-group">
<label class="control-label" for="messageOC"><?php echo $jkl["g135"];?></label>
<textarea name="messageOC" id="messageOC" class="form-control" rows="2"></textarea>
</div>
<input type="hidden" name="userIDOC" id="userIDOC" value="<?php echo $jakuser->getVar("id");?>">
<input type="hidden" name="userIDOCOP" id="userIDOCOP" value="<?php echo $page2;?>">
<input type="hidden" name="userName" id="userName" value="<?php echo $jakuser->getVar("username");?>">
</form>
</div><!--/coll-->
</div><!--/row-->
</div>
<script type="text/javascript" src="<?php echo BASE_URL_ORIG;?>js/jquery.js?=<?php echo JAK_UPDATED;?>"></script>
<?php if (is_numeric($page1) && is_numeric($page2) && JAK_USERID == $page1) { ?>
<script type="text/javascript" src="<?php echo BASE_URL;?>js/popupop.chat.js"></script>
<script type="text/javascript">
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
$(document).ready(function(){
getInputOCP();
// set up auto refresh to pull new entries into chat window
ls.intervalID = setInterval("getInputOCP();", 5000);
});
</script>
<?php } else {
// We have to check if we have public chat access
if ($jakuser->getVar("operatorchatpublic") != 1) jak_redirect(BASE_URL);
?>
<script type="text/javascript" src="<?php echo BASE_URL;?>js/public.chat.js"></script>
<script type="text/javascript">
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
$(document).ready(function(){
getInputOC();
// set up auto refresh to pull new entries into chat window
ls.intervalID = setInterval("getInputOC();", 5000);
});
</script>
<?php } ?>
</body>
</html>
+55
View File
@@ -0,0 +1,55 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<?php if (isset($CHATS_ALLC) && is_array($CHATS_ALLC) && !empty($CHATS_ALLC)) { ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><input type="checkbox" id="jak_delete_all" /></th>
<th><?php echo $jkl["g12"];?></th>
<th><?php echo $jkl["g145"];?></th>
<th><?php echo $jkl["g146"];?></th>
<th><?php echo $jkl["g13"];?></th>
<?php if (JAK_SUPERADMINACCESS) { ?><th class="content-go"><a class="btn btn-warning btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('chats', 'truncate');?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e39"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-exclamation-triangle"></i></a></th>
<th><button class="btn btn-danger btn-sm btn-confirm" data-action="delete" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></button></th><?php } ?>
</tr>
</thead>
<?php foreach($CHATS_ALLC as $vc) { ?>
<tr>
<td></td>
<td><input type="checkbox" name="ls_delete_chats[]" class="highlight" value="<?php echo $vc["id"];?>" /></td>
<td><?php echo $vc["username"];?></td>
<td><?php echo (!empty($vc["touser"]) ? $vc["touser"] : $jkl['u41']);?></td>
<td class="span8"><?php echo $vc["message"];?></td>
<td><?php echo JAK_base::jakTimesince($vc['sent'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
<?php if (JAK_MAIN_OP) { ?><td></td>
<td><a class="btn btn-default btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('chats', 'delete', $vc["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e33"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td><?php } ?>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</form>
<?php } else { ?>
<div class="alert alert-info">
<?php echo $jkl['i3'];?>
</div>
<?php } if (isset($JAK_PAGINATE)) echo $JAK_PAGINATE;?>
</div>
</div>
<?php include_once 'footer.php';?>
+79
View File
@@ -0,0 +1,79 @@
<div class="modal-header">
<h4 class="modal-title"><?php echo $jkl["m1"];?></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<div class="jak-thankyou"></div>
<form class="jak-ajaxform" method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']);?>">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label class="control-label" for="name"><?php echo $jkl["g54"];?></label>
<input type="text" name="name" id="name" class="form-control" placeholder="<?php echo $jkl["g54"];?>" value="<?php echo $rowi['name'];?>">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label class="control-label" for="email"><?php echo $jkl["g220"];?></label>
<input type="text" name="email" id="email" class="form-control" placeholder="<?php echo $jkl["g220"];?>" value="<?php echo $rowi['email'];?>">
</div>
</div>
</div>
<div class="form-group">
<label class="control-label" for="subject"><?php echo $jkl["g221"];?></label>
<input type="text" name="subject" id="subject" class="form-control" placeholder="<?php echo $jkl["g221"];?>">
</div>
<div class="form-group">
<label class="control-label" for="message"><?php echo $jkl["g146"];?></label>
<textarea name="message" id="message" rows="5" class="form-control"></textarea>
</div>
<button type="submit" class="btn btn-primary btn-block ls-submit"><?php echo $jkl["g4"];?></button>
<input type="hidden" name="send_email" value="1">
</form>
<?php if (isset($MESSAGES_ALL) && is_array($MESSAGES_ALL)) { ?>
<hr>
<h3><?php echo $jkl["g222"];?></h3>
<div class="panel-group" id="accordion">
<?php foreach($MESSAGES_ALL as $v) { ?>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $v["id"];?>">
<?php echo $v["operator"];?> / <?php echo JAK_base::jakTimesince($v['sent'], JAK_DATEFORMAT, JAK_TIMEFORMAT);?>
</a>
</h4>
</div>
<div id="collapse<?php echo $v["id"];?>" class="panel-collapse collapse">
<div class="panel-body">
<h3><?php echo $v["subject"];?></h3>
<p><?php echo $v["message"];?></p>
</div>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $jkl["g180"];?></button>
</div>
<script type="text/javascript" src="../js/contact.js"></script>
<script type="text/javascript">
ls.main_url = "<?php echo BASE_URL;?>";
ls.lsrequest_uri = "<?php echo JAK_PARSE_REQUEST;?>";
ls.ls_submit = "<?php echo $jkl['g4'];?>";
ls.ls_submitwait = "<?php echo $jkl['g67'];?>";
</script>
+81
View File
@@ -0,0 +1,81 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('users');?>"><?php echo $jkl["hd5"];?></a>
</li>
<?php if (jak_get_access("client", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>"><?php echo $jkl["hd6"];?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
<hr>
<?php if ($addclient && jak_get_access("client", $jakuser->getVar("permissions"), JAK_MAIN_OP)) { ?>
<p><a class="btn btn-primary" href="<?php echo JAK_rewrite::jakParseurl('users', 'clients', 'new');?>"><?php echo $jkl["hd112"];?></a></p>
<?php } ?>
<?php if (!$addclient && jak_get_access("client", $jakuser->getVar("permissions"), JAK_MAIN_OP)) { ?>
<div class="alert alert-danger"><?php echo sprintf($jkl['i14'], $totalAll, $totalclients, $jkl['stat_s5']);?></div>
<?php } ?>
<?php if (isset($totalAll) && $totalAll != 0) { ?>
<div class="row">
<div class="col-md-12">
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">people</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd6"];?></h4>
</div>
<div class="card-body">
<?php if (jak_get_access("client", $jakuser->getVar("permissions"), JAK_MAIN_OP)) { ?>
<p class="pull-right">
<button class="btn btn-default btn-sm btn-confirm" data-action="lock" data-title="<?php echo addslashes($jkl["hd25"]);?>" data-text="<?php echo addslashes($jkl["hd26"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="material-icons">check</i> / <i class="material-icons">clear</i></button> <button class="btn btn-danger btn-sm btn-confirm" data-action="delete" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></button>
</p>
<div class="clearfix"></div>
<?php } ?>
<table id="dynamic-data" class="table table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>#</th>
<th><input type="checkbox" id="jak_delete_all"></th>
<th><?php echo $jkl["u"];?></th>
<th><?php echo $jkl["u1"];?></th>
<th><?php echo $jkl["hd74"];?></th>
<th><?php echo $jkl["hd143"];?></th>
<th><?php echo $jkl["g101"];?></th>
<th><?php echo $jkl["g174"];?></th>
</tr>
</thead>
</table>
</div>
</div>
<input type="hidden" name="action" id="action">
</form>
</div>
</div>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
<?php include_once 'footer.php';?>
+222
View File
@@ -0,0 +1,222 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('answers');?>"><?php echo $jkl["m20"];?></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms');?>"><?php echo $jkl["hd126"];?></a>
</li>
</ul>
<hr>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">language</i>
</div>
<h4 class="card-title "><?php echo $jkl["g22"];?></h4>
</div>
<div class="card-body">
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group">
<select name="jak_lang_pack_cms" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($unique_lang) && is_array($unique_lang)) foreach($unique_lang as $lfu) { ?><option value="<?php echo $lfu;?>"><?php echo ucwords($lfu);?></option><?php } ?>
</select>
</div>
<button type="submit" name="create_language_pack_cms" class="btn btn-primary btn-block"><?php echo $jkl["g326"];?></button>
</form>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd128"];?></h4>
</div>
<div class="card-body">
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];?></div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" maxlength="255" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php if (isset($_POST["title"])) echo $_POST["title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="url_slug"><?php echo $jkl["hd130"];?></label>
<input type="text" name="url_slug" id="url_slug" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php if (isset($_POST["url_slug"])) echo $_POST["url_slug"];?>">
</div>
<div class="form-group">
<label for="external_url"><?php echo $jkl["hd334"];?></label>
<input type="text" maxlength="255" name="external_url" id="external_url" class="form-control" value="<?php if (isset($_REQUEST["external_url"])) echo $_REQUEST["external_url"];?>">
</div>
<div class="form-group">
<p><label for="external_url"><?php echo $jkl["hd212"];?></label></p>
<select name="jak_prepage" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["hd212"];?></option>
<option value="0"><?php echo $jkl["hd213"];?></option>
<option value="<?php echo JAK_CLIENT_URL;?>"<?php if (isset($_POST["jak_prepage"]) && $_POST["jak_prepage"] == JAK_CLIENT_URL) echo ' selected';?>><?php echo JAK_CLIENT_URL;?></option>
<option value="<?php echo JAK_SEARCH_URL;?>"<?php if (isset($_POST["jak_prepage"]) && $_POST["jak_prepage"] == JAK_SEARCH_URL) echo ' selected';?>><?php echo JAK_SEARCH_URL;?></option>
<option value="<?php echo JAK_BLOG_URL;?>"<?php if (isset($_POST["jak_prepage"]) && $_POST["jak_prepage"] == JAK_BLOG_URL) echo ' selected';?>><?php echo JAK_BLOG_URL;?></option>
<option value="<?php echo JAK_FAQ_URL;?>"<?php if (isset($_POST["jak_prepage"]) && $_POST["jak_prepage"] == JAK_FAQ_URL) echo ' selected';?>><?php echo JAK_FAQ_URL;?></option>
<option value="<?php echo JAK_SUPPORT_URL;?>"<?php if (isset($_POST["jak_prepage"]) && $_POST["jak_prepage"] == JAK_SUPPORT_URL) echo ' selected';?>><?php echo JAK_SUPPORT_URL;?></option>
<option value="<?php echo JAK_CONTACT_URL;?>"<?php if (isset($_POST["jak_prepage"]) && $_POST["jak_prepage"] == JAK_CONTACT_URL) echo ' selected';?>><?php echo JAK_CONTACT_URL;?></option>
</select>
</div>
<div class="form-group">
<p><label for="external_url"><?php echo $jkl["g22"];?></label></p>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if (JAK_LANG == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="form-actions">
<button type="submit" name="insert_page" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
</form>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">view_timeline</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd130"];?></h4>
</div>
<div class="card-body">
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php
if (isset($errors["e3"])) echo $errors["e3"];
if (isset($errors["e4"])) echo $errors["e4"];
if (isset($errors["e5"])) echo $errors["e5"];
if (isset($errors["e6"])) echo $errors["e6"];
if (isset($errors["e7"])) echo $errors["e7"];
if (isset($errors["e8"])) echo $errors["e8"];?></div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group">
<label class="control-label" for="url_slug_client"><?php echo $jkl["hd77"];?></label>
<input type="text" name="url_slug_client" id="url_slug_client" class="form-control<?php if (isset($errors["e3"])) echo " is-invalid";?>" value="<?php echo JAK_CLIENT_URL;?>">
</div>
<div class="form-group">
<label class="control-label" for="url_slug_blog"><?php echo $jkl["hd13"];?></label>
<input type="text" name="url_slug_blog" id="url_slug_blog" class="form-control<?php if (isset($errors["e4"])) echo " is-invalid";?>" value="<?php echo JAK_BLOG_URL;?>">
</div>
<div class="form-group">
<label class="control-label" for="url_slug_faq"><?php echo $jkl["hd1"];?></label>
<input type="text" name="url_slug_faq" id="url_slug_faq" class="form-control<?php if (isset($errors["e5"])) echo " is-invalid";?>" value="<?php echo JAK_FAQ_URL;?>">
</div>
<div class="form-group">
<label class="control-label" for="url_slug_search"><?php echo $jkl["s5"];?></label>
<input type="text" name="url_slug_search" id="url_slug_search" class="form-control<?php if (isset($errors["e6"])) echo " is-invalid";?>" value="<?php echo JAK_SEARCH_URL;?>">
</div>
<div class="form-group">
<label class="control-label" for="url_slug_support"><?php echo $jkl["hd"];?></label>
<input type="text" name="url_slug_support" id="url_slug_support" class="form-control<?php if (isset($errors["e7"])) echo " is-invalid";?>" value="<?php echo JAK_SUPPORT_URL;?>">
</div>
<div class="form-group">
<label class="control-label" for="url_slug_contact"><?php echo $jkl["g261"];?></label>
<input type="text" name="url_slug_contact" id="url_slug_contact" class="form-control<?php if (isset($errors["e8"])) echo " is-invalid";?>" value="<?php echo JAK_CONTACT_URL;?>">
</div>
<button type="submit" name="change_url_slug" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</form>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">list</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd127"];?></h4>
</div>
<div class="card-body">
<?php if (isset($only_used_lang) && count($only_used_lang) > 1) { ?>
<p>
<ul class="nav nav-pills nav-pills-primary">
<?php foreach ($only_used_lang as $ul) { ?>
<li class="nav-item">
<a class="nav-link<?php echo ($ul == $page2 ? ' active' : (empty($page2) && $ul == JAK_LANG ? ' active' : ''));?>" href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms', ($ul == JAK_LANG ? '' : $ul));?>"><?php echo $ul;?></a>
</li>
<?php } ?>
</ul>
</p>
<?php } ?>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["hd130"];?></th>
<th><?php echo $jkl["g22"];?></th>
<th><?php echo $jkl["g102"];?></th>
<th><?php echo $jkl["g101"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<?php if (isset($PAGES_ALL) && is_array($PAGES_ALL)) foreach($PAGES_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td class="title"><a href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms', 'edit', $v["id"]);?>"><?php echo $v["title"];?></a></td>
<td><?php echo $v["url_slug"];?></td>
<td><?php echo $v["lang"];?></td>
<td><?php echo $v["dorder"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms', 'lock', $v["id"]);?>"><?php echo ($v["active"] == 1 ? '<i class="material-icons">check</i>' : '<i class="material-icons">clear</i>');?></a></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e31"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+93
View File
@@ -0,0 +1,93 @@
<?php include_once 'header.php';?>
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-md-4">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">mail</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s29"];?></p>
<h3 class="card-title"><?php echo $totalAll;?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<div class="col-md-4">
<div class="card card-stats">
<div class="card-header card-header-rose card-header-icon">
<div class="card-icon">
<i class="material-icons">drafts</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s30"];?></p>
<h3 class="card-title"><?php echo $totalAllc;?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<div class="col-md-4">
<div class="card card-stats">
<div class="card-header card-header-success card-header-icon">
<div class="card-icon">
<i class="material-icons">reply</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s31"];?></p>
<h3 class="card-title"><?php echo $bounce_percentage;?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
</div>
<?php if (isset($totalAll) && !empty($totalAll)) { ?>
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">textsms</i>
</div>
<h4 class="card-title "><?php echo $jkl["m22"];?></h4>
</div>
<div class="card-body">
<?php if (JAK_SUPERADMINACCESS) { ?>
<p class="pull-right">
<a class="btn btn-warning btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('contacts', 'truncate');?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e40"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-exclamation-triangle"></i></a> <button class="btn btn-danger btn-sm btn-confirm" data-action="delete" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></button>
</p>
<div class="clearfix"></div>
<?php } ?>
<table id="dynamic-data" class="table table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>#</th>
<th><input type="checkbox" id="jak_delete_contacts"></th>
<th><?php echo $jkl["g54"];?></th>
<th><?php echo $jkl["l5"];?></th>
<th><?php echo $jkl["stat_s30"];?></th>
<th><?php echo $jkl['g13'];?></th>
</tr>
</thead>
</table>
</div>
</div>
<input type="hidden" name="action" id="action">
</form>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } if (isset($JAK_PAGINATE)) echo $JAK_PAGINATE;?>
<?php include_once 'footer.php';?>
+198
View File
@@ -0,0 +1,198 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('customfield', 'ticketstatus');?>"><?php echo $jkl["hd322"];?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('customfield');?>"><?php echo $jkl["hd149"];?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('customfield', 'options');?>"><?php echo $jkl["hd224"];?></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('customfield', 'form');?>"><?php echo $jkl["hd148"];?></a>
</li>
</ul>
<hr>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd154"];?></h4>
</div>
<div class="card-body">
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];?></div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="jak_title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php if (isset($_POST["jak_title"])) echo $_POST["jak_title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="slug"><?php echo $jkl["hd155"];?></label>
<input type="text" name="jak_slug" id="slug" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php if (isset($_POST["jak_slug"])) echo $_POST["jak_slug"];?>">
</div>
<div class="form-group">
<label class="control-label" for="field_html"><?php echo $jkl["hd158"];?></label>
<input type="text" name="jak_field_html" id="field_html" class="form-control<?php if (isset($errors["e2"])) echo " is-invalid";?>" value="<?php if (isset($_POST["jak_field_html"])) echo $_POST["jak_field_html"];?>">
<small class="form-text text-muted">
<?php echo $jkl["hd161"];?>
</small>
</div>
<div class="form-group">
<label class="control-label" for="jak_fieldloc"><?php echo $jkl["g224"];?></label>
<select name="jak_fieldloc" class="selectpicker col-12" data-live-search="true">
<option value="1"><?php echo $jkl['hd156'];?></option>
<option value="2"><?php echo $jkl['hd157'];?></option>
<option value="3"><?php echo $jkl['hd321'];?></option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="field_html"><?php echo $jkl["g131"];?></label>
<select name="jak_depid" id="jak_depid" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (isset($_POST["jak_depid"]) && $_POST["jak_depid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if (isset($_POST["jak_depid"]) && $z["id"] == $_POST["jak_depid"]) echo ' selected';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
<small class="form-text text-muted">
<?php echo $jkl["hd162"];?>
</small>
</div>
<div class="form-group">
<label class="control-label" for="jak_fieldtype"><?php echo $jkl["hd160"];?></label>
<select name="jak_fieldtype" class="selectpicker col-12" data-live-search="true">
<option value="1"<?php if (isset($_POST["jak_fieldtype"]) && $_POST["jak_fieldtype"] == "1") { ?> selected="selected"<?php } ?>>INPUT</option>
<option value="2"<?php if (isset($_POST["jak_fieldtype"]) && $_POST["jak_fieldtype"] == "2") { ?> selected="selected"<?php } ?>>RADIO</option>
<option value="3"<?php if (isset($_POST["jak_fieldtype"]) && $_POST["jak_fieldtype"] == "3") { ?> selected="selected"<?php } ?>>CHECKBOX</option>
<option value="4"<?php if (isset($_POST["jak_fieldtype"]) && $_POST["jak_fieldtype"] == "4") { ?> selected="selected"<?php } ?>>SELECT</option>
<option value="5"<?php if (isset($_POST["jak_fieldtype"]) && $_POST["jak_fieldtype"] == "5") { ?> selected="selected"<?php } ?>>TEXTAREA</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_mandatory"><?php echo $jkl["hd159"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_mandatory" value="1"<?php if (!isset($_POST["jak_mandatory"]) || isset($_POST["jak_mandatory"]) && $_POST["jak_mandatory"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_mandatory" value="0"<?php if (isset($_POST["jak_mandatory"]) && $_POST["jak_mandatory"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_onregister"><?php echo $jkl["hd163"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_onregister" value="1"<?php if (!isset($_POST["jak_onregister"]) || isset($_POST["jak_onregister"]) && $_POST["jak_onregister"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_onregister" value="0"<?php if (isset($_POST["jak_onregister"]) && $_POST["jak_onregister"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<small class="form-text text-muted">
<?php echo $jkl["hd164"];?>
</small>
</div>
</div>
<div class="card-footer">
<button type="submit" name="insert_customfield" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
</form>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">check_box</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd148"];?></h4>
</div>
<div class="card-body">
<?php if (isset($CUSTOMF_ALL) && is_array($CUSTOMF_ALL) && !empty($CUSTOMF_ALL)) { ?>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g224"];?></th>
<th><?php echo $jkl["g102"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<?php foreach($CUSTOMF_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td class="title"><a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'form', 'edit', $v["id"]);?>"><?php echo $v["title"];?></a></td>
<td class="desc"><?php echo ($v["fieldlocation"] == 1 ? '<i class="fa fa-user"></i>' : ($v["fieldlocation"] == 2 ? '<i class="fa fa-ticket-alt"></i>' : '<i class="fa fa-envelope"></i>'));?></td>
<td class="desc"><?php echo $v["dorder"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('customfield', 'form', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('customfield', 'form', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e31"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+255
View File
@@ -0,0 +1,255 @@
<?php include_once 'header.php';?>
<?php if (JAK_HOLIDAY_MODE != 0) { ?>
<div class="alert alert-danger"><i class="fa fa-exclamation-triangle"></i> <?php echo $jkl["g303"];?> (<?php echo (JAK_HOLIDAY_MODE == 1 ? $jkl["g1"] : $jkl["g305"]);?>)</div>
<?php } if (!empty($sett["welcomedash"])) { ?>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<?php $trans = array("{{business}}" => (JAK_WILDCARD_SUBDOMAIN ? "https://".$jakosub['business'].".".FULL_SITE_DOMAIN : str_replace(JAK_OPERATOR_LOC."/", "", JAK_rewrite::jakParseurl('bs', $jakosub['business']))));
echo strtr($sett["welcomedash"], $trans);?>
</div>
</div>
</div>
</div>
<?php } if (isset($gcarray) && !empty($gcarray)) { ?>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-users"></i> <?php echo $jkl["m29"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php foreach ($gcarray as $c) { ?>
<a class="btn btn-primary btn-sm" href="<?php echo str_replace(JAK_OPERATOR_LOC."/", "", JAK_rewrite::jakParseurl('groupchat', $c["id"], $c["lang"]));?>" target="_blank"><i class="fa fa-comments"></i> <?php echo $c["title"];?></a>&nbsp;
<?php } ?>
</div>
</div>
</div>
</div>
<?php } ?>
<?php if (isset($approve_comments) && !empty($approve_comments)) { ?>
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header">
<h3 class="box-title"><i class="fa fa-comments"></i> <?php echo $jkl['hd233'];?></h3>
<div class="box-body">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<th><?php echo $jkl['g16'];?></th>
<th><?php echo $jkl['g146'];?></th>
<th><?php echo $jkl['hd234'];?></th>
<th><?php echo $jkl['g48'];?></th>
</thead>
<?php foreach ($approve_comments as $c) { ?>
<tr>
<td><a href="<?php echo str_replace(JAK_OPERATOR_LOC."/", "", JAK_rewrite::jakParseurl(JAK_BLOG_URL, 'a', $c["blogid"], JAK_rewrite::jakCleanurl($c["title"])));?>"><?php echo $c["title"];?></a></td>
<td><?php echo $c["message"];?></td>
<td><a class="btn btn-sm btn-success" href="<?php echo JAK_rewrite::jakParseurl('blog', 'comment', 'status', $c["id"]);?>"><i class="material-icons">check</i></a></td>
<td><a class="btn btn-sm btn-danger" href="<?php echo JAK_rewrite::jakParseurl('blog', 'comment', 'delete', $c["id"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } if ($mainop) { ?>
<div class="header text-center">
<h3 class="title"><?php echo $sett["purchasedtitle"];?></h3>
<p class="category">
<a href="<?php echo JAK_rewrite::jakParseurl('extend');?>"><?php echo $sett["packageseltitle"];?></a>
</p>
</div>
<?php if (isset($subscriptions) && !empty($subscriptions)) { ?>
<!-- Purchased subscriptions -->
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th><?php echo $jkl['g16'];?></th>
<th><?php echo $jkl["i36"];?></th>
<th><?php echo $jkl["i37"];?></th>
<th><?php echo $jkl["i38"];?></th>
<th><?php echo $jkl["i39"];?></th>
<th><?php echo $jkl["i40"];?></th>
<th><?php echo $jkl["g14"];?></th>
<th><?php echo $jkl['g101'];?></th>
<th></th>
</tr>
</thead>
<?php $subused = array(); foreach($subscriptions as $s) { ?>
<tr>
<td><?php echo ($s["title"] ? $s["title"] : $s["paidfor"]);?></td>
<td><?php echo $s["amount"].' '.$s["currency"];?></td>
<td><?php echo $s["paidhow"];?></td>
<td><?php echo ($s["subscribed"] ? '<i class="material-icons">check</i>' : '<i class="material-icons">clear</i>');?></td>
<td><?php echo ($s["paidwhen"] ? JAK_base::jakTimesince($s["paidwhen"], "d.m.Y", " g:i a") : "-");?></td>
<td><?php echo ($s["paidtill"] ? JAK_base::jakTimesince($s["paidtill"], "d.m.Y", " g:i a") : "-");?></td>
<td><?php echo ($s["success"] ? '<i class="material-icons">check</i>' : '<i class="material-icons">clear</i>');?></td>
<td><?php echo ($s["active"] ? '<i class="material-icons">check</i>' : '<i class="material-icons">clear</i>');?></td>
<td><?php echo ($s["subscribed"] && $s["active"] ? '<a href="'.JAK_rewrite::jakParseurl('cs', $s["id"],JAK_USERID).'" class="btn btn-sm btn-danger">'.$jkl['g280'].'</a>' : '');?></td>
</tr>
<?php $subused[] = $s["packageid"]; } ?>
</table>
</div>
</div>
</div>
<?php } } if ($stataccess) { ?>
<div class="header text-center">
<h3 class="title"><?php echo $jkl["hd174"];?></h3>
</div>
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">chat</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s25"];?></p>
<h3 class="card-title"><?php echo $sessCtotal;?></h3>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">more</i>
<a href="<?php echo JAK_rewrite::jakParseurl('leads');?>"><?php echo $jkl["stat_s28"];?></a>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-rose card-header-icon">
<div class="card-icon">
<i class="material-icons">message</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s26"];?></p>
<h3 class="card-title"><?php echo $commCtotal;?></h3>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">more</i>
<a href="<?php echo JAK_rewrite::jakParseurl('leads');?>"><?php echo $jkl["stat_s28"];?></a>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-success card-header-icon">
<div class="card-icon">
<i class="material-icons">feedback</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s10"];?></p>
<h3 class="card-title"><?php echo $statsCtotal;?></h3>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">more</i>
<a href="<?php echo JAK_rewrite::jakParseurl('users');?>"><?php echo $jkl["stat_s28"];?></a>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-info card-header-icon">
<div class="card-icon">
<i class="material-icons">equalizer</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s27"];?></p>
<h3 class="card-title"><?php echo $visitCtotal;?></h3>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">more</i>
<a href="<?php echo JAK_rewrite::jakParseurl('uonline');?>"><?php echo $jkl["stat_s28"];?></a>
</div>
</div>
</div>
</div>
</div>
<?php } if ($statsupport) { ?>
<div class="header text-center">
<h3 class="title"><?php echo $jkl["hd175"];?></h3>
</div>
<div class="row">
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">assignment</i>
</div>
<p class="card-category"><?php echo $jkl["hd135"];?></p>
<h3 class="card-title"><?php echo $totalAll;?></h3>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">more</i>
<a href="<?php echo JAK_rewrite::jakParseurl('support');?>"><?php echo $jkl["stat_s28"];?></a>
</div>
</div>
</div>
</div>
<?php if (isset($totalTStat) && !empty($totalTStat)) foreach ($totalTStat as $v) { ?>
<div class="col-lg-3 col-md-6 col-sm-6">
<div class="card card-stats">
<div class="card-header card-header-<?php echo $v["class"];?> card-header-icon">
<div class="card-icon">
<i class="material-icons">drafts</i>
</div>
<p class="card-category"><?php echo $v["title"];?></p>
<h3 class="card-title"><?php echo $v["total"];?></h3>
</div>
<div class="card-footer">
<div class="stats">
<i class="material-icons">more</i>
<a href="<?php echo JAK_rewrite::jakParseurl('support');?>"><?php echo $jkl["stat_s28"];?></a>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
<div class="header text-center">
<h3 class="title"><?php echo $jkl['hd237'];?></h3>
<p class="category"><span class="badge badge-primary" style="background-color:#d649d8"><?php echo $jkl['m31'];?></span> <span class="badge badge-primary" style="background-color:#49abd8"><?php echo $jkl['m1'];?></span> <span class="badge badge-dark" style="background-color:#d88c49"><?php echo $jkl['m22'];?></span> <span class="badge badge-dark" style="background-color:#71d849"><?php echo $jkl['hd57'];?></span>
</p>
</div>
<div class="row">
<div class="col-md-12">
<div class="card card-calendar">
<div class="card-body ">
<div id="calendar"></div>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+197
View File
@@ -0,0 +1,197 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link<?php if (!in_array($page1, array("support", "faq"))) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl('departments');?>"><?php echo $jkl["hd2"];?></a>
</li>
<?php if (jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link<?php if ($page1 == 'support') echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl('departments', 'support');?>"><?php echo $jkl["hd3"];?></a>
</li>
<?php } if (jak_get_access("faq", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link<?php if ($page1 == 'faq') echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl('departments', 'faq');?>"><?php echo $jkl["hd4"];?></a>
</li>
<?php } ?>
</ul>
<hr>
</div>
</div>
<div class="row">
<div class="col-md-9">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">list_alt</i>
</div>
<h4 class="card-title "><?php echo ($page1 == 'faq' ? $jkl["hd20"] : $jkl["g98"]);?></h4>
</div>
<div class="card-body">
<?php if (isset($DEPARTMENTS_ALL) && is_array($DEPARTMENTS_ALL)) { ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="table-responsive">
<table class="table table-striped table-hover" id="sortTable">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g52"];?></th>
<th><?php echo $jkl["g47"];?></th>
<?php if ($page1 == 'faq') { ?>
<th><?php echo $jkl["g341"];?></th>
<?php } ?>
<th><?php echo $jkl["g101"];?></th>
<th><?php echo $jkl["g48"];?></th>
<th><?php echo $jkl["g102"];?></th>
</tr>
</thead>
<?php foreach($DEPARTMENTS_ALL as $v) { if ($v["subcat"] == 0) { ?>
<tr>
<td><?php echo $v["id"];?><input type="hidden" name="real_dep_id[]" value="<?php echo $v["id"];?>" /></td>
<td class="title"><a href="<?php echo (!in_array($page1, array("support", "faq")) ? JAK_rewrite::jakParseurl('departments', 'edit', $v["id"]) : JAK_rewrite::jakParseurl('departments', $page1, 'edit', $v["id"]));?>"><?php echo $v["title"];?></a></td>
<td><?php echo $v["description"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo (!in_array($page1, array("support", "faq")) ? JAK_rewrite::jakParseurl('departments', 'edit', $v["id"]) : JAK_rewrite::jakParseurl('departments', $page1, 'edit', $v["id"]));?>"><i class="fa fa-pencil"></i></a></td>
<?php if ($page1 == 'faq') { ?>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('departments', 'faq', 'subcat', $v["id"]);?>"><i class="fa fa-edit"></i></a></td>
<?php } ?>
<td><?php if ($v["id"] != 1) { ?><a class="btn btn-default btn-sm" href="<?php echo (!in_array($page1, array("support", "faq")) ? JAK_rewrite::jakParseurl('departments', 'lock', $v["id"]) : JAK_rewrite::jakParseurl('departments', $page1, 'lock', $v["id"]));?>"><i class="fa fa-<?php if ($v["active"] == '1') { ?>check<?php } else { ?>lock<?php } ?>"></i></a><?php } else { ?><i class="fa fa-check"></i><?php } ?></td>
<td><?php if ($v["id"] != 1) { ?><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo (!in_array($page1, array("support", "faq")) ? JAK_rewrite::jakParseurl('departments', 'delete', $v["id"]) : JAK_rewrite::jakParseurl('departments', $page1, 'delete', $v["id"]));?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a><?php } else { ?><i class="fa fa-lock"></i><?php } ?></td>
<td><input type="text" name="corder[]" class="corder form-control" value="<?php echo $v["dorder"];?>" /></td>
</tr>
<?php } } ?>
</table>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
<?php } ?>
</form>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo ($page1 == 'faq' ? $jkl["hd21"] : $jkl["g99"]);?></h4>
</div>
<div class="card-body">
<?php if (!empty($jakosub) && $jakosub['trial']) { ?>
<div class="alert alert-info"><?php echo $jkl['i11'];?></div>
<?php } ?>
<?php if (!empty($jakosub) && !$jakosub['trial'] && $totalAll >= $jakosub['departments']) { ?>
<div class="alert alert-danger"><?php echo sprintf($jkl['i14'], $totalAll, $jakosub['departments'], ($page1 == 'faq' ? $jkl['hd4'] : $jkl['m9']));?></div>
<?php } else { ?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" class="form-control" value="<?php if (isset($_POST["title"])) echo $_POST["title"];?>" />
</div>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="email"><?php echo $jkl["g68"];?></label>
<input type="text" name="email" class="form-control" value="<?php if (isset($_POST["email"])) echo $_POST["email"];?>" />
</div>
<?php if (JAK_BILLING_MODE == 1) { ?>
<div class="form-group">
<label class="control-label" for="credits"><?php echo $jkl["hd56"];?></label>
<input type="number" min="0" name="credits" class="form-control" value="<?php if (isset($_POST["credits"])) { echo $_POST["credits"]; } else { echo "0";}?>">
</div>
<?php } else { ?>
<input type="hidden" name="credits" value="0">
<?php } if ($page1 != 'faq') { ?>
<div class="form-group">
<label class="control-label" for="faq"><?php echo $jkl["g278"];?></label>
<input type="text" name="faq" class="form-control" value="<?php if (isset($_POST["faq"])) echo $_POST["faq"];?>">
</div>
<?php } if ($page1 == 'faq') { ?>
<div class="form-group">
<label for="jak_class"><?php echo $jkl["m13"];?></label>
<select name="jak_class" class="selectpicker col-12" data-size="4" data-live-search="true">
<option value="secondary"<?php if (isset($_REQUEST["jak_class"]) && $_REQUEST["jak_class"] == "default") { ?> selected="selected"<?php } ?>>Default</option>
<option value="primary"<?php if (isset($_REQUEST["jak_class"]) && $_REQUEST["jak_class"] == "primary") { ?> selected="selected"<?php } ?>>Primary</option>
<option value="success"<?php if (isset($_REQUEST["jak_class"]) && $_REQUEST["jak_class"] == "success") { ?> selected="selected"<?php } ?>>Success</option>
<option value="info"<?php if (isset($_REQUEST["jak_class"]) && $_REQUEST["jak_class"] == "info") { ?> selected="selected"<?php } ?>>Info</option>
<option value="warning"<?php if (isset($_REQUEST["jak_class"]) && $_REQUEST["jak_class"] == "warning") { ?> selected="selected"<?php } ?>>Warning</option>
<option value="danger"<?php if (isset($_REQUEST["jak_class"]) && $_REQUEST["jak_class"] == "danger") { ?> selected="selected"<?php } ?>>Danger</option>
<option value="dark"<?php if (isset($_REQUEST["jak_class"]) && $_REQUEST["jak_class"] == "dark") { ?> selected="selected"<?php } ?>>Dark</option>
</select>
</div>
<div class="form-group">
<label for="subcat"><?php echo $jkl["hd4"];?></label>
<select name="jak_subcat" id="subcat" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (!isset($_REQUEST["subcat"]) || $_REQUEST["subcat"] == 0) echo ' selected';?>><?php echo $jkl["hd289"];?></option>
<?php if (isset($DEPARTMENTS_ALL) && is_array($DEPARTMENTS_ALL)) foreach($DEPARTMENTS_ALL as $z) { if ($z["subcat"] == 0) { ?>
<option value="<?php echo $z["id"];?>"<?php if (isset($_REQUEST["subcat"]) && $_REQUEST["subcat"] == $z["id"]) echo ' selected';?>><?php echo $z["title"];?></option>
<?php } } ?>
</select>
<small class="form-text text-muted">
<?php echo $jkl["hd310"];?>
</small>
</div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="jak_guesta"><?php echo $jkl["hd18"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_guesta" value="1"<?php if (!isset($_POST["jak_guesta"]) || isset($_POST["jak_guesta"]) && $_POST["jak_guesta"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_guesta" value="0"<?php if (isset($_POST["jak_guesta"]) && $_POST["jak_guesta"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="description"><?php echo $jkl["g52"];?></label>
<textarea name="description" class="form-control" rows="3"><?php if (isset($_POST["description"])) echo $_POST["description"];?></textarea>
</div>
<div class="form-actions">
<button type="submit" name="insert_department" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+40
View File
@@ -0,0 +1,40 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-edit"></i> <?php echo $jkl["hd302"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<div class="form-group">
<label for="envato_item_id"><?php echo $jkl["hd298"];?></label>
<input type="text" name="envato_item_id" id="envato_item_id" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["envato_item_id"];?>" />
</div>
<div class="form-group">
<label for="product_name"><?php echo $jkl["hd299"];?></label>
<input type="text" name="product_name" id="product_name" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["product_name"];?>" />
</div>
<div class="form-group">
<label for="description"><?php echo $jkl["hd300"];?></label>
<textarea name="description" class="form-control" rows="3"><?php echo $JAK_FORM_DATA["description"];?></textarea>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('billing', 'products');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+126
View File
@@ -0,0 +1,126 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["m21"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>" />
</div>
<div class="form-group">
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g131"];?></option>
<option value="0"<?php if ($JAK_FORM_DATA["department"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if ($JAK_FORM_DATA["department"] == $z["id"]) echo ' selected="selected"';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["hd133"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
<div class="form-group">
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["lang"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<select name="jak_msgtype" id="jak_msgtype" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g250"];?></option>
<option value="1"<?php if ($JAK_FORM_DATA["msgtype"] == 1) echo " selected";?>> <?php echo $jkl["g246"];?></option>
<option value="2"<?php if ($JAK_FORM_DATA["msgtype"] == 2) echo " selected";?>> <?php echo $jkl["g247"];?></option>
<option value="3"<?php if ($JAK_FORM_DATA["msgtype"] == 3) echo " selected";?>> <?php echo $jkl["g248"];?></option>
<option value="4"<?php if ($JAK_FORM_DATA["msgtype"] == 4) echo " selected";?>> <?php echo $jkl["g249"];?></option>
<option value="5"<?php if ($JAK_FORM_DATA["msgtype"] == 5) echo " selected";?>> <?php echo $jkl["g255"];?></option>
<option value="6"<?php if ($JAK_FORM_DATA["msgtype"] == 6) echo " selected";?>> <?php echo $jkl["g259"];?></option>
<option value="7"<?php if ($JAK_FORM_DATA["msgtype"] == 7) echo " selected";?>> <?php echo $jkl["g260"];?></option>
<option value="24"<?php if ($JAK_FORM_DATA["msgtype"] == 24) echo " selected";?>> <?php echo $jkl["hd209"];?></option>
<option value="8"<?php if ($JAK_FORM_DATA["msgtype"] == 8) echo " selected";?>> <?php echo $jkl["g261"];?></option>
<option value="9"<?php if ($JAK_FORM_DATA["msgtype"] == 9) echo " selected";?>> <?php echo $jkl["g262"];?></option>
<option value="10"<?php if ($JAK_FORM_DATA["msgtype"] == 10) echo " selected";?>> <?php echo $jkl["g263"];?></option>
<option value="11"<?php if ($JAK_FORM_DATA["msgtype"] == 11) echo " selected";?>> <?php echo $jkl["g307"];?></option>
<option value="12"<?php if ($JAK_FORM_DATA["msgtype"] == 12) echo " selected";?>> <?php echo $jkl["g308"];?></option>
<option value="13"<?php if ($JAK_FORM_DATA["msgtype"] == 13) echo " selected";?>> <?php echo $jkl["g309"];?></option>
<option value="14"<?php if ($JAK_FORM_DATA["msgtype"] == 14) echo " selected";?>> <?php echo $jkl["hd113"];?></option>
<option value="15"<?php if ($JAK_FORM_DATA["msgtype"] == 15) echo " selected";?>> <?php echo $jkl["hd114"];?></option>
<option value="16"<?php if ($JAK_FORM_DATA["msgtype"] == 16) echo " selected";?>> <?php echo $jkl["hd115"];?></option>
<option value="17"<?php if ($JAK_FORM_DATA["msgtype"] == 17) echo " selected";?>> <?php echo $jkl["hd116"];?></option>
<option value="18"<?php if ($JAK_FORM_DATA["msgtype"] == 18) echo " selected";?>> <?php echo $jkl["hd117"];?></option>
<option value="19"<?php if ($JAK_FORM_DATA["msgtype"] == 19) echo " selected";?>> <?php echo $jkl["hd121"];?></option>
<option value="20"<?php if ($JAK_FORM_DATA["msgtype"] == 20) echo " selected";?>> <?php echo $jkl["hd122"];?></option>
<option value="21"<?php if ($JAK_FORM_DATA["msgtype"] == 21) echo " selected";?>> <?php echo $jkl["hd123"];?></option>
<option value="22"<?php if ($JAK_FORM_DATA["msgtype"] == 22) echo " selected";?>> <?php echo $jkl["hd124"];?></option>
<option value="23"<?php if ($JAK_FORM_DATA["msgtype"] == 23) echo " selected";?>> <?php echo $jkl["hd125"];?></option>
<option value="25"<?php if ($JAK_FORM_DATA["msgtype"] == 25) echo " selected";?>> <?php echo $jkl["g85"];?></option>
<option value="26"<?php if ($JAK_FORM_DATA["msgtype"] == 26) echo " selected";?>> <?php echo $jkl["g328"];?></option>
<option value="27"<?php if ($JAK_FORM_DATA["msgtype"] == 27) echo " selected";?>> <?php echo $jkl["g329"];?></option>
<option value="28"<?php if ($JAK_FORM_DATA["msgtype"] == 28) echo " selected";?>> <?php echo $jkl["g350"];?></option>
<option value="29"<?php if ($JAK_FORM_DATA["msgtype"] == 29) echo " selected";?>> <?php echo $jkl["g358"];?></option>
<option value="30"<?php if ($JAK_FORM_DATA["msgtype"] == 30) echo " selected";?>> <?php echo $jkl["g359"];?></option>
</select>
</div>
<div class="form-group">
<select name="jak_fireup" id="fireup" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g251"];?></option>
<option value="15"<?php if ($JAK_FORM_DATA["fireup"] == 15) echo " selected";?>>15 <?php echo $jkl["g196"];?></option>
<option value="30"<?php if ($JAK_FORM_DATA["fireup"] == 30) echo " selected";?>>30 <?php echo $jkl["g196"];?></option>
<option value="60"<?php if ($JAK_FORM_DATA["fireup"] == 60) echo " selected";?>>1 <?php echo $jkl["g197"];?></option>
<option value="120"<?php if ($JAK_FORM_DATA["fireup"] == 120) echo " selected";?>>2 <?php echo $jkl["g197"];?></option>
<option value="180"<?php if ($JAK_FORM_DATA["fireup"] == 180) echo " selected";?>>3 <?php echo $jkl["g197"];?></option>
<option value="240"<?php if ($JAK_FORM_DATA["fireup"] == 240) echo " selected";?>>4 <?php echo $jkl["g197"];?></option>
<option value="300"<?php if ($JAK_FORM_DATA["fireup"] == 300) echo " selected";?>>5 <?php echo $jkl["g197"];?></option>
<option value="360"<?php if ($JAK_FORM_DATA["fireup"] == 360) echo " selected";?>>6 <?php echo $jkl["g197"];?></option>
<option value="420"<?php if ($JAK_FORM_DATA["fireup"] == 420) echo " selected";?>>7 <?php echo $jkl["g197"];?></option>
<option value="480"<?php if ($JAK_FORM_DATA["fireup"] == 480) echo " selected";?>>8 <?php echo $jkl["g197"];?></option>
<option value="540"<?php if ($JAK_FORM_DATA["fireup"] == 540) echo " selected";?>>9 <?php echo $jkl["g197"];?></option>
<option value="600"<?php if ($JAK_FORM_DATA["fireup"] == 600) echo " selected";?>>10 <?php echo $jkl["g197"];?></option>
<option value="900"<?php if ($JAK_FORM_DATA["fireup"] == 900) echo " selected";?>>15 <?php echo $jkl["g197"];?></option>
<option value="1200"<?php if ($JAK_FORM_DATA["fireup"] == 1200) echo " selected";?>>20 <?php echo $jkl["g197"];?></option>
</select>
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h17"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
</div>
</div>
<div class="form-group">
<textarea name="answer" id="answer" rows="3" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>"><?php echo $JAK_FORM_DATA["message"];?></textarea>
<small class="form-text text-muted">
<?php echo (in_array($JAK_FORM_DATA["msgtype"], array("20","21","23","25")) ? $jkl["hd184"] : $jkl["h13"]);?>
</small>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('answers');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+146
View File
@@ -0,0 +1,146 @@
<?php include_once 'header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger">
<?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];
if (isset($errors["e3"])) echo $errors["e3"];?>
</div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd76"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control" value="<?php echo $JAK_FORM_DATA["title"];?>" />
</div>
<div class="form-group">
<label class="control-label" for="content"><?php echo $jkl["g52"];?></label>
<textarea name="content" id="content" rows="5" class="form-control"><?php echo $JAK_FORM_DATA["content"];?></textarea>
</div>
<div class="form-group">
<label class="control-label" for="previmg"><?php echo $jkl["hd34"];?></label>
<div class="input-group">
<input type="text" name="previmg" id="previmg" class="form-control" value="<?php echo $JAK_FORM_DATA["previmg"];?>">
<span class="input-group-btn">
<a class="btn btn-rose btn-round btn-fab" data-toggle="modal" data-target="#jakFM" type="button" href="javascript:void(0)"><i class="far fa-file-archive"></i></a>
</span>
</div>
</div>
<?php if (JAK_BILLING_MODE == 1) { ?>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="credits"><?php echo $jkl["hd61"];?></label>
<input type="number" name="credits" id="credits" class="form-control" value="<?php echo $JAK_FORM_DATA["credits"];?>">
</div>
<?php } else { ?>
<div class="form-group">
<label class="control-label" for="paidtill"><?php echo $jkl["hd62"];?></label>
<select name="paidtill" class="selectpicker col-12" data-live-search="true">
<option value="1 WEEK"<?php if ($JAK_FORM_DATA["paidtill"] == "1 WEEK") echo " selected";?>><?php echo sprintf($jkl['hd65'], "1");?></option>
<option value="1 MONTH"<?php if ($JAK_FORM_DATA["paidtill"] == "1 MONTH") echo " selected";?>><?php echo sprintf($jkl['hd67'], "1");?></option>
<option value="6 MONTHS"<?php if ($JAK_FORM_DATA["paidtill"] == "6 MONTHS") echo " selected";?>><?php echo sprintf($jkl['hd68'], "6");?></option>
<option value="1 YEAR"<?php if ($JAK_FORM_DATA["paidtill"] == "1 YEAR") echo " selected";?>><?php echo sprintf($jkl['hd69'], "1");?></option>
</select>
</div>
<?php } ?>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label class="control-label" for="jak_depid"><?php echo $jkl["hd2"].$jkl['hd132'];?></label>
<select name="jak_depid[]" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (isset($JAK_FORM_DATA["chat_dep"]) && $JAK_FORM_DATA["chat_dep"] == 0) echo ' selected';?>><?php echo $jkl["g246"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $v) { ?>
<option value="<?php echo $v["id"];?>"<?php if (in_array($v["id"], explode(',', $JAK_FORM_DATA["chat_dep"]))) echo ' selected';?>><?php echo $v["title"];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label class="control-label" for="jak_depids"><?php echo $jkl["hd3"].$jkl['hd132'];?></label>
<select name="jak_depids[]" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (isset($JAK_FORM_DATA["support_dep"]) && $JAK_FORM_DATA["support_dep"] == 0) echo ' selected';?>><?php echo $jkl["g246"];?></option>
<?php if (isset($JAK_DEP_SUPPORT) && is_array($JAK_DEP_SUPPORT)) foreach($JAK_DEP_SUPPORT as $d) { ?>
<option value="<?php echo $d["id"];?>"<?php if (in_array($d["id"], explode(',', $JAK_FORM_DATA["support_dep"]))) echo ' selected';?>><?php echo $d["title"];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label class="control-label" for="jak_depidf"><?php echo $jkl["hd4"].$jkl['hd132'];?></label>
<select name="jak_depidf[]" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (isset($JAK_FORM_DATA["faq_cat"]) && $JAK_FORM_DATA["faq_cat"] == 0) echo ' selected';?>><?php echo $jkl["g246"];?></option>
<?php if (isset($JAK_CAT_FAQ) && is_array($JAK_CAT_FAQ)) foreach($JAK_CAT_FAQ as $f) { ?>
<option value="<?php echo $f["id"];?>"<?php if (in_array($f["id"], explode(',', $JAK_FORM_DATA["faq_cat"]))) echo ' selected';?>><?php echo $f["title"];?></option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group<?php if (isset($errors["e2"])) echo " has-danger";?>">
<label class="control-label" for="amount"><?php echo $jkl["hd71"];?></label>
<input type="number" min="0" name="amount" id="amount" class="form-control" value="<?php echo $JAK_FORM_DATA["amount"];?>">
</div>
</div>
<div class="col-md-6">
<div class="form-group<?php if (isset($errors["e3"])) echo " has-danger";?>">
<label class="control-label" for="currency"><?php echo $jkl["hd72"];?></label>
<input type="text" maxlength="3" minlength="3" name="currency" id="currency" class="form-control" value="<?php echo $JAK_FORM_DATA["currency"];?>">
</div>
</div>
</div>
<div class="form-group">
<label class="control-label" for="order"><?php echo $jkl["g102"];?></label>
<input type="number" min="1" name="order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('billing', 'packages');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+40
View File
@@ -0,0 +1,40 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["m28"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="url"><?php echo $jkl["g167"];?></label>
<input type="text" name="path" id="url" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["path"];?>" />
</div>
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>" />
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('blacklist');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+180
View File
@@ -0,0 +1,180 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd31"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="previmg"><?php echo $jkl["hd34"];?></label>
<div class="input-group">
<input type="text" name="previmg" id="previmg" class="form-control" value="<?php echo $JAK_FORM_DATA["previmg"];?>">
<span class="input-group-btn">
<a class="btn btn-rose btn-round btn-fab" data-toggle="modal" data-target="#jakFM" type="button" href="javascript:void(0)"><i class="far fa-file-archive"></i></a>
</span>
</div><!-- /input-group -->
</div>
<div class="form-group">
<p><label class="contro-label" for="title"><?php echo $jkl["hd287"];?></label></p>
<input type="text" name="tags" id="tags" class="form-control tagin" value="<?php echo jak_get_tags($opcacheid, "blogid", $page2);?>" data-placeholder="<?php echo $jkl['hd288'];?>">
</div>
<div class="form-group">
<label class="control-label" for="order"><?php echo $jkl["g102"];?></label>
<input type="number" min="1" name="order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
<div class="form-group">
<label class="control-label" for="hits"><?php echo $jkl["hd42"];?></label>
<input type="number" min="0" name="hits" id="hits" class="form-control" value="<?php echo $JAK_FORM_DATA["hits"];?>">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["lang"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="comments"><?php echo $jkl["hd29"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="comments" value="1"<?php if ($JAK_FORM_DATA["comments"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="comments" value="0"<?php if ($JAK_FORM_DATA["comments"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="socialbutton"><?php echo $jkl["hd33"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="1"<?php if ($JAK_FORM_DATA["socialbutton"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="0"<?php if ($JAK_FORM_DATA["socialbutton"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="showdate"><?php echo $jkl["hd32"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="showdate" value="1"<?php if ($JAK_FORM_DATA["showdate"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="showdate" value="0"<?php if ($JAK_FORM_DATA["showdate"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="membersonly"><?php echo $jkl["hd36"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="membersonly" value="1"<?php if ($JAK_FORM_DATA["membersonly"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="membersonly" value="0"<?php if ($JAK_FORM_DATA["membersonly"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="updatetime" value="1"> <?php echo $jkl["hd39"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="delcom" value="1"> <?php echo $jkl["hd40"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<div class="form-group">
<textarea name="content" id="content-editor" rows="5" class="form-control"><?php echo htmlspecialchars($JAK_FORM_DATA["content"]);?></textarea>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('blog');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+88
View File
@@ -0,0 +1,88 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["m24"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group<?php if ($errors["e"]) echo " has-danger";?>">
<label class="control-label" for="question"><?php echo $jkl["g269"];?></label>
<input type="text" name="question" class="form-control" value="<?php echo $JAK_FORM_DATA["question"];?>">
<small class="form-text text-muted">
<?php echo $jkl["h22"];?>
</small>
</div>
<div class="form-group<?php if ($errors["e1"]) echo " has-danger";?>">
<label class="control-label" for="answer"><?php echo $jkl["g273"];?></label>
<textarea name="answer" rows="5" class="form-control"><?php if (isset($_POST["answer"])) { echo $_POST["answer"]; } else { echo $JAK_FORM_DATA["answer"]; }?></textarea>
<small class="form-text text-muted">
<?php echo $jkl["h21"];?>
</small>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="jak_widgetid"><?php echo $jkl["g291"];?></label>
<select name="jak_widgetid[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if ($JAK_FORM_DATA["widgetids"] == 0) { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_WIDGETS) && is_array($JAK_WIDGETS)) foreach($JAK_WIDGETS as $w) { ?>
<option value="<?php echo $w["id"];?>"<?php if (in_array($w["id"], explode(',', $JAK_FORM_DATA["widgetids"]))) echo ' selected';?>><?php echo $w["title"];?></option>
<?php } ?>
</select>
<small class="form-text text-muted">
<?php echo $jkl["h6"];?>
</small>
</div>
<div class="form-group">
<label class="control-label" for="department"><?php echo $jkl["g131"];?></label>
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if ($JAK_FORM_DATA["depid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if ($JAK_FORM_DATA["depid"] == $z["id"]) echo ' selected="selected"';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_lang"><?php echo $jkl["g22"];?></label>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["lang"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('bot');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
</div>
</div>
<?php include_once 'footer.php';?>
+400
View File
@@ -0,0 +1,400 @@
<?php include_once 'header.php';?>
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-md-3">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<img src="<?php echo BASE_URL_ORIG.JAK_FILES_DIRECTORY.$JAK_FORM_DATA["picture"];?>" class="img-fluid" width="60" alt="avatar">
</div>
<p class="card-category"><?php echo $JAK_FORM_DATA["name"];?></p>
<h3 class="card-title"><?php echo JAK_base::jakTimesince($JAK_FORM_DATA["time"], JAK_DATEFORMAT, "")?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<?php if (JAK_BILLING_MODE == 1) { ?>
<div class="col-md-3">
<div class="card card-stats">
<div class="card-header card-header-rose card-header-icon">
<div class="card-icon">
<i class="material-icons">new_releases</i>
</div>
<p class="card-category"><?php echo $jkl["hd74"];?></p>
<h3 class="card-title"><?php echo $JAK_FORM_DATA["credits"]?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<?php } elseif (JAK_BILLING_MODE == 2) { ?>
<div class="col-md-3">
<div class="card card-stats">
<div class="card-header card-header-rose card-header-icon">
<div class="card-icon">
<i class="material-icons">new_releases</i>
</div>
<p class="card-category"><?php echo $jkl["hd143"];?></p>
<h3 class="card-title"><?php echo JAK_base::jakTimesince($JAK_FORM_DATA["paid_until"], JAK_DATEFORMAT, "")?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<?php } ?>
<div class="col-md-3">
<div class="card card-stats">
<div class="card-header card-header-info card-header-icon">
<div class="card-icon">
<i class="material-icons">sms</i>
</div>
<p class="card-category"><?php echo $jkl["hd140"];?></p>
<h3 class="card-title"><?php echo $JAK_FORM_DATA["chatrequests"]?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<div class="col-md-3">
<div class="card card-stats">
<div class="card-header card-header-primary card-header-icon">
<div class="card-icon">
<i class="material-icons">healing</i>
</div>
<p class="card-category"><?php echo $jkl["hd141"];?></p>
<h3 class="card-title"><?php echo $JAK_FORM_DATA["supportrequests"]?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
</div>
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];
if (isset($errors["e3"])) echo $errors["e3"];
if (isset($errors["e4"])) echo $errors["e4"];
if (isset($errors["e5"])) echo $errors["e5"];
if (isset($errors["e6"])) echo $errors["e6"];?></div>
<?php } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<?php if (JAK_BILLING_MODE == 3) { ?>
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-list-alt"></i> <?php echo $jkl["hd303"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($allLics) && !empty($allLics)) { ?>
<div class="table-responsive">
<table id="sortable-data" class="table">
<thead class="table-custom-dark">
<th><?php echo $jkl['hd299'];?></th>
<th><?php echo $jkl['hd304'];?></th>
<th><?php echo $jkl['hd305'];?></th>
<th><?php echo $jkl['hd306'];?></th>
<th><?php echo $jkl['hd307'];?></th>
<th><?php echo $jkl['stat_s41'];?></th>
<th><?php echo $jkl['g48'];?></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>
<td><?php if (JAK_SUPERADMINACCESS) { ?><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('users', 'clients', 'lic', $al["id"]);?>"><i class="fas fa-file-certificate"></i></a><?php } ?></td>
<td><?php if (JAK_SUPERADMINACCESS) { ?><a class="btn btn-default btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('users', 'clients', 'licdel', $al["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["al"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash-alt"></i></a><?php } ?></td>
</tr>
<?php } ?>
</table>
</div>
<?php } else { ?>
<div class="alert alert-info">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
</div>
</div>
</div>
<?php } ?>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["g40"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="name"><?php echo $jkl["u"];?></label>
<input type="text" name="jak_name" id="name" class="form-control" value="<?php echo $JAK_FORM_DATA["name"];?>">
</div>
<div class="form-group<?php if (isset($errors["e2"])) echo " has-danger";?>">
<label class="control-label" for="email"><?php echo $jkl["u1"];?></label>
<input type="text" name="jak_email" id="email" class="form-control" value="<?php echo $JAK_FORM_DATA["email"];?>">
</div>
<div class="form-group">
<label class="control-label" for="jak_lang"><?php echo $jkl["g22"];?></label>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option value=""><?php echo $jkl["u11"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["language"] == $lf) echo ' selected';?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<?php if (!empty($jakosub) && $jakosub['trial']) { ?>
<label class="control-label" for="jak_upload"><?php echo $jkl["hd139"];?></label>
<div class="alert alert-info"><?php echo $jkl['i12'];?></div>
<input type="hidden" name="jak_upload" value="0">
<?php } elseif (!empty($jakosub) && !$jakosub['trial'] && !$jakosub['files']) { ?>
<label class="control-label" for="jak_upload"><?php echo $jkl["hd139"];?></label>
<div class="alert alert-danger"><?php echo $jkl['i13'];?></div>
<input type="hidden" name="jak_upload" value="0">
<?php } else { ?>
<div class="form-group">
<label class="control-label" for="jak_upload"><?php echo $jkl["hd139"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_upload" value="1"<?php if ($JAK_FORM_DATA["canupload"] == 1) echo ' checked';?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_upload" value="0"<?php if ($JAK_FORM_DATA["canupload"] == 0) echo ' checked';?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="jak_frontendadmin"><?php echo $jkl["hd315"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_frontendadmin" value="1"<?php if ($JAK_FORM_DATA["frontendadmin"] == 1) echo ' checked';?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_frontendadmin" value="0"<?php if ($JAK_FORM_DATA["frontendadmin"] == 0) echo ' checked';?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<?php if (!empty($custom_fields)) { ?>
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="material-icons">check_box</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd148"];?></h4>
</div>
<div class="card-body">
<?php echo $custom_fields;?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<?php } ?>
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="material-icons">vpn_key</i>
</div>
<h4 class="card-title "><?php echo $jkl["g39"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="pass"><?php echo $jkl["u4"];?></label>
<input type="password" name="jak_password" id="pass" class="form-control" value="">
</div>
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="jak_confirm_password"><?php echo $jkl["u5"];?></label>
<input type="password" name="jak_confirm_password" class="form-control" value="">
</div>
<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>
<hr>
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients', 'newpass', $page3);?>" class="btn btn-danger"><?php echo $jkl["hd347"];?></a>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-danger">
<div class="card-icon">
<i class="material-icons">list_alt</i>
</div>
<h4 class="card-title "><?php echo $jkl["m9"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_depid"><?php echo $jkl["hd2"];?></label>
<select name="jak_depid[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if ($JAK_FORM_DATA["chat_dep"] == 0) echo ' selected';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $v) { ?>
<option value="<?php echo $v["id"];?>"<?php if (in_array($v["id"], explode(',', $JAK_FORM_DATA["chat_dep"]))) echo ' selected';?>><?php echo $v["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depids"><?php echo $jkl["hd3"];?></label>
<select name="jak_depids[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if ($JAK_FORM_DATA["support_dep"] == 0) echo ' selected';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEP_SUPPORT) && is_array($JAK_DEP_SUPPORT)) foreach($JAK_DEP_SUPPORT as $d) { ?>
<option value="<?php echo $d["id"];?>"<?php if (in_array($d["id"], explode(',', $JAK_FORM_DATA["support_dep"]))) echo ' selected';?>><?php echo $d["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depidf"><?php echo $jkl["hd4"];?></label>
<select name="jak_depidf[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if ($JAK_FORM_DATA["faq_cat"] == 0) echo ' selected';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_CAT_FAQ) && is_array($JAK_CAT_FAQ)) foreach($JAK_CAT_FAQ as $f) { ?>
<option value="<?php echo $f["id"];?>"<?php if (in_array($f["id"], explode(',', $JAK_FORM_DATA["faq_cat"]))) echo ' selected';?>><?php echo $f["title"];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-primary">
<div class="card-icon">
<i class="material-icons">money</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd235"];?></h4>
</div>
<div class="card-body">
<div class="input-group">
<input type="number" name="custom_price" class="form-control" value="<?php echo $JAK_FORM_DATA["custom_price"];?>" aria-describedby="custom-price">
<div class="input-group-append">
<span class="input-group-text" id="custom-price">%</span>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">money</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd142"];?></h4>
</div>
<div class="card-body">
<?php if (JAK_BILLING_MODE == 1) { ?>
<div class="form-group">
<label class="control-label" for="credits"><?php echo $jkl["hd74"];?></label>
<input type="number" min="0" name="jak_credits" id="credits" class="form-control" value="<?php echo $JAK_FORM_DATA["credits"];?>">
</div>
<input type="hidden" name="jak_validtill" value="1980-05-06">
<?php } else { ?>
<div class="form-group">
<label class="control-label" for="credits"><?php echo $jkl["hd143"];?></label>
<input type="text" name="jak_validtill" class="form-control" value="<?php echo $JAK_FORM_DATA["paid_until"];?>">
<small class="form-text text-muted">
<?php echo $jkl['hd144'];?>
</small>
</div>
<input type="hidden" name="jak_credits" value="0">
<?php } ?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+273
View File
@@ -0,0 +1,273 @@
<?php include_once 'header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger">
<?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];?>
</div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd129"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" maxlength="255" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="url_slug"><?php echo $jkl["hd130"];?></label>
<input type="text" name="url_slug" id="url_slug" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["url_slug"];?>">
</div>
<div class="form-group">
<p><label class="control-label" for="jak_prepage"><?php echo $jkl["hd212"];?></label></p>
<select name="jak_prepage" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["hd212"];?></option>
<option value="0"><?php echo $jkl["hd213"];?></option>
<option value="<?php echo JAK_CLIENT_URL;?>"<?php if ($JAK_FORM_DATA["prepage"] == JAK_CLIENT_URL) echo ' selected';?>><?php echo JAK_CLIENT_URL;?></option>
<option value="<?php echo JAK_SEARCH_URL;?>"<?php if ($JAK_FORM_DATA["prepage"] == JAK_SEARCH_URL) echo ' selected';?>><?php echo JAK_SEARCH_URL;?></option>
<option value="<?php echo JAK_BLOG_URL;?>"<?php if ($JAK_FORM_DATA["prepage"] == JAK_BLOG_URL) echo ' selected';?>><?php echo JAK_BLOG_URL;?></option>
<option value="<?php echo JAK_FAQ_URL;?>"<?php if ($JAK_FORM_DATA["prepage"] == JAK_FAQ_URL) echo ' selected';?>><?php echo JAK_FAQ_URL;?></option>
<option value="<?php echo JAK_SUPPORT_URL;?>"<?php if ($JAK_FORM_DATA["prepage"] == JAK_SUPPORT_URL) echo ' selected';?>><?php echo JAK_SUPPORT_URL;?></option>
<option value="<?php echo JAK_CONTACT_URL;?>"<?php if ($JAK_FORM_DATA["prepage"] == JAK_CONTACT_URL) echo ' selected';?>><?php echo JAK_CONTACT_URL;?></option>
</select>
</div>
<div class="form-group">
<p><label class="control-label" for="jak_lang"><?php echo $jkl["g22"];?></label></p>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["lang"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<!-- Custom Stuff from the template -->
<input type="hidden" name="jak_custom" value="">
<?php if (isset($jaktplclient["custom2"]) && is_array($jaktplclient["custom2"])) { ?>
<div class="form-group">
<p><label for="order"><?php echo $jaktplclient["custom2title"];?></label></p>
<select name="jak_custom2" class="selectpicker col-12" data-live-search="true">
<?php foreach($jaktplclient["custom2"] as $k => $v) { ?>
<option value="<?php echo $k;?>"<?php if ($JAK_FORM_DATA["custom2"] == $k) echo " selected";?>><?php echo $v;?></option>
<?php } ?>
</select>
</div>
<?php } else { ?>
<input type="hidden" name="jak_custom2" value="">
<?php } ?>
<?php if (isset($header_tpl) && is_array($header_tpl)) { ?>
<div class="form-group">
<p><label for="jak_header_tpl"><?php echo $jkl['hd310'];?></label></p>
<select name="jak_header_tpl" class="selectpicker col-12" data-live-search="true">
<?php foreach($header_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["header_tpl"] == $v) echo " selected";?>><?php echo substr($v, 0, -4);?></option>
<?php } ?>
</select>
</div>
<?php } else { ?>
<input type="hidden" name="jak_header_tpl" value="">
<?php } ?>
<?php if (isset($main_tpl) && is_array($main_tpl)) { ?>
<div class="form-group">
<p><label for="jak_main_tpl"><?php echo $jkl['hd308'];?></label></p>
<select name="jak_main_tpl" class="selectpicker col-12" data-live-search="true">
<?php foreach($main_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["main_tpl"] == $v) echo " selected";?>><?php echo substr($v, 0, -4);?></option>
<?php } ?>
</select>
</div>
<?php } else { ?>
<input type="hidden" name="jak_main_tpl" value="">
<?php } ?>
<?php if (isset($footer_tpl) && is_array($footer_tpl)) { ?>
<div class="form-group">
<p><label for="jak_footer_tpl"><?php echo $jkl['hd311'];?></label></p>
<select name="jak_footer_tpl" class="selectpicker col-12" data-live-search="true">
<?php foreach($footer_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["footer_tpl"] == $v) echo " selected";?>><?php echo substr($v, 0, -4);?></option>
<?php } ?>
</select>
</div>
<?php } else { ?>
<input type="hidden" name="jak_footer_tpl" value="">
<?php } ?>
<?php if (isset($jaktplclient["custom4"]) && is_array($jaktplclient["custom4"])) { ?>
<div class="form-group">
<p><label for="order"><?php echo $jaktplclient["custom4title"];?></label></p>
<select name="jak_custom4" class="selectpicker col-12" data-live-search="true">
<?php foreach($jaktplclient["custom4"] as $k => $v) { ?>
<option value="<?php echo $k;?>"<?php if ($JAK_FORM_DATA["custom4"] == $k) echo " selected";?>><?php echo $v;?></option>
<?php } ?>
</select>
</div>
<?php } else { ?>
<input type="hidden" name="jak_custom4" value="">
<?php } ?>
<input type="hidden" name="jak_custom3" value="">
<input type="hidden" name="jak_custom5" value="">
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="external_url"><?php echo $jkl["hd334"];?></label>
<input type="text" maxlength="255" name="external_url" id="external_url" class="form-control" value="<?php echo $JAK_FORM_DATA["external_url"];?>">
</div>
<div class="form-group">
<label class="control-label" for="previmg"><?php echo $jkl["hd312"];?></label>
<div class="input-group">
<input type="text" name="previmg" id="previmg" class="form-control" value="<?php echo $JAK_FORM_DATA["previmg"];?>">
<span class="input-group-btn">
<a class="btn btn-rose btn-round btn-fab" data-toggle="modal" data-target="#jakFM" type="button" href="javascript:void(0)"><i class="far fa-file-archive"></i></a>
</span>
</div><!-- /input-group -->
</div>
<div class="form-group">
<label class="control-label" for="meta_key"><?php echo $jkl["hd204"];?></label>
<input type="text" maxlength="200" name="meta_key" class="form-control" value="<?php echo $JAK_FORM_DATA["meta_keywords"];?>">
</div>
<div class="form-group">
<label class="control-label" for="meta_desc"><?php echo $jkl["hd205"];?></label>
<input type="text" maxlength="200" name="meta_desc" class="form-control" value="<?php echo $JAK_FORM_DATA["meta_description"];?>">
</div>
<div class="form-group">
<label class="control-label" for="jak_header"><?php echo $jkl["hd201"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_header" value="1"<?php if ($JAK_FORM_DATA["showheader"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_header" value="0"<?php if ($JAK_FORM_DATA["showheader"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_ishome"><?php echo $jkl["hd203"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_ishome" value="1"<?php if ($JAK_FORM_DATA["ishome"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_ishome" value="0"<?php if ($JAK_FORM_DATA["ishome"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_footer"><?php echo $jkl["hd202"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_footer" value="1"<?php if ($JAK_FORM_DATA["showfooter"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_footer" value="0"<?php if ($JAK_FORM_DATA["showfooter"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_membersonly"><?php echo $jkl["hd18"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_membersonly" value="1"<?php if ($JAK_FORM_DATA["access"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd207"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_membersonly" value="2"<?php if ($JAK_FORM_DATA["access"] == 2) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd208"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_membersonly" value="3"<?php if ($JAK_FORM_DATA["access"] == 3) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd209"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="order"><?php echo $jkl["g102"];?></label>
<input type="number" min="1" name="order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
<div class="form-group">
<label class="control-label" for="hits"><?php echo $jkl["hd42"];?></label>
<input type="number" min="1" name="hits" id="hits" class="form-control" value="<?php echo $JAK_FORM_DATA["hits"];?>">
</div>
</div>
</div>
<div class="alert alert-rose"><?php echo $jkl['h14'];?></div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+179
View File
@@ -0,0 +1,179 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form role="form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd153"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="jak_title" id="title" class="form-control" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="slug"><?php echo $jkl["hd155"];?></label>
<input type="text" name="jak_slug" id="slug" class="form-control" value="<?php echo $JAK_FORM_DATA["val_slug"];?>" disabled>
</div>
<div class="form-group<?php if (isset($errors["e2"])) echo " has-danger";?>">
<label class="control-label" for="field_html"><?php echo $jkl["hd158"];?></label>
<input type="text" name="jak_field_html" id="field_html" class="form-control" value="<?php echo $JAK_FORM_DATA["field_html"];?>">
<small class="form-text text-muted">
<?php echo $jkl["hd161"];?>
</small>
</div>
<div class="form-group bmd-form-group">
<label class="control-label bmd-label-static" for="jak_fieldloc"><?php echo $jkl["g224"];?></label>
<select name="jak_fieldloc" class="selectpicker col-12" disabled>
<option value="1"<?php if ($JAK_FORM_DATA["fieldlocation"] == 1) echo ' selected';?>><?php echo $jkl['hd156'];?></option>
<option value="2"<?php if ($JAK_FORM_DATA["fieldlocation"] == 2) echo ' selected';?>><?php echo $jkl['hd157'];?></option>
<option value="2"<?php if ($JAK_FORM_DATA["fieldlocation"] == 3) echo ' selected';?>><?php echo $jkl['hd321'];?></option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="department"><?php echo $jkl["g131"];?></label>
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if ($JAK_FORM_DATA["depid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if ($JAK_FORM_DATA["depid"] == $z["id"]) echo ' selected';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_fieldtype"><?php echo $jkl["hd160"];?></label>
<select name="jak_fieldtype" class="selectpicker col-12" data-live-search="true">
<option value="1"<?php if ($JAK_FORM_DATA["fieldtype"] == "1") { ?> selected="selected"<?php } ?>>INPUT</option>
<option value="2"<?php if ($JAK_FORM_DATA["fieldtype"] == "2") { ?> selected="selected"<?php } ?>>RADIO</option>
<option value="3"<?php if ($JAK_FORM_DATA["fieldtype"] == "3") { ?> selected="selected"<?php } ?>>CHECKBOX</option>
<option value="4"<?php if ($JAK_FORM_DATA["fieldtype"] == "4") { ?> selected="selected"<?php } ?>>SELECT</option>
<option value="5"<?php if ($JAK_FORM_DATA["fieldtype"] == "5") { ?> selected="selected"<?php } ?>>TEXTAREA</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_mandatory"><?php echo $jkl["hd159"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_mandatory" value="1"<?php if ($JAK_FORM_DATA["mandatory"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_mandatory" value="0"<?php if ($JAK_FORM_DATA["mandatory"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_onregister"><?php echo $jkl["hd163"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_onregister" value="1"<?php if ($JAK_FORM_DATA["onregister"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_onregister" value="0"<?php if ($JAK_FORM_DATA["onregister"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<small class="form-text text-muted">
<?php echo $jkl["hd164"];?>
</small>
</div>
<div class="form-group">
<label class="control-label" for="order"><?php echo $jkl["g102"];?></label>
<input type="number" min="1" name="order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'form');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">language</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd146"];?></h4>
</div>
<div class="card-body">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?>
<?php $newtransl = array();
if (isset($JAK_FIELD_TRANSLATION) && is_array($JAK_FIELD_TRANSLATION)) foreach($JAK_FIELD_TRANSLATION as $tr) {
if ($tr['lang'] == $lf) {
$newtransl = $tr;
}
}?>
<div class="form-group">
<label class="control-label" for="title_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["g16"];?></label>
<input type="text" name="title_<?php echo $lf;?>" id="title_<?php echo $lf;?>" class="form-control" value="<?php if (isset($newtransl['title'])) echo $newtransl['title'];?>">
</div>
<div class="form-group">
<label class="control-label" for="field_html_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["hd158"];?></label>
<input type="text" name="field_html_<?php echo $lf;?>" id="field_html_<?php echo $lf;?>" class="form-control" value="<?php if (isset($newtransl['description'])) echo $newtransl['description'];?>">
</div>
<?php if (is_array($newtransl) && !empty($newtransl)) { ?>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="deltrans_<?php echo $lf;?>" value="<?php echo $lf;?>"> <?php echo $jkl["hd147"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<hr>
<?php } } ?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'form');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+180
View File
@@ -0,0 +1,180 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo ($page1 == 'faq' ? $jkl["hd19"] : $jkl["m17"]);?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="email"><?php echo $jkl["g68"];?></label>
<input type="text" name="email" id="email" class="form-control" value="<?php echo $JAK_FORM_DATA["email"];?>">
</div>
<?php if ($page1 == 'faq') { ?>
<div class="form-group">
<label for="jak_class"><?php echo $jkl["m13"];?></label>
<select name="jak_class" class="selectpicker col-12" data-size="4" data-live-search="true">
<option value="secondary"<?php if ($JAK_FORM_DATA["class"] == "default") echo ' selected';?>>Default</option>
<option value="primary"<?php if ($JAK_FORM_DATA["class"] == "primary") echo ' selected';?>>Primary</option>
<option value="success"<?php if ($JAK_FORM_DATA["class"] == "success") echo ' selected';?>>Success</option>
<option value="info"<?php if ($JAK_FORM_DATA["class"] == "info") echo ' selected';?>>Info</option>
<option value="warning"<?php if ($JAK_FORM_DATA["class"] == "warning") echo ' selected';?>>Warning</option>
<option value="danger"<?php if ($JAK_FORM_DATA["class"] == "danger") echo ' selected';?>>Danger</option>
<option value="dark"<?php if ($JAK_FORM_DATA["class"] == "dark") echo ' selected';?>>Dark</option>
<option value="white"<?php if ($JAK_FORM_DATA["class"] == "white") echo ' selected';?>>White</option>
</select>
</div>
<div class="form-group">
<label for="subcat"><?php echo $jkl["hd4"];?></label>
<select name="jak_subcat" id="subcat" class="selectpicker col-12" data-size="4" data-live-search="true">
<option value="0"<?php if (!isset($JAK_FORM_DATA["subcat"]) || $JAK_FORM_DATA["subcat"] == 0) echo ' selected';?>><?php echo $jkl["hd289"];?></option>
<?php if (isset($DEPARTMENTS_ALL) && is_array($DEPARTMENTS_ALL)) foreach($DEPARTMENTS_ALL as $z) { if ($z["subcat"] == 0) { ?>
<option value="<?php echo $z["id"];?>"<?php if (isset($JAK_FORM_DATA["subcat"]) && $JAK_FORM_DATA["subcat"] == $z["id"]) echo ' selected';?>><?php echo $z["title"];?></option>
<?php } } ?>
</select>
<small class="form-text text-muted">
<?php echo $jkl["hd310"];?>
</small>
</div>
<?php } if (JAK_BILLING_MODE == 1) { ?>
<div class="form-group">
<label class="control-label" for="credits"><?php echo $jkl["hd56"];?></label>
<input type="number" min="0" name="credits" id="credits" class="form-control" value="<?php echo $JAK_FORM_DATA["credits"];?>">
</div>
<?php } else { ?>
<input type="hidden" name="credits" value="0">
<?php } if ($page1 != 'faq') { ?>
<div class="form-group">
<label class="control-label" for="faq"><?php echo $jkl["g278"];?></label>
<input type="text" name="faq" id="faq" class="form-control" value="<?php echo $JAK_FORM_DATA["faq_url"];?>">
</div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="jak_guesta"><?php echo $jkl["hd18"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_guesta" value="1"<?php if ($JAK_FORM_DATA["guesta"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_guesta" value="0"<?php if ($JAK_FORM_DATA["guesta"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="desc"><?php echo $jkl["g52"];?></label>
<textarea name="description" id="desc" rows="3" class="form-control"><?php echo $JAK_FORM_DATA["description"];?></textarea>
</div>
<?php if ($page1 == 'support') { ?>
<div class="form-group">
<label for="predefined_content"><?php echo $jkl["g151"];?></label>
<textarea name="predefined_content" id="content-editor" rows="5" class="form-control"><?php echo $JAK_FORM_DATA["pre_content"];?></textarea>
<a href="javascript:void(0)" class="btn btn-info btn-sm btn-round btn-fab" onclick="md.showNotification('add_alert', '<?php echo addslashes($jkl["h13"]);?>', 'info', 'top', 'center')"><i class="material-icons">help</i></a>
</div>
<?php } ?>
</div>
<div class="card-footer">
<a href="<?php echo (!in_array($page1, array("support", "faq")) ? JAK_rewrite::jakParseurl('departments') : JAK_rewrite::jakParseurl('departments', $page1));?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">language</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd146"];?></h4>
</div>
<div class="card-body">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?>
<?php $newtransl = array();
if (isset($JAK_DEP_TRANSLATION) && is_array($JAK_DEP_TRANSLATION)) foreach($JAK_DEP_TRANSLATION as $tr) {
if ($tr['lang'] == $lf) {
$newtransl = $tr;
}
}?>
<div class="form-group">
<label class="control-label" for="title_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["g16"];?></label>
<input type="text" name="title_<?php echo $lf;?>" id="title_<?php echo $lf;?>" class="form-control" value="<?php if (isset($newtransl['title'])) echo $newtransl['title'];?>">
</div>
<?php if ($page1 != 'faq') { ?>
<div class="form-group">
<label class="control-label" for="faq_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["g278"];?></label>
<input type="text" name="faq_<?php echo $lf;?>" id="faq_<?php echo $lf;?>" class="form-control" value="<?php if (isset($newtransl['faq_url'])) echo $newtransl['faq_url'];?>">
</div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="desc_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["g52"];?></label>
<textarea name="description_<?php echo $lf;?>" id="desc_<?php echo $lf;?>" rows="3" class="form-control"><?php if (isset($newtransl['description'])) echo $newtransl['description'];?></textarea>
</div>
<?php if (is_array($newtransl) && !empty($newtransl)) { ?>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="deltrans_<?php echo $lf;?>" value="<?php if (isset($lf)) echo $lf;?>"> <?php echo $jkl["hd147"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<hr>
<?php } } ?>
</div>
<div class="card-footer">
<a href="<?php echo (!in_array($page1, array("support", "faq")) ? JAK_rewrite::jakParseurl('departments') : JAK_rewrite::jakParseurl('departments', $page1));?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+138
View File
@@ -0,0 +1,138 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd28"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group">
<label for="jak_icon"><?php echo $jkl["hd223"];?></label>
<div class="input-group">
<input type="text" name="jak_icon" class="form-control" value="<?php echo $JAK_FORM_DATA["icon"];?>">
<div class="input-group-append">
<span class="input-group-text">
<a href="https://fontawesome.com/v5/search" target="_blank"><i class="fa fa-link"></i></a>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="title"><?php echo $jkl["hd287"];?></label>
<input type="text" name="tags" id="tags" class="form-control tagin" value="<?php echo jak_get_tags($opcacheid, "faqid", $page2);?>" data-placeholder="<?php echo $jkl['hd288'];?>">
</div>
<div class="form-group">
<label class="control-label" for="order"><?php echo $jkl["g102"];?></label>
<input type="number" name="order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<select name="jak_catid" id="department" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g131"];?></option>
<option value="0"<?php if ($JAK_FORM_DATA["catid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_CATEGORIES) && is_array($JAK_CATEGORIES)) foreach($JAK_CATEGORIES as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if ($JAK_FORM_DATA["catid"] == $z["id"]) echo ' selected="selected"';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
<input type="hidden" name="jak_old_catid" value="<?php echo $JAK_FORM_DATA["catid"];?>">
</div>
<div class="form-group">
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["lang"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="socialbutton"><?php echo $jkl["hd33"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="1"<?php if ($JAK_FORM_DATA["socialbutton"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="0"<?php if ($JAK_FORM_DATA["socialbutton"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="shownewticket"><?php echo $jkl["hd331"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="shownewticket" value="1"<?php if ($JAK_FORM_DATA["shownewticket"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="shownewticket" value="0"<?php if ($JAK_FORM_DATA["shownewticket"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<textarea name="content" id="content-editor" rows="5" class="form-control"><?php echo htmlspecialchars($JAK_FORM_DATA["content"]);?></textarea>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('faq');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+55
View File
@@ -0,0 +1,55 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><?php echo $jkl["g47"];?></h3>
</div><!-- /.box-header -->
<div class="box-body">
<div class="table-responsive">
<table class="table table-striped">
<tr>
<td>
<?php if (file_exists(CLIENT_UPLOAD_DIR.$JAK_FORM_DATA["path"])) { if (getimagesize(CLIENT_UPLOAD_DIR.$JAK_FORM_DATA["path"])) { ?>
<p><img class="img-thumbnail img-fluid" src="<?php echo BASE_URL_ORIG;?>_showfile.php?i=<?php echo jak_encrypt_decrypt($JAK_FORM_DATA["path"].':#:'.$JAK_FORM_DATA["orig_name"].':#:'.$JAK_FORM_DATA["mime_type"]);?>" alt="<?php echo $JAK_FORM_DATA["name"];?>"></p>
<?php } ?>
<p><a class="btn btn-primary" href="<?php echo BASE_URL_ORIG;?>_showfile.php?i=<?php echo jak_encrypt_decrypt($JAK_FORM_DATA["path"].':#:'.$JAK_FORM_DATA["orig_name"].':#:'.$JAK_FORM_DATA["mime_type"]);?>"><i class="fa fa-download fa-2x"></i> <?php echo $JAK_FORM_DATA["orig_name"];?></a></p>
<?php } else { ?>
<?php echo $jkl['i16'];?>
<?php } ?>
</td>
<tr>
<td>
<div class="form-group">
<label for="name"><?php echo $jkl["g53"];?></label>
<input type="text" name="name" id="name" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["name"];?>">
</div>
</td>
</tr>
<tr>
<td>
<div class="form-group">
<label for="desc"><?php echo $jkl["g52"];?></label>
<textarea name="description" id="desc" rows="5" class="form-control"><?php echo $JAK_FORM_DATA["description"];?></textarea>
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="box-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('files');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+179
View File
@@ -0,0 +1,179 @@
<?php include_once 'header.php';?>
<div class="content">
<?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 class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-history"></i> <?php echo $jkl["g310"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($JAK_GCHISTORY) && is_array($JAK_GCHISTORY) && !empty($JAK_GCHISTORY)) { ?>
<ul class="list-group">
<?php foreach($JAK_GCHISTORY as $v) { ?>
<li class="list-group-item">
<a href="<?php echo JAK_rewrite::jakParseurl('groupchats', 'view', $v["id"]);?>"><?php echo JAK_base::jakTimesince($v["created"], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></a> <a href="<?php echo JAK_rewrite::jakParseurl('groupchats', 'delete', $v["id"], 'chatlog');?>" class="btn btn-sm btn-danger"><i class="fa fa-trash"></i></a>
</li>
<?php } ?>
</ul>
<?php } else { ?>
<div class="alert alert-info"><?php echo $jkl['i3'];?></div>
<?php } ?>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-code"></i> <?php echo $jkl["m34"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<p><?php echo $jkl['cw8'];?> <a href="javascript:void(0)" data-clipboard-target="#widget-code" class="btn btn-rose btn-round btn-fab clipboard"><i class="fa fa-clipboard"></i></a></p>
<p><textarea class="form-control" id="widget-code" readonly="readonly" rows="11"><?php echo htmlentities('<!-- Cloud Desk 3 Group Chat Widget -->
<script type="text/javascript">
(function(w, d, s, u) {
w.id = '.$page2.'; w.lcjUrl = u;
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = true; j.src = \''.BASE_URL_ORIG.'js/jaklcgroupchat.js\';
h.parentNode.insertBefore(j, h);
})(window, document, \'script\', \''.BASE_URL_ORIG.'\');
</script>
<div id="jakgroup-chat-container"></div>
<!-- end Cloud Desk 3 Group Chat Widget -->');?></textarea></p>
<p><?php echo $jkl['g301'];?> <a href="javascript:void(0)" data-clipboard-target="#marketing-code" class="btn btn-rose btn-round btn-fab clipboard"><i class="fa fa-clipboard"></i></a></p>
<div class="alert alert-info" id="marketing-code">
<?php echo htmlentities('<a href="'.str_replace(JAK_OPERATOR_LOC."/", "", JAK_rewrite::jakParseurl('groupchats', $page2, $JAK_FORM_DATA["lang"])).'">'.$jkl['g306'].'</a>');?>
</div>
</div>
</div>
</div>
</div>
<hr>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header with-border">
<h3 class="card-title"><i class="fa fa-edit"></i> <?php echo $jkl["g47"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<div class="form-group">
<label for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group">
<label for="description"><?php echo $jkl["g52"];?></label>
<textarea name="description" id="description" rows="5" class="form-control"><?php echo $JAK_FORM_DATA["description"];?></textarea>
</div>
<div class="form-group">
<p><label for="operator"><?php echo $jkl["g130"];?></label></p>
<select name="jak_opid[]" id="operator" class="selectpicker col-12" data-size="4" data-live-search="true" multiple>
<option value="0"<?php if ($JAK_FORM_DATA["opids"] == 0) echo ' selected';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_OPERATORS) && is_array($JAK_OPERATORS)) foreach($JAK_OPERATORS as $o) { ?>
<option value="<?php echo $o["id"];?>"<?php if (in_array($o["id"], explode(",", $JAK_FORM_DATA["opids"]))) echo ' selected';?>><?php echo $o["username"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="jak_maxclients"><?php echo $jkl["g21"];?></label>
<input type="number" name="jak_maxclients" class="form-control" min="2" max="50" step="1" value="<?php echo $JAK_FORM_DATA["maxclients"];?>">
</div>
<div class="form-group">
<label for="jak_password"><?php echo $jkl["l2"];?></label>
<input type="password" name="jak_password" class="form-control" value="<?php echo $JAK_FORM_DATA["password"];?>">
</div>
<div class="form-group">
<p><label for="jak_lang"><?php echo $jkl["g22"];?></label></p>
<select name="jak_lang" class="selectpicker col-12" data-size="4" data-live-search="true">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?>
<option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["lang"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('groupchats');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-palette"></i> <?php echo $jkl["m13"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<div class="form-group">
<label for="jak_floatcss"><?php echo $jkl["float"];?></label>
<input type="text" class="form-control" name="jak_floatcss" value="<?php if (isset($JAK_FORM_DATA["floatcss"])) echo $JAK_FORM_DATA["floatcss"];?>" placeholder="bottom:20px;left:20px">
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_float" value="1"<?php if ($JAK_FORM_DATA["floatpopup"] == 1) echo ' checked';?>> <?php echo $jkl["float"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<hr>
<div class="form-group">
<p><label for="jak_buttonimg"><?php echo $jkl["g71"];?></label></p>
<select name="jak_buttonimg" id="chatbutton" class="selectpicker col-12" data-size="4" data-live-search="true">
<?php if (isset($BUTTONS_ALL) && is_array($BUTTONS_ALL)) foreach($BUTTONS_ALL as $k) { if (getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/buttons/'.$k) && strpos($k,"_on")) { ?>
<option value="<?php echo $k;?>"<?php if ($JAK_FORM_DATA["buttonimg"] == $k) { ?> selected="selected"<?php } ?>><?php echo ($k);?></option><?php } } ?>
</select>
</div>
<div class="card text-center">
<div class="card-body">
<div class="row">
<div class="col-md-12">
<h4><?php echo $jkl['hd34'];?></h4>
<div id="chat_preview_button" style="min-height: 100px">
<img src="<?php echo BASE_URL_ORIG.JAK_FILES_DIRECTORY;?>/buttons/<?php echo $JAK_FORM_DATA["buttonimg"];?>" alt="button">
</div>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('groupchats');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
</div>
<?php include_once 'footer.php';?>
+133
View File
@@ -0,0 +1,133 @@
<?php include_once APP_PATH.JAK_OPERATOR_LOC.'/template/header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors) && !empty($errors)) foreach ($errors as $e) { echo $e; }?></div>
<?php } if ($success) { ?>
<div class="alert alert-success"><?php echo $success["e"];?></div>
<?php } ?>
<div class="row">
<div class="col-md-12">
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd45"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<select name="jak_depid" id="jak_depid" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl['g131'];?></option>
<?php foreach ($JAK_DEPARTMENTS as $p) { ;?><option value="<?php echo $p["id"];?>"<?php if (isset($JAK_FORM_DATA['depid']) && $JAK_FORM_DATA['depid'] == $p["id"]) { ?> selected="selected"<?php } ?>><?php echo $p["title"];?></option><?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="mailbox" class="sr-only"><?php echo $jkl['hd48'];?></label>
<input type="text" name="mailbox" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["mailbox"];?>">
</div>
<div class="form-group">
<label class="control-label" for="usrphpimap" class="sr-only"><?php echo $jkl['u2'];?></label>
<input type="text" name="usrphpimap" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["username"];?>" autocomplete="off">
</div>
<div class="form-group">
<label class="control-label" for="passphpimap" class="sr-only"><?php echo $jkl['u4'];?></label>
<input type="password" name="passphpimap" class="form-control" value="<?php echo $JAK_FORM_DATA["password"];?>">
</div>
<div class="form-group">
<label class="control-label" for="encryption" class="sr-only"><?php echo $jkl['hd49'];?></label>
<input type="text" name="encryption" class="form-control" value="<?php echo $JAK_FORM_DATA["encryption"];?>">
</div>
<div class="form-group">
<label class="control-label" for="inbox" class="sr-only"><?php echo $jkl['hd50'];?></label>
<input type="text" name="inbox" class="form-control" value="<?php echo $JAK_FORM_DATA["scanfolder"];?>">
</div>
<div class="form-group">
<label class="control-label" for="email" class="sr-only"><?php echo $jkl['u1'];?></label>
<input type="text" name="email" class="form-control<?php if (isset($errors["e2"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["emailanswer"];?>" autocomplete="off">
</div>
<div class="form-group">
<label class="control-label" for="jak_msgdel"><?php echo $jkl["hd51"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_msgdel" value="1"<?php if ($JAK_FORM_DATA["msgdel"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd52"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_msgdel" value="0"<?php if ($JAK_FORM_DATA["msgdel"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd53"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_attachemail"><?php echo $jkl["hd284"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_attachemail" value="1"<?php if ($JAK_FORM_DATA["attachemail"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_attachemail" value="0"<?php if ($JAK_FORM_DATA["attachemail"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_takeattach"><?php echo $jkl["hd285"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_takeattach" value="1"<?php if ($JAK_FORM_DATA["takeattach"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_takeattach" value="0"<?php if ($JAK_FORM_DATA["takeattach"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<button type="submit" name="testMail" class="btn btn-success" id="sendTM"><i id="loader" class="fa fa-spinner fa-pulse"></i> <?php echo $jkl["hd55"];?></button>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('settings', 'phpimap');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
</div>
</div>
<?php include_once APP_PATH.JAK_OPERATOR_LOC.'/template/footer.php';?>
+138
View File
@@ -0,0 +1,138 @@
<?php include_once 'header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger">
<?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e3"])) echo $errors["e3"];
if (isset($errors["e4"])) echo $errors["e4"];?>
</div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["m18"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="url"><?php echo $jkl["g167"];?></label>
<input type="text" name="path" id="url" class="form-control<?php if (isset($errors["e"])) echo " has-danger";?>" value="<?php echo $JAK_FORM_DATA["path"];?>" />
</div>
<div class="form-group<?php if (isset($errors["e2"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="message"><?php echo $jkl["g146"];?></label>
<textarea name="message" id="message" rows="5" class="form-control"><?php echo $JAK_FORM_DATA["message"];?></textarea>
</div>
<div class="form-group<?php if (isset($errors["e3"])) echo " has-danger";?>">
<label class="control-label" for="btn-s"><?php echo $jkl["g281"];?></label>
<input type="text" name="btn-s" id="btn-s" class="form-control" value="<?php echo $JAK_FORM_DATA["btn_confirm"];?>">
</div>
<div class="form-group<?php if (isset($errors["e4"])) echo " has-danger";?>">
<label class="control-label" for="btn-c"><?php echo $jkl["g282"];?></label>
<input type="text" name="btn-c" id="btn-c" class="form-control" value="<?php echo $JAK_FORM_DATA["btn_cancel"];?>">
</div>
</div>
<div class="col-md-6">
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="imgpath"><?php echo $jkl["g265"];?></label>
<input type="text" name="imgpath" id="imgpath" class="form-control" value="<?php echo $JAK_FORM_DATA["imgpath"];?>">
<small class="form-text text-muted">
<?php echo $jkl["h19"];?>
</small>
</div>
<div class="form-group">
<label class="control-label" for="showalert"><?php echo $jkl["g191"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="showalert" value="1"<?php if ($JAK_FORM_DATA["showalert"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="showalert" value="0"<?php if ($JAK_FORM_DATA["showalert"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label class="control-label" for="jak_ringtone"><?php echo $jkl["g314"];?></label>
<select name="jak_ringtone" id="jak_ringtone" class="selectpicker play-tone" data-live-search="true">
<option value="0"<?php if (empty($JAK_FORM_DATA["soundalert"])) echo ' selected="selected"';?>>-</option>
<?php if (isset($sound_files) && is_array($sound_files)) foreach($sound_files as $sfc) { ?><option value="<?php echo $sfc;?>"<?php if ($JAK_FORM_DATA["soundalert"] == $sfc) { ?> selected="selected"<?php } ?>><?php echo $sfc;?></option><?php } ?>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label class="control-label" for="onsite"><?php echo $jkl["g194"];?></label>
<select name="onsite" id="onsite" class="selectpicker col-12" data-live-search="true">
<option value="2"<?php if ($JAK_FORM_DATA["timeonsite"] == 1) { ?> selected="selected"<?php } ?>>1 <?php echo $jkl["g196"];?></option>
<option value="5"<?php if ($JAK_FORM_DATA["timeonsite"] == 5) { ?> selected="selected"<?php } ?>>5 <?php echo $jkl["g196"];?></option>
<option value="15"<?php if ($JAK_FORM_DATA["timeonsite"] == 15) { ?> selected="selected"<?php } ?>>15 <?php echo $jkl["g196"];?></option>
<option value="30"<?php if ($JAK_FORM_DATA["timeonsite"] == 30) { ?> selected="selected"<?php } ?>>30 <?php echo $jkl["g196"];?></option>
<option value="60"<?php if ($JAK_FORM_DATA["timeonsite"] == 60) { ?> selected="selected"<?php } ?>>1 <?php echo $jkl["g197"];?></option>
<option value="120"<?php if ($JAK_FORM_DATA["timeonsite"] == 120) { ?> selected="selected"<?php } ?>>2 <?php echo $jkl["g197"];?></option>
<option value="180"<?php if ($JAK_FORM_DATA["timeonsite"] == 180) { ?> selected="selected"<?php } ?>>3 <?php echo $jkl["g197"];?></option>
<option value="240"<?php if ($JAK_FORM_DATA["timeonsite"] == 240) { ?> selected="selected"<?php } ?>>4 <?php echo $jkl["g197"];?></option>
<option value="300"<?php if ($JAK_FORM_DATA["timeonsite"] == 300) { ?> selected="selected"<?php } ?>>5 <?php echo $jkl["g197"];?></option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label class="control-label" for="visited"><?php echo $jkl["g195"];?></label>
<select name="visited" id="visited" class="selectpicker col-12" data-live-search="true">
<?php for ($i = 1; $i <= 20; $i++) { ?>
<option value="<?php echo $i ?>"<?php if ($JAK_FORM_DATA["visitedsites"] == $i) { ?> selected="selected"<?php } ?>><?php echo $i; ?> <?php echo $jkl["g198"];?></option>
<?php } ?>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('proactive');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+57
View File
@@ -0,0 +1,57 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["m16"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="department"><?php echo $jkl["g16"];?></label>
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (isset($JAK_FORM_DATA["department"]) && $JAK_FORM_DATA["department"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if (isset($JAK_FORM_DATA["department"]) && $JAK_FORM_DATA["department"] == $z["id"]) echo ' selected="selected"';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>" />
</div>
<?php if ($page1 != 'support') { ?>
<div class="form-group">
<label for="short_code"><?php echo $jkl["g349"];?></label>
<input type="text" name="short_code" id="short_code" class="form-control" value="<?php echo $JAK_FORM_DATA["short_code"];?>">
</div>
<?php } ?>
<div class="form-group">
<textarea name="response" id="content-editor" rows="5" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>"><?php echo $JAK_FORM_DATA["message"];?></textarea>
<small class="form-text text-muted">
<?php echo $jkl["h13"];?>
</small>
</div>
</div>
<div class="card-footer">
<a href="<?php echo ($page1 != 'support' ? JAK_rewrite::jakParseurl('response') : JAK_rewrite::jakParseurl('response', 'support'));?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+140
View File
@@ -0,0 +1,140 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd220"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="department"><?php echo $jkl["g131"];?></label>
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if ($JAK_FORM_DATA["depid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if ($JAK_FORM_DATA["depid"] == $z["id"]) echo ' selected="selected"';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="jak_title" id="title" class="form-control" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<?php if (JAK_BILLING_MODE == 1) { ?>
<div class="form-group">
<label class="control-label" for="credits"><?php echo $jkl["hd56"];?></label>
<input type="number" min="0" name="credits" id="credits" class="form-control" value="<?php echo $JAK_FORM_DATA["credits"];?>">
</div>
<?php } else { ?>
<input type="hidden" name="credits" value="0">
<?php } ?>
<div class="form-group">
<label class="control-label" for="jak_icon"><?php echo $jkl["hd223"];?></label>
<div class="input-group">
<input type="text" name="jak_icon" class="form-control" value="<?php echo $JAK_FORM_DATA["icon"];?>">
<div class="input-group-append">
<span class="input-group-text">
<a class="btn btn-rose btn-round btn-fab" href="http://fontawesome.io/icons/" target="_blank"><i class="fa fa-link"></i></a>
</span>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_oponly"><?php echo $jkl["hd150"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_oponly" value="1"<?php if ($JAK_FORM_DATA["oponly"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_oponly" value="0"<?php if ($JAK_FORM_DATA["oponly"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="order"><?php echo $jkl["g102"];?></label>
<input type="number" name="jak_order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'options');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">language</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd146"];?></h4>
</div>
<div class="card-body">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?>
<?php $newtransl = array();
if (isset($JAK_PRIO_TRANSLATION) && is_array($JAK_PRIO_TRANSLATION)) foreach($JAK_PRIO_TRANSLATION as $tr) {
if ($tr['lang'] == $lf) {
$newtransl = $tr;
}
}?>
<div class="form-group">
<label class="control-label" for="title_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["g16"];?></label>
<input type="text" name="title_<?php echo $lf;?>" id="title_<?php echo $lf;?>" class="form-control" value="<?php if (isset($newtransl['title'])) echo $newtransl['title'];?>">
</div>
<?php if (is_array($newtransl) && !empty($newtransl)) { ?>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="deltrans_<?php echo $lf;?>" value="<?php echo $lf;?>"> <?php echo $jkl["hd147"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<hr>
<?php } } ?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'options');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+141
View File
@@ -0,0 +1,141 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd152"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="department"><?php echo $jkl["g131"];?></label>
<select name="jak_depid" id="department" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if ($JAK_FORM_DATA["depid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if ($JAK_FORM_DATA["depid"] == $z["id"]) echo ' selected="selected"';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_class"><?php echo $jkl["m13"];?></label>
<select name="jak_class" class="selectpicker col-12" data-live-search="true">
<option value="secondary"<?php if ($JAK_FORM_DATA["class"] == "default") echo ' selected';?>>Default</option>
<option value="primary"<?php if ($JAK_FORM_DATA["class"] == "primary") echo ' selected';?>>Primary</option>
<option value="success"<?php if ($JAK_FORM_DATA["class"] == "success") echo ' selected';?>>Success</option>
<option value="info"<?php if ($JAK_FORM_DATA["class"] == "info") echo ' selected';?>>Info</option>
<option value="warning"<?php if ($JAK_FORM_DATA["class"] == "warning") echo ' selected';?>>Warning</option>
<option value="danger"<?php if ($JAK_FORM_DATA["class"] == "danger") echo ' selected';?>>Danger</option>
<option value="dark"<?php if ($JAK_FORM_DATA["class"] == "dark") echo ' selected';?>>Dark</option>
</select>
</div>
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="jak_title" id="title" class="form-control" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<?php if (JAK_BILLING_MODE == 1) { ?>
<div class="form-group">
<label class="control-label" for="credits"><?php echo $jkl["hd56"];?></label>
<input type="number" min="0" name="credits" id="credits" class="form-control" value="<?php echo $JAK_FORM_DATA["credits"];?>">
</div>
<?php } else { ?>
<input type="hidden" name="credits" value="0">
<?php } ?>
<div class="form-group">
<label class="control-label" for="jak_oponly"><?php echo $jkl["hd18"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_oponly" value="1"<?php if ($JAK_FORM_DATA["oponly"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_oponly" value="0"<?php if ($JAK_FORM_DATA["oponly"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="order"><?php echo $jkl["g102"];?></label>
<input type="number" name="jak_order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">language</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd146"];?></h4>
</div>
<div class="card-body">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?>
<?php $newtransl = array();
if (isset($JAK_PRIO_TRANSLATION) && is_array($JAK_PRIO_TRANSLATION)) foreach($JAK_PRIO_TRANSLATION as $tr) {
if ($tr['lang'] == $lf) {
$newtransl = $tr;
}
}?>
<div class="form-group">
<label class="control-label" for="title_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["g16"];?></label>
<input type="text" name="title_<?php echo $lf;?>" id="title_<?php echo $lf;?>" class="form-control" value="<?php if (isset($newtransl['title'])) echo $newtransl['title'];?>">
</div>
<?php if (is_array($newtransl) && !empty($newtransl)) { ?>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="deltrans_<?php echo $lf;?>" value="<?php echo $lf;?>"> <?php echo $jkl["hd147"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<hr>
<?php } } ?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+157
View File
@@ -0,0 +1,157 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd326"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="jak_title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group">
<p><label for="jak_class"><?php echo $jkl["m13"];?></label></p>
<select name="jak_class" class="selectpicker col-12" data-live-search="true">
<option value="secondary"<?php if ($JAK_FORM_DATA["class"] == "default") echo ' selected';?>>Default</option>
<option value="primary"<?php if ($JAK_FORM_DATA["class"] == "primary") echo ' selected';?>>Primary</option>
<option value="success"<?php if ($JAK_FORM_DATA["class"] == "success") echo ' selected';?>>Success</option>
<option value="info"<?php if ($JAK_FORM_DATA["class"] == "info") echo ' selected';?>>Info</option>
<option value="warning"<?php if ($JAK_FORM_DATA["class"] == "warning") echo ' selected';?>>Warning</option>
<option value="danger"<?php if ($JAK_FORM_DATA["class"] == "danger") echo ' selected';?>>Danger</option>
<option value="dark"<?php if ($JAK_FORM_DATA["class"] == "dark") echo ' selected';?>>Dark</option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_oponly"><?php echo $jkl["hd150"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_oponly" value="1"<?php if (isset($JAK_FORM_DATA["oponly"]) && $JAK_FORM_DATA["oponly"] == 1) echo " checked";?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_oponly" value="0"<?php if (isset($JAK_FORM_DATA["oponly"]) && $JAK_FORM_DATA["oponly"] == 0) echo " checked";?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_reminder"><?php echo $jkl["hd327"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_reminder" value="1"<?php if (isset($JAK_FORM_DATA["reminder"]) && $JAK_FORM_DATA["reminder"] == 1) echo " checked";?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_reminder" value="0"<?php if (isset($JAK_FORM_DATA["reminder"]) && $JAK_FORM_DATA["reminder"] == 0) echo " checked";?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_closed"><?php echo $jkl["hd323"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_closed" value="1"<?php if (isset($JAK_FORM_DATA["closed"]) && $JAK_FORM_DATA["closed"] == 1) echo " checked";?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_closed" value="0"<?php if (isset($JAK_FORM_DATA["closed"]) && $JAK_FORM_DATA["closed"] == 0) echo " checked";?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label for="order"><?php echo $jkl["g102"];?></label>
<input type="number" name="jak_order" id="order" class="form-control" value="<?php echo $JAK_FORM_DATA["dorder"];?>">
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'ticketstatus');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">language</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd146"];?></h4>
</div>
<div class="card-body">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?>
<?php $newtransl = array();
if (isset($JAK_PRIO_TRANSLATION) && is_array($JAK_PRIO_TRANSLATION)) foreach($JAK_PRIO_TRANSLATION as $tr) {
if ($tr['lang'] == $lf) {
$newtransl = $tr;
}
}?>
<div class="form-group">
<label class="control-label" for="title_<?php echo $lf;?>"><?php echo strtoupper($lf).' - '.$jkl["g16"];?></label>
<input type="text" name="title_<?php echo $lf;?>" id="title_<?php echo $lf;?>" class="form-control" value="<?php if (isset($newtransl['title'])) echo $newtransl['title'];?>">
</div>
<?php if (is_array($newtransl) && !empty($newtransl)) { ?>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="deltrans_<?php echo $lf;?>" value="<?php echo $lf;?>"> <?php echo $jkl["hd147"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<hr>
<?php } } ?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'ticketstatus');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+808
View File
@@ -0,0 +1,808 @@
<?php include_once 'header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger">
<?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];
if (isset($errors["e3"])) echo $errors["e3"];
if (isset($errors["e4"])) echo $errors["e4"];
if (isset($errors["e5"])) echo $errors["e5"];
if (isset($errors["e6"])) echo $errors["e6"];
if (isset($errors["e7"])) echo $errors["e7"];?>
</div>
<?php } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">create</i>
</div>
<h4 class="card-title "><?php echo $jkl["g137"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-9">
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="name"><?php echo $jkl["u"];?></label>
<input type="text" name="jak_name" id="name" class="form-control" value="<?php echo $JAK_FORM_DATA["name"];?>">
</div>
<div class="form-group">
<label class="control-label<?php if (isset($errors["e2"])) echo " has-danger";?>" for="email"><?php echo $jkl["u1"];?></label>
<input type="text" name="jak_email" id="email" class="form-control" value="<?php echo $JAK_FORM_DATA["email"];?>">
</div>
<div class="form-group<?php if (isset($errors["e3"]) || isset($errors["e4"])) echo " has-danger";?>">
<label class="control-label" for="username"><?php echo $jkl["u2"];?></label>
<input type="text" name="jak_username" id="username" class="form-control" value="<?php echo $JAK_FORM_DATA["username"];?>">
<input type="hidden" name="jak_username_old" value="<?php echo $JAK_FORM_DATA["username"];?>">
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_delete_avatar"> <?php echo $jkl["u46"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail img-circle">
<img src="<?php echo BASE_URL;?>img/avatar_placeholder.jpg" alt="placeholder">
</div>
<div class="fileinput-preview fileinput-exists thumbnail img-circle"></div>
<div>
<span class="btn btn-round btn-rose btn-file">
<span class="fileinput-new"><?php echo $jkl["u10"];?></span>
<span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
<input type="file" name="uploadpp" id="uploadpp" accept="image/*" />
</span>
<br />
<a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
</div>
</div>
</div>
</div>
</div>
<?php if (jak_get_access("usrmanage", $jakuser->getVar("permissions"), JAK_MAIN_OP)) { ?>
<div class="form-group">
<label class="control-label" for="jak_uolist"><?php echo $jkl["u43"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_uolist" value="1"<?php if ($JAK_FORM_DATA["useronlinelist"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_uolist" value="0"<?php if ($JAK_FORM_DATA["useronlinelist"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_access"><?php echo $jkl["u3"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_access" value="1"<?php if ($JAK_FORM_DATA["access"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_access" value="0"<?php if ($JAK_FORM_DATA["access"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_responses"><?php echo $jkl["u6"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_responses" value="1"<?php if ($JAK_FORM_DATA["responses"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_responses" value="0"<?php if ($JAK_FORM_DATA["responses"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_files"><?php echo $jkl["u7"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_files" value="1"<?php if ($JAK_FORM_DATA["files"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_files" value="0"<?php if ($JAK_FORM_DATA["files"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_chat"><?php echo $jkl["u13"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chat" value="1"<?php if ($JAK_FORM_DATA["operatorchat"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chat" value="0"<?php if ($JAK_FORM_DATA["operatorchat"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_chatpublic"><?php echo $jkl["u41"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatpublic" value="1"<?php if ($JAK_FORM_DATA["operatorchatpublic"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatpublic" value="0"<?php if ($JAK_FORM_DATA["operatorchatpublic"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_chatlist"><?php echo $jkl["g137"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatlist" value="1"<?php if ($JAK_FORM_DATA["operatorlist"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatlist" value="0"<?php if ($JAK_FORM_DATA["operatorlist"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_transfer"><?php echo $jkl["u45"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_transfer" value="1"<?php if ($JAK_FORM_DATA["transferc"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_transfer" value="0"<?php if ($JAK_FORM_DATA["transferc"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="jak_latency"><?php echo $jkl["g239"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_latency" value="3000"<?php if ($JAK_FORM_DATA["chat_latency"] == 3000) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g240"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_latency" value="5000"<?php if ($JAK_FORM_DATA["chat_latency"] == 5000) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g241"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_sound"><?php echo $jkl["g2"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_sound" value="1"<?php if ($JAK_FORM_DATA["sound"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_sound" value="0"<?php if ($JAK_FORM_DATA["sound"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_ringing"><?php echo $jkl["g200"];?></label>
<select name="jak_ringing" class="selectpicker col-12" data-live-search="true">
<?php for ($i = 1; $i < 30; $i++) {
if ($i == $JAK_FORM_DATA["ringing"]) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_lang"><?php echo $jkl["g22"];?></label>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option value=""><?php echo $jkl["u11"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["language"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_navside"><?php echo $jkl["u57"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_navside" value="1"<?php if ($JAK_FORM_DATA["navsidebar"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_navside" value="0"<?php if ($JAK_FORM_DATA["navsidebar"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_themecolour"><?php echo $jkl["g367"];?></label>
<select name="jak_themecolour" class="selectpicker col-12" data-live-search="true">
<option value="purple"<?php if ($JAK_FORM_DATA["themecolour"] == 'purple') echo ' selected';?>><?php echo $jkl["g368"];?></option>
<option value="azure"<?php if ($JAK_FORM_DATA["themecolour"] == 'azure') echo ' selected';?>><?php echo $jkl["g369"];?></option>
<option value="green"<?php if ($JAK_FORM_DATA["themecolour"] == 'green') echo ' selected';?>><?php echo $jkl["g370"];?></option>
<option value="orange"<?php if ($JAK_FORM_DATA["themecolour"] == 'orange') echo ' selected';?>><?php echo $jkl["g371"];?></option>
<option value="danger"<?php if ($JAK_FORM_DATA["themecolour"] == 'danger') echo ' selected';?>><?php echo $jkl["g372"];?></option>
<option value="rose"<?php if ($JAK_FORM_DATA["themecolour"] == 'rose') echo ' selected';?>><?php echo $jkl["g373"];?></option>
<option value="white"<?php if ($JAK_FORM_DATA["themecolour"] == 'white') echo ' selected';?>><?php echo $jkl["g374"];?></option>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_menubg"><?php echo $jkl["g376"];?></label>
<select name="jak_menubg" class="selectpicker col-12" data-live-search="true">
<option value="white"<?php if ($JAK_FORM_DATA["menubg"] == 'white') echo ' selected';?>><?php echo $jkl["g374"];?></option>
<option value="black"<?php if ($JAK_FORM_DATA["menubg"] == 'black') echo ' selected';?>><?php echo $jkl["g375"];?></option>
<option value="red"<?php if ($JAK_FORM_DATA["menubg"] == 'red') echo ' selected';?>><?php echo $jkl["g372"];?></option>
</select>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary form-submit"><?php echo $jkl["g38"];?></button>
</div>
</div>
<?php if (jak_get_access("usrmanage", $jakuser->getVar("permissions"), JAK_MAIN_OP)) { ?>
<div class="card">
<div class="card-header card-header-icon card-header-danger">
<div class="card-icon">
<i class="material-icons">list_alt</i>
</div>
<h4 class="card-title "><?php echo $jkl["m9"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_depid"><?php echo $jkl["hd2"];?></label>
<select name="jak_depid[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if ($JAK_FORM_DATA["chat_dep"] == 0) { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if (in_array($z["id"], explode(',', $JAK_FORM_DATA["chat_dep"]))) echo ' selected';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depids"><?php echo $jkl["hd3"];?></label>
<select name="jak_depids[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if ($JAK_FORM_DATA["support_dep"] == 0) { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEP_SUPPORT) && is_array($JAK_DEP_SUPPORT)) foreach($JAK_DEP_SUPPORT as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if (in_array($z["id"], explode(',', $JAK_FORM_DATA["support_dep"]))) echo ' selected';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right form-submit"><?php echo $jkl["g38"];?></button>
</div>
</div>
<?php } ?>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-info">
<div class="card-icon">
<i class="material-icons">face</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd250"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_aboutme"><?php echo $jkl["hd250"];?></label>
<input type="text" name="jak_aboutme" class="form-control" value="<?php echo $JAK_FORM_DATA["aboutme"];?>">
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right form-submit"><?php echo $jkl["g38"];?></button>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-primary">
<div class="card-icon">
<i class="material-icons">insert_invitation</i>
</div>
<h4 class="card-title "><?php echo $jkl["u12"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_inv"><?php echo $jkl["u12"];?></label>
<input type="text" name="jak_inv" class="form-control" value="<?php echo $JAK_FORM_DATA["invitationmsg"];?>">
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right form-submit"><?php echo $jkl["g38"];?></button>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="material-icons">vpn_key</i>
</div>
<h4 class="card-title "><?php echo $jkl["g39"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="pass"><?php echo $jkl["u4"];?></label>
<input type="password" name="jak_password" id="pass" class="form-control" value="">
</div>
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="jak_confirm_password"><?php echo $jkl["u5"];?></label>
<input type="password" name="jak_confirm_password" class="form-control" value="">
</div>
<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>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<?php if (jak_get_access("usrmanage", $jakuser->getVar("permissions"), JAK_MAIN_OP)) { ?>
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">accessibility_new</i>
</div>
<h4 class="card-title "><?php echo $jkl["u29"];?></h4>
</div>
<div class="card-body">
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="leads"<?php if (in_array("leads", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u30"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="leads_all"<?php if (in_array("leads_all", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u30"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="off_all"<?php if (in_array("off_all", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g33"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="ochat"<?php if (in_array("ochat", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u31"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="ochat_all"<?php if (in_array("ochat_all", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u31"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="support"<?php if (in_array("support", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="faq"<?php if (in_array("faq", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd1"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="blog"<?php if (in_array("blog", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd13"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="statistic"<?php if (in_array("statistic", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u32"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="statistic_all"<?php if (in_array("statistic_all", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u32"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="files"<?php if (in_array("files", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u33"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="proactive"<?php if (in_array("proactive", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u34"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="usrmanage"<?php if (in_array("usrmanage", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u42"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="client"<?php if (in_array("client", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd14"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="billing"<?php if (in_array("billing", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd22"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="responses"<?php if (in_array("responses", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u35"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="departments"<?php if (in_array("departments", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u36"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="settings"<?php if (in_array("settings", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u37"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="answers"<?php if (in_array("answers", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u44"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="widget"<?php if (in_array("widget", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["m26"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="groupchat"<?php if (in_array("groupchat", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["m29"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="blacklist"<?php if (in_array("blacklist", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["m27"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="blocklist"<?php if (in_array("blocklist", explode(',', $JAK_FORM_DATA["permissions"]))) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g97"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<?php } ?>
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">access_alarms</i>
</div>
<h4 class="card-title "><?php echo $jkl["u17"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_alwaysnot"><?php echo $jkl["u25"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_alwaysnot" value="1"<?php if ($JAK_FORM_DATA["alwaysnot"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_alwaysnot" value="0"<?php if ($JAK_FORM_DATA["alwaysnot"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_emailnot"><?php echo $jkl["g214"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_emailnot" value="1"<?php if ($JAK_FORM_DATA["emailnot"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_emailnot" value="0"<?php if ($JAK_FORM_DATA["emailnot"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="whatsphone"><?php echo $jkl["u53"];?></label>
<input type="text" name="jak_whatsphone" id="whatsphone" class="form-control" value="<?php echo $JAK_FORM_DATA["whatsappnumber"];?>">
</div>
<?php if (JAK_TW_SID && JAK_TW_TOKEN) { ?>
<div class="form-group">
<label class="control-label" for="phone"><?php echo $jkl["u14"];?></label>
<input type="text" name="jak_phone" id="phone" class="form-control" value="<?php echo $JAK_FORM_DATA["phonenumber"];?>">
</div>
<?php } ?>
<div class="form-group">
<label class="control-label" for="pushot"><?php echo $jkl["u49"];?></label>
<input type="text" name="jak_pushot" id="pushot" class="form-control" value="<?php echo $JAK_FORM_DATA["pusho_tok"];?>">
</div>
<div class="form-group">
<label class="control-label" for="pushok"><?php echo $jkl["u50"];?></label>
<input type="text" name="jak_pushok" id="pushok" class="form-control" value="<?php echo $JAK_FORM_DATA["pusho_key"];?>">
</div>
<p><a class="btn btn-mini btn-info" href="javascript:void(0)" onclick="dNotifyNew('<?php echo addslashes(JAK_TITLE);?>', '<?php echo addslashes($jkl['u26']);?>')"><?php echo $jkl["u26"];?></a></p>
<div class="form-group">
<label class="control-label" for="jak_emailnot"><?php echo $jkl["u59"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_alwaysonline" value="1"<?php if ($JAK_FORM_DATA["alwaysonline"] == 1) echo ' checked';?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_alwaysonline" value="0"<?php if ($JAK_FORM_DATA["alwaysonline"] == 0) echo ' checked';?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<span class="help-block"><?php echo $jkl["u60"];?></span>
</div>
<h4><?php echo $jkl["u15"];?></h4>
<div id="bHoursM"></div>
<div class="clearfix"></div>
<hr>
<span class="help-block"><?php echo $jkl["u47"];?></span>
<input type="hidden" name="bhours" id="bhours" value="<?php echo $JAK_FORM_DATA["hours_array"];?>">
<p><a href="<?php echo JAK_rewrite::jakParseurl('users', 'resethours', $page2, $page3);?>" class="btn btn-sm btn-danger"><?php echo $jkl['g229'];?></a></p>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right form-submit"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+569
View File
@@ -0,0 +1,569 @@
<?php include_once 'header.php';?>
<div class="content">
<?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 } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-palette"></i> <?php echo $jkl['m32'];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<div class="form-group">
<label for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php echo $JAK_FORM_DATA["title"];?>">
</div>
<div class="form-group">
<label for="jak_lang"><?php echo $jkl["g22"];?></label>
<select name="jak_lang" class="selectpicker" data-size="4" data-live-search="true">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?>
<option value="<?php echo $lf;?>"<?php if ($JAK_FORM_DATA["lang"] == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="form-group">
<label for="chatSty"><?php echo $jkl["cw7"];?></label>
<select name="chatSty" id="chatSty" class="selectpicker" data-size="4" data-live-search="true" onchange="this.form.submit()">
<?php if (isset($chat_templates) && is_array($chat_templates)) foreach($chat_templates as $c) { ?>
<option value="<?php echo $c;?>"<?php if ($JAK_FORM_DATA["template"] == $c) { ?> selected="selected"<?php } ?>><?php echo $c;?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="department"><?php echo $jkl["g131"];?></label>
<select name="jak_depid[]" id="department" class="selectpicker" multiple="multiple" data-size="4" data-live-search="true">
<option value="0"<?php if ($JAK_FORM_DATA["depid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if (in_array($z["id"], explode(',', $JAK_FORM_DATA["depid"]))) echo ' selected';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
<small class="form-text text-muted">
<?php echo $jkl["h6"];?>
</small>
</div>
<div class="form-group">
<label for="operator"><?php echo $jkl["g130"];?></label>
<select name="jak_opid" id="operator" class="selectpicker" data-size="4" data-live-search="true">
<option value="0"<?php if ($JAK_FORM_DATA["singleopid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_OPERATORS) && is_array($JAK_OPERATORS)) foreach($JAK_OPERATORS as $o) { ?>
<option value="<?php echo $o["id"];?>"<?php if ($JAK_FORM_DATA["singleopid"] == $o["id"]) echo ' selected="selected"';?>><?php echo $o["username"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_feedback"><?php echo $jkl["stat_s12"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_feedback" value="1"<?php if ($JAK_FORM_DATA["feedback"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_feedback" value="0"<?php if ($JAK_FORM_DATA["feedback"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_hidewhenoff"><?php echo $jkl["chato"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_hidewhenoff" value="1"<?php if ($JAK_FORM_DATA["hidewhenoff"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_hidewhenoff" value="0"<?php if ($JAK_FORM_DATA["hidewhenoff"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_onlymembers"><?php echo $jkl["g346"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_onlymembers" value="1"<?php if ($JAK_FORM_DATA["onlymembers"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_onlymembers" value="0"<?php if ($JAK_FORM_DATA["onlymembers"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="redirect_active"><?php echo $jkl["g190"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="redirect_active" value="1"<?php if ($JAK_FORM_DATA["redirect_active"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="redirect_active" value="0"<?php if ($JAK_FORM_DATA["redirect_active"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_chatgpt"><?php echo $jkl["g384"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatgpt" value="1"<?php if ($JAK_FORM_DATA["chatgpt"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatgpt" value="0"<?php if ($JAK_FORM_DATA["chatgpt"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label for="jak_chatgpt_helpful"><?php echo $jkl["g386"];?></label>
<textarea name="jak_chatgpt_helpful" id="jak_chatgpt_helpful" class="form-control" rows="3"><?php echo $JAK_FORM_DATA["chatgpt_helpful"];?></textarea>
</div>
<div class="form-group">
<label for="url_red"><?php echo $jkl["g238"];?></label>
<input type="text" name="url_red" id="url_red" class="form-control" value="<?php echo $JAK_FORM_DATA["redirect_url"];?>" placeholder="https://www.yourdomain.com/contactform">
</div>
<div class="form-group">
<label for="jak_redi_contact"><?php echo $jkl["g252"];?></label>
<input type="number" name="jak_redi_contact" id="jak_redi_contact" class="form-control" min="1" max="30" step="1" value="<?php echo $JAK_FORM_DATA["redirect_after"];?>">
</div>
<div class="form-group">
<label for="jak_dsgvo"><?php echo $jkl["hd335"];?></label>
<textarea name="jak_dsgvo" id="jak_dsgvo" class="form-control" rows="3"><?php echo $JAK_FORM_DATA["dsgvo"];?></textarea>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-code"></i> <?php echo $jkl["m34"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<p><?php echo $jkl['cw8'];?> <a href="javascript:void(0)" data-clipboard-target="#widget-code" class="btn btn-primary btn-sm clipboard"><i class="fa fa-clipboard"></i></a></p>
<textarea rows="11" class="form-control" id="widget-code" readonly="readonly"><?php echo htmlentities('<!-- Live Support Widget -->
<script type="text/javascript">
(function(w, d, s, u) {
w.id = '.$page2.'; w.lang = \'\'; w.cName = \'\'; w.cEmail = \'\'; w.cMessage = \'\'; w.lcjUrl = u;
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = true; j.src = \''.BASE_URL_ORIG.'js/jaklcpchat.js\';
h.parentNode.insertBefore(j, h);
})(window, document, \'script\', \''.BASE_URL_ORIG.'\');
</script>
<div id="jaklcp-chat-container"></div>
<!-- end Live Support Widget -->');?></textarea>
<p><?php echo $jkl['g301'];?> <a href="javascript:void(0)" data-clipboard-target="#marketing-code" class="btn btn-primary btn-sm clipboard"><i class="fa fa-clipboard"></i></a></p>
<div class="alert alert-info" id="marketing-code">
<?php echo htmlentities('<a href="'.str_replace(JAK_OPERATOR_LOC."/", "", JAK_rewrite::jakParseurl('link', $page2, $JAK_FORM_DATA["lang"])).'">'.$jkl['g302'].'</a>');?>
</div>
<div class="alert alert-primary">
<?php echo htmlentities(str_replace(JAK_OPERATOR_LOC."/", "", JAK_rewrite::jakParseurl('link', $page2, $JAK_FORM_DATA["lang"])));?>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="far fa-user-circle"></i> <?php echo $jkl['cw26'];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<div class="form-group">
<label><?php echo $jkl["cw25"];?></label>
<select name="avatarset" class="selectpicker col-12" onchange="this.form.submit()">
<?php if (isset($avatar_sets) && is_array($avatar_sets)) foreach($avatar_sets as $c) { ?>
<option value="<?php echo $c;?>"<?php if ($JAK_FORM_DATA["avatarset"] == $c) { ?> selected="selected"<?php } ?>><?php echo $c;?></option>
<?php } ?>
</select>
</div>
<hr>
<?php if (isset($avatar_images) && is_array($avatar_images)) foreach($avatar_images as $i) { ?>
<img src="<?php echo BASE_URL_ORIG.str_replace("../", "", $i);?>" class="img-thumbnail img-responsive" alt="avatarset" title="<?php echo basename($i);?>" width="135px">
<?php } ?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header with-border">
<h3 class="card-title"><i class="fa fa-play"></i> <?php echo $jkl['cw'];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($btn_tpl) && is_array($btn_tpl)) { ?>
<div class="form-group">
<label for="jak_btn_tpl"><?php echo $jkl['cw5'];?></label>
<select name="jak_btn_tpl" class="selectpicker col-12" onchange="this.form.submit()">
<?php foreach($btn_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["btn_tpl"] == $v) echo " selected";?>><?php echo jak_tpl_name($v);?></option>
<?php } ?>
</select>
</div>
<input type="hidden" name="jak_btn_tpl_old" value="<?php echo $JAK_FORM_DATA["btn_tpl"];?>">
<?php } else { ?>
<input type="hidden" name="jak_btn_tpl" value="">
<?php } ?>
<hr>
<div class="row">
<div class="col-md-6">
<h4><?php echo $jkl['cw13'];?></h4>
<?php if (isset($btn_form) && !empty($btn_form)) echo $btn_form;?>
</div>
<div class="col-md-6">
<h4><?php echo $jkl['cw14'];?></h4>
<?php if (isset($btnsett["previewbtn"]) && !empty($btnsett["previewbtn"])) echo $btnsett["previewbtn"];?>
<?php if (isset($btnsett["previewbtnmobile"]) && !empty($btnsett["previewbtnmobile"])) echo '<hr>'.$btnsett["previewbtnmobile"];?>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header with-border">
<h3 class="card-title"><i class="fa fa-sign-in-alt"></i> <?php echo $jkl["cw1"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($start_tpl) && is_array($start_tpl)) { ?>
<div class="form-group">
<label for="jak_start_tpl"><?php echo $jkl['cw5'];?></label>
<select name="jak_start_tpl" class="selectpicker col-12" onchange="this.form.submit()">
<?php foreach($start_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["start_tpl"] == $v) echo " selected";?>><?php echo jak_tpl_name($v);?></option>
<?php } ?>
</select>
</div>
<input type="hidden" name="jak_start_tpl_old" value="<?php echo $JAK_FORM_DATA["start_tpl"];?>">
<?php } else { ?>
<input type="hidden" name="jak_start_tpl" value="">
<?php } ?>
<hr>
<div class="row">
<div class="col-md-6">
<h4><?php echo $jkl['cw13'];?></h4>
<?php if (isset($start_form) && !empty($start_form)) echo $start_form;?>
</div>
<div class="col-md-6">
<h4><?php echo $jkl['cw14'];?></h4>
<?php if (isset($startsett["previewchat"]) && !empty($startsett["previewchat"])) { ?>
<p><img src="<?php echo BASE_URL_ORIG;?>/lctemplate/<?php echo $JAK_FORM_DATA["template"]."/".$startsett["previewchat"];?>" class="img-thumbnail img-responsive" alt="button preview"></p>
<?php } ?>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header with-border">
<h3 class="card-title"><i class="fa fa-comments-alt"></i> <?php echo $jkl["cw2"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($chat_tpl) && is_array($chat_tpl)) { ?>
<div class="form-group">
<label for="jak_chat_tpl"><?php echo $jkl['cw5'];?></label>
<select name="jak_chat_tpl" class="selectpicker col-12" onchange="this.form.submit()">
<?php foreach($chat_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["chat_tpl"] == $v) echo " selected";?>><?php echo jak_tpl_name($v);?></option>
<?php } ?>
</select>
</div>
<input type="hidden" name="jak_chat_tpl_old" value="<?php echo $JAK_FORM_DATA["chat_tpl"];?>">
<?php } else { ?>
<input type="hidden" name="jak_chat_tpl" value="">
<?php } ?>
<hr>
<div class="row">
<div class="col-md-6">
<h4><?php echo $jkl['cw13'];?></h4>
<?php if (isset($chat_form) && !empty($chat_form)) echo $chat_form;?>
</div>
<div class="col-md-6">
<h4><?php echo $jkl['cw14'];?></h4>
<?php if (isset($chatsett["previewchat"]) && !empty($chatsett["previewchat"])) { ?>
<p><img src="<?php echo BASE_URL_ORIG;?>/lctemplate/<?php echo $JAK_FORM_DATA["template"]."/".$chatsett["previewchat"];?>" class="img-thumbnail img-responsive" alt="button preview"></p>
<?php } ?>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fab fa-wpforms"></i> <?php echo $jkl["cw6"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($contact_tpl) && is_array($contact_tpl)) { ?>
<div class="form-group">
<label for="jak_contact_tpl"><?php echo $jkl['cw5'];?></label>
<select name="jak_contact_tpl" class="selectpicker col-12" onchange="this.form.submit()">
<?php foreach($contact_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["contact_tpl"] == $v) echo " selected";?>><?php echo jak_tpl_name($v);?></option>
<?php } ?>
</select>
</div>
<input type="hidden" name="jak_contact_tpl_old" value="<?php echo $JAK_FORM_DATA["contact_tpl"];?>">
<?php } else { ?>
<input type="hidden" name="jak_contact_tpl" value="">
<?php } ?>
<hr>
<div class="row">
<div class="col-md-6">
<h4><?php echo $jkl['cw13'];?></h4>
<?php if (isset($contact_form) && !empty($contact_form)) echo $contact_form;?>
</div>
<div class="col-md-6">
<h4><?php echo $jkl['cw14'];?></h4>
<?php if (isset($contactsett["previewchat"]) && !empty($contactsett["previewchat"])) { ?>
<p><img src="<?php echo BASE_URL_ORIG;?>/lctemplate/<?php echo $JAK_FORM_DATA["template"]."/".$contactsett["previewchat"];?>" class="img-thumbnail img-responsive" alt="button preview"></p>
<?php } ?>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-id-card"></i> <?php echo $jkl["cw3"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($profile_tpl) && is_array($profile_tpl)) { ?>
<div class="form-group">
<label for="jak_profile_tpl"><?php echo $jkl['cw5'];?></label>
<select name="jak_profile_tpl" class="selectpicker col-12" onchange="this.form.submit()">
<?php foreach($profile_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["profile_tpl"] == $v) echo " selected";?>><?php echo jak_tpl_name($v);?></option>
<?php } ?>
</select>
</div>
<input type="hidden" name="jak_profile_tpl_old" value="<?php echo $JAK_FORM_DATA["profile_tpl"];?>">
<?php } else { ?>
<input type="hidden" name="jak_profile_tpl" value="">
<?php } ?>
<hr>
<div class="row">
<div class="col-md-6">
<h4><?php echo $jkl['cw13'];?></h4>
<?php if (isset($profile_form) && !empty($profile_form)) echo $profile_form;?>
</div>
<div class="col-md-6">
<h4><?php echo $jkl['cw14'];?></h4>
<?php if (isset($profilesett["previewchat"]) && !empty($profilesett["previewchat"])) { ?>
<p><img src="<?php echo BASE_URL_ORIG;?>/lctemplate/<?php echo $JAK_FORM_DATA["template"]."/".$profilesett["previewchat"];?>" class="img-thumbnail img-responsive" alt="button preview"></p>
<?php } ?>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header with-border">
<h3 class="card-title"><i class="far fa-star-half-alt"></i> <?php echo $jkl["cw4"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($feedback_tpl) && is_array($feedback_tpl)) { ?>
<div class="form-group">
<label for="jak_feedback_tpl"><?php echo $jkl['cw5'];?></label>
<select name="jak_feedback_tpl" class="selectpicker col-12" onchange="this.form.submit()">
<?php foreach($feedback_tpl as $v) { ?>
<option value="<?php echo $v;?>"<?php if ($JAK_FORM_DATA["feedback_tpl"] == $v) echo " selected";?>><?php echo jak_tpl_name($v);?></option>
<?php } ?>
</select>
</div>
<input type="hidden" name="jak_feedback_tpl_old" value="<?php echo $JAK_FORM_DATA["feedback_tpl"];?>">
<?php } else { ?>
<input type="hidden" name="jak_feedback_tpl" value="">
<?php } ?>
<hr>
<div class="row">
<div class="col-md-6">
<h4><?php echo $jkl['cw13'];?></h4>
<?php if (isset($feedback_form) && !empty($feedback_form)) echo $feedback_form;?>
</div>
<div class="col-md-6">
<h4><?php echo $jkl['cw14'];?></h4>
<?php if (isset($feedbacksett["previewchat"]) && !empty($feedbacksett["previewchat"])) { ?>
<p><img src="<?php echo BASE_URL_ORIG;?>/lctemplate/<?php echo $JAK_FORM_DATA["template"]."/".$feedbacksett["previewchat"];?>" class="img-thumbnail img-responsive" alt="button preview"></p>
<?php } ?>
</div>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
</div>
<?php include_once 'footer.php';?>
+216
View File
@@ -0,0 +1,216 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings');?>"><?php echo $jkl["hd9"];?></a>
</li>
<?php if ($jakosub['tickets'] && jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'support');?>"><?php echo $jkl["hd10"];?></a>
</li>
<?php } if ($jakosub['faq'] && jak_get_access("faq", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'faq');?>"><?php echo $jkl["hd11"];?></a>
</li>
<?php } if ($jakosub['blog'] && jak_get_access("blog", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'blog');?>"><?php echo $jkl["hd12"];?></a>
</li>
<?php } ?>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('settings', 'email');?>"><?php echo $jkl["hd119"];?></a>
</li>
<?php if ($jakosub['tickets'] && jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'phpimap');?>"><?php echo $jkl["hd43"];?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
<hr>
<?php if ($errors) { ?>
<div class="alert alert-danger">
<?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];
if (isset($errors["e3"])) echo $errors["e3"];
if (isset($errors["e4"])) echo $errors["e4"];
if (isset($errors["e5"])) echo $errors["e5"];
if (isset($errors["e6"])) echo $errors["e6"];
if (isset($errors["e7"])) echo $errors["e7"];?>
</div>
<?php } if ($success) { ?>
<div class="alert alert-success">
<?php if (isset($success["e"])) echo $success["e"];?>
</div>
<?php } ?>
<div class="row">
<div class="col-md-12">
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">email</i>
</div>
<h4 class="card-title"><?php echo $jkl["g212"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_smpt"><?php echo $jkl["g212"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_smpt" value="0"<?php if (JAK_SMTP_MAIL == 0) echo "checked";?>> <?php echo $jkl["g204"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_smpt" value="1"<?php if (JAK_SMTP_MAIL == 1) echo "checked";?>> <?php echo $jkl["g205"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_smpt" value="2"<?php if (JAK_SMTP_MAIL == 2) echo "checked";?>> <?php echo $jkl["g362"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label class="control-label" for="jak_smtpsender"><?php echo $jkl["g68"];?></label>
<input type="text" name="jak_smtpsender" class="form-control" value="<?php echo JAK_SMTP_SENDER;?>" autocomplete="off">
</div>
<div id="smtp_options"<?php if (in_array(JAK_SMTP_MAIL,array(0,2))) echo ' style="display: none"';?>>
<div class="form-group">
<label class="control-label" for="jak_host"><?php echo $jkl["g206"];?></label>
<input type="text" class="form-control" name="jak_host" value="<?php echo JAK_SMTPHOST;?>">
</div>
<div class="form-group<?php if (isset($errors["e3"])) echo " has-danger";?>">
<label class="control-label" for="jak_port"><?php echo $jkl["g207"];?></label>
<input type="text" name="jak_port" class="form-control" value="<?php echo JAK_SMTPPORT?>" placeholder="25">
</div>
<div class="form-group">
<label class="control-label" for="jak_alive"><?php echo $jkl["g208"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_alive" value="1"<?php if (JAK_SMTP_ALIVE == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_alive" value="0"<?php if (JAK_SMTP_ALIVE == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_auth"><?php echo $jkl["g209"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_auth" value="1"<?php if (JAK_SMTP_AUTH == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_auth" value="0"<?php if (JAK_SMTP_AUTH == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_prefix"><?php echo $jkl["g219"];?></label>
<input type="text" name="jak_prefix" class="form-control" value="<?php echo JAK_SMTP_PREFIX;?>" placeholder="ssl/tls/true/false">
</div>
<div class="form-group">
<label class="control-label" for="jak_smtpusername"><?php echo $jkl["g210"];?></label>
<input type="text" name="jak_smtpusername" class="form-control" value="<?php echo JAK_SMTPUSERNAME;?>" autocomplete="off">
</div>
<div class="form-group">
<label class="control-label" for="jak_smtppassword"><?php echo $jkl["g211"];?></label>
<input type="password" name="jak_smtppassword" class="form-control" value="<?php echo JAK_SMTPPASSWORD;?>" autocomplete="off">
</div>
</div>
<div id="oauth_options"<?php if (in_array(JAK_SMTP_MAIL,array(0,1))) echo ' style="display: none"';?>>
<div class="form-group">
<label class="control-label" for="jak_oauthprovider"><?php echo $jkl['g382'];?></label>
<select name="jak_oauthprovider" class="selectpicker col-12" data-live-search="true">
<option value="Google"<?php if (JAK_OAUTH_PROVIDER == "Google" ? ' selected="selected"' : '');?>>Google (Gmail)</option>
<option value="Yahoo"<?php if (JAK_OAUTH_PROVIDER == "Yahoo" ? ' selected="selected"' : '');?>>Yahoo</option>
<option value="Microsoft"<?php if (JAK_OAUTH_PROVIDER == "Microsoft" ? ' selected="selected"' : '');?>>Microsoft</option>
<option value="Azure"<?php if (JAK_OAUTH_PROVIDER == "Azure" ? ' selected="selected"' : '');?>>Azure</option>
</select>
</div>
<div class="form-group<?php if (isset($errors["e5"])) echo " has-danger";?>">
<label class="control-label" for="jak_oauthclientid"><?php echo $jkl["g363"];?></label>
<input type="text" name="jak_oauthclientid" class="form-control" value="<?php echo JAK_OAUTH_CLIENTID;?>">
</div>
<div class="form-group<?php if (isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="jak_oauthsecret"><?php echo $jkl["g364"];?></label>
<input type="password" name="jak_oauthsecret" class="form-control" value="<?php echo JAK_OAUTH_SECRET;?>" autocomplete="off">
</div>
<div class="form-group<?php if (isset($errors["e7"])) echo " has-danger";?>">
<label class="control-label" for="jak_oauthtenantid"><?php echo $jkl["g380"];?></label>
<input type="password" name="jak_oauthtenantid" class="form-control" value="<?php echo JAK_OAUTH_TENANTID;?>" autocomplete="off">
</div>
<div class="form-group">
<label class="control-label" for="jak_oauthrefresh"><?php echo $jkl["g365"];?></label>
<input type="password" name="jak_oauthrefresh" class="form-control" value="<?php echo JAK_OAUTH_REFRESH;?>" readonly>
</div>
</div>
<div class="form-group">
<button type="submit" name="refreshToken" class="btn btn-danger"><?php echo $jkl["g381"];?></button>
<button type="submit" name="testMail" class="btn btn-success" id="sendTM"><i id="loader" class="fa fa-spinner fa-pulse"></i> <?php echo $jkl["g216"];?></button>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
</div>
</div>
<?php include_once 'footer.php';?>
+115
View File
@@ -0,0 +1,115 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('billing');?>"><?php echo $jkl["hd57"];?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('billing', 'packages');?>"><?php echo $jkl["hd60"];?></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('billing', 'products');?>"><?php echo $jkl["hd296"];?></a>
</li>
</ul>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fal fa-list"></i> <?php echo $jkl["hd297"];?></h3>
</div><!-- /.box-header -->
<form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card-body">
<?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 class="form-group<?php if (isset($errors["e"])) echo " has-danger";?>">
<label for="envato_item_id"><?php echo $jkl["hd298"];?></label>
<input type="text" name="envato_item_id" id="envato_item_id" class="form-control" value="<?php if (isset($_REQUEST["envato_item_id"])) echo $_REQUEST["envato_item_id"];?>">
</div>
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label for="product_name"><?php echo $jkl["hd299"];?></label>
<input type="text" name="product_name" id="product_name" class="form-control" value="<?php if (isset($_REQUEST["product_name"])) echo $_REQUEST["product_name"];?>">
</div>
<div class="form-group">
<label for="description"><?php echo $jkl["hd300"];?></label>
<textarea name="description" class="form-control" rows="3"><?php if (isset($_REQUEST["description"])) echo $_REQUEST["description"];?></textarea>
</div>
</div>
<div class="card-footer">
<button type="submit" name="insert_env_product" class="btn btn-primary"><?php echo $jkl["g38"];?></button>
</div>
</form>
</div>
</div>
<div class="col-md-8">
<div class="card">
<div class="card-header">
<h3 class="card-title"><i class="fa fa-list-alt"></i> <?php echo $jkl["hd296"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php if (isset($PRODUCTS_ALL) && is_array($PRODUCTS_ALL) && !empty($PRODUCTS_ALL)) { ?>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["hd299"];?></th>
<th><?php echo $jkl["hd298"];?></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
<th><?php echo $jkl["hd299"];?></th>
<th><?php echo $jkl["hd298"];?></th>
<th></th>
<th></th>
<th></th>
</tr>
</tfoot>
<tbody>
<?php foreach($PRODUCTS_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td><a href="<?php echo JAK_rewrite::jakParseurl('billing', 'products', 'edit', $v["id"]);?>"><?php echo $v["product_name"];?></a></td>
<td><?php echo $v["envato_item_id"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('billing', 'products', 'lock', $v["id"]);?>"><i class="fa fa-<?php if ($v["active"] == '1') { ?>check<?php } else { ?>lock<?php } ?>"></i></a></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('billing', 'products', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('billing', 'products', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash-alt"></i></a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php } else { ?>
<div class="alert alert-info">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+305
View File
@@ -0,0 +1,305 @@
<?php include_once 'header.php';?>
<?php if (JAK_HOLIDAY_MODE != 0) { ?>
<div class="alert alert-danger"><i class="fa fa-exclamation-triangle"></i> <?php echo $jkl["g303"];?> (<?php echo (JAK_HOLIDAY_MODE == 1 ? $jkl["g1"] : $jkl["g305"]);?>)</div>
<?php } ?>
<!-- Link to Apps -->
<?php echo $sett["appboxes"];?>
<!-- end Link to Apps -->
<?php if (!$jakuser->getVar("hours_array")) { ?>
<div class="row">
<div class="col-md-12">
<div class="alert alert-rose">
<p class="mb-0"><?php $trans = array("{{clientprofile}}" => JAK_rewrite::jakParseurl('users','edit',JAK_USERID));
echo strtr($sett["businesshours"], $trans);?></p>
</div>
</div>
</div>
<!-- Let's get the client up and running -->
<?php } if (isset($opmain) && !empty($opmain)) { if (strtotime($opmain["paidtill"]) < time()) { ?>
<div class="alert alert-danger" id="expiredmsg"><?php echo $sett["expiredmsgdash"];?></div>
<?php } else { if (strtotime($opmain["trial"]) > time()) { ?>
<div class="row" id="trialmsg">
<div class="col-md-12">
<div class="alert alert-info">
<p class="mb-0">
<?php
$trans = array("{{trialdate}}" => JAK_base::jakTimesince($opmain["trial"], JAK_DATEFORMAT, JAK_TIMEFORMAT));
echo strtr($sett["trialdate"], $trans);
?>
</p>
</div>
</div>
</div>
<?php } } if (!empty($sett["heldashpmsg"])) {
$trans = array("{{paidtill}}" => ($jakosub["paidtill"] != "0000-00-00 00:00:00" ? JAK_base::jakTimesince($jakosub["paidtill"], JAK_DATEFORMAT, JAK_TIMEFORMAT) : 'expired'), "{{clientprofile}}" => JAK_rewrite::jakParseurl('users','edit',JAK_USERID), "{{clientsettings}}" => JAK_rewrite::jakParseurl('settings'), "{{clientwidget}}" => JAK_rewrite::jakParseurl('widget'), "{{clientresponse}}" => JAK_rewrite::jakParseurl('response'), "{{clientproactive}}" => JAK_rewrite::jakParseurl('proactive'), "{{clientbot}}" => JAK_rewrite::jakParseurl('bot'));
echo strtr($sett["heldashpmsg"], $trans);
}
?>
<div class="header text-center">
<h3 class="title"><?php echo $sett["purchasedtitle"];?></h3>
<p class="category">
<a href="<?php echo JAK_rewrite::jakParseurl('extend');?>"><?php echo $sett["packageseltitle"];?></a>
</p>
</div>
<?php if (isset($subscriptions) && !empty($subscriptions)) { ?>
<!-- Purchased subscriptions -->
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th><?php echo $jkl['g16'];?></th>
<th><?php echo $jkl["i36"];?></th>
<th><?php echo $jkl["i37"];?></th>
<th><?php echo $jkl["i38"];?></th>
<th><?php echo $jkl["i39"];?></th>
<th><?php echo $jkl["i40"];?></th>
<th><?php echo $jkl["g14"];?></th>
<th><?php echo $jkl['g101'];?></th>
<th></th>
</tr>
</thead>
<?php $subused = array(); foreach($subscriptions as $s) { ?>
<tr>
<td><?php echo ($s["title"] ? $s["title"] : $s["paidfor"]);?></td>
<td><?php echo $s["amount"].' '.$s["currency"];?></td>
<td><?php echo $s["paidhow"];?></td>
<td><?php echo ($s["subscribed"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>');?></td>
<td><?php echo ($s["paidwhen"] ? JAK_base::jakTimesince($s["paidwhen"], "d.m.Y", " g:i a") : "-");?></td>
<td><?php echo ($s["paidtill"] ? JAK_base::jakTimesince($s["paidtill"], "d.m.Y", " g:i a") : "-");?></td>
<td><?php echo ($s["success"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>');?></td>
<td><?php echo ($s["active"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>');?></td>
<td><?php echo ($s["subscribed"] && $s["active"] ? '<a href="'.JAK_rewrite::jakParseurl('extend', 'withdrawal', $s["id"], JAK_USERID).'" class="btn btn-sm btn-danger">'.$jkl['g280'].'</a>' : '');?></td>
</tr>
<?php $subused[] = $s["packageid"]; } ?>
</table>
</div>
</div>
</div>
<?php } if (isset($packages) && !empty($packages)) { ?>
<div class="header text-center">
<h3 class="title"><?php echo $sett["packageseltitle"];?></h3>
<p class="category">
<span class="badge badge-light text-dark"><?php echo $jkl['i46'];?></span> <span class="badge badge-success text-dark"><?php echo $jkl['i47'];?></span> <span class="badge badge-dark"><?php echo $jkl['i48'];?></span>
</p>
</div>
<form method="post" id="buypackage" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="row">
<?php foreach ($packages as $p) { ?>
<div class="col-md-4 mb-3 d-flex align-items-stretch">
<div class="card<?php if ($p["multipleuse"] == 0 && !empty($p["sid"])) { echo ' text-white bg-dark'; } elseif ($p["id"] == $jakosub['packageid']) { echo ' text-dark bg-success';}?>">
<?php if (!empty($p["previmg"])) { ?><img class="card-img-top img-fluid" src="<?php echo $p["previmg"];?>" alt="<?php echo $p["title"];?>"><?php } ?>
<div class="card-body">
<h4 class="card-title text-dark"><?php echo $p["title"];?></h4>
<p class="card-text"><?php echo $p["description"];?></p>
<p class="card-text"><?php echo sprintf($jkl['i17'], $p["operators"]);?><br>
<?php echo sprintf($jkl['i60'], $p["phpimap"]);?><br>
<?php echo sprintf($jkl['i61'], $p["clients"]);?><br>
<?php echo sprintf($jkl['i18'], $p["departments"]);?><br>
<?php echo sprintf($jkl['i73'], $p["chatwidgets"]);?><br>
<?php echo sprintf($jkl['i57'], ($p["tickets"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>'));?><br>
<?php echo sprintf($jkl['i58'], ($p["blog"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>'));?><br>
<?php echo sprintf($jkl['i59'], ($p["faq"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>'));?><br>
<?php echo sprintf($jkl['i19'], ($p["files"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>'));?><br>
<?php echo sprintf($jkl['i20'], ($p["copyfree"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>'));?><br>
<?php echo sprintf($jkl['i21'], $p["activechats"]);?><br>
<?php echo sprintf($jkl['i42'], $p["chathistory"]);?><br>
<?php echo ($p["islc3"] ? sprintf($jkl['i22'], '<i class="fa fa-check"></i>').'<br>' : '');?>
<?php echo ($p["ishd3"] ? sprintf($jkl['i23'], '<i class="fa fa-check"></i>').'<br>' : '');?>
<strong><?php echo sprintf($jkl['i24'], $p["validfor"]);?></strong><br>
<?php echo sprintf($jkl['i25'], ($p["multipleuse"] ? '<i class="fa fa-check"></i>' : '<i class="fa fa-times"></i>'));?><?php if ($p["isfree"] == 0) { ?><br>
<?php echo sprintf($jkl['i26'], '<input type="checkbox" name="subscribe" id="subscribe-'.$p["id"].'" value="1">');?><?php } ?></p>
<h5><?php echo sprintf($jkl['i31'], '<span id="price-'.$p["id"].'">'.$p["amount"].'</span> '.$p["currency"]);?></h5>
<?php if ($p["isfree"] == 0) { ?>
<div class="form-group">
<label for="coupon"><?php echo $jkl['i27'];?></label>
<div class="input-group">
<input type="text" class="form-control" id="coupon-<?php echo $p["id"];?>" autocomplete="false">
<span class="input-group-btn">
<button class="btn btn-default coupon-check" data-cid="<?php echo $p["id"];?>" data-amount="<?php echo $p["amount"];?>" type="button"><i class="jak-loadbtn"></i> <?php echo $jkl['i30'];?></button>
</span>
</div>
<small id="coupon-help-<?php echo $p["id"];?>" class="form-text"></small>
</div>
<?php } ?>
</div>
<div class="card-footer text-center">
<?php if ($p["multipleuse"] == 0 && !empty($subused) && in_array($p["id"], $subused)) { ?>
<a href="javascript:void(0)" class="btn btn-danger"><?php echo $jkl['i41'];?></a>
<?php } elseif ($p["isfree"] == 1) { ?>
<a href="javascript:void(0)" class="btn btn-primary paynow" data-packageid="<?php echo $p["id"];?>" data-paymentid="0" data-amount="0" data-currency="<?php echo $sett["currency"];?>" data-paidhow="freeaccess" data-payfor="paymember"><i class="jak-loadbtn"></i> <i class="fa fa-gift"></i> <?php echo $jkl["g333"];?></a>
<?php } elseif (isset($paygate) && !empty($paygate)) { foreach($paygate as $pg) { if ($pg["packageid"] == $p["id"]) { ?>
<a <?php echo ($pg["paygateid"] == "bank" ? 'data-toggle="modal" href="'.JAK_rewrite::jakParseurl('extend', 'bank', $pg["id"]).'" data-target="#jakModal" class="btn btn-primary"' : 'href="javascript:void(0)" class="btn btn-primary paynow"');?> data-packageid="<?php echo $p["id"];?>" data-paymentid="<?php echo $pg["id"];?>" data-amount="<?php echo $pg["ccamount"];?>" data-currency="<?php echo $pg["pcurrency"];?>" data-paidhow="<?php echo $pg["paygateid"];?>" data-ccid="<?php echo $pg["ccid"];?>" data-payfor="paymember"><i class="jak-loadbtn"></i> <?php echo $pg["title"];?> <?php echo ($pg["pcurrency"] != $pg["currency"] ? '('.$pg["ccamount"].' '.$pg["pcurrency"].')' : '');?></a>
<?php } } } ?>
<input type="hidden" id="discount-<?php echo $p["id"];?>" value="0">
</div>
</div>
</div>
<?php } } ?>
</div>
<input type="hidden" name="pgid" id="pgid">
<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="check" id="check">
<input type="hidden" name="subscribe" id="subscribe" value="0">
</form>
<?php } if (!empty($sett["addops"])) { ?>
<!-- Additional Operator Accounts -->
<form method="post" id="buyop" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="header text-center">
<h3 class="title"><?php echo $sett["addoptitle"];?></h3>
<p class="category">
<?php echo $sett["addopsmsg"];?>
</p>
</div>
<div class="row">
<div class="col-3">
<select name="newops" id="newops" class="col-12 selectpicker" title="<?php echo $sett["addoptitle"];?>">
<?php if (isset($JAK_USER_ALL) && count($JAK_USER_ALL) < 5) { ?>
<option value="1" data-price="<?php echo $sett["addops"];?>">1 Operator (<?php echo $sett["addops"].' '.$sett["currency"];?> per Month)</option>
<?php } if (isset($JAK_USER_ALL) && count($JAK_USER_ALL) < 4) { ?>
<option value="2" data-price="<?php echo 2*$sett["addops"];?>">2 Operators (<?php echo 2*$sett["addops"].' '.$sett["currency"];?> per Month)</option>
<?php } if (isset($JAK_USER_ALL) && count($JAK_USER_ALL) < 3) { ?>
<option value="3" data-price="<?php echo 3*$sett["addops"];?>">3 Operators (<?php echo 3*$sett["addops"].' '.$sett["currency"];?> per Month)</option>
<?php } if (isset($JAK_USER_ALL) && count($JAK_USER_ALL) < 2) { ?>
<option value="4" data-price="<?php echo 4*$sett["addops"];?>">4 Operators (<?php echo 4*$sett["addops"].' '.$sett["currency"];?> per Month)</option>
<?php } if (isset($JAK_USER_ALL) && count($JAK_USER_ALL) < 1) { ?>
<option value="5" data-price="<?php echo 5*$sett["addops"];?>">5 Operators (<?php echo 5*$sett["addops"].' '.$sett["currency"];?> per Month)</option>
<?php } ?>
</select>
</div>
<div class="col-md-9">
<?php if (isset($sett["stripe_publish_key"]) && !empty($sett["stripe_publish_key"])) { ?>
<a href="javascript:void(0)" class="btn btn-success paynowop" data-paidhow="stripe" data-payfor="payop"><i class="jak-loadbtn"></i> <i class="fab fa-cc-stripe"></i> Stripe</a>
<?php }
if (isset($sett["paypal_client"]) && !empty($sett["paypal_client"])) { ?>
<a href="javascript:void(0)" class="btn btn-success paynowop" data-paidhow="paypal" data-payfor="payop"><i class="jak-loadbtn"></i> <i class="fab fa-paypal"></i> Paypal</a>
<?php }
if (isset($sett["yookassa_id"]) && !empty($sett["yookassa_id"])) { ?>
<a href="javascript:void(0)" class="btn btn-success paynowop" data-paidhow="yookassa" data-payfor="payop"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> YooKassa</a>
<?php }
if (isset($sett["paystack_secret"]) && !empty($sett["paystack_secret"])) { ?>
<a href="javascript:void(0)" class="btn btn-success paynowop" data-paidhow="paystack" data-payfor="payop"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> Paystack</a>
<?php }
if (isset($sett["twoco"]) && !empty($sett["twoco"])) { ?>
<a href="javascript:void(0)" class="btn btn-success paynowop" data-paidhow="authorize.net" data-payfor="payop"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> Authorize.net</a>
<?php }
if (isset($sett["authorize_id"]) && !empty($sett["authorize_id"])) { ?>
<a href="javascript:void(0)" class="btn btn-success paynowop" data-paidhow="2checkout" data-payfor="payop"><i class="jak-loadbtn"></i> <i class="fas fa-credit-card-front"></i> Verifone (2Checkout)</a>
<?php } ?>
</div>
</div>
<input type="hidden" name="paidhowop" id="paidhowop">
<input type="hidden" name="check" id="checkop">
<input type="hidden" name="opcount" id="opcount">
</form>
<!-- Additional Operator Accounts -->
<?php if ($jakosub['extraoperators'] > 0 && isset($JAK_USER_ALL) && empty($JAK_USER_ALL)) { ?>
<div class="alert alert-info"><?php echo sprintf($jkl['hd343'], JAK_rewrite::jakParseurl('users', 'new'));?></div>
<?php } elseif (isset($JAK_USER_ALL) && !empty($JAK_USER_ALL) && is_array($JAK_USER_ALL)) { ?>
<form method="post" id="buyopext" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th><?php echo $jkl["u"];?></th>
<th><?php echo $jkl["u1"];?></th>
<th><?php echo $jkl["u2"];?></th>
<th><?php echo $jkl['g47'];?></th>
<th>Expires</th>
<th>Extend</th>
</tr>
</thead>
<?php foreach($JAK_USER_ALL as $v) { ?>
<tr id="opid<?php echo $v["id"];?>"<?php if ($v["validtill"] < $JAK_CURRENT_DATE) echo ' class="table-danger"';?>>
<td><?php echo $v["name"];?></td>
<td><?php echo $v["email"];?></td>
<td><?php echo $v["username"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('users', 'edit', $v["id"], $v["opid"]);?>"><i class="fa fa-pencil"></i></a></td>
<td id="opexpire<?php echo $v["id"];?>"><?php echo JAK_base::jakTimesince($v["validtill"], $sett['dateformat'], $sett['timeformat']);?></td>
<td><div class="input-group"><select name="extop" id="extop" class="form-control form-control-sm"><?php for ($i=1; $i < 13; $i++) { ?>
<option value="<?php echo $i;?>" data-price="<?php echo $i*$sett["addops"];?>" data-opid="<?php echo $v["id"];?>"><?php echo sprintf($jkl['hd68'], $i)?> (<?php echo $i*$sett["addops"].' '.$sett["currency"];?>)</option>
<?php } ?></select>
<?php if (isset($sett["stripe_publish_key"]) && !empty($sett["stripe_publish_key"])) { ?>
<span class="input-group-btn">
<a href="javascript:void(0)" class="btn btn-info btn-sm paynowopextend" data-paidhow="stripe" data-payfor="opextend"><i class="jak-loadbtn"></i> <i class="fab fa-cc-stripe"></i> Stripe</a>
</span>
<?php }
if (isset($sett["paypal_client"]) && !empty($sett["paypal_client"])) { ?>
<span class="input-group-btn">
<a href="javascript:void(0)" class="btn btn-info btn-sm paynowopextend" data-paidhow="paypal" data-payfor="opextend"><i class="jak-loadbtn"></i> <i class="fab fa-paypal"></i> Paypal</a>
</span>
<?php }
if (isset($sett["yookassa_id"]) && !empty($sett["yookassa_id"])) { ?>
<span class="input-group-btn">
<a href="javascript:void(0)" class="btn btn-info btn-sm paynowopextend" data-paidhow="yookassa" data-payfor="opextend"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> YooKassa</a>
</span>
<?php }
if (isset($sett["paystack_secret"]) && !empty($sett["paystack_secret"])) { ?>
<span class="input-group-btn">
<a href="javascript:void(0)" class="btn btn-info btn-sm paynowopextend" data-paidhow="paystack" data-payfor="opextend"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> Paystack</a>
</span>
<?php }
if (isset($sett["twoco"]) && !empty($sett["twoco"])) { ?>
<span class="input-group-btn">
<a href="javascript:void(0)" class="btn btn-info btn-sm paynowopextend" data-paidhow="authorize.net" data-payfor="opextend"><i class="jak-loadbtn"></i> <i class="fa fa-credit-card"></i> Authorize.net</a>
</span>
<?php }
if (isset($sett["authorize_id"]) && !empty($sett["authorize_id"])) { ?>
<span class="input-group-btn">
<a href="javascript:void(0)" class="btn btn-info btn-sm paynowopextend" data-paidhow="2checkout" data-payfor="opextend"><i class="jak-loadbtn"></i> <i class="fas fa-credit-card-front"></i> Verifone (2Checkout)</a>
</span>
<?php } ?>
</span></div></td>
</tr>
<?php } ?>
</table>
</div>
<input type="hidden" name="paidhowopext" id="paidhowopext">
<input type="hidden" name="check" id="checkopext">
<input type="hidden" name="opamountext" id="opamountext">
<input type="hidden" name="opidext" id="opidext">
</form>
<?php } else { ?>
<hr>
<div class="alert alert-rose"><?php echo $sett["moreopmsg"];?></div>
<?php } ?>
<?php echo $sett["opwarnmsg"];?>
<?php } ?>
<?php include_once 'footer.php';?>
+74
View File
@@ -0,0 +1,74 @@
<?php include_once 'header.php';?>
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-md-2">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">assignment</i>
</div>
<p class="card-category"><?php echo $jkl["hd23"];?></p>
<h3 class="card-title"><?php echo $totalAll;?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
</div>
<?php if (!$faqaccess) { ?>
<div class="alert alert-danger"><?php echo $jkl['i13'];?></div>
<?php } else { ?>
<p><a class="btn btn-primary" href="<?php echo JAK_rewrite::jakParseurl('faq', 'new');?>"><?php echo $jkl["hd27"];?></a></p>
<?php if (isset($totalAll) && $totalAll != 0) { ?>
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">textsms</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd1"];?></h4>
</div>
<div class="card-body">
<?php if (JAK_SUPERADMINACCESS) { ?>
<p class="pull-right">
<button class="btn btn-default btn-sm btn-confirm" data-action="status" data-title="<?php echo addslashes($jkl["hd25"]);?>" data-text="<?php echo addslashes($jkl["hd26"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="material-icons">check</i> / <i class="material-icons">clear</i></button> <button class="btn btn-danger btn-sm btn-confirm" data-action="delete" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></button>
</p>
<div class="clearfix"></div>
<?php } ?>
<table id="dynamic-data" class="table table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>#</th>
<th><input type="checkbox" id="jak_delete_all"></th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g22"];?></th>
<th><?php echo $jkl["hd24"];?></th>
<th><?php echo $jkl["g102"];?></th>
<th><?php echo $jkl["g101"];?></th>
<th><?php echo $jkl["g13"];?></th>
</tr>
</thead>
</table>
</div>
</div>
<input type="hidden" name="action" id="action">
</form>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } } ?>
<?php include_once 'footer.php';?>
+148
View File
@@ -0,0 +1,148 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings');?>"><?php echo $jkl["hd9"];?></a>
</li>
<?php if ($jakosub['tickets'] && jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'support');?>"><?php echo $jkl["hd10"];?></a>
</li>
<?php } if ($jakosub['faq'] && jak_get_access("faq", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link active" href="<?php echo JAK_rewrite::jakParseurl('settings', 'faq');?>"><?php echo $jkl["hd11"];?></a>
</li>
<?php } if ($jakosub['blog'] && jak_get_access("blog", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'blog');?>"><?php echo $jkl["hd12"];?></a>
</li>
<?php } ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'email');?>"><?php echo $jkl["hd119"];?></a>
</li>
<?php if ($jakosub['tickets'] && jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('settings', 'phpimap');?>"><?php echo $jkl["hd43"];?></a>
</li>
<?php } ?>
</ul>
</div>
</div>
<hr>
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">help</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd11"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_faq"><?php echo $jkl["hd111"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_faq" value="1"<?php if (JAK_FAQ_A == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_faq" value="0"<?php if (JAK_FAQ_A == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_faq_home"><?php echo $jkl["hd109"];?></label>
<select name="jak_faq_home" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (JAK_FAQ_HOME == 0) echo ' selected';?>><?php echo $jkl["g304"];?></option>
<?php for ($i = 1; $i < 13; $i++) {
if ($i == JAK_FAQ_HOME) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div>
<!-- <div class="form-group">
<label class="control-label" for="jak_faq_footer"><?php echo $jkl["hd110"];?></label>
<select name="jak_faq_footer" class="selectpicker col-12" data-live-search="true">
<option value="0"<?php if (JAK_TICKET_LIMIT == 0) echo ' selected';?>><?php echo $jkl["hd100"];?></option>
<option value="0"<?php if (JAK_FAQ_FOOTER == 0) echo ' selected';?>><?php echo $jkl["g304"];?></option>
<?php for ($i = 1; $i < 11; $i++) {
if ($i == JAK_FAQ_FOOTER) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div> -->
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-primary">
<div class="card-icon">
<i class="material-icons">view_array</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd261"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_blog_page"><?php echo $jkl["hd263"];?></label>
<select name="jak_faq_page" class="selectpicker col-12" data-live-search="true">
<?php for ($i = 1; $i < 20; $i++) {
if ($i == JAK_FAQ_PAGE) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_blog_pagination"><?php echo $jkl["hd261"];?></label>
<select name="jak_faq_pagination" class="selectpicker col-12" data-live-search="true">
<?php for ($i = 5; $i < 20; $i++) {
if ($i == JAK_FAQ_PAGINATION) {
echo '<option value="'.$i.'" selected>'.$i.'</option>';
} else {
echo '<option value="'.$i.'">'.$i.'</option>';
}
} ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+109
View File
@@ -0,0 +1,109 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-9">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">storage</i>
</div>
<h4 class="card-title "><?php echo $jkl["g51"];?></h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g53"];?></th>
<th><?php echo $jkl["g52"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<?php if (isset($FILES_ALL) && is_array($FILES_ALL)) foreach($FILES_ALL as $v) { ?>
<tr>
<td><?php echo $v["id"];?></td>
<td class="title"><a href="<?php echo JAK_rewrite::jakParseurl('files', 'edit', $v["id"]);?>"><?php echo $v["name"];?></a></td>
<td class="desc"><?php echo $v["description"];?></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('files', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('files', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e32"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></a></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g50"];?></h4>
</div>
<div class="card-body">
<?php if (!empty($jakosub) && $jakosub['trial']) { ?>
<div class="alert alert-info"><?php echo $jkl['i12'];?></div>
<?php } elseif (!empty($jakosub) && !$jakosub['trial'] && !$jakosub['files']) { ?>
<div class="alert alert-danger"><?php echo $jkl['i13'];?></div>
<?php } else { ?>
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];?></div>
<?php } ?>
<form role="form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="form-group text-center">
<div class="fileinput fileinput-new text-center" data-provides="fileinput">
<div class="fileinput-new thumbnail">
<img src="<?php echo BASE_URL;?>img/image_placeholder.jpg" alt="placeholder">
</div>
<div class="fileinput-preview fileinput-exists thumbnail"></div>
<div>
<span class="btn btn-rose btn-round btn-file">
<span class="fileinput-new"><?php echo $jkl["g9"];?></span>
<span class="fileinput-exists"><?php echo $jkl['i71'];?></span>
<input type="file" name="uploadedfile" id="file" />
</span>
<a href="javascript:void(0)" class="btn btn-danger btn-round fileinput-exists" data-dismiss="fileinput"><i class="fa fa-times"></i> <?php echo $jkl['i72'];?></a>
</div>
</div>
<small id="emailHelp" class="form-text text-muted"><?php echo JAK_ALLOWEDO_FILES;?></small>
</div>
<div class="form-group">
<label class="control-label" for="name"><?php echo $jkl["g53"];?></label>
<input type="text" name="name" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" value="<?php if (isset($_POST["name"])) echo $_POST["name"];?>">
</div>
<div class="form-group">
<label class="control-label" for="description"><?php echo $jkl["g52"];?></label>
<textarea name="description" class="form-control" rows="7"><?php if (isset($_POST["description"])) echo $_POST["description"];?></textarea>
</div>
<div class="form-actions">
<button type="submit" name="insert_response" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
<input type="hidden" name="max_file_size" value="10000000">
</form>
<?php } ?>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+265
View File
@@ -0,0 +1,265 @@
<?php if (JAK_USERID) { ?>
</div>
</div>
<footer class="footer">
<div class="container-fluid">
<nav class="float-left">
<ul>
<?php if (jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li>
<a href="<?php echo JAK_rewrite::jakParseurl('support');?>">
<?php echo $jkl["hd"];?>
</a>
</li>
<?php } if (jak_get_access("leads", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li>
<a href="<?php echo JAK_rewrite::jakParseurl('leads');?>">
<?php echo $jkl["m1"];?>
</a>
</li>
<?php } if (jak_get_access("off_all", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li>
<a href="<?php echo JAK_rewrite::jakParseurl('contacts');?>">
<?php echo $jkl["m22"];?>
</a>
</li>
<?php } ?>
<li>
<a href="<?php echo JAK_rewrite::jakParseurl('tickets')?>">
<?php echo $jkl["m31"]?>
</a>
</li>
</ul>
</nav>
<div class="copyright float-right">
&copy;
<?php echo DATE("Y");?>, made with <i class="material-icons">favorite</i> by
<a href="https://jakweb.ch/cloud-desk-3" target="_blank">JAKWEB</a>.
</div>
</div>
</footer>
</div>
</div>
<?php } else { ?>
<footer class="footer">
<div class="container">
<nav class="float-left">
<ul>
<li>
<a href="<?php echo SIGN_UP_URL;?>">SignUp</a>
</li>
<li>
<a href="<?php echo SIGN_UP_URL;?>">
About Us
</a>
</li>
<li>
<a href="<?php echo SIGN_UP_URL;?>">
FAQ
</a>
</li>
<li>
<a href="<?php echo SIGN_UP_URL;?>">
Pricing
</a>
</li>
</ul>
</nav>
<div class="copyright float-right">
<a href="https://jakweb.ch/cloud-desk-3">Made with <i class="material-icons">favorite</i> by Cloud Desk 3</a>
</div>
</div>
</footer>
</div>
</div>
<?php } if (JAK_USERID) { ?>
<!-- Modal -->
<div id="jakModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="userModal" aria-hidden="true"><div class="modal-dialog modal-lg"><div class="modal-content"></div></div></div><!-- /.modal -->
<!-- New Pro Active Invitation -->
<div id="proActiveModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="proActiveModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title"><?php echo $jkl["u12"];?></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<input type="text" name="proactivemsg" id="proactivemsg" class="form-control" value="<?php echo $jakuser->getVar("invitationmsg"); ?>">
<input type="hidden" name="proactiveuid" id="proactiveuid">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $jkl["g103"];?></button>
<button class="btn btn-primary" onclick="sendInvitation();"><?php echo $jkl["g4"];?></button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<?php if ($page == "") { ?>
<!-- Calendar Modal -->
<div class="modal fade" id="calModal" tabindex="-1" role="dialog" aria-labelledby="calModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="calModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form method="post" class="jak_form" action="<?php echo BASE_URL;?>ajax/calendar.php">
<div class="row">
<div class="col-md-6">
<div class="form-group bmd-form-group">
<label for="cal-start" class="label-control"><?php echo $jkl['hd243'];?></label>
<input type="text" class="form-control datetimepicker" id="cal-start" name="cal-start">
</div>
</div>
<div class="col-md-6">
<div class="form-group bmd-form-group">
<label for="cal-end" class="label-control"><?php echo $jkl['hd244'];?></label>
<input type="text" class="form-control datetimepicker" id="cal-end" name="cal-end">
</div>
</div>
</div>
<div class="form-group bmd-form-group">
<label for="cal-title" class="label-control"><?php echo $jkl['g16'];?></label>
<input type="text" class="form-control" id="cal-title" name="cal-title">
</div>
<div class="form-group bmd-form-group">
<label for="cal-content" class="label-control"><?php echo $jkl['g321'];?></label>
<textarea class="form-control" id="cal-content" rows="5" name="cal-content"></textarea>
</div>
<div class="form-group bmd-form-group">
<select name="cal-color" class="selectpicker col-12" title="<?php echo $jkl['cw12'];?>" id="color">
<option style="color:#0071c5;" value="#0071c5">&#9724; Blue</option>
<option style="color:#008000;" value="#008000">&#9724; Green</option>
<option style="color:#FFD700;" value="#FFD700">&#9724; Yellow</option>
<option style="color:#FF8C00;" value="#FF8C00">&#9724; Orange</option>
<option style="color:#FF0000;" value="#FF0000">&#9724; Red</option>
<option style="color:#000000;" value="#000000">&#9724; Black</option>
</select>
</div>
<div class="form-check" id="cal-delete">
<label class="form-check-label">
<input type="checkbox" class="form-check-input" name="cal-delete" value="1"> <?php echo $jkl['g48'];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="modal-footer">
<div class="text-left">
<button class="btn btn-default" data-dismiss="modal"><?php echo $jkl['g180'];?></button>
</div>
<button type="submit" class="btn btn-primary"><?php echo $jkl['g38'];?></button>
</div>
<input type="hidden" name="cal-id" id="cal-id">
<input type="hidden" name="cal-action" id="cal-action">
</form>
</div>
</div>
</div>
<?php } ?>
<!-- Modal FileManager -->
<div id="jakFM" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="userModal" aria-hidden="true"><div class="modal-dialog modal-xl"><div class="modal-content"><iframe src="<?php echo BASE_URL_ORIG;?>js/editor/filemanager/dialog.php?type=1&amp;lang=en_EN&amp;field_id=previmg" height="600" frameborder="0"></iframe></div></div></div><!-- /.modal -->
<?php } ?>
<script src="<?php echo BASE_URL_ORIG;?>js/jquery.js?=<?php echo JAK_UPDATED;?>"></script>
<script src="<?php echo BASE_URL;?>js/material-design.js?=<?php echo JAK_UPDATED;?>"></script>
<script src="<?php echo BASE_URL;?>js/combined.min.js"></script>
<!-- Include a polyfill for ES6 Promises (optional) for IE11, UC Browser and Android browser support SweetAlert -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<!-- Run the show -->
<script src="<?php echo BASE_URL;?>js/admin.js?=<?php echo JAK_UPDATED;?>"></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_USERID) { ?>
<script src="<?php echo BASE_URL;?>js/client.ajax.js"></script>
<script>
ls.usrAvailable = <?php echo $jakuser->getVar("available");?>;
ls.ls_ringing = "<?php echo $jakuser->getVar("ringing");?>";
ls.opid = <?php echo $jakuser->getVar("id");?>;
ls.oname = '<?php echo stripcslashes($jakuser->getVar("username"));?>';
// Push Notifications
ls.pushnotify = <?php echo $jakuser->getVar("push_notifications");?>;
// sound
ls.muted = <?php echo $jakuser->getVar("sound");?>;
// Chat latency
clatency = <?php echo $jakuser->getVar("chat_latency");?>;
$("#jakModal").on("show.bs.modal", function(e) {
var link = $(e.relatedTarget);
$(this).find(".modal-content").load(link.attr("href"));
});
$('#jakModal').on('hidden.bs.modal', function() {
$(this).removeData();
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
// Finally start the event.
sseJAK(<?php echo $jakuser->getVar("id");?>, <?php echo $jakuser->getVar("operatorlist");?>, <?php echo $JAK_UONLINE;?>);
setInterval("setTimer(<?php echo $jakuser->getVar("id");?>);", 120000);
</script>
<!-- Operator Chat -->
<?php if ($jakuser->getVar("operatorchat") == 1 && JAK_OPENOP == 0){?>
<script src="<?php echo BASE_URL;?>js/operator.chat.js"></script>
<script>
sseJAKOPC(<?php echo $jakuser->getVar("id");?>);
</script>
<!-- reopen old opened chatboxes with the last state-->
<?php if (isset($_SESSION['chatbox_status'])) {
echo '<script>';
echo '$(function() {';
foreach ($_SESSION['chatbox_status'] as $openedchatbox) {
echo 'PopupChat('.$openedchatbox['partner_id'].',"'.$openedchatbox['partner_username'].'",'.$openedchatbox['chatbox_status'].');';
}
echo "});";
echo '</script>';
}
} ?>
<?php } ?>
<script>
<?php if (isset($_SESSION["infomsg"])) { ?>
md.showNotification('info', '<?php echo addslashes($_SESSION["infomsg"]);?>', 'info', 'top', 'right');
<?php } if (isset($_SESSION["successmsg"])) { ?>
md.showNotification('check', '<?php echo addslashes($_SESSION["successmsg"]);?>', 'success', 'top', 'right');
<?php } if (isset($_SESSION["errormsg"])) { ?>
md.showNotification('warning', '<?php echo addslashes($_SESSION["errormsg"]);?>', 'danger', 'top', 'right');
<?php } ?>
</script>
<?php if ($js_file_footer) include_once(APP_PATH.JAK_OPERATOR_LOC.'/template/'.$js_file_footer);?>
</body>
</html>
+139
View File
@@ -0,0 +1,139 @@
<?php include_once 'header.php';?>
<div class="row">
<?php if ($newwidg) { ?>
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g289"];?></h4>
</div>
<div class="card-body">
<?php if ($errors) { ?>
<div class="alert alert-rose"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];?></div>
<?php } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="form-group">
<p><label for="title"><?php echo $jkl["g16"];?></label></p>
<input type="text" name="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php if (isset($_REQUEST["title"])) echo $_REQUEST["title"];?>">
</div>
<div class="form-group">
<p><label for="operator"><?php echo $jkl["g20"];?></label></p>
<select name="jak_opid[]" id="operator" class="selectpicker col-12" data-size="4" data-live-search="true" multiple>
<option value="0"><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_OPERATORS) && is_array($JAK_OPERATORS)) foreach($JAK_OPERATORS as $o) { ?>
<option value="<?php echo $o["id"];?>"><?php echo $o["username"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label for="jak_maxclients"><?php echo $jkl["g21"];?></label>
<input type="number" name="jak_maxclients" class="form-control" min="2" max="50" step="1" value="<?php if (isset($_REQUEST["jak_maxclients"])) echo $_REQUEST["jak_maxclients"];?>">
</div>
<div class="form-group">
<label for="jak_password"><?php echo $jkl["l2"];?></label>
<input type="password" name="jak_password" class="form-control" value="">
</div>
<div class="form-group">
<p><label for="jak_lang"><?php echo $jkl["g22"];?></label></p>
<select name="jak_lang" class="selectpicker col-12" data-size="4" data-live-search="true">
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if (JAK_LANG == $lf) { ?> selected="selected"<?php } ?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="form-actions">
<button type="submit" name="create_groupchat" class="btn btn-primary btn-block"><?php echo $jkl["g38"];?></button>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-8">
<?php } else { ?>
<div class="col-md-12">
<div class="alert alert-info"><?php echo sprintf($jkl['i14'], $totalAll, $jakosub['groupchats'], $jkl['m29']);?></div>
<?php if ($totalAll > 1 && $totalAll > $jakosub['groupchats']) { ?>
<div class="alert alert-rose"><?php echo sprintf($jkl['i64'], $delW);?></div>
<?php } if (isset($jakosub['groupchats']) && $jakosub['groupchats'] == 0) { ?>
<div class="alert alert-rose"><?php echo $jkl['i13'];?></div>
<?php } } ?>
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">group</i>
</div>
<h4 class="card-title "><?php echo $jkl["m29"];?></h4>
</div>
<div class="card-body">
<?php if (isset($GROUPCHAT_ALL) && is_array($GROUPCHAT_ALL) && !empty($GROUPCHAT_ALL)) { ?>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g138"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl['g101'];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
<th><?php echo $jkl["g16"];?></th>
<th><?php echo $jkl["g138"];?></th>
<th><?php echo $jkl["g47"];?></th>
<th><?php echo $jkl['g101'];?></th>
<th><?php echo $jkl["g48"];?></th>
</tr>
</tfoot>
<tbody>
<?php foreach($GROUPCHAT_ALL as $i => $v) { ?>
<tr>
<td></td>
<td><a class="btn btn-sm btn-primary" href="<?php echo JAK_rewrite::jakParseurl('groupchats', 'edit', $v["id"]);?>"><?php echo $v["title"];?></a></td>
<td><a class="btn btn-default btn-sm" href="<?php echo str_replace(JAK_OPERATOR_LOC."/", "", JAK_rewrite::jakParseurl('groupchats', $v["id"], $v["lang"]));?>" target="_blank"><i class="fa fa-comments"></i></a></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('groupchats', 'edit', $v["id"]);?>"><i class="fa fa-pencil"></i></a></td>
<td><a class="btn btn-default btn-sm" href="<?php echo JAK_rewrite::jakParseurl('groupchats', 'lock', $v["id"]);?>"><i class="fa fa-<?php echo ($v["active"] ? 'check' : 'lock');?>"></i></a></td>
<td><?php if ($totalAll > 1) { ?><a class="btn btn-danger btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('groupchats', 'delete', $v["id"]);?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e44"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash-alt"></i></a><?php } ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php } else { ?>
<div class="alert alert-info">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+47
View File
@@ -0,0 +1,47 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning">
<li class="nav-item">
<a class="nav-link<?php if (!in_array($page1, array("support", "faq"))) echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl('widget');?>"><?php echo $jkl["hd15"];?></a>
</li>
<?php if (jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link<?php if ($page1 == 'support') echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl('widget', 'support');?>"><?php echo $jkl["hd16"];?></a>
</li>
<?php } ?>
<?php if (jak_get_access("faq", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item">
<a class="nav-link<?php if ($page1 == 'faq') echo ' active';?>" href="<?php echo JAK_rewrite::jakParseurl('widget', 'faq');?>"><?php echo $jkl["hd17"];?></a>
</li>
<?php } ?>
</ul>
<hr>
</div>
</div>
<p><?php echo $jkl['cw8'];?> <a href="javascript:void(0)" data-clipboard-target="#widget-code" class="btn btn-rose btn-round btn-fab clipboard"><i class="fa fa-clipboard"></i></a></p>
<div class="row">
<div class="col-md-12">
<div class="card border-success text-center">
<div class="card-body">
<textarea rows="11" class="form-control" id="widget-code" readonly="readonly"><?php echo htmlentities('<!-- CloudDesk 3 widget -->
<script type="text/javascript">
(function(w, d, s, u) {
w.id = '.$opcacheid.'; w.lcjUrl = u; w.catID = \'\';
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = true; j.src = \''.BASE_URL_ORIG.'js/jaklcp'.$page1.'.js\';
h.parentNode.insertBefore(j, h);
})(window, document, \'script\', \''.BASE_URL_ORIG.'\');
</script>
<div id="jaklcp-'.$page1.'-container"></div>
<!-- end CloudDesk 3 widget -->');?></textarea>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+215
View File
@@ -0,0 +1,215 @@
<!DOCTYPE html>
<html lang="<?php echo $USER_LANGUAGE;?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no">
<meta name="description" content="Cloud Desk 3">
<meta name="keywords" content="Your premium Live Support/Chat application from JAKWEB">
<meta name="author" content="Cloud Desk 3">
<meta name="apple-mobile-web-app-capable" content="yes">
<title><?php echo $SECTION_TITLE;?> - <?php echo JAK_TITLE;?></title>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="<?php echo BASE_URL;?>css/material.css?=<?php echo JAK_UPDATED;?>" type="text/css" media="screen">
<?php if ($css_file_header) { ?>
<link rel="stylesheet" href="<?php echo $css_file_header;?>" type="text/css">
<?php } ?>
<?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">
<!-- End RTL Support -->
<?php } ?>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="<?php echo BASE_URL_ORIG;?>img/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo BASE_URL_ORIG;?>img/ico/144.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo BASE_URL_ORIG;?>img/ico/114.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo BASE_URL_ORIG;?>img/ico/72.png">
<link rel="apple-touch-icon-precomposed" href="<?php echo BASE_URL_ORIG;?>img/ico/57.png">
</head>
<body class="<?php echo (JAK_USERID ? ($jakuser->getVar("navsidebar") ? 'sidebar-mini' : '') : 'off-canvas-sidebar');?>">
<?php if (JAK_USERID) { ?>
<div class="wrapper">
<div class="sidebar" data-color="<?php echo $jakuser->getVar("themecolour");?>" data-background-color="<?php echo $jakuser->getVar("menubg");?>" data-image="<?php echo BASE_URL;?>img/sidebar.jpg">
<div class="logo">
<a href="<?php echo BASE_URL_ADMIN;?>" class="simple-text logo-mini">
<?php echo $short_title;?>
</a>
<a href="<?php echo BASE_URL_ADMIN;?>" class="simple-text logo-normal">
<?php echo JAK_TITLE;?>
</a>
</div>
<div class="sidebar-wrapper">
<div class="user">
<div class="photo">
<img src="<?php echo BASE_URL_ORIG.basename(JAK_FILES_DIRECTORY).$jakuser->getVar("picture");?>">
</div>
<div class="user-info">
<a href="<?php echo JAK_rewrite::jakParseurl('users','edit',JAK_USERID, (JAK_USERID != $opcacheid ? $opcacheid : ''));?>" class="username">
<span>
<?php echo $jakuser->getVar("name");?>
</span>
</a>
</div>
</div>
<?php include_once 'navbar.php';?>
</div>
</div>
<div class="main-panel">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top " id="navigation-example">
<div class="container-fluid">
<div class="navbar-wrapper">
<div class="navbar-minimize">
<button id="minimizeSidebar" class="btn btn-just-icon btn-white btn-fab btn-round">
<i class="material-icons text_align-center visible-on-sidebar-regular">more_vert</i>
<i class="material-icons design_bullet-list-67 visible-on-sidebar-mini">view_list</i>
</button>
</div>
<a class="navbar-brand" href="<?php echo ($page == '' ? BASE_URL_ADMIN : $_SESSION['LCRedirect']);?>"><?php echo $SECTION_TITLE;?></a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation" data-target="#navigation-example">
<span class="sr-only">Toggle navigation</span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
</button>
<div class="collapse navbar-collapse justify-content-end">
<form class="navbar-form" action="<?php echo JAK_rewrite::jakParseurl('search');?>" method="post">
<div class="input-group no-border">
<input type="text" class="form-control" name="sitesearch" placeholder="<?php echo $jkl['s5'];?>">
<button type="submit" class="btn btn-white btn-round btn-just-icon">
<i class="material-icons">search</i>
<div class="ripple-container"></div>
</button>
</div>
</form>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="<?php echo BASE_URL_ADMIN;?>">
<i class="material-icons">dashboard</i>
<p class="d-lg-none d-md-block">
<?php echo $jkl['m'];?>
</p>
</a>
</li>
<li class="nav-item dropdown" id="chatRequests" style="display: none">
<a class="nav-link" href="javascript:void(0)" id="navBarChat" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">chat</i>
<span class="notification" id="totalchats"></span>
<p class="d-lg-none d-md-block">
<?php echo $jkl['hd140'];?>
</p>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navBarChat" id="currentConv">
</div>
</li>
<li class="nav-item dropdown" id="ticketRequests" style="display: none">
<a class="nav-link" href="javascript:void(0)" id="navBarTickets" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">healing</i>
<span class="notification" id="totaltickets"></span>
<p class="d-lg-none d-md-block">
<?php echo $jkl['hd'];?>
</p>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navBarTickets" id="currentTickets">
</div>
</li>
<?php if ($jakuser->getVar("operatorlist") || $jakuser->getVar("operatorchat")) { ?>
<li class="nav-item dropdown" id="opRequests" style="display: none">
<a class="nav-link" href="javascript:void(0)" id="navBarOperators" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">supervisor_account</i>
<span class="notification" id="totalops"></span>
<p class="d-lg-none d-md-block">
<?php echo $jkl['g134'];?>
</p>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navBarOperators" id="operatorOnline">
</div>
</li>
<?php } ?>
<?php if ($jakosub['operatorchat'] && $jakuser->getVar("operatorchatpublic") == 1){;?>
<li class="nav-item">
<a href="javascript:void(0)" class="nav-link" id="operator_chat" title="<?php echo $jkl["h9"];?>" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 && window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('<?php echo JAK_rewrite::jakParseurl('chat');?>', 'lsr', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=800,height=520,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><i class="material-icons">forum</i></a>
</li>
<?php } ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:void(0)" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">public</i>
<p><?php echo $jkl["i64"];?></p>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
<?php if (jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)) { ?>
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl('support', 'new');?>"><?php echo $jkl["hd166"];?></a>
<?php } if (jak_get_access("responses", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl('response');?>"><?php echo $jkl["m3"];?></a>
<?php } if (jak_get_access("widget", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl('widget');?>"><?php echo $jkl["m26"];?></a>
<?php } ?>
<a class="dropdown-item" href="<?php echo BASE_URL_ORIG;?>"><?php echo $jkl["i64"];?></a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:void(0)" id="navbarDropdownMenuProfile" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="material-icons">person</i>
<p class="d-lg-none d-md-block">
<?php echo $jakuser->getVar("name");?>
</p>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuProfile">
<a class="dropdown-item" href="<?php echo JAK_rewrite::jakParseurl('users','edit',JAK_USERID, (JAK_USERID != $opcacheid ? $opcacheid : ''));?>"><?php echo $jkl['m11'];?></a>
<a class="dropdown-item<?php echo ($jakuser->getVar("sound") ? ' active' : '');?>" href="javascript:void(0)" id="sound_alert" onclick="toggleAlert()"><?php echo $jkl['g2'];?></a>
<a class="dropdown-item<?php echo ($jakuser->getVar("push_notifications") ? ' active' : '');?>" href="javascript:void(0)" id="push_alert" onclick="togglePush()"><?php echo $jkl["u16"];?></a>
<a class="dropdown-item<?php if ($page == "tickets") echo " active";?>" href="<?php echo JAK_rewrite::jakParseurl('tickets');?>"><?php echo $jkl["m36"];?></a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript:void(0)" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="<?php echo $jkl['hd167'];?>">
<i id="operator-status-colour" class="material-icons<?php if ($jakuser->getVar("available") == 0) { echo ' text-danger'; } elseif ($jakuser->getVar("available") == 2) { echo ' text-warning'; } else { echo ' text-success';}?>">support_agent</i>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item text-success" href="javascript:void(0)" onclick="toggleAvailable(1,<?php echo $JAK_UONLINE;?>)"><i class="material-icons">support_agent</i> <?php echo $jkl["g"];?></a>
<a class="dropdown-item text-warning" href="javascript:void(0)" onclick="toggleAvailable(2,<?php echo $JAK_UONLINE;?>)"><i class="material-icons">support_agent</i> <?php echo $jkl["g202"];?></a>
<a class="dropdown-item text-danger" href="javascript:void(0)" onclick="toggleAvailable(0,0)"><i class="material-icons">support_agent</i> <?php echo $jkl["g1"];?></a>
</div>
</li>
<?php if (JAK_MAIN_OP) { ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('extend');?>">
<i class="material-icons">local_mall</i>
<p class="d-lg-none d-md-block">
<?php echo $jkl['i63'];?>
</p>
</a>
</li>
<?php } ?>
<li class="nav-item">
<a class="nav-link" href="<?php echo JAK_rewrite::jakParseurl('lock');?>">
<i class="material-icons">lock</i>
<p><?php echo $jkl["l21"];?></p>
</a>
</li>
<li class="nav-item">
<a class="nav-link btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('logout');?>" data-title="<?php echo addslashes($jkl["l18"]);?>" data-text="<?php echo addslashes($jkl["l20"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>">
<i class="material-icons">power_settings_new</i>
<p><?php echo $jkl["l18"];?></p>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="content">
<div class="container-fluid">
<!-- Show the user that the connection to the server has been interrupted -->
<div class="alert alert-rose" id="connection-error" style="display:none"><i class="fa fa-exclamation-triangle"></i> <?php echo $jkl["g330"];?></div>
<div id="transfer"></div>
<?php } ?>
View File
+155
View File
@@ -0,0 +1,155 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
<?php if ($blogaccess) { ?>
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ orderable: false, targets: [1] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
language: {
url: "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [0, "DESC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/blog.php',
pages: 5 // number of pages to cache
})
});
});
//
// 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 } ?>
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+37
View File
@@ -0,0 +1,37 @@
<script src="<?php echo BASE_URL_ORIG;?>js/editor/tinymce.min.js"></script>
<script>
$(document).ready(function() {
tinymce.init({
selector: 'textarea',
height: 400,
menubar: false,
paste_as_text: true,
entity_encoding : "raw",
plugins: [
'advlist autolink lists link image charmap print preview anchor textcolor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code responsivefilemanager codesample'
],
toolbar: 'insert | undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | removeformat codesample code',
language: '<?php echo $BT_LANGUAGE;?>',
<?php if ($jkl["rtlsupport"]) { ?>
directionality : 'rtl',
<?php } ?>
content_css : "<?php echo BASE_URL_ORIG;?>css/bootstrap.css",
content_style: "body {padding: 10px}",
external_filemanager_path:"<?php echo BASE_URL_ORIG;?>js/editor/filemanager/",
filemanager_title:"Filemanager" ,
external_plugins: { "filemanager" : "<?php echo BASE_URL_ORIG;?>js/editor/filemanager/plugin.min.js"},
relative_urls: false
});
for (const el of document.querySelectorAll('.tagin')) {
tagin(el)
}
});
function tagin(el,option={}){const classElement="tagin",classWrapper="tagin-wrapper",classTag="tagin-tag",classRemove="tagin-tag-remove",classInput="tagin-input",classInputHidden="tagin-input-hidden",defaultSeparator=",",defaultDuplicate="false",defaultTransform=e=>e,defaultPlaceholder="",separator=el.dataset.separator||option.separator||defaultSeparator,duplicate=el.dataset.duplicate||option.duplicate||defaultDuplicate,transform=eval(el.dataset.transform)||option.transform||defaultTransform,placeholder=el.dataset.placeholder||option.placeholder||defaultPlaceholder,templateTag=e=>`<span class="${classTag}">${e}<span class="${classRemove}"></span></span>`,getValue=()=>el.value,getValues=()=>getValue().split(separator);!function(){const e=`<div class="${classWrapper+" "+el.className.replace(classElement,"").trim()}">${""===getValue().trim()?"":getValues().map(templateTag).join("")}<input type="text" class="${classInput}" placeholder="${placeholder}"></div>`;el.insertAdjacentHTML("afterend",e)}();const wrapper=el.nextElementSibling,input=wrapper.getElementsByClassName(classInput)[0],getTags=()=>[...wrapper.getElementsByClassName(classTag)].map((e=>e.textContent)),getTag=()=>getTags().join(separator),updateValue=()=>{el.value=getTag(),el.dispatchEvent(new Event("change"))};function autowidth(){const e=document.createElement("div");e.classList.add(classInput,classInputHidden);const t=input.value||input.getAttribute("placeholder")||"";e.innerHTML=t.replace(/ /g,"&nbsp;"),document.body.appendChild(e),input.style.setProperty("width",Math.ceil(window.getComputedStyle(e).width.replace("px",""))+1+"px"),e.remove()}function addTag(e=!1){const t=transform(input.value.replace(new RegExp(escapeRegex(separator),"g"),"").trim());""===t&&(input.value=""),(input.value.includes(separator)||e&&""!=input.value)&&(getTags().includes(t)&&"false"===duplicate?alertExist(t):(input.insertAdjacentHTML("beforebegin",templateTag(t)),updateValue()),input.value="",input.removeAttribute("style"))}function alertExist(e){for(const t of wrapper.getElementsByClassName(classTag))t.textContent===e&&(t.style.transform="scale(1.09)",setTimeout((()=>{t.removeAttribute("style")}),150))}function updateTag(){getValue()!==getTag()&&([...wrapper.getElementsByClassName(classTag)].map((e=>e.remove())),""!==getValue().trim()&&input.insertAdjacentHTML("beforebegin",getValues().map(templateTag).join("")))}function escapeRegex(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}wrapper.addEventListener("click",(()=>input.focus())),input.addEventListener("focus",(()=>wrapper.classList.add("focus"))),input.addEventListener("blur",(()=>wrapper.classList.remove("focus"))),document.addEventListener("click",(e=>{e.target.closest("."+classRemove)&&(e.target.closest("."+classRemove).parentNode.remove(),updateValue())})),input.addEventListener("keydown",(e=>{""===input.value&&8===e.keyCode&&wrapper.getElementsByClassName(classTag).length&&(wrapper.querySelector("."+classTag+":last-of-type").remove(),updateValue())})),input.addEventListener("input",(()=>{addTag(),autowidth()})),input.addEventListener("blur",(()=>{addTag(!0),autowidth()})),autowidth(),el.addEventListener("change",(()=>updateTag()))}
</script>
+20
View File
@@ -0,0 +1,20 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$(".hover-button").hover(function() {
$(this).attr("src", function(index, attr){
return attr.replace("_on", "_off");
});
}, function(){
$(this).attr("src", function(index, attr){
return attr.replace("_off", "_on");
});
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+7
View File
@@ -0,0 +1,7 @@
<script type="text/javascript">
$(document).ready(function() {
jQuery("#pass").keyup(function() {
passwordStrength(jQuery(this).val());
});
});
</script>
+152
View File
@@ -0,0 +1,152 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ orderable: false, targets: [1] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
language: {
url: "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [0, "DESC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/clients.php',
pages: 5 // number of pages to cache
})
});
});
//
// 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;
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+34
View File
@@ -0,0 +1,34 @@
<script src="<?php echo BASE_URL_ORIG;?>js/editor/tinymce.min.js"></script>
<script src="<?php echo BASE_URL;?>js/urlslug.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
tinymce.init({
selector: 'textarea.w-editor',
content_css : "<?php echo BASE_URL_ORIG;?>css/stylesheet.css",
height: 500,
menubar: false,
paste_as_text: true,
entity_encoding : "raw",
plugins: [
'advlist autolink lists link image charmap print preview anchor textcolor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code responsivefilemanager codesample'
],
toolbar: 'insert | undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | removeformat codesample code',
language: '<?php echo $BT_LANGUAGE;?>',
<?php if ($jkl["rtlsupport"]) { ?>
directionality : 'rtl',
<?php } ?>
external_filemanager_path:"<?php echo BASE_URL_ORIG;?>js/editor/filemanager/",
filemanager_title:"Filemanager" ,
external_plugins: { "filemanager" : "<?php echo BASE_URL_ORIG;?>js/editor/filemanager/plugin.min.js"},
relative_urls: false
});
// Get the slug
$("#title").keyup(function(){
// Checked, copy values
$("#url_slug").val(jakSlug($("#title").val()));
});
});
</script>
+152
View File
@@ -0,0 +1,152 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delete_contacts").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ orderable: false, targets: [1] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
language: {
url: "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [0, "DESC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/contacts.php',
pages: 5 // number of pages to cache
})
});
});
//
// 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;
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+16
View File
@@ -0,0 +1,16 @@
<script src="<?php echo BASE_URL;?>js/urlslug.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
// Get the slug
$("#title").keyup(function(){
// Checked, copy values
$("#slug").val(jakSlug($("#title").val()));
});
for (const el of document.querySelectorAll('.tagin')) {
tagin(el)
}
});
function tagin(el,option={}){const classElement="tagin",classWrapper="tagin-wrapper",classTag="tagin-tag",classRemove="tagin-tag-remove",classInput="tagin-input",classInputHidden="tagin-input-hidden",defaultSeparator=",",defaultDuplicate="false",defaultTransform=e=>e,defaultPlaceholder="",separator=el.dataset.separator||option.separator||defaultSeparator,duplicate=el.dataset.duplicate||option.duplicate||defaultDuplicate,transform=eval(el.dataset.transform)||option.transform||defaultTransform,placeholder=el.dataset.placeholder||option.placeholder||defaultPlaceholder,templateTag=e=>`<span class="${classTag}">${e}<span class="${classRemove}"></span></span>`,getValue=()=>el.value,getValues=()=>getValue().split(separator);!function(){const e=`<div class="${classWrapper+" "+el.className.replace(classElement,"").trim()}">${""===getValue().trim()?"":getValues().map(templateTag).join("")}<input type="text" class="${classInput}" placeholder="${placeholder}"></div>`;el.insertAdjacentHTML("afterend",e)}();const wrapper=el.nextElementSibling,input=wrapper.getElementsByClassName(classInput)[0],getTags=()=>[...wrapper.getElementsByClassName(classTag)].map((e=>e.textContent)),getTag=()=>getTags().join(separator),updateValue=()=>{el.value=getTag(),el.dispatchEvent(new Event("change"))};function autowidth(){const e=document.createElement("div");e.classList.add(classInput,classInputHidden);const t=input.value||input.getAttribute("placeholder")||"";e.innerHTML=t.replace(/ /g,"&nbsp;"),document.body.appendChild(e),input.style.setProperty("width",Math.ceil(window.getComputedStyle(e).width.replace("px",""))+1+"px"),e.remove()}function addTag(e=!1){const t=transform(input.value.replace(new RegExp(escapeRegex(separator),"g"),"").trim());""===t&&(input.value=""),(input.value.includes(separator)||e&&""!=input.value)&&(getTags().includes(t)&&"false"===duplicate?alertExist(t):(input.insertAdjacentHTML("beforebegin",templateTag(t)),updateValue()),input.value="",input.removeAttribute("style"))}function alertExist(e){for(const t of wrapper.getElementsByClassName(classTag))t.textContent===e&&(t.style.transform="scale(1.09)",setTimeout((()=>{t.removeAttribute("style")}),150))}function updateTag(){getValue()!==getTag()&&([...wrapper.getElementsByClassName(classTag)].map((e=>e.remove())),""!==getValue().trim()&&input.insertAdjacentHTML("beforebegin",getValues().map(templateTag).join("")))}function escapeRegex(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}wrapper.addEventListener("click",(()=>input.focus())),input.addEventListener("focus",(()=>wrapper.classList.add("focus"))),input.addEventListener("blur",(()=>wrapper.classList.remove("focus"))),document.addEventListener("click",(e=>{e.target.closest("."+classRemove)&&(e.target.closest("."+classRemove).parentNode.remove(),updateValue())})),input.addEventListener("keydown",(e=>{""===input.value&&8===e.keyCode&&wrapper.getElementsByClassName(classTag).length&&(wrapper.querySelector("."+classTag+":last-of-type").remove(),updateValue())})),input.addEventListener("input",(()=>{addTag(),autowidth()})),input.addEventListener("blur",(()=>{addTag(!0),autowidth()})),autowidth(),el.addEventListener("change",(()=>updateTag()))}
</script>
+89
View File
@@ -0,0 +1,89 @@
<script src="<?php echo BASE_URL;?>js/fullcalendar.js"></script>
<script src="<?php echo BASE_URL;?>js/fullcalendar-locale.js"></script>
<!-- JavaScript for select all -->
<script>
$(document).ready(function() {
var initialLocaleCode = '<?php echo ($USER_LANGUAGE == 'en' ? 'en-gb' : $USER_LANGUAGE);?>';
//init DateTimePickers
md.initFormExtendedDatetimepickers();
});
var initialLocaleCode = '<?php echo ($USER_LANGUAGE == 'en' ? 'en-gb' : $USER_LANGUAGE);?>';
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'timeGridWeek',
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth'
},
scrollTime: '09:00:00',
weekNumbers: true,
navLinks: true, // can click day/week names to navigate views
editable: true,
locale: initialLocaleCode,
selectable: true,
select: function(info) {
$('#calModal #calModalLabel').html('<?php echo stripslashes($jkl['hd245']);?>');
$('#calModal #cal-start').val(moment(info.startStr).format('YYYY-MM-DD HH:mm:ss'));
$('#calModal #cal-end').val(moment(info.endStr).format('YYYY-MM-DD HH:mm:ss'));
$('#calModal #cal-action').val("cal-new");
$('#calModal #cal-delete').hide();
$('#calModal').modal('show');
},
eventClick: function(info) {
$('#calModal #cal-id').val(info.event.id);
$('#calModal #cal-action').val("cal-edit");
$('#calModal #cal-start').val(moment(info.event.startStr).format('YYYY-MM-DD HH:mm:ss'));
$('#calModal #cal-end').val(moment(info.event.endStr).format('YYYY-MM-DD HH:mm:ss'));
$('#calModal #cal-title').val(info.event.title);
$('#calModal #cal-content').val(info.event.extendedProps.content);
$('#calModal #color').val(info.event.backgroundColor);
$('#calModal #cal-delete').show();
$('#calModal').modal('show');
$('.selectpicker').selectpicker('refresh');
$('#calModal').on('hidden.bs.modal', function (e) {
$('#calModal #cal-title').val("");
$('#calModal #cal-content').val("");
});
},
eventDrop: function(info) {
cal_edit_event(info.event.id, moment(info.event.start).format('YYYY-MM-DD HH:mm:ss'), false);
},
eventResize: function(info) {
cal_edit_event(info.event.id, moment(info.event.start).format('YYYY-MM-DD HH:mm:ss'), moment(info.event.end).format('YYYY-MM-DD HH:mm:ss'));
},
events: '<?php echo BASE_URL;?>ajax/events.php'
});
calendar.render();
});
function cal_edit_event(evid, evstart, evend) {
$.ajax({
url: '<?php echo BASE_URL;?>ajax/calendar.php',
type: "POST",
data: "cal-id=" + evid + "&cal-action=cal-date&cal-start=" + evstart + "&cal-end=" + evend,
dataType: "json",
cache: false
}).done(function(data) {
if (data.status == 1) {
md.showNotification('check', '<?php echo addslashes($jkl['g14']);?>', 'success', 'top', 'right');
} else {
md.showNotification('warning', '<?php echo addslashes($jkl['i3']);?>', 'danger', 'top', 'right');
}
});
}
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+29
View File
@@ -0,0 +1,29 @@
<script src="<?php echo BASE_URL_ORIG;?>js/editor/tinymce.min.js"></script>
<script>
$(document).ready(function() {
tinymce.init({
selector: 'textarea',
height: 400,
menubar: false,
paste_as_text: true,
entity_encoding : "raw",
plugins: [
'advlist autolink lists link image charmap print preview anchor textcolor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code responsivefilemanager codesample'
],
toolbar: 'insert | undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | removeformat codesample code',
language: '<?php echo $BT_LANGUAGE;?>',
<?php if ($jkl["rtlsupport"]) { ?>
directionality : 'rtl',
<?php } ?>
external_filemanager_path:"<?php echo BASE_URL_ORIG;?>js/editor/filemanager/",
filemanager_title:"Filemanager" ,
external_plugins: { "filemanager" : "<?php echo BASE_URL_ORIG;?>js/editor/filemanager/plugin.min.js"},
relative_urls: false,
convert_urls: false
});
});
</script>
+28
View File
@@ -0,0 +1,28 @@
<script src="<?php echo BASE_URL_ORIG;?>js/editor/tinymce.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
tinymce.init({
selector: 'textarea',
height: 400,
menubar: false,
paste_as_text: true,
entity_encoding : "raw",
plugins: [
'advlist autolink lists link image charmap print preview anchor textcolor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code responsivefilemanager codesample'
],
toolbar: 'insert | undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | removeformat codesample code',
language: '<?php echo $BT_LANGUAGE;?>',
<?php if ($jkl["rtlsupport"]) { ?>
directionality : 'rtl',
<?php } ?>
external_filemanager_path:"<?php echo BASE_URL_ORIG;?>js/editor/filemanager/",
filemanager_title:"Filemanager" ,
external_plugins: { "filemanager" : "<?php echo BASE_URL_ORIG;?>js/editor/filemanager/plugin.min.js"},
relative_urls: false
});
});
</script>
+38
View File
@@ -0,0 +1,38 @@
<script type="text/javascript" src="<?php echo BASE_URL;?>js/hours.js"></script>
<script type="text/javascript">
$(document).ready(function() {
jQuery("#pass").keyup(function() {
passwordStrength(jQuery(this).val());
});
var bHoursM = $("#bHoursM").businessHours({
postInit:function(){
$("#bHoursM").find('.operationTimeFrom, .operationTimeTill').timepicker({
'timeFormat': 'H:i',
'noneOption': true
});
},
'weekdays': <?php echo $jkl["u48"];?>,
<?php if (isset($JAK_FORM_DATA["hours_array"]) && !empty($JAK_FORM_DATA["hours_array"])) { ?>
operationTime: <?php echo $JAK_FORM_DATA["hours_array"];?>,
<?php } ?>
dayTmpl: '<div class="dayContainer">' +
'<div data-original-title="" class="colorBox"><input type="checkbox" class="invisible operationState"/></div>' +
'<div class="weekday"></div>' +
'<div class="operationDayTimeContainer">' +
'<div class="operationTime"><input type="text" name="startTime" class="mini-time form-control operationTimeFrom"></div>' +
'<div class="operationTime"><input type="text" name="endTime" class="mini-time form-control operationTimeTill"></div>' +
'<div class="operationTime"><input type="text" name="startTimea" class="mini-time form-control operationTimeFrom"></div>' +
'<div class="operationTime"><input type="text" name="endTimea" class="mini-time form-control operationTimeTill"></div>' +
'</div></div>'
});
$(document).on("click", ".form-submit", function(e) {
e.preventDefault();
$("#bhours").val(JSON.stringify(bHoursM.serialize()));
// finally send form
$(".jak_form").submit();
});
});
</script>
+158
View File
@@ -0,0 +1,158 @@
<!-- Style Changer -->
<script src="<?php echo BASE_URL;?>js/minicolor.js"></script>
<!-- JavaScript for select all -->
<script>
$(document).ready(function() {
var clipboard = new ClipboardJS('.clipboard');
clipboard.on('success', function(e) {
$.notify({icon: 'check', message: '<?php echo addslashes($jkl["g284"]);?>'}, {type: 'success', animate: {
enter: 'animate__animated animate__fadeInDown',
exit: 'animate__animated animate__fadeOutUp'
}});
e.clearSelection();
});
$('#department').change(function() {
if (this.value != '0') {
$('#operator').val(["0"]);
}
});
$('#operator').change(function() {
if (this.value != '0') {
$('#department').val(["0"]);
}
});
// Colour Changer
$('.colour_changer').minicolors({
theme: "bootstrap"
});
// Load the button preview for images
$('#btn_preview').attr("src",ls.orig_main_url+ls.files_url+'/buttons/'+$('select[name="btn_image"]').val());
// Load the mobile preview for images
$('#btn_preview_mobile').attr("src",ls.orig_main_url+ls.files_url+'/buttons/'+$('select[name="btn_image_mobile"]').val());
$("#btn_preview").hover(function() {
$(this).attr("src", function(index, attr){
return attr.replace("_on", "_off");
});
}, function(){
$(this).attr("src", function(index, attr){
return attr.replace("_off", "_on");
});
});
$("#btn_preview_mobile").hover(function() {
$(this).attr("src", function(index, attr){
return attr.replace("_on", "_off");
});
}, function(){
$(this).attr("src", function(index, attr){
return attr.replace("_off", "_on");
});
});
$("#chat_preview_button img").hover(function() {
$(this).attr("src", function(index, attr){
return attr.replace("_on", "_off");
});
}, function(){
$(this).attr("src", function(index, attr){
return attr.replace("_off", "_on");
});
});
// Load changed previews if any
if ($('input[name="btn_icon"]').val()) $('#btn_preview i').attr("class", $('input[name="btn_icon"]').val());
if ($('input[name="btn_icon_colour"]').val()) $('#btn_preview').css("color", $('input[name="btn_icon_colour"]').val());
if ($('input[name="btn_background_colour"]').val()) $('#btn_preview').css("background-color", $('input[name="btn_background_colour"]').val());
if ($('input[name="btn_icon_offline"]').val()) $('#btn_preview_mobile i').attr("class", $('input[name="btn_icon_offline"]').val());
if ($('input[name="btn_icon_off_colour"]').val()) $('#btn_preview_mobile').css("color", $('input[name="btn_icon_off_colour"]').val());
if ($('input[name="btn_background_off_colour"]').val()) $('#btn_preview_mobile').css("background-color", $('input[name="btn_background_off_colour"]').val());
});
// Images
$(document).on('change', 'select[name="btn_image"]', function() {
$('#btn_preview').attr("src",ls.orig_main_url+ls.files_url+'/buttons/'+$(this).val());
});
$(document).on('change', 'select[name="btn_image_mobile"]', function() {
$('#btn_preview_mobile').attr("src",ls.orig_main_url+ls.files_url+'/buttons/'+$(this).val());
});
// Group Chat
$('#chatbutton').change(function() {
$('#chat_preview_button img').attr("src",ls.orig_main_url+ls.files_url+'/buttons/'+$(this).val());
});
$('#chatbgimage').change(function() {
if (this.value != '0') {
$('#bg_preview_button img').attr("src",ls.orig_main_url+'/img/groupchat'+$(this).val()+'.jpg');
} else {
$('#bg_preview_button img').attr("src",ls.orig_main_url+'/img/groupchat.jpg');
}
});
// Icon
$(document).on('change', 'input[name="btn_icon"]', function() {
$('#btn_preview i').attr("class", $(this).val());
});
$(document).on('change', 'input[name="btn_icon_colour"]', function() {
// Get the colour from the input field
$('#btn_preview').css("color", $(this).val());
});
$(document).on('change', 'input[name="btn_background_colour"]', function() {
// Get the colour from the input field
$('#btn_preview').css("background-color", $(this).val());
});
$(document).on('change', 'input[name="btn_icon_offline"]', function() {
$('#btn_preview_mobile i').attr("class", $(this).val());
});
$(document).on('change', 'input[name="btn_icon_off_colour"]', function() {
// Get the colour from the input field
$('#btn_preview_mobile').css("color", $(this).val());
});
$(document).on('change', 'input[name="btn_background_off_colour"]', function() {
// Get the colour from the input field
$('#btn_preview_mobile').css("background-color", $(this).val());
});
ls.files_url = "<?php echo JAK_FILES_DIRECTORY;?>";
</script>
+28
View File
@@ -0,0 +1,28 @@
<script type="text/javascript">
$(document).ready(function(){
$("#loader").hide();
$('input[type=radio][name=jak_smpt]').change(function() {
if (this.value == '1') {
$('#smtp_options').fadeIn();
$('#oauth_options').fadeOut();
}
else if (this.value == '0') {
$('#smtp_options').fadeOut();
$('#oauth_options').fadeOut();
}
else if (this.value == '2') {
$('#oauth_options').fadeIn();
$('#smtp_options').fadeOut();
}
});
// JavaScript to disable send button and show loading.gif image
$("#sendTM").click(function() {
$("#loader").show();
$('#sendTM').attr("disabled", "disabled");
$('.jak_form').submit();
});
});
</script>
+160
View File
@@ -0,0 +1,160 @@
<!-- JavaScript for select all -->
<script>
// on click event
$(".coupon-check").on('click', function(e) {
e.preventDefault();
$(this).find(".jak-loadbtn").addClass("fa fa-spinner fa-spin");
var cid = $(this).data("cid");
var amount = $(this).data("amount");
var cval = $("#coupon-"+cid).val();
if (cval.length == 0) {
$("#coupon-help-"+cid).addClass("text-danger").html("<?php echo $jkl['i32'];?>");
$(this).find(".jak-loadbtn").removeClass("fa fa-spinner fa-spin");
return true;
} else {
jak_coupon_validation(cid, cval, amount, false, false);
$(this).find(".jak-loadbtn").removeClass("fa fa-spinner fa-spin");
return true;
}
});
// 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("packageid");
var paygateid = $(this).data("paymentid");
var amount = $("#price-"+pid).text();
var currency = $(this).data("currency");
var paidhow = $(this).data("paidhow");
var ccid = $(this).data("ccid");
var pfp = $(this).data("payfor");
var cval = $("#coupon-"+pid).val();
// Populate the hidden fields
$("#pid").val(pid);
$("#pgid").val(paygateid);
$("#paidhow").val(paidhow);
$("#cval").val(cval);
$("#check").val(pfp);
$("#ccid").val(ccid);
$("#amount").val(amount);
if ($('#subscribe-'+pid).is(':checked')) {
$("#subscribe").val(1);
} else {
$("#subscribe").val(0);
}
$("#buypackage").submit();
});
// New Operators
$('.paynowop').on('click', function(e) {
e.preventDefault();
$(this).find(".jak-loadbtn").addClass("fa fa-spinner fa-spin");
// This
var _this = $(this);
// paidhow
var paidhow = $(this).data("paidhow");
var pfp = $(this).data("payfor");
// Get the amount of operators to add
var ops = $("#newops").find(':selected').val();
if (!ops || ops == 0) {
$(this).find(".jak-loadbtn").removeClass("fa fa-spinner fa-spin");
return false;
}
$("#paidhowop").val(paidhow);
$("#opcount").val(ops);
$("#checkop").val(pfp);
$("#buyop").submit();
});
// Extend Operators
$('.paynowopextend').on('click', function(e) {
e.preventDefault();
$(this).find(".jak-loadbtn").addClass("fa fa-spinner fa-spin");
// This
var _this = $(this);
// paidhow
var paidhow = $(this).data("paidhow");
var pfp = $(this).data("payfor");
// Get the operator to update
var opid = $("#extop").find(':selected').data("opid");
// Get the price
var extamount = $("#extop").find(':selected').data("price");
// Get the months
var extmonths = $("#extop").val();
$("#paidhowopext").val(paidhow);
$("#opidext").val(opid);
$("#opamountext").val(extmonths);
$("#checkopext").val(pfp);
$("#buyopext").submit();
});
function jak_coupon_validation(id, value, amount, subscribe, checkout) {
//send the post to .php
return $.ajax({
url: "<?php echo $_SERVER['REQUEST_URI'];?>",
type: "POST",
data: "check=coupon&pid=" + id + "&coupon=" + value + "&amount=" + amount + "&subscribe=" + subscribe + "&checkout=" + checkout,
dataType: "json",
cache: false
}).done(function(data) {
if (checkout) {
if (data.status == 1) {
return data;
} else if (data.status == 2) {
window.location = data.redirect;
} else {
$("#coupon-help-"+id).removeClass('text-success').addClass("text-danger").html(data.ctext);
return false;
}
} else {
if (data.status == 1) {
$("#discount-"+id).val(data.newprice);
$("#price-"+id).html(data.newprice);
$("#coupon-help-"+id).removeClass('text-danger').addClass("text-success").html(data.ctext);
} else {
$("#coupon-help-"+id).removeClass('text-success').addClass("text-danger").html(data.ctext);
}
return true;
}
});
}
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+155
View File
@@ -0,0 +1,155 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
<?php if ($faqaccess) { ?>
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ orderable: false, targets: [1] }, { "searchable": false, "targets": 4 }
],
<?php if ($USER_LANGUAGE != "en") { ?>
language: {
url: "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [0, "DESC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/faq.php',
pages: 5 // number of pages to cache
})
});
});
//
// 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 } ?>
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+152
View File
@@ -0,0 +1,152 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ orderable: false, targets: [1,6] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
language: {
url: "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [0, "DESC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/leads.php',
pages: 5 // number of pages to cache
})
});
});
//
// 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;
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+244
View File
@@ -0,0 +1,244 @@
<?php if (JAK_SHOW_IPS) { ?>
<script src="<?php echo BASE_URL;?>js/leaflet.js" type="text/javascript"></script>
<?php } ?>
<script src="<?php echo BASE_URL;?>js/emoji.js" type="text/javascript"></script>
<?php if ($jakuser->getVar("files") && $livechat['status'] == 1 && $livechat['ended'] == 0) { ?>
<script type="text/javascript" src="<?php echo BASE_URL_ORIG;?>js/dropzone.js"></script>
<?php } ?>
<script type="text/javascript">
// We need to load the chat
activeConvID = <?php echo $page1;?>;
getInfo(activeConvID);
// Load the client information
getClientInfo('<a data-chat="info">', true);
$(document).on("click", ".edit-msg", function(e) {
e.preventDefault();
if ($(this).hasClass('active')) {
$('#msgeditid, #msgquoteid').val("");
$('.edit-msg, .edit-quote').removeClass('active');
$('.media-text').removeClass('highlight');
$('#message').val("").focus();
} else {
$('#msgquoteid').val("");
$('.edit-msg, .edit-quote').removeClass('active');
$('.media-text').removeClass('highlight');
$(this).addClass('active');
var editid = $(this).data("id");
var msgtoedit = $(this).data("msg");
$('#msgeditid').val(editid);
$('#msg'+editid).addClass('highlight');
$('#message').val(msgtoedit).focus();
}
});
$(document).on("click", ".edit-quote", function(e) {
e.preventDefault();
if ($(this).hasClass('active')) {
$('#msgquoteid, #msgeditid, #message').val("");
$('.edit-quote, .edit-msg').removeClass('active');
$('.media-text').removeClass('highlight');
$('#message').focus();
} else {
$('#msgeditid, #message').val("");
$('.edit-quote, .edit-msg').removeClass('active');
$('.media-text').removeClass('highlight');
$(this).addClass('active');
var editid = $(this).data("id");
$('#msgquoteid').val(editid);
$('#msg'+editid).addClass('highlight');
$('#message').focus();
}
});
$(document).on("click", ".edit-remove", function(e) {
e.preventDefault();
var _this = $(this);
var msgid = $(_this).data("id");
var plevel = $(_this).data("plevel");
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/oprequests.php',
data: "oprq=hidemsg&id="+msgid+"&cid="+activeConvID+"&plevel="+plevel+"&uid="+ls.opid,
dataType: 'json',
success: function(msg){
if (msg.status) {
$(_this).toggleClass("text-danger");
$(_this).data("plevel", msg.plevel);
md.showNotification('check', msg.txt, 'success', 'top', 'right');
} else {
md.showNotification('warning', msg.txt, 'danger', 'top', 'right');
}
return false;
}
});
});
$(document).on("click", ".edit-starred", function(e) {
e.preventDefault();
var _this = $(this);
var msgid = $(_this).data("id");
var starred = $(_this).data("starred");
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/oprequests.php',
data: "oprq=starred&id="+msgid+"&cid="+activeConvID+"&starred="+starred+"&uid="+ls.opid,
dataType: 'json',
success: function(msg){
if (msg.status) {
if (starred == 1) {
$(_this).find('i').removeClass("fa fa-star").addClass('fal fa-star');
} else {
$(_this).find('i').removeClass("fal fa-star").addClass('fa fa-star');
}
$(_this).data("starred", msg.starred);
md.showNotification('check', msg.txt, 'success', 'top', 'right');
} else {
md.showNotification('warning', msg.txt, 'danger', 'top', 'right');
}
return false;
}
});
});
$(document).on('click', '.lc-info', function(e) {
e.preventDefault();
getClientInfo(this, false);
});
// Translate text live
$(document).on("click", ".translate-chat", function(e) {
e.preventDefault();
var _this = $(this);
var msgid = $(_this).data("id");
// Show the loader
$(".tl-loader", _this).removeClass("d-none");
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/oprequests.php',
data: "oprq=translatechat&id="+msgid+"&cid="+activeConvID+"&uid="+ls.opid,
dataType: 'json',
success: function(msg){
if (msg.status == 1) {
// We will add the translation below
$('#aitranslate'+msgid).html(msg.translation).fadeIn();
// Success message
md.showNotification('check', msg.txt, 'success', 'top', 'right');
} else {
md.showNotification('warning', msg.txt, 'danger', 'top', 'right');
}
// Hide the loader
$(".tl-loader", _this).addClass("d-none");
return true;
}
});
});
$(document).on('click', '.lc-info', function(e) {
e.preventDefault();
getClientInfo(this, false);
});
function getClientInfo(loadInfo,firstload) {
if ($(loadInfo).hasClass('active')) {
$(".flex-client-info").html("");
$('.lc-info').removeClass('active');
} else {
if (!firstload) {
$('.lc-info').removeClass('active');
$(loadInfo).addClass('active');
}
if (!$('.main-chat-output').hasClass('flex-info-open')) $('.main-chat-output').addClass('flex-info-open');
var creq = $(loadInfo).data('chat');
if (creq && activeConvID) {
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/chatinfo.php',
data: "creq="+creq+"&uid="+ls.opid+"&convid="+activeConvID,
dataType: 'json',
success: function(msg){
if (msg.status == 1) {
$('#lcinfo-container').fadeIn();
$(".flex-client-info").html(msg.html);
$("#lcinfo-title").html(msg.title);
$("#lcinfo-icon").html(msg.icon);
$('.selectpicker').selectpicker('refresh');
return true;
} else {
md.showNotification('warning', msg.text, 'danger', 'top', 'right');
$(".flex-client-info").html("");
$('#lcinfo-container').fadeOut();
return false;
}
}
});
}
}
}
<?php if ($jakuser->getVar("files") && $livechat['status'] == 1 && $livechat['ended'] == 0) { ?>
Dropzone.autoDiscover = false;
$(function() {
// Now that the DOM is fully loaded, create the dropzone, and setup the
// event listeners
var myDropzone = new Dropzone("#cUploadDrop", {dictResponseError: "SERVER ERROR",
dictDefaultMessage: "<?php echo $jkl['u9'];?>",
acceptedFiles: "<?php echo JAK_ALLOWEDO_FILES;?>",
url: "<?php echo BASE_URL_ORIG;?>uploader/uploadero.php"});
myDropzone.on("sending", function(file, xhr, formData) {
// Will send the filesize along with the file as POST data.
formData.append("convID", activeConvID);
formData.append("userIDU", <?php echo $jakuser->getVar("id");?>);
formData.append("base_url", "<?php echo BASE_URL_ORIG;?>");
formData.append("operatorNameU", "<?php echo $jakuser->getVar("name");?>");
formData.append("operatorLanguage", "<?php echo $USER_LANGUAGE;?>");
});
myDropzone.on("complete", function(file) {
myDropzone.removeAllFiles();
loadchat = true;
scrollchat = true;
getInput(activeConvID);
});
});
<?php } ?>
$(document).ready(function(){
var clipboard = new ClipboardJS('.clipboard');
clipboard.on('success', function(e) {
md.showNotification('check', '<?php echo addslashes($jkl["g284"]);?>', 'success', 'top', 'right');
e.clearSelection();
});
});
</script>
+15
View File
@@ -0,0 +1,15 @@
<script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
// after 300 ms we add the class animated to the login/register card
$('.card').removeClass('card-hidden');
}, 300);
});
// Simple Framebuster
if (self != top) {
var theBody = document.getElementsByTagName('body')[0];
theBody.style.display = "none";
}
</script>
+31
View File
@@ -0,0 +1,31 @@
<script type="text/javascript">
$(document).ready(function() {
setTimeout(function() {
// after 300 ms we add the class animated to the login/register card
$('.card').removeClass('card-hidden');
}, 300);
$(".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 } ?>
});
// Simple Framebuster
if (self != top) {
var theBody = document.getElementsByTagName('body')[0];
theBody.style.display = "none";
}
</script>
+154
View File
@@ -0,0 +1,154 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
$('body').tooltip({selector: '[data-toggle="tooltip"]'});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ "orderable": false, "targets": [1] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
"language": {
"url": "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [0, "DESC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/logs.php',
pages: 5 // number of pages to cache
})
});
});
//
// 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;
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+250
View File
@@ -0,0 +1,250 @@
<script src="<?php echo BASE_URL_ORIG;?>js/editor/tinymce.min.js" type="text/javascript"></script>
<script src="<?php echo BASE_URL;?>js/selectlive.js" type="text/javascript"></script>
<?php if ($jakuser->getVar("files") && $jakosub['files']) { ?>
<script type="text/javascript" src="<?php echo BASE_URL_ORIG;?>js/dropzone.js"></script>
<?php } ?>
<script type="text/javascript">
// Working Flag to 0
var working = false;
<?php if ($jakuser->getVar("files") && $jakosub['files']) { ?>
Dropzone.autoDiscover = false;
<?php } ?>
$(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 anchor textcolor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code codesample'
],
toolbar: 'undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | removeformat codesample code',
language: '<?php echo $BT_LANGUAGE;?>',
<?php if ($jkl["rtlsupport"]) { ?>
directionality : 'rtl',
<?php } ?>
relative_urls: false
});
if ($(".datepicker").length != 0) {
$('.datepicker').datetimepicker({
format: '<?php echo $duedateformat[1];?>',
icons: {
time: "fa fa-clock",
date: "fa fa-calendar",
up: "fa fa-chevron-up",
down: "fa fa-chevron-down",
previous: 'fa fa-chevron-left',
next: 'fa fa-chevron-right',
today: 'fa fa-screenshot',
clear: 'fa fa-trash',
close: 'fa fa-remove'
}
});
}
$(".loader").hide();
<?php if ($jakuser->getVar("files") && $jakosub['files']) { ?>
// 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_ALLOWEDO_FILES;?>",
addRemoveLinks: true,
autoProcessQueue: false,
url: "<?php echo BASE_URL_ORIG;?>uploader/uploaderto.php"});
<?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();
$('.submitNT').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('support', 'new');?>',
type: "POST",
data: $(this).serialize(),
dataType: "json",
processData: false,
cache: false
});
request.done(function(data) {
working = false;
if(data.status) {
<?php if ($jakuser->getVar("files") && $jakosub['files']) { ?>
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", <?php echo $jakuser->getVar("id");?>);
formData.append("base_url", "<?php echo BASE_URL_ORIG;?>");
formData.append("operatorNameU", "<?php echo $jakuser->getVar("name");?>");
formData.append("operatorLanguage", "<?php echo $USER_LANGUAGE;?>");
});
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);
}
<?php } else { ?>
// Redirect to the ticket
window.location.replace(data.redirecturl);
<?php } ?>
} 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();
$('.submitNT').removeAttr("disabled");
}
});
});
});
// Insert the standard response into the editor
$('select#supresp').on("change", function() {
var respid = this.value;
if (respid != 0) {
// Get the value from the selected client
var cvalue = $('#jak_client').val();
// Split the value
var cname = cvalue.split(':#:');
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/oprequests.php',
data: "oprq=supportresponse&respid="+respid+"&cname="+cname[2]+"&uid="+ls.opid,
dataType: 'json',
success: function(msg){
if (msg.status) {
tinymce.activeEditor.execCommand('mceInsertContent', false, msg.response);
md.showNotification('check', '<?php echo $jkl['g14'];?>', 'success', 'top', 'right');
} else {
md.showNotification('warning', '<?php echo $jkl['g116'];?>', 'danger', 'top', 'right');
}
}
});
$('#supresp').val(0);
}
});
$(document).on("click", ".btn-translate", function(e) {
e.preventDefault();
var _this = $(this);
var wscan = $(_this).data("scan");
var tcontent = tinymce.get("content-editor").getContent();
var tlang = $('#jak_tlang').find(":selected").val();
// Check if we have something in the editor
if (tcontent == "") return false;
// Check if we translate something but the language is empty
if (wscan == "translate" && tlang == "-") {
md.showNotification('warning', '<?php echo $jkl['e47'];?>', 'danger', 'top', 'right');
return false;
}
// Show the loader
$(".tl-loader", _this).removeClass("d-none");
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/translate_ticket.php',
data: "wsource="+wscan+"&tcontent="+tcontent+"&uid="+ls.opid+"&lang="+tlang,
dataType: 'json',
success: function(msg){
if (msg.status == 1) {
// Success message
md.showNotification('check', msg.txt, 'success', 'top', 'right');
// We will add the translation below
if (aid == 0) {
$('.aitranslate'+tid).html(msg.translation).fadeIn();
} else {
$('.aitranslate'+aid).html(msg.translation).fadeIn();
}
// We have a new language
if (msg.lang) $("#jak_tlang").val(msg.lang);
$('.selectpicker').selectpicker('refresh');
} else if (msg.status == 2) {
// We have a fine new text, let's add it
tinymce.activeEditor.setContent(msg.grammar_correct);
} else if (msg.status == 3) {
// We have a translation, let's add it
tinymce.activeEditor.setContent(msg.translate_correct);
} else {
md.showNotification('warning', msg.txt, 'danger', 'top', 'right');
}
// Hide the loader
$(".tl-loader", _this).addClass("d-none");
return true;
}
});
});
</script>
+18
View File
@@ -0,0 +1,18 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+11
View File
@@ -0,0 +1,11 @@
<script type="text/javascript">
$(document).ready(function() {
jQuery(document).ready(function(){
jQuery("#pass").keyup(function() {
passwordStrength(jQuery(this).val());
});
});
});
</script>
+20
View File
@@ -0,0 +1,20 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$(".play-tone").change(function() {
var playtone = $(this).val();
var sound = new Howl({
src: ['<?php echo BASE_URL_ORIG;?>/'+playtone+'.mp3', '<?php echo BASE_URL_ORIG;?>/'+playtone+'.ogg', '<?php echo BASE_URL_ORIG;?>/'+playtone+'.wav']
});
// Finally play the sound, also on mobiles
sound.play();
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+28
View File
@@ -0,0 +1,28 @@
<script>
$(document).ready(function() {
$("#loader").hide();
});
function playSound(item) {
// alert(item.value);
var sound = new Howl({
src: ['<?php echo BASE_URL_ORIG;?>'+item.value+'.mp3', '<?php echo BASE_URL_ORIG;?>'+item.value+'.ogg', '<?php echo BASE_URL_ORIG;?>'+item.value+'.wav']
});
// Finally play the sound, also on mobiles
sound.play();
}
// JavaScript to disable send button and show loading.gif image
$("#sendTM").on("click", function() {
$("#loader").show();
$('#sendTM').val("<?php echo $jkl['g67'];?>");
$('#sendTM').attr("disabled", "disabled");
$('.jak_form').submit();
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+45
View File
@@ -0,0 +1,45 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
var fixHelperModified = function(e, tr) {
var $originals = tr.children();
var $helper = tr.clone();
$helper.children().each(function(index) {
$(this).width($originals.eq(index).width())
});
return $helper;
},
updateIndex = function(e, ui) {
$('.corder', ui.item.parent()).each(function (i) {
$(this).val(i + 1);
});
};
$("#sortTable tbody").sortable({
helper: fixHelperModified,
stop: updateIndex
}).disableSelection();
$("tbody").sortable({
distance: 5,
delay: 100,
opacity: 0.6,
cursor: 'move',
update: function() {}
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+304
View File
@@ -0,0 +1,304 @@
<?php if (JAK_SHOW_IPS) { ?>
<script src="<?php echo BASE_URL;?>js/leaflet.js" type="text/javascript"></script>
<script src="<?php echo BASE_URL;?>js/leaflet.cluster.js" type="text/javascript"></script>
<script type="text/javascript">
var statmap = L.map('map_canvas', {zoomControl:true}).setView([10,4], 2);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
}).addTo(statmap);
// Disable drag and zoom handlers.
statmap.dragging.disable();
statmap.touchZoom.disable();
statmap.doubleClickZoom.disable();
statmap.scrollWheelZoom.disable();
$(document).ready(function() {
$.ajax({
url: '<?php echo BASE_URL;?>ajax/statmap.php',
type: "POST",
data: "ajax=1&depid=<?php echo $department;?>",
dataType: "json",
cache: false
}).done(function(data) {
if (data.status == 0) {
$.notify("<?php echo $jkl['i3'];?>", {type:'info',pos:'top-center'});
} else {
var markers = L.markerClusterGroup();
for (var i=0; i < data.markers.length; ++i) {
var marker = L.marker([data.markers[i].latitude, data.markers[i].longitude]).bindPopup(data.markers[i].name);
markers.addLayer(marker);
}
statmap.addLayer(markers);
// Enable drag and zoom handlers.
statmap.dragging.enable();
statmap.touchZoom.enable();
statmap.flyToBounds(markers);
}
});
});
</script>
<?php } ?>
<!-- First Stat -->
<script type="text/javascript">
var chart_operator;
var chart_feedback;
var chart;
var chart2;
$(document).ready(function() {
$('#reportrange').daterangepicker({
ranges: {
'<?php echo addslashes($jkl["stat_s15"]);?>': [moment(), moment()],
'<?php echo addslashes($jkl["stat_s16"]);?>': [moment().subtract(2,'days'), moment()],
'<?php echo addslashes($jkl["stat_s17"]);?>': [moment().subtract(6,'days'), moment()],
'<?php echo addslashes($jkl["stat_s18"]);?>': [moment().subtract(29, 'days'), moment()],
'<?php echo addslashes($jkl["stat_s22"]);?>': [moment().startOf('month'), moment().endOf('month')],
'<?php echo addslashes($jkl["stat_s23"]);?>': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},
startDate: moment("<?php echo $_SESSION["stat_start_date"];?>", "YYYY-MM-DD"),
endDate: moment("<?php echo $_SESSION["stat_end_date"];?>", "YYYY-MM-DD"),
format: 'YYYY-MM-DD',
locale: {
customRangeLabel: '<?php echo addslashes($jkl["stat_s24"]);?>'
}
},
function() {
$('#reportrange span').html(<?php echo $_SESSION["stat_start_date"];?> + ' - ' + <?php echo $_SESSION["stat_end_date"];?>);
}
);
$('#reportrange').on('apply.daterangepicker', function(ev, picker) {
//do something, like clearing an input
$('#start_date').val(picker.startDate.format('YYYY-MM-DD'));
$('#end_date').val(picker.endDate.format('YYYY-MM-DD'));
$("#jak_statform").submit();
});
$(document).on("change", "#jak_depid", function() {
$("#jak_statform").submit();
});
chart_operator = new Highcharts.Chart({
chart: {
renderTo: 'chart_operator',
type: 'column'
},
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s2"]));?>'
},
subtitle: {
text: '<?php echo addslashes(html_entity_decode(JAK_TITLE));?>'
},
xAxis: [{
categories: ['<?php echo $stat1op;?>'],
}],
yAxis: [{
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s6"]));?>',
style: {
color: '#89A54E'
}
},
opposite: true
},
{ // Secondary yAxis
min: 0,
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s5"]));?>'
}
}],
legend: {
layout: 'vertical',
backgroundColor: '#FFFFFF',
align: 'left',
verticalAlign: 'top',
x: 100,
y: 70,
floating: true,
shadow: true
},
tooltip: {
formatter: function() {
return ''+ this.x +': ' + this.y + (this.series.name == '<?php echo addslashes(html_entity_decode($jkl["stat_s6"]));?>' ? ' <?php echo addslashes(html_entity_decode($jkl["stat_s13"]));?>' : ' <?php echo addslashes(html_entity_decode($jkl["stat_s5"]));?>');
}
},
series: [{
name: '<?php echo addslashes(html_entity_decode($jkl["stat_s5"]));?>',
yAxis: 1,
data: [<?php echo $stat1opt;?>]
}, {
name: '<?php echo addslashes(html_entity_decode($jkl["stat_s6"]));?>',
data: [<?php echo $statsuptime;?>]
}]
});
chart_feedback = new Highcharts.Chart({
chart: {
renderTo: 'chart_feedback',
zoomType: 'xy'
},
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s8"]));?>'
},
subtitle: {
text: '<?php echo addslashes(html_entity_decode(JAK_TITLE));?>'
},
xAxis: [{
categories: ['<?php echo $stat1totalf;?>'],
reversed: true
}],
yAxis: [{ // Primary yAxis
min: 0,
max: 5,
alignTicks: false,
tickInterval: 1,
labels: {
formatter: function() {
return this.value +'/5';
},
style: {
color: '#89A54E'
}
},
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s9"]));?>',
style: {
color: '#89A54E'
}
}
}, { // Secondary yAxis
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s10"]));?>',
style: {
color: '#4572A7'
}
},
labels: {
formatter: function() {
return this.value +' <?php echo addslashes(html_entity_decode($jkl["stat_s12"]));?>';
},
style: {
color: '#4572A7'
}
},
opposite: true
}],
tooltip: {
formatter: function() {
return ''+
this.x +': '+ this.y +
(this.series.name == '<?php echo addslashes(html_entity_decode($jkl["stat_s11"]));?>' ? '/5' : ' <?php echo addslashes(html_entity_decode($jkl["stat_s12"]));?>');
}
},
legend: {
floating: false
},
series: [{
name: '<?php echo addslashes(html_entity_decode($jkl["g89"]));?>',
color: '#4572A7',
type: 'column',
yAxis: 1,
max: 5,
data: [<?php echo $stat1total;?>]
}, {
name: '<?php echo addslashes(html_entity_decode($jkl["stat_s11"]));?>',
color: '#89A54E',
type: 'column',
data: [<?php echo $stat1vote;?>]
}]
});
chart = new Highcharts.Chart({
chart: {
renderTo: 'chart',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s1"]));?>'
},
tooltip: {
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +' %';
}
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +' %';
}
}
}
},
series: [{
type: 'pie',
name: '<?php echo addslashes(html_entity_decode($jkl["stat_s1"]));?>',
data: [<?php echo $stat1country;?>
]
}]
});
chart2 = new Highcharts.Chart({
chart: {
renderTo: 'chart2',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: '<?php echo addslashes(html_entity_decode($jkl["stat_s4"]));?>'
},
tooltip: {
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +' %';
}
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabels: {
enabled: true,
color: '#000000',
connectorColor: '#000000',
formatter: function() {
return '<b>'+ this.point.name +'</b>: '+ Highcharts.numberFormat(this.percentage, 1) +' %';
}
}
}
},
series: [{
type: 'pie',
name: '<?php echo addslashes(html_entity_decode($jkl["stat_s4"]));?>',
data: [<?php echo $stat1ref;?>
]
}]
});
});
</script>
<script src="<?php echo BASE_URL;?>charts/highcharts.js"></script>
<script src="<?php echo BASE_URL;?>charts/exporting.js"></script>
<script src="<?php echo BASE_URL;?>charts/export-csv.js"></script>
<script src="<?php echo BASE_URL;?>js/calendar.js"></script>
+151
View File
@@ -0,0 +1,151 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
"processing": true,
"serverSide": true,
"columnDefs": [
{ "orderable": false, "targets": [1] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
"language": {
"url": "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
"order": [0, "DESC"],
"ajax": $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/subscriptions.php',
pages: 5 // number of pages to cache
})
});
});
//
// 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;
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+186
View File
@@ -0,0 +1,186 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
<?php if ($supportaccess) { ?>
$(document).ready(function() {
$("#ticket_stats_toggle").click(function() {
$("#ticket_stats").fadeToggle();
});
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
$(document).on("change", "#jak_depid", function() {
var inputaction = $("<input>")
.attr("type", "hidden")
.attr("name", "action").val("depid");
$(".jak_form").append(inputaction);
$(".jak_form").submit();
});
$(document).on("change", "#jak_opid", function() {
var inputaction = $("<input>")
.attr("type", "hidden")
.attr("name", "action").val("opidsort");
$(".jak_form").append(inputaction);
$(".jak_form").submit();
});
$(document).on("change", "#jak_statuschange", function() {
var inputaction = $("<input>")
.attr("type", "hidden")
.attr("name", "action").val("statuschange");
$(".jak_form").append(inputaction);
$(".jak_form").submit();
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ orderable: false, targets: [0,1] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
language: {
url: "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [9, "ASC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/support.php',
pages: 5 // number of pages to cache
}),
rowCallback: function( row, data ) {
$(row).addClass('table-'+data.tdc);
}
});
});
//
// 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 } ?>
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+188
View File
@@ -0,0 +1,188 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
<?php if ($supportaccess) { ?>
$(document).ready(function() {
$("#jak_delete_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
$(document).on("change", "#jak_depid", function() {
var inputaction = $("<input>")
.attr("type", "hidden")
.attr("name", "action").val("depid");
$(".jak_form").append(inputaction);
$(".jak_form").submit();
});
$(document).on("change", "#jak_opid", function() {
var inputaction = $("<input>")
.attr("type", "hidden")
.attr("name", "action").val("opidsort");
$(".jak_form").append(inputaction);
$(".jak_form").submit();
});
$(document).on("change", "#jak_statuschange", function() {
var inputaction = $("<input>")
.attr("type", "hidden")
.attr("name", "action").val("statuschange");
$(".jak_form").append(inputaction);
$(".jak_form").submit();
});
// DataTables initialisation
$('#dynamic-data').DataTable( {
processing: true,
serverSide: true,
responsive: true,
columnDefs: [
{ orderable: false, targets: [1] }
],
<?php if ($USER_LANGUAGE != "en") { ?>
language: {
"url": "<?php echo BASE_URL_ORIG;?>js/dt_lang/<?php echo $USER_LANGUAGE;?>.js"
},
<?php } ?>
order: [9, "ASC"],
ajax: $.fn.dataTable.pipeline( {
url: '<?php echo BASE_URL;?>ajax/supportdue.php<?php echo (!empty($page1) ? '?filter='.$page1 : '');?>',
pages: 5 // number of pages to cache
}),
rowCallback: function( row, data ) {
if (data.tdc == 1) {
$(row).addClass('table-primary');
} else if (data.tdc == 2) {
$(row).addClass('table-warning');
} else if (data.tdc == 3 || data.tdc == 4) {
$(row).addClass('table-success');
}
}
});
});
//
// 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 } ?>
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+241
View File
@@ -0,0 +1,241 @@
<script src="<?php echo BASE_URL;?>js/liveticket.js"></script>
<script src="<?php echo BASE_URL_ORIG;?>js/editor/tinymce.min.js" type="text/javascript"></script>
<?php if ($jakuser->getVar("files") && $jakosub['files'] && $ticket_status_closed != 1) { ?>
<script type="text/javascript" src="<?php echo BASE_URL_ORIG;?>js/dropzone.js"></script>
<?php } ?>
<script>
$(document).ready(function() {
// fire the live ticket status
ltJAK(<?php echo $page2;?>, <?php echo JAK_USERID;?>);
tinymce.init({
selector: '#content-editor',
height: 300,
menubar: false,
paste_as_text: true,
entity_encoding : "raw",
plugins: [
'advlist autolink lists link image charmap print preview anchor textcolor',
'searchreplace visualblocks code fullscreen',
'insertdatetime media table contextmenu paste code responsivefilemanager codesample'
],
toolbar: 'insert | undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist | removeformat codesample code',
language: '<?php echo $BT_LANGUAGE;?>',
<?php if ($jkl["rtlsupport"]) { ?>
directionality : 'rtl',
<?php } ?>
external_filemanager_path:"<?php echo BASE_URL_ORIG;?>js/editor/filemanager/",
filemanager_title:"Filemanager" ,
external_plugins: { "filemanager" : "<?php echo BASE_URL_ORIG;?>js/editor/filemanager/plugin.min.js"},
// Live Ticket Status
init_instance_callback: function(editor) {
editor.on('Change', function(e) {
ticketTyping(<?php echo $page2;?>, <?php echo JAK_USERID;?>);
});
},
relative_urls: false
});
$('.datepicker').datetimepicker({
format: '<?php echo $duedateformat[1];?>'
});
//init DateTimePickers
md.initFormExtendedDatetimepickers();
$("#loader").hide();
// JavaScript to disable send button and show loading.gif image
$("#sendTM").click(function() {
$("#loader").show();
$('#sendTM').attr("disabled", "disabled");
$('.jak_form').submit();
});
$('body').on('click', '.btn-delfile', function (e) {
e.preventDefault();
var _this = this;
var rediurl = jQuery(this).attr('href');
var btnaction = jQuery(this).data("action");
var title = jQuery(this).data("title");
var text = jQuery(this).data("text");
var okbtn = '<button class="alertable-ok" type="submit">'+jQuery(this).data("okbtn")+'</button>';
var cbtn = '<button class="alertable-cancel" type="button">'+jQuery(this).data("cbtn")+'</button>';
jQuery.alertable.confirm(title, {prompt: text, okButton: okbtn, cancelButton: cbtn}).then(function() {
$.ajax({
url: rediurl,
dataType: 'json',
success: function(data) {
$(_this).closest('tr').find('td').fadeOut();
$('#answerid-'+data.answerid).fadeOut();
// Update the counter
var countSpan = $('#upload-counter').text();
var newSpan = parseInt(countSpan) - 1;
$('#upload-counter').html(newSpan);
}
});
}, function() {
return false;
});
});
});
window.onbeforeunload = function(){
ticketNotTyping(<?php echo $page2;?>, <?php echo JAK_USERID;?>);
// return 'Are you sure you want to leave?';
};
// Insert the standard response into the editor
$('select#supresp').on("change", function() {
var respid = this.value;
if (respid != 0) {
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/oprequests.php',
data: "oprq=supportresponse&respid="+respid+"&cname=<?php echo $JAK_FORM_DATA["name"];?>&uid="+ls.opid,
dataType: 'json',
success: function(msg){
if (msg.status) {
tinymce.activeEditor.execCommand('mceInsertContent', false, msg.response);
md.showNotification('check', '<?php echo $jkl['g14'];?>', 'success', 'top', 'right');
} else {
md.showNotification('warning', '<?php echo $jkl['g116'];?>', 'danger', 'top', 'right');
}
}
});
$('#supresp').val(0);
}
});
$("#private_note").change(function() {
if(this.checked) {
$(".mce-path").addClass('bg-warning');
} else {
$(".mce-path").removeClass('bg-warning');
}
});
<?php if ($jakuser->getVar("files") && $jakosub['files'] && $ticket_status_closed != 1) { ?>
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-file-upload fa-3x"></i>',
acceptedFiles: "<?php echo JAK_ALLOWEDO_FILES;?>",
addRemoveLinks: true,
url: "<?php echo BASE_URL_ORIG;?>uploader/uploaderto.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 $jakuser->getVar("id");?>);
formData.append("base_url", "<?php echo BASE_URL_ORIG;?>");
formData.append("operatorNameU", "<?php echo $jakuser->getVar("name");?>");
formData.append("operatorLanguage", "<?php echo $USER_LANGUAGE;?>");
});
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);
// console.log(serverResponse);
data = JSON.parse(serverResponse);
if (data.isimage) {
thefile = '<tr><td><a data-toggle="lightbox" href="<?php echo BASE_URL_ORIG;?>_showfile.php?i='+data.filepath+'"><img src="<?php echo BASE_URL_ORIG;?>_showfile.php?i='+data.filepath+'" alt="'+data.filename+'" class="img-thumbnail" width="50"></a> <a href="<?php echo BASE_URL_ORIG;?>_showfile.php?i='+data.filepath+'" class="btn btn-info btn-sm"><i class="fa fa-file-download"></i></a> <a href="'+data.delpath+'" class="btn btn-danger btn-sm btn-delfile" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e32"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash-alt"></i></a></td></tr>';
} else {
thefile = '<tr><td>'+data.filename+' <a href="<?php echo BASE_URL_ORIG;?>_showfile.php?i='+data.filepath+'" class="btn btn-info btn-sm"><i class="fa fa-file-download"></i></a> <a href="'+data.delpath+'" class="btn btn-danger btn-sm btn-delfile" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e32"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash-alt"></i></a></td></tr>';
}
// Attach file visually
$('#attach-list').append(thefile);
// Notification messages
md.showNotification('check', '<?php echo $jkl['e38'];?>', 'success', 'top', 'right');
});
});
<?php } ?>
$(document).on("click", ".btn-translate", function(e) {
e.preventDefault();
var _this = $(this);
var wscan = $(_this).data("scan");
var tid = $(_this).data("ticketid");
var aid = $(_this).data("answerid");
var tcontent = tinymce.get("content-editor").getContent();
var tlang = $('#jak_tlang').find(":selected").val();
// No content so we stop
if (wscan != "answer" && tcontent == "") return false;
// Check if we translate something but the language is empty
if (wscan == "translate" && tlang == "-") {
md.showNotification('warning', '<?php echo addslashes($jkl['e47']);?>', 'danger', 'top', 'right');
return false;
}
// Show the loader
$(".tl-loader", _this).removeClass("d-none");
$.ajax({
type: "POST",
url: ls.main_url + 'ajax/translate_ticket.php',
data: "wsource="+wscan+"&id="+tid+"&aid="+aid+"&tcontent="+tcontent+"&uid="+ls.opid+"&lang="+tlang,
dataType: 'json',
success: function(msg){
if (msg.status == 1) {
// Success message
md.showNotification('check', msg.txt, 'success', 'top', 'right');
// We will add the translation below
if (aid != 0) {
$('.aitranslate'+aid).html(msg.translation).fadeIn();
} else {
$('.aitranslatem'+tid).html(msg.translation).fadeIn();
}
// We have a new language
if (msg.lang) $("#jak_tlang").val(msg.lang);
$('.selectpicker').selectpicker('refresh');
} else if (msg.status == 2) {
// We have a fine new text, let's add it
tinymce.activeEditor.setContent(msg.grammar_correct);
} else if (msg.status == 3) {
// We have a translation, let's add it
tinymce.activeEditor.setContent(msg.translate_correct);
} else {
md.showNotification('warning', msg.txt, 'danger', 'top', 'right');
}
// Hide the loader
$(".tl-loader", _this).addClass("d-none");
return true;
}
});
});
</script>
+20
View File
@@ -0,0 +1,20 @@
<?php if (JAK_SHOW_IPS) { ?>
<script src="<?php echo BASE_URL;?>js/leaflet.js" type="text/javascript"></script>
<script type="text/javascript">
var marker = new Array();
var markerid = [];
var statmap = L.map('map_canvas', {zoomControl:true}).setView([10,4], 2);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
}).addTo(statmap);
// Disable drag and zoom handlers.
statmap.dragging.enable();
statmap.touchZoom.enable();
statmap.doubleClickZoom.disable();
statmap.scrollWheelZoom.disable();
</script>
<?php } ?>
+18
View File
@@ -0,0 +1,18 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
$(document).ready(function() {
$("#jak_delock_all").click(function() {
var checked_status = this.checked;
$(".highlight").each(function()
{
this.checked = checked_status;
});
});
});
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+6
View File
@@ -0,0 +1,6 @@
<!-- JavaScript for select all -->
<script type="text/javascript">
ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
+89
View File
@@ -0,0 +1,89 @@
<?php include_once 'header.php';?>
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-md-8">
<div class="card card-stats">
<div class="card-header card-header-warning card-header-icon">
<div class="card-icon">
<i class="material-icons">av_timer</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s6"];?></p>
<h3 class="card-title"><?php echo secondsToTime($total_support, $jkl['g230']);?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
<div class="col-md-4">
<div class="card card-stats">
<div class="card-header card-header-rose card-header-icon">
<div class="card-icon">
<i class="material-icons">email</i>
</div>
<p class="card-category"><?php echo $jkl["stat_s19"];?></p>
<h3 class="card-title"><?php echo $bounce_percentage;?></h3>
</div>
<div class="card-footer">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p><span class="badge badge-dark"><i class="fa fa-comments"></i> <?php echo $jkl['g225'];?></span>
<span class="badge badge-danger"><i class="fa fa-file-alt"></i> <?php echo $jkl['g226'];?></span></p>
</div>
</div>
<?php if (isset($totalAll) && $totalAll != 0) { ?>
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">textsms</i>
</div>
<h4 class="card-title "><?php echo $jkl["m1"];?></h4>
</div>
<div class="card-body">
<?php if (JAK_SUPERADMINACCESS) { ?>
<div class="pull-right">
<a class="btn btn-warning btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('leads', 'truncate');?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e40"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-exclamation-triangle"></i></a> <button class="btn btn-danger btn-sm btn-confirm" data-action="delete" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></button>
</div>
<div class="clearfix"></div>
<?php } ?>
<table id="dynamic-data" class="table table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>#</th>
<th><input type="checkbox" id="jak_delete_all"></th>
<th><?php echo $jkl["g54"];?></th>
<th><?php echo $jkl["l5"];?></th>
<th><?php echo $jkl["g130"];?></th>
<th><?php echo $jkl["g131"];?></th>
<th><?php echo $jkl["g181"];?></th>
<th><i class="fa fa-comments"></i></th>
<th><?php echo $jkl["g13"];?></th>
</tr>
</thead>
</table>
</div>
</div>
<input type="hidden" name="action" id="action">
</form>
<?php } else { ?>
<div class="alert alert-rose">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
<?php include_once 'footer.php';?>
+158
View File
@@ -0,0 +1,158 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-pills nav-pills-warning nav-pills-icons justify-content-center">
<li class="nav-item">
<a class="nav-link lc-info active" data-chat="info" href="javascript:void(0)">
<i class="material-icons">info</i> <?php echo $jkl['g40'];?>
</a>
</li>
<li class="nav-item">
<a class="nav-link lc-info" data-chat="edit" href="javascript:void(0)">
<i class="material-icons">person</i> <?php echo $jkl['g47'];?>
</a>
</li>
<li class="nav-item">
<a class="nav-link lc-info" href="javascript:void(0)" data-chat="search">
<i class="material-icons">search</i> <?php echo $jkl['s5'];?>
</a>
</li>
<li class="nav-item">
<a class="nav-link lc-info" href="javascript:void(0)" data-chat="files">
<i class="material-icons">attach_file</i> <?php echo $jkl['g51'];?>
</a>
</li>
<li class="nav-item">
<a class="nav-link lc-info" href="javascript:void(0)" data-chat="starred">
<i class="material-icons">star</i> <?php echo $jkl['g275'];?>
</a>
</li>
<li class="nav-item">
<a class="nav-link lc-info" href="javascript:void(0)" data-chat="faq">
<i class="material-icons">help_outline</i> <?php echo $jkl['g278'];?>
</a>
</li>
<li class="nav-item">
<a class="nav-link lc-info" href="javascript:void(0)" data-chat="history">
<i class="material-icons">history</i> <?php echo $jkl['m1'];?>
</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">chat</i>
</div>
<h4 class="card-title" id="content-header-title"></h4>
</div>
<div class="card-body">
<div class="main-chat-output">
<!-- Operator transfer / Info div -->
<div class="alert alert-info chat-inactive-container" id="transfer"><a href="#" class="alert-link main-sidebar-toggle d-md-none"><i class="fa fa-bars"></i></a> <?php echo $jkl['g79'];?></div>
<div class="chat-active-container" style="display: none;">
<!-- chat output -->
<div class="chat-wrapper">
<div id="chatOutput" class="direct-chat-messages"></div>
</div>
<div class="chat-footer">
<!--- Input form -->
<form name="messageInput" id="MessageInput" action="javascript:sendInput(activeConvID);">
<div class="form-group">
<label class="sr-only" for="message"><?php echo $jkl["g135"];?></label>
<div class="input-group">
<div class="emoji-picker">
<div id="emoji"></div>
</div>
<textarea name="message" id="message" class="form-control" rows="1" placeholder="<?php echo $jkl["g135"];?>"></textarea>
<?php if ($jakuser->getVar("files")) { ?>
<div class="chat-upload">
<span class="area fa fa-paperclip" id="cUploadDrop"></span>
</div>
<?php } ?>
</div>
</div>
<div class="row chat-extra-input">
<div class="col-4">
<div class="form-group">
<label class="sr-only" for="sendurl"><?php echo $jkl["g238"];?></label>
<input type="text" id="sendurl" autocomplete="off" name="sendurl" placeholder="<?php echo $jkl["g238"];?>" class="form-control" />
</div>
</div>
<div class="col-4">
<?php if ($jakuser->getVar("responses") && isset($HD_RESPONSES) && is_array($HD_RESPONSES)) { ?>
<div class="form-group">
<select name="standard" id="response" class="col-12" data-live-search="true">
</select>
</div>
<?php } ?>
</div>
<div class="col-4">
<?php if ($jakuser->getVar("files") && isset($HD_FILES) && is_array($HD_FILES)) { ?>
<div class="input-group mt-2">
<select name="files" id="files" class="custom-select">
<option value="0"><?php echo $jkl["g8"];?></option>
<?php foreach($HD_FILES as $f) { ?>
<option value="<?php echo $f["id"];?>"><?php echo $f["name"];?></option>
<?php } ?>
</select>
<div class="input-group-append">
<a id="sendFile" class="btn btn-success"><?php echo $jkl["g4"].' '.$jkl["g9"];?></a>
</div>
</div>
<?php } ?>
</div>
</div>
<input type="hidden" name="msgeditid" id="msgeditid">
<input type="hidden" name="msgquoteid" id="msgquoteid">
<input type="hidden" name="userID" id="userID" value="<?php echo $jakuser->getVar("id");?>">
<input type="hidden" name="userName" id="userName" value="<?php echo $jakuser->getVar("username");?>">
<input type="hidden" name="operatorName" id="operatorName" value="<?php echo $jakuser->getVar("name");?>">
<input type="hidden" name="clientOnline" id="clientOnline" value="<?php echo $jakuser->getVar("useronlinelist");?>">
</form>
<div class="alert alert-rose" id="client-left" style="display: none"><?php echo $jkl['g64'];?></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4" id="lcinfo-container">
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="material-icons" id="lcinfo-icon">info</i>
</div>
<h4 class="card-title" id="lcinfo-title"><?php echo $jkl['g40'];?></h4>
</div>
<div class="card-body">
<div class="flex-client-info"></div>
</div>
</div>
</div>
</div>
<?php include_once 'footer.php';?>
+61
View File
@@ -0,0 +1,61 @@
<div class="modal-header">
<h4 class="modal-title"><?php echo $jkl["g224"];?></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<div class="table-responsive">
<table class="table table-condensed">
<thead>
<tr>
<th><?php echo $jkl["g54"];?></th>
<th><?php echo $jkl["g12"];?></th>
</tr>
<tr>
<td><?php echo $row['name'];?></td>
<td><?php echo $row['country'];?> / <?php echo $row['city'];?></td>
</tr>
</table>
</div>
<h3><?php echo $jkl["g224"];?></h3>
<div id="clientmap-canvas" style="height: 300px;margin: 0px;padding: 0px"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $jkl["g180"];?></button>
</div>
<script src="js/leaflet.js" type="text/javascript"></script>
<script type="text/javascript">
function loadmap() {
<?php if ($row['latitude']) { ?>
var map = L.map('map_canvas', {zoomControl:true}).setView([<?php echo $row['latitude'];?>,<?php echo $row['longitude'];?>], 8);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>'
}).addTo(statmap);
// Disable drag and zoom handlers.
statmap.dragging.disable();
statmap.touchZoom.disable();
statmap.doubleClickZoom.disable();
statmap.scrollWheelZoom.disable();
var marker = L.marker([<?php echo $row['latitude'];?>,<?php echo $row['longitude'];?>]).addTo(map);
marker.bindPopup("<?php echo $row['name'];?>").openPopup();
<?php } else { ?>
$('#clientmap-canvas').addClass("text-danger").html("<?php echo $jkl['i3'];?>");
<?php } ?>
}
$('#jakModal').on('shown.bs.modal', function () {
loadmap();
});
</script>
+56
View File
@@ -0,0 +1,56 @@
<?php include "header.php";?>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top text-white" id="navigation-example">
<div class="container">
<div class="navbar-wrapper">
<a class="navbar-brand" href="javascript:void(0)"><?php echo JAK_TITLE;?></a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation" data-target="#navigation-example">
<span class="sr-only">Toggle navigation</span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
</button>
<div class="collapse navbar-collapse justify-content-end">
<ul class="navbar-nav">
<li class="nav-item">
<a href="<?php echo BASE_URL;?>" class="nav-link">
<i class="material-icons">dashboard</i> <?php echo $jkl['m'];?>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<div class="page-header lock-page header-filter" filter-color="black" style="background-image: url('img/lock.jpg'); background-size: cover; background-position: top center;">
<!-- you can change the color of the filter page using: data-color="blue | purple | green | orange | red | rose " -->
<div class="container">
<div class="col-md-4 ml-auto mr-auto">
<div class="card card-profile text-center card-hidden">
<div class="card-header ">
<div class="card-avatar">
<img class="img" src="<?php echo BASE_URL_ORIG.basename(JAK_FILES_DIRECTORY).$uilock[2];?>">
</div>
</div>
<div class="card-body ">
<h4 class="card-title"><?php echo $uilock[1];?></h4>
<?php if (isset($ErrLogin)) { ?><p class="text-center"><?php echo $jkl['l'];?></p><?php } ?>
<form class="form" id="login_form" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="form-group">
<label for="password" class="bmd-label-floating"><?php echo $jkl["l2"];?></label>
<input type="password" name="password" class="form-control<?php if (isset($ErrLogin)) echo " is-invalid";?>" id="password" required="true">
</div>
</div>
<div class="card-footer justify-content-center">
<input type="hidden" name="username" value="<?php echo $uilock[0];?>">
<input type="hidden" name="action" value="unlock">
<button type="submit" name="lockID" class="btn btn-rose btn-round"><?php echo $jkl['l22'];?></button>
</form>
</div>
</div>
</div>
</div>
<?php include "footer.php";?>
+110
View File
@@ -0,0 +1,110 @@
<?php include "header.php";?>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top text-white" id="navigation-example">
<div class="container">
<div class="navbar-wrapper">
<a class="navbar-brand" href="javascript:void(0)"><?php echo JAK_TITLE;?></a>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation" data-target="#navigation-example">
<span class="sr-only">Toggle navigation</span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
</button>
<div class="collapse navbar-collapse justify-content-end">
<ul class="navbar-nav">
<li class="nav-item">
<a href="<?php echo BASE_URL;?>" class="nav-link">
<i class="material-icons">dashboard</i> <?php echo $jkl['m'];?>
</a>
</li>
<li class="nav-item">
<a href="javascript:void(0)" class="nav-link lost-pwd">
<i class="material-icons">lock_open</i> <?php echo $jkl['f'];?>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<div class="page-header login-page header-filter" filter-color="black" style="background: url('img/login.jpg') no-repeat center center fixed;background-size: cover;height: 100%;overflow: hidden;">
<!-- you can change the color of the filter page using: data-color="blue | purple | green | orange | red | rose " -->
<div class="container">
<div class="col-lg-4 col-md-6 col-sm-6 ml-auto mr-auto">
<div class="loginF">
<form class="form" id="login_form" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card card-login card-hidden">
<div class="card-header card-header-rose text-center">
<h4 class="card-title"><?php echo $jkl['l3'];?></h4>
<?php if (isset($ErrLogin)) { ?><p class="text-center"><?php echo $jkl['l'];?></p><?php } ?>
</div>
<div class="card-body">
<span class="bmd-form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="material-icons">email</i>
</span>
</div>
<input type="text" name="username" class="form-control<?php if (isset($ErrLogin)) echo " is-invalid";?>" id="username" required="true" placeholder="<?php echo $jkl["l1"].' / '.$jkl["l5"];?>">
</div>
</span>
<span class="bmd-form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="material-icons">lock_outline</i>
</span>
</div>
<input type="password" name="password" class="form-control<?php if (isset($ErrLogin)) echo " is-invalid";?>" id="password" required="true" placeholder="<?php echo $jkl["l2"];?>">
</div>
</span>
</div>
<div class="card-footer justify-content-center">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="lcookies" value="1">
<span class="form-check-sign">
<span class="check"></span>
</span><?php echo $jkl["l4"];?>
</label>
</div>
<input type="hidden" name="action" value="login">
<button type="submit" name="logID" class="btn btn-rose btn-round"><?php echo $jkl["l3"];?></button>
</div>
</div>
</form>
</div>
<div class="forgotP">
<form class="form" id="login_form" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="card card-login card-hidden">
<div class="card-header card-header-rose text-center">
<h4 class="card-title"><?php echo $jkl["l13"];?></h4>
<?php if (isset($errorfp)) { ?><p class="text-center"><?php echo $errorfp["e"];?></p><?php } ?>
</div>
<div class="card-body">
<span class="bmd-form-group">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="material-icons">email</i>
</span>
</div>
<input type="text" name="lsE" class="form-control<?php if (isset($errorfp)) echo " is-invalid";?>" id="email" required="true" placeholder="<?php echo $jkl["l5"];?>">
</div>
</span>
</div>
<div class="card-footer justify-content-center">
<button type="submit" name="forgotP" class="btn btn-rose btn-round"><?php echo $jkl["g94"];?></button>
</div>
</div>
</form>
</div>
</div>
</div>
<?php include "footer.php";?>
+62
View File
@@ -0,0 +1,62 @@
<?php include_once 'header.php';?>
<div class="row">
<div class="col-md-12">
<?php if (isset($totalAll) && $totalAll != 0) { ?>
<div class="row">
<div class="col-md-12">
<form method="post" class="jak_form" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="card">
<div class="card-body">
<?php if (JAK_SUPERADMINACCESS) { ?>
<p class="pull-right">
<a class="btn btn-warning btn-sm btn-confirm" href="<?php echo JAK_rewrite::jakParseurl('logs', 'truncate');?>" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e40"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fas fa-exclamation-triangle"></i></a> <button class="btn btn-danger btn-sm btn-confirm" data-action="delete" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e30"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash"></i></button>
</p>
<div class="clearfix"></div>
<?php } ?>
<table id="dynamic-data" class="table table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th style="width: 3%">#</th>
<th style="width: 3%"><input type="checkbox" id="jak_delete_all"></th>
<th style="width: 50%"><?php echo $jkl["g146"];?></th>
<th style="width: 25%"><?php echo $jkl["g136"];?></th>
<th style="width: 19%"><?php echo $jkl["g13"];?></th>
</tr>
</thead>
<tfoot>
<tr>
<th style="width: 3%">#</th>
<th style="width: 3%"><input type="checkbox" id="jak_delete_all"></th>
<th style="width: 50%"><?php echo $jkl["g146"];?></th>
<th style="width: 25%"><?php echo $jkl["g136"];?></th>
<th style="width: 19%"><?php echo $jkl["g13"];?></th>
</tr>
</tfoot>
<tbody></tbody>
</table>
</div>
</div>
<input type="hidden" name="action" id="action">
</form>
</div>
</div>
<?php } else { ?>
<div class="alert alert-info">
<?php echo $jkl['i3'];?>
</div>
<?php } ?>
</div>
</div>
<?php include_once 'footer.php';?>
+117
View File
@@ -0,0 +1,117 @@
<?php include_once 'header.php';?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="fa fa-id-badge fa-2x"></i>
</div>
<h4 class="card-title"> <?php echo $jkl["g336"];?></h4>
</div>
<div class="card-body">
<div class="alert alert-primary">
<span><?php echo $licmsg;?></span>
</div>
<?php if ($verify_response['status'] != true) { ?>
<div class="form-group">
<label for="jaklic"><?php echo $jkl["g337"];?></label>
<input type="text" name="jak_lic" id="jaklic" class="form-control<?php if (isset($errors["e1"])) echo " is-invalid";?>" autocomplete="off">
</div>
<div class="form-group">
<label for="jaklicusr"><?php echo $jkl["g338"];?></label>
<input type="text" name="jak_licusr" id="jaklicusr" class="form-control<?php if (isset($errors["e2"])) echo " is-invalid";?>" autocomplete="off">
</div>
<button type="submit" name="regLicense" class="btn btn-primary"><?php echo $jkl["g4"];?></button>
<?php } else { ?>
<button type="submit" name="deregLicense" class="btn btn-danger"><?php echo $jkl["g339"];?></button>
<?php } ?>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="fa fa-certificate fa-2x"></i>
</div>
<h4 class="card-title"> <?php echo $jkl["g236"];?></h4>
</div>
<div class="card-body">
<?php if ($verify_response['status']) { $update_data = $jaklic->check_update();?>
<div class="alert alert-info">
<span><?php echo $update_data['message'];?></span>
</div>
<div class="alert alert-primary"><?php echo sprintf($jkl['g118'], JAK_VERSION);?></div>
<?php if ($update_data['status']) { ?>
<p><?php echo $update_data['changelog'];?></p><?php
$update_id = null;
$has_sql = null;
$version = null;
if (!empty($_POST['update_id'])) {
$update_id = strip_tags(trim($_POST["update_id"]));
$has_sql = strip_tags(trim($_POST["has_sql"]));
$version = strip_tags(trim($_POST["version"]));
?>
<div class="progress-container progress-primary mb-3">
<span class="progress-badge"><?php echo $jkl['g340'];?></span>
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" id="updprog" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
<span class="progress-value" id="updprogval">0%</span>
</div>
</div>
</div>
<?php
$jaklic->download_update($_POST['update_id'], $_POST['has_sql'], $_POST['version']);
} else { ?>
<input type="hidden" value="<?php echo $update_data['update_id'];?>" name="update_id">
<input type="hidden" value="<?php echo $update_data['has_sql'];?>" name="has_sql">
<input type="hidden" value="<?php echo $update_data['version'];?>" name="version">
<button type="submit" name="updSoftware" class="btn btn-success"><?php echo $jkl["g235"];?></button>
<?php } } } ?>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">build</i>
</div>
<h4 class="card-title "><?php echo $jkl["g183"];?></h4>
</div>
<div class="card-body">
<table class="table table-striped">
<tbody>
<tr>
<td><?php echo $jkl["g182"];?></td>
<td><button type="submit" name="delCache" class="btn btn-primary"><?php echo $jkl["g48"];?></button></td>
</tr>
<tr>
<td><?php echo $jkl["g313"];?></td>
<td><button type="submit" name="delTokens" class="btn btn-danger"><?php echo $jkl["g48"];?></button></td>
</tr>
<tr>
<td><?php echo $jkl["hd183"];?></td>
<td><button type="submit" name="delTFiles" class="btn btn-danger"><?php echo $jkl["g48"];?></button></td>
</tr>
<tr>
<td><?php echo $jkl["g185"];?></td>
<td><button type="submit" name="optimize" class="btn btn-success"><?php echo $jkl["g185"];?></button></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+114
View File
@@ -0,0 +1,114 @@
<div class="modal-header">
<h4 class="modal-title"><?php echo $jkl["hd251"];?></h4>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<div class="box">
<div class="box-body">
<div class="card">
<div class="card-header card-header-text card-header-rose">
<div class="card-text">
<h4 class="card-title"><?php echo $jkl["hd191"];?></h4>
</div>
</div>
<div class="card-body">
<form class="jak-ajaxform" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<div class="row">
<div class="col-10">
<div class="form-group">
<label for="ticketid" class="control-label"><?php echo $jkl["hd191"];?></label>
<input type="text" name="ticketid" id="ticketid" class="form-control">
</div>
</div>
<div class="col-2">
<button type="submit" class="btn btn-primary ls-submit"><?php echo $jkl["hd252"];?></button>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header card-header-text card-header-info">
<div class="card-text">
<h4 class="card-title"><?php echo $jkl["hd253"];?></h4>
</div>
</div>
<div class="card-body table-responsive">
<table class="table table-hover">
<thead class="text-warning">
<th><?php echo $jkl['hd191'];?></th>
<th><?php echo $jkl['g221'];?></th>
<th><?php echo $jkl['i70'];?></th>
<th><?php echo $jkl['i67'];?></th>
</thead>
<tbody>
<?php foreach ($CLI_TICKET as $v) { ?>
<tr>
<td>#<?php echo $v["id"];?></td>
<td><a href="javascript:void(0)" data-tid="<?php echo $v["id"];?>" class="jak-ticketmerge"><?php echo $v["subject"];?></a></td>
<td><?php echo JAK_base::jakTimesince($v["initiated"], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
<td><?php echo JAK_base::jakTimesince($v["updated"], JAK_DATEFORMAT, JAK_TIMEFORMAT);?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</form>
</div>
<div class="box-footer">
<div class="jak-thankyou"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo $jkl["g180"];?></button>
</div>
<script type="text/javascript" src="../js/contact.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.jak-ticketmerge').click(function() {
var ticketid = $(this).data("tid");
$('#ticketid').val(ticketid);
$('.jak-ajaxform').submit();
$('#jakModal').on('hidden.bs.modal', function() {
location.reload();
});
});
$('.ls-submit').click(function() {
$('#jakModal').on('hidden.bs.modal', function() {
location.reload();
});
});
});
ls.main_url = "<?php echo BASE_URL;?>";
ls.lsrequest_uri = "<?php echo JAK_PARSE_REQUEST;?>";
ls.ls_submit = "<?php echo $jkl['g4'];?>";
ls.ls_submitwait = "<?php echo $jkl['g67'];?>";
</script>
+90
View File
@@ -0,0 +1,90 @@
<ul class="nav">
<li class="nav-item<?php if ($page == '') echo ' active';?>"><a href="<?php echo BASE_URL_ADMIN;?>" class="nav-link"><i class="material-icons">dashboard</i><p><?php echo $jkl['m'];?></p></a></li>
<?php if (jak_get_access("support", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'support') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('support');?>" class="nav-link"><i class="material-icons">healing</i><p><?php echo $jkl["hd"];?></p></a></li>
<?php } if (jak_get_access("leads", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'leads') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('leads');?>" class="nav-link"><i class="material-icons">sms</i><p><?php echo $jkl["m1"];?></p></a></li>
<?php } if (jak_get_access("off_all", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'contacts') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('contacts');?>" class="nav-link"><i class="material-icons">insert_comment</i><p><?php echo $jkl["m22"];?></p></a></li>
<?php } ?>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#contentSection">
<i class="material-icons">ballot</i>
<p> <?php echo $jkl['m32'];?>
<b class="caret"></b>
</p>
</a>
<div class="collapse<?php if (in_array($page, array('blog', 'faq', 'answers'))) echo ' show';?>" id="contentSection">
<ul class="nav">
<?php if (jak_get_access("blog", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'blog') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('blog');?>" class="nav-link"><i class="material-icons">description</i><p><?php echo $jkl["hd13"];?></p></a></li>
<?php } if (jak_get_access("faq", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'faq') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('faq');?>" class="nav-link"><i class="material-icons">help</i><p><?php echo $jkl["hd1"];?></p></a></li>
<?php } if (jak_get_access("answers", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'answers' && $page1 == 'cms') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('answers', 'cms');?>" class="nav-link"><i class="material-icons">article</i><p><?php echo $jkl["hd126"];?></p></a></li>
<li class="nav-item<?php if ($page == 'answers' && $page1 != 'cms') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('answers');?>" class="nav-link"><i class="material-icons">assignment</i><p><?php echo $jkl["m20"];?></p></a></li>
<?php } ?>
</ul>
</div>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#componentsSection">
<i class="material-icons">apps</i>
<p> <?php echo $jkl['m33'];?>
<b class="caret"></b>
</p>
</a>
<div class="collapse<?php if (in_array($page, array('files', 'response', 'proactive', 'bot', 'departments', 'buttons', 'customfield', 'blacklist', 'groupchats', 'widget'))) echo ' show';?>" id="componentsSection">
<ul class="nav">
<?php if (jak_get_access("files", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'files') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('files');?>" class="nav-link"><i class="material-icons">archive</i><p><?php echo $jkl["m2"];?></p></a></li>
<?php } if (jak_get_access("responses", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'response') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('response');?>" class="nav-link"><i class="material-icons">reply</i><p><?php echo $jkl["m3"];?></p></a></li>
<?php } if (jak_get_access("proactive", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'proactive') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('proactive');?>" class="nav-link"><i class="material-icons">cast</i><p><?php echo $jkl["m18"];?></p></a></li>
<?php } if (jak_get_access("proactive", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'bot') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('bot');?>" class="nav-link"><i class="material-icons">mood</i><p><?php echo $jkl["m23"];?></p></a></li>
<?php } if (jak_get_access("departments", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'departments') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('departments');?>" class="nav-link"><i class="material-icons">list_alt</i><p><?php echo $jkl["m9"];?></p></a></li>
<?php } if (JAK_MAIN_OP){?>
<li class="nav-item<?php if ($page == 'buttons') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('buttons');?>" class="nav-link"><i class="material-icons">web</i><p><?php echo $jkl["g71"];?></p></a></li>
<li class="nav-item<?php if ($page == 'customfield') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('customfield', 'ticketstatus');?>" class="nav-link"><i class="material-icons">check_box</i><p><?php echo $jkl["hd148"];?></p></a></li>
<?php } if (jak_get_access("blacklist", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'blacklist') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('blacklist');?>" class="nav-link"><i class="material-icons">traffic</i><p><?php echo $jkl["m27"];?></p></a></li>
<?php } if (jak_get_access("groupchats", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'groupchats') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('groupchats');?>" class="nav-link"><i class="material-icons">group</i><p><?php echo $jkl["m29"];?></p></a></li>
<?php } if (jak_get_access("widget", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'widget') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('widget');?>" class="nav-link"><i class="material-icons">widgets</i><p><?php echo $jkl["m26"];?></p></a></li>
<?php } ?>
</ul>
</div>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="collapse" href="#statSection">
<i class="material-icons">pie_chart</i>
<p> <?php echo $jkl['m10'];?>
<b class="caret"></b>
</p>
</a>
<div class="collapse<?php if (in_array($page, array('uonline', 'statistics', 'logs', 'chats'))) echo ' show';?>" id="statSection">
<ul class="nav">
<li class="nav-item<?php if ($page == 'uonline') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('uonline');?>" class="nav-link"><i class="material-icons">supervised_user_circle</i><p><?php echo $jkl["g122"];?></p></a></li>
<?php if (jak_get_access("statistic", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'statistics') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('statistics');?>" class="nav-link"><i class="material-icons">bubble_chart</i><p><?php echo $jkl["m10"];?></p></a></li>
<?php } if (jak_get_access("logs", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'logs') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('logs');?>" class="nav-link"><i class="material-icons">assignment_turned_in</i><p><?php echo $jkl["m6"];?></p></a></li>
<?php } if (jak_get_access("ochat", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'chats') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('chats');?>" class="nav-link"><i class="material-icons">forum</i><p><?php echo $jkl["u41"];?></p></a></li>
<?php } ?>
</ul>
</div>
</li>
<li class="nav-item<?php if ($page == 'users') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('users');?>" class="nav-link"><i class="material-icons">person</i><p><?php echo $jkl["m4"];?></p></a></li>
<?php if (jak_get_access("settings", $jakuser->getVar("permissions"), JAK_MAIN_OP) || jak_get_access("blocklist", $jakuser->getVar("permissions"), JAK_MAIN_OP)){;?>
<li class="nav-item<?php if ($page == 'settings') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('settings');?>" class="nav-link"><i class="material-icons">settings</i><p><?php echo $jkl["m5"];?></p></a></li>
<?php } if (jak_get_access("billing", $jakuser->getVar("permissions"), JAK_MAIN_OP)){?>
<li class="nav-item<?php if ($page == 'billing') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('billing');?>" class="nav-link"><i class="material-icons">monetization_on</i><p><?php echo $jkl["hd22"];?></p></a></li>
<?php } if (JAK_SUPERADMINACCESS){?>
<li class="nav-item<?php if ($page == 'maintenance') echo ' active';?>"><a href="<?php echo JAK_rewrite::jakParseurl('maintenance');?>" class="nav-link"><i class="material-icons">build</i><p><?php echo $jkl["m19"];?></p></a></li>
<?php } ?>
</ul>
+150
View File
@@ -0,0 +1,150 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd30"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php if (isset($_POST["title"])) echo $_POST["title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="previmg"><?php echo $jkl["hd34"];?></label>
<div class="input-group">
<input type="text" name="previmg" id="previmg" class="form-control" value="<?php if (isset($_POST["previmg"])) echo $_POST["previmg"];?>">
<span class="input-group-btn">
<a class="btn btn-rose btn-round btn-fab" data-toggle="modal" data-target="#jakFM" type="button" href="javascript:void(0)"><i class="far fa-file-archive"></i></a>
</span>
</div><!-- /input-group -->
</div>
<div class="form-group">
<p><label class="control-label" for="title"><?php echo $jkl["hd287"];?></label></p>
<input type="text" name="tags" id="tags" class="form-control tagin" value="<?php if (isset($_REQUEST["tags"])) echo $_REQUEST["tags"];?>" data-placeholder="<?php echo $jkl['hd288'];?>">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if (isset($_POST["jak_lang"]) && $_POST["jak_lang"] == $lf) echo ' selected'; elseif (JAK_LANG == $lf) echo ' selected';?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="comments"><?php echo $jkl["hd29"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="comments" value="1"<?php if (!isset($_POST["comments"]) || isset($_POST["comments"]) && $_POST["comments"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="comments" value="0"<?php if (isset($_POST["comments"]) && $_POST["comments"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="socialbutton"><?php echo $jkl["hd33"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="1"<?php if (!isset($_POST["socialbutton"]) || isset($_POST["socialbutton"]) && $_POST["socialbutton"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="0"<?php if (isset($_POST["socialbutton"]) && $_POST["socialbutton"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="showdate"><?php echo $jkl["hd32"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="showdate" value="1"<?php if (!isset($_POST["showdate"]) || isset($_POST["showdate"]) && $_POST["showdate"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="showdate" value="0"<?php if (isset($_POST["showdate"]) && $_POST["showdate"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="membersonly"><?php echo $jkl["hd36"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="membersonly" value="1"<?php if (isset($_POST["membersonly"]) && $_POST["membersonly"] == 1) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="membersonly" value="0"<?php if (!isset($_POST["membersonly"]) || isset($_POST["membersonly"]) && $_POST["membersonly"] == 0) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<textarea name="content" id="content-editor" rows="5" class="form-control"><?php if (isset($_POST["content"])) echo $_POST["content"];?></textarea>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('blog');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+176
View File
@@ -0,0 +1,176 @@
<?php include_once 'header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];
if (isset($errors["e3"])) echo $errors["e3"];
if (isset($errors["e4"])) echo $errors["e4"];
if (isset($errors["e5"])) echo $errors["e5"];
if (isset($errors["e6"])) echo $errors["e6"];?></div>
<?php } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g40"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="name"><?php echo $jkl["u"];?></label>
<input type="text" name="jak_name" id="name" class="form-control" value="<?php if (isset($_POST["jak_name"])) echo $_POST["jak_name"];?>">
</div>
<div class="form-group<?php if (isset($errors["e2"])) echo " has-danger";?>">
<label class="control-label" for="email"><?php echo $jkl["u1"];?></label>
<input type="text" name="jak_email" id="email" class="form-control" value="<?php if (isset($_POST["jak_email"])) echo $_POST["jak_email"];?>">
</div>
<div class="form-group">
<label class="control-label" for="jak_lang"><?php echo $jkl["g22"];?></label>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option value=""><?php echo $jkl["u11"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<?php if ($jakosub['files'] == 1) { ?>
<div class="form-group">
<label class="control-label" for="jak_upload"><?php echo $jkl["hd139"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_upload" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_upload" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<?php } ?>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="send_email" value="1"> <?php echo $jkl["hd120"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="material-icons">vpn_key</i>
</div>
<h4 class="card-title "><?php echo $jkl["g39"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="pass"><?php echo $jkl["u4"];?></label>
<input type="password" name="jak_password" id="pass" class="form-control" value="">
</div>
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="jak_confirm_password"><?php echo $jkl["u5"];?></label>
<input type="password" name="jak_confirm_password" class="form-control" value="">
</div>
<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>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-danger">
<div class="card-icon">
<i class="material-icons">list_alt</i>
</div>
<h4 class="card-title "><?php echo $jkl["m9"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_depid"><?php echo $jkl["hd2"];?></label>
<select name="jak_depid[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if (isset($_POST["jak_depid"]) && $_POST["jak_depid"] == '0') { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $v) { ?>
<option value="<?php echo $v["id"];?>"><?php echo $v["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depids"><?php echo $jkl["hd3"];?></label>
<select name="jak_depids[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if (isset($_POST["jak_depids"]) && $_POST["jak_depids"] == '0') { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEP_SUPPORT) && is_array($JAK_DEP_SUPPORT)) foreach($JAK_DEP_SUPPORT as $d) { ?>
<option value="<?php echo $d["id"];?>"><?php echo $d["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depidf"><?php echo $jkl["hd4"];?></label>
<select name="jak_depidf[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if (isset($_POST["jak_depidf"]) && $_POST["jak_depidf"] == '0') { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_CAT_FAQ) && is_array($JAK_CAT_FAQ)) foreach($JAK_CAT_FAQ as $f) { ?>
<option value="<?php echo $f["id"];?>"><?php echo $f["title"];?></option>
<?php } ?>
</select>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('users', 'clients');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+132
View File
@@ -0,0 +1,132 @@
<?php include_once 'header.php';?>
<?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 } ?>
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" enctype="multipart/form-data">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd27"];?></h4>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="title"><?php echo $jkl["g16"];?></label>
<input type="text" name="title" id="title" class="form-control<?php if (isset($errors["e"])) echo " is-invalid";?>" value="<?php if (isset($_POST["title"])) echo $_POST["title"];?>">
</div>
<div class="form-group">
<label class="control-label" for="jak_icon"><?php echo $jkl["hd223"];?></label>
<div class="input-group">
<input type="text" name="jak_icon" class="form-control" value="<?php if (isset($_REQUEST["jak_icon"]) && !empty($_REQUEST["jak_icon"])) echo $_REQUEST["jak_icon"];?>">
<div class="input-group-append">
<span class="input-group-text">
<a href="https://fontawesome.com/v5/search" target="_blank"><i class="fa fa-link"></i></a>
</span>
</div>
</div>
</div>
<div class="form-group">
<p><label class="control-label" for="title"><?php echo $jkl["hd287"];?></label></p>
<input type="text" name="tags" id="tags" class="form-control tagin" value="<?php if (isset($_REQUEST["tags"])) echo $_REQUEST["tags"];?>" data-placeholder="<?php echo $jkl['hd288'];?>">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<select name="jak_catid" id="catid" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["hd24"];?></option>
<option value="0"<?php if (isset($_POST["jak_catid"]) && $_POST["jak_catid"] == 0) echo ' selected="selected"';?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_CATEGORIES) && is_array($JAK_CATEGORIES)) foreach($JAK_CATEGORIES as $z) { ?>
<option value="<?php echo $z["id"];?>"<?php if (isset($_POST["jak_catid"]) && $_POST["jak_catid"] == $z["id"]) echo ' selected="selected"';?>><?php echo $z["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option disabled><?php echo $jkl["g22"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"<?php if (isset($_POST["jak_lang"]) && $_POST["jak_lang"] == $lf) echo ' selected'; elseif (JAK_LANG == $lf) echo ' selected';?>><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="socialbutton"><?php echo $jkl["hd33"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="1"<?php if (!isset($_POST["socialbutton"]) || isset($_POST["socialbutton"]) && $_POST["socialbutton"] == 1) echo ' checked';?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="socialbutton" value="0"<?php if (isset($_POST["socialbutton"]) && $_POST["socialbutton"] == 0) echo ' checked';?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="control-label" for="shownewticket"><?php echo $jkl["hd331"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="shownewticket" value="1"<?php if (!isset($_POST["shownewticket"]) || isset($_POST["shownewticket"]) && $_POST["shownewticket"] == 1) echo ' checked';?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="shownewticket" value="0"<?php if (isset($_POST["shownewticket"]) && $_POST["shownewticket"] == 0) echo ' checked';?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<textarea name="content" id="content-editor" rows="5" class="form-control"><?php if (isset($_POST["content"])) echo $_POST["content"];?></textarea>
</div>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('faq');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</form>
<?php include_once 'footer.php';?>
+292
View File
@@ -0,0 +1,292 @@
<?php include_once 'header.php';?>
<?php if (!$supportaccess) { ?>
<div class="alert alert-rose"><?php echo $jkl['i13'];?></div>
<?php } else { if ($errors) { ?>
<div class="alert alert-danger">
<?php if (isset($errors["subject"])) echo $errors["subject"];
if (isset($errors["content-editor"])) echo $errors["content-editor"];
if (isset($errors["jak_client"])) echo $errors["jak_client"];
if (isset($errors["emailc"])) echo $errors["emailc"];
if (isset($errors["namec"])) echo $errors["namec"];?>
</div>
<?php } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>" enctype="multipart/form-data">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">confirmation_number</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd193"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["subject"])) echo " has-danger";?>">
<label for="subject"><?php echo $jkl["g16"];?></label>
<input type="text" name="subject" id="subject" class="form-control" value="<?php if (isset($_POST["subject"]) && !empty($_POST["subject"])) echo $_POST["subject"];?>">
</div>
<?php if (isset($JAK_RESPONSE_DATA) && !empty($JAK_RESPONSE_DATA)) { ?>
<div class="form-group">
<p><label for="supresp"><?php echo $jkl["u35"];?></label></p>
<select id="supresp" class="selectpicker col-12" data-live-search="true">
<?php echo $JAK_RESPONSE_DATA;?>
</select>
</div>
<?php } ?>
<div class="form-group<?php if (isset($errors["content-editor"])) echo " has-danger";?>">
<p><label for="content-editor"><?php echo $jkl["g321"];?></label></p>
<textarea name="content" id="content-editor" rows="5" class="form-control"><?php if (isset($_REQUEST["content"]) && !empty($_REQUEST["content"])) echo $_REQUEST["content"];?></textarea>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="inform-client" value="1"> <?php echo $jkl["hd198"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="card-footer text-right">
<a href="<?php echo JAK_rewrite::jakParseurl('support');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<?php if (!empty(JAK_OPENAI_APIKEY)) { ?>
<a href="javascript:" data-scan="grammar" class="btn btn-success btn-translate"><i class="far fa-spell-check"></i> <i class="fa fa-spinner fa-pulse d-none tl-loader"></i></a>
<a href="javascript:" data-scan="translate" class="btn btn-info btn-translate"><i class="fas fa-language"></i> <i class="fa fa-spinner fa-pulse d-none tl-loader"></i></a>
<?php } ?>
<button type="submit" name="save" class="btn btn-primary submitNT"><?php echo $jkl["g38"];?> <i class="fa fa-spinner fa-pulse loader"></i></button>
</div>
</div>
<?php if ($jakuser->getVar("files") && $jakosub['files']) { ?>
<div class="card">
<div class="card-header card-header-icon card-header-danger">
<div class="card-icon">
<i class="material-icons">cloud_upload</i>
</div>
<h4 class="card-title "><?php echo $jkl["g288"];?></h4>
</div>
<div class="card-body">
<table class="table table-striped" id="attach-list">
<?php if (isset($JAK_TICKET_FILES) && is_array($JAK_TICKET_FILES)) foreach($JAK_TICKET_FILES as $k) { ?>
<tr><td>
<?php if (getimagesize(APP_PATH.JAK_FILES_DIRECTORY.'/support/'.$page2.'/'.$k)) { ?>
<a data-toggle="lightbox" href="<?php echo BASE_URL_ORIG.JAK_FILES_DIRECTORY.'/support/'.$page2.'/'.$k;?>"><img src="<?php echo BASE_URL_ORIG.JAK_FILES_DIRECTORY.'/support/'.$page2.'/'.$k;?>" alt="<?php echo $k;?>" class="img-thumbnail" width="50px"></a>
<?php } else { ?>
<?php echo $k;?>
<?php } ?>
<a href="<?php echo BASE_URL_ORIG.JAK_FILES_DIRECTORY.'/support/'.$page2.'/'.$k;?>" class="btn btn-info btn-sm"><i class="fa fa-file-download"></i></a> <a href="<?php echo JAK_rewrite::jakParseurl('support', 'deletef', $page2, $k);?>" class="btn btn-danger btn-sm btn-confirm" data-title="<?php echo addslashes($jkl["g48"]);?>" data-text="<?php echo addslashes($jkl["e32"]);?>" data-type="warning" data-okbtn="<?php echo addslashes($jkl["g279"]);?>" data-cbtn="<?php echo addslashes($jkl["g280"]);?>"><i class="fa fa-trash-alt"></i></a>
</td></tr>
<?php } ?>
</table>
<div id="share-attachments" class="dropzone upload-ticket"></div>
</div>
</div>
<?php } ?>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header card-header-icon card-header-info">
<div class="card-icon">
<i class="material-icons">badge</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd180"];?></h4>
</div>
<div class="card-body">
<dl class="row">
<dt class="col-sm-5"><?php echo $jkl['g130'];?></dt>
<dd class="col-sm-7">
<select name="jak_operator" id="jak_operator" class="selectpicker col-12" data-live-search="true">
<?php foreach ($OPERATOR_ALL as $o) {
echo '<option value="'.$o["id"].'"'.($o["id"] == JAK_USERID ? ' selected' : '').'>'.$o["name"].' ('.$o["email"].')</option>';
} ?>
</select>
</dd>
<dt class="col-sm-5"><?php echo $jkl['hd266'];?></dt>
<dd class="col-sm-7">
<select name="jak_opidcc[]" id="jak_opidcc" class="selectpicker col-12" data-live-search="true" multiple>
<?php foreach ($OPERATOR_ALL as $o) {
echo '<option value="'.$o["id"].'"'.(in_array($o["id"], $OPERATOR_CC) ? ' selected' : '').'>'.$o["name"].' ('.$o["email"].')</option>';
} ?>
</select>
</dd>
<dt class="col-sm-5"><?php echo $jkl['hd194'];?></dt>
<dd class="col-sm-7">
<select name="jak_client" id="jak_client" class="selectpicker col-12" data-live-search="true">
<option value="0"><?php echo $jkl["hd329"];?></option>
<?php foreach ($CLIENTS_ALL as $v) {
echo '<option value="'.$v["id"].':#:'.$v["support_dep"].':#:'.$v["name"].'"'.(isset($_POST["jak_client"]) && $v["id"].':#:'.$v["support_dep"].':#:'.$v["name"] == $_POST["jak_client"] ? ' selected' : '').'>'.$v["name"].' ('.$v["email"].')</option>';
} ?>
</select>
</dd>
<?php if (isset($DEPARTMENTS_ALL) && !empty($DEPARTMENTS_ALL)) { ?>
<dt class="col-sm-5"><?php echo $jkl['g131'];?></dt>
<dd class="col-sm-7">
<select name="jak_depid" id="jak_depid" class="selectpicker col-12" data-live-search="true">
<?php foreach ($DEPARTMENTS_ALL as $d) {
echo '<option value="'.$d["id"].'"'.(isset($_POST["jak_depid"]) && $_POST["jak_depid"] == $d["id"] ? ' selected' : '').'>'.$d["title"].'</option>';
} ?>
</select>
</dd>
<?php } ?>
<dt class="col-sm-5"><?php echo $jkl['hd167'];?></dt>
<dd class="col-sm-7">
<select name="jak_status" id="jak_status" class="selectpicker col-12">
<?php if (isset($HD_SUPPORT_STATUS) && !empty($HD_SUPPORT_STATUS)) foreach ($HD_SUPPORT_STATUS as $s) { ?>
<option value="<?php echo $s["id"];?>"<?php if ($s["id"] == 1) echo ' selected';?>><?php echo $s["title"];?></option>
<?php } ?>
</select>
</dd>
<?php if (isset($PRIORITY_ALL) && !empty($PRIORITY_ALL)) { ?>
<dt class="col-sm-5"><?php echo $jkl['hd149'];?></dt>
<dd class="col-sm-7">
<select name="jak_priority" id="jak_priority" class="selectpicker col-12">
<?php foreach ($PRIORITY_ALL as $p) {
echo '<option value="'.$p["id"].'">'.$p["title"].((JAK_BILLING_MODE == 1 && $p["credits"] != 0) ? ' ('.sprintf($jkl['hd232'], $p["credits"]).')' : '').'</option>';
} ?>
</select>
</dd>
<?php } ?>
<?php if (isset($TOPTIONS_ALL) && !empty($TOPTIONS_ALL)) { ?>
<dt class="col-sm-5"><?php echo $jkl['hd225'];?></dt>
<dd class="col-sm-7">
<select name="jak_toption" id="jak_toption" class="selectpicker col-12">
<?php foreach ($TOPTIONS_ALL as $t) {
echo '<option value="'.$t["id"].'">'.$t["title"].((JAK_BILLING_MODE == 1 && $t["credits"] != 0) ? ' ('.sprintf($jkl['hd232'], $t["credits"]).')' : '').'</option>';
} ?>
</select>
</dd>
<?php } ?>
<dt class="col-sm-5"><?php echo $jkl['g22'];?></dt>
<dd class="col-sm-7">
<select name="jak_tlang" id="jak_tlang" class="selectpicker col-12" data-live-search="true">
<option value="">-</option>
<?php // The language list
foreach(jak_the_lang() as $k => $l) {
echo '<option value="'.$k.'">'.$l.'</option>';
}
?>
</select>
</dd>
<dt class="col-sm-5"><?php echo $jkl['hd172'];?></dt>
<dd class="col-sm-7">
<div class="form-group">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_private" value="1"<?php if (isset($_REQUEST["jak_private"]) && $_REQUEST["jak_private"] == 1 || (!isset($_REQUEST["jak_private"]) && JAK_TICKET_PRIVATE == 1)) echo " checked";?>> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_private" value="0"<?php if (isset($_REQUEST["jak_private"]) && $_REQUEST["jak_private"] == 0|| (!isset($_REQUEST["jak_private"]) && JAK_TICKET_PRIVATE == 0)) echo " checked";?>> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</dd>
<dt class="col-sm-5"><?php echo $jkl['g169'];?></dt>
<dd class="col-sm-7"><input type="text" class="form-control" name="jak_referrer" value="<?php if (isset($_REQUEST["jak_referrer"]) && !empty($_REQUEST["jak_referrer"])) echo $_REQUEST["jak_referrer"];?>"></dd>
<dt class="col-sm-5"><?php echo $jkl['hd271'];?></dt>
<dd class="col-sm-7"><input type="text" name="jak_duedate" class="form-control datepicker" value="<?php echo (isset($_REQUEST["jak_duedate"]) ? $_REQUEST["jak_duedate"] : date($duedateformat[0], strtotime('+'.JAK_TICKET_DUEDATE_PRESET.'day')));?>" autocomplete="off"></dd>
</dl>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">account_circle</i>
</div>
<h4 class="card-title "><?php echo $jkl["hd329"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label for="namec"><?php echo $jkl["u"];?></label>
<input type="text" name="jak_namec" id="namec" class="form-control<?php if (isset($errors["namec"])) echo " is-invalid";?>" value="<?php if (isset($_REQUEST["jak_namec"])) echo $_REQUEST["jak_namec"];?>">
</div>
<div class="form-group">
<label for="emailc"><?php echo $jkl["u1"];?></label>
<input type="text" name="jak_emailc" id="emailc" class="form-control<?php if (isset($errors["emailc"])) echo " is-invalid";?>" value="<?php if (isset($_REQUEST["jak_emailc"])) echo $_REQUEST["jak_emailc"];?>">
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="send_email" value="1" checked> <?php echo $jkl["hd120"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<?php if (isset($custom_fields) && !empty($custom_fields)) { ?>
<div class="card">
<div class="card-header">
<h3 class="card-title"><?php echo $jkl["hd148"];?></h3>
</div><!-- /.box-header -->
<div class="card-body">
<?php echo $custom_fields;?>
</div>
<div class="card-footer">
<a href="<?php echo JAK_rewrite::jakParseurl('support');?>" class="btn btn-default"><?php echo $jkl["g103"];?></a>
<button type="submit" name="save" class="btn btn-primary submitNT"><?php echo $jkl["g38"];?> <i class="fa fa-spinner fa-pulse loader"></i></button>
</div>
</div>
<?php } ?>
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="material-icons">note</i>
</div>
<h4 class="card-title "><?php echo $jkl["g181"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label for="content-editor"><?php echo $jkl["g181"];?></label>
<textarea name="jak_notes" rows="3" class="form-control"><?php if (isset($_REQUEST["jak_notes"]) && !empty($_REQUEST["jak_notes"])) echo $_REQUEST["jak_notes"];?></textarea>
</div>
</div>
</div>
</div>
</div>
</form>
<?php } include_once 'footer.php';?>
+597
View File
@@ -0,0 +1,597 @@
<?php include_once 'header.php';?>
<?php if ($errors) { ?>
<div class="alert alert-danger"><?php if (isset($errors["e"])) echo $errors["e"];
if (isset($errors["e1"])) echo $errors["e1"];
if (isset($errors["e2"])) echo $errors["e2"];
if (isset($errors["e3"])) echo $errors["e3"];
if (isset($errors["e4"])) echo $errors["e4"];
if (isset($errors["e5"])) echo $errors["e5"];
if (isset($errors["e6"])) echo $errors["e6"];?></div>
<?php } ?>
<form class="jak_form" method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>">
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-success">
<div class="card-icon">
<i class="material-icons">add</i>
</div>
<h4 class="card-title "><?php echo $jkl["g137"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e1"])) echo " has-danger";?>">
<label class="control-label" for="name"><?php echo $jkl["u"];?></label>
<input type="text" name="jak_name" id="name" class="form-control" value="<?php if (isset($_POST["jak_name"])) echo $_POST["jak_name"];?>">
</div>
<div class="form-group<?php if (isset($errors["e2"])) echo " has-danger";?>">
<label class="control-label" for="email"><?php echo $jkl["u1"];?></label>
<input type="text" name="jak_email" id="email" class="form-control" value="<?php if (isset($_POST["jak_email"])) echo $_POST["jak_email"];?>">
</div>
<div class="form-group<?php if (isset($errors["e3"]) || isset($errors["e4"])) echo " has-danger";?>">
<label for="username"><?php echo $jkl["u2"];?></label>
<input type="text" name="jak_username" id="username" class="form-control" value="<?php if (isset($_POST["jak_username"])) echo $_POST["jak_username"];?>">
</div>
<div class="form-group">
<label class="control-label" for="jak_uolist"><?php echo $jkl["u43"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_uolist" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_uolist" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_access"><?php echo $jkl["u3"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_access" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_access" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_responses"><?php echo $jkl["u6"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_responses" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_responses" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_files"><?php echo $jkl["u7"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_files" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_files" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_chat"><?php echo $jkl["u13"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chat" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chat" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_chatpublic"><?php echo $jkl["u41"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatpublic" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatpublic" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_chatlist"><?php echo $jkl["g137"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatlist" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_chatlist" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_transfer"><?php echo $jkl["u45"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_transfer" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_transfer" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_latency"><?php echo $jkl["g239"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_latency" value="3000" checked> <?php echo $jkl["g240"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_latency" value="5000"> <?php echo $jkl["g241"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_sound"><?php echo $jkl["g2"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_sound" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_sound" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="jak_ringing"><?php echo $jkl["g200"];?></label>
<select name="jak_ringing" class="selectpicker col-12" data-live-search="true">
<?php for ($i = 1; $i < 30; $i++) {
echo '<option value="'.$i.'">'.$i.'</option>';
} ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_lang"><?php echo $jkl["g22"];?></label>
<select name="jak_lang" class="selectpicker col-12" data-live-search="true">
<option value=""><?php echo $jkl["u11"];?></option>
<?php if (isset($lang_files) && is_array($lang_files)) foreach($lang_files as $lf) { ?><option value="<?php echo $lf;?>"><?php echo ucwords($lf);?></option><?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_navside"><?php echo $jkl["u57"];?></label>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_navside" value="1" checked> <?php echo $jkl["g19"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="radio" name="jak_navside" value="0"> <?php echo $jkl["g18"];?>
<span class="circle">
<span class="check"></span>
</span>
</label>
</div>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header card-header-icon card-header-danger">
<div class="card-icon">
<i class="material-icons">list_alt</i>
</div>
<h4 class="card-title "><?php echo $jkl["m9"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_depid"><?php echo $jkl["hd2"];?></label>
<select name="jak_depid[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if (isset($_POST["jak_depid"]) && $_POST["jak_depid"] == '0') { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEPARTMENTS) && is_array($JAK_DEPARTMENTS)) foreach($JAK_DEPARTMENTS as $v) { ?>
<option value="<?php echo $v["id"];?>"><?php echo $v["title"];?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="jak_depids"><?php echo $jkl["hd3"];?></label>
<select name="jak_depids[]" class="selectpicker col-12" data-live-search="true" multiple>
<option value="0"<?php if (isset($_POST["jak_depids"]) && $_POST["jak_depids"] == '0') { ?> selected="selected"<?php } ?>><?php echo $jkl["g105"];?></option>
<?php if (isset($JAK_DEP_SUPPORT) && is_array($JAK_DEP_SUPPORT)) foreach($JAK_DEP_SUPPORT as $d) { ?>
<option value="<?php echo $d["id"];?>"><?php echo $d["title"];?></option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-primary">
<div class="card-icon">
<i class="material-icons">insert_invitation</i>
</div>
<h4 class="card-title "><?php echo $jkl["u12"];?></h4>
</div>
<div class="card-body">
<div class="form-group">
<label class="control-label" for="jak_inv"><?php echo $jkl["u12"];?></label>
<input type="text" name="jak_inv" class="form-control" value="<?php if (isset($_POST["jak_inv"])) echo $_POST["jak_inv"]; ?>">
</div>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-warning">
<div class="card-icon">
<i class="material-icons">vpn_key</i>
</div>
<h4 class="card-title "><?php echo $jkl["g39"];?></h4>
</div>
<div class="card-body">
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="pass"><?php echo $jkl["u4"];?></label>
<input type="password" name="jak_password" id="pass" class="form-control" value="">
</div>
<div class="form-group<?php if (isset($errors["e5"]) || isset($errors["e6"])) echo " has-danger";?>">
<label class="control-label" for="jak_confirm_password"><?php echo $jkl["u5"];?></label>
<input type="password" name="jak_confirm_password" class="form-control" value="">
</div>
<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>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
<div class="card">
<div class="card-header card-header-icon card-header-rose">
<div class="card-icon">
<i class="material-icons">accessibility_new</i>
</div>
<h4 class="card-title "><?php echo $jkl["u29"];?></h4>
</div>
<div class="card-body">
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="leads"<?php if (isset($_POST["jak_roles"]) && in_array("leads", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u30"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="leads_all"<?php if (isset($_POST["jak_roles"]) && in_array("leads_all", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u30"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="off_all"<?php if (isset($_POST["jak_roles"]) && in_array("off_all", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g33"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="ochat"<?php if (isset($_POST["jak_roles"]) && in_array("ochat", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u31"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="ochat_all"<?php if (isset($_POST["jak_roles"]) && in_array("ochat_all", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u31"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="support"<?php if (isset($_POST["jak_roles"]) && in_array("support", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="faq"<?php if (isset($_POST["jak_roles"]) && in_array("faq", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd1"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="blog"<?php if (isset($_POST["jak_roles"]) && in_array("blog", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd13"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="statistic"<?php if (isset($_POST["jak_roles"]) && in_array("statistic", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u32"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="statistic_all"<?php if (isset($_POST["jak_roles"]) && in_array("statistic_all", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u32"].' ('.$jkl["g105"].')';?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="files"<?php if (isset($_POST["jak_roles"]) && in_array("files", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u33"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="proactive"<?php if (isset($_POST["jak_roles"]) && in_array("proactive", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u34"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="usrmanage"<?php if (isset($_POST["jak_roles"]) && in_array("usrmanage", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u42"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="client"<?php if (isset($_POST["jak_roles"]) && in_array("client", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd14"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="billing"<?php if (isset($_POST["jak_roles"]) && in_array("billing", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["hd22"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="responses"<?php if (isset($_POST["jak_roles"]) && in_array("responses", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u35"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="departments"<?php if (isset($_POST["jak_roles"]) && in_array("departments", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u36"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="settings"<?php if (isset($_POST["jak_roles"]) && in_array("settings", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u37"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="answers"<?php if (isset($_POST["jak_roles"]) && in_array("answers", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["u44"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="widget"<?php if (isset($_POST["jak_roles"]) && in_array("widget", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["m26"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="groupchat"<?php if (isset($_POST["jak_roles"]) && in_array("groupchat", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["m29"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="blacklist"<?php if (isset($_POST["jak_roles"]) && in_array("blacklist", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["m27"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" name="jak_roles[]" value="blocklist"<?php if (isset($_POST["jak_roles"]) && in_array("blocklist", $_POST["jak_roles"])) { ?> checked="checked"<?php } ?>> <?php echo $jkl["g97"];?>
<span class="form-check-sign">
<span class="check"></span>
</span>
</label>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save" class="btn btn-primary pull-right"><?php echo $jkl["g38"];?></button>
</div>
</div>
</div>
</div>
</form>
<?php include_once 'footer.php';?>

Some files were not shown because too many files have changed in this diff Show More