Develop and Download Open Source Software

Browse CVS Repository

Contents of /xoonips-library/IRview/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Nov 6 01:29:26 2006 UTC (17 years, 5 months ago) by yamaji
Branch point for: MAIN
File MIME type: application/x-httpd-php
Initial revision

1 <?php
2 // $Revision: 1.3 $ //
3 // ------------------------------------------------------------------------ //
4 // //
5 // OAI-PMH based Institutional Repository Introduction Module //
6 // Copyright (C) 2005 Kazutsuna YAMAJI. All rights reserved. //
7 // //
8 // ------------------------------------------------------------------------ //
9 // This program is free software; you can redistribute it and/or modify //
10 // it under the terms of the GNU General Public License as published by //
11 // the Free Software Foundation; either version 2 of the License, or //
12 // (at your option) any later version. //
13 // //
14 // You may not change or alter any portion of this comment or credits //
15 // of supporting developers from this source code or any supporting //
16 // source code which is considered copyrighted (c) material of the //
17 // original comment or credit authors. //
18 // //
19 // This program is distributed in the hope that it will be useful, //
20 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
22 // GNU General Public License for more details. //
23 // //
24 // You should have received a copy of the GNU General Public License //
25 // along with this program; if not, write to the Free Software //
26 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
27 // ------------------------------------------------------------------------ //
28
29 include 'header.php';
30 /*
31 */
32 // this page uses smarty template
33 // this must be set before including main header.php
34 $xoopsOption['template_main'] = 'irview_index.html';
35 include XOOPS_ROOT_PATH.'/header.php';
36
37 $xoopsTpl->assign('lang_title', _XD_TITLE);
38 //
39 // Extract the active repository data from the irview_repositories table
40 $table_repo = $xoopsDB->prefix( 'irview_repositories' );
41 $sql = "SELECT repo.repository_id, repo.repository_name, repo.URL, repo.metadata_formats FROM ${table_repo} AS repo WHERE repo.enabled=1 AND repo.deleted!=1 ORDER BY repo.repository_id";
42 $result = $xoopsDB->query( $sql );
43
44 while($row = $xoopsDB->fetchRow( $result )){
45 $repo_id[] = (int)$row[0];
46 $repo_name[] = $row[1];
47 $repo_url[] = $row[2];
48 $repo_formats[] = $row[3];
49 }
50 //
51 //
52 $xoopsTpl->assign( 'repo_id' , $repo_id );
53 $xoopsTpl->assign( 'repo_name' , $repo_name );
54 $xoopsTpl->assign( 'repo_url' , $repo_url );
55 $xoopsTpl->assign( 'repo_formats', $repo_formats );
56
57 include XOOPS_ROOT_PATH.'/footer.php';
58 ?>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26