From 2eb19048abe2b2604f4ba64f1c00bb7adb3f9ae9 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 14 Mar 2025 16:51:15 +0100 Subject: [PATCH] add checking for revision date --- views/bootstrap/class.SetRevisors.php | 31 +++++++++++++++++++++------ 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/views/bootstrap/class.SetRevisors.php b/views/bootstrap/class.SetRevisors.php index 90bd3aa1e..9bef66cb0 100644 --- a/views/bootstrap/class.SetRevisors.php +++ b/views/bootstrap/class.SetRevisors.php @@ -13,11 +13,6 @@ * @version Release: @package_version@ */ -/** - * Include parent class - */ -//require_once("class.Bootstrap.php"); - /** * Class which outputs the html page for SetRevisors view * @@ -31,6 +26,26 @@ */ class SeedDMS_View_SetRevisors extends SeedDMS_Theme_Style { + function js() { /* {{{ */ + header('Content-Type: application/javascript; charset=UTF-8'); + parent::jsTranslations(array('js_form_error', 'js_form_errors')); +?> +function runValidation() { + $("#form1").validate({ + rules: { + startdate: { + required: true + }, + }, + messages: { + comment: "", + } + }); +} +runValidation(); +params['dms']; $user = $this->params['user']; @@ -44,6 +59,9 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Theme_Style { $overallStatus = $content->getStatus(); + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlAddHeader(''."\n", 'js'); + $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); $this->globalNavigation($folder); $this->contentStart(); @@ -69,7 +87,7 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Theme_Style { } ?> -
+ @@ -184,4 +202,3 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Theme_Style { $this->htmlEndPage(); } /* }}} */ } -?>