Documentation Source Text

Check-in [e249e0131c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the hyperlinks to subsequent pages in the search results page.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e249e0131ccf69ff7278e8b7090ae577d73b44e2e47aea043619fe1aae06c738
User & Date: drh 2017-08-07 01:44:30
Context
2017-08-08
03:33
In the 35%-faster report, invert the ratios on the charts, as this seems to make them easier to understand. Check-in the spreadsheet used to construct the charts. check-in: 4869b508d9 user: drh tags: trunk
2017-08-07
01:44
Fix the hyperlinks to subsequent pages in the search results page. check-in: e249e0131c user: drh tags: trunk
01:43
Fix the hyperlinks to the subsequent pages on the search results page. check-in: ffe3fc4ac0 user: drh tags: branch-3.20
2017-08-04
14:25
Add the 2009-2018 speed graph relative to 3.20.0 to the speed-size spreadsheet. check-in: 4df296b435 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to search/search.tcl.

389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
  if {$nRes>10} {
    set s(0) {border:solid #044a64 1px;padding:1ex;margin:1ex;line-height:300%;}
    set s(1) "$s(0);background:#044a64;color:white"
    append ret <center><p>
    for {set i 0} {$i < 10 && ($i*10)<$nRes} {incr i} {
      append ret [subst {
        <a style="$s([expr {($iStart/10)==$i}])" 
           href="search?[cgi_encode_args [list q $::A(q) i $i]]">[expr $i+1]</a>
      }]
    }
    append ret </center>
  }

  return $ret
}







|







389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
  if {$nRes>10} {
    set s(0) {border:solid #044a64 1px;padding:1ex;margin:1ex;line-height:300%;}
    set s(1) "$s(0);background:#044a64;color:white"
    append ret <center><p>
    for {set i 0} {$i < 10 && ($i*10)<$nRes} {incr i} {
      append ret [subst {
        <a style="$s([expr {($iStart/10)==$i}])" 
           href="search?[cgi_encode_args [list q $::A(q) s $::A(s) i $i]]">[expr $i+1]</a>
      }]
    }
    append ret </center>
  }

  return $ret
}