本文整理汇总了PHP中search::make_serialized_human_query方法的典型用法代码示例。如果您正苦于以下问题:PHP search::make_serialized_human_query方法的具体用法?PHP search::make_serialized_human_query怎么用?PHP search::make_serialized_human_query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::make_serialized_human_query方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: VALUES
$rqt_bannette_abon = "INSERT INTO bannette_abon (num_bannette, num_empr, actif) VALUES ({$id_bannette}, {$id_empr}, 0)";
mysql_query($rqt_bannette_abon);
// bannette créée, on supprime le bouton des rech multicritères
$_SESSION['abon_cree_bannette_priv'] = 0;
print "<br />";
print pmb_bidi(str_replace("!!nom_bannette!!", stripslashes($nom_bannette), $msg['dsi_bannette_creer_resultat']));
print "<br /><br />";
// pour construction correcte du mail de diffusion
$liens_opac = array();
$bannette = new bannette($id_bannette);
$bannette->vider();
print pmb_bidi($bannette->remplir());
$bannette->diffuser($equ_human);
} else {
$s = new search();
$equ_human = $s->make_serialized_human_query($equation);
if ($opac_allow_bannette_export) {
$exp = start_export::get_exports();
$liste_exports = "<tr>\n\t\t\t\t\t\t<td align=right>" . $msg['dsi_ban_typeexport'] . "</td>\n\t\t\t\t\t\t<td><select name='typeexport'>";
$liste_exports .= "<option value='' selected>" . $msg[dsi_ban_noexport] . "</option>";
for ($i = 0; $i < count($exp); $i++) {
$liste_exports .= "<option value='" . $exp[$i]["PATH"] . "' >" . $exp[$i]["NAME"] . "</option>";
}
$liste_exports .= "</select></td>\n\t\t\t\t\t\t</tr>";
} else {
$liste_exports = "";
}
print pmb_bidi($equ_human . "<br /><br />");
print "<form name='creer_dsi' method='post'>\n\t\t\t\t<input type='hidden' name='equation' value=\"" . htmlentities($equation, ENT_QUOTES, $charset) . "\" />\n\t\t\t\t<input type='hidden' name='enregistrer' value='1' />\n\t\t\t\t<input type='hidden' name='lvl' value='bannette_creer' />\n\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align=right>" . $msg['dsi_priv_form_nom'] . "</td>\n\t\t\t\t\t\t<td><input type='text' name='nom_bannette' value='' /></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align=right>" . $msg['dsi_priv_form_periodicite'] . "</td>\n\t\t\t\t\t\t<td><input type='text' name='periodicite' value='" . $opac_bannette_priv_periodicite . "' /></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t{$liste_exports}\n\t\t\t\t\t</table>\n\t\t\t\t<input type='submit' class='bouton' value=\"" . $msg[dsi_bannette_creer_sauver] . "\"/>\n\t\t\t\t</form>\n\t\t\t\t";
}
} else {
示例2: equation
print dsi_list_bannettes_abo($id_empr);
} else {
print get_cb_dsi($msg[circ_tit_form_cb_empr], $msg[34], './dsi.php?categ=bannettes&sub=abo&suite=search', $form_cb);
$ret = dsi_list_empr($form_cb);
if ($ret['id_empr']) {
print dsi_list_bannettes_abo($ret['id_empr']);
} else {
print $ret['message'];
}
}
break;
case 'transform_equ':
// mettre à jour l'équation
$equation = new equation($id_equation);
$s = new search();
$equ_human = $s->make_serialized_human_query(stripslashes($requete));
$temp = new stdClass();
$temp->id_equation = $id_equation;
$temp->num_classement = 0;
$temp->nom_equation = $equ_human;
$temp->comment_equation = addslashes($equation->comment_equation);
$temp->requete = $requete;
$temp->proprio_equation = $equation->proprio_equation;
$temp->update_type = "C";
$equation->update($temp);
print dsi_list_bannettes_abo($id_empr);
break;
case 'modif':
$bannette = new bannette($id_bannette);
print $bannette->show_form("abo");
if ($pmb_javascript_office_editor) {