(function ($) { function GetObjects(obj, key, val) { var objects = []; for (var i in obj) { if (!obj.hasOwnProperty(i)) continue; if (typeof obj[i] == 'object') { objects = objects.concat(GetObjects(obj[i], key, val)); } else if (i == key && obj[key] == val) { objects.push(obj); } } return objects; } function IsEmptyObject(objString) { var returnValue = false; if ($.isEmptyObject(objString)) { returnValue = true; } return returnValue; } $(document).ready(function () { /* $(document).on("click", "#videoValue", function (e) { $('.main-video').css("display", "block"); var addr = $(this).attr("data-bind"); addr = addr.replace("https://youtu.be/",""); addr = addr.replace("https://www.youtube.com/embed/", ""); addr = addr.replace("https://www.youtube.com/watch?v=", ""); $('.main-video > #row2 #nztrueYoutube').attr("src", "https://www.youtube.com/embed/" + addr + "?autoplay=1&rel=0&controls=1&autohide=0&showcontrols=1"); var offset = $('.main-video').offset(); $('html, body').animate({ scrollTop: offset.top }, 400); }); /*addActive*/ $(this).addClass("active"); /*ÃÖ»ó´ÜÅÇ ½ÃÀÛ*/ var objId = $("#tab-main-worship > a").attr('href'); var moduleU = $("#tab-main-worship > a").attr('data-moduleU'); var count = $("#tab-main-worship > a").attr('data-count'); var order = $("#tab-main-worship > a").attr('data-order'); var orderType = $("#tab-main-worship > a").attr('data-orderType'); var tableid = $("#tab-main-worship > a").attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': 4, 'order': 'RegDate', 'orderType': 'DESC' }; $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { //alert(request + " " + status + " " + error); console.log("error"); }, statusCode: { }, success: function (msg) { console.log("success"); //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'pastorValue'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); /*ÅÇÅǽÃÀÛ*/ /*ÃÖ»ó´Ü Àý±â¿¹¹èŬ¸¯½Ã*/ $(document).on("click", "#tab-main-season > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': 4, 'order': 'RegDate', 'orderType': 'DESC' }; $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { //alert(request + " " + status + " " + error); console.log("error"); }, statusCode: { }, success: function (msg) { console.log("success"); //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'pastorValue'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*ÃÖ»ó´Ü Ưº°¿¹¹è Ŭ¸¯½Ã*/ $(document).on("click", "#tab-main-special > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': 4, 'order': 'RegDate', 'orderType': 'DESC' }; $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { //alert(request + " " + status + " " + error); console.log("error"); }, statusCode: { }, success: function (msg) { console.log("success"); //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'pastorValue'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*ÃÖ»ó´Ü ¿¹¹èÀ½¾ÇŬ¸¯½Ã*/ $(document).on("click", "#tab-main-music > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': 4, 'order': 'RegDate', 'orderType': 'DESC' }; $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { //alert(request + " " + status + " " + error); console.log("error"); }, statusCode: { }, success: function (msg) { console.log("success"); //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'conduct1'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'seasonValue'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*Àý±â¿¹¹è ÇÏÀ§ ºÎÈ°Àý Ŭ¸¯½Ã*/ $(document).on("click", "#tab-main-season-2 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'pastorValue'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log("dateValue: "+dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log("worshipValue: " + worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log("pastorValue: " + pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log("titleValue: " + titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*Àý±â¿¹¹è ÇÏÀ§ Ãß¼ö°¨»çÀý Ŭ¸¯½Ã*/ $(document).on("click", "#tab-main-season-3 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'pastorValue'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*Àý±â¿¹¹è ÇÏÀ§ ¼ºÅºÀý Ŭ¸¯½Ã*/ $(document).on("click", "#tab-main-season-4 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'pastorValue'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*Ưº°¿¹¹è ÇÏÀ§ ⸳±â³äÁÖÀÏ Å¬¸¯½Ã*/ $(document).on("click", "#tab-main-special-2 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'pastorValue'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*¿¹¹èÀ½¾Ç ÇÏÀ§ 2ºÎ¼º°¡´ë Ŭ¸¯½Ã*/ $(document).on("click", "#tab-main-music-2 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worshipdate'); var pastorValue = GetObjects(val, 'Name', 'conduct2'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'seasonValue'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*¿¹¹èÀ½¾Ç ÇÏÀ§ ¿À¸£°£ÀüÁÖ Å¬¸¯½Ã*/ $(document).on("click", "#tab-main-music-3 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worship'); var pastorValue = GetObjects(val, 'Name', 'banju1'); var pastorValue2 = GetObjects(val, 'Name', 'banju2'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(pastorValue2)) { console.log(pastorValue2); var extraVal3_1 = pastorValue2[0].Value; console.log(extraVal3_1); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + "
" + extraVal3_1 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*¿¹¹èÀ½¾Ç ÇÏÀ§ ¿À¸£°£ 1ºÎÈÄÁÖ Å¬¸¯½Ã*/ $(document).on("click", "#tab-main-music-4 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worship'); var pastorValue = GetObjects(val, 'Name', 'banju1'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5 = julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*¿¹¹èÀ½¾Ç ÇÏÀ§ ¿À¸£°£ 2ºÎÈÄÁÖ Å¬¸¯½Ã*/ $(document).on("click", "#tab-main-music-5 > a", function () { var objId = $(this).attr('href'); var moduleU = $(this).attr('data-moduleU'); var count = $(this).attr('data-count'); var order = $(this).attr('data-order'); var orderType = $(this).attr('data-orderType'); var tableid = $(this).attr('data-tableid'); $('#' + tableid + '> tbody').html(''); var formStr = { 'moduleU': moduleU, 'count': count, 'order': 'RegDate', 'orderType': orderType }; console.log(moduleU + ' ' + count + ' ' + tableid); $.ajax({ type: 'POST', url: '/api/ExtraVars', data: formStr, dataType: 'json', beforeSend: function () { }, complete: function () { }, error: function (request, status, error) { }, statusCode: { }, success: function (msg) { //var data = $.parseJSON(msg); var data = msg; console.log(data); var items = []; var html = ''; $.each(data, function (key, val) { var start = val.Title.indexOf("ÀÏ"); var title = val.Title.substring(start + 2); var dateValue = GetObjects(val, 'Name', 'dateValue'); var worshipValue = GetObjects(val, 'Name', 'worship'); var pastorValue = GetObjects(val, 'Name', 'banju2'); var titleValue = GetObjects(val, 'Name', 'titleValue'); var julgi = GetObjects(val, 'Name', 'julgi'); if (!IsEmptyObject(dateValue)) { console.log(dateValue); var extraVal1 = dateValue[0].Value; console.log(extraVal1); } if (!IsEmptyObject(worshipValue)) { console.log(worshipValue); var extraVal2 = worshipValue[0].Value; console.log(extraVal2); } if (!IsEmptyObject(pastorValue)) { console.log(pastorValue); var extraVal3 = pastorValue[0].Value; console.log(extraVal3); } if (!IsEmptyObject(titleValue)) { console.log(titleValue); var extraVal4 = titleValue[0].Value; console.log(extraVal4); } if (!IsEmptyObject(julgi)) { console.log(julgi); var extraVal5= julgi[0].Value; console.log(extraVal5); } items.push(''); items.push('' + extraVal1 + ''); //items.push('' + extraVal2 + ''); items.push('' + extraVal5 + ''); items.push('' + extraVal3 + ''); items.push('' + extraVal4 + ''); items.push(''); }); html = items.join(''); $('#' + tableid + '> tbody').html($(html)); } }); }); /*°¶·¯¸®¾Æ*/ $('.gallery .title-image').on('click', function () { var url = '/File/GetImages?documentU=' + $(this).data('u'); if (url) { $.get(url, function (res) { if (res && res.length) { //for (var i in res) { // $('#galleria').append(''); // } //console.log(res); Galleria.loadTheme('galleria.classic.min.js'); Galleria.run('#galleria', { dataSource: res, width: 800, height: 600 }); } }, 'json'); } }); }); })(jQuery);