从123搬迁的客户需求项目
parent
56f28b6464
commit
477fa683ed
@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
if (!defined('BASEPATH')) {
|
||||
exit('No direct script access allowed');
|
||||
}
|
||||
|
||||
class Demandform extends CI_Controller {
|
||||
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
$this->load->model('Demandform_model');
|
||||
}
|
||||
|
||||
/*!
|
||||
* @author LYT <lyt@hainatravel.com>
|
||||
* @date 2018-01-23
|
||||
* @param [type] $coli_sn 订单主表的COLI_SN
|
||||
* @param integer $form_id 默认值2是0.1版本固定的
|
||||
*/
|
||||
public function index($coli_sn = null, $form_id = 2)
|
||||
{
|
||||
header("Cache-Control: no-store");
|
||||
|
||||
// 已填则返回成功
|
||||
$is_replied = $this->Demandform_model->get_reply($coli_sn);
|
||||
|
||||
$form_id = intval(trim($form_id));
|
||||
$_raw_data = $this->Demandform_model->get_form_detail($form_id);
|
||||
$part = array();
|
||||
foreach ($_raw_data->formdetail as $key => $fd) {
|
||||
$tmp_a = array();
|
||||
$tmp_r = array();
|
||||
foreach ($_raw_data->answer as $ka => $a) {
|
||||
if ($fd->FD_id === $a->A_FD_id) {
|
||||
$tmp_a[] = $a;
|
||||
}
|
||||
}
|
||||
if ( ! empty($is_replied)) {
|
||||
foreach ($is_replied as $kr => $re) {
|
||||
if ($re->FD_id === $fd->FD_id) {
|
||||
$tmp_r[] = $re->CRD_content;
|
||||
}
|
||||
}
|
||||
}
|
||||
$fd->reply = $tmp_r;
|
||||
$fd->answer = (object) $tmp_a;
|
||||
// part set
|
||||
$part["part1"]["title"] = "PART 1 -- Travel Preference";
|
||||
$part["part2"]["title"] = "PART 2";
|
||||
if (intval(trim($fd->FD_section)) === 1) {
|
||||
$part["part1"]["data"][] = $fd;
|
||||
}
|
||||
if (intval(trim($fd->FD_section)) === 2) {
|
||||
$part["part2"]["data"][] = $fd;
|
||||
}
|
||||
}
|
||||
$_raw_data->part = $part;
|
||||
unset($_raw_data->formdetail);
|
||||
unset($_raw_data->answer);
|
||||
$_raw_data->coli = $coli_sn;
|
||||
|
||||
if ( ! empty($is_replied)) {
|
||||
$this->load->view('demandform/thanks', $_raw_data);
|
||||
return;
|
||||
}
|
||||
|
||||
$this->load->view('demandform/index', $_raw_data);
|
||||
return;
|
||||
}
|
||||
|
||||
public function form_save()
|
||||
{
|
||||
$all_post = $this->input->post();
|
||||
|
||||
$ret["code"] = 1;
|
||||
$ret["msg"] = "";
|
||||
// 已填则返回成功 -- todo
|
||||
|
||||
$check_input = array();
|
||||
foreach ($all_post["q"] as $key => $value) {
|
||||
if ($value["required"] == 1 && empty($value["answer"])) {
|
||||
$ret["code"] = 0;
|
||||
$ret["msg"][] = $key;
|
||||
}
|
||||
}
|
||||
if ($ret["code"] == 0) {
|
||||
return $this->output->set_content_type('text/plain')->set_output(json_encode($ret));
|
||||
}
|
||||
// CD_CustomerReply
|
||||
$this->Demandform_model->CR_COLI_sn = trim($this->input->post("coli_sn"));
|
||||
$this->Demandform_model->CR_F_id = trim($this->input->post("fid"));
|
||||
$d = $a = $c = "";
|
||||
foreach ($all_post["q"] as $key => $value) {
|
||||
$split_answer = null;
|
||||
$class_max = 0;
|
||||
if (trim($value["ismain"]) != 1) {
|
||||
continue;
|
||||
}
|
||||
$class_max = (count($value["answer"])-1);
|
||||
$split_answer = explode("=_", $value["answer"][$class_max]);
|
||||
if (trim($value["qclass"]) === 'D' && ! empty($split_answer)) {
|
||||
$d = (isset($split_answer) ? $split_answer[1] : "?");
|
||||
}
|
||||
if (trim($value["qclass"]) === 'A' && ! empty($split_answer)) {
|
||||
$a = (isset($split_answer) ? $split_answer[1] : "?");
|
||||
}
|
||||
if (trim($value["qclass"]) === 'C' && ! empty($split_answer)) {
|
||||
$c = (isset($split_answer) ? $split_answer[1] : "?");
|
||||
}
|
||||
}
|
||||
$this->Demandform_model->CR_result = $d . $a . $c;
|
||||
// CD_CustomerReplyDetail
|
||||
$this->Demandform_model->CRD_CR_id = $this->Demandform_model->reply_save();
|
||||
$reply_detail = array();
|
||||
foreach ($all_post["q"] as $key => $value) {
|
||||
if (empty($value["atext"]) && empty($value["answer"])) {
|
||||
continue;
|
||||
}
|
||||
$this->Demandform_model->CRD_FD_id = $value["fdid"];
|
||||
$this->Demandform_model->CRD_result = null;
|
||||
$this->Demandform_model->CRD_Answer = null;
|
||||
$this->Demandform_model->CRD_content = null;
|
||||
|
||||
if (isset($value["answer"])) {
|
||||
foreach ($value["answer"] as $ka => $va) {
|
||||
$split_answer = null;
|
||||
$split_answer = explode("=_", trim($value["answer"][$ka]));
|
||||
$this->Demandform_model->CRD_Answer = $split_answer[0];
|
||||
$this->Demandform_model->CRD_content = (!empty($split_answer) ? ($split_answer[2]) : "");
|
||||
if ( ! empty($value["qclass"]) && ! empty($split_answer)) {
|
||||
$this->Demandform_model->CRD_result = (!empty($split_answer) ? $split_answer[1] : "?");
|
||||
}
|
||||
// 这里是 选择题others选项的可填入项
|
||||
$this->Demandform_model->CRD_content .= (isset($value["atext"]) ? $value["atext"] : "");
|
||||
$this->Demandform_model->replydetail_save();
|
||||
}
|
||||
} else {
|
||||
// 这里是填空题的输入
|
||||
$this->Demandform_model->CRD_content = $value["atext"];
|
||||
$this->Demandform_model->replydetail_save();
|
||||
}
|
||||
}
|
||||
return $this->output->set_content_type('text/plain')->set_output(json_encode($ret));
|
||||
}
|
||||
|
||||
public function view_reply($coli)
|
||||
{
|
||||
$reply = $this->Demandform_model->get_reply($coli);
|
||||
$reply_arr = array();
|
||||
$reply_fd_arr = array();
|
||||
foreach ($reply as $key => $r) {
|
||||
$class_key = trim($r->FD_class) ? trim($r->FD_class) : "normal";
|
||||
$reply_arr["CR_result"] = $r->CR_result;
|
||||
$reply_arr[$class_key]["q" . $r->FD_id][] = $r;
|
||||
}
|
||||
$this->load->view('demandform/reply', $reply_arr);
|
||||
}
|
||||
|
||||
public function converet_answer($answer)
|
||||
{
|
||||
$ret = ord($answer)-64;
|
||||
$ret = ($ret > 3) ? 3 : $ret;
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
class Demandform_model extends CI_Model {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->INFO = $this->load->database('INFO', TRUE);
|
||||
}
|
||||
|
||||
public function get_form_detail($form_id)
|
||||
{
|
||||
$ret = (object) array();
|
||||
$form_sql = "SELECT top 1 * FROM CD_form WHERE f_id=$form_id " ;
|
||||
$f_query = $this->INFO->query($form_sql);
|
||||
$ret->form = $f_query->row();
|
||||
|
||||
$formdetail_sql = "SELECT fd.*
|
||||
FROM CD_formdetail fd
|
||||
WHERE fd.FD_F_id=$form_id order by FD_sort asc" ;
|
||||
$fd_query = $this->INFO->query($formdetail_sql);
|
||||
$ret->formdetail = $fd_query->result();
|
||||
|
||||
$answer_sql = "SELECT a.*
|
||||
FROM CD_formdetail fd
|
||||
INNER JOIN CD_answer a ON a.A_FD_id=fd.FD_id
|
||||
WHERE fd.FD_F_id=$form_id " ;
|
||||
$a_query = $this->INFO->query($answer_sql);
|
||||
$ret->answer = $a_query->result();
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
// CD_CustomerReply
|
||||
public $CR_COLI_sn;
|
||||
public $CR_F_id;
|
||||
public $CR_result;
|
||||
|
||||
public function reply_save()
|
||||
{
|
||||
$rsql = "INSERT INTO CD_CustomerReply (
|
||||
CR_COLI_sn
|
||||
,CR_F_id
|
||||
,CR_replytime
|
||||
,CR_result)
|
||||
VALUES
|
||||
(?
|
||||
,?
|
||||
,GETDATE()
|
||||
,N?)";
|
||||
// log_message('error',$this->INFO->compile_binds($rsql,
|
||||
$rquery = $this->INFO->query($rsql,
|
||||
array($this->CR_COLI_sn, $this->CR_F_id, $this->CR_result));
|
||||
$cr_id_q = "SELECT TOP 1 CR_id
|
||||
FROM CD_CustomerReply
|
||||
WHERE CR_COLI_sn=?
|
||||
ORDER BY CR_replytime DESC";
|
||||
$cr_query = $this->INFO->query($cr_id_q, array($this->CR_COLI_sn));
|
||||
$cr_id_r = $cr_query->row();
|
||||
return $cr_id_r->CR_id;
|
||||
}
|
||||
|
||||
// CD_CustomerReplyDetail
|
||||
public $CRD_FD_id;
|
||||
public $CRD_Answer;
|
||||
public $CRD_content;
|
||||
public $CRD_result;
|
||||
public $CRD_CR_id;
|
||||
|
||||
public function replydetail_save()
|
||||
{
|
||||
$rdsql = "INSERT INTO CD_CustomerReplyDetail
|
||||
(CRD_CR_id
|
||||
,CRD_FD_id
|
||||
,CRD_Answer
|
||||
,CRD_content
|
||||
,CRD_result
|
||||
)
|
||||
VALUES (?,?,?,N?,?) ";
|
||||
// log_message('error',$this->INFO->compile_binds($rdsql,
|
||||
$rdquery = $this->INFO->query($rdsql,
|
||||
array(
|
||||
$this->CRD_CR_id,
|
||||
$this->CRD_FD_id,
|
||||
$this->CRD_Answer,
|
||||
$this->CRD_content,
|
||||
$this->CRD_result
|
||||
)
|
||||
);
|
||||
return $this->INFO->insert_id();
|
||||
}
|
||||
|
||||
public function get_reply($coli)
|
||||
{
|
||||
$sql = "SELECT fd.FD_id,
|
||||
fd.FD_F_id,
|
||||
fd.FD_section,
|
||||
cr.CR_replytime,
|
||||
cr.CR_COLI_sn,
|
||||
cr.CR_result,
|
||||
fd.FD_class,
|
||||
fd.FD_ismain,
|
||||
crd.CRD_result,
|
||||
fd.FD_question,
|
||||
crd.CRD_content
|
||||
FROM CD_CustomerReply cr
|
||||
INNER JOIN CD_CustomerReplyDetail crd ON crd.CRD_CR_id=cr.CR_id
|
||||
INNER JOIN CD_FormDetail fd ON CRD_FD_id=FD_id
|
||||
WHERE CR_COLI_sn='$coli'
|
||||
ORDER BY fd.FD_section ASC,fd.FD_sort ASC
|
||||
";
|
||||
$query = $this->INFO->query($sql);
|
||||
|
||||
return $query->result();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,160 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<meta content="yes" name="apple-mobile-web-app-capable">
|
||||
<title>We Complete You</title>
|
||||
<!-- <link href="https://data.chinahighlights.com/css/complete-trip.css" rel="stylesheet"> -->
|
||||
<link href="http://202.103.68.221/css/complete-trip.css" rel="stylesheet">
|
||||
<style type="text/css" media="screen and (min-device-width:768px)">
|
||||
.modal-dialog {width: 600px;margin: 100px auto;}
|
||||
.modal-content {-webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);box-shadow: 0 5px 15px rgba(0,0,0,.5);}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
.sendBtn{border: none;}
|
||||
.text-danger{color: #a31022;}
|
||||
.complete-tips{ border-bottom: 1px dashed #a31022;}
|
||||
.hidden{display: none;}
|
||||
.modal-open .modal {overflow-x: hidden;overflow-y: auto;}
|
||||
.fade.in {opacity: 1;}
|
||||
.modal {display: none;overflow: hidden;position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;-webkit-overflow-scrolling: touch;outline: 0;}
|
||||
.fade {opacity: 0;-webkit-transition: opacity .15s linear;-o-transition: opacity .15s linear;transition: opacity .15s linear;}
|
||||
.modal.in .modal-dialog {-webkit-transform: translate(0, 0);-ms-transform: translate(0, 0);-o-transform: translate(0, 0);transform: translate(0, 0);}
|
||||
.modal.fade .modal-dialog {-webkit-transform: translate(0, -25%);-ms-transform: translate(0, -25%);-o-transform: translate(0, -25%);transform: translate(0, -25%);-webkit-transition: -webkit-transform .3s ease-out;-moz-transition: -moz-transform .3s ease-out;-o-transition: -o-transform .3s ease-out;transition: transform .3s ease-out;}
|
||||
.modal-content {position: relative;background-color: #fff;border: 1px solid #999;border: 1px solid rgba(0,0,0,.2);border-radius: 6px;-webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);box-shadow: 0 3px 9px rgba(0,0,0,.5);background-clip: padding-box;outline: 0;}
|
||||
.modal-header {padding: 15px;border-bottom: 1px solid #e5e5e5;min-height: 16.43px;}
|
||||
.modal-header .close {margin-top: -2px;}
|
||||
button.close {padding: 0;cursor: pointer;background: 0 0;border: 0;-webkit-appearance: none;}
|
||||
.close {float: right;font-size: 18px;font-weight: 700;line-height: 1;color: #000;text-shadow: 0 1px 0 #fff;opacity: .2;filter: alpha(opacity=20);}
|
||||
h4.modal-title {margin: 0;line-height: 1.428571429;}
|
||||
.modal-body {position: relative;padding: 30px;}
|
||||
.modal-footer {padding: 30px;text-align: right;border-top: 1px solid #e5e5e5;}
|
||||
.btn-default {color: #333;background-color: #fff;border-color: #ccc;}
|
||||
.btn {display: inline-block;margin-bottom: 0;font-weight: 400;text-align: center;vertical-align: middle;touch-action: manipulation;cursor: pointer;background-image: none;border: 1px solid transparent;white-space: nowrap;padding: 6px 12px;font-size: 12px;line-height: 1.428571429;border-radius: 4px;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}
|
||||
.modal-backdrop.in {opacity: .5;filter: alpha(opacity=50);}
|
||||
.modal-backdrop.fade {opacity: 0;filter: alpha(opacity=0);}
|
||||
.modal-backdrop {position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1040;background-color: #000;}
|
||||
sup{color: #a31022;font-size: 16px;vertical-align: baseline;top: -0.5em;}
|
||||
</style>
|
||||
<script src="//data.chinahighlights.com/js/min.php?f=/js/jquery-1.8.2.min.js,/js/ChtPublic.js,/public/js/bootstrap.min.js">
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$.ajax({ type: "get", url: "/secureforms/form_token" }).done(function(data) { $("form").append(data); });
|
||||
$("#btn").click(function() {
|
||||
$.ajax({
|
||||
url:"/securedemandform/form_save",
|
||||
// url:"/guide-use.php/demandform/form_save",
|
||||
type:"POST",
|
||||
dataType:"JSON",
|
||||
data:$("#demandform").serialize(),
|
||||
beforeSend:function(xhr) {
|
||||
var flag;
|
||||
$("#btn").text('Please wait...');
|
||||
},
|
||||
complete:function() {
|
||||
$("#btn").text('Send to Simon');
|
||||
}
|
||||
}).done(function(data) {
|
||||
if (data.code == 0) {
|
||||
$(".required-error").addClass("text-danger");
|
||||
$(".complete-tips").removeClass("hidden");
|
||||
} else {
|
||||
$('#myModal').modal('show');
|
||||
$(".complete-tips").addClass("hidden");
|
||||
}
|
||||
})
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div id="header">
|
||||
<!-- <div class="logo"><img src="https://data.chinahighlights.com/pic/logo/logo-132x104.png"></div> -->
|
||||
<div class="logo"><img src="http://202.103.68.79/pic/logo/logo-132x104.png"></div>
|
||||
<span class="pageTitle"></span>
|
||||
</div>
|
||||
</header>
|
||||
<div id="content">
|
||||
<form action="/guide-use.php/demandform/form_save" method="POST" target="hidden-frame" id="demandform" name="demandform">
|
||||
<?php echo __FORM_TOKEN__ ?>
|
||||
<input type="hidden" name="coli_sn" value="<?=$coli?>">
|
||||
<input type="hidden" name="fid" value="<?=$form->F_id?>">
|
||||
<ul class="headList">
|
||||
<li><?php
|
||||
$form_com = str_replace("\r\n", "<br>", $form->F_comment);
|
||||
$form_com = str_replace("\n", "<br>", $form_com);
|
||||
echo $form_com;
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<?php foreach ($part as $key => $p) { ?>
|
||||
<h2><?=$p["title"]?></h2>
|
||||
<div><?php foreach ($p["data"] as $kf => $q) { ?>
|
||||
<p class="<?php if($q->FD_required==1){ ?>required-error<?php } ?>">
|
||||
<strong><?php echo ($kf+1) ?>.</strong> <em><?php echo $q->FD_question ?>
|
||||
<?php if($q->FD_required==1){ ?>
|
||||
<sup>∗</sup>
|
||||
<?php } ?>
|
||||
</em></p>
|
||||
<input type="hidden" name="q[q<?=$q->FD_id?>][qclass]" value="<?=trim($q->FD_class)?>">
|
||||
<input type="hidden" name="q[q<?=$q->FD_id?>][qtype]" value="<?=trim($q->FD_AnswerType)?>">
|
||||
<input type="hidden" name="q[q<?=$q->FD_id?>][fdid]" value="<?=trim($q->FD_id)?>">
|
||||
<input type="hidden" name="q[q<?=$q->FD_id?>][ismain]" value="<?=trim($q->FD_ismain)?>">
|
||||
<input type="hidden" name="q[q<?=$q->FD_id?>][required]" value="<?=trim($q->FD_required)?>">
|
||||
<?php if (intval(trim($q->FD_AnswerType)) > 0) { // 选择题
|
||||
$answer_type = intval(trim($q->FD_AnswerType))==1 ? "radio" : "checkbox";
|
||||
?>
|
||||
<?php foreach ($q->answer as $ka => $an) { ?>
|
||||
<label>
|
||||
<input type="<?=$answer_type?>" name="q[q<?=$q->FD_id?>][answer][]"
|
||||
value="<?=trim($an->A_number)?>=_<?=trim($q->FD_class) . trim($an->A_class)?>=_<?=$an->A_content?>" id="ra_<?=$q->FD_id?>_<?=$an->A_id?>">
|
||||
<?php if(trim($an->A_content) == '') { // 这里不要了 ?>
|
||||
<!-- <input type="text" name="q[q<?=$q->FD_id?>][atext]" data-radioid="ra_<?=$q->FD_id?>_<?=$an->A_id?>" > -->
|
||||
<?php } else {?>
|
||||
<em><?php echo trim($an->A_content) ?></em>
|
||||
<?php } ?>
|
||||
</label>
|
||||
<?php } ?>
|
||||
<?php } else { // 填空?>
|
||||
<textarea placeholder="<?=$q->FD_comment?>" name="q[q<?=$q->FD_id?>][atext]"></textarea>
|
||||
<!-- <input type="text" name="q[q<?=$q->FD_id?>][atext]"> -->
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<p class="hidden complete-tips text-danger">Please complete the highlighted questions.</p>
|
||||
<button type="submit" class="sendBtn">
|
||||
<a href="javascript:void(0)" id="btn">
|
||||
Send to Simon
|
||||
</a>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
<div id="myModal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">Message</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Thank you!</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,122 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
<meta content="yes" name="apple-mobile-web-app-capable">
|
||||
<title>customer reply</title>
|
||||
<style type="text/css" media="screen and (min-device-width:768px)">
|
||||
.modal-dialog {width: 600px;margin: 100px auto;}
|
||||
.modal-content {-webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);box-shadow: 0 5px 15px rgba(0,0,0,.5);}
|
||||
</style>
|
||||
<style type="text/css">
|
||||
body{background-color: #f1f1f1;color: #555;font-size: 16px;font-family: 'Open Sans', sans-serif;}
|
||||
#content{width: 1000px;display: block;margin-left: auto ;margin-right: auto ;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content" style="padding: 20px;">
|
||||
<?php if (empty($D) || empty($A) || empty($C)) { ?>
|
||||
<h3>未收到回复</h3>
|
||||
<?php } else { ?>
|
||||
<table border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="10%">等级</th>
|
||||
<th width="45%">关键问题</th>
|
||||
<th width="45%">辅助信息</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo $CR_result; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($D as $kc => $qa) {
|
||||
if (intval($qa[0]->FD_ismain) == 1) {
|
||||
echo $qa[0]->FD_question;
|
||||
foreach ($qa as $ka => $answer) { ?>
|
||||
<p style="color: #a31022;"><?php echo ($answer->CRD_result) . "." . $answer->CRD_content; ?></p>
|
||||
<?php } } } ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($D as $kc => $qa) {
|
||||
if (intval($qa[0]->FD_ismain) != 1) { ?>
|
||||
<?php echo $qa[0]->FD_question; ?>
|
||||
<?php foreach ($qa as $ka => $answer) { ?>
|
||||
<p style="color: #a31022;"><?php echo ($answer->CRD_result) . "." . $answer->CRD_content; ?></p>
|
||||
<?php } } } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo $CR_result; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($A as $kc => $qa) {
|
||||
if (intval($qa[0]->FD_ismain) == 1) {
|
||||
echo $qa[0]->FD_question;
|
||||
foreach ($qa as $ka => $answer) { ?>
|
||||
<p style="color: #a31022;"><?php echo ($answer->CRD_result) . "." . $answer->CRD_content; ?></p>
|
||||
<?php } } } ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($A as $kc => $qa) {
|
||||
if (intval($qa[0]->FD_ismain) != 1) { ?>
|
||||
<?php echo $qa[0]->FD_question; ?>
|
||||
<?php foreach ($qa as $ka => $answer) { ?>
|
||||
<p style="color: #a31022;"><?php echo ($answer->CRD_result) . "." . $answer->CRD_content; ?></p>
|
||||
<?php } } } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo $CR_result; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($C as $kc => $qa) {
|
||||
if (intval($qa[0]->FD_ismain) == 1) { ?>
|
||||
<?php echo $qa[0]->FD_question;
|
||||
foreach ($qa as $ka => $answer) { ?>
|
||||
<p style="color: #a31022;"><?php echo ($answer->CRD_result) . "." . $answer->CRD_content; ?></p>
|
||||
<?php } } ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($C as $kc => $qa) { ?>
|
||||
<?php if (intval($qa[0]->FD_ismain) != 1) { ?>
|
||||
<?php echo $qa[0]->FD_question; ?>
|
||||
<?php foreach ($qa as $ka => $answer) { ?>
|
||||
<p style="color: #a31022;"><?php echo $answer->CRD_content; ?></p>
|
||||
<?php } } ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;font-weight: bold;">
|
||||
其他信息
|
||||
</td>
|
||||
</tr>
|
||||
<?php foreach ($normal as $key => $qn) { ?>
|
||||
<tr>
|
||||
<!-- <td><?//=($key+1)?></td> -->
|
||||
<td colspan="2">
|
||||
<?php echo $qn[0]->FD_question; ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php foreach ($qn as $ka => $na) { ?>
|
||||
<p style="color: #a31022;"><?php echo $na->CRD_content; ?></p>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue