Update list.php
This commit is contained in:
parent
31fcfc5aa5
commit
851f623644
@ -17,29 +17,31 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/bookmarks/list.php
|
* \file htdocs/bookmarks/list.php
|
||||||
* \brief Page to display list of bookmarks
|
|
||||||
* \ingroup bookmark
|
* \ingroup bookmark
|
||||||
|
* \brief Page to display list of bookmarks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// Load Dolibarr environment
|
||||||
require '../main.inc.php';
|
require '../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
|
||||||
|
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('bookmarks', 'admin'));
|
$langs->loadLangs(array('bookmarks', 'admin'));
|
||||||
|
|
||||||
|
|
||||||
|
// Get Parameters
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$massaction = GETPOST('massaction', 'alpha');
|
$massaction = GETPOST('massaction', 'alpha');
|
||||||
$show_files = GETPOST('show_files', 'int');
|
$show_files = GETPOST('show_files', 'int');
|
||||||
$confirm = GETPOST('confirm', 'alpha');
|
$confirm = GETPOST('confirm', 'alpha');
|
||||||
$toselect = GETPOST('toselect', 'array');
|
$toselect = GETPOST('toselect', 'array');
|
||||||
$contextpage = GETPOST('contextpage', 'aZ') ?GETPOST('contextpage', 'aZ') : 'bookmarklist'; // To manage different context of search
|
$contextpage = GETPOST('contextpage', 'aZ') ?GETPOST('contextpage', 'aZ') : 'bookmarklist'; // To manage different context of search
|
||||||
|
$id = GETPOST("id", 'int');
|
||||||
// Security check
|
|
||||||
if (empty($user->rights->bookmark->lire)) {
|
|
||||||
restrictedArea($user, 'bookmarks');
|
|
||||||
}
|
|
||||||
$optioncss = GETPOST('optioncss', 'alpha');
|
$optioncss = GETPOST('optioncss', 'alpha');
|
||||||
|
|
||||||
|
|
||||||
// Load variable for pagination
|
// Load variable for pagination
|
||||||
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
||||||
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
||||||
@ -58,15 +60,24 @@ if (!$sortorder) {
|
|||||||
$sortorder = 'ASC';
|
$sortorder = 'ASC';
|
||||||
}
|
}
|
||||||
|
|
||||||
$id = GETPOST("id", 'int');
|
|
||||||
|
|
||||||
|
// Initialize Objects
|
||||||
$object = new Bookmark($db);
|
$object = new Bookmark($db);
|
||||||
|
|
||||||
|
|
||||||
|
// Security check
|
||||||
|
if (empty($user->rights->bookmark->lire)) {
|
||||||
|
restrictedArea($user, 'bookmarks');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Permissions
|
||||||
$permissiontoread = !empty($user->rights->bookmark->lire);
|
$permissiontoread = !empty($user->rights->bookmark->lire);
|
||||||
$permissiontoadd = !empty($user->rights->bookmark->creer);
|
$permissiontoadd = !empty($user->rights->bookmark->creer);
|
||||||
$permissiontodelete = !empty($user->rights->bookmark->supprimer);
|
$permissiontodelete = !empty($user->rights->bookmark->supprimer);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
@ -82,6 +93,7 @@ if ($action == 'delete') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user