|
@@ -135,9 +135,10 @@
|
|
}
|
|
}
|
|
|
|
|
|
//show the content
|
|
//show the content
|
|
- echo "<div class='action_bar sub'>\n";
|
|
|
|
- echo " <div class='heading'><b>".$text['header-domain_settings']." (".$num_rows.")</b></div>\n";
|
|
|
|
|
|
+ echo "<div class='action_bar' id='action_bar_sub'>\n";
|
|
|
|
+ echo " <div class='heading'><b id='heading_sub'>".$text['header-domain_settings']." (".$num_rows.")</b></div>\n";
|
|
echo " <div class='actions'>\n";
|
|
echo " <div class='actions'>\n";
|
|
|
|
+ echo button::create(['type'=>'button','id'=>'action_bar_sub_button_back','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'style'=>'margin-right: 15px; display: none;','link'=>'domains.php']);
|
|
if (permission_exists('domain_setting_add')) {
|
|
if (permission_exists('domain_setting_add')) {
|
|
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>PROJECT_PATH."/core/domain_settings/domain_setting_edit.php?domain_uuid=".urlencode($domain_uuid)]);
|
|
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>PROJECT_PATH."/core/domain_settings/domain_setting_edit.php?domain_uuid=".urlencode($domain_uuid)]);
|
|
}
|
|
}
|
|
@@ -325,4 +326,21 @@
|
|
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
|
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
|
echo "</form>\n";
|
|
echo "</form>\n";
|
|
|
|
|
|
|
|
+//make sub action bar sticky
|
|
|
|
+ echo "<script>\n";
|
|
|
|
+
|
|
|
|
+ echo " window.addEventListener('scroll', function(){\n";
|
|
|
|
+ echo " action_bar_scroll('action_bar_sub', 300, heading_modify, heading_restore);\n";
|
|
|
|
+ echo " }, false);\n";
|
|
|
|
+
|
|
|
|
+ echo " function heading_modify() {\n";
|
|
|
|
+ echo " document.getElementById('action_bar_sub_button_back').style.display = 'inline-block';\n";
|
|
|
|
+ echo " }\n";
|
|
|
|
+
|
|
|
|
+ echo " function heading_restore() {\n";
|
|
|
|
+ echo " document.getElementById('action_bar_sub_button_back').style.display = 'none';\n";
|
|
|
|
+ echo " }\n";
|
|
|
|
+
|
|
|
|
+ echo "</script>\n";
|
|
|
|
+
|
|
?>
|
|
?>
|