      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Channellimo
            <small>Preview</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">Partnership</li>
          </ol>
        </section>
        
        <section class="content">
           <div class="box">
             <div class="box-header">
               <h3 class="box-title"><a href="<?php echo site_url("admin/partnership/add");?>">ADD Partnership</a></h3>
             </div><!-- /.box-header -->
             <div class="box-body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                      <tr>
                      	<th>ID</th>
                        <th></th>
                        <th></th>
                        <th>Code</th>
                        <th>Name</th>
                        <th>Remark</th>
                        <th>Status</th>
                        <th>Createby</th>
                        <th>Create date</th>
                      </tr>
                    </thead>
                    <tbody>
                    <?php 
                    $i=1;
                    foreach($result as $v)
                    {
                      if($v['remark']==""){
                        $remark = "";	
                      }else{
                        $remark =  character_limiter($v['remark'], 50);
                      }
                      
                      if($v['status']=="1")
                      {
                        $authorize="Active";
                      }elseif($v['status']=="0"){
                        $authorize="Not Active";
                      }else{
                        $authorize="Null";
                      };
                      
                      echo'
                      <tr>
                        <td>'.$i.'</td>
                        <td><a href="'.site_url("admin/partnership/edit/".$v['par_id']."").'"><i class="fa fa-edit"></i>Edit</a></td>
                        <td><a href="'.site_url("admin/partnership/delete/".$v['par_id']."").'" class="confirmation"><i class="fa fa-remove"></i>Delete</a></td>
                        <td>'.$v['par_code'].'</td>
                        <td><a href="'.site_url("admin/partnership/detail/".$v['par_id']."").'">'.$v['par_name'].'</a></td>
                        <td>'.$remark.'</td>
                        <td>'.$authorize.'</td>
                        <td>'.$v['fullname'].'</td>
                        <td>'.$v['mydate'].'</td>
                      </tr>
                      ';
                      $i++;
                    }
                    ?>
                    </tbody>
                  </table>
                </div><!-- /.box-body -->
             </div><!-- /.box -->
        </section>
       </div>
