OSDN Git Service

リストの表示する項目を減らした
authorkonekoneko <jbh03215@hotmail.co.jp>
Tue, 27 Nov 2012 17:45:20 +0000 (02:45 +0900)
committerkonekoneko <jbh03215@hotmail.co.jp>
Tue, 27 Nov 2012 17:45:20 +0000 (02:45 +0900)
profile.js
public/profile/list.ejs

index d93ed48..bac3320 100644 (file)
@@ -320,7 +320,7 @@ function ProfileCollection()
                pool.query("SELECT * FROM list WHERE name LIKE ? LIMIT ?,?",[pattern+"%",start,count],cb);\r
        }\r
        this.ToArrayAsync = function(start,count,cb){\r
-               pool.query("SELECT name,age,lastmodified FROM list LIMIT ?,?",[start,count],cb);\r
+               pool.query("SELECT name,lastmodified FROM list LIMIT ?,?",[start,count],cb);\r
        }\r
 \r
        var crypto = require("crypto");\r
index b54b9ea..bd7ee9d 100644 (file)
 <table>\r
        <tr>\r
                <th>名前</th>\r
-               <th>年齢</th>\r
                <th>更新日時</th>\r
        </tr>\r
 <% for(var i=0; i<list.length; i++) {%>\r
        <tr>\r
                <td><a href="profile/detail?name=<%= encodeURIComponent(list[i].name) %>"><%= list[i].name %></a></td>\r
-               <td><%= list[i].age %></td>\r
                <td><%- list[i].lastmodified %></td>\r
        </tr>\r
 <% } %>\r