Jelajahi Sumber

use proper buttons

Tim Fry 1 tahun lalu
induk
melakukan
7638c4da52
2 mengubah file dengan 53 tambahan dan 8 penghapusan
  1. 48 0
      app_languages.php
  2. 5 8
      maintenance.php

+ 48 - 0
app_languages.php

@@ -120,6 +120,54 @@ $text['label-message']['zh-cn'] = '';
 $text['label-message']['ja-jp'] = '';
 $text['label-message']['ja-jp'] = '';
 $text['label-message']['ko-kr'] = '';
 $text['label-message']['ko-kr'] = '';
 
 
+$text['button-register']['en-us'] = 'Register';
+$text['button-register']['en-gb'] = 'Register';
+$text['button-register']['ar-eg'] = '';
+$text['button-register']['de-at'] = '';
+$text['button-register']['de-ch'] = '';
+$text['button-register']['de-de'] = '';
+$text['button-register']['es-cl'] = '';
+$text['button-register']['es-mx'] = '';
+$text['button-register']['fr-ca'] = '';
+$text['button-register']['fr-fr'] = '';
+$text['button-register']['he-il'] = '';
+$text['button-register']['it-it'] = '';
+$text['button-register']['nl-nl'] = '';
+$text['button-register']['pl-pl'] = '';
+$text['button-register']['pt-br'] = '';
+$text['button-register']['pt-pt'] = '';
+$text['button-register']['ro-ro'] = '';
+$text['button-register']['ru-ru'] = '';
+$text['button-register']['sv-se'] = '';
+$text['button-register']['uk-ua'] = '';
+$text['button-register']['zh-cn'] = '';
+$text['button-register']['ja-jp'] = '';
+$text['button-register']['ko-kr'] = '';
+
+$text['button-logs']['en-us'] = 'Logs';
+$text['button-logs']['en-gb'] = 'Logs';
+$text['button-logs']['ar-eg'] = '';
+$text['button-logs']['de-at'] = '';
+$text['button-logs']['de-ch'] = '';
+$text['button-logs']['de-de'] = '';
+$text['button-logs']['es-cl'] = '';
+$text['button-logs']['es-mx'] = '';
+$text['button-logs']['fr-ca'] = '';
+$text['button-logs']['fr-fr'] = '';
+$text['button-logs']['he-il'] = '';
+$text['button-logs']['it-it'] = '';
+$text['button-logs']['nl-nl'] = '';
+$text['button-logs']['pl-pl'] = '';
+$text['button-logs']['pt-br'] = '';
+$text['button-logs']['pt-pt'] = '';
+$text['button-logs']['ro-ro'] = '';
+$text['button-logs']['ru-ru'] = '';
+$text['button-logs']['sv-se'] = '';
+$text['button-logs']['uk-ua'] = '';
+$text['button-logs']['zh-cn'] = '';
+$text['button-logs']['ja-jp'] = '';
+$text['button-logs']['ko-kr'] = '';
+
 $text['description-maintenance_logs']['en-us'] = 'Shows results from maintenance applications';
 $text['description-maintenance_logs']['en-us'] = 'Shows results from maintenance applications';
 $text['description-maintenance_logs']['en-gb'] = 'Shows results from maintenance applications';
 $text['description-maintenance_logs']['en-gb'] = 'Shows results from maintenance applications';
 $text['description-maintenance_logs']['ar-eg'] = '';
 $text['description-maintenance_logs']['ar-eg'] = '';

+ 5 - 8
maintenance.php

@@ -66,15 +66,12 @@ require_once dirname(__DIR__, 2) . '/resources/header.php';
 	echo "<div class='action_bar' id='action_bar'>";
 	echo "<div class='action_bar' id='action_bar'>";
 	echo "<div class='heading'><b>Maintenance (<?= count($maintenance_classes) ?>)</b></div>";
 	echo "<div class='heading'><b>Maintenance (<?= count($maintenance_classes) ?>)</b></div>";
 	echo "<div class='actions'>";
 	echo "<div class='actions'>";
-		echo "<form action='maintenance_logs.php'>";
-			echo "<button>Logs</button>";
-		echo "</form>";
-		echo "<form>";
-			echo "<button>Register</button>";
-			echo "<span><input id='search' type='text'/></span>";
-			echo "<button>Search</button>";
-		echo "</form>";
+		echo button::create(['type'=>'button','label'=>$text['button-logs'],'icon'=>'fas fa-scroll fa-fw','id'=>'btn_logs', 'link'=>'maintenance_logs.php']);
+		echo button::create(['type'=>'button','label'=>$text['button-register'],'icon'=>'fas fa-registered fa-fw','id'=>'btn_register']);
+		echo "<input type='text' class='txt list-search' name='search' id='search' value=\"".escape($search)."\" placeholder=\"".$text['label-search']."\" onkeydown=''>";
+		echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search']);
 	echo "</div>";
 	echo "</div>";
+	echo "<div style='clear: both;'></div>\n";
 	echo "<br/><br/>";
 	echo "<br/><br/>";
 	echo "<form id='form_list'>";
 	echo "<form id='form_list'>";
 		echo "<table class='list'>";
 		echo "<table class='list'>";