示例#1
0
文件: campaign.php 项目: Entellus/red
 public function do_upload($file)
 {
     $config['upload_path'] = './media/uploads/campaign/';
     $config['allowed_types'] = '*';
     $config['max_size'] = '5000';
     $this->upload->initialize($config);
     if ($this->upload->do_upload($file)) {
         $data = $this->upload->data();
         $config2 = array('source_image' => $data['full_path'], 'new_image' => './media/uploads/campaign/thumbs/', 'maintain_ratio' => true, 'width' => 150, 'height' => 100);
         $this->load->library('image_lib', $config2);
         if (!$this->image_lib->resize()) {
             __ed($this->image_lib->display_errors());
         }
         return $data['file_name'];
     } else {
         return '';
     }
 }
示例#2
0
?>
            <table class="table table-bordered table-striped">
                <tbody>
                    <?php 
if ($view_keys) {
    ?>
                        <?php 
    foreach ($view_keys as $key => $value) {
        ?>
                            <tr>
                                <th><?php 
        __e($value);
        ?>
</th>
                                <td><?php 
        __ed($key, $view_data);
        ?>
</td>
                            </tr>
                        <?php 
    }
    ?>
                    <?php 
}
?>
                </tbody>
            </table>
        </div>
    </div><!--/span-->

</div>
                                    <tr id="<?php 
        __e($key);
        ?>
" class="<?php 
        odd_even(++$i);
        ?>
">
                                        <th><?php 
        __e($val);
        ?>
</th>
                                        <td class="center" id="<?php 
        __e($object . '-' . $i . '-' . $key);
        ?>
"><?php 
        __ed($key, $object_data);
        ?>
</td>
                                    </tr>
                                <?php 
    }
    ?>
                            <?php 
}
?>
                        </tbody>
                    </table> 
                </form>
            </div>
        </div>
    </div><!--/span-->
示例#4
0
                        </tr>
                    </thead>
                    <tbody>
                        <?php 
if (isset($special_types)) {
    ?>
                            <?php 
    foreach ($special_types as $splt) {
        ?>
                                <tr>
                                    <td><?php 
        __ed('id', $splt);
        ?>
</td>
                                    <td><?php 
        __ed('name', $splt);
        ?>
</td>
                                </tr>
                            <?php 
    }
    ?>
                        <?php 
}
?>
                    </tbody>
                </table> 
            </div>
        </div>
    </div><!--/span-->
</div><!--/row-->
示例#5
0
?>
            <table class="table table-bordered table-striped">
                <tbody>
                    <?php 
if ($view_keys) {
    ?>
                        <?php 
    foreach ($view_keys as $key => $value) {
        ?>
                            <tr>
                                <th><?php 
        __e($value);
        ?>
</th>
                                <td><?php 
        __ed($key, $agency);
        ?>
</td>
                            </tr>
                        <?php 
    }
    ?>
                    <?php 
}
?>
                </tbody>
            </table>
        </div>
    </div><!--/span-->

</div>
示例#6
0
</td>
                    </tr>
                    <tr>
                        <th>Type</th>
                        <td><?php 
__ed('special_type', $vehicle);
?>
</td>
                    </tr>
                    <tr>
                        <th>Tonnage</th>
                        <td><?php 
__ed('capacity_text', $vehicle);
?>
</td>
                    </tr>
                    <tr>
                        <th>Created on</th>
                        <td><?php 
__ed('created_on', $vehicle);
?>
</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div><!--/span-->

</div>

示例#7
0
        ?>
                        <tr id="<?php 
        __e("list-{$object}-{$id}");
        ?>
" class="<?php 
        odd_even($k + 1);
        ?>
 ">
                            <?php 
        foreach ($list_headers as $key => $val) {
            ?>
                                <td class="center" id="<?php 
            __e($object . '-' . $id . '-' . $key);
            ?>
"><?php 
            __ed($key, $list_item);
            ?>
</td>
                            <?php 
        }
        ?>
                        </tr>
                    <?php 
    }
    ?>
                <?php 
} else {
    ?>
                    <tr class="odd" >
                        <td colspan="<?php 
    echo count($list_headers) + 1;
示例#8
0
</td>
                    </tr>
                    <tr>
                        <th>Email</th>
                        <td><?php 
__ed('email_id', $user);
?>
</td>
                    </tr>
                    <tr>
                        <th>Status</th>
                        <td><?php 
__ed('status', $user);
?>
</td>
                    </tr>
                    <tr>
                        <th>Created On</th>
                        <td><?php 
__ed('created_on', $user);
?>
</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div><!--/span-->

</div>

示例#9
0
foreach ($list_headers as $key => $val) {
    ?>
                                <tr id="<?php 
    __e($key);
    ?>
" class="<?php 
    odd_even(++$i);
    ?>
">
                                    <th><?php 
    __e($val);
    ?>
</th>
                                    <td class="center" id="<?php 
    __e($object . '-' . $i . '-' . $key);
    ?>
"><?php 
    __ed($key, $rate_card);
    ?>
</td>
                                </tr>
                            <?php 
}
?>
                        </tbody>
                    </table> 
                </form>
            </div>
        </div>
    </div><!--/span-->
</div><!--/row-->
示例#10
0
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table class="table  table-striped table-bordered bootstrap-datatable">
                                <tr>
                                    <td>Estimated Distance</td>
                                    <td><?php 
__ed('estimated_distance', $booking);
?>
 KM</td>
                                </tr>
                                <tr>
                                    <td>Estimated cost</td>
                                    <td>Rs <?php 
__ed('estimated_cost', $booking);
?>
</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<form action="<?php 
__e(base_url('assign_booking/assign_to_booking'));
?>
" method="post" >