Subversion Repositories cheapmusic

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 7
Line 160... Line 160...
160
}
160
}
161
 
161
 
162
  // print summary/header on top of listing table
162
  // print summary/header on top of listing table
163
function printTableHeader()
163
function printTableHeader()
164
{
164
{
-
 
165
    global $handler;
-
 
166
    
165
	$str = '<form method="post" action="/index.php">';
167
	$str = '<form method="post" action="/index.php">';
-
 
168
    $str .= '<input type="hidden" name="sessionTab" value="' . $handler->getSessionTab() . '">';
166
	$str .= '<div class="d-flex flex-wrap justify-content-center p-2">';
169
    $str .= '<div class="d-flex flex-wrap justify-content-center p-2">';
167
	$str .= '    <button name="submit" value="All" type="' . getButtonType("All") . '" class="btn mx-2 ' . getBackgroundColor("All") . '"';
170
	$str .= '    <button name="submit" value="All" type="' . getButtonType("All") . '" class="btn mx-2 ' . getBackgroundColor("All") . '"';
168
	if ($_SESSION["lowestPrice"]["All"] <= 0) {
171
	if ($_SESSION["lowestPrice"]["All"] <= 0) {
169
		$str .= ' disabled';
172
		$str .= ' disabled';
170
	}
173
	}
171
	$str .= '><span class="display-5 font-weight-bolder">All</span><span class="display-7"> from</span><br><span class="display-6 font-weight-bolder">' . print_monetary($_SESSION["lowestPrice"]["All"], $_SESSION["buyer"]["Currency"]) . '</span>';
174
	$str .= '><span class="display-5 font-weight-bolder">All</span><span class="display-7"> from</span><br><span class="display-6 font-weight-bolder">' . print_monetary($_SESSION["lowestPrice"]["All"], $_SESSION["buyer"]["Currency"]) . '</span>';
Line 333... Line 336...
333
}
336
}
334
 
337
 
335
// print search filter modal with current selection
338
// print search filter modal with current selection
336
function printSearchFilterModal()
339
function printSearchFilterModal()
337
{
340
{
-
 
341
    global $handler;
-
 
342
    
338
	$str = '';
343
	$str = '';
339
	$str .= '<div class="modal fade" id="filterModal">';
344
	$str .= '<div class="modal fade" id="filterModal">';
340
	$str .= '    <div class="modal-dialog">';
345
	$str .= '    <div class="modal-dialog">';
341
	$str .= '        <div class="modal-content">';
346
	$str .= '        <div class="modal-content">';
342
	$str .= '';
347
	$str .= '';
343
	$str .= '            <div class="modal-header bg-primary">';
348
	$str .= '            <div class="modal-header bg-primary">';
344
	$str .= '                <h4 class="modal-title">Search Filters</h4>';
349
	$str .= '                <h4 class="modal-title">Search Filters</h4>';
345
	$str .= '            </div>';
350
	$str .= '            </div>';
346
	$str .= '';
351
	$str .= '';
347
	$str .= '            <form method="post" action="/index.php">';
352
	$str .= '            <form method="post" action="/index.php">';
-
 
353
    $str .= '                <input type="hidden" name="sessionTab" value="' . $handler->getSessionTab() . '">';
348
	$str .= '                <div class="modal-body">';
354
	$str .= '                <div class="modal-body">';
349
	$str .= '                    <div class="card-group">';
355
	$str .= '                    <div class="card-group">';
350
	$str .= '';
356
	$str .= '';
351
	$str .= '                        <div class="card m-2">';
357
	$str .= '                        <div class="card m-2">';
352
	$str .= '                            <div class="card-header font-weight-bold">Condition</div>';
358
	$str .= '                            <div class="card-header font-weight-bold">Condition</div>';