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

📄 admin.odtindexer.html.php

📁 joomla的图片功能插件,能够有很多图片特效功能
💻 PHP
字号:
<?php/*** @package ODT_Indexer* @copyright (C) 2006 Websmurf* @author Websmurf* * --------------------------------------------------------------------------------* All rights reserved.  ODT Indexer is a component for Joomla and Mambo. * You can use it to search through ODT files** This program is free software; you can redistribute it and/or* modify it under the terms of the Creative Commons - Attribution-NoDerivs 2.5 * license as published by the Creative Commons Organisation* http://creativecommons.org/licenses/by-nd/2.5/.** 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.  * --------------------------------------------------------------------------------**/// ensure this file is being included by a parent filedefined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );class HTML_indexer{  /**   * Show all indexed files   *   * @param array $rows   * @param mosPageNav $pageNav   */  function showIndex($rows, $pageNav){    global $option, $mainframe;    ?>    <form name="adminForm" method="post" action="index2.php">    <table class="adminheading"><tr><th>View current .odt files</th></tr></table>    <table class="adminlist">    <tr>      <th class="title" width="15">#</th>      <th class="title" width="15">&nbsp;</th>      <th class="title" width="200">Name</th>      <th class="title">Path</th>      <th class="title" width="125">Index time</th>      <th class="title" width="150">File time</th>    </tr>    <?php    $k=0;    for($i=0,$n=count($rows);$i<$n;$i++){      $row = $rows[$i];      $ftime = filemtime($mainframe->getCfg('absolute_path') . '/' . $row->path);      $itime = strtotime($row->indexed);//      echo $ftime . '|' . $itime . '<br />';      ?>      <tr class="<?php echo "row$k"; ?>">        <td><?php echo $pageNav->rowNumber( $i ); ?></td>        <td><?php echo mosHTML::idBox($i, $row->id); ?></td>        <td><a href="index2.php?option=<?php echo $option; ?>&task=edit&cid=<?php echo $row->id; ?>&hidemainmenu=1"><?php echo $row->name; ?></a></td>        <td><?php echo $row->path; ?></td>        <td><?php echo date('H:i:s d-m-Y', $itime); ?></td>        <td><?php echo date('H:i:s d-m-Y', $ftime) . ($ftime > $itime ? '&nbsp;&nbsp;<img src="../includes/js/Themeoffice/warning.png" border="0" alt="File is newer than the indexed time" title="File is newer than the indexed time" />' : ''); ?></td>      </tr>      <?php      $k = 1 - $k;    }    ?>    </table>    <?php echo $pageNav->getListFooter(); ?>    <input type="hidden" name="option" value="<?php echo $option; ?>" />    <input type="hidden" name="task" value="" />    <input type="hidden" name="hidemainmenu" value="0" />    <input type="hidden" name="boxchecked" value="0" />    </form>    <?php  }  /**   * Edit indexed file   *   * @param dbODTIndex $row   */  function editIndex($row){    global $option, $mainframe;    ?>    <form name="adminForm" method="post" action="index2.php">    <table class="adminheading"><tr><th><?php echo ($row->id ? 'Edit indexed file' : 'Add indexed file'); ?></th></tr></table>    <table class="adminlist">    <tr>      <th class="title" colspan="2">Details</th>    </tr>    <tr>      <td width="100">Name</td>      <td><input type="text" name="name" value="<?php echo $row->name; ?>" class="inputbox" size="50" /></td>    </tr>    <tr>      <td width="100">Path</td>      <td><?php echo $mainframe->getCfg('absolute_path'); ?>/<input type="text" name="path" value="<?php echo $row->path; ?>" class="inputbox" size="50" /></td>    </tr>    </table>    <input type="hidden" name="id" value="<?php echo $row->id; ?>" />    <input type="hidden" name="option" value="<?php echo $option; ?>" />    <input type="hidden" name="task" value="" />    <input type="hidden" name="hidemainmenu" value="0" />    <input type="hidden" name="boxchecked" value="0" />    </form>    <?php  }}?>

⌨️ 快捷键说明

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