dir.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* $Id: dir.js 2874 2007-04-12 11:19:49Z munk $ */
  2. // fields
  3. var popUpWin=0;
  4. /**
  5. * MakeTorrent
  6. */
  7. function MakeTorrent(name_file) {
  8. window.open (name_file,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=430')
  9. }
  10. /**
  11. * checkCheck
  12. */
  13. function checkCheck(thisIn) {
  14. var form = thisIn.form, i = 0;
  15. for (i=0; i < form.length; i++) {
  16. if (form[i].type == 'checkbox' && form[i].name != 'checkall' && form[i].disabled == false) {
  17. form[i].checked = thisIn.checked;
  18. }
  19. }
  20. }
  21. /**
  22. * UncompDetails
  23. */
  24. function UncompDetails(URL) {
  25. window.open (URL,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=300');
  26. }
  27. /**
  28. * CompressDetails
  29. */
  30. function CompressDetails(URL) {
  31. window.open (URL,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=300');
  32. }
  33. /**
  34. * rename
  35. */
  36. function rename(name_file) {
  37. if (popUpWin) {
  38. if (!popUpWin.closed) popUpWin.close();
  39. }
  40. popUpWin = open(name_file,'_blank','toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=640,height=430')
  41. }
  42. /**
  43. * moveFile
  44. */
  45. function moveFile(name_file) {
  46. if (popUpWin) {
  47. if (!popUpWin.closed) popUpWin.close();
  48. }
  49. popUpWin = open(name_file,'_blank','toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=640,height=430');
  50. }
  51. /**
  52. * CheckSFV
  53. */
  54. function CheckSFV(dir,file) {
  55. var width = screen.width/2-300;
  56. var height = screen.height/2-110;
  57. var InfoWin = window.open("index.php?iid=checkSFV&dir="+dir+"&file="+file, "CheckSFV", "status=no,toolbar=no,scrollbars=yes,resizable=yes,menubar=no,width=560,height=240,left="+width+",top="+height);
  58. }
  59. /**
  60. * StreamMultimedia
  61. */
  62. function StreamMultimedia(name_file) {
  63. if (popUpWin) {
  64. if (!popUpWin.closed) popUpWin.close();
  65. }
  66. popUpWin = open(name_file,'_blank','toolbar=no,location=0,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=400')
  67. }