Added the heading counter div (#7124)

This commit is contained in:
Alex
2024-09-06 15:43:42 -07:00
committed by GitHub
parent e2eb190c98
commit b43bcb9a13
62 changed files with 91 additions and 97 deletions

View File

@@ -65,7 +65,7 @@
foreach ($email_queue as $row) {
//email class queue uuid
$array[$x]['checked'] = $row['checked'] ?? null;
$array[$x]['uuid'] = $row['email_queue_uuid'];
$array[$x]['uuid'] = $row['email_queue_uuid'];
// database class uuid
//$array['email_queue'][$x]['checked'] = $row['checked'];
@@ -161,7 +161,7 @@
$sql = "select ";
$sql .= "email_date, ";
$sql .= "to_char(timezone(:time_zone, email_date), 'DD Mon YYYY') as email_date_formatted, \n";
$sql .= "to_char(timezone(:time_zone, email_date), 'HH12:MI:SS am') as email_time_formatted, \n";
$sql .= "to_char(timezone(:time_zone, email_date), 'HH12:MI:SS am') as email_time_formatted, \n";
$sql .= "email_queue_uuid, ";
$sql .= "hostname, ";
$sql .= "email_from, ";
@@ -245,7 +245,7 @@
//show the content
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-email_queue']." (".$num_rows.")</b></div>\n";
echo " <div class='heading'><b>".$text['title-email_queue']."</b><div class='count'>".number_format($num_rows)."</div></div>\n";
echo " <div class='actions'>\n";
//if (permission_exists('email_queue_add')) {
// echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','name'=>'btn_add','link'=>'email_queue_edit.php']);
@@ -387,7 +387,6 @@
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
echo "</form>\n";
//test script
echo "<script>\n";
echo " $('#form_test').submit(function(event) {\n";
@@ -414,4 +413,5 @@
//include the footer
require_once "resources/footer.php";
?>
?>