kai/iikai.php
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
// PHP7+MySQL5.6 中医个体户处方系统 V2025.05.30
// 首发版本,仅供学习参考(或评估可用再使用)
// 演示地址: http://kaifang.chalide.cn
// 开源更新: /chalide/zhongyikaifang
// 文件路径: kai/iikai.php
// 文件大小: 20187 字节
/**
* 本文件功能:处方开方模块
* 版权声明:保留发行权和署名权
* 作者信息:15058593138@qq.com
*/
// 引入数据库和工具函数
require_once './inc/conn.php';
require_once './inc/pubs.php';
require_once './inc/sqls.php';
// 初始化数据库操作对象
$db = new DB($conn);
// 处理AJAX请求
if (isset($_GET['act'])) {
$act = $_GET['act'];
switch ($act) {
case 'search_medicine': // 搜索药品
$keyword = post_param('keyword');
if (empty($keyword)) {
json_result(1, '请输入药品名称');
}
// 查询药品信息
$sql = "SELECT * FROM medicine WHERE
medicine_name LIKE '%{$keyword}%' OR
alias LIKE '%{$keyword}%' OR
pinyin LIKE '%{$keyword}%' OR
short_pinyin LIKE '%{$keyword}%'
ORDER BY count_times DESC LIMIT 10";
$medicines = $db->getAll($sql);
json_result(0, '查询成功', $medicines);
break;
case 'get_common_prescriptions': // 获取常用处方
$sql = "SELECT * FROM prescription WHERE is_common = 1 ORDER BY id DESC";
$common_prescriptions = $db->getAll($sql);
json_result(0, '查询成功', $common_prescriptions);
break;
case 'get_prescription_detail': // 获取处方详情
$id = post_param('id');
if (empty($id)) {
json_result(1, '参数错误');
}
// 查询处方信息
后面还有 520 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
