<?php 
            } else {
                ?>
                                <?php 
                echo smarty_function_sugar_image(array('name' => $this->_tpl_vars['button']['imageTitle'], 'width' => $this->_tpl_vars['button']['size'], 'height' => $this->_tpl_vars['button']['size'], 'image' => $this->_tpl_vars['button']['imageName']), $this);
                ?>
                            
                            <?php 
            }
            ?>
						<?php 
        } else {
            ?>
							<?php 
            echo smarty_function_sugar_image(array('name' => $this->_tpl_vars['button']['imageTitle'], 'width' => $this->_tpl_vars['button']['size'], 'height' => $this->_tpl_vars['button']['size']), $this);
            ?>

						<?php 
        }
        ?>
</a></td>
					 </tr>
					 <tr>
						 <td align="center"><a class='studiolink' id='<?php 
        echo $this->_tpl_vars['button']['linkId'];
        ?>
' href="javascript:void(0)">
				            <?php 
        if (isset($this->_tpl_vars['button']['imageName'])) {
            echo $this->_tpl_vars['button']['imageTitle'];
echo $this->_tpl_vars['maxColumns'];
?>
'>
<input type='hidden' id='nextPanelId' value='<?php 
echo $this->_tpl_vars['nextPanelId'];
?>
'>
<div id='toolbox' style='float:left; overflow-y:auto; overflow-x:hidden';>
    <h2 style='margin-bottom:20px;'><?php 
echo $this->_tpl_vars['mod']['LBL_TOOLBOX'];
?>
</h2>
    
    <div id='delete'>
    <?php 
echo smarty_function_sugar_image(array('name' => 'Delete', 'width' => 48, 'height' => 48), $this);
?>

    </div>

	<?php 
if (!isset($this->_tpl_vars['fromPortal']) && !isset($this->_tpl_vars['wireless']) && empty($this->_tpl_vars['single_panel'])) {
    ?>
    <div id='panelproxy'></div>
    <?php 
}
?>
    <div id='rowproxy'></div>
    <div id='availablefields'>
    <p id='fillerproxy'></p>
?>
</select>
</slot></td>
</tr>
</table>
</div>
</div>
<?php 
if ($this->_tpl_vars['ID']) {
    ?>
<div id="eapm_area" style='display:<?php 
    echo $this->_tpl_vars['HIDE_FOR_GROUP_AND_PORTAL'];
    ?>
;'>
<div style="text-align:center; width: 100%"><?php 
    echo smarty_function_sugar_image(array('name' => 'loading'), $this);
    ?>
</div>
</div>
<?php 
}
?>
</div>
<script type="text/javascript">

var mail_smtpport = '<?php 
echo $this->_tpl_vars['MAIL_SMTPPORT'];
?>
';
var mail_smtpssl = '<?php 
echo $this->_tpl_vars['MAIL_SMTPSSL'];
                echo $this->_tpl_vars['name'];
                ?>
</a>
                        <script>ModuleBuilder.buttonAdd('type_<?php 
                echo $this->_tpl_vars['type'];
                ?>
', '<?php 
                echo $this->_tpl_vars['type'];
                ?>
', 'type');</script>
                    </td>
                    <?php 
            } else {
                ?>
                    <td align='center'><?php 
                echo smarty_function_sugar_image(array('name' => $this->_tpl_vars['type'], 'width' => 48, 'height' => 48), $this);
                ?>
<br>
                    <?php 
                echo $this->_tpl_vars['name'];
                ?>

                    <?php 
            }
            ?>
                    </td>
                    <?php 
        }
        ?>
                <?php 
        echo smarty_function_counter(array('name' => 'items'), $this);