... |
... |
@@ -1,6 +4,3 @@ |
1 |
|
-Colección ordenada alfabéticamente tanto de juegos físicos como digitales de todos los sistemas. |
2 |
|
- |
3 |
|
- |
4 |
4 |
{{groovy}} |
5 |
5 |
// Conectar a la base de datos |
6 |
6 |
def db = groovy.sql.Sql.newInstance('jdbc:mysql://10.100.200.31:8285/games', 'root', 'xwiki', 'com.mysql.jdbc.Driver') |
... |
... |
@@ -38,6 +38,7 @@ |
38 |
38 |
<table> |
39 |
39 |
<thead> |
40 |
40 |
<tr> |
|
38 |
+ <th>ID</th> |
41 |
41 |
<th>TITULO</th> |
42 |
42 |
<th>SISTEMA</th> |
43 |
43 |
<th>COMPLETADO</th> |
... |
... |
@@ -48,13 +48,14 @@ |
48 |
48 |
""" |
49 |
49 |
|
50 |
50 |
// Recorrer las filas de la tabla de la base de datos y añadirlas a la tabla HTML |
51 |
|
-db.eachRow('SELECT * FROM games_list order by titulo asc;') { row -> |
|
49 |
+db.eachRow('SELECT * FROM games_list') { row -> |
52 |
52 |
table += """ |
53 |
53 |
<tr> |
|
52 |
+ <td>${row.id}</td> |
54 |
54 |
<td>${row.titulo}</td> |
55 |
55 |
<td>${row.sistema}</td> |
56 |
56 |
<td>${row.estado}</td> |
57 |
|
- <td><img src='/images_wiki/${row.caratula}' style='width: 112px; height: 154px;'/></td> |
|
56 |
+ <td><img src='/images_wiki/${row.caratula}' style='width: 100px; height: 125px;'/></td> |
58 |
58 |
</tr> |
59 |
59 |
""" |
60 |
60 |
} |