Changeset 530 in svn for trunk


Ignore:
Timestamp:
2008-02-20T03:48:48Z (8 years ago)
Author:
Xuefer
Message:

passed w3c validation

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/header.tpl.php

    r371 r530  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    22<html xmlns="http://www.w3.org/1999/xhtml">
    33<head>
  • trunk/admin/xcache.css

    r528 r530  
    11input, table { font-family: sans-serif; }
    22input { font-size: 12px; }
    3 table { border-collapse: collapse; font-size: 11px; }
     3table { border-collapse: collapse; font-size: 11px; margin: 0; margin-bottom: 10px; }
     4table caption, h2 { font-size: 16px; font-weight: bold; text-align: left; padding-top: 20px; margin-bottom: 2px; }
    45table { white-space: pre; }
    56table.cycles { border: 1px solid black; margin-top: 5px; margin-bottom: 5px; }
     
    3233.bitsgraph div div { float: none; width: 100%; }
    3334
    34 .switcher, h1, h2 { text-align: center; display: block; }
     35.switcher, h1 { text-align: center; display: block; }
    3536.switcher * { color: blue; }
    3637.switcher a.active { font-weight: bold; font-size: 130%; color: black; }
  • trunk/admin/xcache.tpl.php

    r529 r530  
    11<?php include("header.tpl.php"); ?>
    2 <a href="help.php" target="_blank" id="help"><?php echo _T("Help") ?> &raquo;</a>
    3 <span class="switcher"><?php echo switcher("type", $types); ?></span>
     2<div id="help">
     3    <a href="help.php"><?php echo _T("Help") ?> &raquo;</a>
     4</div>
     5<div class="switcher"><?php echo switcher("type", $types); ?></div>
    46<?php
    57$a = new Cycle('class="col1"', 'class="col2"');
    68$b = new Cycle('class="col1"', 'class="col2"');
    79?>
    8 <?php echo _T('Caches'); ?>:
    910<table cellspacing="0" cellpadding="4" class="cycles">
     11    <caption><?php echo _T('Caches'); ?></caption>
    1012    <col />
    1113    <col align="right" />
     
    6466
    6567        $w = $graph_width;
    66         $tdwidth = $w + 2;
    6768        if (empty($ci['istotal'])) {
    6869            $graph = freeblock_to_graph($ci['free_blocks'], $ci['size']);
     
    9697        <td title="{$ci['size']}">{$ci_size}</td>
    9798        <td title="{$ci['avail']}">{$ci_avail}</td>
    98         <td title="{$pvalue} %" width="{$tdwidth}"
     99        <td title="{$pvalue} %"
    99100            ><div class="percent" style="width: {$w}px"
    100101                ><div style="width: {$pvalue}%" class="pvalue"></div
     
    103104        >{$blocksgraph}</td>
    104105        <td
    105             ><form method="post"
     106            ><form method="post" action=""
    106107                ><div
    107108                    ><input type="hidden" name="type" value="{$ci['type']}"
     
    149150    foreach (array('Cached' => $cachelist['cache_list'], 'Deleted' => $cachelist['deleted_list']) as $listname => $entries) {
    150151        $a->reset();
    151         echo "
    152         <caption>", _T("{$cachelist['type_name']} $listname"), "</caption>";
    153152        ?>
    154153
    155154    <form action="" method="post">
    156155    <table cellspacing="0" cellpadding="4" class="cycles entries" width="100%">
     156        <caption><?php echo _T("{$cachelist['type_name']} $listname"); ?></caption>
    157157        <col />
    158158        <col />
  • trunk/coverager/coverager.css

    r461 r530  
    33th { font-size: 12px; }
    44table { border-collapse: collapse; }
     5table.center { margin-left: auto; margin-right: auto; }
     6table\-center { text-align: center; }
    57table.cycles { border: 1px solid black; margin-top: 5px; margin-bottom: 5px; }
    68table.cycles .col1 { background-color: #f5f5f5; }
     
    5557.lineCov   { background-color: #F0F0F0; }
    5658.lineNoCov { background-color: #ffe0e0; }
     59div.code {
     60    border: 1px solid gray;
     61    font-size: 12px;
     62}
    5763pre.code {
    5864    font-family: monospace;
    5965    font-size: 12px;
    6066    white-space: pre;
    61     border: 1px solid gray;
     67    padding: 0; margin: 0;
    6268}
    6369
  • trunk/coverager/coverager.php

    r464 r530  
    114114                $lines = explode('<br />', $lines);
    115115                $last = array_pop($lines);
     116                $lines[count($lines) - 1] = $last;
    116117                $filecov = sprint_cov($fileinfo['cov'], $lines, false);
    117                 $filecov .= $last;
    118118                unset($source);
    119119            }
     
    325325        }
    326326        if (isset($cov[$offs])) {
    327             $lines[$l] = sprintf("<li class=\"line%sCov\"> %s\t%s\n</li>"
     327            $lines[$l] = sprintf("<li class=\"line%sCov\"><pre class=\"code\"> %s\t%s\n</pre></li>"
    328328                    , $cov[$offs] ? '' : 'No'
    329329                    , $cov[$offs]
     
    331331        }
    332332        else {
    333             $lines[$l] = "<li>\t$line\n</li>";
     333            $lines[$l] = "<li><pre class=\"code\">\t$line\n</pre></li>";
    334334        }
    335335    }
  • trunk/coverager/coverager.tpl.php

    r393 r530  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    22<html xmlns="http://www.w3.org/1999/xhtml">
    33<head>
     
    5656    $l_tds = _T("TODO");
    5757    return <<<EOS
    58     <table align="center" cellpadding="2" cellspacing="0" border="0" class="cycles">
     58<div class="table-center">
     59    <table cellpadding="2" cellspacing="0" border="0" class="cycles center">
    5960    <tr>
    6061        <th>{$l_dir}</th><th>{$l_per}</th><th>{$l_hit}</th><th>{$l_lns}</th><th>{$l_tds}</th>
     
    105106    return <<<EOS
    106107    </table>
     108</div>
    107109EOS;
    108110}
     
    117119    $l_lns = _T("Lines");
    118120    return <<<EOS
    119     <br>
    120     <table align="center" cellpadding="2" cellspacing="0" border="0" class="cycles">
     121<div class="center-table">
     122    <table cellpadding="2" cellspacing="0" border="0" class="cycles center">
    121123    <tr>
    122124        <th>{$l_fil}</th><th>{$l_per}</th><th>{$l_hit}</th><th>{$l_lns}</th>
     
    162164    return <<<EOS
    163165    </table>
     166</div>
    164167EOS;
    165168}
     
    172175    $path_html = htmlspecialchars($path);
    173176    echo <<<EOS
    174     <a href="?">$l_root</a> $path<br />
     177    <div>
     178        <a href="?">$l_root</a> $path<br />
     179    </div>
    175180EOS;
    176181    echo dir_head($dirinfo);
     
    199204    $dir_html = htmlspecialchars($dir);
    200205    echo <<<EOS
    201     <a href="?">$l_root</a> <a href="?path={$dir_url}">{$dir_html}</a>/<strong>{$filename}</strong><br />
     206    <div>
     207        <a href="?">$l_root</a> <a href="?path={$dir_url}">{$dir_html}</a>/<strong>{$filename}</strong><br />
     208    </div>
    202209EOS;
    203210
     
    209216        $tplfile_html = htmlspecialchars($tplfile);
    210217        echo <<<EOS
    211         <a href="#tpl">{$tplfile_html}</a><br />
     218        <div>
     219            <a href="#tpl">{$tplfile_html}</a><br />
     220        </div>
    212221EOS;
    213222    }
     
    216225    }
    217226    echo <<<EOS
    218     <pre class="code"><ol>{$filecov}</ol></pre>
     227    <div class="code">
     228        <ol>{$filecov}</ol>
     229    </div>
    219230EOS;
    220231    if ($tplfile) {
    221232        echo <<<EOS
    222233    <a name="tpl">{$tplfile}</a>
    223     <pre class="code"><ol>{$tplcov}</ol></pre>
     234    <div class="code">
     235        <ol>{$tplcov}</ol>
     236    </div>
    224237EOS;
    225238    }
Note: See TracChangeset for help on using the changeset viewer.