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/serbaantik.com/public_html/application/views/admin/history/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/serbaantik.com/public_html/application/views/admin/history/edit.php
<div class="row">
    <div class="col-sm-12">
        <p><a href="<?= base_url('admin/history'); ?>"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back to History List Page</a></p><br>
        <h4><?= empty($history->id_history) ? 'Add a new history' : 'Edit history for ' 
    	. ucwords($history->year); ?></h4> 
        <?= $this->session->flashdata('success'); //to display success message ?> 
        <?= $this->session->flashdata('result'); //to display result message ?>
    </div> 
</div>  

<?= form_open_multipart(); ?>  

<div class="row"> 
    <div class="col-sm-3">
        <p>Year</p>
    </div>

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

<div class="row" style="display:none">
    <div class="col-sm-3">
        <p>Image<br>
        <?php if (!empty($history->image)) : ?>
            &nbsp;&nbsp;<img style="width:100px; height:auto;" src="<?= base_url() . 'uploads/page/' . $history->image; ?>"  alt="" />
            <i class="fa fa fa-trash-o" aria-hidden="true"></i> <a href="<?= base_url() . 'admin/history/delete_customer_photo/' . $history->id_history; ?>">Delete</a>
          <?php endif; ?>   
        </p>
    </div>

     <div class="col-sm-9">
        <p><input type="file" name="userfile" size="20" class="btn btn-default btn-file form-control" /> 
         <span style="font-size:12px; font-style: italic;">Image size must be max of 1000 pixel width. 600 pixel height, jpg/png/jpeg/webp, max 500KB</span>
        <span style="color:#F7931E;"><?php echo form_error('userfile'); ?></span>
        <?php echo $this->session->flashdata('error'); //to display error message ?></p> 
    </div> 
</div>   

<div class="row">
    <div class="col-sm-3">
        <p>Content</p>
    </div>
     <div class="col-sm-9">
        <?php echo form_textarea('content', set_value('content', 
        $history->content, FALSE)); ?>
        <?php echo form_error('content'); ?>
    </div>
</div>   

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

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

<div class="row">
    <div class="col-sm-3">
        <p>history Active ?</p>
    </div>

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

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

     <div class="col-sm-9">
       <p><?= form_submit('submit', 'Update', 'class="btn btn-success"'); ?>
            &nbsp;&nbsp;&nbsp;<?= anchor('admin/history', 'cancel'); ?></p> 
    </div>
</div>   

<?= form_close(); ?>

https://t.me/RX1948 - 2025