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/brands/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/symphony-solusi.co.id/public_html/application/views/admin/brands/edit.php
<div class="row">

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

        <p><a href="<?= base_url('admin/brands'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to Client List Page</a></p><br>

        <h4><?= empty($brands->id_brands) ? 'Add a new brand' : 'Edit brand: '

                . $brands->brand; ?></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>Client Name</p>

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



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

        <p>

            <?php

            $data = array(

                'name'        => 'brand_name',

                'value'       => $brands->brand,

                'class'       => 'form-control'

            );

            echo form_input($data); ?>

            <?= form_error('brand_name'); ?></p>

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

</div> <!-- end row -->



<div class="row">

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

        <p>Client Category</p>

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



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

        <p>

            <?php

            $data = array(

                'name'        => 'description',

                'value'       => $brands->description,

                'class'       => 'form-control'

            );

            echo form_input($data); ?>

            <?= form_error('description'); ?></p>

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

</div> <!-- end row -->



<div class="row" style="display:none;">

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

        <p>Client Logo<br>



            <?php if (!empty($brands->logo)) : ?>

                &nbsp;&nbsp;<img style="width:100px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brands->logo; ?>" alt="" />



                <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_logo/' . $brands->id_brands; ?>">Delete</a>

            <?php endif; ?>

        </p>

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



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

        <p><input type="file" name="userfile2" size="20" class="btn btn-default btn-file form-control" />

            <?php

            //get max logo width and height from configuration table

            $this->db->select('brand_logo_width, brand_logo_height')->from('configuration')->where('id_configuration', 1);

            $logo_dimension = $this->db->get()->row();

            ?>

            <span style="font-size:12px; font-style: italic;">Image size must be max of <?= $logo_dimension->brand_logo_width; ?> pixel width. <?= $logo_dimension->brand_logo_height; ?> pixel height, jpg/png, max 200KB</span>

            <span style="color:#F7931E;"><?php echo form_error('userfile2'); ?></span>

            <?php echo $this->session->flashdata('logo_error'); //to display error message 

            ?>

        </p>

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

</div> <!-- end row -->





<div class="row" style="display: none;">

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

        <p>Brand Banner Image<br>

            (shown at each brand page)



            <?php if (!empty($brands->image)) : ?>

                &nbsp;&nbsp;<img style="width:200px; height:auto;" src="<?= base_url() . 'uploads/brand/' . $brands->image; ?>" alt="" />

                <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/brands/delete_image/' . $brands->id_brands; ?>">Delete</a>

            <?php endif; ?>

        </p>

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



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

        <p><input type="file" name="userfile" size="20" class="btn btn-default btn-file form-control" />



            <?php

            //get max image width and height from configuration table

            $this->db->select('brand_image_width, brand_image_height')->from('configuration')->where('id_configuration', 1);

            $image_dimension = $this->db->get()->row();

            ?>



            <span style="font-size:12px; font-style: italic;">Image size must be max of <?= $image_dimension->brand_image_width; ?> pixel width. <?= $image_dimension->brand_image_height; ?> pixel height, jpg or png, max 300KB</span>

            <span style="color:#F7931E;"><?php echo form_error('userfile'); ?></span>

            <?php echo $this->session->flashdata('banner_error'); //to display error message 

            ?>

        </p>

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

</div> <!-- end row -->







<div class="row" style="display: none;">

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

        <p>Banner Link<br>

            (full URL. Eg: http://www.xxx.com/category/running)</p>

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



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

        <p>

            <?php

            $data = array(

                'name'        => 'banner_link',

                'value'       => $brands->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 (must be number only)</p>

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



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

        <p>

            <?php

            $data = array(

                'name'        => 'priority',

                'value'       => $brands->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>Display</p>

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



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

        <p>

            <?php

            $options = array(

                1  => 'Yes',

                0  => 'No'

            );

            echo form_dropdown('status', $options, $brands->status, 'class="form-control"'); ?>

        </p>

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

</div> <!-- end row -->



<div class="row" style="display:none">

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

        <p><strong>SEO (Search Engine Optimization)</strong></p>

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

</div> <!-- end row -->





<div class="row" style="display:none;">

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

        <p>Page Meta Description</p>

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



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

        <p>

            <?php

            $data = array(

                'name'        => 'meta_description',

                'value'       => $brands->meta_description,

                'class'       => 'form-control'

            );

            echo form_input($data); ?>

            <?= form_error('meta_description'); ?></p>

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

</div> <!-- end row -->



<div class="row" style="display:none;">

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

        <p>Page Meta Keywords<br>(separated with comma)</p>

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



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

        <p>

            <?php

            $data = array(

                'name'        => 'meta_keywords',

                'value'       => $brands->meta_keywords,

                'class'       => 'form-control'

            );

            echo form_input($data); ?>

            <?= form_error('meta_keywords'); ?></p>

        <br>



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

</div> <!-- end row -->

<div class="row">

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

    </div>

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

        <p><?= form_submit('submit', 'Update', 'class="btn btn-primary btn-success button-brown"'); ?>

            &nbsp;&nbsp;&nbsp;<?= anchor('admin/brands', 'cancel'); ?></p>

    </div>

</div>

<?= form_close(); ?>

https://t.me/RX1948 - 2025