市长热线演示版

faxreceiveshow.aspx 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="faxreceiveshow.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.faxmanage.faxreceiveshow" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <title>查看接收传真</title>
  6. <link href="../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  7. <script src="../scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
  8. <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
  9. <link href="css/global.css" rel="stylesheet" type="text/css" />
  10. <style type="text/css">
  11. body
  12. {
  13. font-size: 12px;
  14. }
  15. .boldhead
  16. {
  17. font-weight: bold;
  18. font-size: 24px;
  19. text-align: center;
  20. padding: 20px;
  21. }
  22. .pichead
  23. {
  24. overflow: auto;
  25. height: 100px;
  26. width: 96%;
  27. font-size: 14px;
  28. font-weight: bold;
  29. margin: auto auto auto auto;
  30. border: 2px solid #0066CC;
  31. background: #FFFFFF;
  32. padding-top: 10px;
  33. padding-bottom: 10px;
  34. }
  35. .pichead li
  36. {
  37. float: left;
  38. margin: 5px;
  39. width: 595px;
  40. }
  41. .picview
  42. {
  43. width: 96%;
  44. margin: auto auto auto auto;
  45. text-align: center;
  46. height: 300px;
  47. overflow: hidden;
  48. }
  49. .picview img
  50. {
  51. width: 595px;
  52. cursor: move;
  53. margin: 0px;
  54. z-index: 1;
  55. border: 0px;
  56. height: auto;
  57. }
  58. #contral
  59. {
  60. position: absolute;
  61. z-index: 10;
  62. left: 15px;
  63. top: 240px;
  64. }
  65. #contral img
  66. {
  67. width: auto;
  68. margin: auto;
  69. cursor: auto;
  70. width: 20px;
  71. border: 0px;
  72. }
  73. #contral ul
  74. {
  75. width: 88px;
  76. }
  77. #contral li
  78. {
  79. width: 26px;
  80. height: 26px;
  81. float: left;
  82. list-style: none;
  83. }
  84. .txtlable
  85. {
  86. font-size: 12px;
  87. width: 100%;
  88. border-bottom: #7b9ebd 1px solid;
  89. height: 18px;
  90. border-left: 0px;
  91. border-right: 0px;
  92. border-top: 0px;
  93. }
  94. </style>
  95. <script type="text/javascript">
  96. function NextPage() {
  97. try {
  98. var n = document.getElementById("txtnowpage").value;
  99. var path = document.getElementById("txtpath").value;
  100. var page = parseInt(n) + 1;
  101. var all = document.getElementById("spanallcount").innerHTML;
  102. if (page > parseInt(all)) {
  103. }
  104. else {
  105. if ((page + 1) > parseInt(all)) {
  106. document.getElementById("span2").disabled = true;
  107. document.getElementById("span4").disabled = true;
  108. }
  109. else {
  110. document.getElementById("span2").disabled = false;
  111. document.getElementById("span4").disabled = false;
  112. }
  113. if ((page - 1) < 1) {
  114. document.getElementById("span1").disabled = true;
  115. document.getElementById("span3").disabled = true;
  116. }
  117. else {
  118. document.getElementById("span1").disabled = false;
  119. document.getElementById("span3").disabled = false;
  120. }
  121. document.getElementById("txtnowpage").value = page;
  122. document.getElementById("txtnowpage1").value = page;
  123. page = page - 1;
  124. document.getElementById("viewArea").src = "faxtoimage.aspx?path=" + path + "&page=" + page;
  125. pp.style.width = "595px";
  126. pp.style.height = "auto";
  127. vv.scrollTop = 0;
  128. vv.scrollLeft = 0;
  129. }
  130. }
  131. catch (e) { alert(e.message); }
  132. }
  133. function LastPage() {
  134. try {
  135. var n = document.getElementById("txtnowpage").value;
  136. var path = document.getElementById("txtpath").value;
  137. var page = parseInt(n) - 1;
  138. var all = document.getElementById("spanallcount").innerHTML;
  139. if (page < 1) {
  140. }
  141. else {
  142. if ((page + 1) > parseInt(all)) {
  143. document.getElementById("span2").disabled = true;
  144. document.getElementById("span4").disabled = true;
  145. }
  146. else {
  147. document.getElementById("span2").disabled = false;
  148. document.getElementById("span4").disabled = false;
  149. }
  150. if ((page - 1) < 1) {
  151. document.getElementById("span1").disabled = true;
  152. document.getElementById("span3").disabled = true;
  153. }
  154. else {
  155. document.getElementById("span1").disabled = false;
  156. document.getElementById("span3").disabled = false;
  157. }
  158. document.getElementById("txtnowpage").value = page;
  159. document.getElementById("txtnowpage1").value = page;
  160. page = page - 1;
  161. document.getElementById("viewArea").src = "faxtoimage.aspx?path=" + path + "&page=" + page;
  162. pp.style.width = "595px";
  163. pp.style.height = "auto";
  164. vv.scrollTop = 0;
  165. vv.scrollLeft = 0;
  166. }
  167. }
  168. catch (e) {
  169. alert(e.message);
  170. }
  171. }
  172. function PgeDown() {
  173. var path = document.getElementById("txtpath").value;
  174. if (path != null && path != "") {
  175. window.open("faxdown.aspx?path=" + escape(path));
  176. }
  177. }
  178. </script>
  179. </head>
  180. <body style="margin-top: 0px;">
  181. <form id="form2" runat="server">
  182. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
  183. <tr>
  184. <td valign="top" style="padding: 10px;" height="100%">
  185. <table width="100%" border="0" cellspacing="3" cellpadding="0" height="100%">
  186. <tbody>
  187. <tr>
  188. <td height="30">
  189. <span style="color: #ff0000; font-family: Wingdings;">v</span>接收号码:
  190. </td>
  191. <td>
  192. <input type="text" id="txtPhone" class="txtlable" runat="server" style="width: 150px;" />
  193. </td>
  194. <td height="30">
  195. 接收时间:
  196. </td>
  197. <td>
  198. <input type="text" id="txtRecvTime" class="txtlable" runat="server" style="width: 150px;" />
  199. </td>
  200. </tr>
  201. <tr>
  202. <td height="30">
  203. 客户名称:
  204. </td>
  205. <td colspan="5">
  206. <input type="text" id="txtName" class="txtlable" runat="server" />
  207. </td>
  208. </tr>
  209. <tr>
  210. <td height="30">
  211. <span style="color: #ff0000; font-family: Wingdings;">v</span>传真备注:
  212. </td>
  213. <td colspan="5">
  214. <input type="text" id="txtContents" class="txtlable" runat="server" />
  215. </td>
  216. </tr>
  217. <tr>
  218. <td height="100%" colspan="6" style="width: 100%;">
  219. <input id="txtpath" value="" runat="server" style="display: none;" />
  220. <div style="padding: 3px 10px;">
  221. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" style="border: 1px solid #a8c7e4;">
  222. <tr style="height: 30px;">
  223. <td>
  224. <div style="width: auto; height: auto; padding: 1px; border: 1px solid #a8c7e4;">
  225. <div style="width: 100%; height: 25px; background: #d6e5f3; padding-top: 5px;">
  226. <div style="float: left; margin-left: 25px;">
  227. <asp:Button ID="Button1" runat="server" Text="另存为..." CssClass="btn" OnClientClick="PgeDown();" />
  228. </div>
  229. <div style="width: auto; float: right; margin-right: 25px;">
  230. <span style="margin-right: 15px; cursor: hand;" id="span1" runat="server" disabled
  231. onclick="LastPage();">上一页</span><input id="txtnowpage" runat="server" name="" type="text"
  232. readonly style="width: 50px; height: 15px; margin: 0px; padding: 0px; line-height: 15px;
  233. text-align: center" value="0" />/<span id="spanallcount" runat="server">0</span><span
  234. style="margin-left: 15px; cursor: hand;" id="span2" runat="server" onclick="NextPage();">下一页</span></div>
  235. </div>
  236. </div>
  237. </td>
  238. </tr>
  239. <tr style="height: 350px;">
  240. <td valign="top" style="text-align: center;">
  241. <div style="width: 595px; height: 100%; text-align: center; overflow: auto;">
  242. <div id="picview" class="picview" style="width: 595px; height: 400px">
  243. <div id="contral" style="left: 5px; width: 1px; top: 200px; height: 250px;">
  244. <ul>
  245. <li></li>
  246. <li>
  247. <img src="images/rotation.png" id="rotateimg" style="cursor: hand;" onclick="rotate()"
  248. title="旋转"></li>
  249. <li></li>
  250. <li></li>
  251. <li>
  252. <img src="images/top.png" style="cursor: hand;" onclick="clickMove('up')" title="向上平移"></li>
  253. <li></li>
  254. <li>
  255. <img src="images/left.png" style="cursor: hand;" onclick="clickMove('left')" title="向左平移"></li>
  256. <li>
  257. <img src="images/pre.png" style="cursor: hand;" onclick="realsize();" title="真实大小"></li>
  258. <li>
  259. <img src="images/right.png" style="cursor: hand;" onclick="clickMove('right')" title="向右平移"></li>
  260. <li></li>
  261. <li>
  262. <img src="images/botom.png" style="cursor: hand;" onclick="clickMove('down')" title="向下移动"></li>
  263. <li></li>
  264. <li></li>
  265. <li>
  266. <img src="images/add.png" style="cursor: hand;" onclick="bigit();" title="放大"></li>
  267. <li></li>
  268. <li></li>
  269. <li>
  270. <img src="images/jian.png" style="cursor: hand;" onclick="smallit();" title="缩小"></li>
  271. <li></li>
  272. </ul>
  273. </div>
  274. <img src="" alt="传真信息" name="viewArea" id="viewArea" runat="server" /><!--endprint-->
  275. </div>
  276. </div>
  277. </td>
  278. </tr>
  279. <tr style="height: 30px;">
  280. <td>
  281. <div style="width: auto; height: auto; padding: 1px; border: 1px solid #a8c7e4;">
  282. <div style="width: 100%; height: 25px; background: #d6e5f3; padding-top: 5px;">
  283. <div style="float: left; margin-left: 25px;">
  284. <asp:Button ID="Button2" runat="server" Text="另存为..." CssClass="btn" OnClientClick="PgeDown();" />
  285. </div>
  286. <div style="width: auto; float: right; margin-right: 25px;">
  287. <span style="margin-right: 15px; cursor: hand;" id="span3" runat="server" disabled
  288. onclick="LastPage();">上一页</span><input id="txtnowpage1" runat="server" name="" type="text"
  289. readonly style="width: 50px; height: 15px; margin: 0px; padding: 0px; line-height: 15px;
  290. text-align: center" value="0" />/<span id="spanallcount1" runat="server">0</span><span
  291. style="margin-left: 15px; cursor: hand;" id="span4" runat="server" onclick="NextPage();">下一页</span></div>
  292. </div>
  293. </div>
  294. </td>
  295. </tr>
  296. </table>
  297. </div>
  298. </td>
  299. </tr>
  300. </tbody>
  301. </table>
  302. </td>
  303. </tr>
  304. </table>
  305. </form>
  306. </body>
  307. </html>
  308. <script language="javascript">
  309. var rate = 0.2;
  310. var rimg = document.getElementById("rotateimg");
  311. var pp = document.getElementById("viewArea");
  312. var vv = document.getElementById("picview");
  313. var ie = document.all;
  314. var nn6 = document.getElementById && !document.all;
  315. var isdrag = false;
  316. var y, x;
  317. var st, sl;
  318. var si = 0;
  319. function moveMouse(e) {
  320. try {
  321. if (isdrag) {
  322. var mouseX = nn6 ? e.clientX : event.clientX;
  323. var mouseY = nn6 ? e.clientY : event.clientY;
  324. vv.scrollTop = st + (y - mouseY);
  325. vv.scrollLeft =
  326. sl + (x - mouseX);
  327. //document.getElementById('mouseData').innerHTML = "x="+x+" y="+y+" x-mouseX="+(x-mouseX)+" y-mouseY="+(y-mouseY);
  328. return false;
  329. }
  330. } catch (e) {
  331. alert(e.message);
  332. }
  333. }
  334. function initDrag(e) {
  335. try {
  336. var oDragHandle = nn6 ? e.target : event.srcElement;
  337. isdrag = true;
  338. x = nn6 ? e.clientX : event.clientX;
  339. y = nn6 ? e.clientY : event.clientY;
  340. st = vv.scrollTop;
  341. sl = vv.scrollLeft;
  342. document.onmousemove = moveMouse;
  343. return false;
  344. }
  345. catch (e) {
  346. alert(e.message);
  347. }
  348. }
  349. pp.onmousedown = initDrag;
  350. pp.onmouseup = new Function("isdrag=false");
  351. function bigit() {
  352. try {
  353. si = 0;
  354. pp.style.height = pp.height * (1 + rate) + "px";
  355. pp.style.width = pp.width * (1 + rate) + "px";
  356. }
  357. catch (e) {
  358. alert(e.message);
  359. }
  360. }
  361. function smallit() {
  362. try {
  363. si = 0;
  364. pp.style.height = pp.height * (1 - rate) + "px";
  365. pp.style.width = pp.width * (1 - rate) + "px";
  366. }
  367. catch (e) {
  368. alert(e.message);
  369. }
  370. }
  371. function realsize() {
  372. try {
  373. var newImg = new Image();
  374. newImg.src = pp.src;
  375. if (si == 0) {
  376. si = 1;
  377. pp.style.height = newImg.height + "px";
  378. pp.style.width = newImg.width + "px";
  379. }
  380. else {
  381. si = 0;
  382. pp.style.width = "595px";
  383. pp.style.height = "auto";
  384. vv.scrollTop = 0;
  385. vv.scrollLeft = 0;
  386. }
  387. }
  388. catch (e) {
  389. alert(e.message);
  390. }
  391. }
  392. function clickMove(s) {
  393. try {
  394. if (s == "up") {
  395. vv.scrollTop = vv.scrollTop - 100;
  396. } else if (s == "down") {
  397. vv.scrollTop = vv.scrollTop + 100;
  398. } else if (s == "left") {
  399. vv.scrollLeft = vv.scrollLeft - 100;
  400. } else if (s == "right") {
  401. vv.scrollLeft = vv.scrollLeft + 100;
  402. }
  403. }
  404. catch (e) {
  405. alert(e.message);
  406. }
  407. }
  408. var rt = 1;
  409. function rotate() {
  410. try {
  411. //rotation: 1 旋转90度 ;2 旋转180度 ;3 旋转270度
  412. pp.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + rt + ')';
  413. rimg.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + rt + ')';
  414. if (rt > 3) {
  415. rt = 1;
  416. }
  417. else {
  418. rt++;
  419. }
  420. }
  421. catch (e) {
  422. alert(e.message);
  423. }
  424. }
  425. function changeImage(path) {
  426. pp.src = path;
  427. pp.style.width = "595px";
  428. vv.scrollTop = 0;
  429. vv.scrollLeft = 0;
  430. }
  431. </script>