downloadClient.jsp 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>下载页面</title>
  8. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  9. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  10. <script type="text/javascript" src="/shares/js/constant.js"></script>
  11. <script type="text/javascript" src="/shares/js/common.js"></script>
  12. <link href="/shares/css/yw/master1/client/download.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript">
  14. function checkForm() {
  15. var rs = $.validate({
  16. name : "tel",
  17. model : [ {
  18. type : "require"
  19. }
  20. ]
  21. });
  22. if (rs) {
  23. $("#telDiv").hide();
  24. return true;
  25. }else{
  26. $("#telDiv").show();
  27. return false;
  28. }
  29. }
  30. function download(obj){
  31. if(obj == ""){
  32. alert("请联系管理员发布客户端!");
  33. }else{
  34. window.open("downloadLoginFile.do?documentId="+obj);
  35. }
  36. }
  37. function sendSms(){
  38. var isPass = checkForm();
  39. if(isPass == true){
  40. var json = {tel:$("#tel").val(),
  41. euclient_affix:$("#euclient_affix").val(),
  42. euclient_type:$("#euclient_type").val()};
  43. $.ajax({
  44. type:"POST",
  45. url:"EuclientAction.do?task=downloadSms&time=" + new Date().getTime(),
  46. cache:false,
  47. data:json,
  48. success:function(data){
  49. alert("发送成功!");
  50. },
  51. error:function(err){
  52. showAjaxError(err);
  53. }
  54. });
  55. }
  56. }
  57. </script>
  58. <style type="text/css">
  59. .warn{color: red; display: none; margin-top: 2px}
  60. </style>
  61. </head>
  62. <body>
  63. <form action="EuclientAction.do" method="post" onsubmit="return checkForm();">
  64. <div class="android_bg download_mar">
  65. <div>
  66. <img src="/shares/images/master1/client/android_title.png" width="1093" height="82" />
  67. </div>
  68. <div class="android_t_a">A:下载到手机</div>
  69. <div class="android_te_s">
  70. 手机号:
  71. <input class="android_ybk" name="tel" id="tel" type="text" maxlength="11" value="${euclient.tel}"/>
  72. <input name="button" type="button" class="android_send_btn" id="button" value="" onclick="sendSms();"/>
  73. <div class="warn" id="telDiv">请填写手机号</div>
  74. </div>
  75. <div class="and_wz">您将收到一条短信,点击短信中的链接即可下载客户端软件,短信免费,下载产生的流量费用按正常流量费用收取
  76. </div>
  77. <div class="android_t_a">B:下载到电脑</div>
  78. <div class="android_te_s">
  79. <input name="button" type="button" class="android_send_btn_pc" id="button" onclick="download('${euclient.euclient_affix}');"/>
  80. </div>
  81. <div class="and_wz_pc">直接下载安装包文件到您的电脑<br />
  82. </div>
  83. </div>
  84. <input type="hidden" id="task" name="task" value="downloadSms">
  85. <input type="hidden" id="euclient_affix" name="euclient_affix" value="${euclient.euclient_affix}">
  86. <input type="hidden" id="euclient_type" name="euclient_type" value="${euclient.euclient_type}">
  87. </form>
  88. </body>
  89. </html>