<div id="middleContent">            
    <?php 
    //$mk = mktime(0, 0, 0, date('m'), date('d'), date('Y')-581);
    //echo date('Y')-581; ?>
    <div class="block">
        <div class="title">تعديل صورتي الشحصية</div>
        <div class="content">
            <?php $user_id = $this->session->userdata('uid');  //echo (isset($this->form_validation->error_string)) ? $this->form_validation->error_string() : "" ; ?>
            <?= form_open_multipart(base_url().'users/userphoto/edit_userphoto/'.$user_id);?>
<!--            <form action="<?php echo base_url() ?>users/userphoto/edit_userphoto/<?= $user_id; ?>" method="post" enctype="multipart/form-data">-->
                <fieldset class="form">
                    <legend>&nbsp;</legend><br>
                              
                    <label for="image_file_2" class="label">صورة شخصية : يجب ان تكون امتدادها gif / jpg / png </label>
                    <input name="image_file_2" type="file" class="textBox" id="image_file_2" />                    
                     <?php 
                     if(isset($_POST['submit'])){
                        $this->upload->display_errors("<span class='incorrect'>","</span>"); 
                     }
                     ?>   
                    <br />
                    <input id="submit" type="submit" name="submit" value="تسجيل" class="button sml" />
                </fieldset>
            </form>
        </div>
    </div>           
</div>
                   