<br />
<?php
$id  =  $PowerBB->_CONF['template']['id'];
      $blocks_info = $PowerBB->DB->sql_query("SELECT  *   FROM " . $PowerBB->prefix."blocks" . " WHERE id = '$id'");
      $get_blocks_row = $PowerBB->DB->sql_fetch_array($blocks_info);
       ?>
<div class="address_bar">{$lang['Control_Panel']}
 &raquo; <a href="admin.php?page=portal&amp;control=1&amp;main=1">{$lang['portal']}</a>
  &raquo; <a href="admin.php?page=portal&amp;control_blocks=1&amp;main=1">{$lang['control_blocks']}</a>
{$lang['edit']}:
 <?php echo $get_blocks_row['title'];?>
</div>

<br />

<form action="admin.php?page=portal&amp;edit_block=1&amp;start=1&amp;id=<?php echo $get_blocks_row['id'];?>" method="post">
	<table width="60%" class="t_style_b" border="0" cellspacing="1" align="center">
		<tr align="center">
			<td class="main1" colspan="2">
			{$lang['edit']} :
			<?php echo $get_blocks_row['title'];?>
			</td>
		</tr>
		<tr>
			<td class="row1">
{$lang['block_text']}
<br />
{$lang['Writable_Bocuad_Html']}
			</td>
			<td class="row1">
				<textarea name="text" id="textarea_text" rows="10" cols="40" wrap="virtual" dir="rtl"><?php echo $get_blocks_row['text'];?></textarea>
			</td>
		</tr>
		<tr>
			<td class="row2" colspan="2" align="center">
					<input type="submit" value="{$lang['acceptable']}" name="submit" /></td>
		</tr>
		</table>

	<br />



	<br />

</form>