~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/modules/search/templates/_resultform.php

  • Committer: Chad Heuschober
  • Date: 2011-06-06 13:37:45 UTC
  • mfrom: (1.1.1244 trunk)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110606133745-850mdvnjtv392zta
Pulled in most recent batch of changes from the cuny sps trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<form style="display: block;" action="<?php echo url_for('event/staffshift?id=' . $event_id) . '/' . $shift_id ?>" method="post" name="resultform">
2
 
<table class="staffTable">
 
2
<table class="staffTable" id="modalReloadable">
3
3
  <h3>Search Results:
4
4
    <?php
5
 
    $count = count($hits);
6
 
    if ($count == 0) {
7
 
      echo "No results found for '<strong>" . $searchquery . "</strong>'";
8
 
    } elseif ($count == 1) {
9
 
      echo "1 result found for '<strong>" . $searchquery . "</strong>':";
10
 
    } else {
11
 
      echo sprintf("%d results found", $count) . " for '<strong>" . $searchquery . "</strong>':";
12
 
    } ?></h3>
 
5
      $count = count($hits);
 
6
      if ($count == 0) {
 
7
        echo "No results found for '<strong>" . $searchquery . "</strong>'";
 
8
      } elseif ($count == 1) {
 
9
        echo "1 result found for '<strong>" . $searchquery . "</strong>':";
 
10
      } else {
 
11
        echo sprintf("%d results found", $count) . " for '<strong>" . $searchquery . "</strong>':";
 
12
      }
 
13
    ?>
 
14
  </h3>
13
15
 
14
16
 
15
17
  <?php
16
 
  
17
18
    foreach ($hits as $hit) {
18
19
      //  print_r($hit->model);
19
20
      //  print_r($results);
36
37
      //  );
37
38
    }
38
39
  ?>
39
 
  <input type="submit" name="Add" value="Add" id="add">
 
40
  <input class="generalButton" type="submit" name="Add" value="Add" id="add">
40
41
 
41
42
 
42
43
</table>