https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/symphony-solusi.co.id/public_html/application/views/admin/home_slideshow/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/symphony-solusi.co.id/public_html/application/views/admin/home_slideshow/edit.php
<div class="row">
    <div class="col-sm-12">
        <p><a href="<?= base_url('admin/home_slideshow'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Slideshow List</a></p><br>
        <h4><?= empty($home_slideshow->id_home_slideshow) ? 'Add a new home slideshow' : 'Edit home slideshow: ' . $home_slideshow->title; ?></h4>
        <?= $this->session->flashdata('success'); //to display success message 
        ?>
        <?= $this->session->flashdata('result'); //to display result message 
        ?>
    </div><!-- end class="col-sm-12" -->
</div> <!-- end row -->

<?= form_open_multipart(); ?>

<div class="row">
    <div class="col-sm-3">
        <p>Slideshow Title</p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <div class="tabbable">

            <ul class="nav nav-tabs">
                <li class="active"><a href="#slideshow_id" data-toggle="tab">Indonesian</a></li>
                <li><a href="#slideshow_en" data-toggle="tab">English</a></li>
            </ul>

            <div class="tab-content">

                <div class="tab-pane active" id="slideshow_id">
                    <p>
                        <?php
                        $data = array(
                            'name'        => 'title',
                            'value'       => $home_slideshow->title,
                            'class'       => 'form-control'
                        );
                        echo form_input($data); ?>
                        <?= form_error('title'); ?></p>
                </div>

                <div class="tab-pane" id="slideshow_en">
                    <p>
                        <?php
                        $data = array(
                            'name'        => 'title_en',
                            'value'       => $home_slideshow->title_en,
                            'class'       => 'form-control'
                        );
                        echo form_input($data); ?>
                        <?= form_error('title_en'); ?></p>
                </div>
            </div>

        </div><!-- end tabbable -->

    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->


<div class="row">
    <div class="col-sm-3">
        <p>Slideshow Image
            <?php if (!empty($home_slideshow->image)) : ?>
                &nbsp;&nbsp;<img style="width:150px; height:auto;" src="<?= base_url() . 'uploads/banners/' . $home_slideshow->image; ?>" alt="" />
                <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/home_slideshow/delete_image/' . $home_slideshow->id_home_slideshow . '/image'; ?>">Delete</a>
            <?php endif; ?>
        </p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <input type="file" name="image1" size="20" class="form-control" /><br>
        <?php
        //get banner dimensioon
        $this->db->select('home_slideshow_width, home_slideshow_height')->from('configuration')->where('id_configuration', 1);
        $home_slideshow_dimension = $this->db->get()->row();
        ?>
        <span style="font-size:12px; font-style: italic;">Image size must be <?= $home_slideshow_dimension->home_slideshow_width; ?> pixel width. <?= $home_slideshow_dimension->home_slideshow_height; ?> pixel height, jpg/png, max 1MB</span>
        <span style="color:#F7931E;"><?php echo form_error('image1'); ?></span>
        <?php echo $this->session->flashdata('error1'); //to display error message 
        ?>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->

<div class="row" style="display: none;">
    <div class="col-sm-3">
        <p>Slideshow Type ?</p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <?php
        $options = array(
            'homepage'  => 'Homepage',
            'client'    => 'Client',
        );
        echo form_dropdown('slideshow_type', $options, $home_slideshow->slideshow_type, 'class="form-control"');
        ?>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->


<div class="row" style="display: none;">
    <div class="col-sm-3">
        <p>Slideshow Image (MOBILE)
            <?php if (!empty($home_slideshow->image2)) : ?>
                &nbsp;&nbsp;<img style="width:150px; height:auto;" src="<?= base_url() . 'uploads/banners/' . $home_slideshow->image2; ?>" alt="" />
                <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/home_slideshow/delete_image2/' . $home_slideshow->id_home_slideshow . '/image'; ?>">Delete</a>
            <?php endif; ?>
        </p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <input type="file" name="image2" size="20" class="form-control" /><br>

        <span style="font-size:12px; font-style: italic;">Image size must be 720 pixel width. 360 pixel height, jpg/png, max 1MB</span>
        <span style="color:#F7931E;"><?php echo form_error('image2'); ?></span>
        <?php echo $this->session->flashdata('error2'); //to display error message 
        ?>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->

<div class="row">
    <div class="col-sm-3">
        <p>Text Content (Leave blank if no text)</p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">



        <div class="tabbable">

            <ul class="nav nav-tabs">
                <li class="active"><a href="#text_id" data-toggle="tab">Indonesian</a></li>
                <li><a href="#text_en" data-toggle="tab">English</a></li>
            </ul>

            <div class="tab-content">

                <div class="tab-pane active" id="text_id">
                    <?php $data = array(
                        'name'        => 'text_content',
                        'class'       => 'form-control',
                        'value'       => $home_slideshow->text_content,
                    );
                    ?>
                    <p><?php echo form_textarea($data); ?>
                        <?php echo form_error('text_content'); ?></p>
                </div>

                <div class="tab-pane" id="text_en">
                    <?php $data = array(
                        'name'        => 'text_content_en',
                        'class'       => 'form-control',
                        'value'       => $home_slideshow->text_content_en,
                    );
                    ?>
                    <p><?php echo form_textarea($data); ?>
                        <?php echo form_error('text_content_en'); ?></p>
                </div>
            </div>

        </div>

    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->

<div class="row">
    <div class="col-sm-3">
        <p>Banner Link</p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <p>
            <?php
            $data = array(
                'name'        => 'banner_link',
                'value'       => $home_slideshow->banner_link,
                'class'       => 'form-control'
            );
            echo form_input($data); ?>
            <?= form_error('banner_link'); ?></p>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->

<div class="row">
    <div class="col-sm-3">
        <p>Ordering (number only)</p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <p>
            <?php
            $data = array(
                'name'        => 'priority',
                'value'       => $home_slideshow->priority,
                'class'       => 'form-control'
            );
            echo form_input($data); ?>
            <?= form_error('priority'); ?></p>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->

<div class="row">
    <div class="col-sm-3">
        <p>Slideshow Active ?</p>
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <?php
        $options = array(
            1  => 'Yes',
            0    => 'No'
        );
        echo form_dropdown('status', $options, $home_slideshow->status, 'class="form-control"');
        ?>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->

<div class="row">
    <div class="col-sm-3">
    </div><!-- end class="col-sm-3" -->

    <div class="col-sm-9">
        <?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?>
        &nbsp;&nbsp;&nbsp;<?= anchor('admin/home_slideshow', 'cancel'); ?>
    </div><!-- end class="col-sm-9" -->
</div> <!-- end row -->

<?= form_close(); ?>

https://t.me/RX1948 - 2025