diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e5a5a2fa..ff3afce87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -130,6 +130,9 @@ If you are coming from 26.08 or earlier, the database update still has to be run - Tickets: a closed ticket can no longer be changed, either from the ticket's windows or through the API. Merging is only offered between tickets of the same client. - Client portal: primary and technical contacts' Tickets page now opens on everyone's tickets at their company, with Mine to see only their own. The separate All tickets page is gone, and links to it land on Tickets. A ticket shows the client where it stands - Received, In progress, Waiting on you, On hold, Resolved or Closed - rather than your ticket statuses. - Client portal: invoices and quotes now open in the portal, where they used to open their guest link in a new tab. The links in your emails work as before. A quote answered in the portal records the contact's name and any note they left. Pay invoices pays the invoices ticked as one card payment, and the Pay drop-down on each invoice is gone (see Client portal). +- Client portal: only the primary contact can add or change contacts now, and give or turn off their portal access. Technical contacts still see the contacts, but can no longer add or edit them. A primary contact can turn access back on for someone you turned off, and it is logged and notified when they do. +- Client portal: turning off a contact's portal access, in ITFlow or in the portal, now signs them out at once. They used to stay signed in until their session ran out. +- Client portal: Certificates is now a tab of Domains & certificates, and links to it land there. A contact who opens a page they can't use is taken home with a message, where they used to be signed out. - Stripe: Refund on a Stripe payment now refunds that payment's amount, where it used to refund the whole card charge. A card payment from the client portal over several invoices is booked as a payment on each, so refund each invoice's part from that invoice. Stripe's fee for such a payment is recorded once, naming every invoice it paid. - Invoicing a ticket: - The invoice line now reads `Ticket TCK-123 - Subject - 10/14/2026`. It used to be a block of text with the agent, dates, contact, asset and time spent. You can still edit it before adding the line. @@ -675,7 +678,7 @@ If you are coming from 26.08 or earlier, the database update still has to be run - A cleared line's quick look says which statement it cleared on, and its Edit window keeps its amount, date and account as they are (see Breaking Changes, Accounts, transactions and transfers). - Reconciling needs write access to Financial, and undoing a reconciled statement full access. Agents with read access can look at the statements. - The demo data reconciles Operating Checking and the Business Visa to each month's statement through last month. -- **Client portal** (rebuilt: the look, home, tickets and billing) +- **Client portal** (rebuilt: the look, home, tickets, billing and Your IT) - A new look: a light top bar with your logo, or your company's initials on your theme colour, and the sections the contact can open - Home, Tickets, Billing for billing contacts, Your IT for technical contacts, and your custom links - with New ticket and their account menu. On a phone the sections sit in a bar along the bottom and a menu that slides in. Contacts can switch to dark mode from their account menu, and it stays that way. The welcome banner along the top of every page is gone. - Home shows what needs the contact first: tickets waiting on their reply or resolved for them to confirm, tasks waiting for their approval and invoices past due. Then their open tickets, what is owed with Pay invoices, the domains, certificates, licenses and warranties renewing in the next 45 days or lapsed in the last 30, the devices they use with any warranty that has run out or is about to, and your phone and email when they are set. - Tickets has tabs for Open, Waiting on you, Resolved, Closed and All, each with its count, a search by subject or number, and 20 to a page. Primary and technical contacts see their whole company's, with who raised each, and Mine for their own. @@ -691,7 +694,15 @@ If you are coming from 26.08 or earlier, the database update still has to be run - Cards & autopay: the saved cards, with expired ones marked and the recurring invoices each one pays, adding a card in Stripe's form straight after agreeing to it, removing one, and autopay for each recurring invoice, all on one page. - Home lists quotes waiting for an answer, and a past-due invoice opens that invoice. Ask us on an invoice, quote or recurring invoice starts a ticket with the subject filled in. - Pay invoices and Cards & autopay only show when Stripe is set up. Without it, an invoice says to use the payment details on it. - - The Your IT and account pages are in the new look and work as before. They are rebuilt in the stages to come. + - Devices has tabs by kind - Computers, Servers, Network, Phones & tablets and Other - each with its count, Everyone's or Mine, and a search by name, make, model, serial or who uses it. Each shows who uses it and where it is, with its warranty when it has run out or is about to. + - A device shows its make and model, serial, OS, who uses it, where it is, when it was bought and how old it is, its warranty, and its open tickets and licenses. Report a problem starts a ticket with the device picked, and Open goes to its link when it has one. Any contact can open the devices they use from Home. + - Licenses has tabs for All, Renewing soon (the next 30 days) and Expired, with how many seats are in use and when each renews. License keys are not shown. + - Domains & certificates: the domains with their registrar, DNS, web and mail hosts, when each expires and whether it renews by itself, and on its own tab the certificates with their domain, issuer and expiry. + - Documents lists the documents you share with the client, in tabs by folder, with a search that looks inside them. A document shows as written, with its tables and colours, and the files that came with it - a PDF or picture shown on the page, any file to open or download - ready to print, and Ask us about it starts a ticket. Primary and technical contacts can write a new document in the editor or upload a file (PDF, Word, OpenDocument, RTF or text), and you are notified of each. + - Contacts lists everyone at the company, the primary contact first, with their roles, and a search by name, email, title, department or phone. + - The primary contact manages their company's contacts: Add a person with their details, phone numbers and roles, and give them portal access with an emailed invite to set a password - or to sign in with Microsoft 365 when that is set up. A person's page shows whether they can sign in and when they last did, with Email the invite again, Turn off access and Left the company?, which turns off their access and starts an offboarding ticket. Each change is in the audit log, and you are notified when someone is added, given access, turned off or has left. + - Home: the renewals open the domain, certificate, license or device they are about, and each device opens its page. + - The account pages are in the new look and work as before. They are rebuilt next. ### Bug Fixes @@ -761,6 +772,10 @@ If you are coming from 26.08 or earlier, the database update still has to be run - Client Portal: on most pages the browser blocked the arrows on drop-downs, the close crosses and the editor setup, as the portal's security policy didn't allow them. - Client Portal: paying an invoice with a saved card didn't check the contact had billing access, and couldn't pay a partly paid invoice. A double click could charge the card twice. - Client Portal: the saved cards page asked Stripe about every card each time it opened, and showed an error instead of the cards when Stripe couldn't be reached. It started a Stripe checkout on every visit too, where it now starts one when Add a card is clicked. +- Client Portal: a technical contact could change the primary contact's details, including the email they sign in with, by changing the edit form. Contacts can only be changed by the primary contact now, never their own record or another primary contact's, and only their own company's. +- Client Portal: a contact whose portal access was turned off stayed signed in until their session ran out. +- Client Portal: documents added in the portal recorded the contact as their author in place of their portal user, so ITFlow showed the wrong person or no one. An uploaded file's name went into its document unescaped. +- Client Portal: a page turning a contact away after it had started could leave only the top bar on screen, as the redirect it fell back on was blocked by the portal's security policy. - Client Portal: a ticket rating could be saved as any value. Only Good and Bad, the two buttons the portal shows, are accepted now. The demo data rated tickets Great and Ok, which the portal never offers, and now uses Good and Bad. - Notifications that linked to a page did not open correctly from Admin pages. - Messages showed a backslash before apostrophes and quotes in names, or showed `&` instead of `&`. @@ -1090,6 +1105,13 @@ If you are coming from 26.08 or earlier, the database update still has to be run - `includes/billing_paper.php` takes `client` to leave out the agent-only note on a seat line. - `cron/nightly_tasks.php` reconciles Stripe fees by payment reference, so a card payment over several invoices gets one fee expense. `refund_payment_stripe` refunds the payment's amount. - CSS: `.itflow-portal-amount`, `-big-amount`, `-state-late`, `-outcome`, `-note`, `-payrow`, `-paybox`, `-methods`, `-method`, `-paybar`, `-stripe-element`, `-card-brand`, `-aging`, `-table` and `-receipt`, and print rules that leave only the document. +- Client portal Your IT: + - New pages: `client/asset.php` (`?id=`, within `portalAssetScopeSql()`, so a plain contact reaches the devices they use), `contact.php` (`?id=`, or `?new=1` for the primary contact) with its form in `client/includes/contact_form.php`, `document_add.php` (the editor, or `?upload=1` for a file) and `licenses.php` (`tab` `all`, `soon` or `expired`, and `q`). `assets.php` takes `tab` (`all`, `computers`, `servers`, `network`, `phones`, `other`), `scope=mine`, `q` and `page`; `domains.php` takes `tab=certificates`; `documents.php` takes `folder` (a folder's id, or 0 for those in none), `q` and `page`; `contacts.php` takes `q`. `certificates.php` redirects to `domains.php?tab=certificates`, and `contact_add.php` and `contact_edit.php` to `contact.php`. `ticket_add.php` takes `asset` to pick the device. + - `client/post.php`: `add_contact` and `edit_contact` are replaced by `portal_contact_save` (`contact_id`, 0 for new; the contact fields; `invite` and `method` for a new one), `portal_contact_access` (`contact_id`, `invite` or `off`, and `method`) and `portal_contact_left` (`contact_id`), all needing `contactCan('contacts_manage')` and refusing a primary contact or the contact's own record. A form that fails is kept in `$_SESSION['portal_contact_form']` for the page to fill back in. `client_add_document` and `client_upload_document` check `portalItGate()`, refuse a blank name or empty document, set `document_created_by` and `file_created_by` to the portal user and notify. + - `client/functions.php`: `contactCan('contacts_manage')` (the primary contact only), `portalItGate()` (primary or technical, and the module), `portalAssetScopeSql()`, `portalAssetGroups()`, `portalTile($icon, $size)`, `portalRenewalState($renewal, $active_label)`, `portalContactRoles($row)`, `portalContactAccess($row)` (`none`, `off`, `local` or `azure`, with a label, icon and class), `portalContactLastSignIn($user_id)`, `portalSignInMethods()`, `portalContactInvite($contact_id, $method, $by)` and `portalContactAccessOff($contact_id)`. The invite makes or turns back on the contact's portal user and, when email is set up, sends `login_reset.php`'s own set-password link, or the sign-in page for Microsoft 365. `enforceContactCan()` sends the contact home with a message rather than to logout. + - `client/includes/check_login.php` ends the session when the user has no sign-in method (`user_auth_method` not `local` or `azure`). + - `client/includes/header.php` starts output buffering, so a gate after `includes/inc_all.php` sends a real redirect. A page that sets `$portal_csp_inline_styles` before `includes/inc_all.php` gets `style-src 'self' 'unsafe-inline'` added to the portal's policy, for HTML from `documentHtmlPurify()`; `document.php` sets it. + - CSS: `.itflow-portal-tile` with `-sm` and `-lg` (the grey icon tiles), `.itflow-portal-roles`, `.itflow-portal-pdf` and `.itflow-portal-document`. The tiles in a list row are left off on phones. - Empty states: every list page sets `$empty_state` before including `includes/filter_footer.php`, and `includes/inc_empty_state.php` draws it with `emptyStateHtml()` (`functions/format.php`) when the list has nothing - `thing`, `icon`, `title`, `text`, `actions` (`label`, `modal` or `href`, `size`, `icon`; the first is the main one), `archived`, `view`, `filtered`, `views`, `match_title`, `match_text` and `clear_url`. `emptyStateFiltered($views)` reads the GET string for a search or filter, leaving out paging, sorting, `client_id`, `archived` and the page's views, and `emptyStateClearUrl($views)` is the page without them. `emptyStatePill($pills, $key, $default, $good)` builds a pill's own state from the page's pill array (`label`, `icon`, `title`, `alarm`), with a tick for `alarm` pills and the keys in `$good`. Files, notifications and racks call `emptyStateHtml()` in their own layout; files and notifications set `$empty_state_skip`. A page that sets nothing still gets one, worded from `$page_title`. The pages' own empty blocks (`.itflow-asset-empty` under a list) are gone. CSS: `.itflow-empty-state` with `-icon` (a grey round tile), `-title`, `-text` and `-actions`. - Removed unused helpers and files: - `credentialLink()`, `projectLink()`, `linkCounts()`, `assetContactAvatar()` and `clientOverviewPersonInitials()` diff --git a/client/asset.php b/client/asset.php new file mode 100644 index 000000000..25faf5919 --- /dev/null +++ b/client/asset.php @@ -0,0 +1,149 @@ + + +
+ "That device isn't here", 'text' => 'It may have been retired, or it is not one you can see.', 'icon' => 'fa-desktop', 'filtered' => false, + 'actions' => [['label' => $back[1], 'href' => $back[0], 'icon' => 'fa-arrow-left']]]) ?> +
+ escapeHtml($asset['asset_type']), + 'Make and model' => escapeHtml($what), + 'Serial number' => $asset['asset_serial'] !== '' && $asset['asset_serial'] !== null ? '' . escapeHtml($asset['asset_serial']) . '' : '', + 'Operating system' => escapeHtml($asset['asset_os']), + 'Used by' => !empty($asset['contact_name']) ? escapeHtml($asset['contact_name']) . (intval($asset['asset_contact_id']) === $session_contact_id ? ' (you)' : '') : '', + 'Location' => escapeHtml($asset['location_name'] ?? ''), + 'Purchased' => !empty($asset['asset_purchase_date']) ? escapeHtml(date('M j, Y', strtotime($asset['asset_purchase_date']))) . (assetAge($asset['asset_purchase_date']) !== '' ? ' (' . escapeHtml(assetAge($asset['asset_purchase_date'])) . ')' : '') : '', + 'Warranty' => $warranty ? portalStateBadge(['label' => $warranty['text'], 'icon' => 'fa-shield-alt', 'class' => ['danger' => 'itflow-portal-state-late', 'warning' => 'itflow-portal-state-you', 'success' => 'itflow-portal-state-resolved'][$warranty['tone']]]) : '', + 'Status' => escapeHtml($asset['asset_status']), +], function ($value) { + return trim((string) $value) !== ''; +}); +?> + + + +
+
+ +
+

+

+
+
+
+ + Open + + Report a problem +
+
+ +
+
+
+
+

Details

+
+
+ +

+ +
+ $value) { ?> +
+ +
+
+
+
+ +
+
+
+

Open tickets about it

+
+ + 'Nothing open', 'text' => 'Something wrong with it? Report a problem and we will pick it up.', 'icon' => 'fa-check', 'filtered' => false]) ?> + + + +
+ + +
+
+

Licenses on it

+ All licenses +
+
    + +
  • + +
    +
    +
    + +
  • + +
+
+ +
+
+ + $group) { + $count_sql[] = "COALESCE(SUM({$group['where']}), 0) AS `$key`"; +} +$counts = array_map('intval', mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT " . implode(', ', $count_sql) . " $from"))); + +$tab = isset($groups[$_GET['tab'] ?? '']) ? $_GET['tab'] : 'all'; +$total = $counts[$tab]; +$pages = max(1, (int) ceil($total / $per_page)); +$page = min(max(1, intval($_GET['page'] ?? 1)), $pages); +$offset = ($page - 1) * $per_page; + +$assets = mysqli_query($mysqli, "SELECT asset_id, asset_name, asset_type, asset_make, asset_model, asset_status, asset_warranty_expire, asset_contact_id, contact_name, location_name + $from AND {$groups[$tab]['where']} + ORDER BY asset_name ASC + LIMIT $per_page OFFSET $offset"); + +/** This page's address with some of its settings changed. */ +function assetsUrl(array $changes) { + global $tab, $q, $mine; + $params = array_merge(['tab' => $tab !== 'all' ? $tab : null, 'scope' => $mine ? 'mine' : null, 'q' => $q !== '' ? $q : null], $changes); + $params = array_filter($params, function ($v) { return $v !== null && $v !== ''; }); + return 'assets.php' . ($params ? '?' . http_build_query($params) : ''); +} ?> -
-
-

Assets

-
+
+
+

Devices

+

+
+ + +
+
-
+ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeModelSerialAssignedPurchaseWarrantyStatusURI
- -
- -
$asset_model" ?> - - - - - +
+ + + 'devices', 'filtered' => true, 'match_text' => 'Nothing here has “' . escapeHtml($q) . '” in its name, model, serial or person.', 'clear_url' => assetsUrl(['q' => null, 'page' => null])]) ?> + + 'No devices of yours', 'text' => 'Devices we have down as yours show here.', 'icon' => 'fa-desktop', 'filtered' => false]) ?> + + 'No devices yet', 'text' => 'The devices we look after for you show here.', 'icon' => 'fa-desktop', 'filtered' => false]) ?> + + +
+ + - -
- -
+ + 1) { ?> +
+ - of +
+ + +
+
+ + + - -

Web Certificates

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Certificate NameFQDNIssuerExpiry
- - - - - Renews automatically - -
- - -
- -
- - + Contacts +
+ "That person isn't here", 'text' => 'They may have been removed from your company\'s contacts.', 'icon' => 'fa-address-book', 'filtered' => false, + 'actions' => [['label' => 'All contacts', 'href' => 'contacts.php', 'icon' => 'fa-arrow-left']]]) ?> +
+ + +Contacts + + + +
+
+

Add a person

+

Someone new at - and whether they can sign in here

+
+
+
+
+ +
+
+ + + +
+
+ +
+

(you)' : '' ?>

+

+
+
+ + Your account + +
+ +
+
+ + + !empty($contact['contact_email']) ? '' . escapeHtml($contact['contact_email']) . '' : '', + 'Phone' => $phone !== '' ? '' . escapeHtml($phone) . '' : '', + 'Mobile' => $mobile !== '' ? '' . escapeHtml($mobile) . '' : '', + 'Title' => escapeHtml($contact['contact_title']), + 'Department' => escapeHtml($contact['contact_department']), + 'Location' => escapeHtml($contact['location_name'] ?? ''), + 'Roles' => escapeHtml(implode(', ', $roles)), + ], function ($v) { return trim((string) $v) !== ''; }); ?> +
+
+

Details

+
+
+
+ $fact) { ?> +
+ +
+ +

This is the company's primary contact - ask us to change who that is.

+ +

Change your own phone numbers and sign-in in Your account.

+ +
+
+ +
+ +
+ +
+
+

Portal access

+
+
+
+ + + + +
+ +

They can sign in here as and see .

+
+ + + + + +
+ +

Give them access and we email a link to sign in.

+
+ + + 1) { ?> +
+ +
+ + +
+
+ + + + +
+ +
+
+ +
+
+

Left the company?

+
+
+

We turn off their portal access now, and you tell us what else to close down - their email, accounts and devices - on a ticket.

+
+ + + +
+
+
+ + + +
+
+

Devices they use

+
+ +
+ +
+
+ + + + - - - -
-
- - -
- -
- - -
-
- -
- -
- - -
-
- - -
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
- -
- -
- - -
-
- - -
-
- - - - - - -
-
- - - -
- -
- - -
-
- -
- -
- - -
-
- - -
-
-
-
- > - -
-
-
-
-
-
- > - -
-
-
-
- -
- -
- - -
-
- - Cannot edit this contact"; } else { ?> - - -
-
- - - -
-
-

Contacts

-
- +
+
+

Contacts

+

The people at

+
+ + + Add a person + +
+
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
NameEmailRoles
+
+ + + 'people', 'filtered' => true, 'match_text' => 'Nobody here matches “' . escapeHtml($q) . '”.', 'clear_url' => 'contacts.php']) ?> + + 'No contacts yet', 'text' => '', 'icon' => 'fa-address-book', 'filtered' => false]) ?> + + +
- -
+ + + set('Cache.DefinitionImpl', null); // Disable cache by setting a non-existent directory or an invalid one -$purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]); -$purifier = new HTMLPurifier($purifier_config); - -// Check for a document ID -if (!isset($_GET['id']) && !intval($_GET['id'])) { - header("Location: documents.php"); - exit(); -} - -$document_id = intval($_GET['id']); -$sql_document = mysqli_query($mysqli, - "SELECT document_id, document_name, document_content, document_description - FROM documents - WHERE document_id = $document_id AND document_client_visible = 1 AND document_client_id = $session_client_id AND document_archived_at IS NULL - LIMIT 1" -); - -$row = mysqli_fetch_assoc($sql_document); - -if ($row) { - $document_id = intval($row['document_id']); - $document_name = escapeHtml($row['document_name']); - $document_content = $purifier->purify($row['document_content']); - $document_description = escapeHtml($row['document_description']); -} else { - header("Location: post.php?logout"); - exit(); -} - -// Check for associated files -$sql_files = mysqli_query($mysqli, - "SELECT f.file_id, f.file_name, f.file_reference_name, f.file_ext, f.file_size, f.file_mime_type - FROM files f - INNER JOIN document_files df ON f.file_id = df.file_id - WHERE df.document_id = $document_id AND f.file_client_id = $session_client_id - ORDER BY f.file_name ASC" -); - -?> - - - - 0) { - $file_row = mysqli_fetch_assoc($sql_files); - $file_id = intval($file_row['file_id']); - $file_name = escapeHtml($file_row['file_name']); - $file_ext = strtolower($file_row['file_ext']); - $file_size = intval($file_row['file_size']); - $file_mime_type = escapeHtml($file_row['file_mime_type']); - $file_size_formatted = formatBytes($file_size); - - $file_view_url = "file.php?file_id=$file_id&action=view"; - $file_download_url = "file.php?file_id=$file_id"; - - // For PDF files, display them inline - if ($file_ext == 'pdf') { - ?> -
-
- -
-
- -
-
- -
-
- -
-
- <?= $file_name ?> -
-
- -
-
-
-
-

- - - -
- -
-
-
-
-
- -
-
-
-

- Type: File
- Size: -

- Uploaded file: $file_name

$document_description

") { ?> -
- -
- -
-
-
-
- -
-
-

- -
-
+if (!$document) { ?> + Documents +
+ "That document isn't here", 'text' => 'It may have been moved or is no longer shared with you.', 'icon' => 'fa-folder-open', 'filtered' => false, + 'actions' => [['label' => 'All documents', 'href' => 'documents.php', 'icon' => 'fa-arrow-left']]]) ?> +
$ext === 'pdf' ? 'pdf' : 'image']; + break; + } } ?> +Documents + +
+
+

+

+ + · + Updated +

+
+
+ + Ask us about it +
+
+ + +
+ +
+ + + +
+ +
+ +
+ <?= escapeHtml($preview['file_name']) ?> +
+ + +')) !== '') { ?> +
+ +
+ +
+ 'This document is empty', 'text' => '', 'icon' => 'fa-file-alt', 'filtered' => false]) ?> +
+ + + +Documents + +
+
+

+

+
+
+ Write + Upload +
+
+ +
+
+
autocomplete="off" data-portal-once> + + +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ + +
+ +
+ + Drop the file here, or + +
+
PDF, Word, OpenDocument, RTF or text.
+
+ + +
+ + + +
+ + + +
+
+ + $row['folder_name'] !== '' ? $row['folder_name'] : 'Not in a folder', 'count' => intval($row['n'])]; + $all_count += intval($row['n']); +} +$folder = isset($_GET['folder']) && isset($folders[intval($_GET['folder'])]) ? intval($_GET['folder']) : null; + +$where = $visible . ($folder !== null ? " AND document_folder_id = $folder" : ''); +if ($q !== '') { + $q_sql = escapeSql($q); + $where .= " AND (document_name LIKE '%$q_sql%' OR document_description LIKE '%$q_sql%' OR document_content_raw LIKE '%$q_sql%')"; +} +$total = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FROM documents WHERE $where"))[0]); +$pages = max(1, (int) ceil($total / $per_page)); +$page = min(max(1, intval($_GET['page'] ?? 1)), $pages); +$offset = ($page - 1) * $per_page; + +$documents = mysqli_query($mysqli, "SELECT document_id, document_name, document_description, document_created_at, document_updated_at, folder_name, + (SELECT file_ext FROM document_files JOIN files ON files.file_id = document_files.file_id WHERE document_files.document_id = documents.document_id ORDER BY files.file_id LIMIT 1) AS file_ext + FROM documents + LEFT JOIN folders ON folder_id = document_folder_id AND folder_client_id = $session_client_id + WHERE $where + ORDER BY COALESCE(document_updated_at, document_created_at) DESC, document_name ASC + LIMIT $per_page OFFSET $offset"); + +/** This page's address with some of its settings changed. */ +function documentsUrl(array $changes) { + global $folder, $q; + $params = array_merge(['folder' => $folder, 'q' => $q !== '' ? $q : null], $changes); + $params = array_filter($params, function ($v) { return $v !== null && $v !== ''; }); + return 'documents.php' . ($params ? '?' . http_build_query($params) : ''); +} ?> -
-
-

Documents

+
+
+

Documents

+

Guides and records we share with you

-
+
+ + +
+ + +
+
- - + New document + Upload a file
-
-
- - - -
- - - - - - - - - - - - - - - - - - - -
NameUpdatedActions
-
- -
- -
- - · - -
-
-
-
- - - -
+ 1) { ?> +
-
+ + - -