blob: 075f001597f577730e5f9eebff79f8bfa1451efd [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001<div id="innerContainer">
2 <div class="row header-row">
3 <div class="col-xs-1">
4 <a href="#main">
5 <img alt="" src="pic/direct-back.png">
6 </a>
7 </div>
8 <div class="col-xs-11">
9 <div class="form-title">
10 <h1 data-trans='httpshare'></h1>
11 </div>
12 </div>
13 </div>
14 <div class="row">
15 <div class="col-xs-2">
16 <div class="nav_right">
17 <ul>
18 <li><a data-trans="sd" href="#sdcard"></a></li>
19 <li class="active"><a data-trans="httpshare" href="#httpshare"></a></li>
20 </ul>
21 </div>
22 </div>
23 <div class="col-xs-10">
24<div id="httpshare_form">
25 <div class="form-body">
26 <div class="content">
27 <div class="row margin-top-20">
28 <div class="col-xs-9">
29 <label data-trans="sd_path" class="col-xs-2 margin-top-5"></label>
30 <div class="col-xs-5">
31 <input id="sd_path" disabled="disabled" noAction="true" type="text" value="" class="form-control"/>
32 </div>
33
34 </div>
35 <div class="col-xs-3 margin-top-5 push-right">
36 <span id="sd_volumn">
37 <span id="sd_volumn_used"></span>/<span id="sd_volumn_total"></span></span>
38 </div>
39 </div>
40 <div id="fileControlSection" class="margin-top-10 row">
41 <ul class="row">
42 <li id="rootBtnLi" onclick="enterFolder('');" class="cursor-pointer marginleft5">
43 <img src="./pic/returnhome.jpg" class="sdcard_back_img"/>
44 <span data-trans="root"></span>
45 </li>
46 <li id="backBtnLi" onclick="backFolder();" class="cursor-pointer marginleft5">
47 <img src="./pic/return.jpg" class="sdcard_back_img"/>
48 <span data-trans="back"></span>
49 </li>
50 <li id="newFolderBtnLi" onclick="openCreateNewFolderClickHandler();" class="cursor-pointer marginleft5">
51 <img src="./pic/new_folder.jpg" class="hand_cursor_img"/>
52 <span data-trans="new"></span>
53 </li>
54 <li id="createNewFolderLi" style="display: none;">
55 <form id="createNewFolderForm">
56 <div class="col-xs-4 row margin-right-10">
57 <input id="newFolderName" name="newFolderName" maxlength="25" type="text" class="required form-control"/>
58 </div>
59 <input id="createNewFolderBtn" data-trans="create" type="submit" formmethod="post" class="btn btn-primary"/>
60 <input id="cancelCreateNewFolderBtn" data-trans="cancel" onclick="cancelCreateNewFolderClickHandler();" type="button" class="btn btn-primary"/>
61 <div id="createNewFolderErrorLabel" class="colorRed"></div>
62 </form>
63 </li>
64 </ul>
65 </div>
66 <div id="fileListSection">
67 <table style="word-wrap: break-word; word-break: break-all;" class="table table-striped table-hover">
68 <thead>
69 <tr>
70 <th width="40" class="sd_guest_hide_th">
71 <p id="fileList-checkAll" target="fileList_container" class="checkbox checkboxToggle">
72 <input id="checkbox-all" type="checkbox"/>
73 </p>
74 </th>
75 <th width="28"></th>
76 <th data-trans="sd_name" width="170"></th>
77 <th data-trans="sd_rename" class="sd_guest_hide_th"></th>
78 <th data-trans="download"></th>
79 <th data-trans="sd_file_size" ></th>
80 <th data-trans="sd_update_time" width="150"></th>
81 </tr>
82 </thead>
83 <tbody id="fileList_container"></tbody>
84 </table>
85 </div>
86 <div id="fileListButtonSection">
87 <div class="pager ko-grid-pageLinks"></div>
88 <div class="form-buttons">
89 <input id="delete_file_button" data-trans="delete" onclick="deleteBtnClickHandler();" type="button" class="btn btn-primary "/>
90 <input id="go_to_login_button" data-trans="back_to_login" onclick="gotoLogin();" type="button" class="btn btn-primary hide"/>
91 </div>
92 </div>
93 <div id="uploadSection">
94 <iframe id="fileUploadIframe" name="fileUploadIframe" frameborder="0" height="0" scrolling="no" width="0" style="height:0px;width:0px;"></iframe>
95 <form id="fileUploadForm" name="fileUploadForm" action="" enctype="multipart/form-data" method="post" target="fileUploadIframe">
96 <input id="path_SD_CARD_time" name="path_SD_CARD_time" type="hidden" value=""/>
97 <input id="path_SD_CARD_time_unix" name="path_SD_CARD_time_unix" type="hidden" value=""/>
98 <input id="fileField" name="filename" dir="ltr" maxlength="200" type="file"/>
99 <div class="fileUploadDiv">
100 <input id="fileUploadApplyBtn" name="fileUploadApplyBtn" data-trans="upload" onclick="fileUploadSubmitClickHandler();" type="button" class="btn btn-primary margin-left-5 margin-top-2"/>
101 </div>
102 <div class="clear"></div>
103 </form>
104 </div>
105 </div>
106 <div class="form-note">
107 <div class="notes-title">&nbsp;</div>
108 <ul class="notes-content">
109 <li data-trans="note_upload_not_refresh"></li>
110 <li data-trans="note_upload_single_file_2g"></li>
111 <li data-trans="note_upload_filelenth_25"></li>
112 </ul>
113 </div>
114 </div>
115</div>
116 </div>
117 </div>
118</div>
119<script type="text/x-jquery-tmpl" id="sdFileItemTmpl">
120{{each(i, item) data }}
121<tr class="${trClass}">
122 {{if readwrite}}<td align="center"><p class="checkbox"><input type="checkbox" target="fileList-checkAll" value="${fileName}"/></p></td>{{/if}}
123 <td {{if fileType=='folder'}}class="cursor-pointer folderTd" filename='${fileName}'{{/if}}><span class="mini-icon ${fileType==''?'':'icon-'+fileType}"></span></td>
124 <td style="width:170px;" {{if fileType=='folder'}}class="cursor-pointer folderTd" filename='${fileName}'{{/if}}>${fileName}</td>
125 {{if readwrite}}<td align='center'><a href="javascript: void(0)" filename='${fileName}' class="fileRename" data-trans='sd_rename'></a></td>{{/if}}
126 <td align='center'>{{if fileType!='folder'}}<a href="${URLEncode(filePath)}" filelocal="${filePath}" target="_blank" class="mini-icon icon-download"></a>{{/if}}</td>
127 <td align='center'>${fileSize}</td>
128 <td align='center'>${lastUpdateTime}</td>
129</tr>
130{{/each}}
131</script>
132<script type="text/x-jquery-tmpl" id="pagerTmpl">
133{{each(i, item) data.pagers }}
134 {{if isPrev}}
135 {{if pageNum==0}}
136 <a href="javascript:void(0)" class="ko-grid-pager-disabled" data-trans="prev_page" onclick="javascript:void(0)"></a>
137 {{else}}
138 <a href="javascript:void(0)" data-trans="prev_page" onclick="pagerItemClickHandler('${pageNum}')"></a>
139 {{/if}}
140 {{else isDot}}
141 <span>...</span>
142 {{else isNext}}
143 {{if pageNum - 1==data.total}}
144 <a href="javascript:void(0)" data-trans="next_page" onclick="javascript:void(0)" class="ko-grid-pager-disabled"></a>
145 {{else}}
146 <a href="javascript:void(0)" data-trans="next_page" onclick="pagerItemClickHandler('${pageNum}')"></a>
147 {{/if}}
148 {{else}}
149 <a href="javascript:void(0)" onclick="pagerItemClickHandler('${pageNum}')" class="${isActive?'ko-grid-pager-selected':''}">${pageNum}</a>
150 {{/if}}
151{{/each}}
152<div style="width: 170px;" class="input-group margin-left-10">
153 <label data-trans="page" class="input-group-addon"></label>
154 <input id="ko-grid-input-page" type="text" class="form-control">
155 <label data-trans="go" onclick="(function() {var num = $('#ko-grid-input-page').val(); if(/^[0-9]+$/.test(num)&&(parseInt(num)-1) <= ${data.total}&&(parseInt(num)-1) >= 0){pagerItemClickHandler(parseInt(num));}})()" class="input-group-addon cursorhand">
156 </label>
157</div>
158</script>