Enhance UI and functionality across multiple pages
- Added filter panels and search functionality to media, orders, partners, pricelists, products, products attributes, software versions, translations, and users pages. - Implemented security checks for create, update, and delete permissions on various pages. - Updated CSS styles for improved layout and responsiveness, including new styles for filter panels and buttons. - Refactored existing forms to utilize the new filter panel design for a more consistent user experience. - Adjusted API versioning in servicereport and servicereports pages for better compatibility. - Improved button icons for filter actions and form submissions for better user interaction.
This commit is contained in:
69
rmas.php
69
rmas.php
@@ -68,6 +68,16 @@ $view = '
|
||||
<p>'.($rmas_p ?? 'View, manage, and search RMA details.').'</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="title-actions">';
|
||||
|
||||
if ($create_allowed === 1){
|
||||
$view .= '<a href="index.php?page=rma_manage" class="btn">+</a>';
|
||||
}
|
||||
|
||||
$view .= '<button id="filter-toggle" class="btn alt" onclick="toggleFilters()">
|
||||
<i class="fa-solid fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
if (isset($success_msg)){
|
||||
@@ -77,38 +87,41 @@ $view .= ' <div class="msg success">
|
||||
<i class="fas fa-times"></i>
|
||||
</div>';
|
||||
}
|
||||
|
||||
$view .= '
|
||||
<div class="content-header responsive-flex-column pad-top-5">';
|
||||
if ($create_allowed ===1){
|
||||
$view .= '<a href="index.php?page=rma_manage" class="btn">'.($button_create_rma ?? 'Create RMA').'</a>';
|
||||
}
|
||||
$view .= '
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="page" value="rma">
|
||||
<div class="filters">
|
||||
<a href="#"><i class="fa-solid fa-filter"></i>'.$general_filters.'</a>
|
||||
<div class="list">
|
||||
<select name="status">
|
||||
<option value="" disabled selected>Active</option>
|
||||
<option value="0">'.$disabled.'</option>
|
||||
<option value="1">'.$enabled.'</option>
|
||||
</select>
|
||||
<button type="submit">'.$button_apply.'</button>
|
||||
|
||||
<div id="filter-panel" class="filter-panel" style="display: none;">
|
||||
<div class="filter-content">
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="page" value="rmas">
|
||||
<div class="filter-row">
|
||||
<div class="filter-group">
|
||||
<select name="status">
|
||||
<option value="" disabled selected>Active</option>
|
||||
<option value="0">'.$disabled.'</option>
|
||||
<option value="1">'.$enabled.'</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="filter-group search-group">
|
||||
<input type="text" name="search" placeholder="'.($rma_search ?? 'Search RMA...').'" value="">
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
<div class="filter-actions">
|
||||
<button type="submit" class="btn"><i class="fas fa-level-down-alt fa-rotate-90"></i></button>
|
||||
<a class="btn alt" href="index.php?page=rmas">'.$general_filters_clear.'</a>';
|
||||
|
||||
//SHOW DOWNLOAD TO EXCELL OPTION ONLY TO ADMIN USERS
|
||||
if ($_SESSION['permission'] == 3 || $_SESSION['permission'] == 4){
|
||||
$view .='<div class="filters">
|
||||
<a href="index.php?page=rma&download="><i class="fa-solid fa-download"></i></a>
|
||||
</div>';
|
||||
}
|
||||
$view .= '<div class="search">
|
||||
<label for="search">
|
||||
<input id="search" type="text" name="search" placeholder="'.($rma_search ?? 'Search RMA...').'" value="" class="responsive-width-100">
|
||||
<i class="fas fa-search"></i>
|
||||
</label>
|
||||
</div>
|
||||
</form>
|
||||
$view .= '<a class="btn alt" href="index.php?page=rmas&download=">
|
||||
<i class="fa-solid fa-download"></i> Download
|
||||
</a>';
|
||||
}
|
||||
|
||||
$view .= ' </div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user