<script type="text/javascript">
//<![CDATA[
	function delete_cblock(theURL)
	{
		if (confirm( "{$this->ipsclass->lang['blog_sure_delcblock']}" ))
		{
			window.location.href=theURL;
		}
		else
		{
			alert ( "{$this->ipsclass->lang['del_no_action']}" );
		}
	}
//]]>
</script>
<if="$error">
<div class="borderwrap">
  <div class="formsubtitle">{$this->ipsclass->lang['blog_errors_found']}</div>
  <div class="tablepad"><span class="postcolor">$error</span></div>
</div>
<br />
</if>
<div class='subtitle'>{$this->ipsclass->lang['blog_cblock_settings']}</div>
<form action="{$this->ipsclass->base_url}" id="cblocksettings" name="cblocksettings" method="post">
<input type="hidden" name="act" value="module" />
<input type="hidden" name="module" value="blog" />
<input type="hidden" name="req" value="ucp_docblockset" />
<input type="hidden" name="auth_key" value="{$auth_key}" />
<table cellspacing="0" class="ipbtable">
	<tr>
		<td class="pformleft">{$this->ipsclass->lang['cblock_width']}</td>
		<td class="pformright"><input type='text' size='32' maxlength='128' name='blog_cblockwidth' value='{$blog['blog_cblockwidth']}' /></td>
	</tr>
	<tr>
		<td colspan="2" class="formbuttonrow" align="center">
			<input type="submit" class="button" value="{$this->ipsclass->lang['submit_cblocks_settings']}" />
		</td>
	</tr>
</table>
</form>
<div class='subtitle'>{$this->ipsclass->lang['blog_cblocks_header']}</div>
<table cellspacing="0" class="ipbtable">
	<tr>
<if="$this->ipsclass->vars['blog_allow_cblocks']">
<td width="50%" valign="top">
			<form action="{$this->ipsclass->base_url}" id="defcblocks" name="defcblocks" method="post">
			<input type="hidden" name="act" value="module" />
			<input type="hidden" name="module" value="blog" />
			<input type="hidden" name="req" value="addcblock" />
			<p>{$this->ipsclass->lang['blog_cblocks_desc']}</p>
			<p><input type="submit" class="button" value="{$this->ipsclass->lang['blog_cblocks_add']}" /></p>
			</form>
		<td>
</if>
		<td valign="top">
			<form action="{$this->ipsclass->base_url}" id="defcblocks" name="defcblocks" method="post">
			<input type="hidden" name="act" value="module" />
			<input type="hidden" name="module" value="blog" />
			<input type="hidden" name="req" value="ucp_adddefcblock" />
			<input type="hidden" name="auth_key" value="{$auth_key}" />
			<p>{$this->ipsclass->lang['blog_cblocks_def']}</p>
			<p><select name="def_cblock[]" size="5" style="width:200px" multiple>{$blog['def_blocks']}</select></p>
			<p><input type="submit" class="button" value="{$this->ipsclass->lang['blog_cusblocks_add']}" /></p>
			</form>
		</td>
	</tr>
</table>
<div class='subtitle'>{$this->ipsclass->lang['blog_cblocks_list']}</div>
<form action="{$this->ipsclass->base_url}" name="multiact" method="post">
<input type="hidden" name="act" value="module" />
<input type="hidden" name="module" value="blog" />
<input type="hidden" name="req" value="ucp_docblocks" />
<input type="hidden" name="auth_key" value="{$auth_key}" />
<div class="borderwrapm">
	<table cellspacing="0" class="ipbtable">
		<tr>
			<th width="15%" align="center">{$this->ipsclass->lang['blog_cblock_order']}</th>
			<th width="15%" align="center">{$this->ipsclass->lang['blog_cblock_show']}</th>
			<th width="15%" align="center">{$this->ipsclass->lang['blog_cblock_position']}</th>
			<th width="35%">{$this->ipsclass->lang['blog_cblock_name']}</th>
			<th width="20%" align="center">{$this->ipsclass->lang['blog_cblock_options']}</th>
		</tr>