本文整理匯總了PHP中Ftp::printForm方法的典型用法代碼示例。如果您正苦於以下問題:PHP Ftp::printForm方法的具體用法?PHP Ftp::printForm怎麽用?PHP Ftp::printForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Ftp
的用法示例。
在下文中一共展示了Ftp::printForm方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ajaxUpload
<h4>Upload Your Upgrade/Update</h4>
<table class="table table-striped table-bordered responsive">
<tbody>
<tr>
<td>Zip File</td>
<td style='width:70%'><a id='file' class='red' data-name='file' data-type='file' data-mode='inline' data-validator='notNull'><input id='fileinput' type='file' class='file' multiple=true data-show-preview='false' data-show-upload='false'> </a></td>
<td class='center-text'><a style='font-size:1.5em' data-content='Browse to the zip file you have downloaded either for update, or Pro upgrade. Once selected, you will be asked to confirm the update, and the rest will be taken care of.' data-help='' data-toggle='popover' data-placement='left' data-trigger='hover' title='Your Digital Product' ><i class='glyphicon glyphicon-question-sign blue'></i></a></td>
</tr>
</tbody>
</table>
</div>
<div class="clearfix"></div>
<div class="center red" id="loading" style="display:none;font-size:1.3em;width:100%"><i class="fa fa-spinner fa-spin"></i> Working! Please wait...</div>
<hr>
<?php
echo $ftp->printForm();
closeBox();
?>
<script>
$(document).ready(function () {
var file;
function ajaxUpload(_file) {
var data = new FormData();
data.append('file', _file);
$.ajax({
url: 'ajax/update.php',
type: 'POST',
dataType: 'json',
data: data,
processData: false,
contentType: false,