| 137 |
result := result + ' ' + IntToStr(position + 1) + ' ' |
result := result + ' ' + IntToStr(position + 1) + ' ' |
| 138 |
else |
else |
| 139 |
result := result + Format(' <a href="' + home + path + |
result := result + Format(' <a href="' + home + path + |
| 140 |
'?pos=%d">%d</a> ', [position + i + j, position + 1 + i + j]); |
'?pos=%d#article">%d</a> ', [position + i + j, position + 1 + i + j]); |
| 141 |
end; |
end; |
| 142 |
end; |
end; |
| 143 |
|
|
| 165 |
position := i; |
position := i; |
| 166 |
if position = i then |
if position = i then |
| 167 |
begin |
begin |
| 168 |
t2 := '?pos=' + IntToStr(position); |
t2 := '?pos=' + position.ToString+'#article'; |
| 169 |
k := FDTable1.RecordCount; |
k := FDTable1.RecordCount; |
| 170 |
end |
end |
| 171 |
else |
else |
| 172 |
begin |
begin |
| 173 |
t2 := '?pos=' + IntToStr(position + 1); |
t2 := '?pos=' + IntToStr(position + 1)+'#article'; |
| 174 |
k := (position + 1) * count; |
k := (position + 1) * count; |
| 175 |
end; |
end; |
| 176 |
s1 := '%d 件中 %d 件から %d 件まで表示<br><center>Page : [<b>'; |
s1 := '%d 件中 %d 件から %d 件まで表示<br><center>Page : [<b>'; |
| 177 |
s2 := '<a href="' + home + path + t1 + '"><<</a>' + linkcontent + |
s2 := '<a href="' + home + path + t1 + '#article"><<</a>' + linkcontent + |
| 178 |
'<a href="' + home + path + t2 + '">>></a>] <a href="' + home + path + |
'<a href="' + home + path + t2 + '">>></a>] <a href="' + home + path + |
| 179 |
'">最新</a></b></center>'; |
'#article">最新</a></b></center>'; |
| 180 |
result := Format(s1, [FDTable1.RecordCount, position * count + 1, k]) + s2; |
result := Format(s1, [FDTable1.RecordCount, position * count + 1, k]) + s2; |
| 181 |
end; |
end; |
| 182 |
end; |
end; |
| 205 |
if FDTable1.RecordCount = 0 then |
if FDTable1.RecordCount = 0 then |
| 206 |
begin |
begin |
| 207 |
if uri = 'index' then |
if uri = 'index' then |
| 208 |
ReplaceText := 'まだ投稿がありません.'; |
ReplaceText := '<hr>まだ投稿がありません.<hr>'; |
| 209 |
end |
end |
| 210 |
else |
else |
| 211 |
begin |
begin |
| 238 |
ReplaceText := ReplaceText + s.Content; |
ReplaceText := ReplaceText + s.Content; |
| 239 |
FDTable1.Prior; |
FDTable1.Prior; |
| 240 |
end; |
end; |
| 241 |
|
ReplaceText:=ReplaceText + '<hr>'; |
| 242 |
end; |
end; |
| 243 |
end; |
end; |
| 244 |
if TagString = 'footer' then |
if TagString = 'footer' then |
| 468 |
Value := AnsiString(na); |
Value := AnsiString(na); |
| 469 |
Expires := Now + 1; |
Expires := Now + 1; |
| 470 |
end; |
end; |
| 471 |
Response.SendRedirect(FDTable2.FieldByName('home').AsAnsiString); |
Response.SendRedirect(FDTable2.FieldByName('home').AsAnsiString+'index#article'); |
| 472 |
end; |
end; |
| 473 |
|
|
| 474 |
procedure TWebModule1.WebModule1searchAction(Sender: TObject; |
procedure TWebModule1.WebModule1searchAction(Sender: TObject; |