Changeset 124 for trunk/coverager/coverager.tpl.php
- Timestamp:
- 2006-09-03T04:20:00+02:00 (7 years ago)
- File:
-
- 1 edited
-
trunk/coverager/coverager.tpl.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager/coverager.tpl.php
r33 r124 6 6 echo <<<HEAD 7 7 <meta http-equiv="Content-Type" content="text/html; charset=$this->charset" /> 8 <meta http-equiv="Content-Language" content="{$this->lang}" /> 8 9 <script type="text/javascript" src="tablesort.js" charset="$this->charset"></script> 9 10 HEAD; … … 11 12 12 13 <link rel="stylesheet" type="text/css" href="coverager.css" /> 13 <title> XCache Coverage Viewer</title>14 <title><?php echo _T("XCache PHP Code Coverage Viewer"); ?></title> 14 15 </head> 15 16 <body> 17 <h1><?php echo _T("XCache PHP Code Coverage Viewer"); ?></h1> 16 18 17 19 <?php … … 49 51 global $cycle; 50 52 $cycle = new Cycle('class="col1"', 'class="col2"'); 53 $l_dir = _T("Directory"); 54 $l_per = _T("Percent"); 55 $l_hit = _T("Hits"); 56 $l_lns = _T("Lines"); 57 $l_tds = _T("TODO"); 51 58 return <<<EOS 52 59 <table align="center" cellpadding="2" cellspacing="1" border="0" class="cycles"> 53 60 <tr> 54 <th> Directory</th><th>Percent</th><th>Hits</th><th>Lines</th><th>TODO</th>61 <th>{$l_dir}</th><th>{$l_per}</th><th>{$l_hit}</th><th>{$l_lns}</th><th>{$l_tds}</th> 55 62 </tr> 56 63 EOS; … … 105 112 global $cycle; 106 113 $cycle = new Cycle('class="col1"', 'class="col2"'); 114 $l_fil = _T("File"); 115 $l_per = _T("Percent"); 116 $l_hit = _T("Hits"); 117 $l_lns = _T("Lines"); 107 118 return <<<EOS 108 119 <br> 109 120 <table align="center" cellpadding="2" cellspacing="1" border="0" class="cycles"> 110 121 <tr> 111 <th> File</th><th>Percent</th><th>Hits</th><th>Lines</th>122 <th>{$l_fil}</th><th>{$l_per}</th><th>{$l_hit}</th><th>{$l_lns}</th> 112 123 </tr> 113 124 EOS; … … 154 165 } 155 166 167 $l_root = _T("root"); 156 168 if ($action == 'dir') { 169 if (function_exists('ob_filter_path_nicer')) { 170 ob_start('ob_filter_path_nicer'); 171 } 157 172 $path_html = htmlspecialchars($path); 158 173 echo <<<EOS 159 <a href="?"> root</a> $path<br />174 <a href="?">$l_root</a> $path<br /> 160 175 EOS; 161 176 echo dir_head($dirinfo); … … 178 193 } 179 194 else if ($action == 'file') { 195 if (function_exists('ob_filter_path_nicer')) { 196 ob_start('ob_filter_path_nicer'); 197 } 180 198 $dir_url = urlencode($dir); 181 199 $dir_html = htmlspecialchars($dir); 182 200 echo <<<EOS 183 <a href="?"> root</a> <a href="?path={$dir_url}">{$dir_html}</a>/<b>{$filename}</b><br />201 <a href="?">$l_root</a> <a href="?path={$dir_url}">{$dir_html}</a>/<b>{$filename}</b><br /> 184 202 EOS; 185 203 … … 194 212 EOS; 195 213 } 214 if (function_exists('ob_filter_path_nicer')) { 215 ob_end_flush(); 216 } 196 217 echo <<<EOS 197 218 <pre class="code"><ol>{$filecov}</ol></pre> … … 209 230 ?> 210 231 232 <div class="footnote"> 233 Powered By: XCache <?php echo $xcache_version; ?> coverager <?php echo _T("module"); ?> 234 </div> 235 211 236 </body> 212 237 </html>
Note: See TracChangeset
for help on using the changeset viewer.

