left.js

Go to the documentation of this file.
00001 // -*-C-*-
00002 /*
00003   This file is part of  DocBookWiki.  DocBookWiki is a web application
00004   that displays and edits DocBook documents.
00005 
00006   Copyright (C) 2004, 2005, 2006, 2007
00007   Dashamir Hoxha, dashohoxha@users.sourceforge.net
00008 
00009   DocBookWiki is free software;  you can redistribute it and/or modify
00010   it under the terms of the GNU General Public License as published by
00011   the Free  Software Foundation; either  version 2 of the  License, or
00012   (at your option) any later version.
00013 
00014   DocBookWiki is distributed  in the hope that it  will be useful, but
00015   WITHOUT  ANY   WARRANTY;  without  even  the   implied  warranty  of
00016   MERCHANTABILITY or  FITNESS FOR A  PARTICULAR PURPOSE.  See  the GNU
00017   General Public License for more details.
00018 
00019   You should  have received a copy  of the GNU  General Public License
00020   along  with  DocBookWiki;  if   not,  write  to  the  Free  Software
00021   Foundation, Inc., 59 Temple  Place, Suite 330, Boston, MA 02111-1307
00022   USA
00023 */
00024 
00025 function edit_menu1(visible)
00026 {
00027   SendEvent('main','edit_menu');
00028 }
00029 
00030 function search1()
00031 {
00032   var form = document.form_search;
00033   var words = form.search_words.value;
00034   SendEvent('main', 'search', 'words='+words);
00035 }
00036 
00037 function get_tar_gz(format)
00038 {
00039   var book_id = session.getVar('docbook->book_id');
00040   var lng = session.getVar('docbook->lng');
00041   var url = 'content/downloads/tar_gz/' + book_id + '/' + lng + '/'
00042     + book_id + '.' + lng + '.' + format + '.tar.gz';
00043   window.location = url;
00044 }
00045 
00046 function get_xml()
00047 {
00048   var book_id = session.getVar('docbook->book_id');
00049   var lng = session.getVar('docbook->lng');
00050   var url = 'content/downloads/formats/' + book_id + '/' + lng + '/xml/'
00051     + book_id + '.' + lng + '.xml';
00052   window.location = url;
00053 }
00054 
00055 function get_tex()
00056 {
00057   var book_id = session.getVar('docbook->book_id');
00058   var lng = session.getVar('docbook->lng');
00059   var url = 'content/downloads/formats/' + book_id + '/' + lng + '/tex/'
00060     + book_id + '.' + lng + '.dblatex.tex';
00061   window.location = url;
00062 }
00063 
00064 function get_pdf()
00065 {
00066   var book_id = session.getVar('docbook->book_id');
00067   var lng = session.getVar('docbook->lng');
00068   var url = 'content/downloads/formats/' + book_id + '/' + lng + '/pdf/'
00069     + book_id + '.' + lng + '.dblatex.pdf';
00070   window.location = url;
00071 }
00072 
00073 function get_html1()
00074 {
00075   var book_id = session.getVar('docbook->book_id');
00076   var lng = session.getVar('docbook->lng');
00077   var url = 'content/downloads/formats/' + book_id + '/' + lng + '/html1/' 
00078     + book_id + '.' + lng + '.xslt/' + book_id + '.' + lng + '.xslt.html';
00079   var html1 = window.open(url);
00080 }
00081 
00082 function get_txt()
00083 {
00084   var book_id = session.getVar('docbook->book_id');
00085   var lng = session.getVar('docbook->lng');
00086   var url = 'content/downloads/formats/' + book_id + '/' + lng 
00087     + '/txt/' + book_id + '.' + lng + '.xmlto.txt';
00088   var html1 = window.open(url);
00089 }

Generated on Wed Jan 9 08:27:32 2008 for DokBookWiki by  doxygen 1.5.2