Debug v17
This commit is contained in:
parent
9966d605a2
commit
230c3d2752
@ -102,6 +102,7 @@ function printDropdownBookmarksList()
|
|||||||
$listbtn .= img_picto('', 'edit', 'class="paddingright opacitymedium"').$langs->trans('EditBookmarks').'</a>';
|
$listbtn .= img_picto('', 'edit', 'class="paddingright opacitymedium"').$langs->trans('EditBookmarks').'</a>';
|
||||||
|
|
||||||
$bookmarkList = '';
|
$bookmarkList = '';
|
||||||
|
$bookmarkNb = 0;
|
||||||
// Menu with list of bookmarks
|
// Menu with list of bookmarks
|
||||||
$sql = "SELECT rowid, title, url, target FROM ".MAIN_DB_PREFIX."bookmark";
|
$sql = "SELECT rowid, title, url, target FROM ".MAIN_DB_PREFIX."bookmark";
|
||||||
$sql .= " WHERE (fk_user = ".((int) $user->id)." OR fk_user is NULL OR fk_user = 0)";
|
$sql .= " WHERE (fk_user = ".((int) $user->id)." OR fk_user is NULL OR fk_user = 0)";
|
||||||
@ -116,6 +117,7 @@ function printDropdownBookmarksList()
|
|||||||
$bookmarkList .= dol_escape_htmltag($obj->title);
|
$bookmarkList .= dol_escape_htmltag($obj->title);
|
||||||
$bookmarkList .= '</a>';
|
$bookmarkList .= '</a>';
|
||||||
$i++;
|
$i++;
|
||||||
|
$bookmarkNb++;
|
||||||
}
|
}
|
||||||
$bookmarkList .= '</div>';
|
$bookmarkList .= '</div>';
|
||||||
|
|
||||||
@ -141,6 +143,7 @@ function printDropdownBookmarksList()
|
|||||||
$searchForm .= dol_escape_htmltag($obj->title);
|
$searchForm .= dol_escape_htmltag($obj->title);
|
||||||
$searchForm .= '</option>';
|
$searchForm .= '</option>';
|
||||||
$i++;
|
$i++;
|
||||||
|
$bookmarkNb++;
|
||||||
}
|
}
|
||||||
$searchForm .= '</select>';
|
$searchForm .= '</select>';
|
||||||
}
|
}
|
||||||
@ -200,13 +203,15 @@ function printDropdownBookmarksList()
|
|||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
|
|
||||||
$html .= '
|
if ($bookmarkNb) {
|
||||||
<!-- Menu Body -->
|
$html .= '
|
||||||
<div class="bookmark-body dropdown-body">
|
<!-- Menu Body -->
|
||||||
'.$bookmarkList.'
|
<div class="bookmark-body dropdown-body">
|
||||||
<span id="top-bookmark-search-nothing-found" class="hidden-search-result opacitymedium">'.dol_escape_htmltag($langs->trans("NoBookmarkFound")).'</span>
|
'.$bookmarkList.'
|
||||||
</div>
|
<span id="top-bookmark-search-nothing-found" class="hidden-search-result opacitymedium">'.dol_escape_htmltag($langs->trans("NoBookmarkFound")).'</span>
|
||||||
';
|
</div>
|
||||||
|
';
|
||||||
|
}
|
||||||
|
|
||||||
$html .= '<!-- script to open/close the popup -->
|
$html .= '<!-- script to open/close the popup -->
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user