市长热线演示版

faxsendshow.aspx 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="faxsendshow.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.faxmanage.faxsendshow" %>
  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="txtSendTime" class="txtlable" runat="server" style="width: 150px;" />
  199. </td>
  200. <td height="30">
  201. 传真状态:
  202. </td>
  203. <td>
  204. <input type="text" id="txtState" class="txtlable" runat="server" style="width: 150px;" />
  205. </td>
  206. </tr>
  207. <tr>
  208. <td height="30">
  209. 客户名称:
  210. </td>
  211. <td colspan="5">
  212. <input type="text" id="txtName" class="txtlable" runat="server" />
  213. </td>
  214. </tr>
  215. <tr>
  216. <td height="30">
  217. <span style="color: #ff0000; font-family: Wingdings;">v</span>传真备注:
  218. </td>
  219. <td colspan="5">
  220. <input type="text" id="txtContents" class="txtlable" runat="server" />
  221. </td>
  222. </tr>
  223. <tr>
  224. <td height="100%" colspan="6" style="width: 100%;">
  225. <input id="txtpath" value="" runat="server" style="display: none;" />
  226. <div style="padding: 3px 10px;">
  227. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" style="border: 1px solid #a8c7e4;">
  228. <tr style="height: 30px;">
  229. <td>
  230. <div style="width: auto; height: auto; padding: 1px; border: 1px solid #a8c7e4;">
  231. <div style="width: 100%; height: 25px; background: #d6e5f3; padding-top: 5px;">
  232. <div style="float: left; margin-left: 25px;">
  233. <asp:Button ID="Button1" runat="server" Text="另存为..." CssClass="btn" OnClientClick="PgeDown();" />
  234. </div>
  235. <div style="width: auto; float: right; margin-right: 25px;">
  236. <span style="margin-right: 15px; cursor: hand;" id="span1" runat="server" disabled
  237. onclick="LastPage();">上一页</span><input id="txtnowpage" runat="server" name="" type="text"
  238. readonly style="width: 50px; height: 15px; margin: 0px; padding: 0px; line-height: 15px;
  239. text-align: center" value="0" />/<span id="spanallcount" runat="server">0</span><span
  240. style="margin-left: 15px; cursor: hand;" id="span2" runat="server" onclick="NextPage();">下一页</span></div>
  241. </div>
  242. </div>
  243. </td>
  244. </tr>
  245. <tr style="height: 350px;">
  246. <td valign="top" style="text-align: center;">
  247. <div style="width: 595px; height: 100%; text-align: center; overflow: auto;">
  248. <div id="picview" class="picview" style="width: 595px; height: 400px">
  249. <div id="contral" style="left: 5px; width: 1px; top: 200px; height: 250px;">
  250. <ul>
  251. <li></li>
  252. <li>
  253. <img src="images/rotation.png" id="rotateimg" style="cursor: hand;" onclick="rotate()"
  254. title="旋转"></li>
  255. <li></li>
  256. <li></li>
  257. <li>
  258. <img src="images/top.png" style="cursor: hand;" onclick="clickMove('up')" title="向上平移"></li>
  259. <li></li>
  260. <li>
  261. <img src="images/left.png" style="cursor: hand;" onclick="clickMove('left')" title="向左平移"></li>
  262. <li>
  263. <img src="images/pre.png" style="cursor: hand;" onclick="realsize();" title="真实大小"></li>
  264. <li>
  265. <img src="images/right.png" style="cursor: hand;" onclick="clickMove('right')" title="向右平移"></li>
  266. <li></li>
  267. <li>
  268. <img src="images/botom.png" style="cursor: hand;" onclick="clickMove('down')" title="向下移动"></li>
  269. <li></li>
  270. <li></li>
  271. <li>
  272. <img src="images/add.png" style="cursor: hand;" onclick="bigit();" title="放大"></li>
  273. <li></li>
  274. <li></li>
  275. <li>
  276. <img src="images/jian.png" style="cursor: hand;" onclick="smallit();" title="缩小"></li>
  277. <li></li>
  278. </ul>
  279. </div>
  280. <img src="" alt="传真信息" name="viewArea" id="viewArea" runat="server" /><!--endprint-->
  281. </div>
  282. </div>
  283. </td>
  284. </tr>
  285. <tr style="height: 30px;">
  286. <td>
  287. <div style="width: auto; height: auto; padding: 1px; border: 1px solid #a8c7e4;">
  288. <div style="width: 100%; height: 25px; background: #d6e5f3; padding-top: 5px;">
  289. <div style="float: left; margin-left: 25px;">
  290. <asp:Button ID="Button2" runat="server" Text="另存为..." CssClass="btn" OnClientClick="PgeDown();" />
  291. </div>
  292. <div style="width: auto; float: right; margin-right: 25px;">
  293. <span style="margin-right: 15px; cursor: hand;" id="span3" runat="server" disabled
  294. onclick="LastPage();">上一页</span><input id="txtnowpage1" runat="server" name="" type="text"
  295. readonly style="width: 50px; height: 15px; margin: 0px; padding: 0px; line-height: 15px;
  296. text-align: center" value="0" />/<span id="spanallcount1" runat="server">0</span><span
  297. style="margin-left: 15px; cursor: hand;" id="span4" runat="server" onclick="NextPage();">下一页</span></div>
  298. </div>
  299. </div>
  300. </td>
  301. </tr>
  302. </table>
  303. </div>
  304. </td>
  305. </tr>
  306. </tbody>
  307. </table>
  308. </td>
  309. </tr>
  310. </table>
  311. </form>
  312. </body>
  313. </html>
  314. <script language="javascript">
  315. var rate = 0.2;
  316. var rimg = document.getElementById("rotateimg");
  317. var pp = document.getElementById("viewArea");
  318. var vv = document.getElementById("picview");
  319. var ie = document.all;
  320. var nn6 = document.getElementById && !document.all;
  321. var isdrag = false;
  322. var y, x;
  323. var st, sl;
  324. var si = 0;
  325. function moveMouse(e) {
  326. try {
  327. if (isdrag) {
  328. var mouseX = nn6 ? e.clientX : event.clientX;
  329. var mouseY = nn6 ? e.clientY : event.clientY;
  330. vv.scrollTop = st + (y - mouseY);
  331. vv.scrollLeft =
  332. sl + (x - mouseX);
  333. //document.getElementById('mouseData').innerHTML = "x="+x+" y="+y+" x-mouseX="+(x-mouseX)+" y-mouseY="+(y-mouseY);
  334. return false;
  335. }
  336. } catch (e) {
  337. alert(e.message);
  338. }
  339. }
  340. function initDrag(e) {
  341. try {
  342. var oDragHandle = nn6 ? e.target : event.srcElement;
  343. isdrag = true;
  344. x = nn6 ? e.clientX : event.clientX;
  345. y = nn6 ? e.clientY : event.clientY;
  346. st = vv.scrollTop;
  347. sl = vv.scrollLeft;
  348. document.onmousemove = moveMouse;
  349. return false;
  350. }
  351. catch (e) {
  352. alert(e.message);
  353. }
  354. }
  355. pp.onmousedown = initDrag;
  356. pp.onmouseup = new Function("isdrag=false");
  357. function bigit() {
  358. try {
  359. si = 0;
  360. pp.style.height = pp.height * (1 + rate) + "px";
  361. pp.style.width = pp.width * (1 + rate) + "px";
  362. }
  363. catch (e) {
  364. alert(e.message);
  365. }
  366. }
  367. function smallit() {
  368. try {
  369. si = 0;
  370. pp.style.height = pp.height * (1 - rate) + "px";
  371. pp.style.width = pp.width * (1 - rate) + "px";
  372. }
  373. catch (e) {
  374. alert(e.message);
  375. }
  376. }
  377. function realsize() {
  378. try {
  379. var newImg = new Image();
  380. newImg.src = pp.src;
  381. if (si == 0) {
  382. si = 1;
  383. pp.style.height = newImg.height + "px";
  384. pp.style.width = newImg.width + "px";
  385. }
  386. else {
  387. si = 0;
  388. pp.style.width = "595px";
  389. pp.style.height = "auto";
  390. vv.scrollTop = 0;
  391. vv.scrollLeft = 0;
  392. }
  393. }
  394. catch (e) {
  395. alert(e.message);
  396. }
  397. }
  398. function clickMove(s) {
  399. try {
  400. if (s == "up") {
  401. vv.scrollTop = vv.scrollTop - 100;
  402. } else if (s == "down") {
  403. vv.scrollTop = vv.scrollTop + 100;
  404. } else if (s == "left") {
  405. vv.scrollLeft = vv.scrollLeft - 100;
  406. } else if (s == "right") {
  407. vv.scrollLeft = vv.scrollLeft + 100;
  408. }
  409. }
  410. catch (e) {
  411. alert(e.message);
  412. }
  413. }
  414. var rt = 1;
  415. function rotate() {
  416. try {
  417. //rotation: 1 旋转90度 ;2 旋转180度 ;3 旋转270度
  418. pp.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + rt + ')';
  419. rimg.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + rt + ')';
  420. if (rt > 3) {
  421. rt = 1;
  422. }
  423. else {
  424. rt++;
  425. }
  426. }
  427. catch (e) {
  428. alert(e.message);
  429. }
  430. }
  431. function changeImage(path) {
  432. pp.src = path;
  433. pp.style.width = "595px";
  434. vv.scrollTop = 0;
  435. vv.scrollLeft = 0;
  436. }
  437. </script>