kai/print.php

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

// PHP7+MySQL5.6 中医个体户处方系统 V2025.05.30
// 首发版本,仅供学习参考(或评估可用再使用)
// 演示地址: http://kaifang.chalide.cn
// 开源更新: /chalide/zhongyikaifang
// 文件路径: kai/print.php
// 文件大小: 8540 字节
/**
 * 本文件功能:处方打印页面
 * 版权声明:保留发行权和署名权
 * 作者信息:15058593138@qq.com
 */

// 引入数据库和工具函数
require_once './inc/conn.php';
require_once './inc/pubs.php';
require_once './inc/sqls.php';

// 初始化数据库操作对象
$db = new DB($conn);

// 获取网站设置
$site_settings = get_site_settings();

// 获取订单号
$order_number = get_param('order');
if (empty($order_number)) {
    echo '<div class="error-message">参数错误,缺少订单号</div>';
    exit;
}

// 查询处方信息
$sql = "SELECT * FROM prescription WHERE order_number = '{$order_number}'";
$prescription = $db->getRow($sql);

if (!$prescription) {
    echo '<div class="error-message">处方不存在</div>';
    exit;
}

// 解析药方详情
$medicines = json_decode($prescription['medicine_detail'], true);
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>处方打印页面 - <?php echo $prescription['order_number']; ?></title>
    <style>
        body {
            font-family: "SimSun", "宋体", serif;
            font-size: 14px;
            line-height: 1.5;
            margin: 0;
            padding: 0;
            background-color: #fff;
        }
        
后面还有 236 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。