<?php $nums = isset($_POST['nums']) ? intval($_POST['nums']) : 0; $partionId = isset($_POST['partions']) ? intval($_POST['partions']) : 0; if (empty($partionId)) { echo "请先选择分区"; exit; } $partion = WhTransportPartitionModel::find($partionId); if (!$partion) { echo "分区不存在"; exit; } $partionName = $partion['title']; for ($j = 0; $j < $nums; $j++) { $data = array('partitionId' => $partion['id'], 'totalWeight' => 0, 'totalNum' => 0, 'partion' => $partion['title'], 'status' => 0, 'printUserId' => $_SESSION['userId'], 'printTime' => time(), 'modifyTime' => 0); $id = WhOrderPartionPrintModel::insert($data); //$userId = $_SESSION['userId']; //echo $userId; //$msg = orderPartionModel::insertPrintRecord($partionName,$userId); if ($id) { //$id = $msg; ?> <div class="main"> <div class="text" style="font-weight:bold;"> <p style="padding-left: 155px; padding-top: 0px;font-size: 22px;">赛维</p> <p style="padding-left: <?php echo strlen($partionName) > 30 ? '70' : 130; ?> px;padding-top: 2px;"><?php echo $partionName;