Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

{include file="header.tpl" focus=document.projekt.p_name}
    {if $display}
    <table width="740" cellspacing="0" cellpadding="0">
        <tr>
            <td valign="top">
                <form action="{$SCRIPT_NAME}" method="post" onSubmit="return check_projekt_form();" name="projekt">
                <table width="662">
                    <tr>
                        <td colspan="4" class="links">Projektliste</td>
                    </tr>
                    <tr>
                        <td class="links_projekt">Projektname</td>
                        <td class="rechts" width="480">
                            <input type="text" name="p_name" value="{$projekt->p_name}" size="40">
                        </td>
                    </tr>
                    <tr>
                        <td class="links_projekt">Projektleiter</td>
                        <td class="rechts">
                            {html_options values=$projekt_leiter_ids output=$projekt_leiter selected=$projekt->p_leiter_id name="p_leiter_id"}
                        </td>
                    </tr>
                    <tr>
                        <td class="links_projekt">Projektbeginn</td>
                        <td class="rechts">
                            {html_options name="p_von[Date_Day]" output=$tag_opts selected=$tag_sel_von values=$tag_val}
                            {html_options name="p_von[Date_Month]" output=$mon_opts selected=$mon_sel_von values=$mon_val}
                            {html_options name="p_von[Date_Year]" output=$y_opts selected=$y_sel_von values=$y_val}                             </td>
                    </tr>
                    <tr>
                        <td class="links_projekt">Projektende</td>
                        <td class="rechts">
                            {html_options name="p_bis[Date_Day]" output=$tag_opts selected=$tag_sel_bis values=$tag_val}
                            {html_options name="p_bis[Date_Month]" output=$mon_opts selected=$mon_sel_bis values=$mon_val}
                            {html_options name="p_bis[Date_Year]" output=$y_opts selected=$y_sel_bis values=$y_val}        
                        </td>
                    </tr>
                    <tr>
                        <td class="links_projekt">Projektort</td>
                        <td class="rechts">
                            {html_options values=$projekt_ort_ids output=$projekt_orte selected=$projekt->p_ort_id name="p_ort_id"}
                        </td>
                    </tr>
                    <tr>
                        <td class="links_projekt">Beschreibung</td>
                        <td class="rechts">
                            <textarea name="p_beschreibung" cols="40" rows="10">{$projekt->p_beschreibung}</textarea>
                        </td>
                    </tr>
                    {if $action=="update"}
                    <tr>
                        <td colspan="2">
                            {include file="dokumente.tpl"}
                        </td>
                    </tr>
                    {/if}
                    <tr>
                        <td colspan="2" class="links" align="center">
                            <input type="submit" value="eintragen">
                        </td>
                    </tr>
                </table>
                <input type="hidden" name="action" value="{$action}">
                <input type="hidden" name="p_id" value="{$projekt->p_id}">
                </form>
            </td>
            <td width="77" align="right" valign="top">
            {include file="buttons.tpl"}
            </td>
        </tr>
    </table>
    {else}
    <table width="740" cellspacing="0" cellpadding="0">
        <tr>
            <td valign="top">
                <table width="662" cellspacing="0" cellpadding="0">
                    <tr>
                        <td class="links">Keine Daten vorhanden!</td>
                    </tr>
                </table>
            </td>
            <td width="77" align="right" valign="top">
            {include file="buttons.tpl"}
            </td>
        </tr>
    </table>
    {/if}
{include file="footer.tpl"}