Initial commit
This commit is contained in:
5
lieder/5.html
Normal file
5
lieder/5.html
Normal file
@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
text5
|
||||
</body>
|
||||
</html>
|
127
lieder/Favorite_icon.svg
Normal file
127
lieder/Favorite_icon.svg
Normal file
@ -0,0 +1,127 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="24"
|
||||
height="24"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.0 r9654"
|
||||
sodipodi:docname="New document 1">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
id="linearGradient3778"
|
||||
inkscape:collect="always">
|
||||
<stop
|
||||
id="stop3780"
|
||||
offset="0"
|
||||
style="stop-color:#d4aa00;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#ffd42a;stop-opacity:1"
|
||||
offset="0.45868683"
|
||||
id="stop3782" />
|
||||
<stop
|
||||
id="stop3784"
|
||||
offset="1"
|
||||
style="stop-color:#ffe680;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient3758">
|
||||
<stop
|
||||
style="stop-color:#aa8800;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop3760" />
|
||||
<stop
|
||||
id="stop3766"
|
||||
offset="0.45868683"
|
||||
style="stop-color:#aa8800;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#ffe680;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop3762" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3758"
|
||||
id="linearGradient3764"
|
||||
x1="5"
|
||||
y1="102.36218"
|
||||
x2="55"
|
||||
y2="72.362183"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
spreadMethod="reflect"
|
||||
gradientTransform="matrix(0.20016758,0,0,0.20016758,1.1287082,1027.7571)" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3778"
|
||||
id="linearGradient3776"
|
||||
x1="10"
|
||||
y1="47.362183"
|
||||
x2="35"
|
||||
y2="67.362183"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
spreadMethod="reflect"
|
||||
gradientTransform="matrix(0.20016758,0,0,0.20016758,1.1287082,1027.7571)" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1"
|
||||
inkscape:cx="12.921966"
|
||||
inkscape:cy="23.86398"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="968"
|
||||
inkscape:window-x="-4"
|
||||
inkscape:window-y="-4"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid2985"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1028.3622)">
|
||||
<path
|
||||
style="fill:url(#linearGradient3776);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient3764);stroke-width:1.20100546;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
inkscape:transform-center-x="0.10289339"
|
||||
inkscape:transform-center-y="0.10032448"
|
||||
d="m 18.142952,1049.2475 -5.929053,-3.003 -5.8351453,3.1817 1.0239295,-6.5669 -4.8291493,-4.5664 6.5618778,-1.0554 2.8505663,-6.0039 3.031533,5.9145 6.590897,0.8558 -4.688288,4.7109 z"
|
||||
id="path2987"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.9 KiB |
106
lieder/ch_attr.php
Normal file
106
lieder/ch_attr.php
Normal file
@ -0,0 +1,106 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
|
||||
$db = dbconnect();
|
||||
//mitgegebene Parameter einlesen:
|
||||
if (isset($_GET['art'])) { //welcher Datensatz
|
||||
$art = $_GET['art'];
|
||||
}
|
||||
|
||||
if (isset($_GET['nummer'])) { //welcher Datensatz
|
||||
$nummer = $_GET['nummer'];
|
||||
}
|
||||
|
||||
if (isset($_GET['zusatz'])) { //welcher Datensatz
|
||||
$zusatz = $_GET['zusatz'];
|
||||
}
|
||||
|
||||
if (isset($_GET['status_param'])) { //welchen Status
|
||||
$status_param = $_GET['status_param'];
|
||||
} else {
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
|
||||
$result_lied_stat = $db->query("SELECT count(*) Anz
|
||||
FROM lieder_status
|
||||
WHERE art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
$row_lied_stat = $result_lied_stat->fetch_array();
|
||||
|
||||
if ($row_lied_stat['Anz'] == 0) {
|
||||
$status_param = 'N';
|
||||
} else {
|
||||
$result_lied_stat = $db->query("SELECT status
|
||||
FROM lieder_status
|
||||
WHERE art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
$row_lied_stat = $result_lied_stat->fetch_array();
|
||||
$status_param = $row_lied_stat['status'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Anzeige des Buttons entsprechend grün oder rot
|
||||
if ($status_param == "Y") {
|
||||
$img_src = "hakengruen.png";
|
||||
$param_opp = "N"; //Gegenteil für Linkaufbau
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz1 = "NULL";
|
||||
} else {
|
||||
$zusatz1 = "'" . $zusatz . "'";
|
||||
}
|
||||
|
||||
$db->query("DELETE FROM lieder_status
|
||||
WHERE vaid=$user_vaid
|
||||
and art='$art'
|
||||
and nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
$db->query("INSERT INTO lieder_status (vaid, art, nr, zusatz, gemeinde, status) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '0' , 'Y' )");
|
||||
|
||||
} elseif ($status_param == "N") {
|
||||
$img_src = "hakenrot.png";
|
||||
$param_opp = "Y";
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz1 = "NULL";
|
||||
} else {
|
||||
$zusatz1 = "'" . $zusatz . "'";
|
||||
}
|
||||
|
||||
$db->query("DELETE FROM lieder_status
|
||||
WHERE vaid=$user_vaid
|
||||
and art='$art'
|
||||
and nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
|
||||
# Insert nicht erforderlich, da N Defaultwert ist. Gel<65>scht muss es hingegen werden, wenn es nicht mehr auff<66>hrungsreif w<>re.
|
||||
# $db->query("INSERT INTO lieder_status (vaid, art, nr, zusatz, gemeinde, status) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '0' , 'N' )");
|
||||
} else {
|
||||
echo "F";
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "<a href=ch_attr.php?art=" . $art . "&nummer=" . $nummer . "&zusatz=" . $zusatz . "&status_param=" . $param_opp . "><img border=0 src=" . $img_src . " height=20 title=\"" . $param_title . "\">";
|
||||
|
||||
echo "</body></html>";
|
||||
?>
|
106
lieder/ch_favorit.php
Normal file
106
lieder/ch_favorit.php
Normal file
@ -0,0 +1,106 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
|
||||
$db = dbconnect();
|
||||
//mitgegebene Parameter einlesen:
|
||||
if (isset($_GET['art'])) { //welcher Datensatz
|
||||
$art = $_GET['art'];
|
||||
}
|
||||
|
||||
if (isset($_GET['nummer'])) { //welcher Datensatz
|
||||
$nummer = $_GET['nummer'];
|
||||
}
|
||||
|
||||
if (isset($_GET['zusatz'])) { //welcher Datensatz
|
||||
$zusatz = $_GET['zusatz'];
|
||||
}
|
||||
|
||||
if (isset($_GET['status_param'])) { //welchen Status
|
||||
$status_param = $_GET['status_param'];
|
||||
} else {
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
|
||||
$result_lied_stat = $db->query("SELECT count(*) Anz
|
||||
FROM lieder_favorit
|
||||
WHERE art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
$row_lied_stat = $result_lied_stat->fetch_array();
|
||||
|
||||
if ($row_lied_stat['Anz'] == 0) {
|
||||
$status_param = '0';
|
||||
} else {
|
||||
$result_lied_stat = $db->query("SELECT status
|
||||
FROM lieder_favorit
|
||||
WHERE art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
$row_lied_stat = $result_lied_stat->fetch_array();
|
||||
$status_param = $row_lied_stat['status'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Anzeige des Buttons entsprechend grün oder rot
|
||||
if ($status_param == "1") {
|
||||
$img_src = "favorit.png";
|
||||
$param_opp = "0"; //Gegenteil für Linkaufbau
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz1 = "NULL";
|
||||
} else {
|
||||
$zusatz1 = "'" . $zusatz . "'";
|
||||
}
|
||||
|
||||
$db->query("DELETE FROM lieder_favorit
|
||||
WHERE vaid=$user_vaid
|
||||
and art='$art'
|
||||
and nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
$db->query("INSERT INTO lieder_favorit (vaid, art, nr, zusatz, gemeinde, status) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '0' , '1' )");
|
||||
|
||||
} elseif ($status_param == "0") {
|
||||
$img_src = "favorit_grey.png";
|
||||
$param_opp = "1";
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz1 = "NULL";
|
||||
} else {
|
||||
$zusatz1 = "'" . $zusatz . "'";
|
||||
}
|
||||
|
||||
$db->query("DELETE FROM lieder_favorit
|
||||
WHERE vaid=$user_vaid
|
||||
and art='$art'
|
||||
and nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
|
||||
# Insert nicht erforderlich, da N Defaultwert ist. Gelöscht muss es hingegen werden, wenn es nicht mehr aufführungsreif wäre.
|
||||
# $db->query("INSERT INTO lieder_favorit (vaid, art, nr, zusatz, gemeinde, status) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '0' , '0' )");
|
||||
} else {
|
||||
echo "F";
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "<a href=ch_favorit.php?art=" . $art . "&nummer=" . $nummer . "&zusatz=" . $zusatz . "&status_param=" . $param_opp . "><img border=0 src=" . $img_src . " height=20 title=\"Favorit\"" . $param_title . "\">";
|
||||
|
||||
echo "</body></html>";
|
||||
?>
|
41
lieder/ch_favorit_search.php
Normal file
41
lieder/ch_favorit_search.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
if($_GET['change'] == '1'){
|
||||
$value = $_GET['value'];
|
||||
$db->query("UPDATE profil
|
||||
SET lied_favorit='$value'
|
||||
WHERE user = '$user_admin'");
|
||||
unset($_GET['change']);
|
||||
echo "<script language=\"javascript\">
|
||||
top.frames[2].location.href = \"lieder_personalisieren.php\";
|
||||
</script>";
|
||||
}
|
||||
|
||||
|
||||
$result_lied_favorit = $db->query("SELECT lied_favorit
|
||||
FROM profil
|
||||
WHERE user = '$user_admin'");
|
||||
$row_lied_favorit = $result_lied_favorit->fetch_array();
|
||||
$favorit = $row_lied_favorit['lied_favorit'];
|
||||
|
||||
|
||||
//Anzeige des Buttons entsprechend grün oder rot
|
||||
if ($favorit == "1") {
|
||||
$img_src = "favorit.png";
|
||||
$param_opp = "0"; //Gegenteil für Linkaufbau
|
||||
} elseif ($favorit == "0") {
|
||||
$img_src = "favorit_grey.png";
|
||||
$param_opp = "1";
|
||||
} else {
|
||||
echo "F";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
echo "<a href=\"?change=1&value=$param_opp\"><img border=0 src=" . $img_src . " height=20 title=\"Favoritensuche\"></a>";
|
||||
|
||||
echo "</body></html>";
|
||||
?>
|
87
lieder/ch_status.php
Normal file
87
lieder/ch_status.php
Normal file
@ -0,0 +1,87 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
|
||||
$db = dbconnect();
|
||||
//mitgegebene Parameter einlesen:
|
||||
if (isset($_GET['art'])) { //welcher Datensatz
|
||||
$art = $_GET['art'];
|
||||
}
|
||||
|
||||
if (isset($_GET['nummer'])) { //welcher Datensatz
|
||||
$nummer = $_GET['nummer'];
|
||||
}
|
||||
|
||||
if (isset($_GET['zusatz'])) { //welcher Datensatz
|
||||
$zusatz = $_GET['zusatz'];
|
||||
}
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (isset($_GET['action'])) {
|
||||
$action = $_GET['action'];
|
||||
} else {
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if ($action == '') {
|
||||
$result_lied_stat = $db->query("SELECT status
|
||||
FROM lieder_status
|
||||
WHERE art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND vaid=$user_vaid
|
||||
AND zusatz $zusatz2");
|
||||
$row_lied_stat = $result_lied_stat->fetch_array();
|
||||
$status = $row_lied_stat['status'];
|
||||
|
||||
echo "
|
||||
<form action=?action=save method=\"POST\" name=\"wort_erf\">
|
||||
<input type='hidden' name='art' value='$art'>
|
||||
<input type='hidden' name='nummer' value='$nummer'>
|
||||
<input type='hidden' name='zusatz' value='$zusatz'>
|
||||
<select name='status' onchange=\"this.form.submit()\">
|
||||
<option value=\"\"";if($status == ''){ echo " selected";} echo">Unbekannt </option>
|
||||
<option value=\"U\"";if($status == 'U'){ echo " selected";} echo">Übphase </option>
|
||||
<option value=\"A\"";if($status == 'A'){ echo " selected";} echo">Aufführbar </option>
|
||||
</select>
|
||||
";
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'save') {
|
||||
$status = $_POST["status"];
|
||||
$art = $_POST["art"];
|
||||
$nummer = $_POST["nummer"];
|
||||
$zusatz = $_POST["zusatz"];
|
||||
# echo "$art|$nummer|$zusatz<hr>";
|
||||
if ($zusatz == '') {
|
||||
$zusatz2 = "IS NULL";
|
||||
} else {
|
||||
$zusatz2 = "= '$zusatz'";
|
||||
}
|
||||
|
||||
$db->query("DELETE FROM lieder_status
|
||||
WHERE vaid=$user_vaid
|
||||
AND art='$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
|
||||
#echo "DELETE FROM lieder_status WHERE vaid=$user_vaid AND art='$art' AND nr = '$nummer' AND zusatz $zusatz2";
|
||||
|
||||
if($status != ''){
|
||||
if ($zusatz == '') {
|
||||
$zusatz1 = "NULL";
|
||||
} else {
|
||||
$zusatz1 = "'" . $zusatz . "'";
|
||||
}
|
||||
# echo "<hr>INSERT INTO lieder_status (vaid, art, nr, zusatz, gemeinde, status) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '0' , '$status' )";
|
||||
$db->query("INSERT INTO lieder_status (vaid, art, nr, zusatz, gemeinde, status) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '0' , '$status' )");
|
||||
}
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."?art=$art&nummer=$nummer&zusatz=$zusatz\">";
|
||||
}
|
||||
?>
|
BIN
lieder/dynamic-star-rating-with-php-and-jquery.zip
Normal file
BIN
lieder/dynamic-star-rating-with-php-and-jquery.zip
Normal file
Binary file not shown.
BIN
lieder/example.zip
Normal file
BIN
lieder/example.zip
Normal file
Binary file not shown.
BIN
lieder/favorit.png
Normal file
BIN
lieder/favorit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 681 B |
BIN
lieder/favorit_grey.png
Normal file
BIN
lieder/favorit_grey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 806 B |
BIN
lieder/favorite_icon_55521.zip
Normal file
BIN
lieder/favorite_icon_55521.zip
Normal file
Binary file not shown.
BIN
lieder/hakengruen.png
Normal file
BIN
lieder/hakengruen.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
lieder/hakenrot.png
Normal file
BIN
lieder/hakenrot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
342
lieder/index.html
Normal file
342
lieder/index.html
Normal file
@ -0,0 +1,342 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Simple jQuery Tabs CSS & jQuery</title>
|
||||
<style type="text/css">
|
||||
* { margin: 0; padding: 0;}
|
||||
body { font-size: 12px; line-height: 22px; font-family: Arial, Helvetica, sans-serif; background: #F9F9F9;}
|
||||
#topbar { border-bottom: 1px solid #ccc; height: 120px; background: #fff;}
|
||||
#header { width: 960px; margin: 0 auto;}
|
||||
#header h1 { font-size: 24px; padding: 0 0 35px 0;}
|
||||
|
||||
#wrapper { width: 560px; margin: 0 auto; padding: 35px 0;}
|
||||
#wrapper h1 { color: #BD3038; font-size: 24px; padding: 0 0 35px 0;}
|
||||
#wrapper h2 { padding: 0 0 8px 0;}
|
||||
|
||||
ul.tabs {
|
||||
float:left;
|
||||
list-style:none;
|
||||
height:32px;
|
||||
width:100%;
|
||||
border-radius:8px 0 -50px 0;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
ul.tabs li {
|
||||
float:left;
|
||||
height:31px;
|
||||
line-height:31px;
|
||||
border:1px solid #999;
|
||||
overflow:hidden;
|
||||
position:relative;
|
||||
background:#e0e0e0;
|
||||
-webkit-border-top-left-radius:8px;
|
||||
-webkit-border-top-right-radius:8px;
|
||||
-moz-border-radius-topleft:8px;
|
||||
-moz-border-radius-topright:8px;
|
||||
border-top-left-radius:8px;
|
||||
border-top-right-radius:8px;
|
||||
margin:0 5px -1px 0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
ul.tabs li a {
|
||||
text-decoration:none;
|
||||
color:#000;
|
||||
display:block;
|
||||
font-size:1.2em;
|
||||
border:1px solid #fff;
|
||||
outline:none;
|
||||
-webkit-border-top-left-radius:8px;
|
||||
-webkit-border-top-right-radius:8px;
|
||||
-moz-border-radius-topleft:8px;
|
||||
-moz-border-radius-topright:8px;
|
||||
border-top-left-radius:8px;
|
||||
border-top-right-radius:8px;
|
||||
padding:0 20px;
|
||||
}
|
||||
|
||||
ul.tabs li a:hover {
|
||||
background:#ccc;
|
||||
}
|
||||
|
||||
html ul.tabs li.active,html ul.tabs li.active a:hover {
|
||||
background:#fff;
|
||||
border-bottom:1px solid #fff;
|
||||
}
|
||||
|
||||
.tabContainer {
|
||||
border:1px solid #999;
|
||||
overflow:hidden;
|
||||
clear:both;
|
||||
float:left;
|
||||
width:100%;
|
||||
background:#fff;
|
||||
-webkit-border-radius:8px;
|
||||
-webkit-border-top-left-radius:0;
|
||||
-moz-border-radius:8px;
|
||||
-moz-border-radius-topleft:0;
|
||||
border-radius:8px;
|
||||
border-top-left-radius:0;
|
||||
}
|
||||
|
||||
.tabContent {
|
||||
font-size:1.2em;
|
||||
padding:20px;
|
||||
}
|
||||
pre {
|
||||
background: #f1f1f1;
|
||||
font: 13px "Courier 10 Pitch", Courier, monospace;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 1.625em;
|
||||
overflow: auto;
|
||||
padding: 0.75em 1.625em;
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
//hiding tab content except first one
|
||||
$(".tabContent").not(":first").hide();
|
||||
// adding Active class to first selected tab and show
|
||||
$("ul.tabs li:first").addClass("active").show();
|
||||
|
||||
// Click event on tab
|
||||
$("ul.tabs li").click(function() {
|
||||
// Removing class of Active tab
|
||||
$("ul.tabs li.active").removeClass("active");
|
||||
// Adding Active class to Clicked tab
|
||||
$(this).addClass("active");
|
||||
// hiding all the tab contents
|
||||
$(".tabContent").hide();
|
||||
// showing the clicked tab's content using fading effect
|
||||
$($('a',this).attr("href")).fadeIn('slow');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="topbar">
|
||||
<div id="header">
|
||||
<h1>Qualitytuts</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id="wrapper">
|
||||
|
||||
<h1>Simple jQuery Tabs CSS & jQuery</h1>
|
||||
<p>I am here with the tutorial to learn how to make simple jQuery Tabs using CSS & jQuery. There are many tutorials already available online & you might be following them too but I have tried to write it in my own way so that it's easy for mere a beginner to easily & quickly understand the concept behind this. </p>
|
||||
<p>Here is the sample how our CSS tabs gonna look & work after all designing & coding.</p>
|
||||
<ul class="tabs">
|
||||
<li><a href="#tab1">One</a></li>
|
||||
<li><a href="#tab2">Two</a></li>
|
||||
<li><a href="#tab3">Three</a></li>
|
||||
<li><a href="#tab4">Four</a></li>
|
||||
<li><a href="5.html">Five</a></li>
|
||||
</ul>
|
||||
<div class="tabContainer">
|
||||
<div id="tab1" class="tabContent">
|
||||
<h2>One</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries.</p>
|
||||
</div>
|
||||
<!-- / END #tab1 -->
|
||||
<div id="tab2" class="tabContent">
|
||||
<h2>Two</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab2 -->
|
||||
|
||||
<div id="tab3" class="tabContent">
|
||||
<h2>Three</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab3 -->
|
||||
|
||||
<div id="tab4" class="tabContent">
|
||||
<h2>Four</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab4 -->
|
||||
|
||||
<div id="tab5" class="tabContent">
|
||||
<h2>Five</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab4 -->
|
||||
</div>
|
||||
<!-- / END .tabContainer -->
|
||||
<div style="clear:both;"></div>
|
||||
<br />
|
||||
<p>Various steps are: </p>
|
||||
<h2>1) HTML Code:</h2>
|
||||
<p>We make unordered list for the tabs. Concept of internal linking in HTML has been used. Each element in the unordered list consists of element 'a' having 'href' attribute which describes the place or element where a link has to be redirected on mouseclick. These are preceeded by special character '#' because of internal linking.<br /><br />
|
||||
This unordered list is followed by the class 'tabContainer' which contains the content for corresponding tab described in divs with class 'tabContent'. Make note that the attribute of 'href' in each list item(tabs) matches the ID of the “.tabContent” div. Its important for the jQuery to pull off the actions.<br /><br />
|
||||
Here the generic names like 'tab1', 'tab2', etc have been used to make it easily understandable. In reality, Keywords must be used to make it Search Engine Optimization(SEO) friendly.
|
||||
The HTML code is as shown below: </p>
|
||||
<pre>
|
||||
<ul class="tabs">
|
||||
<li><a href="#tab1">One</a></li>
|
||||
<li><a href="#tab2">Two</a></li>
|
||||
<li><a href="#tab3">Three</a></li>
|
||||
<li><a href="#tab4">Four</a></li>
|
||||
<li><a href="#tab5">Five</a></li>
|
||||
</ul>
|
||||
<div class="tabContainer">
|
||||
<div id="tab1" class="tabContent">
|
||||
<h2>One</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries.</p>
|
||||
</div>
|
||||
<!-- / END #tab1 -->
|
||||
<div id="tab2" class="tabContent">
|
||||
<h2>Two</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab2 -->
|
||||
<div id="tab3" class="tabContent">
|
||||
<h2>Three</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab3 -->
|
||||
<div id="tab4" class="tabContent">
|
||||
<h2>Four</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab4 -->
|
||||
<div id="tab5" class="tabContent">
|
||||
<h2>Five</h2>
|
||||
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries</p>
|
||||
</div>
|
||||
<!-- / END #tab4 -->
|
||||
</div>
|
||||
<!-- / END .tabContainer -->
|
||||
</pre>
|
||||
<p>The output will be like :</p>
|
||||
<img src="images/tab1.jpg" width="574" height="562" alt="" />
|
||||
|
||||
<h2>2) CSS: </h2>
|
||||
<p>The style sheet to define the style for Unordered List, Tab Container, etc. is defined as per the redirement of the coder in CSS file. Here as per my need I have written the CSS as under:</p>
|
||||
|
||||
<pre>ul.tabs {
|
||||
float:left;
|
||||
list-style:none;
|
||||
height:32px;
|
||||
width:100%;
|
||||
border-radius:8px 0 -50px 0;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
ul.tabs li {
|
||||
float:left;
|
||||
height:31px;
|
||||
line-height:31px;
|
||||
border:1px solid #999;
|
||||
overflow:hidden;
|
||||
position:relative;
|
||||
background:#e0e0e0;
|
||||
-webkit-border-top-left-radius:8px;
|
||||
-webkit-border-top-right-radius:8px;
|
||||
-moz-border-radius-topleft:8px;
|
||||
-moz-border-radius-topright:8px;
|
||||
border-top-left-radius:8px;
|
||||
border-top-right-radius:8px;
|
||||
margin:0 5px -1px 0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
ul.tabs li a {
|
||||
text-decoration:none;
|
||||
color:#000;
|
||||
display:block;
|
||||
font-size:1.2em;
|
||||
border:1px solid #fff;
|
||||
outline:none;
|
||||
-webkit-border-top-left-radius:8px;
|
||||
-webkit-border-top-right-radius:8px;
|
||||
-moz-border-radius-topleft:8px;
|
||||
-moz-border-radius-topright:8px;
|
||||
border-top-left-radius:8px;
|
||||
border-top-right-radius:8px;
|
||||
padding:0 20px;
|
||||
}
|
||||
|
||||
ul.tabs li a:hover {
|
||||
background:#ccc;
|
||||
}
|
||||
|
||||
html ul.tabs li.active,html ul.tabs li.active a:hover {
|
||||
background:#fff;
|
||||
border-bottom:1px solid #fff;
|
||||
}
|
||||
|
||||
.tabContainer {
|
||||
border:1px solid #999;
|
||||
overflow:hidden;
|
||||
clear:both;
|
||||
float:left;
|
||||
width:100%;
|
||||
background:#fff;
|
||||
-webkit-border-radius:8px;
|
||||
-webkit-border-top-left-radius:0;
|
||||
-moz-border-radius:8px;
|
||||
-moz-border-radius-topleft:0;
|
||||
border-radius:8px;
|
||||
border-top-left-radius:0;
|
||||
}
|
||||
|
||||
.tabContent {
|
||||
font-size: 12px;
|
||||
padding:20px;
|
||||
}
|
||||
</pre>
|
||||
<p>The output will be as shown below:</p>
|
||||
<p><img src="images/tab4.jpg" width="574" height="265" alt="" /> </p>
|
||||
<h2>3) Tab Activation - jQuery: </h2>
|
||||
<p>For those who are not familiar with jQuery, check out their site for a general overview.
|
||||
The following script contains comments explaining which jQuery actions are being performed.</p>
|
||||
<pre>
|
||||
$(document).ready(function() {
|
||||
//hiding tab content except first one
|
||||
$(".tabContent").not(":first").hide();
|
||||
// adding Active class to first selected tab and show
|
||||
$("ul.tabs li:first").addClass("active").show();
|
||||
|
||||
// Click event on tab
|
||||
$("ul.tabs li").click(function() {
|
||||
// Removing class of Active tab
|
||||
$("ul.tabs li.active").removeClass("active");
|
||||
// Adding Active class to Clicked tab
|
||||
$(this).addClass("active");
|
||||
// hiding all the tab contents
|
||||
$(".tabContent").hide();
|
||||
// showing the clicked tab's content using fading effect
|
||||
$($('a',this).attr("href")).fadeIn('slow');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
</pre>
|
||||
|
||||
|
||||
|
||||
<h2>Conclusion</h2>
|
||||
|
||||
<p>So there we have it, a nice and simple tab function with CSS and jQuery. If you have any questions, comments, or suggestions, please feel free to ask!</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><!-- / END #wrapper -->
|
||||
</body>
|
||||
</html>
|
155
lieder/kategorie_teffer.php
Normal file
155
lieder/kategorie_teffer.php
Normal file
@ -0,0 +1,155 @@
|
||||
<?php
|
||||
include_once '../classes/lg-on_Smarty.class_subdir.php';
|
||||
$smarty = new lgon_Smarty();
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
function kurzer_text($string, $laenge)
|
||||
{
|
||||
$origin = strlen($string);
|
||||
$stri_arr = explode(" ", $string);
|
||||
$anzzahl = count($stri_arr);
|
||||
$gekuerzt = 0;
|
||||
$string = "";
|
||||
while ($gekuerzt < $anzzahl) {
|
||||
$string_alt = $string;
|
||||
$string = $string . " " . $stri_arr[$gekuerzt];
|
||||
$gekuerzt++;
|
||||
if (strlen($string) > $laenge) {
|
||||
$gekuerzt = $anzzahl;
|
||||
$string = $string_alt;
|
||||
}
|
||||
}
|
||||
if ($laenge < $origin) {
|
||||
$string = $string . "<nobr> <b>...</b></nobr>";
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
||||
$result_liedopt = $db->query( "SELECT lied_bestand, lied_favorit, lied_status
|
||||
FROM profil
|
||||
WHERE user='$user_admin'");
|
||||
$row_liedopt = $result_liedopt->fetch_array();
|
||||
|
||||
$lukid = $_GET['lukid'];
|
||||
|
||||
|
||||
|
||||
if($row_liedopt['lied_bestand'] == 'CB' OR $row_liedopt['lied_bestand'] == 'ALL'){
|
||||
|
||||
$query_gd1 = "SELECT 'CB' art, a.cbid id, nr, '' AS zusatz, titel, text, kategorie, unterkategorie
|
||||
FROM chorbuch a, lieder_kategorie_zuord b, chorbuch_texte c, lieder_kategorie d, lieder_unterkategorie e
|
||||
WHERE a.cbid = b.id
|
||||
AND a.cbid=c.cbid
|
||||
AND b.id=c.cbid
|
||||
AND b.lukid=e.lukid
|
||||
AND e.lkid=d.lkid
|
||||
AND b.lukid=$lukid
|
||||
AND b.art='CB'
|
||||
";
|
||||
# Nur auf Favoriten beschränken
|
||||
if($row_liedopt['lied_favorit'] == 1){
|
||||
$query_gd2 = "AND concat(art,nr) IN (SELECT concat(art,nr) FROM lieder_favorit WHERE vaid=$user_vaid)";
|
||||
}
|
||||
|
||||
|
||||
# In Status suche
|
||||
# K A P U: Status K: Keine Einschränkung, braucht hier nicht berücksichtigt werden.
|
||||
if($row_liedopt['lied_status'] == 'A'){
|
||||
# Aufführbare Lieder
|
||||
$query_gd3 = "AND concat(art,nr) IN (SELECT concat(art,nr) FROM lieder_status WHERE vaid=$user_vaid AND status='A')";
|
||||
}elseif($row_liedopt['lied_status'] == 'P'){
|
||||
#Probe/Übphase
|
||||
$query_gd3 = "AND concat(art,nr) IN (SELECT concat(art,nr) FROM lieder_status WHERE vaid=$user_vaid AND status='U')";
|
||||
}elseif($row_liedopt['lied_status'] == 'U'){
|
||||
# Alle außer status A und U
|
||||
$query_gd3 = "AND concat(art,nr) NOT IN (SELECT concat(art,nr) FROM lieder_status WHERE vaid=$user_vaid)";
|
||||
}
|
||||
}
|
||||
|
||||
if($row_liedopt['lied_bestand'] == 'GB' OR $row_liedopt['lied_bestand'] == 'ALL'){
|
||||
$query_gd8= "SELECT 'GB' art, a.gbid id, nr, zusatz, titel, text, kategorie, unterkategorie
|
||||
FROM lieder a, lieder_kategorie_zuord b, lieder_texte c, lieder_kategorie d, lieder_unterkategorie e
|
||||
WHERE a.gbid = b.id
|
||||
AND a.gbid=c.gbid
|
||||
AND b.id=c.gbid
|
||||
AND b.lukid=e.lukid
|
||||
AND e.lkid=d.lkid
|
||||
AND b.lukid=$lukid
|
||||
AND b.art='GB'
|
||||
";
|
||||
# Nur auf Favoriten beschränken
|
||||
if($row_liedopt['lied_favorit'] == 1){
|
||||
$query_gd9 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_favorit WHERE vaid=$user_vaid)";
|
||||
}
|
||||
|
||||
# In Status suche
|
||||
# K A P U: Status K: Keine Einschränkung, braucht hier nicht berücksichtigt werden.
|
||||
if($row_liedopt['lied_status'] == 'A'){
|
||||
# Aufführbare Lieder
|
||||
$query_gd10 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_status WHERE vaid=$user_vaid AND status='A')";
|
||||
}elseif($row_liedopt['lied_status'] == 'P'){
|
||||
#Probe/Übphase
|
||||
$query_gd10 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_status WHERE vaid=$user_vaid AND status='U')";
|
||||
}elseif($row_liedopt['lied_status'] == 'U'){
|
||||
# Alle außer status A und U
|
||||
$query_gd10 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) NOT IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_status WHERE vaid=$user_vaid)";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($query_gd1 != '' AND $query_gd8 != ''){
|
||||
$query_union = " UNION ";
|
||||
}else{
|
||||
$query_union = "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$query_gd = $query_gd1 . $query_gd2 . $query_gd3 . $query_union . $query_gd8. $query_gd9 . $query_gd10 . " ORDER BY nr, art, titel";
|
||||
|
||||
$result_gd = $db->query($query_gd);
|
||||
$zaehler=0;
|
||||
while ($row_kat = $result_gd->fetch_array()) {
|
||||
$zaehler++;
|
||||
$preview = kurzer_text($row_kat['text'],150);
|
||||
$row_kat['preview'] = $preview;
|
||||
$value_kat[] = $row_kat;
|
||||
}
|
||||
$smarty->assign('table_data', $value_kat);
|
||||
$smarty->assign('anzahltreffer', $zaehler);
|
||||
if($row_liedopt['lied_bestand'] != 'ALL'){
|
||||
if($row_liedopt['lied_bestand'] == 'CB'){
|
||||
$bestand = "Nur Chorbuch;";
|
||||
}
|
||||
if($row_liedopt['lied_bestand'] == 'GB'){
|
||||
$bestand = "Nur Gesangbuch;";
|
||||
}
|
||||
}
|
||||
|
||||
if($row_liedopt['lied_favorit'] == '1'){
|
||||
$favorit = "Nur Favoritenlieder;";
|
||||
}
|
||||
|
||||
if($row_liedopt['lied_status'] != 'K'){
|
||||
if($row_liedopt['lied_status'] == 'A'){
|
||||
# Aufführbare Lieder
|
||||
$status = "Nur aufführbare Lieder;";
|
||||
}elseif($row_liedopt['lied_status'] == 'P'){
|
||||
#Probe/Übphase
|
||||
$status = "Nur Lieder in der Übphase;";
|
||||
}elseif($row_liedopt['lied_status'] == 'U'){
|
||||
# Alle außer status A und U
|
||||
$status = "Nur unbekannte Lieder;";
|
||||
}
|
||||
}
|
||||
|
||||
$optanz_lied_filter = "$bestand $favorit $status";
|
||||
|
||||
|
||||
$smarty->assign('optanz_lied_status', trim($optanz_lied_filter));
|
||||
$smarty->display("../templates/$template/lieder/$templatename");
|
||||
?>
|
||||
|
10
lieder/lied_optionen.php
Normal file
10
lieder/lied_optionen.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
include_once '../classes/lg-on_Smarty.class_subdir.php';
|
||||
$smarty = new lgon_Smarty();
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
$smarty->display("../templates/$template/lieder/$templatename");
|
||||
?>
|
339
lieder/liedanzeige.php
Normal file
339
lieder/liedanzeige.php
Normal file
@ -0,0 +1,339 @@
|
||||
<?php
|
||||
include_once '../classes/lg-on_Smarty.class_subdir.php';
|
||||
$smarty = new lgon_Smarty();
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
require_once("star/Rate.php");
|
||||
$rate = new Rate();
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
$teile = explode(" ", $_GET ["load"]);
|
||||
$art= trim($teile[0]);
|
||||
$nummer = trim($teile[1]);
|
||||
$zusatz = trim($teile[2]);
|
||||
|
||||
setcookie("liedanzeige_art","$art");
|
||||
setcookie("liedanzeige_nummer","$nummer");
|
||||
setcookie("liedanzeige_zusatz","$zusatz");
|
||||
|
||||
if(isset($_GET['action'])){
|
||||
$action = $_GET['action'];
|
||||
}else{
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if($action == ''){
|
||||
if($zusatz == ''){
|
||||
$zusatz="IS NULL";
|
||||
}else{
|
||||
$zusatz="= '$zusatz'";
|
||||
}
|
||||
|
||||
|
||||
|
||||
$result_lied = $db->query( "SELECT art, id, nr, zusatz, titel, text, kategorie, unterkategorie
|
||||
FROM lieder_synopse
|
||||
WHERE art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz" );
|
||||
$row_lied = $result_lied->fetch_array();
|
||||
|
||||
$smarty->assign('liedanzeige_art', "$row_lied[art]");
|
||||
$smarty->assign('liedanzeige_nr', "$row_lied[nr]");
|
||||
$smarty->assign('liedanzeige_zusatz', "$row_lied[zusatz]");
|
||||
$smarty->assign('liedanzeige_titel', "$row_lied[titel]");
|
||||
$smarty->assign('liedanzeige_kategorie', "$row_lied[kategorie]");
|
||||
$smarty->assign('liedanzeige_unterkategorie', "$row_lied[unterkategorie]");
|
||||
$smarty->assign('liedanzeige_text', "$row_lied[text]");
|
||||
|
||||
$datum = date("Y-m-d", time());
|
||||
$smarty->assign('liedanzeige_date', "$datum");
|
||||
|
||||
# Gottesdienst auslesen
|
||||
if(!isset($_GET["more_gd"])){
|
||||
$more_gd = 5;
|
||||
setcookie("more_gd","$more_gd");
|
||||
}else{
|
||||
$more_gd = $_COOKIE["more_gd"]+5;
|
||||
setcookie("more_gd","$more_gd");
|
||||
}
|
||||
|
||||
$result_vorh_gd = $db->query( "SELECT count(*) Anz
|
||||
FROM lieder_auffuehrung
|
||||
WHERE VAID =$user_vaid
|
||||
AND art = '$art'
|
||||
AND Nr = '$nummer'
|
||||
AND zusatz $zusatz
|
||||
AND status = 'G'"
|
||||
);
|
||||
$row_vorh_gd = $result_vorh_gd->fetch_array();
|
||||
$smarty->assign('liedanzeige_anz_gd', "$row_vorh_gd[Anz]");
|
||||
$smarty->assign('liedanzeige_more_gd', "$more_gd");
|
||||
|
||||
$query_gd = "SELECT laid
|
||||
, vaid
|
||||
, DATE_Format(datum, '%d.%m.%Y')AS datum_form
|
||||
, DATE_Format(datum, '%d')AS tag
|
||||
, DATE_Format(datum, '%m')AS monat
|
||||
, DATE_Format(datum, '%Y')AS jahr
|
||||
, DATE_Format(datum, '%Y%m%d')AS datum_sort
|
||||
FROM lieder_auffuehrung
|
||||
WHERE VAID =$user_vaid
|
||||
AND art = '$art'
|
||||
AND Nr = '$nummer'
|
||||
AND zusatz $zusatz
|
||||
AND status = 'G'
|
||||
ORDER BY datum_sort DESC
|
||||
LIMIT 0,$more_gd
|
||||
";
|
||||
$result_gd = $db->query($query_gd);
|
||||
|
||||
while ($row_gd = $result_gd->fetch_array()) {
|
||||
$result = $rate->getAllPost("$row_gd[laid]");
|
||||
if(!empty($result)) {
|
||||
$i=0;
|
||||
foreach ($result as $tutorial) {
|
||||
$star = "";
|
||||
for($i=1;$i<=10;$i++) {
|
||||
$selected = "";
|
||||
if(!empty($tutorial["rating"]) && $i<=$tutorial["rating"]) {
|
||||
$selected = "selected";
|
||||
}
|
||||
$star .= "<li class='$selected' onmouseover=\"highlightStar(this,$tutorial[id]);\" onmouseout=\"removeHighlight($tutorial[id]);\" onClick=\"addRating(this,$tutorial[id]);\">★</li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
if($row_gd['vaid'] == $user_vaid){
|
||||
$enable_del = 1;
|
||||
}else{
|
||||
$enable_del = 0;
|
||||
}
|
||||
|
||||
|
||||
$wochentag = date("l", mktime(0,0,0,$row_gd['monat'],$row_gd['tag'],$row_gd['jahr']));
|
||||
|
||||
switch($wochentag){
|
||||
case 'Sunday':
|
||||
$wochentag_wt = "So.";
|
||||
break;
|
||||
case 'Monday':
|
||||
$wochentag_wt = "Mo.";
|
||||
break;
|
||||
case 'Tuesday':
|
||||
$wochentag_wt = "Di.";
|
||||
break;
|
||||
case 'Wednesday':
|
||||
$wochentag_wt = "Mi.";
|
||||
break;
|
||||
case 'Thursday':
|
||||
$wochentag_wt = "Do.";
|
||||
break;
|
||||
case 'Friday':
|
||||
$wochentag_wt = "Fr.";
|
||||
break;
|
||||
case 'Saturday':
|
||||
$wochentag_wt = "Sa.";
|
||||
break;
|
||||
}
|
||||
|
||||
$row_gd['datum_form'] = "$wochentag_wt, ".$row_gd['datum_form'];
|
||||
$row_gd['tutorial_enable_del'] = $enable_del;
|
||||
$row_gd['tutorial_id'] = $tutorial["id"];
|
||||
$row_gd['tutorial_rating'] = $tutorial["rating"];
|
||||
$row_gd['tutorial_star'] = $star;
|
||||
$value_gd[] = $row_gd;
|
||||
}
|
||||
$smarty->assign('table_data2', $value_gd);
|
||||
|
||||
|
||||
|
||||
# Chorproben auslesen
|
||||
if(!isset($_GET["more_chor"])){
|
||||
$more_chor = 5;
|
||||
setcookie("more_chor","$more_chor");
|
||||
}else{
|
||||
$more_chor = $_COOKIE["more_chor"]+5;
|
||||
setcookie("more_chor","$more_chor");
|
||||
}
|
||||
|
||||
$result_vorh_chor = $db->query( "SELECT count(*) Anz
|
||||
FROM lieder_auffuehrung
|
||||
WHERE VAID =$user_vaid
|
||||
AND art = '$art'
|
||||
AND Nr = '$nummer'
|
||||
AND zusatz $zusatz
|
||||
AND status = 'C'"
|
||||
);
|
||||
$row_vorh_chor = $result_vorh_chor->fetch_array();
|
||||
$smarty->assign('liedanzeige_anz_chor', "$row_vorh_chor[Anz]");
|
||||
$smarty->assign('liedanzeige_more_chor', "$more_chor");
|
||||
$query_chor = "SELECT laid
|
||||
, vaid
|
||||
, DATE_Format(datum, '%d.%m.%Y')AS datum_form
|
||||
, DATE_Format(datum, '%d')AS tag
|
||||
, DATE_Format(datum, '%m')AS monat
|
||||
, DATE_Format(datum, '%Y')AS jahr
|
||||
, DATE_Format(datum, '%Y%m%d')AS datum_sort
|
||||
FROM lieder_auffuehrung
|
||||
WHERE VAID =$user_vaid
|
||||
AND art = '$art'
|
||||
AND Nr = '$nummer'
|
||||
AND zusatz $zusatz
|
||||
AND status = 'C'
|
||||
ORDER BY datum_sort DESC
|
||||
";
|
||||
$result_chor = $db->query($query_chor);
|
||||
|
||||
while ($row_chor = $result_chor->fetch_array()) {
|
||||
$result = $rate->getAllPost("$row_chor[laid]");
|
||||
if(!empty($result)) {
|
||||
$i=0;
|
||||
foreach ($result as $tutorial) {
|
||||
$star = "";
|
||||
for($i=1;$i<=10;$i++) {
|
||||
$selected = "";
|
||||
if(!empty($tutorial["rating"]) && $i<=$tutorial["rating"]) {
|
||||
$selected = "selected";
|
||||
}
|
||||
$star .= "<li class='$selected' onmouseover=\"highlightStar(this,$tutorial[id]);\" onmouseout=\"removeHighlight($tutorial[id]);\" onClick=\"addRating(this,$tutorial[id]);\">★</li>";
|
||||
}
|
||||
}
|
||||
}
|
||||
if($row_chor['vaid'] == $user_vaid){
|
||||
$enable_del = 1;
|
||||
}else{
|
||||
$enable_del = 0;
|
||||
}
|
||||
|
||||
$wochentag = date("l", mktime(0,0,0,$row_chor['monat'],$row_chor['tag'],$row_chor['jahr']));
|
||||
|
||||
switch($wochentag){
|
||||
case 'Sunday':
|
||||
$wochentag_wt = "So.";
|
||||
break;
|
||||
case 'Monday':
|
||||
$wochentag_wt = "Mo.";
|
||||
break;
|
||||
case 'Tuesday':
|
||||
$wochentag_wt = "Di.";
|
||||
break;
|
||||
case 'Wednesday':
|
||||
$wochentag_wt = "Mi.";
|
||||
break;
|
||||
case 'Thursday':
|
||||
$wochentag_wt = "Do.";
|
||||
break;
|
||||
case 'Friday':
|
||||
$wochentag_wt = "Fr.";
|
||||
break;
|
||||
case 'Saturday':
|
||||
$wochentag_wt = "Sa.";
|
||||
break;
|
||||
}
|
||||
|
||||
$row_chor['datum_form'] = "$wochentag_wt, ".$row_chor['datum_form'];
|
||||
|
||||
$row_chor['tutorial_enable_del'] = $enable_del;
|
||||
$row_chor['tutorial_id'] = $tutorial["id"];
|
||||
$row_chor['tutorial_rating'] = $tutorial["rating"];
|
||||
$row_chor['tutorial_star'] = $star;
|
||||
$value_chor[] = $row_chor;
|
||||
}
|
||||
$smarty->assign('table_data', $value_chor);
|
||||
|
||||
}
|
||||
|
||||
if($action == 'gddatum'){
|
||||
$datum = $_POST["datum_gd"];
|
||||
$art=$_COOKIE["liedanzeige_art"];
|
||||
$nummer=$_COOKIE["liedanzeige_nummer"];
|
||||
$zusatz=$_COOKIE["liedanzeige_zusatz"];
|
||||
|
||||
if($zusatz == ''){
|
||||
$zusatz1="IS NULL";
|
||||
}else{
|
||||
$zusatz1="= '$zusatz'";
|
||||
}
|
||||
|
||||
|
||||
$result_vorh = $db->query( "SELECT count(*) Anz
|
||||
FROM lieder_auffuehrung
|
||||
WHERE datum = '$datum'
|
||||
AND VAID = '$user_vaid'
|
||||
AND art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz1
|
||||
AND status = 'G'"
|
||||
);
|
||||
$row_vorh = $result_vorh->fetch_array();
|
||||
if($row_vorh['Anz'] == 0){
|
||||
if($zusatz == ''){
|
||||
$zusatz2 = "NULL";
|
||||
}else{
|
||||
$zusatz2 = "'".$zusatz."'";
|
||||
}
|
||||
|
||||
$result_1 = $db->query( "INSERT INTO lieder_auffuehrung (datum, VAID, art, Nr, zusatz, gemeinde, status)
|
||||
VALUES ('$datum', '$user_vaid', '$art', '$nummer', $zusatz2, '0', 'G')");
|
||||
}
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."?load=$art $nummer $zusatz\">";
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
if($action == 'chordatum'){
|
||||
$datum = $_POST["datum_chor"];
|
||||
$art=$_COOKIE["liedanzeige_art"];
|
||||
$nummer=$_COOKIE["liedanzeige_nummer"];
|
||||
$zusatz=$_COOKIE["liedanzeige_zusatz"];
|
||||
|
||||
if($zusatz == ''){
|
||||
$zusatz1="IS NULL";
|
||||
}else{
|
||||
$zusatz1="= '$zusatz'";
|
||||
}
|
||||
|
||||
$result_vorh = $db->query( "SELECT count(*) Anz
|
||||
FROM lieder_auffuehrung
|
||||
WHERE datum = '$datum'
|
||||
AND VAID = '$user_vaid'
|
||||
AND art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz1
|
||||
AND status = 'C'"
|
||||
);
|
||||
$row_vorh = $result_vorh->fetch_array();
|
||||
if($row_vorh['Anz'] == 0){
|
||||
if($zusatz == ''){
|
||||
$zusatz2 = "NULL";
|
||||
}else{
|
||||
$zusatz2 = "'".$zusatz."'";
|
||||
}
|
||||
$result_1 = $db->query( "INSERT INTO lieder_auffuehrung (datum, VAID, art, Nr, zusatz, gemeinde, status)
|
||||
VALUES ('$datum', '$user_vaid', '$art', '$nummer', $zusatz2, '0', 'C')");
|
||||
}
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."?load=$art $nummer $zusatz\">";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
if($action == 'del'){
|
||||
$art=$_COOKIE["liedanzeige_art"];
|
||||
$nummer=$_COOKIE["liedanzeige_nummer"];
|
||||
$zusatz=$_COOKIE["liedanzeige_zusatz"];
|
||||
$laid = $_GET["laid"];
|
||||
|
||||
# Nur die eigenen Bewertungen l<>schen
|
||||
$result_1 = $db->query( "DELETE FROM lieder_auffuehrung WHERE laid=$laid AND vaid=$user_vaid");
|
||||
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."?load=$art $nummer $zusatz\">";
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("../templates/$template/lieder/$templatename");
|
||||
?>
|
11
lieder/liedanzeige_frame.php
Normal file
11
lieder/liedanzeige_frame.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
include_once '../classes/lg-on_Smarty.class_subdir.php';
|
||||
$smarty = new lgon_Smarty();
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
$smarty->assign('liedanzeige_frame_load', $_GET['load']);
|
||||
|
||||
$smarty->display("../templates/$template/lieder/$templatename");
|
||||
?>
|
263
lieder/lieder_auswahl.php
Normal file
263
lieder/lieder_auswahl.php
Normal file
@ -0,0 +1,263 @@
|
||||
<?php
|
||||
include_once '../classes/lg-on_Smarty.class_subdir.php';
|
||||
$smarty = new lgon_Smarty();
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
/*
|
||||
ALTER TABLE `lieder` ADD `Titel_suche` MEDIUMTEXT NOT NULL AFTER `Titel`;
|
||||
update lieder set Titel_suche=Titel;
|
||||
|
||||
ALTER TABLE `lieder_texte` ADD `Text_suche` MEDIUMTEXT NOT NULL AFTER `Text`;
|
||||
update lieder_texte set Text_suche=Text;
|
||||
|
||||
ALTER TABLE `chorbuch` ADD `Titel_suche` MEDIUMTEXT NOT NULL AFTER `Titel`;
|
||||
update chorbuch set Titel_suche=Titel;
|
||||
|
||||
ALTER TABLE `chorbuch_texte` ADD `Text_suche` MEDIUMTEXT NOT NULL AFTER `Text`;
|
||||
update chorbuch_texte set Text_suche=Text;
|
||||
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,''', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,''', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,''', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,''', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'“', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'“', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'“', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'“', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'„', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'„', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'„', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'„', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'’', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'’', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'’', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'’', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,"'", '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,"'", '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,"'", '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,"'", '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,':', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,':', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,':', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,':', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'|', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'|', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'|', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'|', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,';', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,';', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,';', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,';', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'?', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'?', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'?', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'?', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'!', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'!', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'!', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'!', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'.', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'.', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'.', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'.', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,',', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,',', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,',', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,',', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'<br>', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'<br>', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'<br>', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'<br>', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'"', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'"', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'"', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'"', '');
|
||||
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'1 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'1 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'1 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'1 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'2 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'2 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'2 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'2 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'3 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'3 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'3 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'3 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'4 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'4 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'4 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'4 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'5 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'5 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'5 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'5 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'6 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'6 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'6 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'6 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'7 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'7 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'7 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'7 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'8 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'8 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'8 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'8 ', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'9 ', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'9 ', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'9 ', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'9 ', '');
|
||||
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'<em>', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'<em>', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'<em>', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'<em>', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'</em>', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'</em>', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'</em>', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'</em>', '');
|
||||
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,'*', '');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,'*', '');
|
||||
update chorbuch set titel_suche=replace(titel_suche,'*', '');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,'*', '');
|
||||
|
||||
update lieder set titel_suche=replace(titel_suche,' ', ' ');
|
||||
update lieder_texte set Text_suche=replace(Text_suche,' ', ' ');
|
||||
update chorbuch set titel_suche=replace(titel_suche,' ', ' ');
|
||||
update chorbuch_texte set Text_suche=replace(Text_suche,' ', ' ');
|
||||
|
||||
update lieder set titel_suche=trim(titel_suche);
|
||||
update lieder_texte set Text_suche=trim(Text_suche);
|
||||
update chorbuch set titel_suche=trim(titel_suche);
|
||||
update chorbuch_texte set Text_suche=trim(Text_suche);
|
||||
|
||||
entfernen von unten nach oben:
|
||||
1.-9. Punkte wurden vorher schon entfernt
|
||||
# "
|
||||
# ,
|
||||
# .
|
||||
# !
|
||||
# ?
|
||||
# ;
|
||||
# |
|
||||
# :
|
||||
# '
|
||||
# ’
|
||||
# „
|
||||
# “
|
||||
# '
|
||||
*/
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
$query = "SELECT lkid, kategorie
|
||||
FROM lieder_kategorie
|
||||
ORDER BY lkid ASC
|
||||
";
|
||||
|
||||
$zaehler = 0;
|
||||
$outer_loop = array();
|
||||
|
||||
$result = $db->query($query) or die("Cannot execute query");
|
||||
;
|
||||
while ($row = $result->fetch_array()) {
|
||||
#$value2 = '';
|
||||
$zaehler = $zaehler + 1;
|
||||
$query1 = "SELECT lukid, lkid, unterkategorie
|
||||
FROM lieder_unterkategorie
|
||||
WHERE lkid = '$row[lkid].%'
|
||||
ORDER BY lukid ASC
|
||||
";
|
||||
|
||||
$result1 = $db->query($query1) or die("Cannot execute query1");
|
||||
|
||||
while ($row2 = $result1->fetch_array()) {
|
||||
$value2[] = $row2;
|
||||
}
|
||||
|
||||
$row['zaehler'] = $zaehler;
|
||||
$row['inner'] = $value2;
|
||||
$value[] = $row;
|
||||
|
||||
}
|
||||
#echo "<pre>";
|
||||
#print_r($value);
|
||||
#echo "</pre>";
|
||||
#exit;
|
||||
$smarty->assign('outer_loop', $value);
|
||||
|
||||
$result_liedopt = $db->query( "SELECT lied_search, lied_bestand, lied_favorit, lied_status
|
||||
FROM profil
|
||||
WHERE user='$user_admin'");
|
||||
$row_liedopt = $result_liedopt->fetch_array();
|
||||
|
||||
if($row_liedopt['lied_search'] == 'regexp'){
|
||||
$lied_search = "Ganze Wörter";
|
||||
}elseif($row_liedopt['lied_search'] == 'like'){
|
||||
$lied_search = "Wortbestandteile";
|
||||
}
|
||||
|
||||
if($row_liedopt['lied_bestand'] == 'ALL'){
|
||||
$lied_bestand = "Gesamtbestand";
|
||||
}elseif($row_liedopt['lied_bestand'] == 'CB'){
|
||||
$lied_bestand = "Chorbuch";
|
||||
}elseif($row_liedopt['lied_bestand'] == 'GB'){
|
||||
$lied_bestand = "Gesangbuch";
|
||||
}
|
||||
|
||||
if($row_liedopt['lied_favorit'] == '1'){
|
||||
$lied_favorit = "Ja";
|
||||
}elseif($row_liedopt['lied_favorit'] == '0'){
|
||||
$lied_favorit = "Nein";
|
||||
}
|
||||
|
||||
if($row_liedopt['lied_status'] == 'A'){
|
||||
$lied_status = "Aufführbare Lieder";
|
||||
}elseif($row_liedopt['lied_status'] == 'P'){
|
||||
$lied_status = "Übphase";
|
||||
}elseif($row_liedopt['lied_status'] == 'U'){
|
||||
$lied_status = "Unbekannte Lieder";
|
||||
}elseif($row_liedopt['lied_status'] == 'K'){
|
||||
$lied_status = "Keine Statusbeschränkung";
|
||||
}
|
||||
|
||||
|
||||
|
||||
$smarty->assign('opt_lied_search', $lied_search);
|
||||
$smarty->assign('opt_lied_bestand', $lied_bestand);
|
||||
$smarty->assign('opt_lied_favorit', $lied_favorit);
|
||||
$smarty->assign('opt_lied_status', $lied_status);
|
||||
|
||||
$smarty->display("../templates/$template/lieder/$templatename");
|
||||
?>
|
10
lieder/lieder_personalisieren.php
Normal file
10
lieder/lieder_personalisieren.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
include_once '../classes/lg-on_Smarty.class_subdir.php';
|
||||
$smarty = new lgon_Smarty();
|
||||
require_once("../config.inc.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
$smarty->display("../templates/$template/lieder/$templatename");
|
||||
?>
|
75
lieder/lieder_synopse.sql
Normal file
75
lieder/lieder_synopse.sql
Normal file
@ -0,0 +1,75 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.5.1
|
||||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Erstellungszeit: 06. Dez 2018 um 13:59
|
||||
-- Server-Version: 10.1.19-MariaDB
|
||||
-- PHP-Version: 7.0.13
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Datenbank: leitgedanken
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Struktur des Views lieder_synopse
|
||||
--
|
||||
ALTER TABLE `lieder` CHANGE `zusatz` `zusatz` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;;
|
||||
|
||||
drop view lieder_synopse;
|
||||
CREATE VIEW lieder_synopse
|
||||
AS
|
||||
select 'CB' AS art
|
||||
,d.CBID AS id
|
||||
,e.Nr AS Nr
|
||||
,'' AS zusatz
|
||||
,e.Titel AS Titel
|
||||
,e.Titel_suche AS Titel_suche
|
||||
,d.Text AS Text
|
||||
,d.Text_suche AS Text_suche
|
||||
,c.kategorie
|
||||
,b.unterkategorie
|
||||
from lieder_kategorie_zuord a, lieder_unterkategorie b, lieder_kategorie c, chorbuch_texte d, chorbuch e
|
||||
where a.lukid = b.lukid
|
||||
and b.lkid=c.lkid
|
||||
and a.id=e.cbid
|
||||
and e.cbid=d.cbid
|
||||
and a.art='CB'
|
||||
union
|
||||
select 'GB' AS art
|
||||
,d.GBID AS id
|
||||
,e.Nr AS Nr
|
||||
,zusatz AS zusatz
|
||||
,e.Titel AS Titel
|
||||
,e.Titel_suche AS Titel_suche
|
||||
,d.Text AS Text
|
||||
,d.Text_suche AS Text_suche
|
||||
,c.kategorie
|
||||
,b.unterkategorie
|
||||
from lieder_kategorie_zuord a, lieder_unterkategorie b, lieder_kategorie c, lieder_texte d, lieder e
|
||||
where a.lukid = b.lukid
|
||||
and b.lkid=c.lkid
|
||||
and a.id=e.gbid
|
||||
and e.gbid=d.gbid
|
||||
and a.art='GB';
|
||||
|
||||
--
|
||||
-- VIEW lieder_synopse
|
||||
-- Daten: keine
|
||||
--
|
||||
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
120
lieder/liednotizen.php
Normal file
120
lieder/liednotizen.php
Normal file
@ -0,0 +1,120 @@
|
||||
<?php
|
||||
# Fuer debugging
|
||||
#error_reporting(E_ALL);
|
||||
#ini_set('display_errors', 1);
|
||||
#echo __LINE__."<br>";
|
||||
|
||||
include_once '../classes/lg-on_Smarty.class_subdir.php';
|
||||
$smarty = new lgon_Smarty();
|
||||
require_once("../config.inc.php");
|
||||
require_once("../func_rollenrechte.php");
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']),0,-3)."html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
|
||||
$db = dbconnect();
|
||||
// Rechteüberprüfung
|
||||
|
||||
if ($user_admin == ""){ require("index.php"); exit;} //Wenn man nicht angemeldet ist, darf man nicht auf die Seite
|
||||
if(!rore($user_admin,'a_notes','RE')){require("lib/rechte.php");exit;}
|
||||
// Rechteüberprüfung ende
|
||||
|
||||
|
||||
$teile = explode(" ", $_GET ["load"]);
|
||||
$art= trim($teile[0]);
|
||||
$nummer = trim($teile[1]);
|
||||
|
||||
if(isset($teile[2])){
|
||||
$zusatz = trim($teile[2]);
|
||||
}else{
|
||||
$zusatz ='';
|
||||
}
|
||||
|
||||
|
||||
setcookie("liednotizen_load",$_GET["load"]);
|
||||
setcookie("liednotizen_art","$art");
|
||||
setcookie("liednotizen_nummer","$nummer");
|
||||
setcookie("liednotizen_zusatz","$zusatz");
|
||||
|
||||
|
||||
if(isset($_GET['action'])){
|
||||
$action = $_GET['action'];
|
||||
}else{
|
||||
$action = '';
|
||||
}
|
||||
if($action == ''){
|
||||
if($zusatz == ''){
|
||||
$zusatz="IS NULL";
|
||||
}else{
|
||||
$zusatz="= '$zusatz'";
|
||||
}
|
||||
|
||||
|
||||
|
||||
$result = $db->query( "SELECT notiz
|
||||
FROM lieder_notizen
|
||||
WHERE art = '$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz
|
||||
AND vaid=$user_vaid
|
||||
");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
|
||||
$notiz =str_replace ('"', '\"' , $row['notiz']);
|
||||
$notiz =str_replace ("'", "\'" , $notiz);
|
||||
$notiz = preg_replace("/\r*|\n*/s", "", $notiz);
|
||||
$notiz = preg_replace("/(\r\n|\n|\r)/", "", $notiz);
|
||||
# echo $notiz;
|
||||
# exit;
|
||||
#$notiz = strip_tags($notiz);
|
||||
|
||||
$smarty->assign('notes_text', "$notiz");
|
||||
|
||||
# $smarty->assign('notes_lid', "$lid");
|
||||
|
||||
}
|
||||
|
||||
if($action == 'notes'){
|
||||
|
||||
|
||||
$zusatz = $_COOKIE['liednotizen_zusatz'];
|
||||
$art = $_COOKIE['liednotizen_art'];
|
||||
$nummer = $_COOKIE['liednotizen_nummer'];
|
||||
$load = $_COOKIE['liednotizen_load'];
|
||||
|
||||
if ($zusatz == '') {
|
||||
$zusatz1 = "NULL";
|
||||
} else {
|
||||
$zusatz1 = "'" . $zusatz . "'";
|
||||
}
|
||||
|
||||
if($zusatz == ''){
|
||||
$zusatz2="IS NULL";
|
||||
}else{
|
||||
$zusatz2="= '$zusatz'";
|
||||
}
|
||||
|
||||
$db->query("DELETE FROM lieder_notizen
|
||||
WHERE vaid=$user_vaid
|
||||
AND art='$art'
|
||||
AND nr = '$nummer'
|
||||
AND zusatz $zusatz2");
|
||||
|
||||
$smarty->assign('notes_load', "$load");
|
||||
$notiz = $db->real_escape_string(stripslashes( $_POST['notizen'] ));
|
||||
|
||||
$db = dbconnect();
|
||||
# echo "INSERT INTO lieder_notizen (vaid, art, nr, zusatz, notiz) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '$notiz' )";
|
||||
#exit;
|
||||
$db->query( "INSERT INTO lieder_notizen (vaid, art, nr, zusatz, notiz) VALUES ($user_vaid, '$art', '$nummer', $zusatz1, '$notiz' )");
|
||||
$db->query( "DELETE FROM lieder_notizen WHERE notiz=''" );
|
||||
|
||||
#session_destroy();
|
||||
$smarty->assign('notes_redirect', "1");
|
||||
|
||||
}
|
||||
|
||||
$smarty->assign('action', "$action");
|
||||
$smarty->display("../templates/$template/lieder/$templatename");
|
||||
?>
|
289
lieder/livesearch/ajax-dynamic-list.js
Normal file
289
lieder/livesearch/ajax-dynamic-list.js
Normal file
@ -0,0 +1,289 @@
|
||||
/************************************************************************************************************
|
||||
(C) www.dhtmlgoodies.com, April 2006
|
||||
|
||||
This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.
|
||||
|
||||
Terms of use:
|
||||
You are free to use this script as long as the copyright message is kept intact. However, you may not
|
||||
redistribute, sell or repost it without our permission.
|
||||
|
||||
Thank you!
|
||||
|
||||
www.dhtmlgoodies.com
|
||||
Alf Magne Kalleland
|
||||
|
||||
************************************************************************************************************/
|
||||
|
||||
var ajaxBox_offsetX = 0;
|
||||
var ajaxBox_offsetY = 0;
|
||||
var ajax_list_externalFile = 'livesearch_lieder.php'; // Path to external file
|
||||
var minimumLettersBeforeLookup = 1; // Number of letters entered before a lookup is performed.
|
||||
|
||||
var ajax_list_objects = new Array();
|
||||
var ajax_list_cachedLists = new Array();
|
||||
var ajax_list_activeInput = false;
|
||||
var ajax_list_activeItem;
|
||||
var ajax_list_optionDivFirstItem = false;
|
||||
var ajax_list_currentLetters = new Array();
|
||||
var ajax_optionDiv = false;
|
||||
var ajax_optionDiv_iframe = false;
|
||||
|
||||
var ajax_list_MSIE = false;
|
||||
if(navigator.userAgent.indexOf('MSIE')>=0 && navigator.userAgent.indexOf('Opera')<0)ajax_list_MSIE=true;
|
||||
|
||||
var currentListIndex = 0;
|
||||
|
||||
function ajax_getTopPos(inputObj)
|
||||
{
|
||||
|
||||
var returnValue = inputObj.offsetTop;
|
||||
while((inputObj = inputObj.offsetParent) != null){
|
||||
returnValue += inputObj.offsetTop;
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
function ajax_list_cancelEvent()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
function ajax_getLeftPos(inputObj)
|
||||
{
|
||||
var returnValue = inputObj.offsetLeft;
|
||||
while((inputObj = inputObj.offsetParent) != null)returnValue += inputObj.offsetLeft;
|
||||
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
function ajax_option_setValue(e,inputObj)
|
||||
{
|
||||
if(!inputObj)inputObj=this;
|
||||
var tmpValue = inputObj.innerHTML;
|
||||
if(ajax_list_MSIE)tmpValue = inputObj.innerText;else tmpValue = inputObj.textContent;
|
||||
if(!tmpValue)tmpValue = inputObj.innerHTML;
|
||||
|
||||
// Nach Eingabe soll das Eingabefeld leer sein, nicht den gew<65>hlten Text <20>bernommen werden
|
||||
//ajax_list_activeInput.value = tmpValue;
|
||||
ajax_list_activeInput.value = '';
|
||||
|
||||
var getstring = inputObj.id.substring(0,inputObj.id.indexOf('-'));
|
||||
parent.frames['inhaltframe'].location.href ="liedanzeige_frame.php?load="+getstring;
|
||||
|
||||
if(document.getElementById(ajax_list_activeInput.name + '_hidden'))document.getElementById(ajax_list_activeInput.name + '_hidden').value = inputObj.id;
|
||||
|
||||
|
||||
ajax_options_hide();
|
||||
}
|
||||
|
||||
function ajax_options_hide()
|
||||
{
|
||||
if(ajax_optionDiv)ajax_optionDiv.style.display='none';
|
||||
if(ajax_optionDiv_iframe)ajax_optionDiv_iframe.style.display='none';
|
||||
}
|
||||
|
||||
function ajax_options_rollOverActiveItem(item,fromKeyBoard)
|
||||
{
|
||||
if(ajax_list_activeItem)ajax_list_activeItem.className='optionDiv';
|
||||
item.className='optionDivSelected';
|
||||
ajax_list_activeItem = item;
|
||||
|
||||
if(fromKeyBoard){
|
||||
if(ajax_list_activeItem.offsetTop>ajax_optionDiv.offsetHeight){
|
||||
ajax_optionDiv.scrollTop = ajax_list_activeItem.offsetTop - ajax_optionDiv.offsetHeight + ajax_list_activeItem.offsetHeight + 2 ;
|
||||
}
|
||||
if(ajax_list_activeItem.offsetTop<ajax_optionDiv.scrollTop)
|
||||
{
|
||||
ajax_optionDiv.scrollTop = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function ajax_option_list_buildList(letters,paramToExternalFile)
|
||||
{
|
||||
|
||||
ajax_optionDiv.innerHTML = '';
|
||||
ajax_list_activeItem = false;
|
||||
if(ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()].length<=1){
|
||||
ajax_options_hide();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ajax_list_optionDivFirstItem = false;
|
||||
var optionsAdded = false;
|
||||
for(var no=0;no<ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()].length;no++){
|
||||
if(ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()][no].length==0)continue;
|
||||
optionsAdded = true;
|
||||
var div = document.createElement('DIV');
|
||||
var items = ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()][no].split(/###/gi);
|
||||
|
||||
if(ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()].length==1 && ajax_list_activeInput.value == items[0]){
|
||||
ajax_options_hide();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
div.innerHTML = items[items.length-1];
|
||||
div.id = items[0];
|
||||
div.className='optionDiv';
|
||||
div.onmouseover = function(){ ajax_options_rollOverActiveItem(this,false) }
|
||||
div.onclick = ajax_option_setValue;
|
||||
if(!ajax_list_optionDivFirstItem)ajax_list_optionDivFirstItem = div;
|
||||
ajax_optionDiv.appendChild(div);
|
||||
}
|
||||
if(optionsAdded){
|
||||
ajax_optionDiv.style.display='block';
|
||||
if(ajax_optionDiv_iframe)ajax_optionDiv_iframe.style.display='';
|
||||
ajax_options_rollOverActiveItem(ajax_list_optionDivFirstItem,true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function ajax_option_list_showContent(ajaxIndex,inputObj,paramToExternalFile,whichIndex)
|
||||
{
|
||||
if(whichIndex!=currentListIndex)return;
|
||||
var letters = inputObj.value;
|
||||
var content = ajax_list_objects[ajaxIndex].response;
|
||||
var elements = content.split('|');
|
||||
ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()] = elements;
|
||||
ajax_option_list_buildList(letters,paramToExternalFile);
|
||||
|
||||
}
|
||||
|
||||
function ajax_option_resize(inputObj)
|
||||
{
|
||||
ajax_optionDiv.style.top = (ajax_getTopPos(inputObj) + inputObj.offsetHeight + ajaxBox_offsetY) + 'px';
|
||||
ajax_optionDiv.style.left = (ajax_getLeftPos(inputObj) + ajaxBox_offsetX) + 'px';
|
||||
if(ajax_optionDiv_iframe){
|
||||
ajax_optionDiv_iframe.style.left = ajax_optionDiv.style.left;
|
||||
ajax_optionDiv_iframe.style.top = ajax_optionDiv.style.top;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function ajax_showOptions(inputObj,paramToExternalFile,e)
|
||||
{
|
||||
if(e.keyCode==13 || e.keyCode==9)return;
|
||||
if(ajax_list_currentLetters[inputObj.name]==inputObj.value)return;
|
||||
if(!ajax_list_cachedLists[paramToExternalFile])ajax_list_cachedLists[paramToExternalFile] = new Array();
|
||||
ajax_list_currentLetters[inputObj.name] = inputObj.value;
|
||||
if(!ajax_optionDiv){
|
||||
ajax_optionDiv = document.createElement('DIV');
|
||||
ajax_optionDiv.id = 'ajax_listOfOptions';
|
||||
document.body.appendChild(ajax_optionDiv);
|
||||
|
||||
if(ajax_list_MSIE){
|
||||
ajax_optionDiv_iframe = document.createElement('IFRAME');
|
||||
ajax_optionDiv_iframe.border='0';
|
||||
ajax_optionDiv_iframe.style.width = ajax_optionDiv.clientWidth + 'px';
|
||||
ajax_optionDiv_iframe.style.height = ajax_optionDiv.clientHeight + 'px';
|
||||
ajax_optionDiv_iframe.id = 'ajax_listOfOptions_iframe';
|
||||
|
||||
document.body.appendChild(ajax_optionDiv_iframe);
|
||||
}
|
||||
|
||||
var allInputs = document.getElementsByTagName('INPUT');
|
||||
for(var no=0;no<allInputs.length;no++){
|
||||
if(!allInputs[no].onkeyup)allInputs[no].onfocus = ajax_options_hide;
|
||||
}
|
||||
var allSelects = document.getElementsByTagName('SELECT');
|
||||
for(var no=0;no<allSelects.length;no++){
|
||||
allSelects[no].onfocus = ajax_options_hide;
|
||||
}
|
||||
|
||||
var oldonkeydown=document.body.onkeydown;
|
||||
if(typeof oldonkeydown!='function'){
|
||||
document.body.onkeydown=ajax_option_keyNavigation;
|
||||
}else{
|
||||
document.body.onkeydown=function(){
|
||||
oldonkeydown();
|
||||
ajax_option_keyNavigation() ;}
|
||||
}
|
||||
var oldonresize=document.body.onresize;
|
||||
if(typeof oldonresize!='function'){
|
||||
document.body.onresize=function() {ajax_option_resize(inputObj); };
|
||||
}else{
|
||||
document.body.onresize=function(){oldonresize();
|
||||
ajax_option_resize(inputObj) ;}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(inputObj.value.length<minimumLettersBeforeLookup){
|
||||
ajax_options_hide();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
ajax_optionDiv.style.top = (ajax_getTopPos(inputObj) + inputObj.offsetHeight + ajaxBox_offsetY) + 'px';
|
||||
ajax_optionDiv.style.left = (ajax_getLeftPos(inputObj) + ajaxBox_offsetX) + 'px';
|
||||
if(ajax_optionDiv_iframe){
|
||||
ajax_optionDiv_iframe.style.left = ajax_optionDiv.style.left;
|
||||
ajax_optionDiv_iframe.style.top = ajax_optionDiv.style.top;
|
||||
}
|
||||
|
||||
ajax_list_activeInput = inputObj;
|
||||
ajax_optionDiv.onselectstart = ajax_list_cancelEvent;
|
||||
currentListIndex++;
|
||||
if(ajax_list_cachedLists[paramToExternalFile][inputObj.value.toLowerCase()]){
|
||||
ajax_option_list_buildList(inputObj.value,paramToExternalFile,currentListIndex);
|
||||
}else{
|
||||
var tmpIndex=currentListIndex/1;
|
||||
ajax_optionDiv.innerHTML = '';
|
||||
var ajaxIndex = ajax_list_objects.length;
|
||||
ajax_list_objects[ajaxIndex] = new sack();
|
||||
var url = ajax_list_externalFile + '?' + paramToExternalFile + '=1&letters=' + inputObj.value.replace(" ","+");
|
||||
ajax_list_objects[ajaxIndex].requestFile = url; // Specifying which file to get
|
||||
ajax_list_objects[ajaxIndex].onCompletion = function(){ ajax_option_list_showContent(ajaxIndex,inputObj,paramToExternalFile,tmpIndex); }; // Specify function that will be executed after file has been found
|
||||
ajax_list_objects[ajaxIndex].runAJAX(); // Execute AJAX function
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function ajax_option_keyNavigation(e)
|
||||
{
|
||||
if(document.all)e = event;
|
||||
|
||||
if(!ajax_optionDiv)return;
|
||||
if(ajax_optionDiv.style.display=='none')return;
|
||||
|
||||
if(e.keyCode==38){ // Up arrow
|
||||
if(!ajax_list_activeItem)return;
|
||||
if(ajax_list_activeItem && !ajax_list_activeItem.previousSibling)return;
|
||||
ajax_options_rollOverActiveItem(ajax_list_activeItem.previousSibling,true);
|
||||
}
|
||||
|
||||
if(e.keyCode==40){ // Down arrow
|
||||
if(!ajax_list_activeItem){
|
||||
ajax_options_rollOverActiveItem(ajax_list_optionDivFirstItem,true);
|
||||
}else{
|
||||
if(!ajax_list_activeItem.nextSibling)return;
|
||||
ajax_options_rollOverActiveItem(ajax_list_activeItem.nextSibling,true);
|
||||
}
|
||||
}
|
||||
|
||||
if(e.keyCode==13 || e.keyCode==9){ // Enter key or tab key
|
||||
if(ajax_list_activeItem && ajax_list_activeItem.className=='optionDivSelected')ajax_option_setValue(false,ajax_list_activeItem);
|
||||
if(e.keyCode==13)return false; else return true;
|
||||
}
|
||||
if(e.keyCode==27){ // Escape key
|
||||
ajax_options_hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
document.documentElement.onclick = autoHideList;
|
||||
|
||||
function autoHideList(e)
|
||||
{
|
||||
if(document.all)e = event;
|
||||
|
||||
if (e.target) source = e.target;
|
||||
else if (e.srcElement) source = e.srcElement;
|
||||
if (source.nodeType == 3) // defeat Safari bug
|
||||
source = source.parentNode;
|
||||
if(source.tagName.toLowerCase()!='input' && source.tagName.toLowerCase()!='textarea')ajax_options_hide();
|
||||
|
||||
}
|
193
lieder/livesearch/ajax.js
Normal file
193
lieder/livesearch/ajax.js
Normal file
@ -0,0 +1,193 @@
|
||||
/* Simple AJAX Code-Kit (SACK) v1.6.1 */
|
||||
/* <20>2005 Gregory Wild-Smith */
|
||||
/* www.twilightuniverse.com */
|
||||
/* Software licenced under a modified X11 licence,
|
||||
see documentation or authors website for more details */
|
||||
|
||||
function sack(file) {
|
||||
this.xmlhttp = null;
|
||||
|
||||
this.resetData = function() {
|
||||
this.method = "POST";
|
||||
this.queryStringSeparator = "?";
|
||||
this.argumentSeparator = "&";
|
||||
this.URLString = "";
|
||||
this.encodeURIString = true;
|
||||
this.execute = false;
|
||||
this.element = null;
|
||||
this.elementObj = null;
|
||||
this.requestFile = file;
|
||||
this.vars = new Object();
|
||||
this.responseStatus = new Array(2);
|
||||
};
|
||||
|
||||
this.resetFunctions = function() {
|
||||
this.onLoading = function() { };
|
||||
this.onLoaded = function() { };
|
||||
this.onInteractive = function() { };
|
||||
this.onCompletion = function() { };
|
||||
this.onError = function() { };
|
||||
this.onFail = function() { };
|
||||
};
|
||||
|
||||
this.reset = function() {
|
||||
this.resetFunctions();
|
||||
this.resetData();
|
||||
};
|
||||
|
||||
this.createAJAX = function() {
|
||||
try {
|
||||
this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (e1) {
|
||||
try {
|
||||
this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (e2) {
|
||||
this.xmlhttp = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (! this.xmlhttp) {
|
||||
if (typeof XMLHttpRequest != "undefined") {
|
||||
this.xmlhttp = new XMLHttpRequest();
|
||||
} else {
|
||||
this.failed = true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.setVar = function(name, value){
|
||||
this.vars[name] = Array(value, false);
|
||||
};
|
||||
|
||||
this.encVar = function(name, value, returnvars) {
|
||||
if (true == returnvars) {
|
||||
return Array(encodeURIComponent(name), encodeURIComponent(value));
|
||||
} else {
|
||||
this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true);
|
||||
}
|
||||
}
|
||||
|
||||
this.processURLString = function(string, encode) {
|
||||
encoded = encodeURIComponent(this.argumentSeparator);
|
||||
regexp = new RegExp(this.argumentSeparator + "|" + encoded);
|
||||
varArray = string.split(regexp);
|
||||
for (i = 0; i < varArray.length; i++){
|
||||
urlVars = varArray[i].split("=");
|
||||
if (true == encode){
|
||||
this.encVar(urlVars[0], urlVars[1]);
|
||||
} else {
|
||||
this.setVar(urlVars[0], urlVars[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.createURLString = function(urlstring) {
|
||||
if (this.encodeURIString && this.URLString.length) {
|
||||
this.processURLString(this.URLString, true);
|
||||
}
|
||||
|
||||
if (urlstring) {
|
||||
if (this.URLString.length) {
|
||||
this.URLString += this.argumentSeparator + urlstring;
|
||||
} else {
|
||||
this.URLString = urlstring;
|
||||
}
|
||||
}
|
||||
|
||||
// prevents caching of URLString
|
||||
this.setVar("rndval", new Date().getTime());
|
||||
|
||||
urlstringtemp = new Array();
|
||||
for (key in this.vars) {
|
||||
if (false == this.vars[key][1] && true == this.encodeURIString) {
|
||||
encoded = this.encVar(key, this.vars[key][0], true);
|
||||
delete this.vars[key];
|
||||
this.vars[encoded[0]] = Array(encoded[1], true);
|
||||
key = encoded[0];
|
||||
}
|
||||
|
||||
urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0];
|
||||
}
|
||||
if (urlstring){
|
||||
this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator);
|
||||
} else {
|
||||
this.URLString += urlstringtemp.join(this.argumentSeparator);
|
||||
}
|
||||
}
|
||||
|
||||
this.runResponse = function() {
|
||||
eval(this.response);
|
||||
}
|
||||
|
||||
this.runAJAX = function(urlstring) {
|
||||
if (this.failed) {
|
||||
this.onFail();
|
||||
} else {
|
||||
this.createURLString(urlstring);
|
||||
if (this.element) {
|
||||
this.elementObj = document.getElementById(this.element);
|
||||
}
|
||||
if (this.xmlhttp) {
|
||||
var self = this;
|
||||
if (this.method == "GET") {
|
||||
totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString;
|
||||
this.xmlhttp.open(this.method, totalurlstring, true);
|
||||
} else {
|
||||
this.xmlhttp.open(this.method, this.requestFile, true);
|
||||
try {
|
||||
this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
|
||||
} catch (e) { }
|
||||
}
|
||||
|
||||
this.xmlhttp.onreadystatechange = function() {
|
||||
switch (self.xmlhttp.readyState) {
|
||||
case 1:
|
||||
self.onLoading();
|
||||
break;
|
||||
case 2:
|
||||
self.onLoaded();
|
||||
break;
|
||||
case 3:
|
||||
self.onInteractive();
|
||||
break;
|
||||
case 4:
|
||||
self.response = self.xmlhttp.responseText;
|
||||
self.responseXML = self.xmlhttp.responseXML;
|
||||
self.responseStatus[0] = self.xmlhttp.status;
|
||||
self.responseStatus[1] = self.xmlhttp.statusText;
|
||||
|
||||
if (self.execute) {
|
||||
self.runResponse();
|
||||
}
|
||||
|
||||
if (self.elementObj) {
|
||||
elemNodeName = self.elementObj.nodeName;
|
||||
elemNodeName.toLowerCase();
|
||||
if (elemNodeName == "input"
|
||||
|| elemNodeName == "select"
|
||||
|| elemNodeName == "option"
|
||||
|| elemNodeName == "textarea") {
|
||||
self.elementObj.value = self.response;
|
||||
} else {
|
||||
self.elementObj.innerHTML = self.response;
|
||||
}
|
||||
}
|
||||
if (self.responseStatus[0] == "200") {
|
||||
self.onCompletion();
|
||||
} else {
|
||||
self.onError();
|
||||
}
|
||||
|
||||
self.URLString = "";
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
this.xmlhttp.send(this.URLString);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.reset();
|
||||
this.createAJAX();
|
||||
}
|
148
lieder/livesearch_lieder.php
Normal file
148
lieder/livesearch_lieder.php
Normal file
@ -0,0 +1,148 @@
|
||||
<?php
|
||||
header("Content-Type: text/html;charset=utf-8");
|
||||
require_once("../config.inc.php");
|
||||
$db = dbconnect();
|
||||
|
||||
if (isset($_GET['getWord']) && isset($_GET['letters'])) {
|
||||
$sql_gesamt == '';
|
||||
# Einige Textzeichen wurden aus den Suchspalten entfernt, daher m<>ssen sie auch aus suchanfragen entfernt werden
|
||||
$bereinigung = array(
|
||||
",",
|
||||
".",
|
||||
"!",
|
||||
"?",
|
||||
";",
|
||||
"|",
|
||||
"'",
|
||||
"<",
|
||||
">"
|
||||
);
|
||||
$letters = str_replace($bereinigung, "", $_GET['letters']);
|
||||
|
||||
|
||||
$letters = addslashes($letters)." ";
|
||||
|
||||
$result_usr = $db->query("SELECT lied_search, lied_bestand, lied_favorit, lied_status
|
||||
FROM profil
|
||||
WHERE user = '$user_admin'");
|
||||
$row_usr = $result_usr->fetch_array();
|
||||
|
||||
if ($row_usr['lied_search'] == 'regexp') {
|
||||
$trenner = 'REGEXP ';
|
||||
$start = '[[:<:]]';
|
||||
$ende = '[[:>:]]';
|
||||
} else {
|
||||
$trenner = 'LIKE ';
|
||||
$start = '%';
|
||||
$ende = '%';
|
||||
}
|
||||
|
||||
$inhalt = preg_replace('/\s{2,}/sm', ' ', $letters, PREG_SET_ORDER); //Mehr als zwei leerzeichen entfernen
|
||||
|
||||
$sql1 = "SELECT art, nr, zusatz, titel, text, kategorie, unterkategorie
|
||||
FROM lieder_synopse
|
||||
WHERE ";
|
||||
|
||||
preg_match_all("/(\-{0,1}\+{0,1}\*{0,1}%{0,1}\"([^\"]+)\"\*{0,1}%{0,1}\+{0,1}\-{0,1}|\-{0,1}\+{0,1}\*{0,1}%{0,1}(\w+)\*{0,1}%{0,1}\+{0,1}\-{0,1})/u", $inhalt, $Worte);
|
||||
|
||||
#echo "<pre>";
|
||||
#print_r($Worte[0]);
|
||||
#echo "</pre>";
|
||||
if ($inhalt != "") {
|
||||
|
||||
# $sql .= " (";
|
||||
for ($i = 0; $i < count($Worte[0]); $i++) {
|
||||
|
||||
$suchwort = str_replace(array(
|
||||
"+",
|
||||
"-",
|
||||
"\"",
|
||||
"\\"
|
||||
), array(
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
), $Worte[0][$i]);
|
||||
|
||||
if ($i == 0) {
|
||||
$oper = "";
|
||||
} else {
|
||||
$oper = "AND";
|
||||
}
|
||||
|
||||
# Uppercase
|
||||
$suchwort = mb_strtoupper($suchwort);
|
||||
|
||||
# if (strpos($Worte[0][$i], "+") === 0) {
|
||||
# $sql .= "(UPPER(text_suche) $trenner '$start" . $suchwort . "$ende'";
|
||||
# } elseif (strpos($Worte[0][$i], "-") === 0) {
|
||||
# $sql .= "$oper UPPER(inhalt1) NOT $trenner '$start" . $suchwort . "$ende' ";
|
||||
# } elseif ($Worte[0][$i] == "") {
|
||||
# NULL;
|
||||
# } else {
|
||||
|
||||
|
||||
## die Felder _suche sind als utf8_bin definiert: Die collation unterscheidet Umlaute
|
||||
## Sonst w<>rde bei <20> auch u gescuht werden: M<>ller w<>rde auch Muller finden. Bei ut8_bin wird unterschieden
|
||||
|
||||
$sql .= "$oper (UPPER(text_suche) $trenner '$start" . $suchwort . "$ende'
|
||||
OR upper(titel_suche) $trenner '$start" . $suchwort . "$ende'
|
||||
OR nr = '" . $suchwort . "') ";
|
||||
# }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
# Liedbestand: ALL / CB / GB erg<72>nzen. Bei ALL braucht es keine Erg<72>nzung der where-Bedingung
|
||||
if($row_usr['lied_bestand'] != 'ALL'){
|
||||
$sql3 = "AND art='$row_usr[lied_bestand]' ";
|
||||
}
|
||||
|
||||
|
||||
# In Favoriten suchen
|
||||
if($row_usr['lied_favorit'] == '1'){
|
||||
$sql4 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_favorit WHERE vaid=$user_vaid)";
|
||||
}
|
||||
|
||||
# In Status suche
|
||||
# K A P U: Status K: Keine Einschr<68>nkung, braucht hier nicht ber<65>cksichtigt werden.
|
||||
if($row_usr['lied_status'] == 'A'){
|
||||
# Auff<66>hrbare Lieder
|
||||
$sql5 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_status WHERE vaid=$user_vaid AND status='A')";
|
||||
}elseif($row_usr['lied_status'] == 'P'){
|
||||
#Probe/<2F>bphase
|
||||
$sql5 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_status WHERE vaid=$user_vaid AND status='U')";
|
||||
}elseif($row_usr['lied_status'] == 'U'){
|
||||
# Alle au<61>er status A und U
|
||||
$sql5 = "AND concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) NOT IN (SELECT concat(art,nr,CASE WHEN zusatz IS NULL THEN '' ELSE zusatz END) FROM lieder_status WHERE vaid=$user_vaid)";
|
||||
}
|
||||
|
||||
$sql_gesamt = $sql1 . $sql . $sql3 . $sql4 . $sql5 ." ORDER BY nr, art, titel";
|
||||
#echo $sql_gesamt."<br>";
|
||||
|
||||
#$handle = fopen ("sql.txt", w);
|
||||
#fwrite ($handle, $sql_gesamt);
|
||||
#fclose ($handle);
|
||||
/*
|
||||
SELECT art, nr, zusatz, titel, text, kategorie, unterkategorie
|
||||
FROM `lieder_synopse`
|
||||
WHERE ( UPPER(text_suche) REGEXP '[[:<:]]ACH[[:>:]]' OR upper(titel_suche) REGEXP '[[:<:]]ACH[[:>:]]' OR nr = 'ARMEN' )
|
||||
AND ( UPPER(text_suche) REGEXP '[[:<:]]ARMEN[[:>:]]' OR upper(titel_suche) REGEXP '[[:<:]]ARMEN[[:>:]]' OR nr = 'ARMEN' )
|
||||
ORDER BY art, nr, titel
|
||||
|
||||
*/
|
||||
|
||||
#$letters = preg_replace("/[^a-z0-9 ]/si","",$letters);
|
||||
$res = $db->query($sql_gesamt) or die(mysql_error());
|
||||
#echo "1###select ID,textstelle Name from ajax_countries where textstelleName like '".$letters."%'|";
|
||||
|
||||
# Vor Zusatz muss ein Leerzeichen kommen, damit man den mit explode bei der liedanzeige trennen kann
|
||||
while ($inf = $res->fetch_array()) {
|
||||
#$name= "$inf[art] $inf[nr] $inf[zusatz] - $inf[titel] <br>($inf[kategorie] -> $inf[unterkategorie])";
|
||||
$name = "$inf[art] $inf[nr] $inf[zusatz] - $inf[titel]";
|
||||
echo $name . "|";
|
||||
}
|
||||
}
|
||||
?>
|
103
lieder/menu.css
Normal file
103
lieder/menu.css
Normal file
@ -0,0 +1,103 @@
|
||||
p {
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
|
||||
.menu a, label {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.menu a:hover {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.menu a {
|
||||
display: block;
|
||||
padding: 10px 15px;
|
||||
}
|
||||
|
||||
.drop-down a {
|
||||
min-width: 90px;
|
||||
}
|
||||
|
||||
.drop-down-menu {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.menu-title {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.menu-title {
|
||||
display:block;
|
||||
padding: 10px 15px;
|
||||
}
|
||||
|
||||
.activate {
|
||||
display: none;
|
||||
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
margin: 0 0 0 -15px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
/* Skin */
|
||||
|
||||
.menu a, .drop-down-menu {
|
||||
background: #3d6d99;
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5796d0), color-stop(100%,#3d6d99));
|
||||
background: -moz-linear-gradient(top, #5796d0 0%, #3d6d99 100%);
|
||||
}
|
||||
|
||||
.menu a:hover, .drop-down-menu:hover {
|
||||
background: #5a6470;
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#495261), color-stop(100%,#38404b));
|
||||
background: -moz-linear-gradient(top, #495261 0%, #38404b 100%);
|
||||
}
|
||||
|
||||
.drop-down a {
|
||||
background: #222;
|
||||
}
|
||||
|
||||
.drop-down a:hover {
|
||||
background: #111;
|
||||
}
|
||||
|
||||
|
||||
.menu {
|
||||
background: #3d6d99;
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5796d0), color-stop(100%,#3d6d99));
|
||||
background: -moz-linear-gradient(top, #5796d0 0%, #3d6d99 100%);
|
||||
}
|
||||
|
||||
:checked ~ .menu-title {
|
||||
background: #495261;
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#495261), color-stop(100%,#38404b));
|
||||
background: -moz-linear-gradient(top, #495261 0%, #38404b 100%);
|
||||
}
|
||||
|
||||
.drop-down {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.drop-down a {
|
||||
background: #222;
|
||||
font-size: 87%;
|
||||
}
|
||||
|
||||
.activate:checked ~ .drop-down {
|
||||
max-height: 400px;
|
||||
}
|
||||
|
||||
.drop-down, .menu a, .drop-down-menu {
|
||||
-webkit-transform: translateZ(0);
|
||||
-webkit-transition: all 0.3s;
|
||||
-moz-transition: all 0.3s;
|
||||
-o-transition: all 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
39
lieder/menu.html
Normal file
39
lieder/menu.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
|
||||
<link href="menu.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<nav class="menu">
|
||||
|
||||
|
||||
<nav class="drop-down-menu">
|
||||
<input type="checkbox" class="activate" id="accordion-1" name="accordion-1">
|
||||
<label for="accordion-1" class="menu-title">Drop-Down 1</label>
|
||||
<div class="drop-down">
|
||||
<a href="#">Normal1</a>
|
||||
<a href="#">Normal2</a>
|
||||
<a class="last" href="#">Normal</a>
|
||||
</div>
|
||||
</nav>
|
||||
<nav class="drop-down-menu">
|
||||
<input type="checkbox" class="activate" id="accordion-2" name="accordion-2">
|
||||
<label for="accordion-2" class="menu-title">Drop-Down 2</label>
|
||||
<div class="drop-down">
|
||||
<a href="#">Normal3</a>
|
||||
<a href="#">Normal4</a>
|
||||
<a class="last" href="#">Normal</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
5
lieder/sql.txt
Normal file
5
lieder/sql.txt
Normal file
@ -0,0 +1,5 @@
|
||||
SELECT art, nr, zusatz, titel, text, kategorie, unterkategorie
|
||||
FROM lieder_synopse
|
||||
WHERE (UPPER(text_suche) REGEXP '[[:<:]]223[[:>:]]'
|
||||
OR upper(titel_suche) REGEXP '[[:<:]]223[[:>:]]'
|
||||
OR nr = '223') ORDER BY art, nr, titel
|
74
lieder/star/DBController.php
Normal file
74
lieder/star/DBController.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
class DBController
|
||||
{
|
||||
|
||||
private $host = "localhost";
|
||||
|
||||
private $user = "root";
|
||||
|
||||
private $password = "";
|
||||
|
||||
private $database = "leitgedanken";
|
||||
|
||||
private static $conn;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
$this->conn = mysqli_connect($this->host, $this->user, $this->password, $this->database);
|
||||
}
|
||||
|
||||
public static function getConnection()
|
||||
{
|
||||
if (empty($this->conn)) {
|
||||
new Database();
|
||||
}
|
||||
}
|
||||
|
||||
function getDBResult($query, $params = array())
|
||||
{
|
||||
$sql_statement = $this->conn->prepare($query);
|
||||
if (! empty($params)) {
|
||||
$this->bindParams($sql_statement, $params);
|
||||
}
|
||||
$sql_statement->execute();
|
||||
$result = $sql_statement->get_result();
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
$resultset[] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
if (! empty($resultset)) {
|
||||
return $resultset;
|
||||
}
|
||||
}
|
||||
|
||||
function updateDB($query, $params = array())
|
||||
{
|
||||
$sql_statement = $this->conn->prepare($query);
|
||||
if (! empty($params)) {
|
||||
$this->bindParams($sql_statement, $params);
|
||||
}
|
||||
$sql_statement->execute();
|
||||
}
|
||||
|
||||
function bindParams($sql_statement, $params)
|
||||
{
|
||||
$param_type = "";
|
||||
foreach ($params as $query_param) {
|
||||
$param_type .= $query_param["param_type"];
|
||||
}
|
||||
|
||||
$bind_params[] = & $param_type;
|
||||
foreach ($params as $k => $query_param) {
|
||||
$bind_params[] = & $params[$k]["param_value"];
|
||||
}
|
||||
|
||||
call_user_func_array(array(
|
||||
$sql_statement,
|
||||
'bind_param'
|
||||
), $bind_params);
|
||||
}
|
||||
}
|
32
lieder/star/Rate.php
Normal file
32
lieder/star/Rate.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
require_once "DBController.php";
|
||||
|
||||
class Rate extends DBController
|
||||
{
|
||||
|
||||
function getAllPost($id)
|
||||
{
|
||||
$query = "SELECT laid id, rating FROM lieder_auffuehrung WHERE laid=$id";
|
||||
$postResult = $this->getDBResult($query);
|
||||
return $postResult;
|
||||
}
|
||||
|
||||
|
||||
function updateRatingCount($rating, $id)
|
||||
{
|
||||
$query = "UPDATE lieder_auffuehrung SET rating = ? WHERE laid= ?";
|
||||
|
||||
$params = array(
|
||||
array(
|
||||
"param_type" => "i",
|
||||
"param_value" => $rating
|
||||
),
|
||||
array(
|
||||
"param_type" => "i",
|
||||
"param_value" => $id
|
||||
)
|
||||
);
|
||||
|
||||
$this->updateDB($query, $params);
|
||||
}
|
||||
}
|
7
lieder/star/add_rating.php
Normal file
7
lieder/star/add_rating.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
if(!empty($_POST["rating"]) && !empty($_POST["id"])) {
|
||||
require_once("Rate.php");
|
||||
$rate = new Rate();
|
||||
$rate->updateRatingCount($_POST["rating"], $_POST["id"]);
|
||||
}
|
||||
?>
|
98
lieder/star/index.php
Normal file
98
lieder/star/index.php
Normal file
@ -0,0 +1,98 @@
|
||||
<?php
|
||||
require_once("Rate.php");
|
||||
$rate = new Rate();
|
||||
$result = $rate->getAllPost("1");
|
||||
|
||||
?>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>PHP Dynamic Star Rating using jQuery</TITLE>
|
||||
<style>
|
||||
body{width:610;}
|
||||
.rating-table {width: 100%;border-spacing: initial;margin: 20px 0px;word-break: break-word;table-layout: auto;line-height:1.8em;color:#333;}
|
||||
.rating-table th {background: #999;padding: 5px;text-align: left;color:#FFF;}
|
||||
.rating-table td {border-bottom: #f0f0f0 1px solid;background-color: #ffffff;padding: 5px;}
|
||||
.rating-table td div.feed_title{text-decoration: none;color:#00d4ff;font-weight:bold;}
|
||||
.rating-table ul{margin:0;padding:0;}
|
||||
.rating-table li{cursor:pointer;list-style-type: none;display: inline-block;color: #F0F0F0;text-shadow: 0 0 1px #666666;font-size:20px;}
|
||||
.rating-table .highlight, .rating-table .selected {color:#F4B30A;text-shadow: 0 0 1px #F48F0A;}
|
||||
</style>
|
||||
<script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
|
||||
<script>function highlightStar(obj,id) {
|
||||
removeHighlight(id);
|
||||
$('.rating-table #tutorial-'+id+' li').each(function(index) {
|
||||
$(this).addClass('highlight');
|
||||
if(index == $('.rating-table #tutorial-'+id+' li').index(obj)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function removeHighlight(id) {
|
||||
$('.rating-table #tutorial-'+id+' li').removeClass('selected');
|
||||
$('.rating-table #tutorial-'+id+' li').removeClass('highlight');
|
||||
}
|
||||
|
||||
function addRating(obj,id) {
|
||||
$('.rating-table #tutorial-'+id+' li').each(function(index) {
|
||||
$(this).addClass('selected');
|
||||
$('#tutorial-'+id+' #rating').val((index+1));
|
||||
if(index == $('.rating-table #tutorial-'+id+' li').index(obj)) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url: "add_rating.php",
|
||||
data:'id='+id+'&rating='+$('#tutorial-'+id+' #rating').val(),
|
||||
type: "POST"
|
||||
});
|
||||
}
|
||||
|
||||
function resetRating(id) {
|
||||
if($('#tutorial-'+id+' #rating').val() != 0) {
|
||||
$('.rating-table #tutorial-'+id+' li').each(function(index) {
|
||||
$(this).addClass('selected');
|
||||
if((index+1) == $('#tutorial-'+id+' #rating').val()) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
} </script>
|
||||
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<table class="rating-table">
|
||||
<tbody>
|
||||
<?php
|
||||
if(!empty($result)) {
|
||||
$i=0;
|
||||
foreach ($result as $tutorial) {
|
||||
?>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
|
||||
<div id="tutorial-<?php echo $tutorial["id"]; ?>">
|
||||
<input type="hidden" name="rating" id="rating" value="<?php echo $tutorial["rating"]; ?>" />
|
||||
<ul onMouseOut="resetRating(<?php echo $tutorial["id"]; ?>);">
|
||||
<?php
|
||||
for($i=1;$i<=10;$i++) {
|
||||
$selected = "";
|
||||
if(!empty($tutorial["rating"]) && $i<=$tutorial["rating"]) {
|
||||
$selected = "selected";
|
||||
}
|
||||
?>
|
||||
<li class='<?php echo $selected; ?>' onmouseover="highlightStar(this,<?php echo $tutorial["id"]; ?>);" onmouseout="removeHighlight(<?php echo $tutorial["id"]; ?>);" onClick="addRating(this,<?php echo $tutorial["id"]; ?>);">★</li>
|
||||
<?php } ?>
|
||||
<ul>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
4
lieder/star/jquery-2.1.1.min.js
vendored
Normal file
4
lieder/star/jquery-2.1.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
12
lieder/star/tutorial.sql
Normal file
12
lieder/star/tutorial.sql
Normal file
@ -0,0 +1,12 @@
|
||||
CREATE TABLE IF NOT EXISTS `tutorial` (
|
||||
`id` int(8) NOT NULL AUTO_INCREMENT,
|
||||
`title` varchar(255) NOT NULL,
|
||||
`description` text NOT NULL,
|
||||
`rating` tinyint(2) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
)
|
||||
|
||||
INSERT INTO `tutorial` (`id`, `title`, `description`, `rating`) VALUES
|
||||
(1, 'Favorite Star Rating with jQuery', 'This tutorial is for doing favorite star rating using jQuery. It displays list of HTML stars by using li tags. These stars are highlighted by using CSS and jQuery based on the favorite rating selected by the user.', 1),
|
||||
(2, 'PHP RSS Feed Read and List', 'PHP''s simplexml_load_file() function is used for reading data from xml file. Using this function, we can parse RSS feed to get item object array.', 3),
|
||||
(3, 'jQuery AJAX Autocomplete – Country Example', 'Autocomplete feature is used to provide auto suggestion for users while entering input. It suggests country names for the users based on the keyword they entered into the input field by using jQuery AJAX.', 5);
|
52
lieder/suchopt_bestand.php
Normal file
52
lieder/suchopt_bestand.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
if (isset($_GET['action'])) {
|
||||
$action = $_GET['action'];
|
||||
} else {
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if ($action == '') {
|
||||
$result_lied_bestand = $db->query("SELECT lied_bestand
|
||||
FROM profil
|
||||
WHERE user = '$user_admin'");
|
||||
$row_lied_bestand = $result_lied_bestand->fetch_array();
|
||||
$bestand = $row_lied_bestand['lied_bestand'];
|
||||
|
||||
echo "
|
||||
<html>
|
||||
<head>
|
||||
<style type=\"text/css\">
|
||||
select{
|
||||
width:250px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form action=?action=save method=\"POST\" name=\"wort_erf\">
|
||||
<select name='bestand' onchange=\"this.form.submit()\">
|
||||
<option value=\"ALL\"";if($bestand == 'ALL'){ echo " selected";} echo">Gesamtbestand</option>
|
||||
<option value=\"GB\"";if($bestand == 'GB'){ echo " selected";} echo">Gesangbuch</option>
|
||||
<option value=\"CB\"";if($bestand == 'CB'){ echo " selected";} echo">Chorbuch</option>
|
||||
</select>
|
||||
</body>
|
||||
</html>
|
||||
";
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'save') {
|
||||
$bestand = $_POST["bestand"];
|
||||
echo "<script language=\"javascript\">
|
||||
top.frames[2].location.href = \"lieder_personalisieren.php\";
|
||||
</script>";
|
||||
$db->query("UPDATE profil
|
||||
SET lied_bestand='$bestand'
|
||||
WHERE user='$user_admin'");
|
||||
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."\">";
|
||||
}
|
||||
?>
|
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'] ."\">";
|
||||
}
|
||||
?>
|
54
lieder/suchopt_status_search.php
Normal file
54
lieder/suchopt_status_search.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
require_once("../config.inc.php");
|
||||
|
||||
$db = dbconnect();
|
||||
|
||||
if (isset($_GET['action'])) {
|
||||
$action = $_GET['action'];
|
||||
} else {
|
||||
$action = '';
|
||||
}
|
||||
|
||||
if ($action == '') {
|
||||
//A=Auch in Aufführungsreife Lieder, P=Probebestand, U=Unbekannte Lieder, K=Keine Statuseinschränkung/alle
|
||||
$result_lied_status = $db->query("SELECT lied_status
|
||||
FROM profil
|
||||
WHERE user = '$user_admin'");
|
||||
$row_lied_status = $result_lied_status->fetch_array();
|
||||
$status = $row_lied_status['lied_status'];
|
||||
|
||||
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=\"K\"";if($status == 'K'){ echo " selected";} echo">Keine Statusbeschränkung</option>
|
||||
<option value=\"A\"";if($status == 'A'){ echo " selected";} echo">Aufführbare Lieder</option>
|
||||
<option value=\"P\"";if($status == 'P'){ echo " selected";} echo">Übphase</option>
|
||||
<option value=\"U\"";if($status == 'U'){ echo " selected";} echo">Unbekannte Lieder</option>
|
||||
</select>
|
||||
</body>
|
||||
</html>
|
||||
";
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'save') {
|
||||
$status = $_POST["status"];
|
||||
echo "<script language=\"javascript\">
|
||||
top.frames[2].location.href = \"lieder_personalisieren.php\";
|
||||
</script>";
|
||||
$db->query("UPDATE profil
|
||||
SET lied_status='$status'
|
||||
WHERE user='$user_admin'");
|
||||
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."\">";
|
||||
}
|
||||
?>
|
4
lieder/test2.php
Normal file
4
lieder/test2.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$input = $_GET ["load"];
|
||||
echo "Testseite2: $input";
|
||||
?>
|
65
lieder/todo.sql
Normal file
65
lieder/todo.sql
Normal file
@ -0,0 +1,65 @@
|
||||
ALTER TABLE `profil` ADD `lied_search` ENUM('regexp', 'like') NOT NULL DEFAULT 'regexp' COMMENT 'regexp=exakt, like=ähnlich' AFTER `template`;
|
||||
UPDATE `lieder` set zusatz=NULL where zusatz='';
|
||||
UPDATE `lieder_texte` SET `Text` = '1. Die Liebe ist viel st<73>rker als der Tod, sie str<74>met aus des Gottes Sohnes Brust; sie bleibet fest auch in der gr<67><72>ten Not, ist voller Wonne, voller Freud und Lust. Die Liebe <20>berwindet selbst den Tod, die Liebe, die aus Jesu Herze quillt; ihr Feuer brennt auch in der gr<67><72>ten Not, dass sie das arme Herz mit Wonne f<>llt.<br>\r\n2. Wer je erfuhr der gro<72>en Liebe Macht, die ihn mit hei<65>er Glut zum Vater zog, die Gottes Geist erst in die Welt gebracht, der flieht die kalte Welt, die ihn betrog. Die Liebe <20>berwindet selbst den Tod, die Liebe, die aus Jesu Herze quillt; ihr Feuer brennt auch in der gr<67><72>ten Not, dass sie das arme Herz mit Wonne f<>llt.<br>\r\n3. O selig, wer die Liebe in sich tr<74>gt, die ewig w<>hrt, die niemals enden wird! O selig, wenn sie sich im Sinn auspr<70>gt wie einst bei ihm, der Schafe treustem Hirt! Die Liebe <20>berwindet selbst den Tod, die Liebe, die aus Jesu Herze quillt; ihr Feuer brennt auch in der gr<67><72>ten Not, dass sie das arme Herz mit Wonne f<>llt.', `Text_suche` = 'Die Liebe ist viel st<73>rker als der Tod sie str<74>met aus des Gottes Sohnes Brust sie bleibet fest auch in der gr<67><72>ten Not ist voller Wonne voller Freud und Lust Die Liebe <20>berwindet selbst den Tod die Liebe die aus Jesu Herze quillt ihr Feuer brennt auch in der gr<67><72>ten Not dass sie das arme Herz mit Wonne f<>llt\r\nWer je erfuhr der gro<72>en Liebe Macht die ihn mit hei<65>er Glut zum Vater zog die Gottes Geist erst in die Welt gebracht der flieht die kalte Welt die ihn betrog Die Liebe <20>berwindet selbst den Tod die Liebe die aus Jesu Herze quillt ihr Feuer brennt auch in der gr<67><72>ten Not dass sie das arme Herz mit Wonne f<>llt\r\nO selig wer die Liebe in sich tr<74>gt die ewig w<>hrt die niemals enden wird O selig wenn sie sich im Sinn auspr<70>gt wie einst bei ihm der Schafe treustem Hirt Die Liebe <20>berwindet selbst den Tod die Liebe die aus Jesu Herze quillt ihr Feuer brennt auch in der gr<67><72>ten Not dass sie das arme Herz mit Wonne f<>llt' WHERE `lieder_texte`.`GBID` = 251;
|
||||
UPDATE `lieder_texte` SET `Text_suche` = 'Herr deine Gut ist unbegrenzt sie reicht so weit der Himmel gl<67>nzt so weit die Wolken gehen Fest wie die Berge steht dein Bund dein Sinn ist tief wie Meeresgrund kein Mensch kann ihn verstehen Du hast in Treue auf uns acht wir sind geborgen Tag und Nacht im Schatten deiner Fl<46>gel Du <20>ffnest deines Himmels Tor da quillt dein Uberfluss hervor und s<>ttigt Tal und H<>gel Bei dir Herr ist des Lebens Quell der Tr<54>bsal Wasser machst du hell tr<74>nkst uns am Bach der Wonnen Dein Glanz erweckt das Angesicht in deinem Licht schaun wir das Licht du Sonne aller Sonnen' WHERE `lieder_texte`.`GBID` = 215;
|
||||
DELETE FROM `lieder_texte` WHERE `GBID` = 349;
|
||||
DELETE FROM `lieder` WHERE `GBID` = 349;
|
||||
|
||||
CREATE TABLE `leitgedanken`.`lieder_auffuehrung` ( `laid` INT(11) NOT NULL AUTO_INCREMENT
|
||||
, `datum` DATE NOT NULL
|
||||
, `VAID` INT(5) NOT NULL
|
||||
, `art` VARCHAR(2)
|
||||
, `Nr` INT(11) NOT NULL
|
||||
, `zusatz` VARCHAR(5)
|
||||
, `gemeinde` INT(11) NOT NULL
|
||||
, `status` ENUM('G','C') NOT NULL
|
||||
, PRIMARY KEY (`laid`)) ENGINE = InnoDB;
|
||||
ALTER TABLE `lieder_auffuehrung` ADD `rating` TINYINT(2) NOT NULL AFTER `status`;
|
||||
UPDATE `chorbuch` SET `Titel`= 'O Heil''ger Geist, entz<74>nde neu', `Titel_suche` = 'O Heilger Geist entz<74>nde neu' WHERE `chorbuch`.`CBID` = 89;
|
||||
|
||||
|
||||
CREATE TABLE `lieder_status` (
|
||||
`lsid` int(11) NOT NULL,
|
||||
`VAID` int(5) NOT NULL,
|
||||
`art` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`Nr` int(11) NOT NULL,
|
||||
`zusatz` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`gemeinde` int(11) NOT NULL,
|
||||
`status` enum('Y','N') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
|
||||
ALTER TABLE `lieder_status`
|
||||
ADD PRIMARY KEY (`lsid`);
|
||||
|
||||
ALTER TABLE `lieder_status` CHANGE `zusatz` `zusatz` VARCHAR(5) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL;
|
||||
|
||||
CREATE TABLE `lieder_favorit` as select * from `lieder_status` where 1=2;
|
||||
ALTER TABLE `lieder_favorit` CHANGE `lsid` `lfid` INT(11) NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `lieder_favorit` ADD PRIMARY KEY(`lfid`);
|
||||
ALTER TABLE `lieder_favorit` CHANGE `lfid` `lfid` INT(11) NOT NULL AUTO_INCREMENT;
|
||||
ALTER TABLE `lieder_favorit` CHANGE `status` `status` ENUM('1','0') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '1=favorit, 0=kein favorit';
|
||||
|
||||
ALTER TABLE `lieder_status` CHANGE `status` `status` ENUM('U','A') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT 'U=<3D>bphase, A=Auff<66>hrbar';
|
||||
UPDATE `lieder_texte` SET `Text` = '1. Es mag sein, dass alles f<>llt, dass die Burgen dieser Welt um dich her in Tr<54>mmer brechen. Halte du den Glauben fest, dass dich Gott nicht fallen l<>sst: Er h<>lt sein Versprechen.<br>
|
||||
2. Es mag sein, dass Trug und List eine Weile Meister ist; wie Gott will, sind Gottes Gaben. Rechte nicht um Mein und Dein; manches Gl<47>ck ist auf den Schein, lass es Weile haben.<br>
|
||||
3. Es mag sein - die Welt ist alt -, Missetat und Missgestalt* sind in ihr gemeine Plagen. Schau dir''s an und stehe fest: Nur wer sich nicht schrecken l<>sst, darf die Krone tragen.<br>
|
||||
4. Es mag sein, so soll es sein! Fass ein Herz und gib dich drein; Angst und Sorge wird''s nicht wenden. Streite, du gewinnst den Streit! Deine Zeit und alle Zeit stehn in Gottes H<>nden. * <em>im Sinne von St</em><em><3E>ckwerk (siehe 1.Korinther 13,9.10)</em>', `Text_suche` = 'Es mag sein dass alles f<>llt dass die Burgen dieser Welt um dich her in Tr<54>mmer brechen Halte du den Glauben fest dass dich Gott nicht fallen l<>sst Er h<>lt sein Versprechen
|
||||
Es mag sein dass Trug und List eine Weile Meister ist wie Gott will sind Gottes Gaben Rechte nicht um Mein und Dein manches Gl<47>ck ist auf den Schein lass es Weile haben
|
||||
Es mag sein - die Welt ist alt - Missetat und Missgestalt sind in ihr gemeine Plagen Schau dirs an und stehe fest Nur wer sich nicht schrecken l<>sst darf die Krone tragen
|
||||
Es mag sein so soll es sein Fass ein Herz und gib dich drein Angst und Sorge wirds nicht wenden Streite du gewinnst den Streit Deine Zeit und alle Zeit stehn in Gottes H<>nden im Sinne von St<53>ckwerk' WHERE `lieder_texte`.`GBID` = 212;
|
||||
ALTER TABLE `lieder_status` CHANGE `lsid` `lsid` INT(11) NOT NULL AUTO_INCREMENT;
|
||||
--> bis hier Gesch<EFBFBD>ft, zu Hause
|
||||
|
||||
ALTER TABLE `profil` ADD `lied_bestand` ENUM('GB','CB', 'ALL') NOT NULL DEFAULT 'ALL' COMMENT 'GB=Suche in Gesabgbuch, CB=Suche in Chorbuch, A=Suche in Gesamtbestand' AFTER `lied_search`, ADD `lied_favorit` ENUM('0','1') NOT NULL DEFAULT '0' COMMENT '0=Nicht nur Favoriten suchen, 1=Nur in definierten Favoriten suchen' AFTER `lied_bestand`, ADD `lied_status` ENUM('A', 'P', 'U', 'K') NOT NULL COMMENT 'A=Auch in Auff<66>hrungsreife Lieder, P=Probebestand, U=Unbekannte Lieder, K=Keine Statuseinschr<68>nkung/alle' AFTER `lied_favorit`;
|
||||
|
||||
ALTER TABLE `chorbuch_texte` CHANGE `Text_suche` `Text_suche` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
|
||||
ALTER TABLE `lieder_texte` CHANGE `Text_suche` `Text_suche` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
|
||||
ALTER TABLE `lieder` CHANGE `Titel_suche` `Titel_suche` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
|
||||
ALTER TABLE `chorbuch` CHANGE `Titel_suche` `Titel_suche` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;
|
||||
|
||||
ALTER TABLE `profil` CHANGE `lied_status` `lied_status` ENUM('A','P','U','K') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'K' COMMENT 'A=Auch in Auff<66>hrungsreife Lieder, P=Probebestand, U=Unbekannte Lieder, K=Keine Statuseinschr<68>nkung/alle';
|
||||
UPDATE `profil` set lied_status='K';
|
||||
|
||||
CREATE TABLE `leitgedanken`.`lieder_notizen` ( `lnid` INT(11) NOT NULL AUTO_INCREMENT , `VAID` INT(5) NOT NULL , `art` VARCHAR(2) NOT NULL , `Nr` INT(11) NOT NULL , `zusatz` VARCHAR(5) NOT NULL , `notiz` LONGTEXT NOT NULL , PRIMARY KEY (`lnid`)) ENGINE = InnoDB;
|
||||
ALTER TABLE `lieder_notizen` CHANGE `notiz` `notiz` LONGTEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL;
|
Reference in New Issue
Block a user