﻿var templateQuickComment = {
    GetRecentOfUser: 'GetRecentOfUser',
    GetAllOfUser: 'GetAllOfUser',
    ShowSendMessage: 'ShowSendMessage'
}
templates[templateQuickComment.GetRecentOfUser] = [    
    '<ul style="list-style: none">',
        '<tpl for=".">',
            '<li>',
                '<a href="../{AuthorName}"><span class="nick">{AuthorName}</span></a>&nbsp;&nbsp;&nbsp;',
                '<tpl if="isDelete"><a href="#" name="btnDeleteCommentOfQuickComment" rel="{Id}"><img src="/Images/delete.png" style="cursor: pointer"></a></tpl>',
                '<p>{Comment}</p> ',
                '<p class="link2">{CreatedDateFormat}</p>',
            '</li>',
        '</tpl>',
    '</ul>'
];

templates[templateQuickComment.GetAllOfUser] = [    
    '<div id="divallquickcomment"><ul style="list-style: none">',
        '<tpl for=".">',
            '<li>',
                '<a href="../{AuthorName}"><span class="nick">{AuthorName}</span></a>&nbsp;&nbsp;&nbsp;',
                '<tpl if="isDelete"><a href="#" name="btnDeleteCommentOfQuickCommentOnAll" rel="{Id}"><img src="/Images/delete.png" style="cursor: pointer"></a></tpl>',
                '<p>{Comment}</p> ',
                '<p class="link2">{CreatedDateFormat}</p>',
            '</li>',
        '</tpl>',
    '</ul></div>'
];

templates[templateQuickComment.ShowSendMessage] = [    
    '<div style="padding-top:10px">Nhập nội dung cần gửi:<br/>',
    '<textarea id="txtAdmin_Message_Content" cols=73 rows=10></textarea><br/>',
    '<input type="button" class="button" id="btnAdmin_SendMessage" value="Gửi đi" /><p/></div>'
];