$data['es_templ_id'], 'es_templ_heading' => stripslashes($data['es_templ_heading']), 'es_templ_body' => stripslashes($data['es_templ_body']), 'es_templ_status' => $data['es_templ_status'], 'es_email_type' => $data['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_edit'); $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'] : ''; $form['es_templ_id'] = isset($_POST['es_templ_id']) ? $_POST['es_templ_id'] : '0'; // No errors found, we can add this to the table if ($es_error_found == FALSE) { $action = ""; $action = es_cls_compose::es_template_ins($form, $action = "update"); if($action == "sus") { $es_success = __( 'Successfully updated. ', ES_TDOMAIN ); } } } if ($es_error_found == TRUE && isset($es_errors[0]) == TRUE) { ?>

0) { ?>

25 ); ?>

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