Header Web
Página de novidades CS
var Model = function () { var self = this; /*REQCS*/ this.template_pncsData ={"Banner":"https://www.phc.pt/portal/pimages/banner_pncs.png","ArrVersoes":["out 26","jul 26","dez 25","jul 25","abr 25","jan 25","out 24","abr 24","fev 24"],"htmlcontent_cta":[{"idioma":"es-es","text":"Más información sobre esta versión"},{"idioma":"pt-pt","text":"Saiba mais sobre esta versão"},{"idioma":"es-pe","text":"Más información sobre esta versión"},{"idioma":"en-us","text":"Learn more about this version"}],"htmlcontent_ctabtn":[{"idioma":"es-es","text":"Saber mas"},{"idioma":"pt-pt","text":"Saber mais"},{"idioma":"es-pe","text":"Saber mas"},{"idioma":"en-us","text":"More info"}],"htmlcontent_ctaheader":[{"idioma":"es-es","text":"Descubre las novedades de PHC CS"},{"idioma":"pt-pt","text":"Conheça as Novidades PHC CS"},{"idioma":"es-pe","text":"Descubre las novedades de PHC CS"},{"idioma":"en-us","text":"Discover the PHC CS News"}],"htmlcontent_ctaurlbtn":[{"idioma":"es-es","text":""},{"idioma":"pt-pt","text":""},{"idioma":"es-pe","text":""},{"idioma":"en-us","text":""}],"htmlcontent_politica":[{"idioma":"es-es","text":"Política de privacidad"},{"idioma":"pt-pt","text":"Política de Privacidade"},{"idioma":"es-pe","text":"Política de privacidad"},{"idioma":"en-us","text":"Privacy Policy"}],"htmlcontent_direitos":[{"idioma":"es-es","text":"© Derechos de autor del software PHC. Reservados todos los derechos."},{"idioma":"pt-pt","text":"© Copyright PHC Software. Todos os direitos reservados."},{"idioma":"es-pe","text":"© Derechos de autor del software PHC. Reservados todos los derechos."},{"idioma":"en-us","text":"© Copyright PHC Software. All rights reserved."}],"arrVersoes":[{"versao":"202603","mes":"out","ano":"26","resumo":[{"idioma":"pt-PT","text":"","url":""}]},{"versao":"202602","mes":"jul","ano":"26","resumo":[{"idioma":"pt-PT","text":"","url":""}]},{"versao":"202504","mes":"dez","ano":"25","resumo":[{"idioma":"pt-PT","text":"A nova versão do Cegid PHC Evolution e Cegid PHC CS reforça a segurança, simplifica obrigações, apresenta mais robustez e melhora a gestão diária. Integra o Arquivo Digital com Cegid Docs oferecendo uma solução mais completa para a gestão de anexos. E usufrua da reconciliação bancária redesenhada, centralizando tudo em apenas um ecrã para uma experiência simples e intuitiva. Conheça aqui as novidades para uma gestão eficiente.","url":"https://helpcenter.phccs.net/pt/programs/ewpview.aspx?codigo=helpcenter"}]},{"versao":"202503","mes":"jul","ano":"25","resumo":[{"idioma":"pt-PT","text":"A nova versão do Cegid PHC CS traz melhorias que reforçam a segurança, simplificam obrigações legais e aumentam o rigor na gestão diária. Destaca-se a nova autenticação com Office 365, mais segura e simples, a comunicação direta da cessação de vínculo à Segurança Social, feita no próprio software, e a valorização de stock com registo da hora, para uma análise mais precisa e coerente. Tudo isto, e outras novidades, para que trabalhe com mais fluidez, confiança e controlo no seu dia a dia.","url":"https://helpcenter.phccs.net/pt/programs/ewpview.aspx?codigo=helpcenter"}]},{"versao":"202502","mes":"abr","ano":"25","resumo":[{"idioma":"pt-PT","text":"Ganhe mais tempo, evite erros e mantenha o controlo total sobre as operações do dia a dia. Com melhorias que aceleram processos, automatizam comunicações e tornam a navegação e o planeamento mais intuitivos, esta versão foi desenhada para que trabalhe com mais fluidez, eficiência e confiança.","url":"https://helpcenter.phccs.net/pt/programs/ewpview.aspx?codigo=helpcenter"}]},{"versao":"202501","mes":"jan","ano":"25","resumo":[{"idioma":"pt-PT","text":"O PHC CS traz novidades para promover a eficiência e conformidade legal através da atualização automática de motivos de isenção de IVA, melhorias na gestão de descontos, armazenamento flexível via File Storage e acesso à criação de templates e personalização de respostas da Cris.","url":"https://helpcenter.phccs.net/pt/programs/ewpview.aspx?codigo=helpcenter"}]},{"versao":"202404","mes":"out","ano":"24","resumo":[{"idioma":"pt-PT","text":"Chegaram as novidades do PHC CS para o último trimestre, centradas em três pilares essenciais que garantem um software future proof, ou seja, à prova de futuro: boas práticas de gestão, personalização e solidez, segurança e robustez.","url":"https://helpcenter.phccs.net/pt/programs/ewpview.aspx?codigo=helpcenter"}]},{"versao":"202402","mes":"abr","ano":"24","resumo":[{"idioma":"pt-PT","text":"O PHC CS evolui continuamente para otimizar e agilizar os seus processos de gestão, financeiros e também melhorar a experiência do cliente. Prova disso é a Cris – a assistente de gestão inteligente da PHC – que também evolui para lhe trazer a melhor usabilidade. Inteligência Artificial generativa ao serviço da gestão? Sim, para empresas mais rápidas e melhores.","url":"https://helpcenter.phccs.net/pt/programs/ewpview.aspx?codigo=helpcenter"}]},{"versao":"202401","mes":"fev","ano":"24","resumo":[{"idioma":"pt-PT","text":"Novo ano, novas funcionalidades? Sim, para empresas mais rápidas e melhores. Sobretudo se quiser ampliar a sua capacidade, tanto em velocidade como em qualidade. Em 2024 apresentamos uma solução ainda mais completa e automatizada. Queremos revolucionar a gestão de empresas e nenhuma empresa pode ficar para trás, só assim é possível garantir competitividade e crescimento contínuos. Contamos consigo?","url":"https://helpcenter.phccs.net/pt/programs/ewpview.aspx?codigo=helpcenter"}]}]} /*REQCS*/ function get_query() { var url = $(location).attr('href'); console.log(url) var qs = url.substring(url.indexOf('?') + 1).split('&'); for (var i = 0, result = {}; i < qs.length; i++) { qs[i] = qs[i].split('='); result[qs[i][0]] = decodeURIComponent(qs[i][1]); } return result; } var lang = get_query().lang; var geo = get_query().geo; if (lang == ("pt-pt")) { lang = 3 } else if (lang == ("es-es")) { lang = 0 } else if (lang == ("en-us")) { lang = 1 } else if (lang == ("es-pe")) { lang = 2 } this.urlValid = function (url) { if (url.includes("http")) { return url; } else { return "//" + url; } } this.versao = ko.observable(); this.data = ko.observable(); this.dataIndex = ko.observable(0); this.dataUp = ko.observable(); this.dataUp = function () { if (self.dataIndex() < self.template_pncsData.ArrVersoes.length - 1) { self.dataIndex(self.dataIndex() + 1) } } this.dataDown = function () { if (self.dataIndex() != 0) { self.dataIndex(self.dataIndex() - 1) } } this.arrlength = ko.computed(function () { return self.template_pncsData.ArrVersoes.length - 1 }, self) this.currentData = ko.observable(); this.currentData2 = ko.observable(); this.currentData = ko.computed(function () { return self.template_pncsData.ArrVersoes[self.dataIndex()].split(" ")[0] }, self) this.currentData2 = ko.computed(function () { return self.template_pncsData.ArrVersoes[self.dataIndex()].split(" ")[1] }, self) this.currentIndex = ko.computed(function () { return self.dataIndex() }, self) this.resumoVersao = function () { // return ko.utils.arrayFilter(ko.utils.arrayFilter(self.template_pncsData.arrVersoes, function (dataItem) { // let htmlData = self.currentData() + self.currentData2(); // let dataFim = dataItem.mes + dataItem.ano; // if (dataFim == htmlData) { // return true; // } else { // return false; // } // })[0].resumo, function (resumoItem) { // if (resumoItem.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { // return true; // } else { // return false; // } // })[0].text let resumoArr = ko.utils.arrayFilter(self.template_pncsData.arrVersoes, function (dataItem) { let htmlData = self.currentData() + self.currentData2(); let dataFim = dataItem.mes + dataItem.ano; if (dataFim == htmlData) { return true; } else { return false; } }) let res = [] if (resumoArr.length > 0) { res = ko.utils.arrayFilter(resumoArr[0].resumo, function (resumoItem) { if (resumoItem.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { return true; } else { return false; } }) if (res.length > 0) { return res[0].text } } return "" } this.btnMoreInfo = function () { // return ko.utils.arrayFilter(self.template_pncsData.htmlcontent_ctabtn, function (item) { // if (item.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { // return true; // } else { // return false; // } // })[0].text let btnMI = ko.utils.arrayFilter(self.template_pncsData.htmlcontent_ctabtn, function (item) { if (item.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { return true; } else { return false; } }) if (btnMI.length > 0) { return btnMI[0].text } else { return "" } } this.btnUrlMoreInfo = function () { let resumoArr = ko.utils.arrayFilter(self.template_pncsData.arrVersoes, function (dataItem) { let htmlData = self.currentData() + self.currentData2(); let dataFim = dataItem.mes + dataItem.ano; if (dataFim == htmlData) { return true; } else { return false; } }) let res = [] if (resumoArr.length > 0) { res = ko.utils.arrayFilter(resumoArr[0].resumo, function (resumoItem) { if (resumoItem.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { return true; } else { return false; } }) if (res.length > 0) { return res[0].url } } return "" // let btnMIurl = ko.utils.arrayFilter(self.template_pncsData.htmlcontent_ctaurlbtn, function (item) { // if (item.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { // return true; // } else { // return false; // } // }) // if (btnMIurl.length > 0) { // return btnMIurl[0].text // } else { // return "" // } } this.headerMoreInfo = function () { let headerMI = ko.utils.arrayFilter(self.template_pncsData.htmlcontent_cta, function (itemTitle) { if (itemTitle.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { return true; } else { return false; } }) if (headerMI.length > 0) { return headerMI[0].text } else { return "" } } this.headerPagNew = function () { let headerPN = ko.utils.arrayFilter(self.template_pncsData.htmlcontent_ctaheader, function (itemBtn) { if (itemBtn.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { return true; } else { return false; } }) if (headerPN.length > 0) { return headerPN[0].text } else { return "" } } this.footerDireitos = function () { let footerDir = ko.utils.arrayFilter(self.template_pncsData.htmlcontent_direitos, function (item) { if (item.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { return true; } else { return false; } }) if (footerDir.length > 0) { return footerDir[0].text } else { return "" } } this.footerPolitica = function () { let footerPol = ko.utils.arrayFilter(self.template_pncsData.htmlcontent_politica, function (item) { if (item.idioma.toLowerCase() == self.filterIdioma().idioma.toLowerCase()) { return true; } else { return false; } }) if (footerPol.length > 0) { return footerPol[0].text } else { return "" } } this.filterPagDetalhe = function () { var versaoData = self.currentData() + self.currentData2() var codUrl = self.filterIdioma().idioma.toLowerCase() + geo + versaoData document.getElementById('loading').style.display = "inline-flex"; var lang = codUrl.substring(0, 5) function translate_month(month, lang) { var result = month; if (lang == "en-us") { switch (month) { case 'Fev': result = 'FEB'; break; case 'ABR': result = 'APR'; break; case 'MAI': result = 'MAY'; break; case 'AGO': result = 'AUG'; break; case 'SET': result = 'SEP'; break; case 'OUT': result = 'OCT'; break; case 'DEZ': result = 'DEC'; break; } } else if (lang == "es-pe") { switch (month) { case 'JAN': result = 'ENE'; break; case 'FEV': result = 'FEB'; break; case 'ABR': result = 'APR'; break; case 'MAI': result = 'MAY'; break; case 'SET': result = 'SEP'; break; case 'OUT': result = 'OCT'; break; case 'DEZ': result = 'DIC'; break; } } else if (lang == "pt-pt") { switch (month) { case 'ENE': result = "JAN"; break; case 'FEB': result = "FEV" break; case 'APR': result = "ABR"; break; case 'MAY': result = "MAI"; break; case 'SEP': result = "SET"; break; case 'OCT': result = "OUT"; break; case (month == 'DEC' || month == 'DIC'): result = "DEZ"; break; case 'AUG': result = "AGO" break; } } else if (lang == "es-es") { switch (month) { case 'JAN': result = 'ENE'; break; case 'FEV': result = 'FEB'; break; case 'ABR': result = 'ABR'; break; case 'APR': result = 'ABR'; break; case 'MAI': result = 'MAY'; break; case 'SET': result = 'SEP'; break; case 'OUT': result = 'OCT'; break; case 'DEZ': result = 'DIC'; break; } } return result; } document.getElementById("mesversao").innerText = translate_month(document.getElementById("mesversao").innerText, lang) return self.urlValid("https://www.phc.pt/portal/programs/ewpview.aspx?codigo=pncsd" + codUrl + "&lang=" + self.filterIdioma().idioma.toLowerCase() + "&vs=" + versaoData + "&geo=" + geo + "&disp=1") } /* IDIOMA */ this.availableIdioma = [ { text: "(Español)", idioma: "es-ES", urlImage: "https://community.phcsoftware.com/images/flag_es.png", id_idioma: 0, id_lang: "ES" }, { text: "(English)", idioma: "en-US", urlImage: "https://community.phcsoftware.com/images/flag_us.png", id_idioma: 1, id_lang: "US" }, { text: "(Español)", idioma: "es-PE", urlImage: "https://community.phcsoftware.com/images/flag_pe.png", id_idioma: 2, id_lang: "PE" }, { text: "(Português)", idioma: "pt-PT", urlImage: "https://community.phcsoftware.com/images/flag_pt.png", id_idioma: 3, id_lang: "PT" } ]; this.filterIdioma = ko.observable() this.filterIdioma(this.availableIdioma[lang]) this.selectflag = function (id) { self.filterIdioma(this.availableIdioma[id]) } this.backgroundImage = function (option, item) { ko.applyBindingsToNode( option, { style: { 'background-image': 'url(\'' + item.urlImage + '\')' } }, item); } this.backgroundImage2 = function (option, item) { ko.applyBindingsToNode( option, { syle: { 'background-image': 'url("https://community.phcsoftware.com/images/flag_pt.png")' } }, item); } this.loadData = function () { } this.loadData(); } $(function () { //Inativar css var styleSheets = document.getElementsByTagName("link"); for (var i = 0; i < styleSheets.length; i++) { var styleSheet = styleSheets[i]; var href = styleSheet.href; if (href && href.includes("cssmk")) { styleSheet.disabled = true; } } iFrameResize({ log: false, checkOrigin: ["https://www.phc.pt"] }); ko.applyBindings(new Model()); let container = $("#aspnetForm > div.container"); container.after($("#pncsOptions")); container.after($("#pncsHeading")); container.removeClass("container"); $("#ctl00_MasterUpdatePanel1").hide(); $("#primary-navigation").remove(); $("#site-header-wrapper").remove(); $("#headerPortal").remove(); var iframe = document.getElementById("novidadesCS"); // Adjusting the iframe height onload event iframe.onload = function () { $('#loading').fadeOut(400); /*document.getElementById('loading').style.display = "none";*/ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px'; } jQuery(".dropdown-menu li a[data-culture]").click(function () { jQuery("button.dropdown-toggle").html($(this).html()); }); }); body { background-color: #F0F0F0 !important; overflow-x: hidden; font-family: 'Inter' !important; font-style: normal !important; } .loading { /* Absolute position */ left: 0; position: absolute; top: 0; /* Take full size */ height: 100%; width: 100%; /* Center */ align-items: center; display: flex; justify-content: center; background-color: white; } footer { display: none; } .form-select { border-radius: 14px !important; } .preloader { display: none !important; /* TODO - Inativar cenas do MKT no portal - CSS a estragar devs - Hablar com o CELSO */ } .pncsHeading { position: relative; /* background-image: url(https://www.phc.pt/portal/pimages/banner_pncs.png); */ background-repeat: no-repeat; background-size: cover; max-width: 100vw; max-height: 14vw; margin-bottom: 1vh; width: auto; height: auto; } .rowContentCount { min-height: 20vh; background-color: white !important; /* margin-bottom: 1%; */ } .justify-content-center { justify-content: center !important; } .footerdiv{ min-height: 91px !important; max-height: 91px !important; } .headerdiv { min-height: 210px; margin-bottom: 14px; } .idiomacol { /* display: flex; align-items: center; justify-content: center; */ padding-top: 2%; visibility: hidden; } .colVersion { padding: 3% 7% 3% 4.5%; } #novidadesCS { width: 100%; border: 0px solid; } .rowEvent { padding-top: 4%; background-color: #383838 !important; min-height: 27.5rem !important; color: white; text-align: center !important; } #btnMore { margin-top: 2%; border-radius: 15px; padding: 8px 30px 8px 30px; font-size: 20px; } .titleEvent { font-size: 40px; } .align-me-dync { text-align: left; display: table; min-height: 9rem !important; } .social-logo-link { display: inline-block; float: right; margin-right: 10px; width: 20px; height: 20px; } .footerText { vertical-align: middle; display: table-cell; margin-left: 10%; } .footerTextbtn { display: inline; color: #F0F0F0 !important; text-decoration: underline !important; } .social { vertical-align: middle; display: table-cell; padding-right: 10%; } .divPriv { padding-left: 4%; } .pdatavers { display: inline-block !important; font-size: 7rem; font-weight: bold; vertical-align: middle; } .divVersao { text-align: center !important; padding-top: 7%; user-select: none; padding-bottom: 7%; } .titleHeader { /* vertical-align: bottom; position: absolute; */ bottom: 0; left: 0; /* margin: 0% 0% 3% 4%; */ font-size: 18px; font-weight: 600; } #anoversao { color: #FF5050; margin-left: 3%; } .arrow-up { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; margin-left: 50%; border-bottom: 10px solid rgba(0, 0, 0, 0.38) !important; cursor: pointer; } .arrow-down { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; margin-left: 50%; border-top: 10px solid rgba(0, 0, 0, 0.38) !important; cursor: pointer; } .pdatavers { text-transform: uppercase; } #btnSelIdioma { border: 1px solid rgba(0, 0, 0, 0.6); border-radius: 8px; padding: 5px 15px 5px 15px; background-color: white; } .TwoLetterCulture { vertical-align: middle; font-size: 16px; margin-left: 10px; color: rgba(0, 0, 0, 0.87); } .phcCulture { vertical-align: middle; font-size: 16px; margin-left: 5px; color: rgba(0, 0, 0, 0.87); } .containerFooter { background-color: #1A1B1F; } .spFooterCopy{ color: white !important; } /* Media queries */ @media screen and (max-width: 700px) { .titleEvent { margin-bottom: 10%; } .rowEvent { min-height: 0px !important; padding-top: 10%; padding-bottom: 10%; } .pncsHeading { min-height: 17vh; } .headerdiv { min-height: 0px; } .rowContentCount { margin-bottom: 0px !important; } .colVersion { padding-left: 24px; padding-right: 24px; padding-bottom: 14px; } .divPriv { margin-top: 7%; text-align: center; margin-bottom: 7%; } .social-logo-link { float: none; margin-left: auto; margin-right: auto; } .social { padding-right: 0px; margin-bottom: 7%; } .align-me-dync { text-align: center !important; min-height: 5% !important; } #btnMore { margin-top: 16px; } .TwoLetterCulture { display: none; } .phcCulture { display: none; } .idiomacol { padding-top: 7%; } }
<!-- -->
<!--FOOTER--> <!--FOOTER-->