synapp_internet_protocol_settings_form.js 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842
  1. //globals
  2. var GInternetProtSettingsDialogWidth = 810;
  3. var GInternetProtSettingsDialogHeight = 640;
  4. var GInternetProtSettingsTabControlWidth = GInternetProtSettingsDialogWidth - 50;
  5. var GInternetProtSettingsTabControlHeight = GInternetProtSettingsDialogHeight - 150;
  6. var GInternetProtSettingsTabs = null;
  7. var GCurrentInternetProtocolSetRegistryList = null;
  8. var GSelectedProfileName = "";
  9. var GLeftOrRight = "";
  10. var GProtocolName = "";
  11. var InternetProtSettingsTabsHTML_Cloud =
  12. '<div id="jqxInternetProtSettingsTabs">'+
  13. '<ul>'+
  14. ' <li>Settings</li>'+
  15. ' <li>Advanced</li>'+
  16. ' <li>Proxy Settings</li>'+
  17. '</ul>'+
  18. '<div>'+
  19. ' <div>Library</div><div id ="jqxLibraryCombo" style="float: left;"></div>'+
  20. ' <br/><br/>'+
  21. ' <div>Folder</div><div><input type="text" id="inptInternetFolder"/></div>'+
  22. ' <br/><br/>'+
  23. ' <div>Account( opt. )</div><div><input type="password" id="inptAccountOpt"/></div>'+
  24. ' <br/><br/>'+
  25. '</div>'+
  26. '<div>'+
  27. '</div>'+
  28. '<div>'+
  29. '</div>'+
  30. '</div>';
  31. function OnProtocolComboItem( ProfileName, InternetProtocolSetRegistryList, LeftOrRight, ProtocolName )
  32. {
  33. GProtocolName = ProtocolName;
  34. if( GInternetProtSettingsTabs != null)
  35. {
  36. GInternetProtSettingsTabs.jqxTabs( 'destroy' );
  37. GInternetProtSettingsTabs = null;
  38. }
  39. /*
  40. ftpGUIlikeFTP =1;+
  41. ftpGUIlikeSFTP =2;
  42. ftpGUIlikeWebDAV =3;+
  43. ftpGUIlikeAmazonS3 =4;+
  44. ftpGUIlikeAzure =5;+
  45. ftpGUIlikeAmazonGlacier=6;
  46. ftpGUIlikeGoogleDrive =7;+
  47. ftpGUIlikeRSync =8;+
  48. ftpGUIlikeHTTP =9;+
  49. ftpGUIlikeMTP =10;
  50. */
  51. if( GetBaseProtocolName( ProtocolName ) == 'FTP' )
  52. {
  53. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_FTP );
  54. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  55. var LibraryComboSource = ['1(default)', '2', '3' ];
  56. $("#jqxLibraryCombo").jqxComboBox({ source: LibraryComboSource, selectedIndex: 0, width: '100', height: '25px'});
  57. $("#inptIntProtSetFTP_url").jqxInput({ width: 350, height: 25 });
  58. $("#inptIntProtSet_FTP_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  59. $("#cbIntProtSet_FTP_passive_mode").jqxCheckBox({ width: 120, height: 25});
  60. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  61. $("#inptIntProtSet_FTP_login").jqxInput({ width: 350, height: 25 });
  62. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  63. $("#cbIntProtSet_FTP_save_user_id").jqxCheckBox({ width: 120, height: 25});
  64. $("#cbIntProtSet_FTP_save_password").jqxCheckBox({ width: 120, height: 25});
  65. $("#cbIntProtSet_FTP_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  66. $("#cbIntProtSet_FTP_auto_resume_transfer").jqxCheckBox({ width: 120, height: 25});
  67. $("#cbIntProtSet_FTP_filename_encoding").jqxCheckBox({ width: 120, height: 25});
  68. var adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  69. $("#comboIntProtSet_FTP_adv_Charset").jqxComboBox({ source: adv_CharsetComboSource, selectedIndex: 0, width: '250', height: '25px'});
  70. $("#cbIntProtSet_FTP_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  71. $("#cbIntProtSet_FTP_adv_ascii_transfer_mode").jqxCheckBox({ width: 120, height: 25});
  72. $("#cbIntProtSet_FTP_adv_server_supports_moving").jqxCheckBox({ width: 120, height: 25});
  73. var adv_FTP_ListingCommandComboSource = ['Automatic', 'LIST(basic listing)', 'LIST-al(includes hidden files)', 'LIST-alR(recursive listing)', 'LS-al(rare)', 'LS-alR(rare)' ];
  74. $("#comboIntProtSet_FTP_adv_ListingCommand").jqxComboBox({ source: adv_FTP_ListingCommandComboSource, selectedIndex: 0, width: '250', height: '25px'});
  75. $("#cbIntProtSet_FTP_adv_verify_file").jqxCheckBox({ width: 120, height: 25});
  76. $("#cbIntProtSet_FTP_adv_respect_passive_mode").jqxCheckBox({ width: 120, height: 25});
  77. var adv_FTP_TimestampsForUploadsComboSource = ['Auto-Detect If Settable', 'Force Sending Timestamps'];
  78. $("#comboIntProtSet_FTP_adv_TimestampsForUploads").jqxComboBox({ source: adv_FTP_TimestampsForUploadsComboSource, selectedIndex: 0, width: '250', height: '25px'});
  79. $("#cbIntProtSet_FTP_adv_zone").jqxCheckBox({ width: 120, height: 25});
  80. $("#cbIntProtSet_FTP_adv_auto").jqxCheckBox({ width: 120, height: 25});
  81. // $("#cbIntProtSet_FTP_adv_UTC").jqxCheckBox({ width: 120, height: 25});
  82. $("#inptIntProtSet_FTP_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  83. $("#inptIntProtSet_FTP_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  84. $("#inptIntProtSet_FTP_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  85. $("#inptIntProtSet_FTP_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  86. $("#inptIntProtSet_FTP_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  87. var FTP_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  88. $("#comboIntProtSet_FTP_proxy_proxy_type").jqxComboBox({ source: FTP_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  89. $("#inptIntProtSet_FTP_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  90. $("#inptIntProtSet_FTP_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  91. $("#inptIntProtSet_FTP_proxy_login").jqxInput({ width: 350, height: 25 });
  92. $("#inptIntProtSet_FTP_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  93. $("#cbIntProtSet_FTP_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  94. $("#rbIntProtSet_FTP_Security_security_none").jqxRadioButton({ groupName: 'IntProtSet_FTP_Security_Mode_Group', rtl: false});
  95. $("#rbIntProtSet_FTP_Security_security_implisit_tsl").jqxRadioButton({ groupName: 'IntProtSet_FTP_Security_Mode_Group', rtl: false});
  96. $("#rbIntProtSet_FTP_Security_security_explisit_tsl").jqxRadioButton({ groupName: 'IntProtSet_FTP_Security_Mode_Group', rtl: false});
  97. $("#rbIntProtSet_FTP_Security_auto").jqxRadioButton({ groupName: 'IntProtSet_FTP_Auth_Cmd_Group', rtl: false});
  98. $("#rbIntProtSet_FTP_Security_TLS").jqxRadioButton({ groupName: 'IntProtSet_FTP_Auth_Cmd_Group', rtl: false});
  99. $("#rbIntProtSet_FTP_Security_SSL").jqxRadioButton({ groupName: 'IntProtSet_FTP_Auth_Cmd_Group', rtl: false});
  100. $("#rbIntProtSet_FTP_Security_TLSC").jqxRadioButton({ groupName: 'IntProtSet_FTP_Auth_Cmd_Group', rtl: false});
  101. $("#rbIntProtSet_FTP_Security_TLSP").jqxRadioButton({ groupName: 'IntProtSet_FTP_Auth_Cmd_Group', rtl: false});
  102. $("#rbIntProtSet_FTP_Security_SSLv2").jqxRadioButton({ groupName: 'IntProtSet_FTP_Version_Group', rtl: false});
  103. $("#rbIntProtSet_FTP_Security_SSLv2_3").jqxRadioButton({ groupName: 'IntProtSet_FTP_Version_Group', rtl: false});
  104. $("#rbIntProtSet_FTP_Security_SSLv3").jqxRadioButton({ groupName: 'IntProtSet_FTP_Version_Group', rtl: false});
  105. $("#rbIntProtSet_FTP_Security_TLSv_1_1_2").jqxRadioButton({ groupName: 'IntProtSet_FTP_Version_Group', rtl: false});
  106. $("#btnIntProtSet_FTP_Security_Advanced_SSH").jqxButton({ template: "info" });
  107. $("#cbIntProtSet_FTP_Security_SSH_username_password").jqxCheckBox({ width: 120, height: 25});
  108. $("#cbIntProtSet_FTP_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  109. $("#cbIntProtSet_FTP_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  110. var FTP_proxy_security_CertificateComboSource = ['none'];
  111. $("#comboIntProtSet_FTP_security_Certificate").jqxComboBox({ source: FTP_proxy_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  112. $("#inptIntProtSet_FTP_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  113. $("#cbIntProtSet_FTP_security_nopassword").jqxCheckBox({ width: 120, height: 25});
  114. $("#inptIntProtSet_FTP_certificates_certificates").jqxInput({ width: 350, height: 150 });
  115. $("#inptIntProtSet_FTP_certificates_certname_forreference").jqxInput({ width: 350, height: 25 });
  116. $("#inptIntProtSet_FTP_certificates_private_keyfile").jqxInput({ width: 350, height: 25 });
  117. $("#inptIntProtSet_FTP_certificates_public_keyfile").jqxInput({ width: 350, height: 25 });
  118. }
  119. else if( GetBaseProtocolName( ProtocolName ) == 'SSH' )
  120. {
  121. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_SFTP );
  122. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  123. var LibraryComboSource = ['1(SFTP)', '2(SCP )', '3(Pure SSH)' ];
  124. $("#jqxLibraryCombo").jqxComboBox({ source: LibraryComboSource, selectedIndex: 0, width: '100', height: '25px'});
  125. $("#inptIntProtSetSSH_url").jqxInput({ width: 350, height: 25 });
  126. $("#inptIntProtSet_SSH_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  127. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  128. $("#inptIntProtSet_SSH_login").jqxInput({ width: 350, height: 25 });
  129. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  130. $("#cbIntProtSet_SSH_save_user_id").jqxCheckBox({ width: 120, height: 25});
  131. $("#cbIntProtSet_SSH_save_password").jqxCheckBox({ width: 120, height: 25});
  132. $("#cbIntProtSet_SSH_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  133. $("#cbIntProtSet_SSH_auto_resume_transfer").jqxCheckBox({ width: 120, height: 25});
  134. var adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  135. $("#comboIntProtSet_SSH_adv_Charset").jqxComboBox({ source: adv_CharsetComboSource, selectedIndex: 0, width: '250', height: '25px'});
  136. $("#cbIntProtSet_SSH_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  137. $("#cbIntProtSet_SSH_adv_recursive_listing").jqxCheckBox({ width: 120, height: 25});
  138. $("#cbIntProtSet_SSH_adv_verify_destination_file").jqxCheckBox({ width: 120, height: 25});
  139. $("#cbIntProtSet_SSH_adv_zone").jqxCheckBox({ width: 120, height: 25});
  140. $("#cbIntProtSet_SSH_adv_auto").jqxCheckBox({ width: 120, height: 25});
  141. $("#inptIntProtSet_SSH_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  142. $("#inptIntProtSet_SSH_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  143. $("#inptIntProtSet_SSH_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  144. $("#inptIntProtSet_SSH_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  145. $("#inptIntProtSet_SSH_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  146. var SSH_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  147. $("#comboIntProtSet_SSH_proxy_proxy_type").jqxComboBox({ source: SSH_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  148. $("#inptIntProtSet_SSH_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  149. $("#inptIntProtSet_SSH_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  150. $("#inptIntProtSet_SSH_proxy_user_id").jqxInput({ width: 350, height: 25 });
  151. $("#inptIntProtSet_SSH_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  152. $("#cbIntProtSet_SSH_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  153. $("#btnIntProtSet_SSH_Security_Advanced_SSH").jqxButton({ template: "info" });
  154. $("#cbIntProtSet_SSH_Security_SSH_username_password").jqxCheckBox({ width: 120, height: 25});
  155. $("#cbIntProtSet_SSH_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  156. $("#cbIntProtSet_SSH_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  157. var SSH_proxy_security_CertificateComboSource = ['none'];
  158. $("#comboIntProtSet_SSH_security_Certificate").jqxComboBox({ source: SSH_proxy_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  159. $("#inptIntProtSet_SSH_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  160. $("#cbIntProtSet_SSH_security_nopassword").jqxCheckBox({ width: 120, height: 25});
  161. $("#inptIntProtSet_SSH_certificates_certificates").jqxInput({ width: 350, height: 150 });
  162. $("#inptIntProtSet_SSH_certificates_certname_forreference").jqxInput({ width: 350, height: 25 });
  163. $("#inptIntProtSet_SSH_certificates_private_keyfile").jqxInput({ width: 350, height: 25 });
  164. $("#inptIntProtSet_SSH_certificates_public_keyfile").jqxInput({ width: 350, height: 25 });
  165. }
  166. else if( GetBaseProtocolName( ProtocolName ) == 'HTTP' )
  167. {
  168. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_HTTP );
  169. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  170. $("#inptIntProtSet_HTTP_url").jqxInput({ width: 350, height: 25 });
  171. $("#inptIntProtSet_HTTP_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  172. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  173. $("#inptIntProtSet_HTTP_login").jqxInput({ width: 350, height: 25 });
  174. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  175. $("#cbIntProtSet_HTTP_save_user_id").jqxCheckBox({ width: 120, height: 25});
  176. $("#cbIntProtSet_HTTP_save_password").jqxCheckBox({ width: 120, height: 25});
  177. $("#cbIntProtSet_HTTP_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  178. $("#cbIntProtSet_HTTP_filename_encoding").jqxCheckBox({ width: 120, height: 25});
  179. $("#cbIntProtSet_HTTP_HTML_download_and_parse").jqxCheckBox({ width: 120, height: 25});
  180. $("#inptIntProtSet_HTTP_HTML_parsing_limit").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  181. $("#cbIntProtSet_HTTP_HTML_enquire_timestamp").jqxCheckBox({ width: 120, height: 25});
  182. $("#cbIntProtSet_HTTP_HTML_enquire_precise_info").jqxCheckBox({ width: 120, height: 25});
  183. $("#cbIntProtSet_HTTP_HTML_download_default_pages").jqxCheckBox({ width: 120, height: 25});
  184. $("#cbIntProtSet_HTTP_HTML_consider_locally_existing_files").jqxCheckBox({ width: 120, height: 25});
  185. $("#cbIntProtSet_HTTP_HTML_assume_local_files").jqxCheckBox({ width: 120, height: 25});
  186. $("#cbIntProtSet_HTTP_HTML_avoid_re_downloading").jqxCheckBox({ width: 120, height: 25});
  187. var HTTP_HTML_links_ComboSource = ['Ignore', 'Download', 'Download&Analyze'];
  188. $("#jqxLinksAboveCombo").jqxComboBox({ source: HTTP_HTML_links_ComboSource, selectedIndex: 0, width: '100', height: '25px'});
  189. $("#jqxLinksToOtherDomainsCombo").jqxComboBox({ source: HTTP_HTML_links_ComboSource, selectedIndex: 0, width: '100', height: '25px'});
  190. var HTTP_adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  191. $("#comboIntProtSet_HTTP_adv_Charset").jqxComboBox({ source: HTTP_adv_CharsetComboSource, selectedIndex: 0, width: '250', height: '25px'});
  192. $("#cbIntProtSet_HTTP_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  193. $("#cbIntProtSet_HTTP_adv_zone").jqxCheckBox({ width: 120, height: 25});
  194. $("#cbIntProtSet_HTTP_adv_auto").jqxCheckBox({ width: 120, height: 25});
  195. $("#inptIntProtSet_HTTP_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  196. $("#inptIntProtSet_HTTP_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  197. $("#inptIntProtSet_HTTP_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  198. $("#inptIntProtSet_HTTP_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  199. $("#inptIntProtSet_HTTP_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  200. var FTP_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  201. $("#comboIntProtSet_HTTP_proxy_proxy_type").jqxComboBox({ source: FTP_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  202. $("#inptIntProtSet_HTTP_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  203. $("#inptIntProtSet_HTTP_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  204. $("#inptIntProtSet_HTTP_proxy_login").jqxInput({ width: 350, height: 25 });
  205. $("#inptIntProtSet_HTTP_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  206. $("#cbIntProtSet_HTTP_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  207. $("#rbIntProtSet_HTTP_Security_SSLv2").jqxRadioButton({ groupName: 'IntProtSet_HTTP_Version_Group', rtl: false});
  208. $("#rbIntProtSet_HTTP_Security_SSLv2_3").jqxRadioButton({ groupName: 'IntProtSet_HTTP_Version_Group', rtl: false});
  209. $("#rbIntProtSet_HTTP_Security_SSLv3").jqxRadioButton({ groupName: 'IntProtSet_HTTP_Version_Group', rtl: false});
  210. $("#rbIntProtSet_HTTP_Security_TLSv_1_1_2").jqxRadioButton({ groupName: 'IntProtSet_HTTP_Version_Group', rtl: false});
  211. $("#btnIntProtSet_HTTP_Security_Advanced_SSH").jqxButton({ template: "info" });
  212. $("#cbIntProtSet_HTTP_Security_SSH_username_password").jqxCheckBox({ width: 120, height: 25});
  213. $("#cbIntProtSet_HTTP_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  214. $("#cbIntProtSet_HTTP_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  215. var HTTP_security_CertificateComboSource = ['none'];
  216. $("#comboIntProtSet_HTTP_security_Certificate").jqxComboBox({ source: HTTP_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  217. $("#inptIntProtSet_HTTP_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  218. $("#cbIntProtSet_HTTP_security_nopassword").jqxCheckBox({ width: 120, height: 25});
  219. $("#inptIntProtSet_HTTP_certificates_certificates").jqxInput({ width: 350, height: 150 });
  220. $("#inptIntProtSet_HTTP_certificates_certname_forreference").jqxInput({ width: 350, height: 25 });
  221. $("#inptIntProtSet_HTTP_certificates_private_keyfile").jqxInput({ width: 350, height: 25 });
  222. $("#inptIntProtSet_HTTP_certificates_public_keyfile").jqxInput({ width: 350, height: 25 });
  223. }
  224. else if( GetBaseProtocolName( ProtocolName ) == 'Google Drive' )
  225. {
  226. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_GoogleDrive );
  227. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  228. //Library Combo
  229. var LibraryComboSource = ['1 MS(SSL)', '2 Open(SSL)'];
  230. $("#jqxLibraryCombo").jqxComboBox({ source: LibraryComboSource, selectedIndex: 0, width: '100', height: '25px'});
  231. // Internet Folder
  232. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  233. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  234. $("#cbIntProtSet_GDrive_save_optional_accname").jqxCheckBox({ width: 120, height: 25});
  235. $("#cbIntProtSet_GDrive_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  236. $("#cbIntProtSet_GDrive_auto_resume_transfer").jqxCheckBox({ width: 120, height: 25});
  237. $("#cbIntProtSet_GDrive_filename_encoding").jqxCheckBox({ width: 120, height: 25});
  238. var GDrive_adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  239. $("#comboIntProtSet_GDrive_adv_Charset").jqxComboBox({ source: GDrive_adv_CharsetComboSource, selectedIndex: 0, width: '250', height: '25px'});
  240. $("#cbIntProtSet_GDrive_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  241. $("#cbIntProtSet_GDrive_adv_enable_doc_convercion").jqxCheckBox({ width: 120, height: 25});
  242. $("#cbIntProtSet_GDrive_adv_zone").jqxCheckBox({ width: 120, height: 25});
  243. $("#cbIntProtSet_GDrive_adv_auto").jqxCheckBox({ width: 120, height: 25});
  244. $("#inptIntProtSet_GDrive_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  245. $("#inptIntProtSet_GDrive_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  246. $("#inptIntProtSet_GDrive_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  247. $("#inptIntProtSet_GDrive_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  248. $("#inptIntProtSet_GDrive_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  249. var GDrive_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  250. $("#comboIntProtSet_GDrive_proxy_proxy_type").jqxComboBox({ source: GDrive_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  251. $("#inptIntProtSet_GDrive_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  252. $("#inptIntProtSet_GDrive_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  253. $("#inptIntProtSet_GDrive_proxy_login").jqxInput({ width: 350, height: 25 });
  254. $("#inptIntProtSet_GDrive_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  255. $("#cbIntProtSet_GDrive_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  256. $("#rbIntProtSet_GDrive_GDocs_xlsx").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatSpreadsheets_Group', rtl: false});
  257. $("#rbIntProtSet_GDrive_GDocs_csv").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatSpreadsheets_Group', rtl: false});
  258. $("#rbIntProtSet_GDrive_GDocs_pdf").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatSpreadsheets_Group', rtl: false});
  259. $("#rbIntProtSet_GDrive_GDocs_dd_docx").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDocs_Group', rtl: false});
  260. $("#rbIntProtSet_GDrive_GDocs_dd_odt").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDocs_Group', rtl: false});
  261. $("#rbIntProtSet_GDrive_GDocs_dd_rtf").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDocs_Group', rtl: false});
  262. $("#rbIntProtSet_GDrive_GDocs_dd_html").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDocs_Group', rtl: false});
  263. $("#rbIntProtSet_GDrive_GDocs_dd_pdf").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDocs_Group', rtl: false});
  264. $("#rbIntProtSet_GDrive_GDocs_dd_txt").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDocs_Group', rtl: false});
  265. $("#rbIntProtSet_GDrive_GDocs_dpres_pptx").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldPres_Group', rtl: false});
  266. $("#rbIntProtSet_GDrive_GDocs_dpres_pdf").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldPres_Group', rtl: false});
  267. $("#rbIntProtSet_GDrive_GDocs_dpres_txt").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldPres_Group', rtl: false});
  268. $("#rbIntProtSet_GDrive_GDocs_ddraw_jpg").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDraw_Group', rtl: false});
  269. $("#rbIntProtSet_GDrive_GDocs_ddraw_png").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDraw_Group', rtl: false});
  270. $("#rbIntProtSet_GDrive_GDocs_ddraw_pdf").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDraw_Group', rtl: false});
  271. $("#rbIntProtSet_GDrive_GDocs_ddraw_xml").jqxRadioButton({ groupName: 'IntProtSet_GDrive_FormatDownldDraw_Group', rtl: false});
  272. $("#cbIntProtSet_GDrive_GDocs_ftconvert_csv").jqxCheckBox({ width: 120, height: 25});
  273. $("#cbIntProtSet_GDrive_GDocs_ftconvert_html").jqxCheckBox({ width: 120, height: 25});
  274. $("#cbIntProtSet_GDrive_GDocs_ftconvert_pdf").jqxCheckBox({ width: 120, height: 25});
  275. $("#cbIntProtSet_GDrive_GDocs_ftconvert_pptx").jqxCheckBox({ width: 120, height: 25});
  276. $("#cbIntProtSet_GDrive_GDocs_ftconvert_txt").jqxCheckBox({ width: 120, height: 25});
  277. $("#cbIntProtSet_GDrive_GDocs_ftconvert_doc").jqxCheckBox({ width: 120, height: 25});
  278. $("#cbIntProtSet_GDrive_GDocs_ftconvert_ods").jqxCheckBox({ width: 120, height: 25});
  279. $("#cbIntProtSet_GDrive_GDocs_ftconvert_pps").jqxCheckBox({ width: 120, height: 25});
  280. $("#cbIntProtSet_GDrive_GDocs_ftconvert_rtf").jqxCheckBox({ width: 120, height: 25});
  281. $("#cbIntProtSet_GDrive_GDocs_ftconvert_xls").jqxCheckBox({ width: 120, height: 25});
  282. $("#cbIntProtSet_GDrive_GDocs_ftconvert_docx").jqxCheckBox({ width: 120, height: 25});
  283. $("#cbIntProtSet_GDrive_GDocs_ftconvert_odt").jqxCheckBox({ width: 120, height: 25});
  284. $("#cbIntProtSet_GDrive_GDocs_ftconvert_ppt").jqxCheckBox({ width: 120, height: 25});
  285. $("#cbIntProtSet_GDrive_GDocs_ftconvert_tsv").jqxCheckBox({ width: 120, height: 25});
  286. $("#cbIntProtSet_GDrive_GDocs_ftconvert_xlsx").jqxCheckBox({ width: 120, height: 25});
  287. }
  288. else if( GetBaseProtocolName( ProtocolName ) == 'Amazon S3' )
  289. {
  290. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_AmazonS3 );
  291. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  292. $("#inptIntProtSet_AmazonS3_bucket").jqxInput({ width: 350, height: 25 });
  293. $("#cbIntProtSet_AmazonS3_reduced_redundancy").jqxCheckBox({ width: 120, height: 25});
  294. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  295. $("#inptIntProtSet_AmazonS3_access_id").jqxInput({ width: 350, height: 25 });
  296. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  297. $("#cbIntProtSet_AmazonS3_save_access_id").jqxCheckBox({ width: 120, height: 25});
  298. $("#cbIntProtSet_AmazonS3_save_secret_key").jqxCheckBox({ width: 120, height: 25});
  299. $("#cbIntProtSet_AmazonS3_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  300. $("#cbIntProtSet_AmazonS3_filename_encoding").jqxCheckBox({ width: 120, height: 25});
  301. var AmazonS3_adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  302. $("#comboIntProtSet_AmazonS3_adv_Charset").jqxComboBox({ source: AmazonS3_adv_CharsetComboSource, selectedIndex: 0, width: '250', height: '25px'});
  303. $("#cbIntProtSet_AmazonS3_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  304. $("#cbIntProtSet_AmazonS3_make_uploaded_files_pub_available").jqxCheckBox({ width: 120, height: 25});
  305. $("#cbIntProtSet_AmazonS3_recursive_listing").jqxCheckBox({ width: 120, height: 25});
  306. $("#cbIntProtSet_AmazonS3_use_server_side_encryption").jqxCheckBox({ width: 120, height: 25});
  307. $("#cbIntProtSet_AmazonS3_adv_zone").jqxCheckBox({ width: 120, height: 25});
  308. $("#cbIntProtSet_AmazonS3_adv_auto").jqxCheckBox({ width: 120, height: 25});
  309. $("#inptIntProtSet_AmazonS3_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  310. $("#inptIntProtSet_AmazonS3_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  311. $("#inptIntProtSet_AmazonS3_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  312. $("#inptIntProtSet_AmazonS3_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  313. $("#inptIntProtSet_AmazonS3_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  314. var AmazonS3_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  315. $("#comboIntProtSet_AmazonS3_proxy_proxy_type").jqxComboBox({ source: AmazonS3_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  316. $("#inptIntProtSet_AmazonS3_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  317. $("#inptIntProtSet_AmazonS3_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  318. $("#inptIntProtSet_AmazonS3_proxy_login").jqxInput({ width: 350, height: 25 });
  319. $("#inptIntProtSet_AmazonS3_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  320. $("#cbIntProtSet_AmazonS3_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  321. $("#rbIntProtSet_AmazonS3_Security_SSLv2").jqxRadioButton({ groupName: 'IntProtSet_AmazonS3_Version_Group', rtl: false});
  322. $("#rbIntProtSet_AmazonS3_Security_SSLv2_3").jqxRadioButton({ groupName: 'IntProtSet_AmazonS3_Version_Group', rtl: false});
  323. $("#rbIntProtSet_AmazonS3_Security_SSLv3").jqxRadioButton({ groupName: 'IntProtSet_AmazonS3_Version_Group', rtl: false});
  324. $("#rbIntProtSet_AmazonS3_Security_TLSv_1_1_2").jqxRadioButton({ groupName: 'IntProtSet_AmazonS3_Version_Group', rtl: false});
  325. $("#btnIntProtSet_AmazonS3_Security_Advanced_SSH").jqxButton({ template: "info" });
  326. $("#cbIntProtSet_AmazonS3_Security_SSH_username_password").jqxCheckBox({ width: 120, height: 25});
  327. $("#cbIntProtSet_AmazonS3_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  328. $("#cbIntProtSet_AmazonS3_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  329. var AmazonS3_security_CertificateComboSource = ['none'];
  330. $("#comboIntProtSet_AmazonS3_security_Certificate").jqxComboBox({ source: AmazonS3_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  331. $("#inptIntProtSet_AmazonS3_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  332. $("#cbIntProtSet_AmazonS3_security_nopassword").jqxCheckBox({ width: 120, height: 25});
  333. }
  334. else if( GetBaseProtocolName( ProtocolName ) == 'Asure' )
  335. {
  336. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_Asure );
  337. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  338. // Internet Folder
  339. $("#inptIntProtSet_Asure_container").jqxInput({ width: 350, height: 25 });
  340. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  341. $("#inptIntProtSet_Asure_account_id").jqxInput({ width: 350, height: 25 });
  342. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  343. $("#cbIntProtSet_Asure_save_user_id").jqxCheckBox({ width: 120, height: 25});
  344. $("#cbIntProtSet_Asure_save_password").jqxCheckBox({ width: 120, height: 25});
  345. $("#cbIntProtSet_Asure_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  346. $("#cbIntProtSet_Asure_filename_encoding").jqxCheckBox({ width: 120, height: 25});
  347. var Asure_adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  348. $("#comboIntProtSet_Asure_adv_Charset").jqxComboBox({ source: Asure_adv_CharsetComboSource, selectedIndex: 0, width: '250', height: '25px'});
  349. $("#cbIntProtSet_Asure_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  350. $("#cbIntProtSet_Asure_adv_recursive_listing").jqxCheckBox({ width: 120, height: 25});
  351. $("#inptIntProtSet_Asure_adv_cache_control").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  352. $("#cbIntProtSet_Asure_adv_zone").jqxCheckBox({ width: 120, height: 25});
  353. $("#cbIntProtSet_Asure_adv_auto").jqxCheckBox({ width: 120, height: 25});
  354. $("#inptIntProtSet_Asure_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  355. $("#inptIntProtSet_Asure_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  356. $("#inptIntProtSet_Asure_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  357. $("#inptIntProtSet_Asure_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  358. $("#inptIntProtSet_Asure_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  359. var Asure_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  360. $("#comboIntProtSet_Asure_proxy_proxy_type").jqxComboBox({ source: Asure_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  361. $("#inptIntProtSet_Asure_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  362. $("#inptIntProtSet_Asure_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  363. $("#inptIntProtSet_Asure_proxy_login").jqxInput({ width: 350, height: 25 });
  364. $("#inptIntProtSet_Asure_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  365. $("#cbIntProtSet_Asure_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  366. $("#rbIntProtSet_Asure_Security_SSLv2").jqxRadioButton({ groupName: 'IntProtSet_Asure_Version_Group', rtl: false});
  367. $("#rbIntProtSet_Asure_Security_SSLv2_3").jqxRadioButton({ groupName: 'IntProtSet_Asure_Version_Group', rtl: false});
  368. $("#rbIntProtSet_Asure_Security_SSLv3").jqxRadioButton({ groupName: 'IntProtSet_Asure_Version_Group', rtl: false});
  369. $("#rbIntProtSet_Asure_Security_TLSv_1_1_2").jqxRadioButton({ groupName: 'IntProtSet_Asure_Version_Group', rtl: false});
  370. $("#btnIntProtSet_Asure_Security_Advanced_SSH").jqxButton({ template: "info" });
  371. $("#cbIntProtSet_Asure_Security_SSH_username_password").jqxCheckBox({ width: 120, height: 25});
  372. $("#cbIntProtSet_Asure_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  373. $("#cbIntProtSet_Asure_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  374. var Asure_security_CertificateComboSource = ['none'];
  375. $("#comboIntProtSet_Asure_security_Certificate").jqxComboBox({ source: Asure_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  376. $("#inptIntProtSet_Asure_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  377. $("#cbIntProtSet_Asure_security_nopassword").jqxCheckBox({ width: 120, height: 25});
  378. }
  379. else if( GetBaseProtocolName( ProtocolName ) == 'WebDAV' )
  380. {
  381. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_WebDAV );
  382. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  383. var LibraryComboSource = ['1 MS(SSL)', '2 Open(SSL)'];
  384. $("#jqxLibraryCombo").jqxComboBox({ source: LibraryComboSource, selectedIndex: 0, width: '100', height: '25px'});
  385. $("#inptIntProtSetWebDAV_url").jqxInput({ width: 350, height: 25 });
  386. var AuthenticationComboSource = ['Basic', 'Auto'];
  387. $("#jqxWebDAVAuthenticationCombo").jqxComboBox({ source: AuthenticationComboSource, selectedIndex: 0, width: '100', height: '25px'});
  388. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  389. $("#inptIntProtSet_WebDAV_login").jqxInput({ width: 350, height: 25 });
  390. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  391. $("#cbIntProtSet_WebDAV_save_user_id").jqxCheckBox({ width: 120, height: 25});
  392. $("#cbIntProtSet_WebDAV_save_password").jqxCheckBox({ width: 120, height: 25});
  393. $("#cbIntProtSet_WebDAV_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  394. $("#cbIntProtSet_WebDAV_filename_encoding").jqxCheckBox({ width: 120, height: 25});
  395. var WebDAV_adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  396. $("#comboIntProtSet_WebDAV_adv_Charset").jqxComboBox({ source: WebDAV_adv_CharsetComboSource, selectedIndex: 0, width: '100', height: '25px'});
  397. $("#cbIntProtSet_WebDAV_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  398. var WebDAV_adv_strategyComboSource = ['Get All Properties', 'Get Necessary Properties Only', 'PROPFIND without XML body' ];
  399. $("#comboIntProtSet_WebDAV_adv_strategyCombo").jqxComboBox({ source: WebDAV_adv_strategyComboSource, selectedIndex: 0, width: '100', height: '25px'});
  400. $("#cbIntProtSet_WebDAV_adv_use_displayname").jqxCheckBox({ width: 120, height: 25});
  401. $("#comboIntProtSet_WebDAV_adv_use_expect_100_continue").jqxCheckBox({ width: 120, height: 25});
  402. var WebDAV_adv_TimestampsComboSource = ['Auto-Detect If Settable', 'WebDrive/GroupDrive', 'CrushFTP', 'OnlineDrive by CM4all', 'vitalEsafe' ];
  403. $("#comboIntProtSet_WebDAV_adv_TimestampsForUploads").jqxComboBox({ source: WebDAV_adv_TimestampsComboSource, selectedIndex: 0, width: '100', height: '25px'});
  404. $("#cbIntProtSet_WebDAV_adv_zone").jqxCheckBox({ width: 120, height: 25});
  405. $("#cbIntProtSet_WebDAV_adv_auto").jqxCheckBox({ width: 120, height: 25});
  406. $("#inptIntProtSet_WebDAV_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  407. $("#inptIntProtSet_WebDAV_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  408. $("#inptIntProtSet_WebDAV_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  409. $("#inptIntProtSet_WebDAV_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  410. $("#inptIntProtSet_WebDAV_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  411. var WebDAV_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  412. $("#comboIntProtSet_WebDAV_proxy_proxy_type").jqxComboBox({ source: WebDAV_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  413. $("#inptIntProtSet_WebDAV_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  414. $("#inptIntProtSet_WebDAV_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  415. $("#inptIntProtSet_WebDAV_proxy_login").jqxInput({ width: 350, height: 25 });
  416. $("#inptIntProtSet_WebDAV_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  417. $("#cbIntProtSet_WebDAV_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  418. $("#rbIntProtSet_WebDAV_Security_SSLv2").jqxRadioButton({ groupName: 'IntProtSet_WebDAV_Version_Group', rtl: false});
  419. $("#rbIntProtSet_WebDAV_Security_SSLv2_3").jqxRadioButton({ groupName: 'IntProtSet_WebDAV_Version_Group', rtl: false});
  420. $("#rbIntProtSet_WebDAV_Security_SSLv3").jqxRadioButton({ groupName: 'IntProtSet_WebDAV_Version_Group', rtl: false});
  421. $("#rbIntProtSet_WebDAV_Security_TLSv_1_1_2").jqxRadioButton({ groupName: 'IntProtSet_WebDAV_Version_Group', rtl: false});
  422. $("#btnIntProtSet_WebDAV_Security_Advanced_SSH").jqxButton({ template: "info" });
  423. $("#cbIntProtSet_WebDAV_Security_SSH_username_password").jqxCheckBox({ width: 120, height: 25});
  424. $("#cbIntProtSet_WebDAV_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  425. $("#cbIntProtSet_WebDAV_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  426. var WebDAV_security_CertificateComboSource = ['none'];
  427. $("#comboIntProtSet_WebDAV_security_Certificate").jqxComboBox({ source: WebDAV_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  428. $("#inptIntProtSet_WebDAV_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  429. $("#cbIntProtSet_WebDAV_security_nopassword").jqxCheckBox({ width: 120, height: 25});
  430. $("#inptIntProtSet_WebDAV_certificates_certificates").jqxInput({ width: 350, height: 150 });
  431. $("#inptIntProtSet_WebDAV_certificates_certname_forreference").jqxInput({ width: 350, height: 25 });
  432. $("#inptIntProtSet_WebDAV_certificates_private_keyfile").jqxInput({ width: 350, height: 25 });
  433. $("#inptIntProtSet_WebDAV_certificates_public_keyfile").jqxInput({ width: 350, height: 25 });
  434. }
  435. else if( GetBaseProtocolName( ProtocolName ) == 'RSync' )
  436. {
  437. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_RSync );
  438. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  439. var LibraryComboSource = ['1 (SSH)', '2 (Direct)'];
  440. $("#jqxLibraryCombo").jqxComboBox({ source: LibraryComboSource, selectedIndex: 0, width: '100', height: '25px'});
  441. $("#inptIntProtSet_Rsync_url").jqxInput({ width: 350, height: 25 });
  442. $("#inptIntProtSet_Rsync_port_number").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  443. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  444. $("#inptIntProtSet_Rsync_login").jqxInput({ width: 350, height: 25 });
  445. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  446. $("#cbIntProtSet_Rsync_save_user_id").jqxCheckBox({ width: 120, height: 25});
  447. $("#cbIntProtSet_Rsync_save_password").jqxCheckBox({ width: 120, height: 25});
  448. $("#cbIntProtSet_Rsync_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  449. var RSync_adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  450. $("#comboIntProtSet_Rsync_adv_Charset").jqxComboBox({ source: RSync_adv_CharsetComboSource, selectedIndex: 0, width: '100', height: '25px'});
  451. $("#cbIntProtSet_Rsync_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  452. var Rsync_adv_TimestampsComboSource = ['Auto-Detect If Settable', 'WebDrive/GroupDrive', 'CrushFTP', 'OnlineDrive by CM4all', 'vitalEsafe' ];
  453. $("#comboIntProtSet_Rsync_adv_TimestampsForUploads").jqxComboBox({ source: Rsync_adv_TimestampsComboSource, selectedIndex: 0, width: '100', height: '25px'});
  454. $("#cbIntProtSet_Rsync_adv_zone").jqxCheckBox({ width: 120, height: 25});
  455. $("#cbIntProtSet_Rsync_adv_auto").jqxCheckBox({ width: 120, height: 25});
  456. $("#inptIntProtSet_Rsync_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  457. $("#inptIntProtSet_Rsync_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  458. $("#inptIntProtSet_Rsync_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  459. $("#inptIntProtSet_Rsync_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  460. $("#inptIntProtSet_Rsync_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  461. var Rsync_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  462. $("#comboIntProtSet_Rsync_proxy_proxy_type").jqxComboBox({ source: Rsync_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  463. $("#inptIntProtSet_Rsync_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  464. $("#inptIntProtSet_Rsync_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  465. $("#inptIntProtSet_Rsync_proxy_login").jqxInput({ width: 350, height: 25 });
  466. $("#inptIntProtSet_Rsync_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  467. $("#cbIntProtSet_Rsync_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  468. $("#btnIntProtSet_Rsync_Security_Advanced_SSH").jqxButton({ template: "info" });
  469. $("#cbIntProtSet_Rsync_Security_SSH_username_password").jqxCheckBox({ width: 120, height: 25});
  470. $("#cbIntProtSet_Rsync_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  471. $("#cbIntProtSet_Rsync_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  472. var Rsync_security_CertificateComboSource = ['none'];
  473. $("#comboIntProtSet_Rsync_security_Certificate").jqxComboBox({ source: Rsync_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  474. $("#inptIntProtSet_Rsync_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  475. $("#cbIntProtSet_Rsync_security_nopassword").jqxCheckBox({ width: 120, height: 25});
  476. $("#inptIntProtSet_Rsync_certificates_certificates").jqxInput({ width: 350, height: 150 });
  477. $("#inptIntProtSet_Rsync_certificates_certname_forreference").jqxInput({ width: 350, height: 25 });
  478. $("#inptIntProtSet_Rsync_certificates_private_keyfile").jqxInput({ width: 350, height: 25 });
  479. $("#inptIntProtSet_Rsync_certificates_public_keyfile").jqxInput({ width: 350, height: 25 });
  480. }
  481. else if( GetBaseProtocolName( ProtocolName ) == 'Glacier' )
  482. {
  483. $("#jqxInternetProtSettingsTabs_div").html( InternetProtSettingsTabsHTML_Glacier );
  484. GInternetProtSettingsTabs = $('#jqxInternetProtSettingsTabs').jqxTabs({ width: GInternetProtSettingsTabControlWidth, height: GInternetProtSettingsTabControlHeight });
  485. $("#inptIntProtSet_Glacier_Vault").jqxInput({ width: 350, height: 25 });
  486. var Glacier_RegionComboSource = ['US East (Northern Virginia)', 'US West (Oregon)', 'US West (Northern California)',
  487. 'EU (Ireland)', 'Asia Pacific (Tokyo)' ];
  488. $("#comboIntProtSet_Glacier_Region").jqxComboBox({ source: Glacier_RegionComboSource, selectedIndex: 0, width: '100', height: '25px'});
  489. $("#inptInternetFolder").jqxInput({ width: 350, height: 25 });
  490. $("#inptAccountOpt").jqxPasswordInput({ width: 350, height: 25 });
  491. $("#cbIntProtSet_Glacier_save_access_id").jqxCheckBox({ width: 120, height: 25});
  492. $("#cbIntProtSet_Glacier_save_password").jqxCheckBox({ width: 120, height: 25});
  493. $("#cbIntProtSet_Glacier_allow_ipv6").jqxCheckBox({ width: 120, height: 25});
  494. $("#cbIntProtSet_Glacier_filename_encoding").jqxCheckBox({ width: 120, height: 25});
  495. var Glacier_adv_CharsetComboSource = ['Automatic', 'Unicode(UTF-8)', 'Windows ANSI' ];
  496. $("#comboIntProtSet_Glacier_adv_Charset").jqxComboBox({ source: Glacier_adv_CharsetComboSource, selectedIndex: 0, width: '100', height: '25px'});
  497. $("#cbIntProtSet_Glacier_adv_replace_characters").jqxCheckBox({ width: 120, height: 25});
  498. $("#cbIntProtSet_Glacier_recursive_listing").jqxCheckBox({ width: 120, height: 25});
  499. $("#cbIntProtSet_Glacier_adv_zone").jqxCheckBox({ width: 120, height: 25});
  500. $("#cbIntProtSet_Glacier_adv_auto").jqxCheckBox({ width: 120, height: 25});
  501. $("#inptIntProtSet_Glacier_adv_list").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  502. $("#inptIntProtSet_Glacier_adv_upload_min").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  503. $("#inptIntProtSet_Glacier_adv_timeout").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  504. $("#inptIntProtSet_Glacier_adv_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  505. $("#inptIntProtSet_Glacier_adv_http_retries").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  506. var Glacier_proxy_proxy_typeComboSource = ['No Proxy(default)', 'USER user@hostname', 'SITE(with logon)', 'OPEN', 'USER/PASS combined', 'Transparent'];
  507. $("#comboIntProtSet_Glacier_proxy_proxy_type").jqxComboBox({ source: Glacier_proxy_proxy_typeComboSource, selectedIndex: 0, width: '250', height: '25px'});
  508. $("#inptIntProtSet_Glacier_proxy_proxy_host").jqxInput({ width: 350, height: 25 });
  509. $("#inptIntProtSet_Glacier_proxy_proxy_port").jqxFormattedInput({ width: 50, height: 25, radix: "decimal", value: "0", min: "0", max: "10000", spinButtons: false });
  510. $("#inptIntProtSet_Glacier_proxy_login").jqxInput({ width: 350, height: 25 });
  511. $("#inptIntProtSet_Glacier_proxy_password").jqxPasswordInput({ width: 350, height: 25 });
  512. $("#cbIntProtSet_Glacier_proxy_send_host_command").jqxCheckBox({ width: 120, height: 25});
  513. $("#rbIntProtSet_Glacier_Security_None").jqxRadioButton({ groupName: 'IntProtSet_Glacier_Security_Mode_Group', rtl: false});
  514. $("#rbIntProtSet_Glacier_Security_TLS").jqxRadioButton({ groupName: 'IntProtSet_Glacier_Security_Mode_Group', rtl: false});
  515. $("#btnIntProtSet_Glacier_Security_Advanced_SSH").jqxButton({ template: "info" });
  516. $("#cbIntProtSet_Glacier_Security_SSH_username_password").jqxCheckBox({ width: 350, height: 25 });
  517. $("#cbIntProtSet_Glacier_Security_SSH_keyboard").jqxCheckBox({ width: 120, height: 25});
  518. $("#cbIntProtSet_Glacier_Security_SSH_certificate").jqxCheckBox({ width: 120, height: 25});
  519. var Glacier_security_CertificateComboSource = ['none'];
  520. $("#comboIntProtSet_Glacier_security_Certificate").jqxComboBox({ source: Glacier_security_CertificateComboSource, selectedIndex: 0, width: '250', height: '25px'});
  521. $("#inptIntProtSet_Glacier_security_CertificatePassword").jqxPasswordInput({ width: 350, height: 25 });
  522. $("#cbIntProtSet_Glacier_security_nopassword").jqxCheckBox({ width: 350, height: 25 });
  523. }
  524. LoadRegistryListToControls( GCurrentInternetProtocolSetRegistryList, GetBaseProtocolName( ProtocolName ) );
  525. if( GInternetProtSettingsTabs != null)
  526. {
  527. $("#inptInternetFolder").jqxInput( 'val' , GLeftRightSideInput.jqxInput( 'val' ) );
  528. if( GLeftOrRight == "Left" )
  529. $("#inptAccountOpt").jqxInput( 'val' , GLeftAccountOpt );
  530. else
  531. $("#inptAccountOpt").jqxInput( 'val' , GRightAccountOpt );
  532. }
  533. }
  534. function InitProtocolSettingsForm( ProfileName, InternetProtocolSetRegistryList, LeftOrRight, ProtocolName )
  535. {
  536. GCurrentInternetProtocolSetRegistryList = InternetProtocolSetRegistryList;
  537. GSelectedProfileName = ProfileName;
  538. GLeftOrRight = LeftOrRight;
  539. GProtocolName = ProtocolName;
  540. $("#ProtocolSettingsForm_div").html( ProtocolSettingsFormHTML );
  541. ///Internet Protocol SettingsDlg
  542. $("#jqxwInternetProtSettingsDlg").jqxWindow({ maxWidth: GInternetProtSettingsDialogWidth, maxHeight: GInternetProtSettingsDialogHeight, height: GInternetProtSettingsDialogHeight,
  543. width: GInternetProtSettingsDialogWidth, theme: 'energyblue', autoOpen: false, isModal: true, animationType: 'slide' });
  544. $('#Cancel_btn3').jqxButton({});
  545. $('#Cancel_btn3').click(function () {
  546. $('#jqxwInternetProtSettingsDlg').jqxWindow('close');
  547. });
  548. $('#OK_btn3').jqxButton({});
  549. $('#OK_btn3').click(function (){
  550. if( GLeftOrRight == "Left" )
  551. {
  552. //in synapp_profile_editor_form
  553. GLeftProtocolName = $("#jqxProtocolCombo").jqxComboBox('val');
  554. if( $("#inptInternetFolder").length > 0 )
  555. GLeftRightSideInput.jqxInput('val', $("#inptInternetFolder").jqxInput( 'val' ) );
  556. }
  557. else if( GLeftOrRight == "Right" )
  558. {
  559. //in synapp_profile_editor_form
  560. GRightProtocolName = $("#jqxProtocolCombo").jqxComboBox('val');
  561. if( $("#inptInternetFolder").length > 0 )
  562. GLeftRightSideInput.jqxInput('val', $("#inptInternetFolder").jqxInput( 'val' ) );
  563. }
  564. ControlValuesToRegistryList(GCurrentInternetProtocolSetRegistryList, GetBaseProtocolName( GProtocolName ) );
  565. $('#jqxwInternetProtSettingsDlg').jqxWindow('close');
  566. });
  567. // Protocols combo
  568. var ProtocolComboSource = ['FTP', 'SSH', 'WebDAV', 'Amazon S3', 'HTTP', 'Asure', 'RSync', 'Glacier', 'Box', 'Google Drive',
  569. 'DropBox', 'Rackspace', 'OneDrive', 'SugarSync', 'Amazon Cloud Drive', 'MTP', 'Email' ];
  570. // Create a jqxComboBox
  571. $("#jqxProtocolCombo").jqxComboBox({ source: ProtocolComboSource, selectedIndex: 0, width: '250', height: '25px'});
  572. $('#jqxProtocolCombo').on('select', function (event) {
  573. var args = event.args;
  574. if (args != undefined)
  575. {
  576. var item = event.args.item;
  577. if ( ( item != null ) )
  578. {
  579. OnProtocolComboItem( GSelectedProfileName, GCurrentInternetProtocolSetRegistryList, GLeftOrRight, item.label );
  580. }
  581. }
  582. });
  583. $('#jqxwInternetProtSettingsDlg').on('close', function (event) {
  584. $('#jqxwInternetProtSettingsDlg').jqxWindow('destroy');
  585. });
  586. $("#jqxwInternetProtSettingsDlg").jqxWindow('open')
  587. $('#jqxwInternetProtSettingsDlg').on('open', function (event)
  588. {
  589. $("#jqxProtocolCombo").jqxComboBox( 'val', GProtocolName );
  590. //OnProtocolComboItem( GSelectedProfileName, GCurrentInternetProtocolSetRegistryList, GLeftOrRight, GetBaseProtocolName( GProtocolName ) );
  591. });
  592. }