-
+
0 && ($login == $create_by || $single_user == 'Y' || $is_admin)) { ?>
diff --git a/edit_entry_handler.php b/edit_entry_handler.php
index c2123fe1c..d0eae6339 100644
--- a/edit_entry_handler.php
+++ b/edit_entry_handler.php
@@ -1290,10 +1290,10 @@ function sort_byday( $a, $b ) {
echo
// Allow them to override a conflict if server settings allow it.
( ! empty( $ALLOW_CONFLICT_OVERRIDE ) && $ALLOW_CONFLICT_OVERRIDE == 'Y' ? '
-
' : '' ) . '
-
+
' : '' ) . '
+
';
} else
diff --git a/edit_report.php b/edit_report.php
index bf3ac87c6..c01e91d79 100644
--- a/edit_report.php
+++ b/edit_report.php
@@ -325,13 +325,15 @@ function print_options ( $textarea, $option ) {
//}
echo '
diff --git a/edit_template.php b/edit_template.php
index b542642ec..eef7631ab 100644
--- a/edit_template.php
+++ b/edit_template.php
@@ -131,14 +131,13 @@
' : '' ) . '
-
-
'
+
+
'
. ( ! empty ( $user ) ? '
-
'
- : '' ) . '
+
' : '' ) . '
' ) . "\n" . print_trailer ( false, true, true );
?>
diff --git a/export.php b/export.php
index c4748f620..8d50698d2 100644
--- a/export.php
+++ b/export.php
@@ -106,8 +106,8 @@
- |
+ |
';
diff --git a/groups.php b/groups.php
index e7a96da86..a480fabfd 100644
--- a/groups.php
+++ b/groups.php
@@ -41,7 +41,8 @@
-
+
-
+
@@ -111,8 +114,13 @@
@@ -142,8 +150,13 @@
';
diff --git a/import.php b/import.php
index 7e8703342..f05ad035e 100644
--- a/import.php
+++ b/import.php
@@ -173,7 +173,8 @@ function print_categories() {
print_categories();
echo '
-
+
';
}
echo print_trailer();
diff --git a/includes/dbtable.php b/includes/dbtable.php
index d81809fea..989ac510d 100644
--- a/includes/dbtable.php
+++ b/includes/dbtable.php
@@ -132,8 +132,8 @@ function dbtable_to_html ( $tablear, $valuesar, $action = '', $formname = '',
return $ret . ( empty ( $actionlabel ) ? '' : '
- |
+ |
' ) . '
diff --git a/includes/js/dblclick_add.js b/includes/js/dblclick_add.js
index 7c925ebfa..49af84807 100644
--- a/includes/js/dblclick_add.js
+++ b/includes/js/dblclick_add.js
@@ -1,8 +1,14 @@
-
-// Function that will send user to the add event page.
-// This is typically invoked as the ondblclick event handler.
-function dblclick_add( date, name, hour, minute ) {
+/**
+ * @description Send user to the add event page. Typically invoked as the ondblclick event handler.
+ * @author Craig Knudsen
+ * @date 2023-10-05
+ * @param {int} date
+ * @param {string} name
+ * @param {int} hour
+ * @param {int} minute
+ */
+function dblclick_add ( date, name, hour, minute ) {
window.location.href = 'edit_entry.php?date=' + date + '&defusers=' + name
+ ( hour ? '&hour=' + hour + '&minute='
- + ( typeof( minute ) != 'undefined' ? minute : 0 ) : '' );
+ + ( typeof ( minute ) !== 'undefined' ? minute : 0 ) : '' );
}
diff --git a/layers.php b/layers.php
index 38104c469..b6baaa6ec 100644
--- a/layers.php
+++ b/layers.php
@@ -38,7 +38,6 @@
$duplicatesStr = translate('Duplicates');
$editLayerStr = translate('Edit layer');
$editStr = translate('Edit');
-$enableLayersStr = translate('Enable layers');
$layerStr = translate('Layer');
$LAYERS_DISABLED = translate('Layers are currently disabled.');
$LAYERS_ENABLED = translate('Layers are currently enabled.');
@@ -87,8 +86,14 @@
- " id="enablebutton" >
- " id="disablebutton">
+
+
diff --git a/pref.php b/pref.php
index 38bf23878..0f349f1bb 100644
--- a/pref.php
+++ b/pref.php
@@ -209,7 +209,8 @@ function save_pref( $prefs, $src) {
$resetConfirm = str_replace("XXX", $user, $resetConfirm);
?>
\n";
@@ -160,10 +159,10 @@
-
+
|
diff --git a/register.php b/register.php
index db90fd485..db83d9056 100644
--- a/register.php
+++ b/register.php
@@ -371,7 +371,7 @@ function generate_password()
function valid_form() {
validform = true;
- $(':input[type="submit"]').prop('disabled', false);
+ document.querySelector(':button[type="submit"]').prop('disabled', false);
if ($('#upassword1').length && $('#upassword1').val().length == 0) {
$('#infoMessage').html(xlate['inputPassword']);
$('#main-dialog-alert').show();
@@ -404,7 +404,7 @@ function valid_form() {
checkers('uemail', 'email');
}
- $(':input[type="submit"]').prop('disabled', !validform);
+ document.querySelector(':button[type="submit"]').prop('disabled', !validform);
return validform;
}
@@ -430,14 +430,14 @@ function(data, status) {
$('#main-dialog-alert').show();
validform = false;
if(!validform) {
- $(':input[type="submit"]').prop('disabled', true);
+ document.querySelector(':button[type="submit"]').prop('disabled', true);
}
return;
}
if(!validform) {
- $(':input[type="submit"]').prop('disabled', true);
+ document.querySelector(':button[type="submit"]').prop('disabled', true);
} else {
- $('#main-dialog-alert').hide();
+ document.querySelector('#main-dialog-alert').hide();
}
});
}
diff --git a/reject_entry.php b/reject_entry.php
index 48e69f58e..1a6968783 100644
--- a/reject_entry.php
+++ b/reject_entry.php
@@ -28,8 +28,8 @@
. '
- |
+ |
'
diff --git a/remotecal_mgmt.php b/remotecal_mgmt.php
index 648fcf849..74f23a4fc 100644
--- a/remotecal_mgmt.php
+++ b/remotecal_mgmt.php
@@ -96,7 +96,8 @@
-
+
@@ -147,8 +148,11 @@
@@ -178,8 +182,12 @@
@@ -211,8 +219,12 @@
|
diff --git a/resourcecal_mgmt.php b/resourcecal_mgmt.php
index efa6d3e32..542b971f3 100644
--- a/resourcecal_mgmt.php
+++ b/resourcecal_mgmt.php
@@ -72,7 +72,8 @@