X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/backend/func/form_elements
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
backend
/
func
/
form_elements
/
📁
..
📄
analytics.php
(920 B)
📄
checkbox.php
(1.02 KB)
📄
color.php
(1.71 KB)
📄
date.php
(455 B)
📄
date1.php
(669 B)
📄
datetime.php
(425 B)
📄
datetime_show.php
(353 B)
📄
end_title.php
(68 B)
📄
event_coupon.php
(206 B)
📄
event_medals.php
(206 B)
📄
event_member.php
(534 B)
📄
event_ques.php
(200 B)
📄
event_question.php
(200 B)
📄
file.php
(849 B)
📄
fileinput.php
(2.43 KB)
📄
hidden.php
(88 B)
📄
html.php
(422 B)
📄
image.php
(1.67 KB)
📄
image_ajax.php
(3.41 KB)
📄
image_ajax_fileinput.php
(3.41 KB)
📄
image_resize.php
(1.71 KB)
📄
image_show.php
(1.74 KB)
📄
list.php
(1.06 KB)
📄
more_title.php
(300 B)
📄
password.php
(427 B)
📄
radio.php
(687 B)
📄
radio1.php
(507 B)
📄
search_item.php
(3.68 KB)
📄
search_item2.php
(4.09 KB)
📄
search_item2_B.php
(4.13 KB)
📄
search_item2_discount.php
(4.09 KB)
📄
search_item_B.php
(3.53 KB)
📄
search_item_discount.php
(3.98 KB)
📄
select.php
(618 B)
📄
select1.php
(552 B)
📄
select_TWzipcode.php
(1.16 KB)
📄
select_TWzipcode_all.php
(1.31 KB)
📄
select_TWzipcode_county.php
(986 B)
📄
select_display.php
(547 B)
📄
select_display_first.php
(569 B)
📄
select_show.php
(530 B)
📄
show.php
(199 B)
📄
show1.php
(245 B)
📄
store_list.php
(203 B)
📄
table_row.php
(4.31 KB)
📄
table_row_adv.php
(4.74 KB)
📄
table_row_color.php
(7.34 KB)
📄
tag.php
(979 B)
📄
text.php
(423 B)
📄
text1.php
(444 B)
📄
text_display.php
(452 B)
📄
text_display_first.php
(474 B)
📄
text_show.php
(317 B)
📄
textarea.php
(534 B)
📄
textarea_show.php
(376 B)
Editing: fileinput.php
<link href="js/kartik-v-bootstrap-fileinput/css/fileinput.css" media="all" rel="stylesheet" type="text/css"/> <link href="js/kartik-v-bootstrap-fileinput/themes/explorer/theme.css" media="all" rel="stylesheet" type="text/css"/> <script src="js/kartik-v-bootstrap-fileinput/plugins/sortable.js" type="text/javascript"></script> <script src="js/kartik-v-bootstrap-fileinput/fileinput.js" type="text/javascript"></script> <script src="js/kartik-v-bootstrap-fileinput/themes/explorer/theme.js" type="text/javascript"></script> <script src="js/kartik-v-bootstrap-fileinput/locales/zh-TW.js" type="text/javascript"></script> <?php foreach ($vv['value'] as $value) { $initialPreview1 .= "'"; // $initialPreview1 .= '<img src="' . __WEB_IMAGES_FOLDER . '/' . $value['img'] . '" class="file-preview-image kv-preview-data">'; $initialPreview1 .= 'http://'.$_SERVER['HTTP_HOST'].'/webimages/' . $value['img']; // $initialPreview1 .= __SERVER_IMAGES_FOLDER .DIRECTORY_SEPARATOR. $value['img']; $initialPreview1 .= "',"; } ?> <script> $(document).ready(function () { $("#<?=$vv['name']?>").fileinput({ uploadUrl: "../webimages/", uploadAsync: false, language: "zh-TW", showCancel: false, showRemove: false, showUpload: false, autoReplace: false, showCaption: true, initialPreviewFileType: 'image', overwriteInitial: false, // 'theme': 'explorer', allowedFileExtensions: ["jpg", "png", "gif"], maxFileCount: '<?=$vv['maxFileCount']?>', maxImageWidth: '<?=$vv['maxImageWidth']?>', maxImageHeight: '<?=$vv['maxImageHeight']?>', initialPreview: [ <?=$initialPreview1?> ], initialPreviewShowDelete: true, initialPreviewAsData: true }); /* $("#test-upload").on('fileloaded', function(event, file, previewId, index) { alert('i = ' + index + ', id = ' + previewId + ', file = ' + file.name); }); */ }); </script> <?php echo ' <div class="form-group"> <label class="control-label col-sm-2">' . ($vv['title']) . '</label> <div class="col-sm-10"> <input id="'. ($vv['name']) .'" name="'. ($vv['name']) .'[]" type="file" multiple=true class="file-loading" accept="image/*"> <p class="help-block">' . $vv['help'] . '</p> </div> </div> '; ?>
Upload File
Create Folder