When using TP5 to fuzzy query Chinese characters, sometimes some Chinese characters will report errors, which are placeholder errors, so modify the paging style;
Modify the bootrapthink.php file
return sprintf( // '<div id="page" class="page_div pagination">%s %s %s<span class=\'totalSize\'> 跳转<input class=\'jump_class jump_page_num\' οnkeyup="this.value=this.value.replace(/\D/, \'\');" type=\'text\' value=\'\'>页 </span><a href=\'javascript:void(0);\' οnclick=\'jumpPage(this);\' data-href="'.$base_url.'" class=\'jump_btn\' style=\'color: #18a689;border: 1px solid #18a689!important;margin-left:0px;\'>确定</a><span class="totalPages"> 共<span>'.$this->lastPage.'</span>页 </span><span class="totalSize"> 共<span>'.$this->total.'</span>条记录 </span></div>', // $this->getPreviousButton(), // $this->getLinks(), // $this->getNextButton()
Sometimes you will find something wrong with his placeholder
Change to:
return '<div id="page" class="page_div pagination">'.$this->getPreviousButton().' '.$this->getLinks().' '.$this->getNextButton().'<span class=\'totalSize\'> 跳转<input class=\'jump_class jump_page_num\' οnkeyup="this.value=this.value.replace(/\D/, \'\');" type=\'text\' value=\'\'>页 </span><a href=\'javascript:void(0);\' οnclick=\'jumpPage(this);\' data-href="'.$base_url.'" class=\'jump_btn\' style=\'color: #18a689;border: 1px solid #18a689!important;margin-left:0px;\'>确定</a><span class="totalPages"> 共<span>'.$this->lastPage.'</span>页 </span><span class="totalSize"> 共<span>'.$this->total.'</span>条记录 </span></div>';
With specific analysis of the situation, finally, I wish you all a smooth work!
Read More:
- Tp6 Cannot enable error [How to Solve]
- 404 solution for WordPress Chinese tag
- [Solved] TP5 Post receive array error: variable type error: array
- [Solved] tp6.0 open_basedir Error: Warning: require(): open_basedir restriction in effect.
- [PHP]json_encode Chinese JSON_UNESCAPED_UNICODE returns null in php5.3
- [Solved] PHP post Datas json_decode Error: 4 JSON_ERROR_SYNTAX
- Unserialize(): cause analysis and solution of error at offset
- [Solved] PhpSpreadsheet Error: Invalid cell coordinate [1
- HTML + PHP inline execute JavaScript Error [How to Solve]
- PHP use __Sleep() and __wakeup() method serializes the object
- Syntax error: typeerror: about installing sass in vue3 this.getOptions is not a function
- [Solved] PDOException::(“SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long;
- PHP: How to parse MHT file into HTML
- Laravel-admin php artisan admin:install error reporting problem solution
- How to Hide index.php
- [PHP] Array to string conversion error when sending data in post
- Laravel5.5 Error: SQLSTATE[42000] Syntax error or access violation 1071 Specified key was too long; max k
- [PHP] __autoload function will be called when class_exists does not exist
- Using $this when not in object context in (How to Fix)
- PHP: The Difference between \Throwable, \Error and \Exception