Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
k1row committed Dec 26, 2012
1 parent 134c2e2 commit d28bbaf
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified app/.DS_Store
Binary file not shown.
Binary file modified app/views/.DS_Store
Binary file not shown.
Binary file added app/views/search/.DS_Store
Binary file not shown.
10 changes: 4 additions & 6 deletions app/views/search/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
<head>
</head>
<body>
<!-- AMoAd Zone: [インライン_ブログ_TOPヘッダー_ニュース_CAA_CAA] -->
 Advertisement here !!! <br>
  <div class="ad_frame sid_62056d310111552cf4f02a2b4d43f35c991532e03c749ca0d05b3424a4f0b181 container_div color_#0000CC-#000000-#999999-#0000FF-#009900 sp fit wv"></div>
<div class="ad_frame sid_62056d310111552c1a8587de29171abe00e7b93dd4b39587f228691ad40d6932
container_div color_#0000CC-#000000-#999999-#0000FF-#009900 sp fit wv"></div>


<h1>What kind of photograph do you want to see ?</h1>
<form mothod="post" action="./index">
<input type="hidden" size="40" name="i" value="search" />
<input type="text" size="40" id="q" name="q"/>
<input type="submit" value="検索" />
<input type="submit" value="Search" />
</form>

<% if @data %>
Expand All @@ -25,9 +25,7 @@
<% elsif @i == 'search' %>
<h2>Nothing ... such a tag's data</h2>
<% end %>
<%#= debug(@result) %>
<%#= debug(@request) %>

<script src='http://j.amoad.com/js/aa.js?link=${ADCLOUD_LINK_ENCODE}' type='text/javascript' charset='utf-8'></script>
</body>
</html>
Expand Down
31 changes: 31 additions & 0 deletions app/views/search/index.html.erb のコピー 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
</head>
<body>
 Advertisement here !!! <br>
  <div class="ad_frame sid_62056d310111552cf4f02a2b4d43f35c991532e03c749ca0d05b3424a4f0b181 container_div color_#0000CC-#000000-#999999-#0000FF-#009900 sp fit wv"></div>


<h1>What kind of photograph do you want to see ?</h1>
<form mothod="post" action="./index">
<input type="hidden" size="40" name="i" value="search" />
<input type="text" size="40" id="q" name="q"/>
<input type="submit" value="Search" />
</form>

<% if @data %>
<h2>You are looking for "<%= @target_tag %>" tag's photos.</h2>
<% @data.each do |data| %>
<%#= debug(data) %>
<a href="<%= data['link'] %>"><%= image_tag data['thumbnail'] %></a>
<% end %>
<% elsif @i == 'search' %>
<h2>Nothing ... such a tag's data</h2>
<% end %>

<script src='http://j.amoad.com/js/aa.js?link=${ADCLOUD_LINK_ENCODE}' type='text/javascript' charset='utf-8'></script>
</body>
</html>

0 comments on commit d28bbaf

Please sign in to comment.