        <?=$this->tinyMce?>
<center><h3><?=$title?></h3></center>
      <? if ($this-> session-> flashdata('message')): ?>
    <div class='warning'>
      <?=$this-> session-> flashdata('message');?>
    </div>
    <? endif; ?>
    
<? if ($content) { ?>
    <table cellspacing="0" cellpadding="0" border="1" class="full">
      <thead>
        <tr>
          <th colspan="100%" scope="col">Current Content</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th scope="col">Τίτλος</th>
          <th scope="col">Κείμενο</th>
          <th scope="col">Γλώσσα</th>
          <th scope="col">Ενέργειες</th>
        </tr>
        <? foreach($content as $cont=>$content){ ?>
        <? if (($edit==true) && ($content['page_id']==$edit_id)) { ?>
            <? $attributes = array('class' => 'nform'); ?>
		    <?=form_open('admin/categories/update_contact_us/'.$content['page_id'],$attributes); ?>
        <tr>
          <td>
        <?  echo "<p><label for='title'></label>";
		$data = array('name'=>'title','id'=>'title','size'=>15, 'value' => $content['title']);
echo form_input($data) ."</p>"; ?>
		</td>
          <td>
        <?  echo "<p><label for='content'></label>";
$data = array('name'=>'content','id'=>'content','rows'=>'15', 'cols'=>'50', 'value' => $content['content']);
echo form_textarea($data) ."</p>"; ?>
		</td>
        <td>
        <? echo "<p><label for='language'></label>";
			$options = array('1' => 'English', '2' => 'German');
			echo form_dropdown('language',$options, $content['lang_id']) ."</p>"; ?>
		</td>
        <td><? echo form_submit('submit','update page')?><br /><?=anchor("admin/categories/contact_us", 'Ακύρωση')?></td>
       </tr>
       <? echo form_close(); ?>
       <? } else { ?>
        <tr>
          <td><?=$content['title']?></td>
          <td><?=$content['content']?></td>
         <? if ($content['lang_id']==1) { ?>
          <td>English</td>
          <? } else { ?>
          <td>German</td>
         <? } ?>
          <td><?=anchor("admin/categories/edit_contact_us/".$content['page_id'], 'Επεξεργασία εγγραφής')?></td>
       </tr>
       <? }
	   } ?>
      </tbody>
    </table>
<?    } ?>