2013-08-14 23:40:52 +02:00
|
|
|
<div id="deleteconfirm-modal" class="modal hide fade">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" role="dialog" aria-hidden="true"><i class="icon-remove"></i></button>
|
|
|
|
<h3><?php print $text_confirm; ?> <?php print $text_delete; ?></h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p><?php print $text_group_delete_confirm_message; ?> <span id="name">ERROR</span>?</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true"><?php print $text_close; ?></a>
|
|
|
|
<a href="index.php?route=group/remove&id=-1&name=Error&confirmed=0" class="btn btn-primary" id="id"><?php print $text_delete; ?></a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<form method="post" name="search1" action="index.php?route=group/list" class="form-inline pull-right">
|
|
|
|
<div class="input-append">
|
|
|
|
<input type="text" name="search" class="input-medium" value="<?php print $search; ?>" />
|
|
|
|
<input type="submit" class="btn" value="<?php print $text_search; ?>" />
|
|
|
|
</div>
|
2012-06-22 12:30:55 +02:00
|
|
|
</form>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<p><a href="index.php?route=group/add"><i class="icon-plus"></i> <?php print $text_add_new_group; ?></a></p>
|
2012-06-22 12:30:55 +02:00
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<h4><?php print $text_existing_groups; ?></h4>
|
2012-06-22 12:30:55 +02:00
|
|
|
|
|
|
|
<?php if(isset($groups) && count($groups) > 0){ ?>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="pagenav">
|
|
|
|
<?php if($page > 0){ ?><a href="index.php?route=group/list&page=0&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-left"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
|
|
|
|
<?php if($page > 0){ ?><a href="index.php?route=group/list&page=<?php print $prev_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-left"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
|
|
|
|
<?php print $groups[0][$sort]; ?> - <?php print $groups[count($groups)-1][$sort]; ?>
|
|
|
|
|
|
|
|
<?php if($total_groups >= $page_len*($page+1) && $total_groups > $page_len){ ?><a href="index.php?route=group/list&page=<?php print $next_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-right"></i><?php if($total_groups >= $page_len*($page+1) && $total_groups > $page_len){ ?></a><?php } ?>
|
|
|
|
|
|
|
|
<?php if($page < $total_pages){ ?><a href="index.php?route=group/list&page=<?php print $total_pages; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-right"></i><?php if($page < $total_pages){ ?></a><?php } ?>
|
2012-06-22 12:30:55 +02:00
|
|
|
</div>
|
|
|
|
|
2013-04-05 10:16:33 +02:00
|
|
|
<table class="table table-striped table-condensed" id="ss1">
|
|
|
|
<thead>
|
|
|
|
<tr class="domainrow">
|
2013-08-14 23:40:52 +02:00
|
|
|
<th><?php print $text_groupname; ?> <a href="index.php?route=group/list&sort=groupname&order=0"><i class="icon-chevron-up"></i></a> <a href="index.php?route=group/list&sort=groupname&order=1"><i class="icon-chevron-down"></i></a></th>
|
|
|
|
<th> </th>
|
|
|
|
<th> </th>
|
2013-04-05 10:16:33 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2012-06-22 12:30:55 +02:00
|
|
|
<?php foreach($groups as $group) { ?>
|
2013-04-05 10:16:33 +02:00
|
|
|
<tr class="domainrow">
|
2013-08-14 23:40:52 +02:00
|
|
|
<td><?php print $group['groupname']; ?></td>
|
|
|
|
<td><a href="index.php?route=group/edit&id=<?php print $group['id']; ?>"><i class="icon-edit"></i> <?php print $text_edit_or_view; ?></a></td>
|
|
|
|
<td><a href="index.php?route=group/remove&id=<?php print $group['id']; ?>&name=<?php print urlencode($group['groupname']); ?>" class="confirm-delete" data-id="<?php print $group['id']; ?>" data-name="<?php print $group['groupname']; ?>"><i class="icon-remove-sign"></i> <?php print $text_remove; ?></a></td>
|
2013-04-05 10:16:33 +02:00
|
|
|
</tr>
|
2012-06-22 12:30:55 +02:00
|
|
|
<?php } ?>
|
2013-04-05 10:16:33 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="pagenav">
|
|
|
|
|
|
|
|
<?php if($page > 0){ ?><a href="index.php?route=group/list&page=0&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-left"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
|
|
|
|
<?php if($page > 0){ ?><a href="index.php?route=group/list&page=<?php print $prev_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-left"></i><?php if($page > 0){ ?></a><?php } ?>
|
|
|
|
|
|
|
|
<?php print $groups[0][$sort]; ?> - <?php print $groups[count($groups)-1][$sort]; ?>
|
|
|
|
|
|
|
|
<?php if($total_groups >= $page_len*($page+1) && $total_groups > $page_len){ ?><a href="index.php?route=group/list&page=<?php print $next_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-angle-right"></i><?php if($total_groups >= $page_len*($page+1) && $total_groups > $page_len){ ?></a><?php } ?>
|
|
|
|
|
|
|
|
<?php if($page < $total_pages){ ?><a href="index.php?route=group/list&page=<?php print $total_pages; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?><i class="icon-double-angle-right"></i><?php if($page < $total_pages){ ?></a><?php } ?>
|
|
|
|
|
2012-06-22 12:30:55 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php } else { ?>
|
2013-04-05 10:16:33 +02:00
|
|
|
<div class="alert alert-error lead">
|
2012-06-22 12:30:55 +02:00
|
|
|
<?php print $text_not_found; ?>
|
2013-04-05 10:16:33 +02:00
|
|
|
</div>
|
2012-06-22 12:30:55 +02:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|