Documentation Source Text

Check-in [ffe3fc4ac0]
Login

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

Overview
Comment:Fix the hyperlinks to the subsequent pages on the search results page.
Timelines: family | ancestors | descendants | both | branch-3.20
Files: files | file ages | folders
SHA3-256: ffe3fc4ac0bd022c28ff535a07ca5ae40c390afc2f41eab0beb852a378c5277b
User & Date: drh 2017-08-07 01:43:02
Context
2017-08-07
16:53
Update links to the source code repositories to be HTTPS and update the location of the WWW3 server from Fremont to San Francisco. check-in: aa6b786823 user: drh tags: branch-3.20
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-03
15:47
Fix another typo in the bindptr.html document. check-in: 8d2c7aa89d 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
}