更改主视图位置编码器


Change main view position codeigniter

我有一些问题的位置离开我的表

在这里你可以看到现在的样子:

http://postimg.org/image/auv0lum57/

My controller:

?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Manage_products extends CI_Controller {
public function __construct()
{
    parent::__construct();

    $this->load->model('Products_model');
    $this->load->library('form_validation');
}
public function index()
{
    session_start();
    $this->data['products'] = $this->Products_model->get_all();
    $this->data['title'] = 'Product Management';
    $this->data['message'] = $this->session->flashdata('message');
        $this->load->view('main_view', $this->data);
    $this->load->view('manage_products', $this->data);
}  

查看manage_products产品表,td, th{边框:1px纯绿色;}th{背景颜色:绿色;颜色:白色;}

        #infoMessage p{
            padding: .8em;
            margin-bottom: 1em;
            border: 2px solid #ddd;
            background: #FFF6BF;
            color: #817134;
            border-color: #FFD324;
            text-align: center;
        }
        </style>
        </head>
        <body>
        <table width="700" border="0" align="center">
            <tr>
                <td><h2>Parduotuvės </h2></td>
            </tr>
            <tr>
                <td><div id="infoMessage"><?php echo $message;?></div></td>
            </tr>
            <tr>
                <td><input name="New" type="button" value="Pridėti naują" onclick="window.location='product/add'" /></td>
            </tr>
        </table>
        <form name="frmproduct" method="post">
            <input type="hidden" name="rid" />
            <input type="hidden" name="command" />
            <table width="700" align="center">
                <tr>
                    <th width="150"><strong>Parduotuvės pavadinimas</strong></th>
                    <th><strong>Prekės identifikatorius</strong></th>
                    <th><strong>Nuoroda</strong></th>
                    <th><strong>Redaguoti</strong></th>
                    <th><strong>Ištrinti</strong></th>
                </tr>
                <?php
                foreach ($products as $product){
                    $product_id = $product['id'];
                ?>
                    <tr>
                        <td><?php echo $product['pavadinimas'] ?></td>
                        <td><?php echo $product['prekesid'] ?></td>
                        <td><?php echo $product['linkas'] ?></td>
                        <td><a href='product/edit/<?php echo $product_id ?>'>Redaguoti</a></td>
                        <td>
                            <?php 
                                echo anchor('product/delete/'.$product_id, 'Delete', array('onClick' => "return confirm('Ar tikrai norite ištrinti?')"));
                            ?>
                        </td>
                    </tr>
                <?php
                }
                ?>
            </table>
        </form>
        </body>
        </html>

我认为问题出在22行。我必须加载main_view,但我的表必须在main_view中,而不是在底部。如何解决这个问题?

我想我理解的是正确的,试着像

返回$this->load->view('name', null, true)或$this->load->view('name', $data, true)

可以尝试使用null或true,返回表