| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/m.musiccircle/ |
Upload File : |
<?php if (!empty($_SESSION["cmsloginid"])) {
//count chat unread num
/*if ($_SESSION["is_student"] == 1) {
$sql = "select count(*) as unread from chat where to_role = ? and to_id = ? and deleted = ? and approved = ? and read_date is null";
$parameters = array("STUDENT", $_SESSION["student_login"], 0, 1);
} else if ($_SESSION["is_tutor"] == 1) {
$sql = "select count(*) as unread from chat where to_role = ? and to_id = ? and deleted = ? and approved = ? and read_date is null";
$parameters = array("TUTOR", $_SESSION["member_login"], 0, 1);
}
$result = bind_pdo($sql, $parameters, "selectone");
$unread_chat = $result["unread"];*/
?>
<div class="footer">
<div class="container" style="padding: 0;">
<a href="index.php">
<div class="footer_menu">
<!--<i class="fa fa-home" aria-hidden="true"></i>-->
<img src="<?= $site_info["url"] . "img/home_icon.jpg" ?>" class="footer_icon"> <br>
<?= _lang("Home") ?>
</div>
</a>
<?php if ($_SESSION["is_student"] == 1) { ?>
<a href="student_postjob_form.php">
<div class="footer_menu">
<!--<i class="fa fa-book" aria-hidden="true"></i>-->
<img src="<?= $site_info["url"] . "img/invite_icon.jpg" ?>" class="footer_icon">
<div style="position: relative; display: none;" class="unread_order_container">
<span class="badge" style="background: #CC1342; position: absolute; top: -13px; left: -8px;"></span>
</div>
<br>
<?= _lang("Post Jobs") ?>
</div>
</a>
<?php } else if ($_SESSION["is_tutor"] == 1) { ?>
<a href="order_index.php">
<div class="footer_menu">
<!--<i class="fa fa-book" aria-hidden="true"></i>-->
<img src="<?= $site_info["url"] . "img/course_record_icon.jpg" ?>" class="footer_icon">
<div style="position: relative; display: none;" class="unread_order_container">
<span class="badge" style="background: #CC1342; position: absolute; top: -13px; left: -8px;"></span>
</div>
<br>
<?= _lang("Course") ?>
</div>
</a>
<?php } ?>
<a href="chat.php">
<div class="footer_menu">
<!--<i class="fa fa-comments-o" aria-hidden="true"></i>-->
<img src="<?= $site_info["url"] . "img/chat_icon.jpg" ?>" class="footer_icon">
<div style="position: relative; display: none;" id="unread_chat_container">
<span class="badge" style="background: #CC1342; position: absolute; top: -13px; left: -8px;"></span>
</div>
<br>
<?= _lang("Chat") ?>
</div>
</a>
<a href="setting.php">
<div class="footer_menu">
<!--<i class="fa fa-user" aria-hidden="true"></i>-->
<img src="<?= $site_info["url"] . "img/setting_icon.jpg" ?>" class="footer_icon"> <br>
<?= _lang("Setting") ?>
</div>
</a>
</div>
</div>
<?php } ?>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/agency.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<script src="js/classie.js"></script>
<script src="js/cbpAnimatedHeader.js"></script>
<!-- Contact Form JavaScript -->
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/jquery.duplicate.js"></script>
<script src="js/alertify/alertify.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="js/alertify/alertify.core.css">
<link rel="stylesheet" href="js/alertify/alertify.bootstrap.css">
<script type="text/javascript">
function mobile_view_checking() {
<?php if(!isset($_SESSION["request_pc"]) ){ ?>
location.href="index_user.php";
<?php } ?>
}
function submit_subscribe_email(form) {
var email = $("#subscribe_email", $('#' + form)).val();
console.log(email);
jQuery.ajax({
url: '_ajax.php',
type: 'POST',
data: {
ajax: "subscribe_email",
email: email
},
dataType: 'html', //dataType (default: Intelligent Guess (xml, json, script, or html))
timeout: 1000,
error: function (result) {
//alert('Error Occur. Please try again.');
console.log(result.responseText);
alert(result);
},
success: function (result) {
//console.log(result);
alert(result);
}
});
}
function ajax_get_unread_num() {
var xmlhttp;
if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}
else {// code for IE6, IE5
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
//document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
console.log(xmlhttp.responseText);
var result = $.trim(xmlhttp.responseText);
result = JSON.parse(result);
if (result.response == "success") {
if (parseInt(result.unread_chat) > 0) {
$("#unread_chat_container").css("display", "inline");
$("#unread_chat_container span").text(result.unread_chat);
} else {
$("#unread_chat_container").css("display", "none");
}
if (parseInt(result.unread_job_notification) > 0) {
$("#unread_job_notification_container").css("display", "inline");
$("#unread_job_notification_container span").text(result.unread_job_notification);
} else {
$("#unread_job_notification_container").css("display", "none");
}
if (parseInt(result.unread_order) > 0) {
$(".unread_order_container").css("display", "inline");
$(".unread_order_container span").text(result.unread_order);
} else {
$(".unread_order_container").css("display", "none");
}
} else {
}
}
}
xmlhttp.open("POST", "_ajax.php", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.send("ajax=get_unread_num");
}
<?php if (!empty($_SESSION["cmsloginid"])) {
echo 'ajax_get_unread_num();';
} ?>
window.old_alert = window.alert;
window.alert = function (message, fallback) {
if (fallback) {
old_alert(message);
return;
}
alertify.alert(message.toString());
};
$(function () {
$('.confirm-delete').on('click', function (e) {
if (!confirm("<?=lang('Confirm Delete?')?>")) {
e.preventDefault();
}
});
<?php if($_SESSION["app_device"] == "IOS"){ ?>
$(".navbar .container").css("padding-top", "7px");
$(".navbar .container").css("padding-bottom", "17px");
<?php } ?>
<?php if (!empty($_SESSION["cmsloginid"])) {
echo 'setInterval(ajax_get_unread_num, 3000);';
} ?>
});
</script>