File: application/views/emailTemplates.php

Recommend this page to a friend!
  Classes of Kishor Mali  >  PHP User Feedback System  >  application/views/emailTemplates.php  >  Download  
File: application/views/emailTemplates.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP User Feedback System
Application to record feedback from customers
Author: By
Last change:
Date: 4 months ago
Size: 3,384 bytes
 

Contents

Class file image Download
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Email Templates
        <small>Edit email templates</small>
      </h1>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
              <div class="box">
                <div class="box-header">
                    <h3 class="box-title">Template List</h3>
                    <div class="box-tools">
                        <form action="<?php echo base_url() ?>emailTemplates" method="POST" id="searchList">
                            <div class="input-group">
                              <input type="text" name="searchText" value="<?php echo $searchText; ?>" class="form-control input-sm pull-right" style="width: 150px;" placeholder="Search"/>
                              <div class="input-group-btn">
                                <button class="btn btn-sm btn-default searchList"><i class="fa fa-search"></i></button>
                              </div>
                            </div>
                        </form>
                    </div>
                </div><!-- /.box-header -->
                <div class="box-body table-responsive no-padding">
                  <table class="table table-hover">
                    <tr>
                      <th>Id</th>
                      <th>Company Name</th>
                      <th>Template Title</th>
                      <th>Template Type</th>
                      <th class="alignCenter">Actions</th>
                    </tr>
                    <?php
                   
if(!empty($rawRecords))
                    {
                        foreach(
$rawRecords as $record)
                        {
                   
?>
<tr>
                      <td><?php echo $record->temp_id ?></td>
                      <td><?php echo $record->comp_name ?></td>
                      <td>
                          <a href="<?php echo base_url()."templateWrapper/".$record->temp_id; ?>" target="_blank">
                              <?php echo $record->temp_name ?>
</a>
                      </td>
                      <td><?php echo $record->temp_type ?></td>
                      <td class="alignCenter">
                          <a href="<?php echo base_url().'editTemplate/'.$record->temp_id; ?>"><i class="fa fa-pencil"></i></a>
                      </td>
                    </tr>
                    <?php
                       
}
                    }
                   
?>
</table>
                 
                </div><!-- /.box-body -->
                <div class="box-footer clearfix">
                    <?php echo $this->pagination->create_links(); ?>
</div>
              </div><!-- /.box -->
            </div>
        </div>
    </section>
</div>
<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery('ul.pagination li a').click(function (e) {
            e.preventDefault();
            var link = jQuery(this).get(0).href;
            var value = link.substring(link.lastIndexOf('/') + 1);
            jQuery("#searchList").attr("action", baseURL + "emailTemplates/" + value);
            jQuery("#searchList").submit();
        });
    });
</script>


For more information send a message to info at phpclasses dot org.