voiceSend.asp 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title></title>
  6. <link href="public/css.css" rel="stylesheet" type="text/css">
  7. <style type="text/css">
  8. <!--
  9. .body{font-size:12px}
  10. .left_li { list-style-image: url(images/littlepic.gif); padding-top:10px;text-align:left}
  11. .left_li li{ margin-top:3px}
  12. #menu{table-layout:fixed;}
  13. #menu .menuHere {
  14. BORDER-RIGHT: #9ec9ec 1px solid; BORDER-TOP: #9ec9ec 1px solid; BORDER-LEFT: #9ec9ec 1px solid; BORDER-BOTTOM: #9ec9ec 1px solid; HEIGHT: 24px; TEXT-ALIGN: center;FONT-WEIGHT: bold; BACKGROUND: #f4fbff; BORDER-BOTTOM-STYLE: none; color:#FF0000
  15. }
  16. #menu .menuWill {
  17. BORDER-RIGHT: #9ec9ec 1px solid; BORDER-TOP: #9ec9ec 1px solid; BORDER-LEFT: #9ec9ec 1px solid; BORDER-BOTTOM: #9ec9ec 1px solid; HEIGHT: 24px; TEXT-ALIGN: center; BACKGROUND: #ffffff;
  18. }
  19. #mySide {
  20. BORDER-RIGHT: #4F8DC1 1px solid;BORDER-LEFT: #4F8DC1 1px solid; BORDER-BOTTOM:#4F8DC1 1px solid; border-top:#9ec9ec 1px;
  21. padding-top:20px
  22. }
  23. #menu .clearance{BORDER-BOTTOM: #9ec9ec 1px solid}
  24. .STYLE1 {
  25. font-size: 24px;
  26. font-weight: bold;
  27. }
  28. -->
  29. </style>
  30. <script language="javascript">
  31. function chck_Mode(obj)
  32. {
  33. if (obj.value == 3)
  34. {
  35. document.getElementById("fileSound").style.display="";
  36. document.getElementById("tre_Note_Content").disabled=true;
  37. }else
  38. {
  39. document.getElementById("tre_Note_Content").disabled=false;
  40. document.getElementById("fileSound").style.display="none";
  41. }
  42. }
  43. function IsDigit()
  44. {
  45. return (event.keyCode >= 48) && (event.keyCode <= 57)
  46. }
  47. function PopIt(){
  48. m = document.getElementById("file_Sound").value;
  49. popup ="";
  50. m=document.getElementById("file_Sound").value
  51. popup = window.open("","popDialog","height=450,width=385,scrollbars=yes,left=600,top=200") ;
  52. music="<embed src='"+m+"' autostart='true' loop='true' width='200' height='150' > "
  53. popup.document.write(music) ;
  54. popup.document.close();
  55. }
  56. function popHelp()
  57. {
  58. PopIt('语音试听', '');
  59. }
  60. function chckForm1(obj)
  61. {
  62. if (obj.telNo.value =="")
  63. {
  64. alert("接收号码不能为空.");
  65. return false;
  66. }
  67. var temp=obj.file_Sound.value;
  68. if (temp !="" )
  69. {
  70. arr=temp.split(".");
  71. ext=arr[arr.length-1] ;
  72. if (ext =="wav")
  73. {
  74. return true;
  75. }
  76. else
  77. {
  78. alert("语音文件格式不正确.请选择wav文件") ;
  79. return false;
  80. }
  81. }
  82. else
  83. {
  84. if (obj.tre_Note_Content.value =="")
  85. {
  86. alert("语音内容不能为空.");
  87. return false;
  88. }
  89. }
  90. return true;
  91. }
  92. </script>
  93. </head>
  94. <body class="body">
  95. <TABLE cellSpacing=0 cellPadding=0 width=650 align=center style="padding-left:30px" border=0>
  96. <TBODY>
  97. <TR>
  98. <td width="10">&nbsp;</td>
  99. <TD width="700" valign="top" style="padding-top:10px;" >
  100. <TABLE width="100%" border=0 align="center" cellPadding=0 cellSpacing=0 id=menu>
  101. <TBODY>
  102. <TR>
  103. <TD ><img src="img/v_title_bg.gif" width="100%"/></TD>
  104. </TR>
  105. <TR>
  106. <TD height="320" valign="top" id=mySide style="padding-top:2px;background-color:#E7F0F7">
  107. <table width="99%" border="0" cellpadding="0" cellspacing="0">
  108. <form name="sendForm" method="post" onsubmit="return chckForm1(this)" action="doVoiceSend.asp">
  109. <tr>
  110. <td><table width="100%" border="0">
  111. <tr>
  112. <td><table width="100%" border="0">
  113. <tr>
  114. <td height="20"> <div style="padding-left:20px;"><font color="#FF0000">被叫号码
  115. (多个号码请 换行。区号+号码,手机不加0)</font></div> </td>
  116. </tr>
  117. </table></td>
  118. </tr>
  119. <tr>
  120. <td height="70" > <div style="padding-left:20px;">
  121. <textarea name="telNo" cols="70" rows="6" id="telNo" ></textarea>
  122. </div></td>
  123. </tr>
  124. </table></td>
  125. </tr>
  126. <tr>
  127. <td> <div style="padding-left:20px;"> 语音合成模式:
  128. <input name="rbt_Sound_mode" type="radio" value="1" checked="checked" onclick="chck_Mode(this)" />
  129. 系统合成
  130. <input type="radio" name="rbt_Sound_mode" onclick="chck_Mode(this)" value="2" />
  131. 客服合成
  132. <input name="rbt_Sound_mode" type="radio" onclick="chck_Mode(this)" value="3" />
  133. 录音文件 <span id="fileSound" style="display:none">
  134. <input name="file_Sound" type="file" id="file_Sound" width="100" ></input>
  135. <input name="bnt_Sound_Audition" type="button" id="bnt_Sound_Audition" onclick="javascript:popHelp()" value="试听"></input>
  136. </span></div> </td>
  137. </tr>
  138. <tr>
  139. <td height="10">&nbsp;</td>
  140. </tr>
  141. <tr >
  142. <td height="100%"> <table width="100%" border="0">
  143. <tr>
  144. <td width="76%"> <div style="padding-left:20px;">
  145. <span >语音文字:选择 录音文件 模式时可留空。最大字符支持:8000个字符 </span> </div> </td>
  146. <td width="24%">&nbsp;</td>
  147. </tr>
  148. </table>
  149. <div style="padding-left:20px;">
  150. <textarea name="tre_Note_Content" cols="70" rows="4" id="tre_Note_Content" ></textarea>
  151. </div> </td>
  152. </tr>
  153. <tr>
  154. <tr>
  155. <td><table width="100%" border="0">
  156. <tr>
  157. <td width="70%"><div style="padding-left:30px;">服务电话
  158. <input name="txt_Sound_phone" type="text" id="txt_Sound_phone" maxlength="60" />
  159. 最多5个,多个用,号分隔 </div></td>
  160. <td width="30%"><input name="bnt_Sound_Send" type="submit" id="bnt_Sound_Send" value="发送任务" style="width:100px; height:40px; font-size:18px; font-weight: bold "/></td>
  161. </tr>
  162. </table></td>
  163. </tr> </form>
  164. </table> </TD>
  165. </TR>
  166. </TBODY>
  167. </TABLE> </TD>
  168. </TR>
  169. </TBODY>
  170. </TABLE>