.vis1 { visibility:\"visible\" } .vis2 { visibility:\"hidden\" } \r\n"; $includes.=""; if ($useAJAX) { $includes.="\r\n"; } $includes.=""; $smarty->assign("includes",$includes); $smarty->assign("noAJAX",!$useAJAX); $onload="onLoad=\"javascript: ShowHideControls();\""; $smarty->assign("onload",$onload); if(@$_SESSION[$strTableName."_asearchtype"]=="or") { $smarty->assign("any_checked"," checked"); $smarty->assign("all_checked",""); } else { $smarty->assign("any_checked",""); $smarty->assign("all_checked"," checked"); } $editformats=array(); // sexo $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["sexo"]; $not=@$_SESSION[$strTableName."_asearchnot"]["sexo"]; $smarty->assign("value_sexo",@$_SESSION[$strTableName."_asearchfor"]["sexo"]); $smarty->assign("value1_sexo",@$_SESSION[$strTableName."_asearchfor2"]["sexo"]); } if($not) $smarty->assign("not_sexo"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_sexo",$searchtype); // edit format $editformats["sexo"]="Lookup wizard"; // estadoCivil $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["estadoCivil"]; $not=@$_SESSION[$strTableName."_asearchnot"]["estadoCivil"]; $smarty->assign("value_estadoCivil",@$_SESSION[$strTableName."_asearchfor"]["estadoCivil"]); $smarty->assign("value1_estadoCivil",@$_SESSION[$strTableName."_asearchfor2"]["estadoCivil"]); } if($not) $smarty->assign("not_estadoCivil"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_estadoCivil",$searchtype); // edit format $editformats["estadoCivil"]="Lookup wizard"; // dataNascimento $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["dataNascimento"]; $not=@$_SESSION[$strTableName."_asearchnot"]["dataNascimento"]; $smarty->assign("value_dataNascimento",@$_SESSION[$strTableName."_asearchfor"]["dataNascimento"]); $smarty->assign("value1_dataNascimento",@$_SESSION[$strTableName."_asearchfor2"]["dataNascimento"]); } if($not) $smarty->assign("not_dataNascimento"," checked"); // write search options $options=""; $options.=""; $options.=""; $options.=""; $options.=""; $options.=""; $options.=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_dataNascimento",$searchtype); // edit format $editformats["dataNascimento"]="Date"; // cidade $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["cidade"]; $not=@$_SESSION[$strTableName."_asearchnot"]["cidade"]; $smarty->assign("value_cidade",@$_SESSION[$strTableName."_asearchfor"]["cidade"]); $smarty->assign("value1_cidade",@$_SESSION[$strTableName."_asearchfor2"]["cidade"]); } if($not) $smarty->assign("not_cidade"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_cidade",$searchtype); // edit format $editformats["cidade"]="Lookup wizard"; // tempoExperiencia $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["tempoExperiencia"]; $not=@$_SESSION[$strTableName."_asearchnot"]["tempoExperiencia"]; $smarty->assign("value_tempoExperiencia",@$_SESSION[$strTableName."_asearchfor"]["tempoExperiencia"]); $smarty->assign("value1_tempoExperiencia",@$_SESSION[$strTableName."_asearchfor2"]["tempoExperiencia"]); } if($not) $smarty->assign("not_tempoExperiencia"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_tempoExperiencia",$searchtype); // edit format $editformats["tempoExperiencia"]="Lookup wizard"; // categoria $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["categoria"]; $not=@$_SESSION[$strTableName."_asearchnot"]["categoria"]; $smarty->assign("value_categoria",@$_SESSION[$strTableName."_asearchfor"]["categoria"]); $smarty->assign("value1_categoria",@$_SESSION[$strTableName."_asearchfor2"]["categoria"]); } if($not) $smarty->assign("not_categoria"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_categoria",$searchtype); // edit format $editformats["categoria"]="Lookup wizard"; // turnoEstuda $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["turnoEstuda"]; $not=@$_SESSION[$strTableName."_asearchnot"]["turnoEstuda"]; $smarty->assign("value_turnoEstuda",@$_SESSION[$strTableName."_asearchfor"]["turnoEstuda"]); $smarty->assign("value1_turnoEstuda",@$_SESSION[$strTableName."_asearchfor2"]["turnoEstuda"]); } if($not) $smarty->assign("not_turnoEstuda"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_turnoEstuda",$searchtype); // edit format $editformats["turnoEstuda"]="Lookup wizard"; // possuiOab $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["possuiOab"]; $not=@$_SESSION[$strTableName."_asearchnot"]["possuiOab"]; $smarty->assign("value_possuiOab",@$_SESSION[$strTableName."_asearchfor"]["possuiOab"]); $smarty->assign("value1_possuiOab",@$_SESSION[$strTableName."_asearchfor2"]["possuiOab"]); } if($not) $smarty->assign("not_possuiOab"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_possuiOab",$searchtype); // edit format $editformats["possuiOab"]="Lookup wizard"; // graduacao $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["graduacao"]; $not=@$_SESSION[$strTableName."_asearchnot"]["graduacao"]; $smarty->assign("value_graduacao",@$_SESSION[$strTableName."_asearchfor"]["graduacao"]); $smarty->assign("value1_graduacao",@$_SESSION[$strTableName."_asearchfor2"]["graduacao"]); } if($not) $smarty->assign("not_graduacao"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_graduacao",$searchtype); // edit format $editformats["graduacao"]="Lookup wizard"; // interesseTecnico $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["interesseTecnico"]; $not=@$_SESSION[$strTableName."_asearchnot"]["interesseTecnico"]; $smarty->assign("value_interesseTecnico",@$_SESSION[$strTableName."_asearchfor"]["interesseTecnico"]); $smarty->assign("value1_interesseTecnico",@$_SESSION[$strTableName."_asearchfor2"]["interesseTecnico"]); } if($not) $smarty->assign("not_interesseTecnico"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_interesseTecnico",$searchtype); // edit format $editformats["interesseTecnico"]="Lookup wizard"; // area $opt=""; $not=false; if(@$_SESSION[$strTableName."_search"]==2) { $opt=@$_SESSION[$strTableName."_asearchopt"]["area"]; $not=@$_SESSION[$strTableName."_asearchnot"]["area"]; $smarty->assign("value_area",@$_SESSION[$strTableName."_asearchfor"]["area"]); $smarty->assign("value1_area",@$_SESSION[$strTableName."_asearchfor2"]["area"]); } if($not) $smarty->assign("not_area"," checked"); // write search options $options=""; $options.=""; $searchtype = ""; $smarty->assign("searchtype_area",$searchtype); // edit format $editformats["area"]="Lookup wizard"; $linkdata=""; $linkdata .= "\r\n"; $smarty->assign("linkdata",$linkdata); $templatefile = "jos_chronoforms_1_search.htm"; if(function_exists("BeforeShowSearch")) BeforeShowSearch($smarty,$templatefile); $smarty->display($templatefile); ?>