
<div class="container-fluid" style="background:#f8f8f8;">
    <div class="row">
        <div class="col-sm-5 col-md-4">

            <form action="<?php echo site_url('thirdparty/form/index/create_form'); ?>" method="post" >
                <p class="btn-lg col-xs-24"></p>
                <p>
                <div class="input-group">
                    <span class="input-group-btn">
                        <button class="btn btn-default" type="button">类型</button>
                    </span>
                    <select class="form-control" name="file_type" id="file_type">
                       <option value="contactus">ContactUs</option>
                        <option value="tailormade">TailorMade</option>
                        <option value="question">Question</option>
                    </select>
                </div>
                </p>
                <p class="btn-sm col-xs-24"></p>
                <p><button type="button" class="btn btn-primary btn-block" onclick="location.href = '<?php echo site_url("thirdparty/form/index/create_form/0"); ?>/' + $('#file_type').val();">新建表单→</button></p>
            </form>

            <p class="btn-lg col-xs-24"></p>
            <h4><a href="<?php echo site_url('thirdparty/form'); ?>"><strong>表单列表</strong></a></h4>
            <div class="center-col" style="background:#fff;border-right: 1px solid #ddd;">
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>表单名</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($form_list as $key => $v) { ?>
                            <tr>
                                <td><?php echo $key + 1; ?></td>
                                <?php $admin_info = $this->session->userdata('session_admin'); ?>
                                <td><a href="<?php echo site_url('thirdparty/form/index/create_form/' . $v->form_sn); ?>"><?php echo $v->form_name; ?></a></td>

                                <td>

                                </td>
                            </tr> 
                        <?php } ?>
                    </tbody>
                </table>
            </div>    

        </div>

        <div class="col-sm-19 col-md-20 nopadding">




        </div>


    </div>
</div>


