public void afficherClientsInactifs() { List <PPClients> lstClientsInactifs = LibrairieLINQ.getClientsInactifsDepuis(this.nbMois); Panel row = LibrairieControlesDynamique.divDYN(phDynamique, "rowDemandeurs", "row"); foreach (PPClients client in lstClientsInactifs) { long idClient = client.NoClient; String nomclient = client.Prenom + " " + client.Nom; String urlImg = "../static/images/client.png"; // infos Panel colInfos = LibrairieControlesDynamique.divDYN(row, "colInfos_" + idClient, "col-md-4"); Panel demandeBase = LibrairieControlesDynamique.divDYN(colInfos, "base_" + idClient, "panel panel-default"); demandeBase.Style.Add("height", "170px"); Panel demandeBody = LibrairieControlesDynamique.divDYN(demandeBase, "body_" + idClient, "panel-body"); Panel demandeFooter = LibrairieControlesDynamique.divDYN(demandeBase, "footer_" + idClient, "panel-footer"); Panel media = LibrairieControlesDynamique.divDYN(demandeBody, "media_" + idClient, "media"); Panel mediaLeft = LibrairieControlesDynamique.divDYN(media, "mediaLeft_" + idClient, "media-left"); Image img = LibrairieControlesDynamique.imgDYN(mediaLeft, "img_" + idClient, urlImg, "media-object"); img.Style.Add("width", "75px"); Panel mediaBody = LibrairieControlesDynamique.divDYN(media, "mediaBody_" + idClient, "media-body"); LibrairieControlesDynamique.h4DYN(mediaBody, "h4_" + idClient, client.AdresseEmail); LibrairieControlesDynamique.pDYN(mediaBody, "Date création: " + client.DateCreation.Value.ToString("yyyy'-'MM'-'dd HH':'mm")); // btn non Panel divBotRow = LibrairieControlesDynamique.divDYN(demandeFooter, "", "row"); Panel divColBotCheck = LibrairieControlesDynamique.divDYN(divBotRow, "", "col-md-2"); CheckBox cb = LibrairieControlesDynamique.cb(divColBotCheck, "checkbox_" + idClient, "", "checkmark"); lstCheckBox.Add(cb); Panel divBotColBtn = LibrairieControlesDynamique.divDYN(divBotRow, "", "col-md-2"); HtmlButton btnNon = LibrairieControlesDynamique.htmlbtnDYN(divBotColBtn, "btnNon_" + idClient, "btn btn-danger", "", "glyphicon glyphicon-remove", btnNon_click); } if (lstClientsInactifs.Count() < 1) { divMessage.Visible = true; } }