| Server IP : 103.48.194.25 / Your IP : 216.73.217.98 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/cannguyenlong.com-bk/public_html/webadmin/views/editor/ |
Upload File : |
<script type="text/javascript">
function insert(file){
$("#hinhanh", top.document).val(file);
windowClose();
}
</script>
<?$seg2 = $this->uri->segment(2); ?>
<div class="media-upload-header">
<ul id="menu">
<li><a href="<?=base_url()?>editor/index" <?if($seg2=='index'){echo ' class="current"';}?>>Thư viện</a></li>
<li><a href="<?=base_url()?>editor/upload" <?if($seg2=='upload'){echo ' class="current"';}?>>Upload FIle</a></li>
</ul>
</div>
<div class="form_upload">
<div align="center" style="padding-top: 20px;">
<?php
echo form_open_multipart('editor/upload');
?>
Chọn File Upload
<input type="file" name="filedata">
<input type="hidden" name="id" value="1">
<input type="submit" name="upload" value="Upload">
<? echo form_close();
?>
</div>
<?if(isset($file)){?>
<table class="site">
<tr>
<td><img src="<?=base_url_site().$file?>" height="50" alt=""></td>
<td style="width: 70px"><a id="closelink" href="#" onclick="insert('<?=base_url_site().$file?>');"><b>Chọn File</b></a></td>
</tr>
</table>
<?}?>
</div>