<!--<div class="help_text">
    <div class="help_body">
        <span class="help_title">{$lang.builder.registration_help_title}</span>{$lang.builder.adv_search_help}
    </div>
</div>-->
<table border="0" width="96%">
<tr>
	<td width="387px">
		<div class="column">
			<div class="portlet first_page" page_id="1">
				<div class="portlet-header">
					<div class="padding-left-5">{$lang.builder.asearch_link}</div>
				</div>
				<div class="portlet-content">
					<ul class="draw_area" style="list-style-type: none;margin: 0px; padding: 0px;" >
						{foreach item=item from=$elements name=elements}
						{if $item.adv_search > 0}
						<li class="edit_section2{if $item.category eq 'text_del'} custom{/if}{if $item.name_for_lang eq 'im' || $item.name_for_lang eq 'looking_for'} edit_section_disable{/if} {if $item.category == 'partner_criteria' || $item.category == 'partner_interests'} help_text{/if}" category="{$item.category}" id_elem="{$item.id}" element_type="input_element">
							<table width="315px" style="padding-left:5px;">
								<tr>
									<td>
										<img id_elem="{$item.id}" class="info" src="{$site_root}{$template_root}/images/controls/information.png">
									</td>
									<td width="100%" class="elem_small_text" mandatory="0">
										{if $item.category eq 'custom'}
											{if $lang.userspr[$item.name_for_lang] ne ''}
												{$lang.userspr[$item.name_for_lang]}
											{else}
												{$item.name_for_lang}
											{/if}
										{else}											
											{if $lang.profile[$item.name_for_lang] ne ''}
												{$lang.profile[$item.name_for_lang]}
											{else}
												{if $item.name_for_lang eq 'id_within'}
													{$lang.builder.within}
												{else}
													{$item.name_for_lang}
												{/if}
											{/if}
										{/if}
									</td>
									<td width="0%" class="control" style="display:none;">
										<div class="control" style="display:none; position: relative;">
											{if $item.is_system eq '0' || $item.name_for_lang eq 'id_relationship'}
											<div style="position: absolute; right: -55px; top: -9px; cursor: pointer;">
												<img alt="{$lang.builder.del_elem}" title="{$lang.builder.del_elem}" class="deleteadd" src="{$site_root}{$template_root}/images/controls/icn_delete.gif">
											</div>
											{/if}
											<div style="position: absolute; right: -20px; top: -10px; cursor: pointer;" class="div_editelem">
												<img alt="{$lang.builder.edit_elem}" title="{$lang.builder.edit_elem}" class="editelement" src="{$site_root}{$template_root}/images/controls/icn_edit.gif">
											</div>
										</div>
									</td>
                                    <td width="0%">
                                        {if $item.name_for_lang eq 'im' || $item.name_for_lang eq 'looking_for' || $item.name_for_lang eq 'id_country' || $item.name_for_lang eq 'id_region' || $item.name_for_lang eq 'id_city'}
                                        <div style="position: relative;">
                                            <div style="position: absolute; right: -50px; top: -10px;">
                                                <img title="{$lang.builder.is_system}" alt="{$lang.builder.is_system}" src="{$site_root}{$template_root}/images/controls/lock.png">
                                            </div>
                                        </div>
                                        {/if}
                                    </td>
								</tr>
							</table>
						</li>
						{/if}
						{/foreach}
					</ul>
				</div>
                {strip}
                <div style="height: 35px;">
                    <div style="position:relative">
                        <div style="position:absolute; width: 350px;">
                            <div class="control" align="left" style="padding: 5px; display:none; float:left;">
                                <a href="#" class="builder" onclick="Cancel($(this).parents('.portlet')); return false;"><img style="position: relative; top: 3px; padding-right: 0px;" alt="Cancel" id="cancel" src="{$site_root}{$template_root}/images/controls/cancel.png"></a><a href="#" class="builder" onclick="Cancel($(this).parents('.portlet')); return false;">{$lang.builder.cancel}</a>
                            </div>
                            <div class="control" align="right" style="padding: 5px 10px 5px 5px; display:none;">
                                <a href="#" class="builder" onclick="ExitEditBlock($(this).parents('.portlet'), 1);return false;"><img style="position: relative; top: 3px; padding-right: 0px;" alt="OK" id="ok" src="{$site_root}{$template_root}/images/controls/new_ok.png"></a><a href="#" class="builder" onclick="ExitEditBlock($(this).parents('.portlet'), 1);return false;">{$lang.builder.save_pos}</a>
                            </div>
                        </div>
                        <div style="position:absolute; width: 350px;" class="edit_block builder">
                            <div align="left" style="padding: 5px; float:left;">
                                <a class="builder" href="#" onclick="EnterEditBlock($(this).parents('.portlet'), 1); return false;">
                                    <img alt="{$lang.builder.edit_elem}" title="{$lang.builder.edit_elem}" src="{$site_root}{$template_root}/images/controls/icn_edit.gif">
                                </a>
                                <a class="builder" href="#" onclick="EnterEditBlock($(this).parents('.portlet'), 1); return false;">{$lang.builder.edit_page}</a>
                        </div>
                            <div align="right" style="padding: 5px 10px 5px 5px;">
                                {*<a class="delete_block builder" href="#" onclick="DeleteBlock($(this).parent()); return false;">
                                    <img alt="{$lang.builder.del_elem}" title="{$lang.builder.del_elem}" class="deleteadd" src="{$site_root}{$template_root}/images/controls/icn_delete.gif">
                                </a>
                                <a class="delete_block builder" href="#" onclick="DeleteBlock($(this).parent()); return false;">
                                    {$lang.builder.del_page}
                                </a>*}
                    </div>
                </div>
                    </div>
                </div>
                {/strip}
			</div>
		</div>
	</td>
	<td valign="top">
	<div style="padding-top: 20px;" id="prop_area">
		<div class="ui-widget-content enter_edit_element" style="padding: 4px; float: left; display: block; position: absolute; display: none; background: #f0f7ff;">
			<div class="ui-widget-header">
				<div style="padding-top: 3px; padding-bottom: 3px; ">
					<div style="position:relative;">
						<div style="position:absolute;left:-15px;top:2px;">
							<img src='{$site_root}{$template_root}/images/builder/arrow.gif'>
						</div>
					</div>
                    <div style="position:relative;">
                        <div style="position:absolute;right:3px;top:4px; cursor:pointer;" onclick="CancelEditElem();">
                            <img src="{$site_root}{$template_root}/images/controls/icn_close_white.gif" alt="{$lang.builder.close_tools}" title="{$lang.builder.close_tools}">
                        </div>
                    </div>
					<div style="display: table-cell; height:20px; vertical-align:middle;" >
					&nbsp; {$lang.builder.edit_element}
					</div>
				</div>
			</div>
			<div class="edit_text" style="display: none; padding: 10px;">
				<b>{$lang.builder.edit_label}</b><br><br>
				<textarea style="width: 450px; height: 100px;" id="wysiwyg"></textarea>
				<span style="display:none;" id="wysiwyg_span"></span>
				<script>
					sels = ' Textbox ';
					opts['textbox'] = new Array("Text box", "Right", "Left");
					vals['textbox'] = new Array("","<div style='float:right;width:200px;border:1px solid;padding:.5em;margin:0 5px;'>&nbsp;","<div style='float:left;width:200px;border:1px solid;padding:.5em;margin:0 5px;'>&nbsp;");
					makeWhizzyWig("wysiwyg", dbuts + buts);
				</script>
			</div>

			<div style="height: 35px;">
				<div style="position: relative; top: 22px; left:22px;">
					<div style="opacity: 1; position: absolute; top: 0px; left: -252px; margin-top: 0px;" id="element_tooltip" class="yCallout">
						<div class="yCalloutTop"></div>
						<div class="yCalloutBody">
							<div>
								<p>
								</p>
							</div>
						</div><div class="yCalloutBottom"></div>
					</div>
				</div>

				<div class="control" align="left" style="padding: 5px; display:; float:left;">
					<a href="#" class="builder" onclick=""><img style="position: relative; top: 3px; padding-right: 0px;" alt="Preview" id="preview" src="{$site_root}{$template_root}/images/builder/preview.png"></a>
					<a href="#" class="builder" onclick="">{$lang.builder.preview}</a>
				</div>
				<div class="control" align="center" style="padding: 5px; display:; float:left;">
					<a href="#" class="builder" onclick="CancelEditElem();return false;"><img style="position: relative; top: 3px; padding-right: 0px;" alt="Cancel" id="cancel" src="{$site_root}{$template_root}/images/controls/cancel.png"></a><a href="#" class="builder" onclick="CancelEditElem();return false;">{$lang.builder.cancel}</a>
				</div>
				<div class="control" align="right" style="padding: 5px 10px 5px 5px; display:; float:left;">
					<a href="#" class="builder" onclick="SaveText();return false;"><img style="position: relative; top: 3px; padding-right: 0px;" alt="OK" id="ok" src="{$site_root}{$template_root}/images/controls/new_ok.png"></a><a href="#" class="builder" onclick="SaveText();return false;">{$lang.builder.save_changes}</a>
				</div>
			</div>
		</div>
        <div class="before_edit_element" style="float: left; display: none; position: absolute; padding-right: 10px;">
            {include file="$site_path/$admin_theme_path/admin_builder_tools.tpl"}
        </div>
	</div>
	</td>
</tr>
</table>
