本文整理汇总了PHP中search::show_form方法的典型用法代码示例。如果您正苦于以下问题:PHP search::show_form方法的具体用法?PHP search::show_form怎么用?PHP search::show_form使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::show_form方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: search
include_once "footer.php";
exit;
}
$xpath = $common->path;
$xtemplate = $xpath . "templates/career/search_by_skill_result.html";
$file = $common->return_file_content($db_object, $xtemplate);
preg_match("/<{user_loopstart}>(.*?)<{user_loopend}>/s", $file, $match);
$match = $match[0];
for ($i = 0; $i < count($result); $i++) {
$user_id = $result[$i][rated_user];
$username = $common->name_display($db_object, $user_id);
$str .= preg_replace("/<{(.*?)}>/e", "\$\$1", $match);
}
$file = preg_replace("/<{user_loopstart}>(.*?)<{user_loopend}>/s", $str, $file);
$file = $common->direct_replace($db_object, $file, $xArray);
echo $file;
}
}
$obj = new search();
if ($fSubmit) {
$action = "search";
}
switch ($action) {
case NULL:
$obj->show_form($db_object, $common, $user_id, $default);
break;
case "search":
$obj->search_reports($db_object, $common, $user_id, $post_var, $error_msg);
break;
}
include_once "footer.php";
示例2: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: search.inc.php,v 1.1 2012-03-15 11:06:38 dgoron Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
die("no access");
}
require_once $class_path . "/search.class.php";
$sc = new search(true, "search_fields_empr");
print $sc->show_form("./circ.php?categ=search", "./circ.php?categ=search&sub=launch");
示例3: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: main.inc.php,v 1.3 2015-04-24 14:20:58 dbellamy Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
die("no access");
}
require_once $class_path . "/search.class.php";
$sc = new search();
$sc->link = "./circ.php?categ=resa_planning&resa_action=add_resa&id_empr={$id_empr}&groupID={$groupID}&id_notice=!!id!!";
$sc->link_expl = '';
$sc->link_explnum = '';
$sc->link_serial = "./circ.php?resa_planning&resa_action=search_resa&id_empr={$id_empr}&groupID={$groupID}&mode=view_serial&serial_id=!!id!!";
$sc->link_analysis = '';
$sc->link_bulletin = "./circ.php?categ=resa_planning&resa_action=add_resa&id_empr={$id_empr}&groupID={$groupID}&id_bulletin=!!id!!";
$sc->link_explnum_serial = '';
switch ($sub) {
case "launch":
$sc->show_results("./circ.php?categ=resa_planning&resa_action=search_resa&mode=6&sub=launch&id_empr={$id_empr}&groupID={$groupID}", "./circ.php?categ=resa_planning&resa_action=search_resa&mode=6&id_empr={$id_empr}&groupID={$groupID}", true);
break;
default:
print $sc->show_form("./circ.php?categ=resa_planning&resa_action=search_resa&mode=6&id_empr={$id_empr}&groupID={$groupID}", "./circ.php?categ=resa_planning&resa_action=search_resa&mode=6&sub=launch&id_empr={$id_empr}&groupID={$groupID}");
break;
}
示例4:
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["POST"] = $_POST;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["GET"] = $_GET;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["GET"]["sub"] = "";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["POST"]["sub"] = "";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["HUMAN_QUERY"] = $sc->make_human_query();
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["HUMAN_TITLE"] = $msg["search_extended"];
$_POST["page"] = 0;
$page = 0;
}
$sc->show_results("./catalog.php?categ=search&mode=6&sub=launch", "./catalog.php?categ=search&mode=6", true, '', true);
if ($_SESSION["CURRENT"] !== false) {
$_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["URI"] = "./catalog.php?categ=search&mode=6&sub=launch";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["POST"] = $_POST;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["GET"] = $_GET;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["PAGE"] = $page + 1;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["HUMAN_QUERY"] = $sc->make_human_query();
$_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["SEARCH_TYPE"] = "extended";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["TEXT_QUERY"] = "";
}
if ($pmb_map_activate) {
$sc->check_emprises();
}
break;
default:
print $sc->show_form("./catalog.php?categ=search&mode=6", "./catalog.php?categ=search&mode=6&sub=launch");
if ($pmb_extended_search_dnd_interface) {
$search_perso = new search_perso();
print '<div id="search_perso" style="display:none">' . $search_perso->get_forms_list() . '</div>';
}
break;
}
示例5: search
function continu_search()
{
$my_search = new search(false, "search_fields_opac");
$form = $my_search->show_form("./admin.php?categ=opac&sub=search_persopac§ion=liste&action=build", "", "", "./admin.php?categ=opac&sub=search_persopac§ion=liste&action=form");
print $form;
}
示例6: simple_search_content
//.........这里部分代码省略.........
$field_[0] = $search_in_perio;
global ${$field};
${$field} = $field_;
$search[1] = "f_42";
//opérateur
$op = "op_1_" . $search[0];
global ${$op};
$op_ = "BOOLEAN";
${$op} = $op_;
} else {
if ($get_query) {
if ($_SESSION["last_query"] == $get_query && $_SESSION["lq_facette_test"]) {
search::unserialize_search($_SESSION["lq_facette_search"]["lq_search"]);
} else {
get_history($get_query);
}
}
}
$es = new search();
if ($onglet_persopac) {
$search_form = $search_form_perso;
global $search;
if (!$search) {
$search_p_direct = new search_persopac($onglet_persopac);
$es->unserialize_search($search_p_direct->query);
}
}
if ($limitsearch) {
$search_form = $search_form_perso_limitsearch;
}
if ($onglet_persopac && $lvl == "search_result") {
$es->reduct_search();
}
$result = $es->show_form("./index.php?lvl={$lvl}&search_type_asked=extended_search", "./index.php?lvl=search_result&search_type_asked=extended_search");
$others = "<li><a href=\"./index.php?search_type_asked=simple_search\">" . $msg["simple_search"] . "</a></li>\n";
if ($opac_allow_personal_search) {
$others .= "<li><a href=\"./index.php?search_type_asked=search_perso\">" . $msg["search_perso_menu"] . "</a></li>";
}
$others .= $onglets_search_perso;
if ($opac_allow_term_search) {
$others2 = "<li><a href=\"./index.php?search_type_asked=term_search\">" . $msg["term_search"] . "</a></li>\n";
} else {
$others2 = "";
}
if ($opac_allow_tags_search) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=tags_search\">" . $msg["tags_search"] . "</a></li>";
}
if ($opac_show_onglet_perio_a2z) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=perio_a2z\">" . $msg["a2z_onglet"] . "</a></li>";
}
if ($opac_show_onglet_empr == 1 || $opac_show_onglet_empr == 2 && $_SESSION["user_code"]) {
if (!$_SESSION["user_code"]) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=connect_empr\">" . $msg["onglet_empr_connect"] . "</a></li>";
} else {
$others2 .= "<li><a href=\"{$empr_link_onglet}\">" . $msg["onglet_empr_compte"] . "</a></li>";
}
}
if ($opac_allow_external_search) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=external_search&external_type=simple\">" . $msg["connecteurs_external_search"] . "</a></li>";
}
$result = str_replace("!!others!!", $others, $result);
$result = str_replace("!!others2!!", $others2, $result);
$result = "<div id='search'>" . $result . "</div>";
$result .= $onglets_search_perso_form;
break;
//Recherche avancee
示例7: add_search
protected function add_search($rmc)
{
global $include_path, $pmb_opac_url;
global $lang, $msg, $base_path;
//Template du formulaire de recherches avancées
global $name;
global $rmc_encours;
global $search_form;
if ($rmc != "new" && !$rmc_encours) {
$infos = $this->managed_datas['rmcs'][$rmc];
$name = $infos['name'];
$search_rmc = $infos['rmc'];
} elseif ($rmc == "new" && !$rmc_encours) {
$name = "Nouvelle recherche";
}
$search_form = "\n\t\t<script src=\"javascript/ajax.js\"></script>\n\t\t<form name='search_form' action='!!url!!' method='post' onsubmit=\"valid_form_extented_search();\" >\n\t\t\t\n\t\t\t<div class='form-contenu'>\n\t\t\t\t<div class='colonne3'>\n\t\t\t\t\t<label for='name'>" . $this->format_text($this->msg['cms_module_tagcloud_datasource_admin_rmc_name']) . "</label>\n\t\t\t\t</div>\n\t\t\t\t<div class='colonne-suite'>\n\t\t\t\t\t<input id='name' type='text' name='name' value='{$name}'/>\n\t\t\t\t</div>\n\t\t\t\t<!--!!before_form!!--> \n\t\t\t\t<div class='colonne3'>!!limit_search!!\t\t\n\t\t\t\t\t<label class='etiquette' for='add_field'>" . $this->format_text($this->msg['cms_module_tagcloud_datasource_admin_rmc_addlabel']) . "</label> \n\t\t\t\t</div>\t\n\t\t\t\t<div class='colonne-suite'>\n\t\t\t\t\t!!field_list!! \n\t\t\t\t\t<input type='button' class='bouton' value='" . $this->format_text($this->msg['cms_module_tagcloud_datasource_admin_rmc_add']) . "' onClick=\"if (this.form.add_field.value!='') { this.form.action='!!url!!'; this.form.target=''; this.form.submit();} else { alert('" . $msg["multi_select_champ"] . "'); }\"/>\n\t\t\t\t</div>\n\t\t \t\t<br />\n\t\t\t\t<div class='row'>\n\t\t\t\t\t!!already_selected_fields!!\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class='row'>\n\t\t\t\t<input type='button' class='bouton' value='" . $this->format_text($this->msg['cms_module_tagcloud_datasource_admin_rmc_save']) . "' onClick=\"this.form.launch_search.value=1; this.form.action='!!memo_url!!'; this.form.page.value=''; !!target_js!! this.form.submit()\"/>\n\t\t\t</div>\n\t\t\n\t\t\t<input type='hidden' name='delete_field' value=''/>\n\t\t\t<input type='hidden' name='launch_search' value=''/>\n\t\t\t<input type='hidden' name='page' value='!!page!!'/>\n\t\t</form>\n\t\t<script>ajax_parse_dom();\t\n\t\t\tfunction valid_form_extented_search(){\n\t\t\t\tdocument.search_form.launch_search.value=1;\n\t\t\t\tdocument.search_form.action='!!result_url!!';\n\t\t\t\tdocument.search_form.page.value='';\n\t\t\t\t!!target_js!!\n\t\t\t\t//document.search_form.submit();\n\t\t\t}\n\t\t</script>\t\t\n\t\t";
$save_msg = $msg;
// Recherche du fichier lang de l'opac
$url = $pmb_opac_url . "includes/messages/{$lang}.xml";
$fichier_xml = $base_path . "/temp/opac_lang.xml";
$this->curl_load_file($url, $fichier_xml);
$messages = new XMLlist("{$base_path}/temp/opac_lang.xml", 0);
$messages->analyser();
$msg = $messages->table;
$url = $pmb_opac_url . "includes/search_queries/search_fields.xml";
$fichier_xml = "{$base_path}/temp/search_fields_opac.xml";
$this->curl_load_file($url, $fichier_xml);
$my_search = new search(false, "search_fields_opac", "{$base_path}/temp/");
if ($search_rmc) {
$my_search->unserialize_search($search_rmc);
}
// $url,$result_url,$result_target='',$memo_url=''
$form = $my_search->show_form("./cms.php?categ=manage&sub=tagcloud&quoi=datasources&elem=" . $this->class_name . "&rmc={$rmc}&action=get_form&type=rmc&rmc_encours=1", "", "", "./cms.php?categ=manage&sub=tagcloud&quoi=datasources&elem=" . $this->class_name . "&rmc={$rmc}&action=save_form&type=rmc");
$msg = $save_msg;
return $form;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:36,代码来源:cms_module_tagcloud_datasource_tagcloud_records.class.php
示例8: switch
switch ($sub) {
case 'view':
print $fiche->show_fiche_form();
break;
case 'edit':
print $fiche->show_edit_form();
break;
case 'update':
$fiche->save();
print $fiche->show_fiche_form();
break;
case 'del':
$fiche->delete();
$fiche->show_search_list($act, "./fichier.php?categ=consult&mode=search&perso_word=" . rawurlencode(stripslashes($perso_word)), $page);
break;
default:
$fiche->show_search_list($act, "./fichier.php?categ=consult&mode=search&perso_word=" . rawurlencode(stripslashes($perso_word)), $page);
break;
}
break;
case 'search_multi':
switch ($sub) {
case 'launch':
$sc->show_results_fichier("./fichier.php?categ=consult&mode=search_multi&sub=launch", "./fichier.php?categ=consult&mode=search_multi", true, '', true);
break;
default:
print $sc->show_form("./fichier.php?categ=consult&mode=search_multi", "./fichier.php?categ=consult&mode=search_multi&sub=launch");
break;
}
break;
}
示例9: add_search
protected function add_search()
{
global $include_path, $pmb_opac_url;
global $lang, $msg, $base_path;
$save_msg = $msg;
// Recherche du fichier lang de l'opac
$url = $pmb_opac_url . "includes/messages/{$lang}.xml";
$fichier_xml = $base_path . "/temp/opac_lang.xml";
$this->curl_load_file($url, $fichier_xml);
$messages = new XMLlist("{$base_path}/temp/opac_lang.xml", 0);
$messages->analyser();
$msg = $messages->table;
$url = $pmb_opac_url . "includes/search_queries/search_fields.xml";
$fichier_xml = "{$base_path}/temp/search_fields_opac.xml";
$this->curl_load_file($url, $fichier_xml);
$my_search = new search(false, "search_fields_opac", "{$base_path}/temp/");
$form = $my_search->show_form("./admin.php?categ=opac&sub=search_persopac§ion=liste&action=build", "", "", "./cms.php?categ=manage&sub=tagcloud&quoi=datasources&elem=cms_module_tagcloud_datasource_tagcloud_records&cms_store=new&action=get_form&type=rmc");
$msg = $save_msg;
return $form;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:20,代码来源:cms_module_tagcloud_datasource_tagcloud_records.class.php
示例10: die
<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: main.inc.php,v 1.2 2007-03-14 16:51:33 gueluneau Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
die("no access");
}
require_once $class_path . "/search.class.php";
$sc = new search();
$sc->link = "./circ.php?categ=resa&id_empr={$id_empr}&groupID={$groupID}&id_notice=!!id!!";
$sc->link_expl = '';
$sc->link_explnum = '';
$sc->link_serial = "./circ.php?categ=resa&id_empr={$id_empr}&groupID={$groupID}&mode=view_serial&serial_id=!!id!!";
$sc->link_analysis = '';
$sc->link_bulletin = "./circ.php?categ=resa&id_empr={$id_empr}&groupID={$groupID}&id_bulletin=!!id!!";
$sc->link_explnum_serial = '';
switch ($sub) {
case "launch":
$sc->show_results("./circ.php?categ=resa&mode=6&sub=launch&id_empr={$id_empr}&groupID={$groupID}", "./circ.php?categ=resa&mode=6&id_empr={$id_empr}&groupID={$groupID}", true);
break;
default:
print $sc->show_form("./circ.php?categ=resa&mode=6&id_empr={$id_empr}&groupID={$groupID}", "./circ.php?categ=resa&mode=6&sub=launch&id_empr={$id_empr}&groupID={$groupID}");
break;
}