Document * Templates and the template's page. When the client is picked, what the * template asks for - the site and contact its placeholders come from, and its * fill-ins - is drawn under it (agent/js/document_template_make.js). It goes in * the client's Files, at the top level, and opens (add_document_from_template, * agent/post/document.php). &client_id= picks the client - from the * template's list of clients missing one. */ require_once '../../includes/modal_header.php'; $template = documentTemplateRow($_GET['id'] ?? 0); $picked_client_id = intval($_GET['client_id'] ?? 0); ob_start(); if (!$template || $template['document_template_archived_at']) { ?>