<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" i18n:domain="tinymce">
<head>
  <title i18n:translate="plonelink_dlg_title"></title>
  <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
  <script type="text/javascript" src="../../utils/mctabs.js"></script>
  <script type="text/javascript" src="../../utils/form_utils.js"></script>
  <script type="text/javascript" src="js/plonelink.js"></script>
  <link rel="stylesheet" type="text/css" href="css/plonelink.css" />

</head>
<body id="plonelink" class="icons-on"
  tal:define="portal_url context/portal_url">
  <div class="dialog-wrapper" id="content">
    <ul class="formTabs"><li id="general_tab" class="formTab firstFormTab"><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;" class="selected"><span i18n:translate="plonelink_dlg_general_tab"></span></a></li><li id="advanced_tab" class="formTab lastFormTab"><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;"><span i18n:translate="plonelink_dlg_advanced_tab"></span></a></li></ul>

    <fieldset id="general_panel" class="formPanel">
      <div id="internalpath" class="formHelp"></div>
      <form>
        <input type="hidden" name="href" id="href"/>
        <fieldset class="column columnlibraries">
          <legend i18n:domain="plone.tinymce" i18n:translate="">Libraries</legend>
                <ul class="configlets">
                    <li id="home">
              <a href="javascript:displayPanel('internal_panel'); getFolderListing(tinyMCEPopup.editor.settings.navigation_root_url, 'tinymce-jsonlinkablefolderlisting');">
                  <img alt="" tal:attributes="src string:$portal_url/logoIcon.gif"/> <span i18n:domain="plone.tinymce" i18n:translate="">Home</span>
              </a>
            </li>
                    <li>
              <a href="javascript:displayPanel('internal_panel'); getCurrentFolderListing();">
                  <img alt="" tal:attributes="src string:$portal_url/site_icon.gif"/> <span i18n:domain="plone.tinymce" i18n:translate="">Current Folder</span>
              </a>
            </li>
                    <!-- li>
              <a href="javascript:displayPanel('internal_panel');">
                  <img alt="" tal:attributes="src string:$portal_url/popup_calendar.gif"/> <span i18n:domain="plone.tinymce" i18n:translate="">Recent Items</span>
              </a>
            </li -->
                    <li>
              <a href="javascript:displayPanel('external_panel');">
                      <img alt="" tal:attributes="src string:$portal_url/link_icon.gif"/> <span i18n:domain="plone.tinymce" i18n:translate="">External</span>
                        </a>
                    </li>
                    <li>
              <a href="javascript:displayPanel('mail_panel');">
                      <img alt="" tal:attributes="src string:$portal_url/mail_icon.gif"/> <span i18n:domain="plone.tinymce" i18n:translate="">Mail</span>
                        </a>
                    </li>
                    <li>
              <a href="javascript:displayPanel('anchors_panel');">
                      <img alt="" tal:attributes="src string:$portal_url/arrowBottom.gif"/> <span i18n:domain="plone.tinymce" i18n:translate="">Anchors</span>
                        </a>
                    </li>
                </ul>
                <div class="field">
                  <label for="searchtext" i18n:domain="plone.tinymce" i18n:translate="">Search</label>
                  <div class="widget">
                    <input type="text" name="searchtext" id="searchtext" value="" onkeyup="checkSearch(event);" size="12"/>
                    <input type="button" value="Search" i18n:domain="plone.tinymce" i18n:attributes="value" class="searchButton" onclick="getFolderListing(tinyMCEPopup.editor.settings.navigation_root_url, 'tinymce-jsonlinkablesearch');"/>
                  </div>
                </div>
        </fieldset>

        <fieldset id="internal_panel" class="subPanel column">
          <legend i18n:domain="plone.tinymce" i18n:translate="">Internal link</legend>
          <div class="field">
            <label for="internallink" i18n:translate="plonelink_dlg_list"></label>
            <div class="uponelevel"><a id="uponelevel" class="link-parent" href="javascript:void(0)" i18n:domain="plone.tinymce" i18n:translate="">Up one level</a></div>
            <div id="internallinkcontainer" class="widget radioscrolllist input-border">
            </div>
            <input type="button" id="upload" class="context" name="upload" value="Upload file" i18n:domain="plone.tinymce" i18n:attributes="value" onclick="displayPanel('upload_panel');" />
          </div>
        </fieldset>

        <fieldset id="internal_details_panel" class="subPanel column">
          <legend>Details</legend>
          <div class="field">
            <label id="internal_details_title"></label>
            <p id="internal_details_description"></p>
          </div>
          <div class="field">
            <label id="pageanchorlabel" for="pageanchor"  i18n:translate="plonelink_dlg_anchor_names"></label>
            <div class="widget" id="pageanchorcontainer" >
              <select id="pageanchor" name="pageanchor">
                <option value="">top of page (default)</option>
              </select>
            </div>
          </div>
        </fieldset>

        <fieldset id="external_panel" class="subPanel column">
          <legend i18n:domain="plone.tinymce" i18n:translate="">External link</legend>
          <div class="field">
            <label for="externalurl" i18n:translate="plonelink_dlg_url"></label>
            <div class="widget">
              <select id="externalurlprefix" name="externalurlprefix">
                <option value="http://">http://</option>
                <option value="https://">https://</option>
                <option value="ftp://">ftp://</option>
              </select>
              <input type="text" name="externalurl" id="externalurl" value="" onkeyup="checkExternalUrl();" size="30"/>
              <input type="button" id="preview" class="context" name="preview" value="Preview" i18n:domain="plone.tinymce" i18n:attributes="value" onclick="previewExternalLink();" />
            </div>
          </div>

          <div class="field">
            <label for="preview" i18n:translate="preview_preview_desc"></label>
            <div class="widget">
              <iframe width="100%" height="242" frameborder="0" wrap="soft" dir="ltr" src="" class="input-border" name="previewexternal" id="previewexternal"></iframe>
            </div>
          </div>
        </fieldset>

        <fieldset id="mail_panel" class="subPanel column">
          <legend i18n:domain="plone.tinymce" i18n:translate="">Mail</legend>
          <div class="field">
            <label for="mailaddress" i18n:domain="plone.tinymce" i18n:translate="">E-mail</label>
            <div class="widget">
              <input type="text" name="mailaddress" id="mailaddress" value="" size="30" />
            </div>
          </div>

          <div class="field">
            <label for="mailsubject" i18n:domain="plone.tinymce" i18n:translate="">Subject</label>
            <div class="widget">
              <input type="text" name="mailsubject" id="mailsubject" value="" size="30" />
            </div>
          </div>
        </fieldset>

        <fieldset id="anchors_panel" class="subPanel column">
          <legend i18n:domain="plone.tinymce" i18n:translate="">Link to anchor</legend>
          <div class="field">
            <label i18n:translate="plonelink_dlg_anchor_names"></label>
            <div id="anchorlinkcontainer" class="widget radioscrolllist input-border">
            </div>
          </div>
        </fieldset>
      </form>

      <fieldset id="upload_panel" class="subPanel column">
        <legend i18n:domain="plone.tinymce" i18n:translate="">Upload file</legend>
        <form name="upload_form" id="upload_form" method="post" target="upload_iframe" enctype="multipart/form-data">
          <div class="field">
            <label for="uploadfile" i18n:domain="plone.tinymce" i18n:translate="">File</label>
            <div class="widget">
              <input type="file" name="uploadfile" id="uploadfile" value="" size="15" />
            </div>
          </div>

          <div class="field">
            <label for="uploadtitle" i18n:translate="plonelink_dlg_titlefield"></label>
            <div class="widget">
              <input type="text" name="uploadtitle" id="uploadtitle" value="" size="25" />
            </div>
          </div>

          <div class="field">
            <label for="uploaddescription" i18n:domain="plone.tinymce" i18n:translate="">Description</label>
            <div class="widget">
              <textarea wrap="soft" cols="10" rows="6" id="uploaddescription" name="uploaddescription"></textarea>
            </div>
          </div>

          <input type="button" id="uploadbutton" class="context" name="uploadbutton" value="Upload" i18n:domain="plone.tinymce" i18n:attributes="value" onclick="document.forms[1].submit();"/>
        </form>
        <iframe width="0" scrolling="off" height="0" frameborder="0" id="upload_iframe" name="upload_iframe" src="javascript:''"></iframe>
      </fieldset>
    </fieldset>

    <fieldset id="advanced_panel" class="formPanel">
      <form>
        <div class="field">
          <label id="targetlistlabel" for="targetlist" i18n:translate="plonelink_dlg_target"></label>
          <div class="widget">
            <select id="targetlist" name="targetlist" onchange="setPopupVisibility();">
              <option value="_self" i18n:translate="plonelink_dlg_target_same"></option>
              <option value="_blank" i18n:translate="plonelink_dlg_target_blank"></option>
              <option value="_parent" i18n:translate="plonelink_dlg_target_parent"></option>
              <option value="_top" i18n:translate="plonelink_dlg_target_top"></option>
              <!--option value="popup" i18n:translate="plonelink_dlg_popup"></option-->
            </select>
          </div>
        </div>

        <fieldset id="popup_panel">
          <legend i18n:translate="plonelink_dlg_popup"></legend>
          <div class="column">
            <div class="field">
              <label for="popupname" i18n:translate="plonelink_dlg_popup_name"></label>
              <div class="widget">
                <input type="text" name="popupname" id="popupname" value="" size="20" />
              </div>
            </div>

            <div class="field">
              <label i18n:translate="plonelink_dlg_popup_size"></label>
              <div class="widget">
                <input type="text" id="popupwidth" name="popupwidth" value="" size="4" /> x
                <input type="text" id="popupheight" name="popupheight" value="" size="4" /> px
              </div>
            </div>

            <div class="field">
              <label i18n:translate="plonelink_dlg_popup_position"></label>
              <div class="widget">
                <input type="text" id="popupleft" name="popupleft" value="" size="4" /> /
                <input type="text" id="popuptop" name="popuptop" value="" size="4" /> (c / c = center)
              </div>
            </div>
          </div>

          <div class="column">
            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" />
                <label id="popuplocationlabel" for="popuplocation" i18n:translate="plonelink_dlg_popup_location"></label>
              </div>
            </div>

            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" />
                <label id="popupscrollbarslabel" for="popupscrollbars" i18n:translate="plonelink_dlg_popup_scrollbars"></label>
              </div>
            </div>

            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" />
                <label id="popupmenubarlabel" for="popupmenubar" i18n:translate="plonelink_dlg_popup_menubar"></label>
              </div>
            </div>

            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" />
                <label id="popupresizablelabel" for="popupresizable" i18n:translate="plonelink_dlg_popup_resizable"></label>
              </div>
            </div>
          </div>

          <div class="column">
            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" />
                <label id="popuptoolbarlabel" for="popuptoolbar" i18n:translate="plonelink_dlg_popup_toolbar"></label>
              </div>
            </div>

            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" />
                <label id="popupdependentlabel" for="popupdependent" i18n:translate="plonelink_dlg_popup_dependent"></label>
              </div>
            </div>

            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" />
                <label id="popupstatuslabel" for="popupstatus" i18n:translate="plonelink_dlg_popup_statusbar"></label>
              </div>
            </div>

            <div class="field">
              <div class="widget">
                <input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" checked="checked" />
                <label id="popupreturnlabel" for="popupreturn" i18n:translate="plonelink_dlg_popup_return"></label>
              </div>
            </div>
          </div>
        </fieldset>

        <div class="field">
          <label for="title" i18n:domain="plone.tinymce" i18n:translate="">Title</label>
          <div class="widget">
            <input type="text" name="title" id="title" value="" size="30" />
          </div>
        </div>
      </form>
    </fieldset>

    <div class="visualClear"><!-- --></div>

      <form onsubmit="insertAction();return false;" action="#">
      <div class="mceActionPanel formControls">
        <span class="actionButtons">
          <input type="submit" id="insert" class="context" name="insert" i18n:attributes="value common_insert" />
          <input type="button" id="cancel" class="standalone" name="cancel" i18n:attributes="value common_cancel" onclick="tinyMCEPopup.close();" />
        </span>
      </div>
    </form>
  </div>
</body>
</html>
