mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Closes Issue #38 - Next/Prev Template for admin area.
This commit is contained in:
parent
cf4b35a765
commit
288558494d
@ -149,7 +149,7 @@ class news_sub_ui extends e_admin_ui
|
||||
protected $pluginName = 'core';
|
||||
protected $table = "submitnews";
|
||||
protected $pid = "submitnews_id";
|
||||
protected $perPage = 20; //no limit
|
||||
protected $perPage = 10; //no limit
|
||||
protected $batchDelete = true;
|
||||
protected $formQuery = "mode=main&action=create";
|
||||
protected $listOrder = "submitnews_id desc";
|
||||
@ -281,7 +281,7 @@ class news_admin_ui extends e_admin_ui
|
||||
protected $pluginName = 'core';
|
||||
protected $table = "news";
|
||||
protected $pid = "news_id";
|
||||
protected $perPage = 20; //no limit
|
||||
protected $perPage = 10; //no limit
|
||||
protected $batchDelete = true;
|
||||
protected $batchCopy = true;
|
||||
protected $listOrder = "news_id desc";
|
||||
|
@ -2612,6 +2612,11 @@ class e_form
|
||||
$parms = 'total='.$total;
|
||||
$parms .= '&amount='.$amount;
|
||||
$parms .= '¤t='.$from;
|
||||
if(ADMIN_AREA)
|
||||
{
|
||||
$parms .= '&tmpl_prefix=admin';
|
||||
}
|
||||
|
||||
// NOTE - the whole url is double encoded - reason is to not break parms query string
|
||||
// 'np_query' should be proper (urlencode'd) url query string
|
||||
$url = rawurlencode($url.'?'.(varset($options['np_query']) ? str_replace(array('&', '&'), array('&', '&'), $options['np_query']).'&' : '').'from=[FROM]');
|
||||
|
@ -43,6 +43,8 @@ td.center, th.center { text-align:center }
|
||||
#cboxTitle { font-weight:bold; color: black }
|
||||
.chzn-container { border: 1px solid #ddd; }
|
||||
|
||||
div.nextprev { text-align: center; display:inline-block; width:100% }
|
||||
|
||||
|
||||
/*
|
||||
a.brand:hover img {
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
$NEXTPREV_TEMPLATE['default_start'] = '
|
||||
<!-- Start of Next/Prev -->
|
||||
<div class="nextprev">
|
||||
<div class="btn-group nextprev ">
|
||||
';
|
||||
|
||||
$NEXTPREV_TEMPLATE['default_end'] = '
|
||||
@ -22,22 +22,54 @@ $NEXTPREV_TEMPLATE['default_end'] = '
|
||||
';
|
||||
|
||||
//$NEXTPREV_TEMPLATE['default_nav_caption'] = '<span class="nexprev-caption center">{caption}</span> '; XXX - awaiting the new front-end themes & templates
|
||||
$NEXTPREV_TEMPLATE['default_nav_caption'] = NP_3.' ';
|
||||
$NEXTPREV_TEMPLATE['default_nav_caption'] = ''; // NP_3.' ';
|
||||
|
||||
$NEXTPREV_TEMPLATE['default_nav_first'] = '<a class="nextprev-item first" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_nav_prev'] = '<a class="nextprev-item prev" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_nav_last'] = '<a class="nextprev-item last" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_nav_next'] = '<a class="nextprev-item next" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_nav_first'] = '<a class="btn nextprev-item first" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_nav_prev'] = '<a class="btn nextprev-item prev" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_nav_last'] = '<a class="btn nextprev-item last" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_nav_next'] = '<a class="btn nextprev-item next" href="{url}" title="{url_label}">{label}</a>';
|
||||
|
||||
$NEXTPREV_TEMPLATE['default_items_start'] = '';
|
||||
$NEXTPREV_TEMPLATE['default_item'] = '<a class="nextprev-item" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_item_current'] = '<a class="nextprev-item current" href="#" onclick="return false;" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_item'] = '<a class="btn nextprev-item" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_item_current'] = '<a class="btn nextprev-item current active" href="#" onclick="return false;" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['default_items_end'] = '';
|
||||
|
||||
//$NEXTPREV_TEMPLATE['default_separator'] = '<span class="nextprev-sep"><!-- --></span>';
|
||||
$NEXTPREV_TEMPLATE['default_separator'] = ' ';
|
||||
|
||||
|
||||
// ########################## ADMIN TEMPLATE see admin-ui.
|
||||
|
||||
|
||||
$NEXTPREV_TEMPLATE['admin_start'] = '
|
||||
<!-- Start of Next/Prev -->
|
||||
<div class="btn-group nextprev ">
|
||||
';
|
||||
|
||||
$NEXTPREV_TEMPLATE['admin_end'] = '
|
||||
</div>
|
||||
<!-- End of Next/Prev -->
|
||||
';
|
||||
|
||||
//$NEXTPREV_TEMPLATE['admin_nav_caption'] = '<span class="nexprev-caption center">{caption}</span> '; XXX - awaiting the new front-end themes & templates
|
||||
$NEXTPREV_TEMPLATE['admin_nav_caption'] = ''; // NP_3.' ';
|
||||
|
||||
$NEXTPREV_TEMPLATE['admin_nav_first'] = '<a class="btn nextprev-item first" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['admin_nav_prev'] = '<a class="btn nextprev-item prev" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['admin_nav_last'] = '<a class="btn nextprev-item last" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['admin_nav_next'] = '<a class="btn nextprev-item next" href="{url}" title="{url_label}">{label}</a>';
|
||||
|
||||
$NEXTPREV_TEMPLATE['admin_items_start'] = '';
|
||||
$NEXTPREV_TEMPLATE['admin_item'] = '<a class="btn nextprev-item" href="{url}" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['admin_item_current'] = '<a class="btn nextprev-item current active" href="#" onclick="return false;" title="{url_label}">{label}</a>';
|
||||
$NEXTPREV_TEMPLATE['admin_items_end'] = '';
|
||||
|
||||
//$NEXTPREV_TEMPLATE['admin_separator'] = '<span class="nextprev-sep"><!-- --></span>';
|
||||
$NEXTPREV_TEMPLATE['admin_separator'] = ' ';
|
||||
|
||||
|
||||
// ######################################
|
||||
|
||||
/*
|
||||
* Dropdown page navigation, key prefix 'dropdown'
|
||||
* Shortcodes are lowercase (simple parser)
|
||||
|
Loading…
x
Reference in New Issue
Block a user