<div class="clear"></div>
<div id="pageContainer" class="yui-skin-sam">
<div id="pageNum_<?php 
echo $this->_tpl_vars['activePage'];
?>
_div">
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top: 5px;">
 	<tr>
	 	<td>

		</td>

		<td rowspan="3">
				<?php 
echo smarty_function_sugar_getimage(array('name' => "blank.gif", 'width' => '40', 'height' => '1', 'border' => '0'), $this);
?>

		</td>
		<td align='right'>
			<?php 
if (!$this->_tpl_vars['lock_homepage']) {
    ?>
<input id="add_dashlets" class="button" type="button" value="<?php 
    echo $this->_tpl_vars['lblAddDashlets'];
    ?>
" onclick="return SUGAR.mySugar.showDashletsDialog();"/><?php 
}
?>
		</td>
	</tr>
</tr>	
<?php 
if ($this->_tpl_vars['DISPLAY_SAVED_SEARCH']) {
    ?>
<tr>
	<td colspan='2'>
		<a class='tabFormAdvLink' onhover href='javascript:toggleInlineSearch()'>
            <?php 
    ob_start();
    echo smarty_function_sugar_translate(array('label' => 'LBL_ALT_SHOW_OPTIONS'), $this);
    $this->_smarty_vars['capture']['default'] = ob_get_contents();
    $this->assign('alt_show_hide', ob_get_contents());
    ob_end_clean();
    ?>
		<?php 
    echo smarty_function_sugar_getimage(array('alt' => $this->_tpl_vars['alt_show_hide'], 'name' => 'advanced_search', 'ext' => ".gif", 'other_attributes' => 'border="0" id="up_down_img" '), $this);
    ?>
&nbsp;<?php 
    echo $this->_tpl_vars['APP']['LNK_SAVED_VIEWS'];
    ?>

		</a><br>
		<input type='hidden' id='showSSDIV' name='showSSDIV' value='<?php 
    echo $this->_tpl_vars['SHOWSSDIV'];
    ?>
'><p>
	</td>
	<td scope='row' width='10%' nowrap="nowrap">
		<?php 
    echo smarty_function_sugar_translate(array('label' => 'LBL_SAVE_SEARCH_AS', 'module' => 'SavedSearch'), $this);
    ?>
        <input type="hidden" name="advanced" value="false">
        <?php 
    echo smarty_function_sugar_getimage(array('name' => 'searchMore', 'ext' => ".gif", 'alt' => $this->_tpl_vars['APP']['LBL_SEARCH'], 'other_attributes' => 'border="0" id="unified_search_advanced_img" '), $this);
    ?>
&nbsp;
        <input type="text" name="query_string" id="query_string" size="20" value="<?php 
    echo $this->_tpl_vars['SEARCH'];
    ?>
">&nbsp;
        <input type="submit" class="button" value="<?php 
    echo $this->_tpl_vars['APP']['LBL_SEARCH'];
    ?>
">
    </form><br />
    <div id="unified_search_advanced_div"> </div>
</div>
<div id="sitemapLink">
    <span id="sitemapLinkSpan">
        <?php 
    echo $this->_tpl_vars['APP']['LBL_SITEMAP'];
    ?>

        <?php 
    echo smarty_function_sugar_getimage(array('name' => 'MoreDetail', 'alt' => $this->_tpl_vars['app_strings']['LBL_MOREDETAIL'], 'ext' => ".png", 'other_attributes' => ''), $this);
    ?>

    </span>
</div>
<span id='sm_holder'></span>
<?php 
}
<?php

/* Smarty version 2.6.29, created on 2016-02-03 00:30:11
   compiled from modules/ModuleBuilder/tpls/MBPackage/deploy.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'sugar_getimage', 'modules/ModuleBuilder/tpls/MBPackage/deploy.tpl', 41, false))), $this);
echo smarty_function_sugar_getimage(array('name' => 'img_loading', 'alt' => $this->_tpl_vars['mod_strings']['LBL_LOADING'], 'ext' => ".gif", 'other_attributes' => 'align="absmiddle" '), $this);
?>
&nbsp;<?php 
echo $this->_tpl_vars['message'];
?>
 <?php 
echo $this->_tpl_vars['package'];
?>

<script type='text/javascript' language='Javascript'>ModuleBuilder.beginDeploy('<?php 
echo $this->_tpl_vars['package'];
?>
');</script>	
    } elseif (!$this->_tpl_vars['pageData']['offsets']['totalCounted'] || $this->_tpl_vars['pageData']['offsets']['total'] == $this->_tpl_vars['pageData']['offsets']['lastOffsetOnPage']) {
        ?>
								<button type='button' class='button' disabled title='<?php 
        echo $this->_tpl_vars['navStrings']['end'];
        ?>
'>
								 	<?php 
        echo smarty_function_sugar_getimage(array('name' => 'end_off', 'ext' => ".png", 'alt' => $this->_tpl_vars['navStrings']['end'], 'other_attributes' => 'align="absmiddle" border="0" '), $this);
        ?>

								</button>
								<!--&nbsp;<?php 
        echo $this->_tpl_vars['navStrings']['end'];
        ?>
&nbsp;<?php 
        echo smarty_function_sugar_getimage(array('name' => 'end_off', 'ext' => ".png", 'alt' => $this->_tpl_vars['navStrings']['end'], 'other_attributes' => 'align="absmiddle" border="0" '), $this);
        ?>
-->
							<?php 
    }
    ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<?php 
    if ($this->_tpl_vars['prerow']) {
        ?>
	<script>
                    echo $this->_tpl_vars['action'];
                    ?>
&record=<?php 
                    echo $this->_tpl_vars['rowData']['ID'];
                    ?>
"
	                >
	                    <?php 
                    ob_start();
                    echo smarty_function_sugar_translate(array('label' => 'LNK_EDIT'), $this);
                    $this->_smarty_vars['capture']['tmp1'] = ob_get_contents();
                    $this->assign('alt_edit', ob_get_contents());
                    ob_end_clean();
                    ?>
	                    <?php 
                    echo smarty_function_sugar_getimage(array('name' => "edit_inline.gif", 'attr' => 'border="0" ', 'alt' => $this->_tpl_vars['alt_edit']), $this);
                    ?>
</a>
	                <?php 
                }
                ?>
	            </td>
	
				<?php 
            }
            ?>
				<?php 
            echo smarty_function_counter(array('start' => 0, 'name' => 'colCounter', 'print' => false, 'assign' => 'colCounter'), $this);
            ?>

				<?php 
	<tr class="toggleClass yui-hidden">
		<td class="advancedSearchTD">
			<?php 
echo $this->_tpl_vars['app_strings']['LBL_EMAIL_SEARCH_DATE_UNTIL'];
?>
:&nbsp;<i>(<?php 
echo $this->_tpl_vars['dateFormatExample'];
?>
)</i><br/>
			<input name='searchDateTo' id='searchDateTo' onblur="parseDate(this, '<?php 
echo $this->_tpl_vars['dateFormat'];
?>
');" maxlength='10' size='11' value="" type="text">&nbsp;
			<?php 
echo smarty_function_sugar_getimage(array('name' => 'jscalendar', 'ext' => ".gif", 'alt' => $this->_tpl_vars['app_strings']['LBL_ENTER_DATE'], 'other_attributes' => 'align="absmiddle" id="searchDateTo_trigger" '), $this);
?>
		
		</td>
	</tr>

    <tr class="toggleClass yui-hidden">
        <td class="advancedSearchTD">
        <?php 
echo smarty_function_sugar_translate(array('label' => 'LBL_ASSIGNED_TO'), $this);
?>
: <br/>
        <input name="assigned_user_name" class="sqsEnabled" tabindex="2" id="assigned_user_name" size="" value="<?php 
echo $this->_tpl_vars['currentUserName'];
?>
" type="text" >
</a>
    <?php 
        $_from = $this->_tpl_vars['GCL']['SUBMENU'];
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $this->_foreach['gcl_submenu'] = array('total' => count($_from), 'iteration' => 0);
        if ($this->_foreach['gcl_submenu']['total'] > 0) {
            foreach ($_from as $this->_tpl_vars['gcl_submenu_key'] => $this->_tpl_vars['GCL_SUBMENU']) {
                $this->_foreach['gcl_submenu']['iteration']++;
                ?>
    <?php 
                if ($this->_foreach['gcl_submenu']['iteration'] <= 1) {
                    ?>
    <?php 
                    echo smarty_function_sugar_getimage(array('name' => 'menuarrow', 'ext' => ".gif", 'alt' => "", 'other_attributes' => ''), $this);
                    ?>
<br />
    <ul class="cssmenu">
    <?php 
                }
                ?>
    <li><a id="<?php 
                echo $this->_tpl_vars['gcl_submenu_key'];
                ?>
_link" href="<?php 
                echo $this->_tpl_vars['GCL_SUBMENU']['URL'];
                ?>
"<?php 
                if (!empty($this->_tpl_vars['GCL_SUBMENU']['ONCLICK'])) {
                    ?>
                echo is_array($_tmp = @$this->_tpl_vars['rowData'][$this->_tpl_vars['params']['id']]) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rowData']['ID']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rowData']['ID']);
                ?>
&offset=<?php 
                echo $this->_tpl_vars['pageData']['offsets']['current'] + $this->_foreach['rowIteration']['iteration'];
                ?>
&stamp=<?php 
                echo $this->_tpl_vars['pageData']['stamp'];
                ?>
&return_module=<?php 
                echo is_array($_tmp = @$this->_tpl_vars['params']['module']) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir']);
                ?>
' title="<?php 
                echo smarty_function_sugar_translate(array('label' => 'LBL_EDIT_INLINE'), $this);
                ?>
"><?php 
                echo smarty_function_sugar_getimage(array('name' => "edit_inline.gif", 'attr' => 'border="0" '), $this);
                ?>
</a>
				<?php 
            }
            ?>
			</td>
			<?php 
        }
        ?>
			<?php 
        echo smarty_function_counter(array('start' => 0, 'name' => 'colCounter', 'print' => false, 'assign' => 'colCounter'), $this);
        ?>

			<?php 
        $_from = $this->_tpl_vars['displayColumns'];
		</td>
	</tr>

	<tr>
		<td class='mbLBL'  ><b><?php 
echo $this->_tpl_vars['mod_strings']['LBL_DESCRIPTION'];
?>
</b></td><td><textarea name='description' cols='60' rows='5'><?php 
echo $this->_tpl_vars['package']->description;
?>
</textarea></td>
	</tr>

	<tr>	
		<td></td><td id='readme'><?php 
echo smarty_function_sugar_getimage(array('name' => 'advanced_search', 'ext' => ".gif", 'alt' => $this->_tpl_vars['mod_strings']['LBL_HIDEOPTIONS'], 'other_attributes' => 'border="0" id="options" '), $this);
?>
<a style="text-decoration:none" href="javascript: void(0)" onclick ="toggleEl('readmefield');"><b><?php 
echo $this->_tpl_vars['mod_strings']['LBL_ADD_README'];
?>
</b></a></td>
	</tr>
	<tr>
		<td height='100%'>&nbsp;</td><td>&nbsp;</td>
	</tr>
	<tr id='readmefield' style="display:none;">
		<td></td>
		<td ><textarea name='readme' cols='60' rows='10'><?php 
echo $this->_tpl_vars['package']->readme;
?>
</textarea></td>
?>
" value='<?php 
echo $_REQUEST['end_range_date_modified_basic'];
?>
' title=''  tabindex='' size="11" style="width:100px !important;" maxlength="10">
<?php 
ob_start();
?>
align="absmiddle" border="0" id="end_range_<?php 
echo $this->_tpl_vars['id'];
?>
_trigger"<?php 
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('other_attributes', ob_get_contents());
ob_end_clean();
echo smarty_function_sugar_getimage(array('name' => 'jscalendar', 'ext' => ".gif", 'alt' => $this->_tpl_vars['APP'] . ".LBL_ENTER_DATE other_attributes=" . $this->_tpl_vars['other_attributes']), $this);
?>

<script type="text/javascript">
Calendar.setup ({
inputField : "end_range_<?php 
echo $this->_tpl_vars['id'];
?>
",
daFormat : "<?php 
echo $this->_tpl_vars['CALENDAR_FORMAT'];
?>
",
button : "end_range_<?php 
echo $this->_tpl_vars['id'];
?>
echo $this->_tpl_vars['displayParams']['module'];
echo $this->_tpl_vars['vardef']['displayParams']['module'];
?>
" class="tabDetailViewDFLink" target='_blank'><?php 
echo smarty_function_sugar_fetch(array('object' => $this->_tpl_vars['parentFieldArray'], 'key' => $this->_tpl_vars['col']), $this);
?>

<?php 
if (isset($this->_tpl_vars['vardef']['allowEapm']) && $this->_tpl_vars['vardef']['allowEapm'] && isset($this->_tpl_vars['parentFieldArray']['DOC_TYPE'])) {
    ob_start();
    echo smarty_function_sugar_fetch(array('object' => $this->_tpl_vars['parentFieldArray'], 'key' => 'DOC_TYPE'), $this);
    ?>
_image_inline.png
<?php 
    $this->_smarty_vars['capture']['imageNameCapture'] = ob_get_contents();
    $this->assign('imageName', ob_get_contents());
    ob_end_clean();
    ob_start();
    echo smarty_function_sugar_getimagepath(array('file' => $this->_tpl_vars['imageName']), $this);
    ?>

<?php 
    $this->_smarty_vars['capture']['imageURLCapture'] = ob_get_contents();
    $this->assign('imageURL', ob_get_contents());
    ob_end_clean();
    if (strlen($this->_tpl_vars['imageURL']) > 1) {
        echo smarty_function_sugar_getimage(array('name' => $this->_tpl_vars['imageName'], 'alt' => $this->_tpl_vars['imageName'], 'other_attributes' => 'border="0" '), $this);
    }
}
?>
</a>
?>
<div id="chartDashlets" style="<?php 
if ($this->_tpl_vars['moduleName'] == 'Home') {
    ?>
height:400px;display:none;<?php 
} else {
    ?>
height:425px;display:;<?php 
}
?>
">
	<?php 
if ($this->_tpl_vars['charts'] != false) {
    ?>
	<h3><span id="basicChartDashletsExpCol"><a href="javascript:void(0)" onClick="javascript:SUGAR.mySugar.collapseList('basicChartDashlets');"><?php 
    echo smarty_function_sugar_getimage(array('alt' => $this->_tpl_vars['app_strings']['LBL_BASIC_SEARCH'], 'name' => 'basic_search', 'ext' => ".gif", 'other_attributes' => 'align="absmiddle" border="0" '), $this);
    ?>
</span></a>&nbsp;<?php 
    echo smarty_function_sugar_translate(array('label' => 'LBL_BASIC_CHARTS', 'module' => 'Home'), $this);
    ?>
</h3>
	<div id="basicChartDashletsList">
	<table width="100%">
		<?php 
    $_from = $this->_tpl_vars['charts'];
    if (!is_array($_from) && !is_object($_from)) {
        settype($_from, 'array');
    }
    if (count($_from)) {
        foreach ($_from as $this->_tpl_vars['chart']) {
            ?>
?>
.update(); SugarWidgetScheduler.update_time();"    >
<?php 
ob_start();
?>
alt="<?php 
echo $this->_tpl_vars['APP']['LBL_ENTER_DATE'];
?>
" style="position:relative; top:6px" border="0" id="<?php 
echo $this->_tpl_vars['fields']['date_end']['name'];
?>
_trigger"<?php 
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('other_attributes', ob_get_contents());
ob_end_clean();
echo smarty_function_sugar_getimage(array('name' => 'jscalendar', 'ext' => ".gif", 'other_attributes' => $this->_tpl_vars['other_attributes']), $this);
?>
&nbsp;
</td>
<td nowrap>
<div id="<?php 
echo $this->_tpl_vars['fields']['date_end']['name'];
?>
_time_section"></div>
</td>
</tr>
</table>
<input type="hidden" class="DateTimeCombo" id="<?php 
echo $this->_tpl_vars['fields']['date_end']['name'];
?>
" name="<?php 
    ?>
" />
<input type="hidden" name="module" value="<?php 
    echo $this->_tpl_vars['module'];
    ?>
" />
<input type="hidden" name="to_pdf" value="true" />
<span class="id-ff">
<button type="submit" name="vCardButton" id="btn_vCardButton" value="<?php 
    echo $this->_tpl_vars['APP']['LBL_VCARD'];
    ?>
" title="<?php 
    echo $this->_tpl_vars['APP']['LBL_VCARD'];
    ?>
" class="button"><?php 
    echo smarty_function_sugar_getimage(array('alt' => $this->_tpl_vars['app_strings']['LBL_ID_FF_VCARD'], 'name' => "id-ff-vcard", 'ext' => ".png", 'other_attributes' => ''), $this);
    ?>
</button>
</span>
</form>
<?php 
}
?>
</td>
<?php 
echo smarty_function_counter(array('name' => 'fieldsUsed'), $this);
?>

<td width='12.5%' scope="col">
<?php 
if (!$this->_tpl_vars['fields']['phone_work']['hidden']) {
			<h4><?php 
echo $this->_tpl_vars['app_strings']['LBL_EMAIL_FOLDERS_TITLE'];
?>
</h4>
		</th>
	</tr>
    <tr>
		<td NOWRAP style="padding: 8px;" valign="top" scope="row">
			<div>
				<?php 
echo $this->_tpl_vars['app_strings']['LBL_EMAIL_SETTINGS_USER_FOLDERS'];
?>
:
				<div id="rollover">
                    <a href="#" class="rollover"><?php 
echo smarty_function_sugar_getimage(array('alt' => $this->_tpl_vars['mod_strings']['LBL_HELP'], 'name' => 'helpInline', 'ext' => ".gif", 'other_attributes' => 'border="0" '), $this);
?>
<span><?php 
echo $this->_tpl_vars['app_strings']['LBL_EMAIL_MULTISELECT'];
?>
</span></a>
                </div>
			</div>
			<br/>
			<div>
				<select multiple size="8" STYLE="width: 140px" name="userFolders[]" id="userFolders" onchange="SUGAR.email2.folders.updateSubscriptions();"></select>
			</div>
		</td>

	</tr>
	<tr>
			    <select name="person" id="input_searchPerson">
			         <?php 
echo $this->_tpl_vars['listOfPersons'];
?>

			    </select>
			    &nbsp;
			    <a href="javascript:void(0);">
                    <?php 
echo smarty_function_sugar_getimage(array('name' => 'select', 'ext' => ".gif", 'alt' => $this->_tpl_vars['mod_strings']['LBL_EMAIL_SELECTOR_SELECT'], 'other_attributes' => 'align="absmiddle" border="0" onclick="SUGAR.email2.addressBook.searchContacts();" '), $this);
?>

                </a>
                <a href="javascript:void(0);">
                    <?php 
echo smarty_function_sugar_getimage(array('name' => 'clear', 'ext' => ".gif", 'alt' => $this->_tpl_vars['mod_strings']['LBL_EMAIL_SELECTOR_CLEAR'], 'other_attributes' => 'align="absmiddle" border="0" onclick="SUGAR.email2.addressBook.clearAddressBookSearch();" '), $this);
?>

                </a>
			</td>
        </tr>
        <tr id="peopleTableSearchRow">
            <td scope="row" nowrap="NOWRAP" colspan="2" id="relatedBeanColumn">
		      <?php 
echo $this->_tpl_vars['mod_strings']['LBL_FILTER_BY_RELATED_BEAN'];
?>
<span id="relatedBeanInfo"></span>
		   	  <input name="hasRelatedBean" id="hasRelatedBean" type="checkbox"/>
            </td>

        </tr>
</div>

</div>

</div>

<script>
addToValidate('ConfigureSettings', 'system_name', 'varchar', true,'System Name' );
</script>
</form>

<div id='upload_panel' style="display:none">
    <form id="upload_form" name="upload_form" method="POST" action='index.php' enctype="multipart/form-data">
        <input type="file" id="my_file_company" name="file_1" size="20" onchange="uploadCheck(false)"/>
        <?php 
echo smarty_function_sugar_getimage(array('name' => 'sqsWait', 'ext' => ".gif", 'alt' => $this->_tpl_vars['mod_strings']['LBL_LOADING'], 'other_attributes' => 'id="loading_img_company" style="display:none" '), $this);
?>

    </form>
</div>

<div id="testOutboundDialog" class="yui-hidden">
    <div id="testOutbound">
        <form>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
            <tr>
                <td scope="row">
                    <?php 
echo $this->_tpl_vars['APP']['LBL_EMAIL_SETTINGS_FROM_TO_EMAIL_ADDR'];
?>
 
            <td align="right" class="editIcon">
                                <?php 
                if (isset($this->_tpl_vars['field_defs'][$this->_tpl_vars['key']]['calculated']) && $this->_tpl_vars['field_defs'][$this->_tpl_vars['key']]['calculated']) {
                    ?>
                    <?php 
                    echo smarty_function_sugar_getimage(array('name' => "SugarLogic/icon_calculated", 'alt' => $this->_tpl_vars['mod_strings']['LBL_CALCULATED'], 'ext' => ".png", 'other_attributes' => ''), $this);
                    ?>

                <?php 
                }
                ?>
                <?php 
                if (isset($this->_tpl_vars['field_defs'][$this->_tpl_vars['key']]['dependency']) && $this->_tpl_vars['field_defs'][$this->_tpl_vars['key']]['dependency']) {
                    ?>
                    <?php 
                    echo smarty_function_sugar_getimage(array('name' => "SugarLogic/icon_dependent", 'alt' => $this->_tpl_vars['mod_strings']['LBL_DEPENDANT'], 'ext' => ".png", 'other_attributes' => ''), $this);
                    ?>

                <?php 
                }
                ?>
                                <img src="<?php 
                echo smarty_function_sugar_getimagepath(array('file' => 'edit_inline.gif'), $this);
                ?>
" style="cursor: pointer;"
				onclick="var value_label = document.getElementById('subslot<?php 
                echo $this->_tpl_vars['modCounter'];
                ?>
label').innerHTML.replace(/^\s+|\s+$/g,''); 
				    <?php 
                if (!((is_array($_tmp = $this->_tpl_vars['view']) ? $this->_run_mod_handler('substr', true, $_tmp, -6) : substr($_tmp, -6)) == 'search')) {
                echo is_array($_tmp = @$this->_tpl_vars['params']['module']) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['pageData']['bean']['moduleDir']);
                ?>
&record=<?php 
                echo is_array($_tmp = @$this->_tpl_vars['rowData'][$this->_tpl_vars['params']['parent_id']]) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['rowData']['ID']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['rowData']['ID']);
                ?>
&offset=<?php 
                echo $this->_tpl_vars['pageData']['offsets']['current'] + $this->_foreach['rowIteration']['iteration'];
                ?>
&stamp=<?php 
                echo $this->_tpl_vars['pageData']['stamp'];
                ?>
&return_module=Home&return_action=index' title="<?php 
                echo smarty_function_sugar_translate(array('label' => 'LBL_VIEW_INLINE'), $this);
                ?>
><?php 
                echo smarty_function_sugar_getimage(array('name' => "view_inline.png", 'attr' => 'border="0" ', 'alt' => $this->_tpl_vars['alt_view']), $this);
                ?>
</a>
				<?php 
            }
            ?>
			</td>
			<?php 
        }
        ?>
	    	</tr>
	<?php 
    }
} else {
    ?>
	<tr height='20' class='<?php 
<div id='insideViewDiv' style='width:100%' class="doNotPrint">
    <table width="100%" cellpadding="0" cellspacing="0" border="0" class="formHeader h3Row">
        <tbody>
            <tr>
                <td nowrap="">
                    <h3>
                        <a name="insideview"> </a>
                        <span id="show_link_insideview" style="display: none">
                            <a class="utilsLink" href="#" onclick="current_child_field = 'insideview';markSubPanelLoaded('insideview');showSubPanel('insideview',null,null,'insideview');document.getElementById('show_link_insideview').style.display='none';document.getElementById('hide_link_insideview').style.display='';return false;"><?php 
echo smarty_function_sugar_getimage(array('name' => 'advanced_search', 'attr' => 'border="0" align="absmiddle"', 'ext' => '.gif', 'alt' => $this->_tpl_vars['APP']['LBL_SHOW']), $this);
?>
</a>
                        </span>
                        <span id="hide_link_insideview" style="display: ">
                            <a class="utilsLink" href="#" onclick="hideSubPanel('insideview');document.getElementById('hide_link_insideview').style.display='none';document.getElementById('show_link_insideview').style.display='';return false;"><?php 
echo smarty_function_sugar_getimage(array('name' => 'basic_search', 'attr' => 'border="0" align="absmiddle"', 'ext' => '.gif', 'alt' => $this->_tpl_vars['APP']['LBL_HIDE']), $this);
?>
</a>
                        </span>

                        <span>InsideView</span>
                    </h3>
                </td>
                <td width="100%" valign="middle" nowrap="">
                </td>
            </tr>
        </tbody>
    </table>
  <div id='subpanel_insideview' style='width:100%' <?php 
if (!$this->_tpl_vars['showInsideView']) {
    ?>
    echo $this->_tpl_vars['app_strings']['LNK_LIST_NEXT'];
    ?>
" onClick="document.location.href='<?php 
    echo $this->_tpl_vars['next_link'];
    ?>
';">
                    <?php 
    echo smarty_function_sugar_getimage(array('name' => 'next', 'attr' => "border=\"0\" align=\"absmiddle\"", 'ext' => ".gif", 'alt' => $this->_tpl_vars['app_strings']['LNK_LIST_NEXT']), $this);
    ?>

                </button>
                <?php 
} else {
    ?>
                <button type="button" class="button" title="<?php 
    echo $this->_tpl_vars['app_strings']['LNK_LIST_NEXT'];
    ?>
" disabled="true">
                    <?php 
    echo smarty_function_sugar_getimage(array('name' => 'next_off', 'attr' => "border=\"0\" align=\"absmiddle\"", 'ext' => ".gif", 'alt' => $this->_tpl_vars['app_strings']['LNK_LIST_NEXT']), $this);
    ?>

                </button>
                <?php 
}
?>
            </span>
            &nbsp;&nbsp;
        </td>
    </tr>
</table>
            ?>
');"><?php 
            echo $this->_tpl_vars['tab']['label'];
            ?>
</a>
	</li>
<?php 
        }
    }
    unset($_from);
    if (!empty($this->_tpl_vars['moreMenu'])) {
        ?>
	<li>
		<div id='MorePanelHandle' onmouseover='SUGAR.subpanelUtils.menu.tbspButtonMouseOver(this.id,"","",0);'>
			<?php 
        echo smarty_function_sugar_getimage(array('name' => 'blank', 'ext' => ".gif", 'width' => '16', 'height' => '16', 'alt' => $this->_tpl_vars['app_strings']['LBL_MORE'], 'other_attributes' => 'border="0" '), $this);
        ?>

		</div>
	</li>
<?php 
    }
    ?>
</ul>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="subpanelTabForm">
	<tr>
		<td>
<?php 
}
?>
.addEmailAddress('<?php 
echo $this->_tpl_vars['module'];
?>
emailAddressesTable<?php 
echo $this->_tpl_vars['index'];
?>
','','');"<?php 
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('other_attributes', ob_get_contents());
ob_end_clean();
?>
                        <button type="button" <?php 
echo $this->_tpl_vars['other_attributes'];
?>
><?php 
echo smarty_function_sugar_getimage(array('name' => "id-ff-add", 'alt' => $this->_tpl_vars['app_strings'] . ".LBL_ID_FF_ADD", 'ext' => ".png"), $this);
?>
</button>
					</td>
					<td scope="row" NOWRAP>
					    &nbsp;
					</td>
					<td scope="row" NOWRAP>
						<?php 
echo $this->_tpl_vars['app_strings']['LBL_EMAIL_PRIMARY'];
?>

					</td>
					<?php 
if ($this->_tpl_vars['useReplyTo'] == true) {
    ?>
    ?>
 <i class="icon-sort-by-attributes"></i>
        <!-- <?php 
    echo smarty_function_sugar_getimage(array('name' => 'MoreDetail', 'alt' => $this->_tpl_vars['app_strings']['LBL_MOREDETAIL'], 'ext' => ".png", 'other_attributes' => ''), $this);
    ?>
 -->
    </span>
</div>
<div id="search">
    <form name='UnifiedSearch' action='index.php' onsubmit='return SUGAR.unifiedSearchAdvanced.checkUsaAdvanced()'>
      <input type="hidden" name="action" value="UnifiedSearch">
      <input type="hidden" name="module" value="Home">
      <input type="hidden" name="search_form" value="false">
      <input type="hidden" name="advanced" value="false">
      <!--  <?php 
    echo smarty_function_sugar_getimage(array('name' => 'searchMore', 'ext' => ".gif", 'alt' => $this->_tpl_vars['APP']['LBL_SEARCH'], 'other_attributes' => 'border="0" id="unified_search_advanced_img" '), $this);
    ?>
&nbsp; -->
      <div class="input-group">
        <input type="text" name="query_string" id="query_string" class="form-control" size="20" value="<?php 
    echo $this->_tpl_vars['SEARCH'];
    ?>
">
        <span class="input-group-btn">
	        <button type="submit" class="btn btn-default" type="button">Buscar</button>
	      </span>
      </div>
      <!-- <input type="submit" class="button" value="<?php 
    echo $this->_tpl_vars['APP']['LBL_SEARCH'];
    ?>
"> -->