Hệ thống pháp luật

BỘ KẾ HOẠCH VÀ ĐẦU TƯ
-------

CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM
Độc lập - Tự do - Hạnh phúc
---------------

Số: 5507/BKHĐT-TH
V/v giao vốn, hoàn thiện thủ tục đầu tư các nhiệm vụ, dự án của Chương trình phục hồi và phát triển KTXH, kế hoạch đầu tư công trung hạn nguồn NSTW giai đoạn 2021-2025 và điều chỉnh kế hoạch vốn trong dự toán năm 2023

Hà Nội, ngày 13 tháng 7 năm 2023

 

Kính gửi:

- Các Bộ, cơ quan ngang Bộ, cơ quan thuộc Chính phủ và các cơ quan khác ở Trung ương;
- Ủy ban nhân dân các tỉnh, thành phố trực thuộc Trung ương;

Tại Kỳ họp thứ 5, Quốc hội khoá XV, Quốc hội đã thông qua Nghị quyết số 93/2023/QH15 về phân bổ vốn Chương trình phục hồi và phát triển kinh tế - xã hội; phân bổ, điều chỉnh kế hoạch đầu tư công trung hạn vốn ngân sách trung ương giai đoạn 2021-2025 và phân bổ kế hoạch đầu tư vốn ngân sách trung ương năm 2023 của các Chương trình mục tiêu quốc gia. Theo đó, Quốc hội đã giao Chính phủ, Thủ tướng Chính phủ chỉ đạo triển khai các nhiệm vụ, đồng thời yêu cầu bộ, cơ quan trung ương và địa phương tăng cường kỷ luật, kỷ cương tài chính ngân sách; nghiêm túc rút kinh nghiệm trong việc thực hiện các Nghị quyết của Quốc hội, Ủy ban Thường vụ Quốc hội.

Để bảo đảm tiến độ thực hiện các nhiệm vụ được giao, nâng cao hiệu quả quản lý sử dụng vốn đầu tư công, đảm bảo các mục tiêu của Kế hoạch đầu công trung hạn giai đoạn 2021-2025 và Chương trình phục hồi và phát triển kinh tế - xã hội, thực hiện nhiệm vụ được giao tại Nghị quyết số 97/NQ-CP ngày 08/7/2023 của Chính phủI. GIAO, ĐIỀU CHỈNH, HOÀN THIỆN THỦ TỤC ĐẦU TƯ DỰ ÁN THUỘC CHƯƠNG TRÌNH PHỤC HỒI VÀ PHÁT TRIỂN KINH TẾ - XÃ HỘI VÀ KẾ HOẠCH ĐẦU TƯ CÔNG TRUNG HẠN VỐN NGÂN SÁCH TRUNG ƯƠNG (NSTW) GIAI ĐOẠN 2021-2025

1. Các bộ, cơ quan trung ương và địa phương: Hoàn thiện thủ tục phê duyệt quyết định đầu tư cho các nhiệm vụ, dự án sau khi được Thủ tướng Chính phủ giao, điều chỉnh kế hoạch đầu tư vốn NSTW của Chương trình phục hồi và phát triển kinh tế - xã hội, kế hoạch đầu tư công trung hạn vốn NSTW giai đoạn 2021-2025 cho các dự án đã đủ thủ tục đầu tư, đã được Chính phủ báo cáo Quốc hội tại Tờ trình số 231/TTr-CP và Tờ trình số 06/TTr-CP ngày 16/5/2023 để sớm giao vốn NSTW năm 2023 và các năm tiếp theo cho dự án, bảo đảm sử dụng vốn hiệu quả, phát huy hiệu quả đầu tư.

2. Ủy ban nhân dân tỉnh Ninh Thuận khẩn trương hoàn thiện thủ tục phê duyệt quyết định chủ trương đầu tư Dự án đầu tư hạ tầng ổn định đời sống nhân dân của xã Phước Dinh, huyện Thuận Nam và xã Vĩnh Hải, huyện Ninh Hải với số vốn 273 tỷ đồng của Chương trình phục hồi và phát triển kinh tế - xã hội theo Nghị quyết số 43/2022/QH15, gửi Bộ Kế hoạch và Đầu tư trước ngày 15 tháng 8 năm 2023 để tổng hợp, báo cáo cấp có thẩm quyền.

3. Bộ Giao thông vận tải khẩn trương hoàn thiện thủ tục phê duyệt quyết định chủ trương đầu tư Dự án đấu nối ray giữa ga Lào Cai với ga Hà Khẩu Bắc với số vốn 700 tỷ đồng kế hoạch đầu tư công trung hạn vốn NSTW giai đoạn 2021-2025 và các thủ tục cần thiết để đủ điều kiện báo cáo cấp có thẩm quyền giao vốn cho Dự án.

II. HOÀN THIỆN THỦ TỤC ĐẦU TƯ CÁC NHIỆM VỤ, DỰ ÁN TỪ SỐ VỐN ĐÃ ĐƯA VÀO DỰ PHÒNG CỦA KẾ HOẠCH ĐẦU TƯ CÔNG TRUNG HẠN VỐN NSTW GIAI ĐOẠN 2021-2025

1. Bộ Giao thông vận tải, Ủy ban nhân dân tỉnh: Sơn La, Bình Phước khẩn trương hoàn thiện thủ tục đầu tư, điều kiện bố trí vốn cho danh mục dự án sử dụng vốn NSTW trong nước giai đoạn 2021-2025 đã được Chính phủ báo cáo Quốc hội tại Tờ trình số 231/TTr-CP ngày 16/5/2023, gửi Bộ Kế hoạch và Đầu tư để tổng hợp, báo cáo cấp có thẩm quyền khi dự án đủ thủ tục đầu tư.

2. Các bộ, cơ quan trung ương và địa phương khẩn trương rà soát, hoàn thiện thủ tục đầu tư danh mục dự án sử dụng vốn nước ngoài nguồn NSTW giai đoạn 2021-2025 đã được Chính phủ báo cáo Quốc hội tại Tờ trình số 231/TTr-CP ngày 16/5/2023, gửi Bộ Kế hoạch và Đầu tư để tổng hợp, báo cáo cấp có thẩm quyền khi dự án đủ thủ tục đầu tư.

Theo quy định tại Nghị quyết số 93/2023/QH15, Chính phủ báo cáo Quốc hội xem xét, quyết định chậm nhất tại Kỳ họp thứ 7, Quốc hội khóa XV trong thời gian giữa hai kỳ họp Quốc hội thì báo cáo Ủy ban Thường vụ Quốc hội cho ý kiến trước khi giao kế hoạch đầu tư công trung hạn giai đoạn 2021-2025 cho các nhiệm vụ, dự án đã đủ thủ tục đầu tư, báo cáo Quốc hội tại Kỳ họp gần nhất. Do đó, để đảm bảo tiến độ thực hiện theo quy định của Quốc hội, đề nghị các bộ, cơ quan trung ương, địa phương hoàn thành thủ tục đầu tư các dự án, gửi Bộ Kế hoạch và Đầu tư chậm nhất trước ngày 31 tháng 12 năm 2023.

III. VỀ VỐN ỨNG TRƯỚC CHƯA THU HỒI TRONG KẾ HOẠCH ĐẦU TƯ CÔNG TRUNG HẠN VỐN NSTW GIAI ĐOẠN 2021-2025

Thực hiện Nghị quyết số 93/2023/QH15 của Quốc hội, đề nghị các Bộ, cơ quan trung ương và địa phương:

1. Thực hiện rà soát, xác định chính xác số vốn ứng trước thuộc trách nhiệm của NSTW nhưng chưa bố trí nguồn để thu hồi.

2. Cân đối trong tổng mức kế hoạch đầu tư công trung hạn vốn NSTW giai đoạn 2021-2025 đã được giao hoặc sử dụng vốn ngân sách địa phương để thu hồi toàn bộ số vốn ứng trước chưa bố trí trong Kế hoạch đầu tư công trung hạn vốn NSTW giai đoạn 2021-2025 để thu hồi, NSTW không bố trí thêm vốn để hoàn trả.

Trường hợp các Bộ, cơ quan trung ương và địa phương đề nghị sử dụng vốn NSTW để thu hồi số vốn ứng trước thuộc trách nhiệm của NSTW, rà soát, đề xuất điều chỉnh giảm kế hoạch của các dự án đã được giao kế hoạch đầu tư công trung hạn vốn NSTW giai đoạn 2021-2025 để điều chỉnh tăng kế hoạch cho các dự án chưa thu hồi vốn ứng trước, gửi Bộ Kế hoạch và Đầu tư trước ngày 15 tháng 8 năm 2023 để tổng hợp, báo cáo Thủ tướng Chính phủ xem xét, quyết định.

3. Trường hợp các Bộ, cơ quan trung ương và địa phương không thực hiện hoàn trả vốn ứng trước, không báo cáo chính xác, đầy đủ, kiên quyết không bố trí vốn ngân sách nhà nước để thu hồi vốn ứng trước, đồng thời kiểm điểm và xử lý trách nhiệm người đứng đầu và các tổ chức, cá nhân liên quan.

IV. ĐỐI VỚI VIỆC ĐIỀU CHỈNH VỐN GIỮA CÁC NHIỆM VỤ, DỰ ÁN CỦA CHƯƠNG TRÌNH PHỤC HỒI VÀ PHÁT TRIỂN KTXH VỚI CÁC NHIỆM VỤ, DỰ ÁN THUỘC KẾ HOẠCH ĐẦU TƯ CÔNG TRUNG HẠN GIAI ĐOẠN 2021-2025 ĐÃ ĐƯỢC BỐ TRÍ VỐN TRONG DỰ TOÁN NGÂN SÁCH NHÀ NƯỚC NĂM 2023

Tại Nghị quyết số 93/2023/QH15, Quốc hội đã cho phép điều chỉnh vốn giữa các nhiệm vụ, dự án của Chương trình phục hồi và phát triển kinh tế - xã hội với các nhiệm vụ, dự án thuộc Kế hoạch đầu tư công trung hạn giai đoạn 2021-2025 đã được bố trí vốn trong dự toán ngân sách nhà nước năm 2023 theo quy định tại Điều 67 của Luật Đầu tư công và bố trí nguồn vốn thuộc Kế hoạch đầu tư công trung hạn giai đoạn 2021-2025 cho các nhiệm vụ, dự án thuộc Chương trình phục hồi và phát triển kinh tế - xã hội trong các năm 2024, 2025 để hoàn thành các dự án theo đúng Nghị quyết số 43/2022/QH15 của Quốc hội.

Do đó, đề nghị các Bộ, cơ quan trung ương và địa phương thực hiện điều chỉnh vốn theo quy định nêu trên của Quốc hội để giải ngân tối đa kế hoạch vốn được giao. Trường hợp không phân bổ hết kế hoạch đầu tư vốn NSTW năm 2023 hoặc có nhu cầu bổ sung vốn để đẩy nhanh tiến độ thực hiện các nhiệm vụ, dự án, có văn bản gửi Bộ Kế hoạch và Đầu tư đề xuất phương án xử lý số vốn còn lại chưa phân bổ, nhu cầu bổ sung kế hoạch vốn (nếu có), báo cáo trên Hệ thống thông tin quốc gia về đầu tư côngTrong quá trình thực hiện, nếu có khó khăn, vướng mắc đề nghị phản ánh kịp thời về Bộ Kế hoạch và Đầu tư để phối hợp xử lý theo quy định./.

 


Nơi nhận:
- Như trên;
- Thủ tướng Chính phủ (để b/c);
- PTTg Lê Minh Khái (để b/c);
- Văn phòng Chính phủ;
- Bộ KHĐT: Lãnh đạo Bộ, các đơn vị: Cục KTHT; KTĐN, KTĐP&LT, TCTT, KTNN, KTCNDV, PTHT&ĐT, LĐVX, KHGDTN&MT, QPAN;
- Sở KHĐT các tỉnh, thành phố trực thuộc TW;
- Lưu VT, Vụ TH(3b).

KT. BỘ TRƯỞNG
THỨ TRƯỞNG




Trần Quốc Phương

 



'; $(this).append(pointer_html); if ($('#noi_dung_huong_dan_' + dtttct).length) { $("#noi_dung_chu_thich_" + chuthich_id).html($('#noi_dung_huong_dan_' + dtttct).html()); } else { $.ajax({ type: 'POST', url: '/ajax/vanban/chu-thich/', data: { 'ndct': dtttct, 'id_ct': id_ct, 'dc_text': dc_text }, success: function(response) { $("#noi_dung_chu_thich_" + chuthich_id).html(response); } }); } if ($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').length) { $("#tieu_de_dc_" + chuthich_id).html($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').html()); } if (!$('.row_vb_details .col-md-9').length) { var pointy_width2 = $(window).width() - $('#box_noi_dung_vb').width() - 95; } else { pointy_width2 = $("#tctn-button").width() + $("#exco").width() + $(".tnpl-title").width() + $(".fa-expand").width() - 23; } var min_bg_num = 1; var max_bg_num = 10; var random_bg_num = Math.floor(Math.random() * (max_bg_num - min_bg_num + 1)) + min_bg_num; var rnd_rgb_1 = Math.floor(Math.random() * (235 - 180)) + 180; var rnd_rgb_2 = Math.floor(Math.random() * (230 - 170)) + 170; var rnd_rgb_3 = Math.floor(Math.random() * (210 - 110)) + 110; var rnd_rgb_1 = '#FBF0E1'; var rnd_rgb_2 = rnd_rgb_1; var rnd_rgb_3 = rnd_rgb_1; var canva_colors = new Array('', '#fff9ab', '#ffe8ba', '#edffc5', '#c8fad5', '#e7f2d0', '#dbd0f2', '#ecffc3', '#c3ffc3', '#e3e6dd', '#e7ffc3'); var canva_color = rnd_rgb_1; $(chuthich_buble_id).css('width', $('#doc-right-col').width() - 10 + 'px'); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $(chuthich_buble_id).css('background', rnd_rgb_1); $('.pointer').css('height', ''); $(this).find('.pointer [ui-nav] a span').on('click', function(e) { var $this = $(e.target), $active, $li; $this.is('a') || ($this = $this.closest('a')); $li = $this.parent(); $active = $li.siblings(".active"); $li.toggleClass('active'); $active.removeClass('active'); $(this).find('.pointer').removeAttr('height'); $('.pointer').css('height', ''); //$('.pointy').trigger('pointy-refresh'); setTimeout(function() { $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); $(chuthich_buble_id).css('height', ''); $(window).resize(); $(chuthich_buble_id).trigger('pointy-update'); }, 800); }); } if ($(chuthich_buble_id).length) { $main = $(this); $pointer = $(this).find(chuthich_buble_id); if ($($pointer).is(":visible")) { if (allow_close_pointy) { $($pointer).hide(); $(this).trigger('pointy-hide'); } } else { $($pointer).show(); $(this).trigger('pointy-show'); $('#rightdocinfo').hide('slow'); $('#r-toc').hide('slow'); $('#download-file,a#attribute').show(); $('html,body').animate({ scrollTop: $(chuthich_buble_id).find('h3.tieu_de_dan_chieu').offset().top - 300 }, 'slow'); } data_pointy_show = $pointer.attr('data-pointy-show'); if (data_pointy_show == 'false') { $close_link = $(chuthich_buble_id).find('i.close'), x = $(this).offset(); this_top = x.top - 500; $($pointer).css('top', this_top + 'px'); $('.pointer').css('z-index', '999'); $('canvas.pointy').css('z-index', '999'); $($pointer).css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); $(this).pointy({ pointer: $pointer, defaultClass: '', activeClass: 'pointy-active', arrowWidth: 20, //useOffset: true, borderColor: '#edeee7', backgroundColor: canva_color }); $('.pointer *').on('click mouseover', function() { $('.pointer').css('z-index', '1'); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $('canvas.pointy').css('z-index', '1'); $(this).closest('.pointer').css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); }); $('.pointer, .pointer *').on('click mouseover', function() { event.stopPropagation(); }); $($close_link).click(function() { allow_close_pointy = true; $(this).closest('.chu_thich').click(); }); $pointer.attr('data-pointy-show', 'true'); $(this).trigger('pointy-update'); $('.pointer').css('height', ''); } $pointer.draggable({ containment: '#view', drag: function() { // update pointy while dragging $(this).trigger('pointy-update'); $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id).css('height', ''); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); setTimeout(function() { $(chuthich_buble_id).trigger('pointy-refresh'); }, 1000); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); } }); } }); //dan_chieu cho Login $('.dan_chieu').each(function() { $(this).removeAttr('onmouseover'); $(this).removeAttr('onmouseout'); $(this).removeAttr('data-target'); $(this).attr('id', 'rnd_' + random_string_id(20)); if (!$(this).attr('class').includes('dan_chieu_tu_dong')) { $(this).addClass('dan_chieu_tu_dong'); } }); $('.dan_chieu').removeAttr('data-toggle'); $('.dan_chieu').click(function() { if ($('#ajax_tra_cuu').is(':visible')) { $('#ajax_tra_cuu').hide(); } var text_html = $(this).text(); dtttct = $(this).attr('data-dc'); if (this.hasAttribute('o-title')) { tieu_de_dan_chieu = $(this).attr('o-title'); } else { tieu_de_dan_chieu = text_html; } var $this_pointer = $(this).find('.pointer'); if (typeof ct_html === 'undefined') {} else { //$('html').prepend(ct_html); } if (typeof danchieu_id === 'undefined') {} danchieu_id = 'dc_' + $(this).attr('id'); dcase = $(this).attr('data-dcase'); chuthich_buble_id = '#dan_chieu_bubble_' + danchieu_id; danchieu_id_content = '#noi_dung_td_' + danchieu_id; $(this).find('.dan_chieu').on('click', function() { allow_close_pointy = false; }); if (typeof allow_close_pointy === 'undefined') { allow_close_pointy = true; } if (!$(chuthich_buble_id).length) { so_dan_chieu = $(danchieu_id_content + ' .badge-round').length; if (so_dan_chieu == 0) { so_dan_chieu = $(danchieu_id_content + ' .panel-default').length; } pointer_html = ''; $(this).append(pointer_html); if ($('#noi_dung_huong_dan_' + dtttct).length) { $("#noi_dung_dan_chieu_" + danchieu_id).html($('#noi_dung_huong_dan_' + dtttct).html()); } else { if (dtttct.length == 32) { $.ajax({ type: 'POST', url: '/ajax/public/dan-chieu/' + dtttct, data: { 'text_dan_chieu': text_html }, success: function(response) { $("#noi_dung_dan_chieu_" + danchieu_id).html(response); } }); } else { $("#noi_dung_dan_chieu_" + danchieu_id).load('/ajax/public/dan-chieu/' + dtttct + '/'); } } if ($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').length) { $("#tieu_de_dc_" + danchieu_id).html($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').html()); } if (!$('.row_vb_details .col-md-9').length) { var pointy_width2 = $(window).width() - $('#box_noi_dung_vb').width() - 95; } var min_bg_num = 1; var max_bg_num = 10; var random_bg_num = Math.floor(Math.random() * (max_bg_num - min_bg_num + 1)) + min_bg_num; var rnd_rgb_1 = Math.floor(Math.random() * (235 - 180)) + 180; var rnd_rgb_2 = Math.floor(Math.random() * (230 - 170)) + 170; var rnd_rgb_3 = Math.floor(Math.random() * (210 - 110)) + 110; var rnd_rgb_1 = '#FBF0E1'; var rnd_rgb_2 = rnd_rgb_1; var rnd_rgb_3 = rnd_rgb_1; var canva_colors = new Array('', '#fff9ab', '#ffe8ba', '#edffc5', '#c8fad5', '#e7f2d0', '#dbd0f2', '#ecffc3', '#c3ffc3', '#e3e6dd', '#e7ffc3'); var canva_color = rnd_rgb_1; $(chuthich_buble_id).css('width', $('#doc-right-col').width() - 10 + 'px'); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $(chuthich_buble_id).css('background', rnd_rgb_1); $('.pointer').css('height', ''); $(this).find('.pointer [ui-nav] a span').on('click', function(e) { var $this = $(e.target), $active, $li; $this.is('a') || ($this = $this.closest('a')); $li = $this.parent(); $active = $li.siblings(".active"); $li.toggleClass('active'); $active.removeClass('active'); $(this).find('.pointer').removeAttr('height'); $('.pointer').css('height', ''); //$('.pointy').trigger('pointy-refresh'); setTimeout(function() { $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); $(chuthich_buble_id).css('height', ''); $(window).resize(); $(chuthich_buble_id).trigger('pointy-update'); }, 800); }); } if ($(chuthich_buble_id).length) { $main = $(this); $pointer = $(this).find(chuthich_buble_id); if ($($pointer).is(":visible")) { if (allow_close_pointy) { $($pointer).hide(); $(this).trigger('pointy-hide'); } } else { $($pointer).show(); $(this).trigger('pointy-show'); $('#rightdocinfo').hide('slow'); $('#r-toc').hide('slow'); $('#download-file,a#attribute').show(); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $('html,body').animate({ scrollTop: $(chuthich_buble_id).offset().top - 300 }, 'slow'); } data_pointy_show = $pointer.attr('data-pointy-show'); if (data_pointy_show == 'false') { $close_link = $(chuthich_buble_id).find('i.close'), x = $(this).offset(); this_top = x.top - 500; $($pointer).css('top', this_top + 'px'); $('.pointer').css('z-index', '999'); $('canvas.pointy').css('z-index', '999'); $($pointer).css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); $(this).pointy({ pointer: $pointer, defaultClass: '', activeClass: 'pointy-active', arrowWidth: 20, //useOffset: true, borderColor: '#edeee7', backgroundColor: canva_color }); $('.pointer *').on('click mouseover', function() { $('.pointer').css('z-index', '1'); $('canvas.pointy').css('z-index', '1'); $(this).closest('.pointer').css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); }); $('.pointer, .pointer *').on('click mouseover', function() { event.stopPropagation(); }); $($close_link).click(function() { allow_close_pointy = true; $(this).closest('.dan_chieu').click(); }); $pointer.attr('data-pointy-show', 'true'); $(this).trigger('pointy-update'); $('.pointer').css('height', ''); } $pointer.draggable({ containment: '#view', drag: function() { $(this).trigger('pointy-update'); $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id).css('height', ''); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); setTimeout(function() { $(chuthich_buble_id).trigger('pointy-refresh'); }, 1000); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); } }); } }); //dan chieu tham khao ////chu thich cho Login $('.dan_chieu_tham_khao').each(function() { $(this).removeAttr('onmouseover'); $(this).removeAttr('onmouseout'); $(this).removeAttr('data-target'); $(this).attr('id', 'rnd_' + random_string_id(20)); }); $('.dan_chieu_tham_khao').removeAttr('data-toggle'); $('.dan_chieu_tham_khao').click(function() { // if ($('#ajax_tra_cuu').is(':visible')) { $('#ajax_tra_cuu').hide(); } dtttct = $(this).attr('data-ct'); id_ct = $(this).attr('id'); dc_text = $(this).html(); var $this_pointer = $(this).find('.pointer'); text_html = $(this).text(); if (typeof ct_html === 'undefined') {} else { //$('html').prepend(ct_html); } if (typeof chuthich_id === 'undefined') {} chuthich_id = 'dc_' + $(this).attr('id'); dcase = $(this).attr('data-dcase'); chuthich_buble_id = '#dan_chieu_tham_khao_bubble_' + chuthich_id; chuthich_id_content = '#noi_dung_td_' + chuthich_id; $(this).find('.dan_chieu_tham_khao').on('click', function() { allow_close_pointy = false; }); if (typeof allow_close_pointy === 'undefined') { allow_close_pointy = true; } if (!$(chuthich_buble_id).length) { so_chu_thich = $(chuthich_id_content + ' .badge-round').length; if (so_chu_thich == 0) { so_chu_thich = $(chuthich_id_content + ' .panel-default').length; } var buble_height = $(window).height() * 0.8; pointer_html = ''; $(this).append(pointer_html); if ($('#noi_dung_huong_dan_' + dtttct).length) { $("#noi_dung_dan_chieu_tham_khao_" + chuthich_id).html($('#noi_dung_huong_dan_' + dtttct).html()); } else { $.ajax({ type: 'POST', url: '/ajax/vanban/chu-thich/', data: { 'ndct': dtttct, 'id_ct': id_ct, 'loai_hd': 'noi_dung_tham_khao', 'dc_text': dc_text }, success: function(response) { $("#noi_dung_dan_chieu_tham_khao_" + chuthich_id).html(response); } }); } if ($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').length) { $("#tieu_de_dc_" + chuthich_id).html($('.tieu_de_dc_' + dtttct + ' span.tieu_de_dc').html()); } if (!$('.row_vb_details .col-md-9').length) { var pointy_width2 = $(window).width() - $('#box_noi_dung_vb').width() - 95; } else { pointy_width2 = $("#tctn-button").width() + $("#exco").width() + $(".tnpl-title").width() + $(".fa-expand").width() - 23; // alert(pointy_width2); } var min_bg_num = 1; var max_bg_num = 10; // and the formula is: var random_bg_num = Math.floor(Math.random() * (max_bg_num - min_bg_num + 1)) + min_bg_num; var rnd_rgb_1 = Math.floor(Math.random() * (235 - 180)) + 180; var rnd_rgb_2 = Math.floor(Math.random() * (230 - 170)) + 170; var rnd_rgb_3 = Math.floor(Math.random() * (210 - 110)) + 110; var rnd_rgb_1 = '#FBF0E1'; var rnd_rgb_2 = rnd_rgb_1; var rnd_rgb_3 = rnd_rgb_1; var canva_colors = new Array('', '#fff9ab', '#ffe8ba', '#edffc5', '#c8fad5', '#e7f2d0', '#dbd0f2', '#ecffc3', '#c3ffc3', '#e3e6dd', '#e7ffc3'); var canva_color = rnd_rgb_1; $(chuthich_buble_id).css('width', $('#doc-right-col').width() - 10 + 'px'); $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); $(chuthich_buble_id).css('background', rnd_rgb_1); //$(chuthich_buble_id).css('background', +rnd_rgb_1); //$(chuthich_buble_id).addClass('pointer_bg_'+random_bg_num); $('.pointer').css('height', ''); $(this).find('.pointer [ui-nav] a span').on('click', function(e) { var $this = $(e.target), $active, $li; $this.is('a') || ($this = $this.closest('a')); $li = $this.parent(); $active = $li.siblings(".active"); $li.toggleClass('active'); $active.removeClass('active'); $(this).find('.pointer').removeAttr('height'); $('.pointer').css('height', ''); //$('.pointy').trigger('pointy-refresh'); setTimeout(function() { $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); $(chuthich_buble_id).css('height', ''); $(window).resize(); $(chuthich_buble_id).trigger('pointy-update'); }, 800); }); } //var check_bubble = setInterval(function(){ },100); if ($(chuthich_buble_id).length) { $main = $(this); // fixed block // draggable element $pointer = $(this).find(chuthich_buble_id); if ($($pointer).is(":visible")) { if (allow_close_pointy) { $($pointer).hide(); $(this).trigger('pointy-hide'); //$("#box_noi_dung_vb").removeClass('box-shadow-z3 col-md-12 box-shadow-z2 ng-scope m-b-10').addClass('col-md-7 box-shadow-z2 ng-scope m-b-10'); } } else { $($pointer).show(); $(this).trigger('pointy-show'); $('#rightdocinfo').hide('slow'); $('#r-toc').hide('slow'); $('#download-file,a#attribute').show(); if ($("#doc-right-col").not(':visible')) { $('#doc-right-col').show(); } $(chuthich_buble_id).css('left', $('#tab_noi_dung_vb').width() + 35 + "px"); //$(chuthich_buble_id).find('h3.tieu_de_dan_chieu').text('ok'); $('html,body').animate({ scrollTop: $(chuthich_buble_id).find('h3.tieu_de_dan_chieu').offset().top - 300 }, 'slow'); } data_pointy_show = $pointer.attr('data-pointy-show'); if (data_pointy_show == 'false') { $close_link = $(chuthich_buble_id).find('i.close'), x = $(this).offset(); //alert(x.top); this_top = x.top - 500; $($pointer).css('top', this_top + 'px'); $('.pointer').css('z-index', '999'); $('canvas.pointy').css('z-index', '999'); $($pointer).css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); // initialize pointy $(this).pointy({ pointer: $pointer, // additional class name added to the pointer & the arrow (canvas) // to add a z-index of 1 defaultClass: '', // "pointy-active" class is used to keep the last updated pointer on top // this is the default value activeClass: 'pointy-active', // arrow base width (in pixels) arrowWidth: 20, //useOffset: true, borderColor: '#edeee7', backgroundColor: canva_color }); $('.pointer *').on('click mouseover', function() { $('.pointer').css('z-index', '1'); $(".nav-dropdown").css('width', $('#doc-right-col').width() +'px'); $('canvas.pointy').css('z-index', '1'); $(this).closest('.pointer').css('z-index', '999'); $(this).closest('canvas.pointy').css('z-index', '999'); }); $('.pointer, .pointer *').on('click mouseover', function() { event.stopPropagation(); }); $($close_link).click(function() { allow_close_pointy = true; $(this).closest('.dan_chieu_tham_khao').click(); }); $pointer.attr('data-pointy-show', 'true'); $(this).trigger('pointy-update'); $('.pointer').css('height', ''); } $pointer.draggable({ containment: '#view', drag: function() { // update pointy while dragging $(this).trigger('pointy-update'); $(chuthich_buble_id).removeAttr('height'); $(chuthich_buble_id).css('height', ''); $(chuthich_buble_id + ' .list_tds').css('max-height', $(window).height() + 'px'); setTimeout(function() { $(chuthich_buble_id).trigger('pointy-refresh'); }, 1000); $(".nav-dropdown").css('left', $('#tab_noi_dung_vb').width() + 50 + "px"); } }); } }); //ket thuc dan chieu tham khao $("cttd dctd dctk .dan_chieu_tham_khao").on('click mouseover', function(e) { e.preventDefault(); e.stopPropagation(); }); $('dctd, cttd, chuthich, dctk').click(function() { $('#customSidebar').animate({ right: '-280px' }, 500); $('#toggleSidebar').html(''); }); }); function random_string_id(numstr) { var text = ""; var possible = "abcdefghijklmnopqrstuvwxyz0123456789"; for (var i = 0; i < numstr; i++) text += possible.charAt(Math.floor(Math.random() * possible.length)); return text; }