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