ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 控制器 ~~~ $flow4=M('flow')->where('type = 63')->limit(1)->order('id desc')->select(); if (!empty($flow4)) { $this->flow4step1 =1;//第一步 $this->flow4id= $flow4[0]['id']; if($flow4[0]['status'] ==40) { $this->flow4step2 =1; //第二步, 完成 }else{ $this->flow4step2 =0; //第二步, 完成 } } // end ~~~ ####模版 ~~~ <a class="btn btn-lg btn-success">中期检查</a> <i class="fa fa-angle-double-right "></i> <switch name="flow4step1"> <case value="1"> <a href="{:U('flow/read')}?id={$flow4id}" class="btn btn-success">中期检查和每周的报表</a> </case> <default /> <a href="javascript:open_url('{:U('flow/addSimple?type=63')}')" class="btn btn-danger"> 中期检查和每周的报表</a> </switch> <i class="fa fa-arrow-right"></i> <switch name="flow4step2"> <case value="0"> <a href="{:U('flow/read')}?id={$flow4id}" class="btn btn-danger">领导小组</a> </case> <case value="1"> <a href="{:U('flow/read')}?id={$flow4id}" class="btn btn-success">领导小组</a> </case> <default /> <a class="btn btn-default"> 领导小组</a> </switch> ~~~