... |
... |
@@ -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') |
... |
... |
@@ -27,8 +27,8 @@ |
27 |
27 |
background-color: #f1f1f1; |
28 |
28 |
} |
29 |
29 |
img { |
30 |
|
- width: 50px; /* Ajusta el ancho de la imagen */ |
31 |
|
- height: 25px; /* Ajusta la altura de la imagen */ |
|
33 |
+ width: 111px; /* Ajusta el ancho de la imagen */ |
|
34 |
+ height: 151px; /* Ajusta la altura de la imagen */ |
32 |
32 |
object-fit: cover; /* Mantiene la relación de aspecto y recorta si es necesario */ |
33 |
33 |
} |
34 |
34 |
</style> |
... |
... |
@@ -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: 100px; height: 125px;'/></td> |
|
57 |
+ <td><img src='/images_wiki/${row.caratula}' style='width: 112px; height: 154px;'/></td> |
57 |
57 |
</tr> |
58 |
58 |
""" |
59 |
59 |
} |