Changeset 9
- Timestamp:
- 01/13/07 21:51:02 (2 years ago)
- Files:
-
- SLogViewer/css/reset-fonts-grids.css (added)
- SLogViewer/css/styles.css (modified) (4 diffs)
- SLogViewer/index.php (modified) (5 diffs)
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 2 6 body{ 3 7 font-family: Arial, Helvetica, Geneva, sans-serif; … … 63 67 font-weight: bold; 64 68 width:30px; 69 text-align: center; 65 70 } 71 66 72 #viewer { padding-left:30px; } /* map to nav width */ 67 73 … … 85 91 86 92 93 .link, .yui-content ul.linklist { 94 background-color: white; 95 } 96 87 97 .link, .yui-content ul.linklist li { 88 98 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; 90 107 color: blue; 91 108 list-style: none; … … 94 111 border-bottom: 1px solid blue; 95 112 } 113 114 .link, .yui-content ul.linklist li a:hover { 115 background-color: #ff0; 116 } 117 118 119 SLogViewer/index.php
r8 r9 48 48 if( 0 != strpos($file, ".") ) { 49 49 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) ) ; 51 51 } else { 52 $logfiles[strtoupper($file[0])][] = $file;52 $logfiles[strtoupper($file[0])][] = array('filename'=>$file,'modtime'=>filemtime($base.$file)); 53 53 } 54 54 } … … 65 65 --> 66 66 <!-- <link rel="stylesheet" type="text/css" href="css/example.css"> --> 67 <link rel="stylesheet" type="text/css" href="css/reset-fonts-grids.css"> 67 68 <link rel="stylesheet" type="text/css" href="css/tabview.css"> 68 69 <link rel="stylesheet" type="text/css" href="css/border_tabs.css"> … … 87 88 </head> 88 89 <body> 90 <?php //print $_SERVER['HTTP_USER_AGENT']; ?> 89 91 <div id="doc"><div id="reset"><a href="<?php print $_SERVER['PHP_SELF']; ?>">Reset</a></div> 90 92 <div id="hd"><h1>SLogViewer</h1><h3>View your SLogs.</h3></div> … … 93 95 <div id="viewer" class="yui-navset"> 94 96 <?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>'; 96 98 $divs = '<div class="yui-content"><div id="intro"><h2>'.$first_tab_head.'</h2>'.nl2br(log_include($base)).'</div>'; //Splash page 97 99 foreach( $logfiles as $tab => $logs ) … … 101 103 $divs .= "<div id='$tab'><ul class='listlink'>"; 102 104 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>"; 104 106 } 105 107
