Home | Print | Q/A | Guest | NewsLetter
Display context of search results Case-sensitive searching
Database System
Data Warehouse
Data Analysis
Operating System
Open Source
Enterprise Architecture
Software Engineering
Process
Working Smart

SQL Server
PostgreSQL
Oracle
DB2
Teradata
MySQL
Performance Tuning
Programming

Link
Philosophy
Tools
Misc
Who?
_
_
SideBar Edit

Contents

1 plugin/sidebar.php
2 thema/ddt/header.php
3 thema/ddt/footer.php


스타일은 좀 바뀌었다. 폰트하고 데코레이션 정도다.. 기본적으로는 아래의 소스다.

1 plugin/sidebar.php #

<?php
// Copyright 2003 by Won-Kyu Park <wkpark at kldp.org>
// All rights reserved. Distributable under GPL see COPYING
// a print action plugin for the MoniWiki
//
// $Id: print.php,v 1.4 2004/10/02 02:44:36 wkpark Exp $

function macro_sidebar() {
  global 
$DBInfo;
  
$filename="./data/text/SideBar";
  
$fp=@fopen($filename,"r");
  if (!
$fp) {
    if (
file_exists($filename)) {
      
$out="You have no permission to see this page.\n\n";
      
$out.="See MoniWiki/AccessControl\n";
      return 
$out;
    }
    
$out=_("File does not exists");
    return 
$out;
  }
  
  
$fsize=filesize($filename);
  if (
$fsize 0)
    
$body=fread($fp,$fsize);
  
  
fclose($fp);
  return 
$body;
}

// vim:et:sts=2:
?>

2 thema/ddt/header.php #

<?php
# $title, $logo
# $menu, $icon, $upper_icon, $rss_icon, $user_link
# $themeurl
# $msg
# $this->trail
/*<?php echo $menu ?>|*/
/*<?php echo $rss_icon?>*/
include_once("plugin/sidebar.php");
$sidebar=macro_sidebar();

?>

<!--<div id='wikiHeader'>-->
<font color=white>
<table border='0' width='100%' cellpadding='0' cellspacing='0' bgcolor=black>
    <tr>
        <td>
          
          <a href=http://databaser.net/moniwiki/wiki.php/FrontPage><font color=white>Home</font></a>|
          <?php echo "<a style='text-decoration:none;' href=http://databaser.net/moniwiki/wiki.php/".urlencode($this->page->name)."?action=print target=blank><font color=white>Print</font></a>"?>|
          <a href=http://databaser.net/boards/bbs.php?table=qa target=blank><font color=white>Q/A</font></a>|
          <a href=http://databaser.net/boards/bbs.php?table=guest target=blank><font color=white>Guest</font></a>|
          <a href=http://databaser.net/request_news_letter.php target=blank><font color=white>NewsLetter</font></a>|
          <a href=http://databaser.net/moniwiki/wiki.php/RecentChanges?action=rss_rc><font color=white>RSS</font></a>
          </font>
        </td>
        <td>
            <form style='display:inline;' method='get' action='/moniwiki/wiki.php/FindPage'>         
                <input type='hidden' name='action' value='fullsearch' />
                <input name='value' size='15' value='' />
                <input type='submit' value='Search' />
                <input type='checkbox' name='context' value='20' checked='checked' /><font size=1>Display context of search results</font>
                <input type='checkbox' name='case' value='1'  checked='checked' /><font size=1>Case-sensitive searching</font>
            </form>
        </td>
    </tr>
</table>
</font>

<table border='0' width='100%'>
  <tr>
      <td width='250px'></td>
      <td>
          <div id='wikiTitle'><?php echo $title?></div>
      </td>
      <td valign='bottom' align='right'>
          <div id='wikiTrailer'><font style='font-size:10px'><?php echo $this->trail?></font></div>
      </td>
  </tr>
</table>
<!--</div>-->
<?php echo $msg?>
<table border='0' width='100%'>
  <tr colspan=3>
    <!--<td colspan=3 width='1px' bgcolor=black> </td>-->
  </tr>
  <tr valign='top'>
    <td width='200px'><?php echo $sidebar ?></td>
    <td width='1px' bgcolor=#C0C0C0> </td>
    <td>

3 thema/ddt/footer.php #

    </td>
  </tr> 
</table>
<table><tr><td>
<div class='wikiFooter'>
  <div class="wikiFooterMenu">
  <table border='0' width='100%'>
  <tr>
    <td width='220px'></td>
    <td>
    <?php 
      
echo $menu;
      if (
$lastedit)
        print 
"|last modified $lastedit $lasttime";
    
?>
    |<a href=databaser.net>http://www.databaser.net</a>
    </td>
  </tr>
  </table>
  </div>
</div>
</td></tr></table>

EditText|Print|FindPage|DeletePage|LikePages|http://www.databaser.net|last modified 2010-04-19 22:02:03