$es_success_msg = FALSE;
    // First check if ID exist with requested ID
    $result = es_cls_compose::es_template_count($did);
    if ($result != '1') {
        ?>
<div class="error fade"><p><strong><?php 
        _e('Oops, selected details doesnt exist.', 'email-subscribers');
        ?>
</strong></p></div><?php 
    } else {
        // Form submitted, check the action
        if (isset($_GET['ac']) && $_GET['ac'] == 'del' && isset($_GET['did']) && $_GET['did'] != '') {
            //	Just security thingy that wordpress offers us
            check_admin_referer('es_form_show');
            //	Delete selected record from the table
            es_cls_compose::es_template_delete($did);
            //	Set success message
            $es_success_msg = TRUE;
            $es_success = __('Selected record was successfully deleted.', 'email-subscribers');
        }
    }
    if ($es_success_msg == TRUE) {
        ?>
<div class="updated fade"><p><strong><?php 
        echo $es_success;
        ?>
</strong></p></div><?php 
    }
}
?>
<script language="javaScript" src="<?php