<section id="emails"> <form autocomplete="off" action="<?php echo site_url('enforcement/template/' . $template_id); ?> " method="post" id="enforcement_form" name="enforcement_form"> <input type="hidden" name="template_id" id="template_id" value="<?php echo $template_id; ?> " /> <h2> Edit <?php echo convert_number_to_name($notification_level); ?> Warning Email Template </h2> <?php if (!empty($message)) { echo '<div class="message error">' . $message . '</div>'; } ?> <div id="emailTabs" class="tabs subTabs tabsYellow"> <ul class="tabNav clear"> <li> <div class="tabCornerL"></div><a href="#HTML-known" class="tabItem">E-mail 1 Template (for known sellers)</a> </li>
?> <p><?php echo $error_msg; ?> </p> <?php } ?> </div> <?php } ?> <h2> Edit <?php echo convert_number_to_name($template->notification_level); ?> Warning E-mail </h2> <form action="/enforcement/template_settings/<?php echo $template->id; ?> " method="post"> <div class="new-product-row"> <div class="form-group"> <label for="subject">Email Subject:</label> <input name="subject" class="form-control" value="<?php echo set_value('subject', $template->subject); ?>
public function get_history($merchant_name_id) { $this->_response_type('json'); $history = $this->Store->get_violator_notifications_history_by_merchant_name_id($merchant_name_id, $this->store_id); $history_array = array(); foreach ($history as $item) { $item['email_level'] = convert_number_to_name($item['email_level']); $history_array[] = $item; } $this->data = array('data' => $history_array); }