Changeset 9

Show
Ignore:
Timestamp:
01/13/07 21:51:02 (2 years ago)
Author:
max.ca..@gmail.com
Message:

More styling, date last mod added

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • SLogViewer/css/styles.css

    r8 r9  
    1 /* @override http://localhost:9000/SLogViewer/css/styles.css */ 
     1/* @override  
     2        http://localhost:9000/SLogViewer/css/styles.css 
     3        http://moya.local:9000/SLogViewer/css/styles.css 
     4*/ 
     5 
    26body{ 
    37        font-family: Arial, Helvetica, Geneva, sans-serif; 
     
    6367        font-weight: bold; 
    6468        width:30px; 
     69        text-align: center; 
    6570} 
     71 
    6672#viewer { padding-left:30px; } /* map to nav width */ 
    6773 
     
    8591 
    8692 
     93.link, .yui-content ul.linklist { 
     94        background-color: white; 
     95} 
     96 
    8797.link, .yui-content ul.linklist li { 
    8898        padding: 3px; 
    89         margin: 0; 
     99        margin:  10px 10px 0 10px; 
     100        list-style: none; 
     101
     102 
     103.link, .yui-content ul.linklist li a { 
     104        padding: 5px 10px 3px 7px; 
     105        margin-left: 10px; 
     106        margin-right: 10px; 
    90107        color: blue; 
    91108        list-style: none; 
     
    94111        border-bottom: 1px solid blue; 
    95112} 
     113 
     114.link, .yui-content ul.linklist li a:hover { 
     115        background-color: #ff0; 
     116} 
     117 
     118 
     119 
  • SLogViewer/index.php

    r8 r9  
    4848                if( 0 != strpos($file, ".") ) { 
    4949                        if(strpos($file, "HELP ") !== FALSE) { //Help Log? 
    50                                 $logfiles['HELP'][] = substr($file, 5)
     50                                $logfiles['HELP'][] = array( 'filename'=>substr($file, 5), 'modtime'=>filemtime($base.$file) )
    5151                        } else { 
    52                                 $logfiles[strtoupper($file[0])][] = $file
     52                                $logfiles[strtoupper($file[0])][] = array('filename'=>$file,'modtime'=>filemtime($base.$file))
    5353                        } 
    5454                } 
     
    6565        --> 
    6666<!-- <link rel="stylesheet" type="text/css" href="css/example.css"> --> 
     67<link rel="stylesheet" type="text/css" href="css/reset-fonts-grids.css"> 
    6768<link rel="stylesheet" type="text/css" href="css/tabview.css"> 
    6869<link rel="stylesheet" type="text/css" href="css/border_tabs.css"> 
     
    8788</head> 
    8889<body> 
     90<?php   //print $_SERVER['HTTP_USER_AGENT']; ?> 
    8991        <div id="doc"><div id="reset"><a href="<?php print $_SERVER['PHP_SELF']; ?>">Reset</a></div> 
    9092            <div id="hd"><h1>SLogViewer</h1><h3>View your SLogs.</h3></div> 
     
    9395                <div id="viewer" class="yui-navset"> 
    9496<?php 
    95         $tabs = '<ul class="yui-nav"><li class="selected"><a href="#intro"><em></em></a></li>'; 
     97        $tabs = '<ul class="yui-nav"><li class="selected"><a href="#intro">^-X-^</a></li>'; 
    9698        $divs = '<div class="yui-content"><div id="intro"><h2>'.$first_tab_head.'</h2>'.nl2br(log_include($base)).'</div>'; //Splash page 
    9799        foreach( $logfiles as $tab => $logs ) 
     
    101103                $divs .= "<div id='$tab'><ul class='listlink'>"; 
    102104                foreach( $logs as $key => $log ) { 
    103                         $divs .= "<li class='link'><a href='$_SERVER[PHP_SELF]?view=$log'>$log</a></li>"; 
     105                        $divs .= "<li class='link'><a href='$_SERVER[PHP_SELF]?view=$log'>".$log['filename']."</a> <em>".date("l, M j g:i a T Y",$log['modtime'])."</em></li>"; 
    104106                } 
    105107