mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:40:13 +01:00
webui code cleanup
This commit is contained in:
parent
00be0effe7
commit
4703bedcfe
@ -4,6 +4,8 @@ class ControllerCommonLayoutemail extends Controller {
|
||||
|
||||
protected function index() {
|
||||
|
||||
$this->data['title'] = $this->document->title;
|
||||
|
||||
$this->template = "common/layout-email.tpl";
|
||||
|
||||
$this->render();
|
||||
|
@ -17,6 +17,8 @@ class ControllerGroupEmail extends Controller {
|
||||
|
||||
$this->load->model('group/group');
|
||||
|
||||
$this->document->title = $language->get('text_group_management');
|
||||
|
||||
$this->data['page'] = 0;
|
||||
$this->data['page_len'] = get_page_length();
|
||||
|
||||
|
@ -403,7 +403,7 @@ class ModelUserUser extends Model {
|
||||
foreach($group as $g) {
|
||||
$g = rtrim($g);
|
||||
|
||||
if(!isset($__g[$groups[$g]])) {
|
||||
if($g && !isset($__g[$groups[$g]])) {
|
||||
$query = $this->db->query("INSERT INTO `" . TABLE_GROUP_USER . "` (id, uid) VALUES(?,?)", array($groups[$g], (int)$uid));
|
||||
$__g[$groups[$g]] = 1;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div id="pagenav">
|
||||
<?php if($page > 0){ ?><a href="index.php?route=group/email&page=0&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> « <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php if($page > 0){ ?><a href="index.php?route=group/email&page=<?php print $prev_page; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> ‹ <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php print $emails[0][$sort]; ?> - <?php print $emails[count($emails)-1][$sort]; ?>
|
||||
<?php if(count($emails) > 0) { print $emails[0][$sort]; ?> - <?php print $emails[count($emails)-1][$sort]; } ?>
|
||||
<?php if($total >= $page_len*($page+1) && $total > $page_len){ ?><a href="index.php?route=group/email&page=<?php print $next_page; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> › <?php if($total >= $page_len*($page+1) && $total > $page_len){ ?></a><?php } ?>
|
||||
<?php if($page < $total_pages){ ?><a href="index.php?route=group/email&page=<?php print $total_pages; ?>&term=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user