home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / service / ie6sp1 / IEW2K_3.CAB / shdoclc.dll / HTML / ORGFAV.DLG < prev    next >
Text File  |  2002-10-03  |  12KB  |  397 lines

  1.  
  2.  
  3. <HTML id=dlgOrganizeFavorites STYLE="font-family: MS Shell Dlg; font-size: 8pt; width: 41.2em; height: 32.0em">
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  5. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  6. <head>
  7.  
  8. <style>
  9.     .button {color: BUTTONTEXT; font-size: 8pt}
  10.     .info {font-size: 8pt; color: WINDOWTEXT}
  11.     .btext {color: BUTTONTEXT}
  12.     LI {line-height:10pt}
  13.     A  {text-decoration: none; color: WINDOWTEXT}
  14. </style>
  15.  
  16. <TITLE id=txtTitleOrgFavsDialog>
  17. ╙∩ε≡ Σε≈Φ≥ⁿ Φτß≡αφφεσ
  18. </TITLE>
  19.  
  20. <script>
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. window.onerror = HandleError;
  31.  
  32. var g_strUrl;        
  33. var g_rgUrlsToSynch = new Array(0); 
  34. var g_fSubscriptionsEnabled;
  35. var g_dxEllipses = 0;
  36. var g_dxEllipsesBold = 0;
  37. var L_Ellipses_Text = "..."; 
  38.  
  39. function callHelp(elm)
  40. {
  41.     if (null != elm.helpid)
  42.     {
  43.         window.showHelp(elm.helpfile, "" + parseInt(elm.helpid), "popup");
  44.     }
  45.     else
  46.     {
  47.         if ("BODY" != elm.tagName)
  48.         {
  49.             callHelp(elm.parentElement);
  50.         }
  51.     }
  52. }
  53. document.onhelp = new Function("callHelp(window.event.srcElement)");
  54.  
  55.  
  56. function documentMouseUp()
  57. {
  58.     
  59.  
  60.     if (window.event.button == 2)
  61.     {
  62.         callHelp(window.event.srcElement);
  63.     }
  64. }   
  65.  
  66. document.onmouseup = new Function("documentMouseUp()");
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77. function HandleError(message, url, line)
  78. {
  79.  
  80.     var L_Dialog_ErrorMessage = "┬ ²≥ε∞ ΣΦαδεπεΓε∞ εΩφσ ∩≡εΦτε°δα ε°ΦßΩα.";
  81.     var L_ErrorNumber_Text = "╬°ΦßΩα: ";
  82.  
  83.     var str = L_Dialog_ErrorMessage + "\n\n" 
  84.         + L_ErrorNumber_Text + line + "\n"
  85.         + message;
  86.  
  87.     alert (str);
  88.     window.close();
  89.  
  90.     return true;
  91. }
  92.  
  93. function BodyOnKeyPress(nCode)
  94. {
  95.     if (nCode == 27)    
  96.     {
  97.         window.close();
  98.         return;
  99.     }
  100. }
  101.  
  102. function MeasureText(strText, fBold, widthMaximum)
  103. {
  104.     
  105.     
  106.     
  107.     
  108.  
  109.     if (spanMeasure.offsetWidth < widthMaximum)
  110.         return strText;
  111.     
  112.     var dxEllipses = (fBold ? g_dxEllipsesBold : g_dxEllipses);
  113.     var iCutoff = strText.length * (widthMaximum / (spanMeasure.offsetWidth + dxEllipses));
  114.     
  115.     if (fBold)
  116.     {
  117.         spanMeasure.innerHTML = "<B>" + strText.substring(0, iCutoff - 1) + L_Ellipses_Text + "</B>"
  118.         iCutoff += 3;
  119.     }
  120.     else
  121.         spanMeasure.innerHTML = strText.substring(0, iCutoff - 1) + L_Ellipses_Text; 
  122.  
  123.     for (cExtraCutoff = 1; (spanMeasure.offsetWidth > widthMaximum) && (cExtraCutoff < 30); cExtraCutoff++)
  124.     {
  125.         spanMeasure.innerHTML = spanMeasure.innerHTML.substring(0, iCutoff-cExtraCutoff) + L_Ellipses_Text + (fBold ? "</B>" : "");
  126.     }
  127.  
  128.     return spanMeasure.innerHTML;
  129. }
  130.  
  131. function OnSelectionChange(cItems, hItem, strName, strUrl, cVisits, strDate, fAvailableOffline)
  132. {
  133.     
  134.     if (cItems == -1)
  135.     {
  136.         BodyOnKeyPress(27);
  137.         return;
  138.     }
  139.  
  140.     
  141.     if (cItems == 0)
  142.     {
  143.         textProperties.innerHTML = "";
  144.         return;
  145.     }
  146.  
  147.     g_strUrl = strUrl;
  148.  
  149.     if (g_dxEllipses == 0)
  150.     {
  151.         spanMeasure.innerHTML = L_Ellipses_Text;
  152.         g_dxEllipses = spanMeasure.offsetWidth;
  153.         spanMeasure.innerHTML = "<B>" + L_Ellipses_Text + "</B>";
  154.         g_dxEllipsesBold = spanMeasure.offsetWidth;
  155.     }
  156.  
  157.     spanMeasure.innerHTML = "<B>" + strName + "</B>";
  158.     strNameShort = MeasureText(spanMeasure.innerText, true, textProperties.offsetWidth - 4);
  159.  
  160.     spanMeasure.innerHTML = strUrl;
  161.     strUrlShort = MeasureText(spanMeasure.innerText, false, textProperties.offsetWidth - 4);
  162.  
  163.     
  164.     spanMeasure.innerHTML = "";
  165.  
  166.     
  167.     var L_FavoritesFolder_Text = "╧α∩Ωα Φτß≡αφφεπε"; 
  168.     var L_ModifiedColon_Text = "╚τ∞σφσφ:"; 
  169.     
  170.     
  171.     if (cVisits != -1)
  172.     {
  173.         var strOffline = "";
  174.         
  175.         var L_MakeAvailableOffline_Text = "╤Σσδα≥ⁿ Σε±≥≤∩φ√∞ <U>α</U>Γ≥εφε∞φε"; 
  176.         var L_MakeAvailableOfflineAccesskey_Text = "α"; 
  177.         var L_Properties_Text = "╤Γε<U>Θ</U>±≥Γα"; 
  178.         var L_PropertiesAccesskey_Text = "Θ"; 
  179.  
  180.         if (g_fSubscriptionsEnabled && (strUrl.substring(0,4) == "http") )
  181.         {
  182.             strOffline = "<input type=checkbox align=";
  183.                         if(document.dir == "rtl")
  184.                         {
  185.                             strOffline +="right";
  186.                         }
  187.                         else
  188.                         {
  189.                             strOffline +="left";
  190.                         }
  191.                         strOffline +=" TABINDEX=5 ACCESSKEY=" + L_MakeAvailableOfflineAccesskey_Text + " id=chkOffline "
  192.             if (fAvailableOffline != 0)
  193.                 strOffline += "CHECKED"
  194.             strOffline += " onclick='ToggleOffline(this)' helpid=50486 helpfile='iexplore.hlp'><LABEL FOR=chkOffline TABINDEX=-1>" + L_MakeAvailableOffline_Text + "</LABEL>";
  195.             strOffline += "<BR><BR><BUTTON id=btnProperties TABINDEX=6 style='visibility: "
  196.             if (fAvailableOffline != 0)
  197.                 strOffline += "visible"
  198.             else
  199.                 strOffline += "hidden"
  200.  
  201.             strOffline += "' class=button ACCESSKEY=" + L_PropertiesAccesskey_Text + " onclick='Properties()' helpid=50489 helpfile='iexplore.hlp'>" + L_Properties_Text + "</BUTTON><BR>";
  202.         }
  203.  
  204.         var L_TimesVisited_Text = "╧ε±σ∙σφΦΘ: "; 
  205.         var L_LastVisited_Text = "╧ε±δ. ∩ε±σ∙σφΦσ: "; 
  206.         var L_LastVisitedNeedsLineBreak_Text = ""; 
  207.  
  208.         
  209.         var strTemp = strName + "\n" + strUrl;
  210.         var re = /'/g;
  211.         strTemp = strTemp.replace(re, "?");
  212.  
  213.  
  214.         textProperties.innerHTML = "<A TITLE='" + strTemp +"'><B>" + strNameShort + "</B><BR>" + strUrlShort +  "</A><BR>" + L_TimesVisited_Text + cVisits + "<BR>" + L_LastVisited_Text + L_LastVisitedNeedsLineBreak_Text + strDate + "<BR>" + strOffline;
  215.  
  216.  
  217.  
  218.     }
  219.     else
  220.     {
  221.         textProperties.innerHTML = "<B>" + strNameShort + "</B><BR>" + L_FavoritesFolder_Text + "<BR><BR>" +
  222.                                    "<B>" + L_ModifiedColon_Text + "</B><BR>" + strDate;
  223.     }
  224.  
  225.     
  226.     tdProperties.noWrap=true;
  227.     textProperties.noWrap=true;
  228. }
  229.  
  230. function EnableButtons()
  231. {
  232.  
  233.     g_fSubscriptionsEnabled = nsc.SubscriptionsEnabled;
  234.  
  235.  
  236.  
  237.  
  238.     var pszInitialDir = window.dialogArguments;
  239.  
  240.     if (pszInitialDir && (pszInitialDir.length > 0))
  241.     {
  242.         nsc.SetRoot(pszInitialDir);
  243.     }
  244.  
  245.     tdNsc.blur();
  246.     tdNewFolder.focus();
  247. }
  248.  
  249. function ToggleOffline(chkOffline)
  250. {
  251.  
  252.     if (chkOffline.checked)
  253.     {
  254.         
  255.         if (!nsc.CreateSubscriptionForSelection())
  256.             chkOffline.checked = false;
  257.         else 
  258.         {
  259.             g_rgUrlsToSynch[g_strUrl] = true;
  260.         }
  261.     }
  262.     else
  263.     {
  264.         if (!nsc.DeleteSubscriptionForSelection())
  265.             chkOffline.checked = true;
  266.         else 
  267.             delete g_rgUrlsToSynch[g_strUrl];
  268.     }
  269.     btnProperties.style.visibility = (chkOffline.checked ? "visible" : "hidden");
  270.  
  271. }
  272.  
  273. function BuildSynchList()
  274. {
  275.     window.returnValue = "";
  276.  
  277.     for (strUrl in g_rgUrlsToSynch)
  278.     {
  279.         window.returnValue += strUrl + "\0";
  280.     }
  281.  
  282. }
  283.  
  284. function Properties()
  285. {
  286.     nsc.InvokeContextMenuCommand("properties");
  287. }
  288.  
  289. function OnResize()
  290. {
  291.     
  292.     document.recalc(true);
  293. }
  294.  
  295. function TdNscWidth()
  296. {
  297.     return Math.max(0, document.body.offsetWidth - tableButtons.offsetWidth - (tableMain.border * 3) - (2 * parseInt(tdNsc.style.borderWidth)) - 6); 
  298. }
  299.  
  300. function TdPropertiesHeight()
  301. {
  302.     return Math.max(0, document.body.offsetHeight - (tableMain.border * 2) - tdProperties.offsetTop - tdDone.offsetHeight - 8);
  303. }
  304. </script>
  305.  
  306. </HEAD>
  307.  
  308.  
  309. <body style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; background: threedface; align: center" 
  310.       scroll="no" onkeydown="BodyOnKeyPress(event.keyCode)" onkeypress="BodyOnKeyPress(event.keyCode)" onload="EnableButtons()" onunload="BuildSynchList()" onresize="OnResize()">
  311.  
  312.  
  313.  
  314. <table id=tableMain cols=3 border=10 bordercolor=THREEDFACE>
  315.     <TR id=mainrow>
  316.         <TD valign=top id=infotext class=info>
  317.             ╫≥εß√ ±ετΣα≥ⁿ φεΓ≤■ ∩α∩Ω≤, φαµ∞Φ≥σ Ωφε∩Ω≤ "╤ετΣα≥ⁿ ∩α∩Ω≤". ╫≥εß√ ≤ΣαδΦ≥ⁿ ΦδΦ ∩σ≡σ∞σ±≥Φ≥ⁿ εß·σΩ≥, Γ√ΣσδΦ≥σ σπε Φ φαµ∞Φ≥σ Ωφε∩Ω≤ "╙ΣαδΦ≥ⁿ" ΦδΦ "╧σ≡σ∞σ±≥Φ≥ⁿ".
  318.         </TD>
  319.         <TD id=tdColSpacing width=0>
  320.         </TD>
  321.         <TD id=tdNscHolder rowspan=3 height=100%>
  322.             <TABLE cols=1 width=100% height=100%>
  323.                 <TD id=tdNsc style="height:100%; border:2px inset WINDOW;">
  324.                     <object id=nsc TABINDEX=10 title="╤∩Φ±εΩ Φτß≡αφφεπε" accesskey="σ"
  325.                         style="background:window; HEIGHT=100%; WIDTH=100%" 
  326.                         CLASSID='clsid:55136805-B2DE-11D1-B9F2-00A0C98BC547' 
  327.                         onkeypress="BodyOnKeyPress(event.keyCode)" 
  328.                         helpid=50490 
  329.                         helpfile="iexplore.hlp">
  330.                     </OBJECT>
  331.                 </TD>
  332.             </TABLE>
  333.         </TD>
  334.     </TR>
  335.     <TR id=rowButtons>
  336.         <TD>
  337.             <table id=tableButtons cols=2 width=200>
  338.                 <tr height=20>
  339.                     <TD align=center width=50%>
  340.                         <BUTTON id=tdNewFolder TABINDEX=1 style="width: 9em;" ACCESSKEY=± class=button onclick="nsc.NewFolder(); event.returnValue = false" helpid=50484 helpfile="iexplore.hlp">
  341.                             <U>╤</U>ετΣα≥ⁿ ∩α∩Ω≤
  342.                         </BUTTON>
  343.                     </TD>
  344.                     <TD align=center width=50%>
  345.                         <BUTTON id=tdRename    TABINDEX=2 style="width: 9em;" ACCESSKEY=σ class=button onclick="nsc.InvokeContextMenuCommand('rename'); event.returnValue = false" helpid=50007 helpfile="iexplore.hlp">
  346.                             ╧<U>σ</U>≡σΦ∞σφεΓα≥ⁿ
  347.                         </BUTTON>
  348.                     </TD>
  349.                 </tr>
  350.                 <tr height=20>
  351.                     <td width=50% align=center>
  352.                         <BUTTON id=tdMoveTo    TABINDEX=3 style="width: 9em;" ACCESSKEY=∞ class=button onclick="nsc.MoveSelectionTo(); event.returnValue = false" helpid=50006 helpfile="iexplore.hlp">
  353.                             ╧σ≡σ<U>∞</U>σ±≥Φ≥ⁿ...
  354.                         </BUTTON>
  355.                     </td>
  356.                     <td width=50% align=center>
  357.                         <BUTTON id=tdDelete    TABINDEX=4 style="width: 9em;" ACCESSKEY=≤ class=button onclick="nsc.InvokeContextMenuCommand('delete'); event.returnValue = false" helpid=50008 helpfile="iexplore.hlp">
  358.                             <U>╙</U>ΣαδΦ≥ⁿ
  359.                         </BUTTON>
  360.                     </td>
  361.                 </tr>
  362.             </table>
  363.         </TD>
  364.     </TR>
  365.     <TR id=rowProperties vAlign=top style="padding-left:1px; padding-right:0px">
  366.         <TD id=tdProperties style="border-width:2px; margin-left:5px; margin-top:5px; margin-right:5px;" vAlign=top>
  367.             <DIV id=textProperties class=info style="border-width:2px; border-style:groove; border-color:window; width:100%; height:expression(Math.max(0, tdProperties.offsetHeight - (2 * parseInt(tdProperties.style.borderWidth)))); overflow:hidden; nowrap:true; position:absolute;">
  368.                 ┬√ßσ≡Φ≥σ Φτß≡αφφεσ Σδ  ∩≡ε±∞ε≥≡α σπε ±ΓεΘ±≥Γ ΦδΦ Σδ  φα±≥≡εΘΩΦ σπε Σδ  αΓ≥εφε∞φεπε ∩≡ε±∞ε≥≡α.
  369.             </DIV>
  370.         </TD>
  371.     </TR>
  372.     <TR id=rowCloseButton>
  373.         <TD id= cellCloseButton colspan=3 align=right>
  374.             <BUTTON id=tdDone TABINDEX=11 style="width: 9em;" ACCESSKEY=τ class=button onclick="window.close();" helpid=50010 helpfile="iexplore.hlp">
  375.                 <U>╟</U>αΩ≡√≥ⁿ
  376.             </BUTTON>
  377.         </TD>
  378.     </TR>
  379. </table>
  380.  
  381.  
  382. <SPAN id=spanMeasure style="visibility:hidden;" class=info></SPAN>
  383.  
  384. <script defer for=nsc event="FavoritesSelectionChange(cItems, hItem, strName, strUrl, cVisits, strDate, fAvailableOffline)">
  385.     OnSelectionChange(cItems, hItem, strName, strUrl, cVisits, strDate, fAvailableOffline);
  386. </script>
  387.  
  388. <script defer>
  389.  
  390.     tdNscHolder.style.setExpression("width", "TdNscWidth()");
  391.     rowProperties.style.setExpression("height", "TdPropertiesHeight()"); 
  392. </script>
  393.  
  394.  
  395. </BODY>
  396. </HTML>
  397.