die; } //查看医师绑定的病人的消费 if ($_REQUEST['a'] == 'bind') { $did = (int) $_GET['did']; $condition = array(); $filter = array(); $condition[] = " did={$did} "; if ($_GET['keywords']) { $condition[] = " id=" . common_pg('keywords') . " "; } if ($condition) { $filter['where'] = implode('and', $condition); } $filter['order'] = " id desc "; $data = $model->paginate($filter, '*', common_pg('p'), 10); $listArr = $data['data']; $smarty->assign('list', $listArr); $smarty->assign('page', $model->existPages($data['pager'])); $smarty->setTpl('app/hptshop/templates/order_bind.html')->display(); die; } //数据列表 $condition = array(); $filter = array(); if ($_GET['keywords']) { $condition[] = " id=" . common_pg('keywords') . " "; } if ($_GET['is_pay'] == 1) { $condition[] = " is_pay=1 "; } elseif ($_GET['is_pay'] == 2) {