Skip to content

Commit

Permalink
Merge pull request #332 from AppStateESS/dateSearch
Browse files Browse the repository at this point in the history
Add Searching By Date
  • Loading branch information
Stardog authored Jun 15, 2018
2 parents 9db9844 + c235e6a commit 291b7d3
Show file tree
Hide file tree
Showing 4 changed files with 9,561 additions and 3 deletions.
2 changes: 2 additions & 0 deletions class/UI/ResultsUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public function display()

$pagerContent = $pager->get();


// If there were no results, send the user back to the search interface
if (sizeof($pager->display_rows) == 0) {
\NQ::simple('intern', NotifyUI::WARNING,
Expand All @@ -140,6 +141,7 @@ public function display()
* Get the DBPager object.
* Search strings can be passed in too.
*/

private static function getPager($name = null, $deptId = null, $term = null,
$ugradMajor = null, $gradProg = null, $level = null, $type = null,
$campus = null, $loc = null, $state = null, $country = null,
Expand Down
14 changes: 13 additions & 1 deletion class/UI/SearchUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ public function display()

// State & Country search handeled in-browser


/*******************
* Workflow States *
*******************/
Expand All @@ -163,6 +162,19 @@ public function display()
************************/
// Handeled directly in the html template


/**************
* Date Range *
**************/
$form->addText('start_date');
$form->setLabel('start_date', 'Starting After');
$form->addCssClass('start_date', 'form-control');

$form->addText('end_date');
$form->setLabel('end_date', 'Ending Before');
$form->addCssClass('end_date', 'form-control');


$form->addSubmit('submit', 'Search');

// Javascript...
Expand Down
Loading

0 comments on commit 291b7d3

Please sign in to comment.