<h1><?= ucfirst($this->localization['nowy']).' '.$this->localization['pokaz_zdjec']; ?></h1>
<form action="" name="add_form" method="post" enctype="multipart/form-data">
<table>
    <tr>
        <td style="width:100px;"><?php echo ucfirst($this->localization['nazwa']); ?>*</td>
        <td>
            <input type="text" name="name" value="<?php echo (isset($slide['name']) ? $slide['name'] : null); ?>" maxlength="100"/>
        </td>
    </tr>
    <tr>
        <td><?php echo ucfirst($this->localization['opis']); ?></td>
        <td>
            <textarea name="description" cols="10" rows="10" style="width:100%; height:100px;"><?php echo (isset($slide['description']) ? $slide['description'] : null); ?></textarea>
        </td>
    </tr>
    <tr>
        <td>URL</td>
        <td>
            <input type="text" name="link" maxlength="100" value="<?php echo (isset($slide['link']) ? $slide['link'] : null); ?>"/>
        </td>
    </tr>
    <tr>
        <td><?php echo ucfirst($this->localization['plik']); ?></td>
        <td>
            <input type="file" name="file"/>
        </td>
    </tr>
    <tr>
        <td colspan="2">* - <?= ($this->localization['pole_wymagane']) ?></td>
    </tr>
    <tr>
        <td colspan="2">
            <a href="javascript:document.add_form.submit();"   class="form_button" ><?= ucfirst($this->localization['zatwierdz']);?></a>
            &nbsp;&nbsp;&nbsp;<a href="/slideshow/index"  class="form_button"><?= ucfirst($this->localization['anuluj']);?></a>
        </td>
    </tr>
</table>
</form>