<?=$this->load->view('objects/tabs')?>

<h1>Objektum módosítása</h1>
<ul class="projects-ul">

<form enctype='multipart/form-data' action='editproject' method='POST'>
	<input type="hidden" name="do" id="do" value="true">
	<input type="hidden" name="prid" id="prid" value="<?=$object->obj_id?>">
  <p>
    <b>E-mail cím:</b> <br>
    <input type=text name='projectEmailField' id='projectEmailField' value='<?=$object->email?>'>
  </p>
  <p>
    <b>Az objektum szerzője:</b> <br>
    <input type=text name='SzerzoField' id='SzerzoField' value='<?=$object->szerzo?>'>
  </p>
  <p>
    <b>Objektum neve:</b> <br>
    <input type=text name='projhectNameField' id='projhectNameField' value='<?=$object->title?>'>
  </p>
  <p>
    <b>Objektum leírása:</b> <br>
    <textarea name='projectDescriptionField' id='projectDescriptionField' cols="60" rows="6"><?=$object->text?></textarea>
  </p>

    <table>
    <tr>
      <td><b>Objektum fájl: </b></td>
      <td><input type="text" size="39" name="originalFilenameField" id="originalFilenameField" value="<?=$object->object?>"></td>
    </tr>
    <tr>
      <td><b>Kép az objektumról: </b></td>
      <td><?if($object->kep != ""):?> <img src="/<?=$object->kep?>"><?else:?>Nincs kép<?endif;?></td>
    </tr>
    <tr>
      <td><b>Új kép az objektumról: </b></td>
      <td><input type="file" name="kep" id="kep"></td>
    </tr>
    <tr>
    	<td><b>Kategória:</b></td>
    	<td>
    	<select name="kategoria">
    		<option value="1">-- Válasszon --</option>
    		<option value="2"<?if($object->kategoria == 2):?> selected="selected"<?endif;?>><?=lang('obj_list1')?></option>
    		<option value="3"<?if($object->kategoria == 3):?> selected="selected"<?endif;?>><?=lang('obj_list2')?></option>
    		<option value="4"<?if($object->kategoria == 4):?> selected="selected"<?endif;?>><?=lang('obj_list3')?></option>
    		<option value="5"<?if($object->kategoria == 5):?> selected="selected"<?endif;?>><?=lang('obj_list4')?></option>
    		<option value="6"<?if($object->kategoria == 6):?> selected="selected"<?endif;?>><?=lang('obj_list5')?></option>
    		<option value="7"<?if($object->kategoria == 7):?> selected="selected"<?endif;?>><?=lang('obj_list6')?></option>
    		<option value="8"<?if($object->kategoria == 8):?> selected="selected"<?endif;?>><?=lang('obj_list7')?></option>
    		<option value="9"<?if($object->kategoria == 9):?> selected="selected"<?endif;?>><?=lang('obj_list8')?></option>
    		<option value="10"<?if($object->kategoria == 10):?> selected="selected"<?endif;?>><?=lang('obj_list9')?></option>
    		<option value="11"<?if($object->kategoria == 11):?> selected="selected"<?endif;?>><?=lang('obj_list10')?></option>
    		
    	</select>
    	</td>
    </tr>
    </table>
    <br />

    <input type=submit value='MÓDOSÍT'>

</form>
</ul>
