| 5 | | <div id="charging" style="display:none;"><?php echo $html->image('static/loading.gif', array("alt"=>"Loading")); ?></div> |
| 6 | | |
| 7 | | <div id="already"> |
| 8 | | |
| 9 | | <?php |
| 10 | | if ( !$othAuth->user('username') ) |
| 11 | | { |
| 12 | | $html->link('You are not logged in', '/users/login'); |
| 13 | | exit(); |
| 14 | | } |
| 15 | | |
| 16 | | echo $html->formTag(null, 'post', array('onsubmit'=>'return false')); |
| 17 | | |
| 18 | | echo $form->labelTag('Message/string', 'Search user:' ). '<br />'; |
| 19 | | |
| 20 | | echo $html->input('Message/string', array("size" => 30, "maxlength" => 45)); |
| 21 | | |
| 22 | | echo $ajax->submit('Search', array("url" => "/messages/search/", |
| 23 | | "update"=>"updater", |
| 24 | | "loading" => "Element.show('charging');Element.hide('updater')", |
| 25 | | "complete" => "Element.hide('charging');Effect.Appear('updater')" |
| 26 | | )); |
| 27 | | ?> |
| 28 | | </form> |
| 29 | | |
| 30 | | <br /><br /> |