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: image_ajax_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 ?> <script> $(document).ready(function () { $("#<?=$vv['name']?>").fileinput({ language: "zh-TW", showCancel: false, showRemove: false, showUpload: false, showCaption: false, // 'theme': 'explorer', allowedFileExtensions: ["jpg", "png", "gif","jpeg"], maxFileCount: '<?=$vv['maxFileCount']?>', maxImageWidth: '<?=$vv['maxImageWidth']?>', maxImageHeight: '<?=$vv['maxImageHeight']?>', }); }); </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" onchange="readURL(this);" multiple class="file-loading" accept="image/*" data-show-preview="false"> '; if ($vv['value'] != '') { // $size = @filesize(__SERVER_IMAGES_FOLDER.'/'.$vv['value']); $data = getimagesize(__SERVER_IMAGES_FOLDER . '/' . $vv['value']); // print_r($data); // exit; //print_r($size); //exit; if ($size > 300000) { $q = 0.5; } else { $q = 1; } $q = 1; /* echo ' <img src="'.__SERVER_WEB_IMAGEG_PATH.'/'.$vv['value'].'" class="img-thumbnail">'; */ /* if($vv['w']!=''){ $andPara .= '&w='.$vv['w']; } if($vv['h']!=''){ $andPara .= '&h='.$vv['h']; } */ if ($data[0] / 200 > 1) { $andPara .= '&w=' . ($data[0] / (ceil($data[0] / 200))); $andPara .= '&h=' . ($data[1] / (ceil($data[0] / 200))); $tmp = 'width=' . ($data[0] / (ceil($data[0] / 200))); } else { $andPara .= '&w=' . $data[0]; $andPara .= '&h=' . $data[1]; $tmp = 'width=' . $data[0]; } //echo '<label><a href="'.__SERVER_WEB_IMAGEG_PATH.'/'.$vv['value'].'" target="_blank" class="btn btn-warning">view</a></label><br />'; //echo '<img src="/webimages/timthumb.php?src='.__SERVER_WEB_IMAGEG_PATH.'/'.$vv['value'].'&q='.$q.'&size='.$size.$andPara.'&zc=0" class="img-thumbnail" /><br />'; // echo '<img src="/backend/webimages/timthumb.php?src='.__WEB_IMAGES_FOLDER.'/'.$vv['value'].'&size='.$size.$andPara.'&zc=0" class="img-thumbnail" /><br />'; echo '<img id="' . $vv['name'] . '_img" src="' . __WEB_IMAGES_FOLDER . '/' . $vv['value'] . '" ' . $tmp . ' class="img-thumbnail" />'; if ($vv['delete']) { echo '<label> <input type="checkbox" value="true" name="del_' . $vv['name'] . '"> <span class="glyphicon glyphicon-trash"></span></label>'; } } else { echo '<img id="' . $vv['name'] . '_img" src="#" class="img-thumbnail" style="display: none;">'; } echo ' <p class="help-block">' . $vv['help'] . '</p> <p class="text-warning" id="' . $vv['name'] . '_warning"></p> </div> </div> '; ?>
Upload File
Create Folder