forked from Wavyzz/dolibarr
FIX Pb into pagination scroll widget
FIX Style of previous-next card when using dolidroid
This commit is contained in:
@@ -5061,10 +5061,7 @@ class Form
|
|||||||
$next_ref = $object->ref_next?'<a data-role="button" data-icon="arrow-r" data-iconpos="right" href="'.$_SERVER["PHP_SELF"].'?'.$paramid.'='.urlencode($object->ref_next).$moreparam.'">'.(empty($conf->dol_use_jmobile)?'>':' ').'</a>':'';
|
$next_ref = $object->ref_next?'<a data-role="button" data-icon="arrow-r" data-iconpos="right" href="'.$_SERVER["PHP_SELF"].'?'.$paramid.'='.urlencode($object->ref_next).$moreparam.'">'.(empty($conf->dol_use_jmobile)?'>':' ').'</a>':'';
|
||||||
|
|
||||||
//print "xx".$previous_ref."x".$next_ref;
|
//print "xx".$previous_ref."x".$next_ref;
|
||||||
//if ($previous_ref || $next_ref || $morehtml) {
|
$ret.='<div style="vertical-align: middle"><div class="inline-block floatleft refid'.(($shownav && ($previous_ref || $next_ref))?' refidpadding':'').'">';
|
||||||
//$ret.='<table class="nobordernopadding" width="100%"><tr class="nobordernopadding"><td class="nobordernopadding">';
|
|
||||||
$ret.='<div style="vertical-align: middle"><div class="inline-block floatleft refid'.(($shownav && ($previous_ref || $next_ref))?' refidpadding':'').'">';
|
|
||||||
//}
|
|
||||||
|
|
||||||
$ret.=dol_htmlentities($object->$fieldref);
|
$ret.=dol_htmlentities($object->$fieldref);
|
||||||
if ($morehtmlref)
|
if ($morehtmlref)
|
||||||
|
|||||||
@@ -768,7 +768,7 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$out.='<a data-role="button"'.(! empty($links[$i][2])?' id="'.$links[$i][2].'"':'').' class="tab inline-block" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
$out.='<a data-role="button"'.(! empty($links[$i][2])?' id="'.$links[$i][2].'"':'').' class="tabunactive tab inline-block" href="'.$links[$i][0].'">'.$links[$i][1].'</a>'."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$out.='</div>';
|
$out.='</div>';
|
||||||
@@ -2847,7 +2847,7 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
|
|||||||
{
|
{
|
||||||
if ($totalnboflines) // If we know total nb of lines
|
if ($totalnboflines) // If we know total nb of lines
|
||||||
{
|
{
|
||||||
$maxnbofpage=(empty($conf->dol_optimize_smallscreen)?10:3); // nb before and after selected page
|
$maxnbofpage=(empty($conf->dol_optimize_smallscreen) ? 6 : 3); // nb before and after selected page + ... + first or last
|
||||||
|
|
||||||
$nbpages=ceil($totalnboflines/$conf->liste_limit);
|
$nbpages=ceil($totalnboflines/$conf->liste_limit);
|
||||||
$cpt=($page-$maxnbofpage);
|
$cpt=($page-$maxnbofpage);
|
||||||
@@ -2856,8 +2856,10 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
|
|||||||
if ($cpt>=1)
|
if ($cpt>=1)
|
||||||
{
|
{
|
||||||
$pagelist.= '<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><a '.(empty($conf->dol_use_jmobile)?'':'data-role="button" ').'href="'.$file.'?page=0'.$options.'&sortfield='.$sortfield.'&sortorder='.$sortorder.'">1</a></li>';
|
$pagelist.= '<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><a '.(empty($conf->dol_use_jmobile)?'':'data-role="button" ').'href="'.$file.'?page=0'.$options.'&sortfield='.$sortfield.'&sortorder='.$sortorder.'">1</a></li>';
|
||||||
if ($cpt >= 2) $pagelist.='<li><span class="inactive">...</span></li>';
|
if ($cpt > 2) $pagelist.='<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><span '.(empty($conf->dol_use_jmobile)?'class="inactive"':'data-role="button"').'>...</span></li>';
|
||||||
|
else if ($cpt == 2) $pagelist.='<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><a '.(empty($conf->dol_use_jmobile)?'':'data-role="button" ').'href="'.$file.'?page=1'.$options.'&sortfield='.$sortfield.'&sortorder='.$sortorder.'">2</a></li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if ($cpt==$page)
|
if ($cpt==$page)
|
||||||
@@ -2871,9 +2873,11 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so
|
|||||||
$cpt++;
|
$cpt++;
|
||||||
}
|
}
|
||||||
while ($cpt < $nbpages && $cpt<=$page+$maxnbofpage);
|
while ($cpt < $nbpages && $cpt<=$page+$maxnbofpage);
|
||||||
|
|
||||||
if ($cpt<$nbpages)
|
if ($cpt<$nbpages)
|
||||||
{
|
{
|
||||||
if ($cpt<$nbpages-1) $pagelist.= '<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><span '.(empty($conf->dol_use_jmobile)?'class="inactive"':'data-role="button"').'>...</span></li>';
|
if ($cpt<$nbpages-2) $pagelist.= '<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><span '.(empty($conf->dol_use_jmobile)?'class="inactive"':'data-role="button"').'>...</span></li>';
|
||||||
|
else if ($cpt == $nbpages-2) $pagelist.= '<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><a '.(empty($conf->dol_use_jmobile)?'':'data-role="button" ').'href="'.$file.'?page='.($nbpages-2).$options.'&sortfield='.$sortfield.'&sortorder='.$sortorder.'">'.($nbpages - 1).'</a></li>';
|
||||||
$pagelist.= '<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><a '.(empty($conf->dol_use_jmobile)?'':'data-role="button" ').'href="'.$file.'?page='.($nbpages-1).$options.'&sortfield='.$sortfield.'&sortorder='.$sortorder.'">'.$nbpages.'</a></li>';
|
$pagelist.= '<li'.(empty($conf->dol_use_jmobile)?' class="pagination"':'').'><a '.(empty($conf->dol_use_jmobile)?'':'data-role="button" ').'href="'.$file.'?page='.($nbpages-1).$options.'&sortfield='.$sortfield.'&sortorder='.$sortorder.'">'.$nbpages.'</a></li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1516,27 +1516,16 @@ a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
/*-moz-border-radius:6px 6px 0px 0px;
|
|
||||||
-webkit-border-radius:6px 6px 0px 0px;
|
|
||||||
border-radius:6px 6px 0px 0px;
|
|
||||||
|
|
||||||
background: rgb(<?php echo $colorbackvmenu2; ?>);
|
|
||||||
|
|
||||||
border-right: 1px solid #BBB;
|
|
||||||
border-left: 1px solid #BBB;
|
|
||||||
border-top: 1px solid #CCC;
|
|
||||||
*/
|
|
||||||
|
|
||||||
border-right: 1px solid transparent;
|
border-right: 1px solid transparent;
|
||||||
border-left: 1px solid transparent;
|
border-left: 1px solid transparent;
|
||||||
border-top: 1px solid transparent;
|
border-top: 1px solid transparent;
|
||||||
|
border-bottom: 0px !important;
|
||||||
-moz-border-radius:4px 4px 0 0;
|
-moz-border-radius:4px 4px 0 0;
|
||||||
-webkit-border-radius: 4px 4px 0 0;
|
-webkit-border-radius: 4px 4px 0 0;
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
|
|
||||||
background-image: none !important;
|
background-image: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabactive, a.tab#active {
|
.tabactive, a.tab#active {
|
||||||
color: #<?php echo $colortextbacktab; ?> !important;
|
color: #<?php echo $colortextbacktab; ?> !important;
|
||||||
background: rgb(<?php echo $colorbacktabcard1; ?>) !important;
|
background: rgb(<?php echo $colorbacktabcard1; ?>) !important;
|
||||||
@@ -2072,14 +2061,12 @@ div.pagination li.pagination a,
|
|||||||
div.pagination li.pagination span {
|
div.pagination li.pagination span {
|
||||||
<?php if (empty($conf->dol_use_jmobile)) { ?>
|
<?php if (empty($conf->dol_use_jmobile)) { ?>
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
<?php } ?>
|
border-color: #ccc;
|
||||||
margin-left: -1px;
|
margin-left: -1px;
|
||||||
line-height: 1.42857143;
|
line-height: 1.42857143;
|
||||||
color: #000;
|
color: #000;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
border-color: #ccc;
|
|
||||||
|
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
||||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
||||||
@@ -2087,6 +2074,7 @@ div.pagination li.pagination span {
|
|||||||
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
||||||
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
|
<?php } ?>
|
||||||
}
|
}
|
||||||
div.pagination li.pagination span.inactive {
|
div.pagination li.pagination span.inactive {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
@@ -3617,7 +3605,9 @@ ul.ulmenu {
|
|||||||
color: #<?php echo $colortexttitle; ?> !important;
|
color: #<?php echo $colortexttitle; ?> !important;
|
||||||
text-shadow: 1px 0px 1px #<?php echo $colorshadowtitle; ?>;
|
text-shadow: 1px 0px 1px #<?php echo $colorshadowtitle; ?>;
|
||||||
}
|
}
|
||||||
|
.ui-btn-icon-right {
|
||||||
|
border-right: 1px solid #ccc !important;
|
||||||
|
}
|
||||||
.ui-body-c {
|
.ui-body-c {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
@@ -3641,14 +3631,14 @@ ul.ulmenu {
|
|||||||
div.tabsElem a.tab {
|
div.tabsElem a.tab {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
.ui-controlgroup-horizontal .ui-btn.ui-first-child {
|
/*.ui-controlgroup-horizontal .ui-btn.ui-first-child {
|
||||||
-webkit-border-top-left-radius: 6px;
|
-webkit-border-top-left-radius: 6px;
|
||||||
border-top-left-radius: 6px;
|
border-top-left-radius: 6px;
|
||||||
}
|
}
|
||||||
.ui-controlgroup-horizontal .ui-btn.ui-last-child {
|
.ui-controlgroup-horizontal .ui-btn.ui-last-child {
|
||||||
-webkit-border-top-right-radius: 6px;
|
-webkit-border-top-right-radius: 6px;
|
||||||
border-top-right-radius: 6px;
|
border-top-right-radius: 6px;
|
||||||
}
|
}*/
|
||||||
.alilevel1 {
|
.alilevel1 {
|
||||||
color: #<?php echo $colortexttitle; ?> !important;
|
color: #<?php echo $colortexttitle; ?> !important;
|
||||||
text-shadow: 1px 0px 1px #<?php echo $colorshadowtitle; ?>;
|
text-shadow: 1px 0px 1px #<?php echo $colorshadowtitle; ?>;
|
||||||
|
|||||||
Reference in New Issue
Block a user