| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/public_html/patholjournal.com/admin/ |
Upload File : |
$().ready(function(){var e={cssClass:'el-rte',height:450,toolbar:'complete',cssfiles:['https://www.akinik.com/elrte/css/elrte-inner.css']};$('[id*=editor]').each(function(){$(this).elrte(e)})});
$(document).ready(function(){
$('#select_all').live('click',function(){
if(this.checked){
$('.checkbox').each(function(){this.checked=true;});
if($('.checkbox:checked').length > 0){
$('.action.hidden').show(0);
}else{
$('.action.hidden').hide(0);
}
$('.checkbox:checked').parents('tr').css('background-color','#ffffcc');
}else{
$('.checkbox').each(function(){this.checked=false;});
$('.action.hidden').hide(0);
$('.checkbox').parents('tr').css('background-color','#fff');
}
});
$('.checkbox').live('click',function(){
if($('.checkbox:checked').length == $('.checkbox').length){
$('#select_all').prop('checked',true);
}else{
$('#select_all').prop('checked',false);
}
if($('.checkbox:checked').length > 0){
$('.action.hidden').show(0);
}else{
$('.action.hidden').hide(0);
}
if($(this).is(':checked')){
$(this).parents('tr').css('background-color','#ffffcc');
}else{
$(this).parents('tr').css('background-color','#fff');
}
});
$('.table td a').live('click',function(e){
e.preventDefault(); window.open(this.href, '_blank');
});
$('#addgraphics').live('click',function(){
$('#morefwrap').append('<div class="row" style="margin-bottom:10px"><div class="fl"><label class="flbl">Graphics File :<span class="fr">*</span></label><input type="file" name="graphics[]" multiple="multiple" autocomplete="off" class="field field-file" /></div><div class="fr"><label class="flbl">Alternative Text :<span class="fr">*</span></label><input type="text" name="alt[]" multiple="multiple" autocomplete="off" class="field" style="width:79%" /><input type="button" value="Remove Graphics" id="remgraphics" class="action" style="float:right;width:19%" /></div></div>');
});
$('#remgraphics').live('click',function(){
$(this).parents('.row').remove();
});
$('form').attr('autocomplete', 'off');
$('.ajax-form').submit(function(e){
var loader = $('.loader'),output = $('.output'),input = $(':input');
var option = this.option.value;
var confrm = this.confrm.value;
if(confrm && !confirm(confrm)){
loadform('form');return false;
}
$.ajax({
type:this.method,
url:this.action,
data:new FormData(this),
cache:false,
dataType:'json',
contentType:false,
processData:false,
beforeSend:function(){
loader.show(0),output.hide(0),input.prop('disabled', true);
},
success:function(json){
loader.hide(0);
if(typeof(json.surl) == 'undefined'){ input.prop('disabled',false); }
if(json.stat == true){
$('.field-file').val(null);
if((option === 'add' || option === 'addgraphics')){
$('form').trigger('reset');
}
if((option !== 'add' && option !== 'edit' && option !== 'addgraphics' && option !== 'editgraphics' && option !== 'upload' && option !== 'addcolumn')){
loadform('form');
}
if((option === 'sendmail' || option === 'upload')){
$('.fxfrm').trigger('reset').hide(0);
}
if(option === 'getemails'){ $('.emf').show(0).find('[name=bcc]').val(json.mail); }
if((option === 'addgraphics' || option === 'editgraphics')){ loadform('gwrap'); }
if(option === 'addcolumn'){ loadform('addcolumn'); $('.sql.l').html(json.html).show(0); }
if(typeof(json.text) !== 'undefined'){ output.html(json.text).show(0); }
if(typeof(json.surl) !== 'undefined'){ window.self.location = json.surl;input.prop('disabled',false); }
}else{
output.html(json.text).show(0);
}
},
error:function(jqXHR, exception){
loader.hide(0),input.prop('disabled',false);
output.html(errHandler(jqXHR, exception)).show(0);
}
});
return false;
});
})
$('.phone').bind('paste input', function (e){
var initVal = $(this).val();
outputVal = initVal.replace(/[^0-9+\-,]/g, '');
if(initVal != outputVal)
$(this).val(outputVal);
});
$('.digit').bind('paste input', function (e){
var initVal = $(this).val();
outputVal = initVal.replace(/[^0-9]/g, '');
if(initVal != outputVal)
$(this).val(outputVal);
});
$('.dotdig').bind('paste input', function (e){
var initVal = $(this).val();
outputVal = initVal.replace(/[^0-9.]/g, '');
if(initVal != outputVal)
$(this).val(outputVal);
});
$('.header .fr > button').click(function(e){
$('.header .fr ul').slideToggle(0);
e.stopPropagation();
});
$('.header .fr ul').click(function(e){
e.stopPropagation();
});
$(document).click(function(){
$('.header .fr ul').hide();
});
function gourl(param){
window.self.location = $('.form').attr('action') + '/' + param;
}
function loadform(data){
$('#' + data).load(window.self.location + ' #' + data + '>*','');
}
function checkbox($this){
$($this).parents('tr').find('.checkbox').attr('checked', true); $('.action.hidden').show(0);
}
function setopt($this, option, confrm){
$this.form.option.value = option;
if(typeof(confrm) !== 'undefined'){
$this.form.confrm.value = confrm;
}
}
function eSEARCH($this, keyword){
$('.output').hide(0);
if(keyword){
var url = $($this).attr('action') + '/search/' + keyword.replace(/(^[\s]+|[\s]+$)/g, '');
history.pushState({}, null, url);
loadform('form');
}else{
$('.output').html('Please enter keyword.').show(0);
}
return false;
}
function paginate(form, url, keyword){
var url = url + '/page/' + keyword.replace(/(^[\s]+|[\s]+$)/g, '');
history.pushState({}, null, url);
loadform('form');
$('html, body').animate({ scrollTop: 0 }, 300);
}
function dopost(option, id, msg, url){
var loader = $('.loader'),output = $('.output'),input = $(':input');
if((msg && !confirm(msg))){ return false; }
$.ajax({
type:'POST',
url:$('.form').attr('action'),
data:'option=' + option + '&dataid[]=' + id,
cache:false,
dataType:'json',
beforeSend:function(){
loader.show(0),output.hide(0),input.prop('disabled',true);
},
success:function(json){
loader.hide(0),input.prop('disabled',false);
if(option === 'deletegraphics'){
loadform('gwrap');
}else if(option === 'getcolumn'){
$('.collist').html(json.html);
}else{
loadform('form');
}
if(typeof(url) !== 'undefined'){ window.history.back(); $(document).scrollTop(); return false; }
if(typeof(json.text) !== 'undefined'){ output.html(json.text).show(0); }
if(typeof(json.surl) !== 'undefined'){ window.self.location = json.surl; }
},
error:function(jqXHR, exception){
loader.hide(0),input.prop('disabled',false);
output.html(errHandler(jqXHR, exception)).show(0);
}
});
}
function getMailMessage(form){
var loader = $('.loader'),output = $('.output'),input = $(':input');
form.option.value = 'getmessage';
$.ajax({
type:$('.form').attr('method'),
url:$('.form').attr('action'),
data:$(form).serialize(),
cache:false,
dataType:'json',
beforeSend:function(){
loader.show(0),output.hide(0),input.prop('disabled',true);
},
success:function(json){
loader.hide(0),input.prop('disabled', false);
if(json.stat == true){
form.subject.value = json.subj;
form.message.value = json.text;
}else{
output.html(json.text).show(0);
}
},
error:function(jqXHR, exception){
loader.hide(0),field.removeAttr('disabled'),button.removeAttr('disabled');
output.html(errHandler(jqXHR, exception)).show(0);
}
});
}
function compose(formClass, to, cc, bcc, subject, message){
$('.fxfrm').trigger('reset').hide(0);
if(typeof(to) == 'undefined'){ to = null; }
if(typeof(cc) == 'undefined'){ cc = null; }
if(typeof(bcc) == 'undefined'){ bcc = null; }
if(typeof(subject) == 'undefined'){ subject = null; }
if(typeof(message) == 'undefined'){ message = null; }
$(formClass).show(0);
$(formClass + ' [name=to]').val(to);
$(formClass + ' [name=cc]').val(cc);
$(formClass + ' [name=bcc]').val(bcc);
$(formClass + ' [name=subject]').val(subject);
$(formClass + ' [name=message]').val(message.replace(/<br\s*\/?>/mg,'\n'));
}
function errHandler(jqXHR,exception){if(jqXHR.status===0){return 'Not connected. Please verify your network connection.';}else if(jqXHR.status==404){return 'The requested page not found. [404]';}else if(jqXHR.status==500){return 'Internal Server Error [500].';}else if(exception==='parsererror'){return 'Requested JSON parse failed.';}else if(exception==='timeout'){return 'Time out error.';}else if(exception==='abort'){return 'Ajax request aborted.';}else{return 'Uncaught Error: '+jqXHR.responseText;}}
function fetchauthors(option) {
form.option.value = option;let output = $('.output');
$.ajax({
type:'post',
url:form.action,
data:new FormData(form),
cache:false,
dataType:'json',
contentType:false,
processData:false,
beforeSend:function(){
output.hide(0);
},
success:function(json){
if(typeof(json.stat) !== 'undefined' && json.stat === true){
loadform('form');
}
if(typeof(json.text) !== 'undefined'){
output.html(json.text).show(0);
}
if(typeof(json.html) !== 'undefined'){
fetchedauthors.innerHTML = json.html;
}
},
error:function(jqXHR, exception){
output.html(errHandler(jqXHR, exception)).show(0);
}
});
return false;
}
function addauthors() {
let html = `<tr>
<td><input type="text" name="aa_authorname[]" class="form-control" /></td>
<td><input type="text" name="aa_authoremail[]" class="form-control" /></td>
<td><input type="text" name="aa_authorphone[]" class="form-control" /></td>
<td nowrap style="width:50px;text-align:center;text-transform:uppercase;font-size:10px;font-weight:500;background-color:#d5d5d5;">
<input style="width:36px;padding:0;text-align:center;" class="mailCheckbox form-control" type="text" name="sendmail[]" maxlength="1" /><br clear="all">Mail
</td>
<td nowrap style="width:50px;text-align:center;text-transform:uppercase;font-size:10px;font-weight:500;width:80px;background-color:#d5d5d5;">
<input style="width:36px;padding:0;text-align:center;" class="mailCheckbox form-control" type="text" name="sendcertificate[]" maxlength="1" /><br clear="all">Certificate
</td>
<td nowrap style="width:50px;text-align:center;text-transform:uppercase;font-size:10px;font-weight:500;background-color:#d5d5d5;">
<input style="width:36px;padding:0;text-align:center;" class="mailCheckbox form-control" type="text" name="sendcopyrightform[]" maxlength="1" /><br clear="all">Copyright
</td>
<td nowrap style="width:50px;text-align:center;text-transform:uppercase;font-size:10px;font-weight:500;background-color:#c5c5c5;">
<input style="width:36px;padding:0;text-align:center;" class="waCheckbox form-control" type="text" name="sendwamessage[]" maxlength="1" /><br clear="all">Message
</td>
<td nowrap style="width:50px;text-align:center;text-transform:uppercase;font-size:10px;font-weight:500;background-color:#c5c5c5;">
<input style="width:36px;padding:0;text-align:center;" class="waCheckbox form-control" type="text" name="sendwaadvertisement[]" maxlength="1" /><br clear="all">Advertisement
</td>
<td nowrap style="width:70px;">
<button class="btn-control" style="width:60px;padding:.375rem 0!important;" type="button" onclick="$(this).closest('tr').remove()">Remove</button>
</td>
</tr>`;
multiauthors.innerHTML += html;
}
function addauthorsinmodal() {
let html = `<tr>
<td><input type="text" name="new_aa_authorname[]" class="form-control" /></td>
<td><input type="text" name="new_aa_authoremail[]" class="form-control" /></td>
<td><input type="text" name="new_aa_authorphone[]" class="form-control" /></td>
<td nowrap style="width:70px;">
<button class="btn-control" style="width:60px;padding:.375rem 0!important;" type="button" onclick="$(this).closest('tr').remove()">Remove</button>
</td>
</tr>`;
multiauthors.innerHTML += html;
}