⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opencms_piclist.js

📁 cms是开源的框架
💻 JS
字号:
/*
* File   : $Source: /usr/local/cvs/opencms/etc/ocsetup/vfs/system/workplace/templates/js/opencms_piclist.js,v $
* Date   : $Date: 2001/07/31 15:50:12 $
* Version: $Revision: 1.4 $
*
* This library is part of OpenCms -
* the Open Source Content Mananagement System
*
* Copyright (C) 2001  The OpenCms Group
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
*
* For further information about OpenCms, please see the
* OpenCms Website: http://www.opencms.org 
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

// ===============================================
// JAVASCRIPT-FUNCTIONS OPENCMS
//
// Invokes servlet calls in Picture Browser:
// based on script from old cms version
//
// author:          m.schreiber
// company:         mindfact interaktive medien ag
// date:            08.02.2000
// update:      
// update author:   
// ===============================================


function updateSelection()
{
    if(document.form1.galerie.options[document.form1.galerie.selectedIndex].value)
    {
        top.selectedGallery = document.form1.galerie.selectedIndex;
        parent.frames[1].location.href=document.form1.galerie.options[document.form1.galerie.selectedIndex].value;
    }
}

function getSelection()
{
    //document.form1.galerie.selectedIndex = top.selectedGallery;
}


var DO_NEXT=1;
var DO_PREV=2;
var DO_SEARCH=3;
var DO_UPLOAD=4;


<!-- The update flag is set by the upload dialog. When it is set to one, the picture -->
<!-- list is reloaded (after a new image was added) -->

if (0 == 1)
{
 alert ("Update Flag gesetzt: Seite neu laden!");
 //parent.frames[1].location.href="#"+filter;
}


<!-- Main processing function, evaluates which button is pressed and activates the -->
<!-- according action -->

function doEdit(para)
{
 switch (para)
 {
  case 1: // next page
  {
    //if (parent.frames[0].document.EOL !=true)  // no more pages available? Get this information from the picture list frame.
    if (page < maxpage)
     {
      page++; // increase page number
      filter=document.form1.FilterInput.value;
      //alert("Servlet: N鋍hste Seite der Galerie laden");
      parent.location.href = "picturebrowser.html?page="+page+"&filter="+filter; //reload complete picture browser
     }
    break;
  }
  case 2: // next page
  {
//    if (parent.frames[0].document.BOL !=true)
//     {
//      page--;
    page--;  //decrease page number
    if (page<1)  // already on first page?
     {
      page=1;
     }
    else
     {
      filter=document.form1.FilterInput.value;
      //alert("Servlet: Vorhergehende Seite der Galerie laden");
      parent.location.href = "picturebrowser.html?page="+page+"&filter="+filter; //reload complete picture browser
     }
    break;
   }
   case 3: // calls a servlet which does a full-text search on image-title and filename.
   {
     filter=document.form1.FilterInput.value;
     //alert("Servlet: 躡er Titel oder Dateiname suchen");
      parent.location.href = "picturebrowser.html?page=1&filter="+filter; //reload complete picture browser
     break;
   }
   case 4: // upload image, open the upload dialog.
   {
     alert("Not implemented!");
     break;
   }
   default:
   {
        alert("Unknown Exception");
   }
 }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -