function renderItem(id, titre, content, date, images)
    {
        var myDate = new Date(date);
        var strDate = "";
        strDate += myDate.getUTCDate() + "/" + myDate.getMonth() + "/" + myDate.getFullYear();
        strDate += " à " + myDate.getHours() + ":" + myDate.getMinutes();
        var article = "";
        article += "<article id='article-" + id + "' class='articlePost'>\
                <h2>" + titre + "</h2>\
                <p class='content'>" + content + "</p>";
        article += "<div id='Listeimages'><ul class='image'>";
        for (i = 0; i < images.length; i++) {
            console.log(images[i].nomImage);
            article += "<li><img src='" + images[i].nomImage + "'></li>";
        }
        article += "</ul></div>";
        article += "<div class='postmeta'>\n\
                    <p class='alignleft'>Publi&eacute; le " + strDate + "</p>\n\
                    <p class='alignright'>\n\
                        <a class='button blue delete' href='/BlogWS2015/resources/article/" + id + "'>Supprimer</a>\n\
                        <a href='/BlogWS2015/resources/article/" + id + "' class='button blue title'>Modifier</a>\
                    </p></div>\n\
                    <div class='clearfix'></div>\
                </div>";
        return article;
    }
// creation et ajout d'un article dans la page
creation et ajout d'un article dans la page
creation et ajout d ' un article dans la page
function renderItem(id, titre, content, date, images)
    {
        var myDate = new Date(date);
        var strDate = "";
        strDate += myDate.getUTCDate() + "/" + myDate.getMonth() + "/" + myDate.getFullYear();
        strDate += " à " + myDate.getHours() + ":" + myDate.getMinutes();
        var article = "";
        article += "<article id='article-" + id + "' class='articlePost'>\
                <h2>" + titre + "</h2>\
                <p class='content'>" + content + "</p>";
        article += "<div id='Listeimages'><ul class='image'>";
        for (i = 0; i < images.length; i++) {
            console.log(images[i].nomImage);
            article += "<li><img src='" + images[i].nomImage + "'></li>";
        }
        article += "</ul></div>";
        article += "<div class='postmeta'>\n\
                    <p class='alignleft'>Publi&eacute; le " + strDate + "</p>\n\
                    <p class='alignright'>\n\
                        <a class='button blue delete' href='/BlogWS2015/resources/article/" + id + "'>Supprimer</a>\n\
                        <a href='/BlogWS2015/resources/article/" + id + "' class='button blue title'>Modifier</a>\
                    </p></div>\n\
                    <div class='clearfix'></div>\
                </div>";
        return article;
    }
function renderItem ( id , titre , content , date , images ) { var myDate = new Date ( date ) ; var strDate = "" ; strDate += myDate . getUTCDate ( ) + "/" + myDate . getMonth ( ) + "/" + myDate . getFullYear ( ) ; strDate += " à "  yDate. g etHours( ) :"  yDate. g etMinutes( ) ; var article = "" ; article += "<article id='article-" + id + "' class='articlePost'>\
                <h2>" + titre + "</h2>\
                <p class='content'>" + content + "</p>" ; article += "<div id='Listeimages'><ul class='image'>" ; for ( i = 0 ; i < images . length ; i ++ ) { console . log ( images [ i ] . nomImage ) ; article += "<li><img src='" + images [ i ] . nomImage + "'></li>" ; } article += "</ul></div>" ; article += "<div class='postmeta'>\n\
                    <p class='alignleft'>Publi&eacute; le " + strDate + "</p>\n\
                    <p class='alignright'>\n\
                        <a class='button blue delete' href='/BlogWS2015/resources/article/" + id + "'>Supprimer</a>\n\
                        <a href='/BlogWS2015/resources/article/" + id + "' class='button blue title'>Modifier</a>\
                    </p></div>\n\
                    <div class='clearfix'></div>\
                </div>" ; return article ; }
creation et ajout d'un article dans la page
creation et ajout d ' un article dans la page