当前位置: 首页>>代码示例>>PHP>>正文


PHP simbio_form_table_AJAX类代码示例

本文整理汇总了PHP中simbio_form_table_AJAX的典型用法代码示例。如果您正苦于以下问题:PHP simbio_form_table_AJAX类的具体用法?PHP simbio_form_table_AJAX怎么用?PHP simbio_form_table_AJAX使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了simbio_form_table_AJAX类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = $dbs->escape_string(isset($_POST['itemID']) ? $_POST['itemID'] : '');
    $rec_q = $dbs->query("SELECT * FROM mst_location WHERE location_id='{$itemID}'");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['location_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:edikriting,项目名称:SENAYAN-3-Stable,代码行数:31,代码来源:location.php

示例2: __

echo __('Search');
?>
" class="button" />
    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM user_group WHERE group_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['group_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:edikriting,项目名称:SENAYAN-3-Stable,代码行数:31,代码来源:user_group.php

示例3: die

</form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = $dbs->escape_string(trim(isset($_POST['itemID']) ? $_POST['itemID'] : ''));
    $rec_q = $dbs->query("SELECT * FROM member WHERE member_id='{$itemID}'");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['member_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:jgoegelein,项目名称:s3st13,代码行数:31,代码来源:index.php

示例4: die

    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = $dbs->escape_string(trim(isset($_POST['itemID']) ? $_POST['itemID'] : ''));
    $rec_q = $dbs->query("SELECT * FROM mst_language WHERE language_id='{$itemID}'");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['language_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:edikriting,项目名称:SENAYAN-3-Stable,代码行数:31,代码来源:doc_language.php

示例5: die

    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = trim($dbs->escape_string(isset($_POST['itemID']) ? $_POST['itemID'] : ''));
    $rec_q = $dbs->query("SELECT * FROM mst_item_status WHERE item_status_id='{$itemID}'");
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['item_status_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:edikriting,项目名称:SENAYAN-3-Stable,代码行数:31,代码来源:item_status.php

示例6: __

}
?>
<fieldset class="menuBox">
<div class="menuBoxInner exportIcon">
    <?php 
echo __('EXPORT TOOL');
?>
    <hr />
    <?php 
echo __('Export bibliographics data to CSV file');
?>
</div>
</fieldset>
<?php 
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'], 'post');
$form->submit_button_attr = 'name="doExport" value="' . __('Export Now') . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
/* Form Element(s) */
// field separator
$form->addTextField('text', 'fieldSep', __('Field Separator') . '*', '' . htmlentities(',') . '', 'style="width: 10%;" maxlength="3"');
//  field enclosed
$form->addTextField('text', 'fieldEnc', __('Field Enclosed With') . '*', '' . htmlentities('"') . '', 'style="width: 10%;"');
// record separator
$rec_sep_options[] = array('NEWLINE', 'NEWLINE');
$rec_sep_options[] = array('RETURN', 'CARRIAGE RETURN');
$form->addSelectList('recordSep', __('Record Separator'), $rec_sep_options);
// number of records to export
开发者ID:ridorido,项目名称:s3st13,代码行数:31,代码来源:export.php

示例7: die

    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_author WHERE author_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['author_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:slims,项目名称:s3st15_matoa,代码行数:31,代码来源:author.php

示例8: die

    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_supplier WHERE supplier_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?itemID=' . $itemID, 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['supplier_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:slims,项目名称:s3st14,代码行数:31,代码来源:supplier.php

示例9: die

}
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write) and !$changecurrent) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    if ($changecurrent) {
        $itemID = (int) $_SESSION['uid'];
    }
    $rec_q = $dbs->query('SELECT * FROM user WHERE user_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="btn btn-default"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        if (!$changecurrent) {
            // form record id
            $form->record_id = $itemID;
        } else {
            $form->addHidden('updateRecordID', $itemID);
            $form->back_button = false;
开发者ID:banumelody,项目名称:slims7_cendana,代码行数:31,代码来源:app_user.php

示例10: die

/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You are not authorized to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $_sql_rec_q = sprintf('SELECT b.*, p.publisher_name, pl.place_name FROM biblio AS b
    LEFT JOIN mst_publisher AS p ON b.publisher_id=p.publisher_id
    LEFT JOIN mst_place AS pl ON b.publish_place_id=pl.place_id
    WHERE biblio_id=%d', $itemID);
    $rec_q = $dbs->query($_sql_rec_q);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="btn btn-default"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    $visibility = 'makeVisible';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        if (!$in_pop_up) {
            // form record id
            $form->record_id = $itemID;
        } else {
            $form->addHidden('updateRecordID', $itemID);
开发者ID:kailIII,项目名称:slims7_cendana,代码行数:31,代码来源:index.php

示例11: die

/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You are not authorized to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT item.*, b.biblio_id, b.title, s.supplier_name
        FROM item
        LEFT JOIN biblio AS b ON item.biblio_id=b.biblio_id
        LEFT JOIN mst_supplier AS s ON item.supplier_id=s.supplier_id
        WHERE item_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        if (!$in_pop_up) {
            $form->record_id = $itemID;
        } else {
            $form->addHidden('updateRecordID', $itemID);
            $form->back_button = false;
        }
开发者ID:slims,项目名称:s3st15_matoa,代码行数:31,代码来源:item.php

示例12: die

    </form>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_member_type WHERE member_type_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['member_type_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:slims,项目名称:s3st15_matoa,代码行数:31,代码来源:member_type.php

示例13: die

  </div>
</div>
</fieldset>
<?php 
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to view this section') . '</div>');
    }
    /* RECORD FORM */
    // try query
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM content WHERE content_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="btn btn-default"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        // form record id
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['content_title'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="btn btn-default"';
开发者ID:mucill,项目名称:slims8_akasia,代码行数:31,代码来源:content.php

示例14: strtoupper

            exit;
        }
    }
}
?>
<fieldset class="menuBox">
<div class="menuBoxInner importIcon">
    <?php 
echo strtoupper(lang_mod_membership_import_data) . '<hr />' . lang_mod_membership_import_data_description;
?>
</div>
</fieldset>
<div id="importInfo" class="infoBox" style="display: none;">&nbsp;</div><div id="importError" class="errorBox" style="display: none;">&nbsp;</div>
<?php 
// create new instance
$form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '', 'post');
$form->submit_button_attr = 'name="doImport" value="' . lang_mod_member_import_button_start . '" class="button"';
// form table attributes
$form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
$form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
$form->table_content_attr = 'class="alterCell2"';
/* Form Element(s) */
// csv files
$str_input = simbio_form_element::textField('file', 'importFile');
$str_input .= ' Maximum ' . $sysconf['max_upload'] . ' KB';
$form->addAnything(lang_mod_member_import_field_file . '*', $str_input);
// field separator
$form->addTextField('text', 'fieldSep', lang_mod_member_import_field_field_separator . '*', '' . htmlentities(',') . '', 'style="width: 10%;"');
//  field enclosed
$form->addTextField('text', 'fieldEnc', lang_mod_member_import_field_field_enclosed . '*', '' . htmlentities('"') . '', 'style="width: 10%;"');
// number of records to import
开发者ID:purwoko,项目名称:SENAYAN-3-Stable,代码行数:31,代码来源:import.php

示例15: die

  </div>
</div>
</fieldset>
<?php 
/* search form end */
/* main content */
if (isset($_POST['detail']) or isset($_GET['action']) and $_GET['action'] == 'detail') {
    if (!($can_read and $can_write)) {
        die('<div class="errorBox">' . __('You don\'t have enough privileges to access this area!') . '</div>');
    }
    /* RECORD FORM */
    $itemID = (int) isset($_POST['itemID']) ? $_POST['itemID'] : 0;
    $rec_q = $dbs->query('SELECT * FROM mst_place WHERE place_id=' . $itemID);
    $rec_d = $rec_q->fetch_assoc();
    // create new instance
    $form = new simbio_form_table_AJAX('mainForm', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'], 'post');
    $form->submit_button_attr = 'name="saveData" value="' . __('Save') . '" class="button"';
    // form table attributes
    $form->table_attr = 'align="center" id="dataList" cellpadding="5" cellspacing="0"';
    $form->table_header_attr = 'class="alterCell" style="font-weight: bold;"';
    $form->table_content_attr = 'class="alterCell2"';
    // edit mode flag set
    if ($rec_q->num_rows > 0) {
        $form->edit_mode = true;
        // record ID for delete process
        $form->record_id = $itemID;
        // form record title
        $form->record_title = $rec_d['place_name'];
        // submit button attribute
        $form->submit_button_attr = 'name="saveData" value="' . __('Update') . '" class="button"';
    }
开发者ID:banumelody,项目名称:slims7_cendana,代码行数:31,代码来源:place.php


注:本文中的simbio_form_table_AJAX类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。