示例#1
0
文件: car_add.php 项目: ram-1501/rs
    

    <div class="inner_cont">
    	<h1 style="margin-top:0px;">Your car details</h1>
        

        <form action="" method="post" >

            <div class="basic-grey">
                <div class="left">
                    <label>Make</label>
                </div>
                <div class="right">
                    <?php 
$make_id = set_value('make_id', $car['make_id']);
echo form_dropdown('make_id', get_makes(), $make_id);
?>
                    <?php 
echo form_error('make_id', '<span class="error_text">', '</span>');
?>
                </div>
            </div>

            <div class="basic-grey">
                <div class="left">
                    <label>Model</label>
                </div>
                <div class="right">
                    <?php 
echo form_dropdown('model_id', get_models($make_id, false), set_value('model_id', $car['model_id']));
?>
示例#2
0
文件: car_list.php 项目: ram-1501/rs
echo $smenu;
?>
    </div>

    

    <div class="inner_cont">
    	<h1 style="margin-top:0px;">Your car details</h1>
       
        <?php 
if (count($cars)) {
    ?>
        <table>
            <tbody>
                <?php 
    $makes = get_makes();
    $models = get_models();
    $types = get_types();
    foreach ($cars as $car) {
        $img = $car['img_name'] ? 'assets/uploads/cars/' . $car['img_name'] : 'assets/frontend/images/car.png';
        $btnText = $car['img_name'] ? 'Click here to Change Photo' : 'Upload Photo';
        $details = '<p>';
        $details .= $makes[$car['make_id']] . ' ' . $models[$car['make_id']][$car['model_id']];
        $details .= '<br/>' . $car['seat_count'] . ' seats';
        $details .= '<br/><a href="' . site_url('dashboard/profile/car/edit/' . $car['id']) . '"><img src="' . include_img_path() . '/edit.png" width="15px"></a>';
        $details .= '&nbsp;&nbsp;&nbsp;<a href="' . site_url('dashboard/profile/car/delete/' . $car['id']) . '"><img src="' . include_img_path() . '/del.png" width="15px"></a>';
        echo '<tr>';
        echo '<td> <img width="120px" id="car-' . $car['id'] . '" src="' . base_url($img) . '" /></td>';
        echo '<td>' . $details . '</td>';
        echo '</tr>';
        echo '<tr>';