Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
Hello, is there a way to put a field in the login and use it as a filter on all tables?Best regards.
Yes, this can be done.
<INPUT name="filter" type="text">
2. In AfterSuccessfulLogin event save the entered value in session variable for later use.
$_SESSION["filter"] = addSlashes($_POST["filter"]);
addSlahes() function helps us prevent SQL injection.3. Now in event like After Table Initialized event you can add this filter to SQL query:
$query->addWhere("somefield='".$_SESSION["filter"]."'");