'', 'es_templ_body' => '', 'es_templ_status' => '', 'es_email_type' => '' ); // Form submitted, check the data if (isset($_POST['es_form_submit']) && $_POST['es_form_submit'] == 'yes') { // Just security thingy that wordpress offers us check_admin_referer('es_form_add'); $form['es_templ_heading'] = isset($_POST['es_templ_heading']) ? $_POST['es_templ_heading'] : ''; if ($form['es_templ_heading'] == '') { $es_errors[] = __( 'Please enter template heading.', ES_TDOMAIN ); $es_error_found = TRUE; } $form['es_templ_body'] = isset($_POST['es_templ_body']) ? $_POST['es_templ_body'] : ''; $form['es_templ_status'] = isset($_POST['es_templ_status']) ? $_POST['es_templ_status'] : ''; $form['es_email_type'] = isset($_POST['es_email_type']) ? $_POST['es_email_type'] : ''; // No errors found, we can add this to the table if ($es_error_found == FALSE) { $action = false; $action = es_cls_compose::es_template_ins($form, $action = "insert"); if($action) { $es_success = __( 'Successfully created. ', ES_TDOMAIN ); } // Reset the form fields $form = array( 'es_templ_heading' => '', 'es_templ_body' => '', 'es_templ_status' => '', 'es_email_type' => '' ); } } if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) { ?>

0) { ?>

25 ); ?>

' . __( 'Available Keywords', ES_TDOMAIN ) . '' ); ?>