This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row"> | |
| <label class="col-sm-2 control-label"></label> | |
| <div class="col-sm-5"> | |
| <div class="fileinput fileinput-new input-group" data-provides="fileinput"> | |
| <div class="form-control" data-trigger="fileinput"> | |
| <i class="glyphicon glyphicon-file fileinput-exists"></i> | |
| <span class="fileinput-filename">请选择文件</span> | |
| </div> | |
| <span class="input-group-addon btn btn-default btn-file"> | |
| <span class="fileinput-new">Select file</span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function checkInputDate(elements, type = null) { | |
| for (let i = 0; i < elements.length; i++) { | |
| if (elements[i].val().trim() == '') { | |
| return false; | |
| } | |
| if(type == 'date'){ | |
| if(!(/^(\d{4})-(\d{2})-(\d{2})$/).test(elements[i].val().trim())){ | |
| return false; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global $siteConf; | |
| require_once ROOT_PATH . 'protected/services/RequestCmsServiceBaseLib.php'; | |
| $request = new \RequestCmsServiceBaseLib(); | |
| $request_url = $siteConf['server']['zzcms'] . '?q=/api/adsCostByCat'; | |
| $max = 3; | |
| LogHelper::info('Request adsCostByCat start...', [ | |
| 'data' => $ymd, | |
| ]); | |
| $response = []; | |
| while (true) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $dir_name = ROOT_PATH . 'templates/shipment_print/'; | |
| $index = '_' . microtime(true); | |
| $filename_html = $dir_name . 'html.html'; | |
| $filename_pdf = $dir_name . 'html.pdf'; | |
| $filename_log = $dir_name . 'html_to_pdf_log.txt'; | |
| file_put_contents($filename_html, $html); | |
| $shell = "sudo xvfb-run wkhtmltopdf -g --encoding utf-8 $filename_html $filename_pdf >>$filename_log 2>&1"; | |
| shell_exec($shell); | |
| $pdfContentB64List = []; | |
| $pdfContentB64List[] = base64_encode(file_get_contents($filename_pdf)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let goods_ids = $("input[name='goodsId[]']").map(function () { | |
| return $(this).val(); | |
| }).get(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="col-lg-12 query-form"> | |
| <div class="panel panel-default"> | |
| <div class="panel-heading"> | |
| <i class="fa fa-barcode" aria-hidden="true"></i> | |
| <label style="font-size: 14px">导入</label> | |
| </div> | |
| <div class="panel-body"> | |
| <form id="edit_form" method="POST" class="form-horizontal" action="change_goods_name.php" enctype="multipart/form-data"> | |
| <input type="text" hidden id="act" name="act" value="" title="act"/> | |
| <div class="box-content col-sm-12"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| document.write("<s"+"cript type='text/javascript' src='../../js/erp/american_whs_management/refund_apply_usa_apply.js?"+Math.random()+"'></scr"+"ipt>"); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE IF NOT EXISTS `demo_table` ( | |
| `demo_id` int UNSIGNED NOT NULL AUTO_INCREMENT, | |
| `int_value` int(11) NOT NULL DEFAULT '0' COMMENT '整数类型', | |
| `float_value` float(10,2) NOT NULL DEFAULT '0.00' COMMENT '浮点数类型', | |
| `varchar_value` varchar(255) NOT NULL DEFAULT '' COMMENT 'varchar 类型', | |
| `text_value` text NOT NULL COMMENT '大文本类型', | |
| `user_name/user_id/username/action_user/create_by` varchar(100) NOT NULL DEFAULT '', -- 通常可能不同人创建的也需要添加 | |
| `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
| `last_update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
| PRIMARY KEY (`demo_id`), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 这里使用number_format可以,使用round不行,即使将数据转为float | |
| $data[$row - 1][$colMap[$col]] = number_format($data[$row - 1][$colMap[$col]],2,'.',''); |
NewerOlder