<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>个人站点</title>
    <link href="http://www.1473.cn/uform.css" rel="stylesheet" type="text/css" />
    <link href="http://coffice.1473.cn/css/Office/Excel/SitePreview.css" rel="stylesheet"
        type="text/css" />
    <style>
        .shareBlock
        {
            display: inline-block;
            padding: 20px;
        }
        .shareBlock:hover
        {
            background-color: #f1f1f1;
            cursor: pointer;
        }
        .U_MD_O_W_SP_footer_Logo > img
        {
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="U_MD_O_W_SP_Box">
        <div class="U_MD_O_W_SP_Head">
            <div class="U_MD_O_W_SP_MarginBox_File">
                <div class="U_MD_O_W_SP_Head_FileName">
                </div>
                <div class="U_MD_O_W_SP_Head_Logo">
                    <img src="http://www.1473.cn/BoomYun/img/pc/Solution/Solution_LOGO.png" onclick="window.location.href='http://www.1473.cn/'" />
                </div>
            </div>
        </div>
        <div class="U_MD_O_W_SP_Head_Model">
            <div class="U_MD_O_W_SP_MarginBox_Model">
                <div class="U_MD_O_W_SP_Head_Logo_Model">
                    <img src="http://www.1473.cn/BoomYun/img/pc/Solution/Solution_LOGO.png" onclick="window.location.href='http://www.1473.cn/'" />
                </div>
                <div class="U_MD_O_W_SP_Head_Logo_name">
                    销售进度跟进表</div>
            </div>
        </div>
        <div class="U_MD_O_W_SP_CBox">
            <div class="U_MD_O_W_SP_Content">
                <div class="U_MD_O_W_SP_MarginBox_File">
                    <div class="U_MD_O_W_SP_Tool">
                        <div class="U_MD_O_W_SP_Tool_Btn">
                            下载</div>
                        <div id="U_MD_O_W_SP_Tool_SaveBtn" class="U_MD_O_W_SP_Tool_Btn">
                            保存到云盘</div>
                        <div id="U_MD_O_W_SP_Tool_ShareBtn" class="U_MD_O_W_SP_Tool_Btn">
                            分享</div>
                    </div>
                    <div class="U_MD_O_W_SP_Content_page" id="U_MD_O_W_SP_Editor">
                    </div>
                    <div class="U_MD_O_W_SP_Top_Icon" style="visibility: hidden;">
                        <img src="http://coffice.1473.cn/Controls/Office/Word/WordModel/img/top.png" alt="返回顶部" />
                    </div>
                </div>
            </div>
            <div class="U_MD_O_W_SP_footer">
                <div class="U_MD_O_W_SP_MarginBox">
                    <div class="U_MD_O_W_SP_footer_Logo">
                        <img src="http://www.1473.cn/BoomYun/img/pc/Solution/Solution_LOGO.png" onclick="window.location.href='http://www.1473.cn/'" />
                    </div>
                    <p class="U_MD_O_W_SP_footer_Text">
                        公司名称:深圳市雨云技有限公司
                        <br />
                        闽ICP备13020990号-5ghs闽公网安备 35020302000042号<br />
                        Copyright © 2017 Meetyou. 保留所有权利
                    </p>
                </div>
            </div>
            <div class="U_MD_O_W_SP_Fixed_Icon">
                <img src="http://coffice.1473.cn/Controls/Office/Word/WordModel/img/fixedLogo.png" alt="互联办公"
                    width="100%" onclick="window.location.href='http://www.1473.cn/#boomyun'" />
            </div>
        </div>
    </div>
    <script src="http://www.1473.cn/uform.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
        window.onload = function () {
            var _name = window.location.pathname.split('/')[1];
            U.A.Request(US.CD, ["db.1473.cn", "UseStudio_DNS", "GetFileIdToDomain", _name], function (r) {
                var _value = r.value;
                U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "GetFileById", _value[0].FileId], function (r) {
                    var _value = r.value[0];
                    $("#U_MD_O_W_SP_Editor")[0].innerHTML = _value.UsOffice.unEscapeQuotes();
                    $('#U_MD_O_W_SP_Head_UserName')[0].innerText = _value.UserName;
                    $(".U_MD_O_W_SP_Head_FileName")[0].innerText = _value.UserFilesName;

                    $(".U_MD_O_W_SP_Head_Share")[0].onclick = function () {
                        var _el = document.getElementById('shareBoard');
                        if (!_el) {
                            shareFile(_value);
                        } else {
                            _el.style.display = "block"
                        }

                    }

                }); //获取文件信息
            });
        }

        function shareFile(fileInfo) {
            var _content = $$('div', { style: { cssText: " margin:0 40px; padding-top:25px;text-align:center"} }),
                _xin = $$('div', { className: "shareBlock" }, _content),
                _qq = _xin.cloneNode();

            $$('img', { "onerror": U.MD.C.imgError, src: "http://www.1473.cn/img/Xinlang.png" }, _xin);
            $$('img', { "onerror": U.MD.C.imgError, src: "http://www.1473.cn/img/Kongjian.png" }, _qq);
            $$('div', { innerText: "新浪微博" }, _xin);
            $$('div', { innerText: "QQ空间" }, _qq);
            _content.appendChild(_qq);


            _qq.onclick = function () {
                qqShare(window.location.href, fileInfo.UserFilesName, fileInfo.UserName)
            }

            _xin.onclick = function () {
                weiboShare(window.location.href, fileInfo.UserFilesName, fileInfo.UserName);
            }

            new U.UF.UI.form("分享文档", _content, { id: "shareBoard", style: { "width": "270px", "height": "170px"} }, { isenlarge: false, isnarrow: false, isstretching: false });
        }

        function weiboShare(dnsname, filename, username) {
            var WBtitle = "这个文档超赞的,赶快分享给大家吧!【" + username + "——(分享自-互联办公)】";
            var sharesinastring = 'http://v.t.sina.com.cn/share/share.php?title=' + WBtitle + '&url=' + dnsname.innerHTML + '&content=utf-8&sourceUrl=' + dnsname.innerHTML;
            window.open(sharesinastring, 'newwindow', 'height=500,width=800,top=300,left=300');
        }

        function qqShare(dnsname, filename, username) {
            var KJtitle = "分享是种乐趣,所以让我们成为传播乐趣的人吧!【" + username + "——(分享自-互联办公)】";
            var shareqqzonestring = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?summary=' + filename + '&title=' + KJtitle + '&url=' + dnsname;
            window.open(shareqqzonestring, 'newwindow', 'height=500,width=800,top=300,left=300');
        }
    </script>
</body>
</html>