Zeile 705 | Zeile 705 |
---|
);
$page->output_nav_tabs($sub_tabs, 'manage_smilies');
|
);
$page->output_nav_tabs($sub_tabs, 'manage_smilies');
|
| $query = $db->simple_select("smilies", "COUNT(sid) as smilies"); $total_rows = $db->fetch_field($query, "smilies");
|
$pagenum = $mybb->get_input('page', MyBB::INPUT_INT); if($pagenum) { $start = ($pagenum-1) * 20;
|
$pagenum = $mybb->get_input('page', MyBB::INPUT_INT); if($pagenum) { $start = ($pagenum-1) * 20;
|
| $pages = ceil($total_rows / 20); if($pagenum > $pages) { $start = 0; $pagenum = 1; }
|
} else
|
} else
|
{
| {
|
$start = 0; $pagenum = 1; }
| $start = 0; $pagenum = 1; }
|
Zeile 743 | Zeile 752 |
---|
$table->construct_cell("<a href=\"index.php?module=config-smilies&action=edit&sid={$smilie['sid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-smilies&action=delete&sid={$smilie['sid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_smilie_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
|
$table->construct_cell("<a href=\"index.php?module=config-smilies&action=edit&sid={$smilie['sid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-smilies&action=delete&sid={$smilie['sid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_smilie_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
|
$table->construct_row();
| $table->construct_row();
|
}
if($table->num_rows() == 0)
| }
if($table->num_rows() == 0)
|
Zeile 753 | Zeile 762 |
---|
}
$table->output($lang->manage_smilies);
|
}
$table->output($lang->manage_smilies);
|
$query = $db->simple_select("smilies", "COUNT(sid) as smilies"); $total_rows = $db->fetch_field($query, "smilies");
| |
echo "<br />".draw_admin_pagination($pagenum, "20", $total_rows, "index.php?module=config-smilies&page={page}");
| echo "<br />".draw_admin_pagination($pagenum, "20", $total_rows, "index.php?module=config-smilies&page={page}");
|