<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>{$wechsel_titel}</title>
    <style>
      .stundenplan {
          border:1px solid #C0C0C0;
          border-collapse:collapse;
          padding:3px;
      }
      .stundenplan th {
          border:1px solid #C0C0C0;
          padding:3px;
          background:#F0F0F0;
      }
      .stundenplan td {
          border:1px solid #C0C0C0;
          padding:3px;
      }
    </style>
  </head>
  <body onload="if (document.pers_daten)
        document.pers_daten.pw_alt.focus();
      return false;">
    <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
      <tr>
        <td>
          <div align="center">
            <table cellspacing="0" cellpadding="0" width="100%" border="0">
              <tr>
                <td width="10" background="templates/{$global_template}/images/box_e1.gif">
                  <img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
                </td>
                <td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_top.gif" valign="top">
                  <img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
                  <font class="hd">Wochenplan</font><br>
                  <img height="5" src="templates/{$global_template}/images/blank.gif" width="1"></font>
                </td>
                <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
                  <img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
                </td>
              </tr>
              <tr>
                <td width="1%" background="templates/{$global_template}/images/box_l.gif">
                  <img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
                </td>
                <td>
                  <br>
                  <table class="stundenplan" width="100%">
                    <thead>
                      <tr>
                        <th width="10%"><br></th>
                        {section name=table_data loop=$table_data}
                        <th width="18%">{$table_data[table_data].bezeichnung}</th>
                        {/section}
                      </tr>
                    </thead>
                    <tbody>
                      <!-- schulstunden -->
                      {section name=table_data2 loop=$table_data2}
                      <tr>
                        <th>
                          {$table_data2[table_data2].bezeichnung}<br>
                          <font size=1>{$table_data2[table_data2].von} - {$table_data2[table_data2].bis}</font>
                        </th>
                        <!-- Montag, Dienstag, Mittwoch, Do, Fr -->
                        {section name=table_data loop=$table_data}
                        <td  valign='top'>
                          <table width="100%" border="0">
                            <!-- ateliers -->
                            {section name=table_data1 loop=$table_data1}
                            {if $table_data1[table_data1].Wochentag == {$table_data[table_data].bezeichnung}}
                            {if $table_data1[table_data1].std_von == {$table_data2[table_data2].std_von}}
                            <tr bgcolor="{$table_data1[table_data1].farbe}">
                              <td>
                                <b>Atelier:</b> {$table_data1[table_data1].Atelier} - {$table_data1[table_data1].Gruppe} <i>{$table_data1[table_data1].hinweis}</i>
                                {if {$table_data1[table_data1].Pflichtfeld} != ''}
                                <br><b>Kategorie:</b> {$table_data1[table_data1].Pflichtfeld}
                                {/if}
                                {if {$table_data1[table_data1].anzeigen_bis_format} != '00.00.0000'}
                                <br><b>Buchbar bis:</b> {$table_data1[table_data1].anzeigen_bis_format}
                                {/if}
                              </td>
                            </tr>
                            {/if}
                            {/if}
                            {/section}
                            <!-- Ende ateliers -->
                          </table>
                          {/section}
                        </td>
                        {/section}
                      </tr>
                  </table>
                </td>
                <td width="1%" background="templates/{$global_template}/images/box_r.gif">
                  <img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
                </td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
                  <img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
                </td>
                <td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif">
                  <img height="16" src="templates/{$global_template}/images/blank.gif" width="8">
                </td>
                <td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
                  <img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
                </td>
              </tr>
            </table>
          </div>
        </td>
      </tr>
    </table>
  </body>
</html>
