1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- default1.0 by Arie Nugraha & Senayan Developers Team http://senayan.diknas.go.id Do not remove this comment for appreciation reason. If you modify this template for your own need, just add "This template has been modified by your_name_here" --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"><head><title><?php echo $page_title; ?></title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="icon" href="webicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="webicon.ico" type="image/x-icon" /> <link href="template/core.style.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $sysconf['template']['css']; ?>" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/form.js"></script> <script type="text/javascript" src="js/gui.js"></script> <?php echo $metadata; ?> </head> <body> <table id="main" cellpadding="0" cellspacing="0"> <!-- main menu --> <tr> <td id="mainMenu" colspan="2"> <ul id="menuList"> <li><a class="menu" href="index.php"><?php echo __('Home'); ?></a></li> <li><a class="menu" href="index.php?p=libinfo"><?php echo __('Library Information'); ?></a></li> <li><a class="menu" href="index.php?p=help"><?php echo __('Help on Search'); ?></a></li> <li><a class="menu" href="index.php?p=member"><?php echo __('Member Area'); ?></a></li> <li><a class="menu" href="index.php?p=login"><?php echo __('Librarian LOGIN'); ?></a></li> </ul> </td> </tr> <!-- main menu end --> <!-- header --> <tr> <td id="mainHeader" colspan="2"><div id="headerImage"> </div> <div id="libraryName"><?php echo $sysconf['library_name']; ?> <div id="librarySubName"><?php echo $sysconf['library_subname']; ?></div> </div> </td> </tr> <!-- header end --> <!--body--> <tr> <!-- sidepan --> <td id="sidepan" valign="top"> <!-- language selection --> <div class="heading"><?php echo __('Select Language'); ?></div> <form name="langSelect" action="index.php" method="get"> <select name="select_lang" style="width: 99%;" onchange="document.langSelect.submit();"> <?php echo $language_select; ?> </select> </form> <!-- language selection end --> <!-- simple search --> <div class="heading"><?php echo __('Simple Search'); ?></div> <form name="simpleSearch" action="index.php" method="get"> <input type="text" name="keywords" style="width: 99%;" /><br /> <input type="submit" name="search" value="<?php echo __('Search'); ?>" class="button marginTop" /> </form> <!-- simple search end --> <!-- advanced search --> <div class="heading"><?php echo __('Advanced Search'); ?></div> <form name="advSearchForm" id="advSearchForm" action="index.php" method="get"> <?php echo __('Title'); ?> : <input type="text" name="title" class="ajaxInputField" /><br /> <?php echo __('Author(s)'); ?> : <?php echo $advsearch_author; ?><br /> <?php echo __('Subject(s)'); ?> : <?php echo $advsearch_topic; ?><br /> <?php echo __('ISBN/ISSN'); ?> : <input type="text" name="isbn" class="ajaxInputField" /><br /> <?php echo __('GMD'); ?> : <select name="gmd" class="ajaxInputField" /> <?php echo $gmd_list; ?> </select> <?php echo __('Collection Type'); ?> : <select name="colltype" class="ajaxInputField" /> <?php echo $colltype_list; ?> </select> <?php echo __('Location'); ?> : <select name="location" class="ajaxInputField" /> <?php echo $location_list; ?> </select> <br /> <input type="submit" name="search" value="<?php echo __('Search'); ?>" class="button marginTop" /> <!-- <input type="button" value="More Options" onclick="" class="button marginTop" /> --> </form> <!-- advanced search end --> <!-- license --> <div class="heading">License</div> <p> This Software is Released Under <a href="http://www.gnu.org/copyleft/gpl.html" title="GNU GPL License" target="_blank">GNU GPL License</a> Version 3. </p> <!-- license end --> <!-- award --> <div class="heading">Award</div> <p align="center"> The Winner in the Category of OSS <img src="template/default/media/logo-inaicta.png" alt="Indonesia ICT Award 2009" border="0" /> <br /> </p> <!-- award --> <!-- w3c validate --> <div class="heading">Validated</div> <p align="center"> <a href="http://validator.w3.org/check?uri=referer"><img src="template/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" border="0" /></a> <br /> <img src="template/valid-css.png" alt="Valid CSS" /> </p> <!-- w3c validate end --> </td> <!-- main menu end --> <!-- main content --> <td id="mainContent" valign="top"> <?php echo $header_info; ?> <div id="infoBox"><?php echo $info; ?></div> <!-- slideshow --> </style> <script language="javascript" src="js/jquery.js"></script> <script language="javascript"> /* parameter untuk menjalankan fungsi openContent ini adalah 1. Element trigger (link) yang akan membuka content apabila di click 2. Id dari content yang akan ditampilkan */ /* Update 08 Maret 2009 -> Slideshow diberikan animasi otomatis berpindah-pindah content */ // siapkan variable timer yang akan menyimpan fungsi animasi var timer = null; function openContent(trigger,divID){ // semua link pada div dengan id='divTrigger' akan di setarakan style-nya menjadi style normal $('#divTrigger a').each( function(){ $(this).css({'background-color':'#FFF','color':'#000'}); } ); // semua div di dalam element dengan id='divContent' disembunyikan $('#divContent div').hide(); // div yang akan ditampilkan diberi efek fadeIn (built-in dari JQuery) ketika ditampilkan $('#'+divID).fadeIn('slow'); // link menjadi trigger diberi style berbeda dengan link lainnya agar dapat diketahui content nomor berapa yang sedang aktif $(trigger).css({'background-color':'#00A','color':'#FFF'}); // Update 08 Maret 2009 // timer di set if(timer != null) clearTimeout(timer); timer = setTimeout( function(){ /* Cek terlebih dahulu apakah link yang sedang di-click saat ini ada link lagi setelah itu apabila tidak ada link lagi setelah element yang sedang di-click maka pilih element link pertama dengan selector ':first' dari jquery. Setelah sudah ditentukan link, maka lakukan event click pada link tersebut. Setiap link yang di click akan menjalankan fungsi ini sehingga terjadi animasi perpindahan content slideshow. */ var nextAnchor = ($(trigger).next('a').text() == '') ? $('#divTrigger a:first') : $(trigger).next('a'); nextAnchor.click(); }, 3000 // 3 detik waktu perpindahan content ); } $(document).ready( function(){ // untuk permulaan, tampilkan content nomor pertama '#firstSlide' adalah id dari trigger yang akan membuka content nomor pertama openContent($('#firstSlide'),'div1'); } ) </script> <div id="divTrigger"> <a href="javascript:;" onClick="openContent(this,'div1')" id="firstSlide">1</a> <a href="javascript:;" onClick="openContent(this,'div2')">2</a> <a href="javascript:;" onClick="openContent(this,'div3')">3</a> <a href="javascript:;" onClick="openContent(this,'div4')">4</a> <a href="javascript:;" onClick="openContent(this,'div5')">5</a> </div> <div id="divContent"> <div id="div1"> <img src="slideshow/img7.png" align="center" /> </div> <div id="div2"> <img src="slideshow/img5.png" align="center" /> </div> <div id="div3"> <img src="slideshow/img4.png" align="center" /> </div> <div id="div4"> <img src="slideshow/img3.png" align="center" /> </div> <div id="div5"> <img src="slideshow/img6.png" align="center" /> </div> </div> <!-- end of slideshow --> <?php echo $main_content; ?> <br /> </td> <!-- main content end --> </tr> <!--body end--> </table> </body> </html> |
Direct link: https://paste.plurk.com/show/275293