define (['doT', 'text!temp/user_templete_tpl.html','ckfinder','ckfinderStart', 'css!style/user.css',"datetimepicker"], function (doT, template) {
    var user = {
        urls: '',
        init: function () {
            //初始化dot
            $ ("body").append (template);
            user.getList ();
            user.event ();
            //时间控件初始化
            $('#datetimepicker').datetimepicker({
                format: 'yyyy-MM-dd',
                language: 'zh-CN',
                pickTime: false
            }).on('changeDate',function(){
                $(this).datetimepicker('hide');
            });
        },
        event: function () {
            $ (".Bannertu").click (function () {
                BrowseServer ('cover_image');
            });

        },
        getList: function () {
            var temp = document.getElementById ('user_index_tpl').innerHTML;
            var doTtmpl = doT.template (temp);
            $ ("body").append (doTtmpl ());
        }
    }
    return user;
});
