📄 phpmylibrary.php
字号:
<?php
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
///
/// PhpMyLibrary is a Php-MySQL driven online library automation, it
/// offers cataloging, circulation, and web public access catalog.
///
/// Copyright (C) 2000 Polerio T. Babao Jr. II
///
/// This program is free software; you can redistribute it and/or modify
/// it under the terms of the GNU General Public License as published by
/// the Free Software Foundation; either version 2 of the License, or
/// (at your option) any later version.
///
/// This program 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 General Public License for more details.
///
/// You should have received a copy of the GNU General Public License
/// along with this program; if not, write to the Free Software
/// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
///
/// Refer to http://phpmylibrary.sourceforge.net/phpmylibrary for an online
/// demonstration of the phpmylibrary online application program.
///
/// Modified 21 December 17, 2002 01:25p GMT+8
/// Copy of license at http://phpmylibrary.sourceforge.net/LICENSE
/// http://www.phpmylibrary.n3.net or http://phpmylibrary.sourceforge.net
/// Polerio T. Babao Jr.II http://www.polerio.n3.net
/// 43-A Bagong Lote, Potrero Malabon, Metro Manila Philippines.
///
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
$blocks_modules['phpmylibrary'] = array(
'func_display' => 'blocks_phpmylibrary_block',
'text_type' => 'Polerio',
'text_type_long' => 'PhpMyLibrary',
'allow_multiple' => false,
'form_content' => false,
'form_refresh' => false,
// 'support_xhtml' => true,
'show_preview' => true
);
pnSecAddSchema('Phpmylibraryblock::', 'Block title::');
function blocks_phpmylibrary_block($row)
{
global $name;
// include "modules/$name/polerio/phpmylibrary/lib/Phpmylibary.php";
if (empty($row['title'])) {
$row['title'] = "Library Menu";
}
$url = 'modules.php?op=modload&name=PhpMyLibrary&file=index';
$user = pnSessionGetVar('uid');
if($user<=1) {
$content = "<strong><big>· </big></strong><a href=\"".$url."\">WebOPAC</a><br>";
} elseif($user==2) {
$content = "<strong><big>· </big></strong><a href=\"".$url."\">WebOPAC</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&div=usr&acc=pub&q=mya\">My Account</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&div=usr&acc=priv&q=man\">User Admin</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&div=tra&acc=priv&q=man\">Transaction</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&_a=1\">Import MARC</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&_a=2\">Cataloging</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&_a=pgs\">polGenSQL</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&my_content=1&fcontent=documentation.txt\">Documentation</a><br>";
} elseif($user>=3) {
$content = "<strong><big>· </big></strong><a href=\"".$url."\">WebOPAC</a><br>";
$content .= "<strong><big>· </big></strong><a href=\"".$url."&div=usr&acc=pub&q=mya\">My Account</a><br>";
}
$row['content'] = $content;
return themesideblock($row);
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -