2022-11-21 09:47:28 +01:00

285 lines
8.2 KiB
HTML

{if $action == ''}
<html>
<head>
<style type='text/css'>
{literal}
.font1 { font-weight: italic;
color:#6487DC;
border:0 none;
}
.font2 { line-height:150%; }
fieldset { border: 2px solid #C5D8E1;
border-radius: 6px;
background: white; }
body {
padding: 0 2em;
background: #e2e2e2;
}
#page {
margin: 2em auto;
max-width: 1000px;
background: #fff;
}
body, input, textarea {
color: #373737;
font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 300;
line-height: 1.625;
}
legend {
background: white;
color:#6487DC;
font-size:120%;
font-weight: bold;
padding-left: 10px;
padding-right: 10px;
}
input[type=submit] {
padding:5px 15px;
background:#ccc;
border:0 none;
cursor:pointer;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.rating-table {width: 100%;border-spacing: initial;margin: 0px 0px;word-break: break-word;table-layout: auto;line-height:1em;}
.rating-table th {background: #999;padding: 5px;text-align: left;color:#FFF;}
.rating-table td {border-bottom: #f0f0f0 0px 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;}
.myButton {
background-color:#004d7a;
-moz-border-radius:28px;
-webkit-border-radius:28px;
border-radius:28px;
border:1px solid #0078c2;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:14px;
padding:6px 14px;
text-decoration:none;
text-shadow:0px 1px 0px #2f6627;
}
.myButton:hover {
background-color:#0c5c8e;
}
.myButton:active {
position:relative;
top:1px;
}
{/literal}
</style>
<!--[if lt IE 9]>
<style type="text/css" title="text/css">
{literal}
fieldset { border: 1px solid silver; padding: 3px; }
{/literal}
</style>
<![endif]-->
<script src="star/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: "star/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>
<br>
<fieldset>
<legend>{$liedanzeige_art} {$liedanzeige_nr}{$liedanzeige_zusatz}: {$liedanzeige_titel} <iframe src='ch_favorit.php?art={$liedanzeige_art}&nummer={$liedanzeige_nr}&zusatz={$liedanzeige_zusatz}' scrolling='no' marginheight='0' marginwidth='0' height='25' frameborder='0' width='25'></iframe></legend>
<font class=font1>{$liedanzeige_kategorie} &#8594; {$liedanzeige_unterkategorie}</font>
<p class=font2 align='justify'>
{$liedanzeige_text}
</p>
</fieldset>
<br>
<fieldset>
<legend>Status</legend>
Hier kann festgelegt werden, ob das Lied unbekannt, in der Übphase oder aufführungsreif ist.<br>Für die Liedwahl zum Gottesdienst kann dieser Status für die Liedsuche angehakt werden. Damit werden nur Lieder gesucht, die z.B. auch im Repertoire sind.
<hr>
<table>
<tr>
<td width="120">Status:</td>
<td><iframe src='ch_status.php?art={$liedanzeige_art}&nummer={$liedanzeige_nr}&zusatz={$liedanzeige_zusatz}' scrolling='no' marginheight='0' marginwidth='0' height='20' frameborder='0' width='110'></iframe></td>
</tr>
</table>
</fieldset>
<br>
<form action=?action=gddatum method="POST" name="gddatum">
<fieldset>
<legend>Datum Gottesdienstvortrag erfassen</legend>
<input type="date" name="datum_gd" value="{$liedanzeige_date}"> <input type="submit" value="Vortragsdatum speichern"/>
<br>
<br>
<table width="100%" border="0" cellspacing="0">
<tr>
<td>
<b>Datum</b>
</td>
<td>
<b>Bewertung</b>
</td>
<td>
<b>Löschen</b>
</td>
</tr>
{section name=table_data2 loop=$table_data2}
<tr>
<td>
{$table_data2[table_data2].datum_form}
</td>
<td>
<table class="rating-table">
<tbody>
<tr>
<td valign="top">
<div id="tutorial-{$table_data2[table_data2].tutorial_id}">
<input type="hidden" name="rating" id="rating" value="{$table_data2[table_data2].tutorial_rating}" />
<ul onMouseOut="resetRating({$table_data2[table_data2].tutorial_id});">
{$table_data2[table_data2].tutorial_star}
<ul>
</div>
</td>
</tbody>
</table>
</td>
<td>
{if $table_data2[table_data2].tutorial_enable_del == 0}
<img src="../templates/{$global_template}/images/drop_grey.png">
{/if}
{if $table_data2[table_data2].tutorial_enable_del == 1}
<a href="?action=del&laid={$table_data2[table_data2].laid}"><img src="../templates/{$global_template}/images/drop.png"></a>
{/if}
</td>
</tr>
{/section}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>{if $liedanzeige_anz_gd >5 AND $liedanzeige_more_gd < $liedanzeige_anz_gd}<a href="?load={$liedanzeige_art} {$liedanzeige_nr} {$liedanzeige_zusatz}&more_gd=1" class="myButton">mehr</a>{/if}</td>
</tr>
</table>
</fieldset>
</form>
<br>
<form action=?action=chordatum method="POST" name="chordatum">
<fieldset>
<legend>Datum Chorprobe erfassen</legend>
<input type="date" name="datum_chor" value="{$liedanzeige_date}"> <input type="submit" value="Probedatum speichern"/>
<br>
<br>
<table width="100%" border="0" cellspacing="0">
<tr>
<td>
<b>Datum</b>
</td>
<td>
<b>Bewertung</b>
</td>
<td>
<b>Löschen</b>
</td>
</tr>
{section name=table_data loop=$table_data}
<tr>
<td>
{$table_data[table_data].datum_form}
</td>
<td>
<table class="rating-table">
<tbody>
<tr>
<td valign="top">
<div id="tutorial-{$table_data[table_data].tutorial_id}">
<input type="hidden" name="rating" id="rating" value="{$table_data[table_data].tutorial_rating}" />
<ul onMouseOut="resetRating({$table_data[table_data].tutorial_id});">
{$table_data[table_data].tutorial_star}
<ul>
</div>
</td>
</tbody>
</table>
</td>
<td>
{if $table_data[table_data].tutorial_enable_del == 0}
<img src="../templates/{$global_template}/images/drop_grey.png">
{/if}
{if $table_data[table_data].tutorial_enable_del == 1}
<a href="?action=del&laid={$table_data[table_data].laid}"><img src="../templates/{$global_template}/images/drop.png"></a>
{/if}
</td>
</tr>
{/section}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>{if $liedanzeige_anz_chor >5 AND $liedanzeige_more_chor < $liedanzeige_anz_chor}<a href="?load={$liedanzeige_art} {$liedanzeige_nr} {$liedanzeige_zusatz}&more_chor=1" class="myButton">mehr</a>{/if}</td>
</tr>
</table>
</fieldset>
</form>
</body>
</html>
{/if}
{if $action == 'chordatum'}
hier
{/if}
{if $action == 'gddatum'}
hier2
{/if}