summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-01-14 18:40:58 +0100
committerandi <andi@splitbrain.org>2005-01-14 18:40:58 +0100
commitf11c233fb55043866bc976a324fd2d1ecc72a962 (patch)
tree2ed1365b24d6765f3e6df04080be2efef1657aad
parent08ab002ac8c4b70665f7d7ea93712a80e66d52af (diff)
downloadrpg-f11c233fb55043866bc976a324fd2d1ecc72a962.tar.gz
rpg-f11c233fb55043866bc976a324fd2d1ecc72a962.tar.bz2
style divs added
darcs-hash:20050114174058-9977f-10d666a7f688212ef7877fa0e19802a12a993e57.gz
-rw-r--r--inc/html.php110
1 files changed, 57 insertions, 53 deletions
diff --git a/inc/html.php b/inc/html.php
index 1ab53ac64..7624e238c 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -286,7 +286,7 @@ function html_acl($perm){
}
/**
- * Displays the page header and calls html_head()
+ * Displays the overall page header and calls html_head()
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
@@ -300,40 +300,42 @@ function html_header(){
<body>
<div class="all">
<?
+ @include("includes/topheader.html");
html_msgarea();
- @include("includes/topheader.html")
?>
- <div class="header">
- <div class="pagename">
- [[<a href="<?=wl($ID,'do=backlink')?>" onclick="return svchk()" onkeypress="return svchk()"><?=$ID?></a>]]
+ <div class="stylehead">
+ <div class="header">
+ <div class="pagename">
+ [[<a href="<?=wl($ID,'do=backlink')?>" onclick="return svchk()" onkeypress="return svchk()"><?=$ID?></a>]]
+ </div>
+ <div class="logo">
+ <a href="<?=wl()?>" name="top" accesskey="h" title="[ALT+H]" onclick="return svchk()" onkeypress="return svchk()"><?=$conf['title']?></a>
+ </div>
</div>
- <div class="logo">
- <a href="<?=wl()?>" name="top" accesskey="h" title="[ALT+H]" onclick="return svchk()" onkeypress="return svchk()"><?=$conf['title']?></a>
+ <?@include("includes/header.html")?>
+
+ <div class="bar" id="bar_top">
+ <div class="bar-left" id="bar_topleft">
+ <?=html_editbutton()?>
+ <?=html_btn(revs,$ID,'r',array('do' => 'revisions'))?>
+ </div>
+
+ <div class="bar-right" id="bar_topright">
+ <?=html_btn(recent,'','r',array('do' => 'recent'))?>
+ <form action="<?=wl()?>" accept-charset="<?=$lang['encoding']?>">
+ <input type="hidden" name="do" value="search" />
+ <input type="text" name="id" class="edit" />
+ <input type="submit" value="<?=$lang['btn_search']?>" class="button" />
+ </form>&nbsp;
+ </div>
</div>
- </div>
- <?@include("includes/header.html")?>
-
- <div class="bar" id="bar_top">
- <div class="bar-left" id="bar_topleft">
- <?=html_editbutton()?>
- <?=html_btn(revs,$ID,'r',array('do' => 'revisions'))?>
- </div>
-
- <div class="bar-right" id="bar_topright">
- <?=html_btn(recent,'','r',array('do' => 'recent'))?>
- <form action="<?=wl()?>" accept-charset="<?=$lang['encoding']?>">
- <input type="hidden" name="do" value="search" />
- <input type="text" name="id" class="edit" />
- <input type="submit" value="<?=$lang['btn_search']?>" class="button" />
- </form>&nbsp;
- </div>
- </div>
- <?
- flush();
- html_breadcrumbs();
- @include("includes/pageheader.html");
- ?>
+ <?
+ flush();
+ html_breadcrumbs();
+ @include("includes/pageheader.html");
+ ?>
+ </div>
<div class="page">
<!-- wikipage start -->
<?
@@ -401,29 +403,31 @@ function html_footer(){
<!-- wikipage stop -->
</div>
<div class="clearer">&nbsp;</div>
- <?
- flush();
- @include("includes/pagefooter.html");
- html_metainfo();
- ?>
- <div class="bar" id="bar_bottom">
- <div class="bar-left" id="bar_bottomleft">
- <?=html_editbutton()?>
- <?=html_btn(revs,$ID,'r',array('do' => 'revisions'))?>
- </div>
+ <div class="stylefoot">
+ <?
+ flush();
+ @include("includes/pagefooter.html");
+ html_metainfo();
+ ?>
+ <div class="bar" id="bar_bottom">
+ <div class="bar-left" id="bar_bottomleft">
+ <?=html_editbutton()?>
+ <?=html_btn(revs,$ID,'r',array('do' => 'revisions'))?>
+ </div>
- <div class="bar-right" id="bar_bottomright">
- <?
- if($conf['useacl']){
- if($_SERVER['REMOTE_USER']){
- print html_btn('logout',$ID,'',array('do' => 'logout',));
- }else{
- print html_btn('login',$ID,'',array('do' => 'login'));
+ <div class="bar-right" id="bar_bottomright">
+ <?
+ if($conf['useacl']){
+ if($_SERVER['REMOTE_USER']){
+ print html_btn('logout',$ID,'',array('do' => 'logout',));
+ }else{
+ print html_btn('login',$ID,'',array('do' => 'login'));
+ }
}
- }
- ?>
- <?=html_btn(index,$ID,'x',array('do' => 'index'))?>
- <a href="#top"><input type="button" class="button" value="<?=$lang['btn_top']?>" /></a>&nbsp;
+ ?>
+ <?=html_btn(index,$ID,'x',array('do' => 'index'))?>
+ <a href="#top"><input type="button" class="button" value="<?=$lang['btn_top']?>" /></a>&nbsp;
+ </div>
</div>
</div>
<?@include("includes/footer.html")?>
@@ -973,7 +977,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed?
insertButton('images/rule.png','<?=$lang['qb_hr']?>','----\n');
mediaButton('images/image.png','<?=$lang['qb_media']?>','m','<?=$INFO['namespace']?>');
- <?
+ <?
if($conf['useacl'] && $_SERVER['REMOTE_USER']){
echo "insertButton('images/sig.png','".$lang['qb_sig']."','".html_signature()."','y');";
}
@@ -1006,7 +1010,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed?
showSizeCtl();
<?if($wr){?>
init_locktimer(<?=$conf['locktime']-60?>,'<?=$lang['willexpire']?>');
- document.editform.wikitext.focus();
+ document.editform.wikitext.focus();
<?}?>
</script>
</td>