Skip to content

Commit de34da5

Browse files
feat: aggiunta informazione sul numero di record
1 parent 15862bd commit de34da5

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

editor.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,15 @@
195195
echo '<span class="d-sm-inline">';
196196

197197
echo '
198-
<a class="btn btn-default'.($prev ? '' : ' disabled').'" href="'.base_path().'/editor.php?id_module='.$id_module.'&id_record='.$prev.'">
199-
<i class="fa fa-arrow-circle-left"></i>
200-
</a>
201-
<a class="btn btn-default'.($next ? '' : ' disabled').'" href="'.base_path().'/editor.php?id_module='.$id_module.'&id_record='.$next.'">
202-
<i class="fa fa-arrow-circle-right"></i>
203-
</a>
198+
<div class="btn-group">
199+
<a class="btn btn-default'.($prev ? '' : ' disabled').'" href="'.base_path().'/editor.php?id_module='.$id_module.'&id_record='.$prev.'">
200+
<i class="fa fa-arrow-circle-left"></i>
201+
</a>
202+
<span class="btn btn-default disabled">'.($key + 1).'/'.count($posizioni).'</span>
203+
<a class="btn btn-default'.($next ? '' : ' disabled').'" href="'.base_path().'/editor.php?id_module='.$id_module.'&id_record='.$next.'">
204+
<i class="fa fa-arrow-circle-right"></i>
205+
</a>
206+
</div>
204207
</span>';
205208

206209
echo '<div class="extra-buttons d-sm-inline">';

0 commit comments

Comments
 (0)