Location: PHPKode > projects > Ixmati > ixmati/adv_search.php
<?php // -*-php-*-
/**
 * Advanced Search
 *
 * (c) Jorge (jordi) Adame
 *
 * hide@address.com hide@address.com
 */


require dirname(__FILE__)."/inc/inc.php";
function main(){
  global  $smarty;
  $smarty->display("adv_search.tpl");
}

function search(){
  global  $smarty;

  require_once dirname(__FILE__)."/inc/classes/advancedsearch.class.php";
  
  $as = new AdvancedSearch();

  $as->set_ins_id    ($_GET["ins_id"]);
  $as->set_asign     ($_GET["user"]);
  $as->set_queu      ($_GET["queu"]);
  $as->set_subprocess($_GET["sub_process"]);
  $as->set_task      ($_GET["task"]);
  $as->set_status    ($_GET["status"]);
  $as->set_client    ($_GET["client"]);
  $as->set_priority  ($_GET["priority"]);
  $as->set_cli_resp  ($_GET["cli_resp"]);
  $as->set_short_desc($_GET["short_desc"]);
  $as->set_long_desc ($_GET["long_desc"]);
  $as->set_limit     ($_GET["limit"]);


  $as->do_search();
  $smarty->assign("as", $as);

  $smarty->display("adv_search.tpl");
}

switch($_GET["what"]){
 case "search":
   search();
   break;
 default:
   main();
   break;
}
?>
Return current item: Ixmati