SitePreview.htm 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>个人站点</title>
  5. <link href="http://www.1473.cn/uform.css" rel="stylesheet" type="text/css" />
  6. <link href="http://coffice.1473.cn/css/Office/Excel/SitePreview.css" rel="stylesheet"
  7. type="text/css" />
  8. <style>
  9. .shareBlock
  10. {
  11. display: inline-block;
  12. padding: 20px;
  13. }
  14. .shareBlock:hover
  15. {
  16. background-color: #f1f1f1;
  17. cursor: pointer;
  18. }
  19. .U_MD_O_W_SP_footer_Logo > img
  20. {
  21. cursor: pointer;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="U_MD_O_W_SP_Box">
  27. <div class="U_MD_O_W_SP_Head">
  28. <div class="U_MD_O_W_SP_MarginBox_File">
  29. <div class="U_MD_O_W_SP_Head_FileName">
  30. </div>
  31. <div class="U_MD_O_W_SP_Head_Logo">
  32. <img src="http://www.1473.cn/BoomYun/img/pc/Solution/Solution_LOGO.png" onclick="window.location.href='http://www.1473.cn/'" />
  33. </div>
  34. </div>
  35. </div>
  36. <div class="U_MD_O_W_SP_Head_Model">
  37. <div class="U_MD_O_W_SP_MarginBox_Model">
  38. <div class="U_MD_O_W_SP_Head_Logo_Model">
  39. <img src="http://www.1473.cn/BoomYun/img/pc/Solution/Solution_LOGO.png" onclick="window.location.href='http://www.1473.cn/'" />
  40. </div>
  41. <div class="U_MD_O_W_SP_Head_Logo_name">
  42. 销售进度跟进表</div>
  43. </div>
  44. </div>
  45. <div class="U_MD_O_W_SP_CBox">
  46. <div class="U_MD_O_W_SP_Content">
  47. <div class="U_MD_O_W_SP_MarginBox_File">
  48. <div class="U_MD_O_W_SP_Tool">
  49. <div class="U_MD_O_W_SP_Tool_Btn">
  50. 下载</div>
  51. <div id="U_MD_O_W_SP_Tool_SaveBtn" class="U_MD_O_W_SP_Tool_Btn">
  52. 保存到云盘</div>
  53. <div id="U_MD_O_W_SP_Tool_ShareBtn" class="U_MD_O_W_SP_Tool_Btn">
  54. 分享</div>
  55. </div>
  56. <div class="U_MD_O_W_SP_Content_page" id="U_MD_O_W_SP_Editor">
  57. </div>
  58. <div class="U_MD_O_W_SP_Top_Icon" style="visibility: hidden;">
  59. <img src="http://coffice.1473.cn/Controls/Office/Word/WordModel/img/top.png" alt="返回顶部" />
  60. </div>
  61. </div>
  62. </div>
  63. <div class="U_MD_O_W_SP_footer">
  64. <div class="U_MD_O_W_SP_MarginBox">
  65. <div class="U_MD_O_W_SP_footer_Logo">
  66. <img src="http://www.1473.cn/BoomYun/img/pc/Solution/Solution_LOGO.png" onclick="window.location.href='http://www.1473.cn/'" />
  67. </div>
  68. <p class="U_MD_O_W_SP_footer_Text">
  69. 公司名称:深圳市雨云技有限公司
  70. <br />
  71. 闽ICP备13020990号-5ghs闽公网安备 35020302000042号<br />
  72. Copyright © 2017 Meetyou. 保留所有权利
  73. </p>
  74. </div>
  75. </div>
  76. <div class="U_MD_O_W_SP_Fixed_Icon">
  77. <img src="http://coffice.1473.cn/Controls/Office/Word/WordModel/img/fixedLogo.png" alt="互联办公"
  78. width="100%" onclick="window.location.href='http://www.1473.cn/#boomyun'" />
  79. </div>
  80. </div>
  81. </div>
  82. <script src="http://www.1473.cn/uform.js" type="text/javascript" charset="utf-8"></script>
  83. <script type="text/javascript" charset="utf-8">
  84. window.onload = function () {
  85. var _name = window.location.pathname.split('/')[1];
  86. U.A.Request(US.CD, ["db.1473.cn", "UseStudio_DNS", "GetFileIdToDomain", _name], function (r) {
  87. var _value = r.value;
  88. U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "GetFileById", _value[0].FileId], function (r) {
  89. var _value = r.value[0];
  90. $("#U_MD_O_W_SP_Editor")[0].innerHTML = _value.UsOffice.unEscapeQuotes();
  91. $('#U_MD_O_W_SP_Head_UserName')[0].innerText = _value.UserName;
  92. $(".U_MD_O_W_SP_Head_FileName")[0].innerText = _value.UserFilesName;
  93. $(".U_MD_O_W_SP_Head_Share")[0].onclick = function () {
  94. var _el = document.getElementById('shareBoard');
  95. if (!_el) {
  96. shareFile(_value);
  97. } else {
  98. _el.style.display = "block"
  99. }
  100. }
  101. }); //获取文件信息
  102. });
  103. }
  104. function shareFile(fileInfo) {
  105. var _content = $$('div', { style: { cssText: " margin:0 40px; padding-top:25px;text-align:center"} }),
  106. _xin = $$('div', { className: "shareBlock" }, _content),
  107. _qq = _xin.cloneNode();
  108. $$('img', { "onerror": U.MD.C.imgError, src: "http://www.1473.cn/img/Xinlang.png" }, _xin);
  109. $$('img', { "onerror": U.MD.C.imgError, src: "http://www.1473.cn/img/Kongjian.png" }, _qq);
  110. $$('div', { innerText: "新浪微博" }, _xin);
  111. $$('div', { innerText: "QQ空间" }, _qq);
  112. _content.appendChild(_qq);
  113. _qq.onclick = function () {
  114. qqShare(window.location.href, fileInfo.UserFilesName, fileInfo.UserName)
  115. }
  116. _xin.onclick = function () {
  117. weiboShare(window.location.href, fileInfo.UserFilesName, fileInfo.UserName);
  118. }
  119. new U.UF.UI.form("分享文档", _content, { id: "shareBoard", style: { "width": "270px", "height": "170px"} }, { isenlarge: false, isnarrow: false, isstretching: false });
  120. }
  121. function weiboShare(dnsname, filename, username) {
  122. var WBtitle = "这个文档超赞的,赶快分享给大家吧!【" + username + "——(分享自-互联办公)】";
  123. var sharesinastring = 'http://v.t.sina.com.cn/share/share.php?title=' + WBtitle + '&url=' + dnsname.innerHTML + '&content=utf-8&sourceUrl=' + dnsname.innerHTML;
  124. window.open(sharesinastring, 'newwindow', 'height=500,width=800,top=300,left=300');
  125. }
  126. function qqShare(dnsname, filename, username) {
  127. var KJtitle = "分享是种乐趣,所以让我们成为传播乐趣的人吧!【" + username + "——(分享自-互联办公)】";
  128. var shareqqzonestring = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?summary=' + filename + '&title=' + KJtitle + '&url=' + dnsname;
  129. window.open(shareqqzonestring, 'newwindow', 'height=500,width=800,top=300,left=300');
  130. }
  131. </script>
  132. </body>
  133. </html>