<?php 
  $user = & JFactory::getUser();
  if(($user->get('id') <= 0) && (JEConfig::get('general.upload_access') != 'Public'))
  {
      echo jcText::_('You need to be registered user to upload. If you already registered please, login.');
      echo "</div>";
      return;
  }
  ?>
  <ul>
    <li>
    <?php echo jcText::_('You can upload only folowing files'); ?>:
    <?php echo JEConfig::get('general.upload_type');?>  
    </li>
    <li>
    <?php echo jcText::_('Your files will be uploaded to'); ?>: 
    <?php echo '/uploads'; 
    if(JEConfig::get('general.upload_rule') == 'Upload to User Home Folder')
    {
        echo "/".($user->get('name') ? str_replace(" ", "_", $user->get('name')).'</li>': 'pub</li><li>'.jcText::_('If you register or login the pub will be changed to your name').'</li>');
    } 
    ?>
  </ul>
  
  
    <TABLE>
      <TR valign="top">
        <TD><?php echo jcText::_('File'); ?> 1</TD>
        <TD><INPUT type="file" name="file1" /></TD>
        <TD>&nbsp;&nbsp;&nbsp;</TD>
        <TD><?php echo jcText::_('File'); ?> 4</TD>
        <TD><INPUT type="file" name="file2" /></TD>
      </TR>  
      <TR valign="top">
        <TD colspan="2"><?php echo jcText::_('Description'); ?> 1<br><textarea name="descr[1]" cols="30" rows="3"></textarea></TD>
        <TD>&nbsp;&nbsp;&nbsp;</TD>
        <TD colspan="2"><?php echo jcText::_('Description'); ?> 4<br><textarea name="descr[4]" cols="30" rows="3"></textarea></TD>
      </TR>  
      <TR valign="top">
        <TD><?php echo jcText::_('File'); ?> 2</TD>
        <TD><INPUT type="file" name="file3" /></TD>
        <TD>&nbsp;&nbsp;&nbsp;</TD>
        <TD><?php echo jcText::_('File'); ?> 5</TD>
        <TD><INPUT type="file" name="file4" /></TD>
      </TR>  
      <TR valign="top">
        <TD colspan="2"><?php echo jcText::_('Description'); ?> 2<br><textarea name="descr[2]" cols="30" rows="3"></textarea></TD>
        <TD>&nbsp;&nbsp;&nbsp;</TD>
        <TD colspan="2"><?php echo jcText::_('Description'); ?> 5<br><textarea name="descr[5]" cols="30" rows="3"></textarea></TD>
      </TR>  
      <TR valign="top">
        <TD><?php echo jcText::_('File'); ?> 3</TD>
        <TD><INPUT type="file" name="file5" /></TD>
        <TD>&nbsp;&nbsp;&nbsp;</TD>
        <TD><?php echo jcText::_('File'); ?> 6</TD>
        <TD><INPUT type="file" name="file6" /></TD>
      </TR>  
      <TR valign="top">
        <TD colspan="2"><?php echo jcText::_('Description'); ?> 3<br><textarea name="descr[3]" cols="30" rows="3"></textarea></TD>
        <TD>&nbsp;&nbsp;&nbsp;</TD>
        <TD colspan="2"><?php echo jcText::_('Description'); ?> 6<br><textarea name="descr[6]" cols="30" rows="3"></textarea></TD>
      </TR>  
      <TR>
        <TD colspan="5">
          <INPUT type="button" class="button" value="<?php echo jcText::_('Close'); ?>" onclick="pBarOut();" />
          <INPUT type="button" value="<?php echo jcText::_('Upload'); ?>" onclick="document.getElementById('adminForm').method = 'post'; submitbutton('upload')" />
        </TD>
      </TR>  
    </TABLE>