<?php
/* Smarty version 3.1.39, created on 2021-09-02 12:23:32
  from 'E:\xampp_8.0.9\htdocs\leitgedanken_utf8\templates\standard\lieder\liedanzeige.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.39',
  'unifunc' => 'content_6130a624e38842_78159608',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'c9de3fd43a54a9c2a2850d1b5b3f83175b0a2b51' => 
    array (
      0 => 'E:\\xampp_8.0.9\\htdocs\\leitgedanken_utf8\\templates\\standard\\lieder\\liedanzeige.html',
      1 => 1619160471,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6130a624e38842_78159608 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<html>
<head>
    <style type='text/css'>
      

      .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;
}


      
    </style>
    <!--[if lt IE 9]>
    <style type="text/css" title="text/css">
      
      fieldset { border: 1px solid silver; padding: 3px; }
      
    </style>
    <![endif]-->

<?php echo '<script'; ?>
 src="star/jquery-2.1.1.min.js" type="text/javascript"><?php echo '</script'; ?>
>
<?php echo '<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;
			}
		});
	}
} <?php echo '</script'; ?>
>

</head>
<body>
<br>
 <fieldset>
   <legend><?php echo $_smarty_tpl->tpl_vars['liedanzeige_art']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['liedanzeige_nr']->value;
echo $_smarty_tpl->tpl_vars['liedanzeige_zusatz']->value;?>
: <?php echo $_smarty_tpl->tpl_vars['liedanzeige_titel']->value;?>
 <iframe src='ch_favorit.php?art=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_art']->value;?>
&nummer=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_nr']->value;?>
&zusatz=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_zusatz']->value;?>
' scrolling='no' marginheight='0' marginwidth='0' height='25' frameborder='0' width='25'></iframe></legend>
   <font class=font1><?php echo $_smarty_tpl->tpl_vars['liedanzeige_kategorie']->value;?>
 &#8594; <?php echo $_smarty_tpl->tpl_vars['liedanzeige_unterkategorie']->value;?>
</font>
   <p class=font2 align='justify'>
     <?php echo $_smarty_tpl->tpl_vars['liedanzeige_text']->value;?>

   </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=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_art']->value;?>
&nummer=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_nr']->value;?>
&zusatz=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_zusatz']->value;?>
' 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="<?php echo $_smarty_tpl->tpl_vars['liedanzeige_date']->value;?>
">  <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>
        <?php
$__section_table_data2_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data2']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data2_0_total = $__section_table_data2_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data2'] = new Smarty_Variable(array());
if ($__section_table_data2_0_total !== 0) {
for ($__section_table_data2_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] = 0; $__section_table_data2_0_iteration <= $__section_table_data2_0_total; $__section_table_data2_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']++){
?>
        <tr>
          <td>
            <?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['datum_form'];?>

          </td>
          <td>
            <table class="rating-table">
            <tbody>
            <tr>
			<td valign="top">

			<div id="tutorial-<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['tutorial_id'];?>
">
			<input type="hidden" name="rating" id="rating" value="<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['tutorial_rating'];?>
" />
			<ul onMouseOut="resetRating(<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['tutorial_id'];?>
);">
			    <?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['tutorial_star'];?>

			<ul>
			</div>
			</td>
			</tbody>
			</table>
		  </td>
          <td>
            <?php if ($_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['tutorial_enable_del'] == 0) {?>
            <img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/drop_grey.png">
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['tutorial_enable_del'] == 1) {?>
            <a href="?action=del&laid=<?php echo $_smarty_tpl->tpl_vars['table_data2']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data2']->value['index'] : null)]['laid'];?>
"><img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/drop.png"></a>
            <?php }?>
          </td>
        </tr>
        <?php
}
}
?>
        <tr>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td><?php if ($_smarty_tpl->tpl_vars['liedanzeige_anz_gd']->value > 5 && $_smarty_tpl->tpl_vars['liedanzeige_more_gd']->value < $_smarty_tpl->tpl_vars['liedanzeige_anz_gd']->value) {?><a href="?load=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_art']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['liedanzeige_nr']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['liedanzeige_zusatz']->value;?>
&more_gd=1" class="myButton">mehr</a><?php }?></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="<?php echo $_smarty_tpl->tpl_vars['liedanzeige_date']->value;?>
">  <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>
        <?php
$__section_table_data_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data_1_total = $__section_table_data_1_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data'] = new Smarty_Variable(array());
if ($__section_table_data_1_total !== 0) {
for ($__section_table_data_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] = 0; $__section_table_data_1_iteration <= $__section_table_data_1_total; $__section_table_data_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']++){
?>
        <tr>
          <td>
            <?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['datum_form'];?>

          </td>
          <td>
            <table class="rating-table">
            <tbody>
            <tr>
			<td valign="top">

			<div id="tutorial-<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['tutorial_id'];?>
">
			<input type="hidden" name="rating" id="rating" value="<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['tutorial_rating'];?>
" />
			<ul onMouseOut="resetRating(<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['tutorial_id'];?>
);">
			    <?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['tutorial_star'];?>

			<ul>
			</div>
			</td>
			</tbody>
			</table>
		  </td>
		  <td>
            <?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['tutorial_enable_del'] == 0) {?>
            <img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/drop_grey.png">
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['tutorial_enable_del'] == 1) {?>
            <a href="?action=del&laid=<?php echo $_smarty_tpl->tpl_vars['table_data']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data']->value['index'] : null)]['laid'];?>
"><img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/drop.png"></a>
            <?php }?>
		  </td>
        </tr>
        <?php
}
}
?>
        <tr>
         <td>&nbsp;</td>
         <td>&nbsp;</td>
         <td><?php if ($_smarty_tpl->tpl_vars['liedanzeige_anz_chor']->value > 5 && $_smarty_tpl->tpl_vars['liedanzeige_more_chor']->value < $_smarty_tpl->tpl_vars['liedanzeige_anz_chor']->value) {?><a href="?load=<?php echo $_smarty_tpl->tpl_vars['liedanzeige_art']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['liedanzeige_nr']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['liedanzeige_zusatz']->value;?>
&more_chor=1" class="myButton">mehr</a><?php }?></td>
        </tr>
      </table>
  </fieldset>
</form>
</body>
</html>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['action']->value == 'chordatum') {?>
hier
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['action']->value == 'gddatum') {?>
hier2
<?php }
}
}