Initial commit
This commit is contained in:
51
lieder/suchopt_ganzeswort.php
Normal file
51
lieder/suchopt_ganzeswort.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
if (isset($_GET['action'])) {
|
||||
$action = $_GET['action'];
|
||||
} else {
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if ($action == '') {
|
||||
$result_lied_search = $db->query("SELECT lied_search
|
||||
FROM profil
|
||||
WHERE user = '$user_admin'");
|
||||
$row_lied_search = $result_lied_search->fetch_array();
|
||||
$search = $row_lied_search['lied_search'];
|
||||
|
||||
echo "
|
||||
<html>
|
||||
<head>
|
||||
<style type=\"text/css\">
|
||||
select{
|
||||
width:250px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form action=?action=save method=\"POST\" name=\"wort_erf\">
|
||||
<select name='status' onchange=\"this.form.submit()\">
|
||||
<option value=\"regexp\"";if($search == 'regexp'){ echo " selected";} echo">Ganze Wörter </option>
|
||||
<option value=\"like\"";if($search == 'like'){ echo " selected";} echo">Worbestandteile </option>
|
||||
</select>
|
||||
</body>
|
||||
</html>
|
||||
";
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'save') {
|
||||
$search = $_POST["status"];
|
||||
echo "<script language=\"javascript\">
|
||||
top.frames[2].location.href = \"lieder_personalisieren.php\";
|
||||
</script>";
|
||||
$db->query("UPDATE profil
|
||||
SET lied_search='$search'
|
||||
WHERE user='$user_admin'");
|
||||
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."\">";
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user