<a href="?mode=admin&amp;lib=altsys&amp;page=myblocksadmin&amp;dirname=<{$target_dirname}>"><{$smarty.const._MD_A_MYBLOCKSADMIN_BLOCKADMIN}></a>&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;<{$form_title}><br /><br />

<h3 style='text-align:<{$smarty.const._GLOBAL_LEFT}>;'><{$target_mname}></h3>

<style>
	td.blockposition	{width:135px;white-space:nowrap;}
	div.blockposition	{float:<{$smarty.const._GLOBAL_LEFT}>;border:solid 1px #333333;padding:1px;}
	div.unselected		{background-color:#FFFFFF;}
	div.selected		{background-color:#00FF00;}
	div.disabled		{background-color:#FF0000;}
	input[type='radio'] {margin:2px;}
	input[type='text'] {min-width:0%;}
	label				{display:inline;}
</style>

<{if $common_ck_installed}>
<script type="text/javascript" src="<{$xoops_url}>/editors/ckeditor/ckeditor.js"></script>
<{/if}>

<form name="blockform" id="blockform" action="?mode=admin&amp;lib=altsys&amp;page=myblocksadmin&amp;dirname=<{$target_dirname}>&amp;bid=<{$block.bid}>" method="post">

<table class="outer">
	<tr>
		<th colspan="2"><{$form_title}></th>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_NAME}></td>
		<td class="even">
			<{$block.name_raw|escape}>
		</td>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_TITLE}></td>
		<td class="even">
			<input type="text" name="titles[<{$block.bid}>]" value="<{$block.title_raw|escape}>" size="40" />
		</td>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_SIDE}></td>
		<td class="even">
			<{$block.cell_position}>
		</td>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_WEIGHT}></td>
		<td class="even">
			<input type="text" name="weights[<{$block.bid}>]" value="<{$block.weight}>" size="3" maxlength="5" style="text-align:<{$smarty.const._GLOBAL_RIGHT}>;" />
		</td>
	</tr>
	<tr>
		<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_VISIBLEIN}></td>
		<td class="even">
			<{$block.cell_module_link}>
			<{$block.cell_group_perm}>
		</td>
	</tr>


	<{if $block.is_custom}>

		<tr>
			<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_CONTENT}></td>
			<td class="even">
				<{if $block.c_type == 'P' || ! $common_ck_installed}>
					<textarea name="contents[<{$block.bid}>]" id="textarea_content" cols="80" rows="20"><{$block.content_raw|escape}></textarea>
					<{if ! $common_ck_installed}><br /><{$smarty.const._MD_A_MYBLOCKSADMIN_NOTICE4COMMONCK}><{/if}>
				<{else}>
					<textarea class="ckeditor" cols="80" name="contents[<{$block.bid}>]" id="textarea_content" name="editor1" rows="10"><{$block.content_raw|escape}></textarea>
				<{/if}>
			</td>
		</tr>
		<tr>
			<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_CTYPE}></td>
			<td class="even">
				<select name="c_types[<{$block.bid}>]" size="1">
					<{html_options options=$c_type_options selected=$block.c_type}>
				</select>
			</td>
		</tr>

	<{else}>
       <input type='hidden' name='c_types[<{$block.bid}>]' id='c_type' value='H' />

		<{if $block.template_tplset}>
		<tr>
			<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_CONTENT}></td>
			<td class="even">
				<a href="?mode=admin&amp;lib=altsys&amp;page=mytplsform&amp;tpl_file=<{$block.template}>&amp;tpl_tplset=<{$block.template_tplset}>"><{$smarty.const._MD_A_MYBLOCKSADMIN_EDITTPL}></a>
			</td>
		</tr>
		<{/if}>

		<tr>
			<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_OPTIONS}></td>
			<td class="even">
				<{$block.cell_options}>
			</td>
		</tr>

	<{/if}>

	<tr>
		<td class="head"><{$smarty.const._MD_A_MYBLOCKSADMIN_BCACHETIME}></td>
		<td class="even">
			<select name="bcachetimes[<{$block.bid}>]" size="1">
				<{html_options options=$cachetime_options selected=$block.bcachetime}>
			</select>
		</td>
	</tr>
	<tr>
		<td class="head"></td>
		<td class="even">
			<{if $block.is_custom}>
				<input type="submit" class="formButton" name="preview"  id="preview" value="<{$smarty.const._PREVIEW}>" />
			<{/if}>
			<input type="submit" class="formButton" name="submitblock"  id="submitblock" value="<{$submit_button}>" />
		</td>
	</tr>
</table>
<{$gticket_hidden}>
<input type="hidden" name="op" value="<{$op}>" />
</form>

<{if $block.content_preview}>
	<div class="myblocksadmin_preview">
		<{$block.content_preview}>
	</div>
<{/if}>

