set initial document status

This commit is contained in:
Uwe Steinmann 2015-06-02 10:02:46 +02:00
parent 86f641c3b0
commit d9d4d89a27
3 changed files with 14 additions and 1 deletions

View File

@ -136,6 +136,8 @@ class Settings { /* {{{ */
var $_enableNotificationWorkflow = false;
// preset expiration date
var $_presetExpirationDate = "";
// initial document status
var $_initialDocumentStatus = S_RELEASED;
// the name of the versioning info file created by the backup tool
var $_versioningFileName = "versioning_info.txt";
// the mode of workflow
@ -499,6 +501,7 @@ class Settings { /* {{{ */
$this->_enableOwnerRevApp = Settings::boolval($tab["enableOwnerRevApp"]);
$this->_enableSelfRevApp = Settings::boolval($tab["enableSelfRevApp"]);
$this->_presetExpirationDate = strval($tab["presetExpirationDate"]);
$this->_initialDocumentStatus = intval($tab["initialDocumentStatus"]);
$this->_versioningFileName = strval($tab["versioningFileName"]);
$this->_workflowMode = strval($tab["workflowMode"]);
$this->_enableAcknowledgeWorkflow = strval($tab["enableAcknowledgeWorkflow"]);
@ -774,8 +777,8 @@ class Settings { /* {{{ */
$this->setXMLAttributValue($node, "enableOwnerRevApp", $this->_enableOwnerRevApp);
$this->setXMLAttributValue($node, "enableSelfRevApp", $this->_enableSelfRevApp);
$this->setXMLAttributValue($node, "presetExpirationDate", $this->_presetExpirationDate);
$this->setXMLAttributValue($node, "initialDocumentStatus", $this->_initialDocumentStatus);
$this->setXMLAttributValue($node, "versioningFileName", $this->_versioningFileName);
$this->setXMLAttributValue($node, "presetExpirationDate", $this->_presetExpirationDate);
$this->setXMLAttributValue($node, "workflowMode", $this->_workflowMode);
$this->setXMLAttributValue($node, "enableAcknowledgeWorkflow", $this->_enableAcknowledgeWorkflow);
$this->setXMLAttributValue($node, "enableRevisionWorkflow", $this->_enableRevisionWorkflow);

View File

@ -148,6 +148,7 @@ if ($action == "saveSettings")
// SETTINGS - ADVANCED - EDITION
$settings->_versioningFileName = $_POST["versioningFileName"];
$settings->_presetExpirationDate = $_POST["presetExpirationDate"];
$settings->_initialDocumentStatus = $_POST["initialDocumentStatus"];
$settings->_workflowMode = $_POST["workflowMode"];
$settings->_enableAcknowledgeWorkflow = $_POST["enableAcknowledgeWorkflow"];
$settings->_enableRevisionWorkflow = $_POST["enableRevisionWorkflow"];

View File

@ -512,6 +512,15 @@ if(!is_writeable($settings->_configFilePath)) {
<td><?php printMLText("settings_presetExpirationDate");?>:</td>
<td><input name="presetExpirationDate" type="text" value="<?php echo $settings->_presetExpirationDate; ?>" /></td>
</tr>
<tr title="<?php printMLText("settings_initialDocumentStatus_desc");?>">
<td><?php printMLText("settings_initialDocumentStatus");?>:</td>
<td>
<select name="initialDocumentStatus" value="<?php echo $settings->_initialDocumentStatus; ?>" />
<option value="<?php echo S_RELEASED; ?>" <?php if ($settings->_initialDocumentStatus==S_RELEASED) echo "selected" ?>><?php printMLText("settings_initialDocumentStatus_released");?></option>
<option value="<?php echo S_DRAFT; ?>" <?php if ($settings->_initialDocumentStatus==S_DRAFT) echo "selected" ?>><?php printMLText("settings_initialDocumentStatus_draft");?></option>
</select>
</td>
</tr>
<tr title="<?php printMLText("settings_enableAdminRevApp_desc");?>">
<td><?php printMLText("settings_enableAdminRevApp");?>:</td>
<td><input name="enableAdminRevApp" type="checkbox" <?php if ($settings->_enableAdminRevApp) echo "checked" ?> /></td>