搜寻
  1. 社区>
  2. >
  3. 正文

SpaceX载人龙飞船首飞前重要测试成功

作者:用户 来源:互联网 时间:2018-01-20 05:14:10 人气:6038 次

框架文件代码配置

PHPStorm配置支持友好的Laravel代码自动提示 - 摘要: 新空间航天是2014年开始筹备于2016年实施组建团队,2017年在深圳注册的私人太空运输公司,从事航天探索与航天运输系统、卫星应用系统、空间飞行器及空间飞行系统、无人装备系统等航空航天技术的开发,目前主要产品和服务有赤兔系列火箭发动机、SPACEMENG飞船、工业机器人、巨龙火星车、星际车、 增压泵、阀、3D打印机、3D打印耗材等航天工业设备的创新设计、生产制造、工艺教育和运营!

分类 现实数量定义


public function category($catid)

{
$catid = str_replace("template/category/","",$catid);
$catid=(int) $catid;

$search='';
if(!empty($catid)){
$sortpath=$this->db->fetch_one("select sort_path from ".WEBMENG_CONMENG."category_templates_web where cat_id='".$catid."' ");
$search.=" and catid in(select cat_id from ".WEBMENG_CONMENG."category_templates_web where sort_path like '".$sortpath."%' ) ";
}

//$sql = "select *,thumb as img,inputtime as addtime from ".WEBMENG_CONMENG."templates_web where status>0 order by inputtime desc ".$search;
$sql = "select *,thumb as img,inputtime as addtime from ".WEBMENG_CONMENG."templates_web where status>0  ".$search;

$all_goods = page_for_db_extend($sql,'',18);  //查询带分页的每一页显示18条记录
// $all_goods = page_for_db_extend($sql);  //查询带分页的
$data = array(
'info_reslut' => $all_goods['data'],
'showpage'    => $all_goods['page'],
'template_count' => $all_news['total'],
//'category_web'   => $template_list
'templates_web'   => $this->category_templates_web()
);
$this->display('cn/template/category.html',$data);
}



public function category_templates_web()
{
$goods_list  = $this->db->fetch("select cat_name as sortname,cat_id as id,parent_id from ".WEBMENG_CONMENG."category_templates_web  ");
$templates_web = array();
$parent = array();
if(!empty($goods_list)){
foreach ($goods_list as  $v) {
if($v['parent_id']==0){
$templates_web[] = $v;
}
$parent[$v['parent_id']][]=$v;
}
foreach ($templates_web as $k => $v) {
$templates_web[$k]['child'] = isset($parent[$v['id']])?$parent[$v['id']]:array();
if(!empty($templates_web[$k]['child'])){
foreach ($templates_web[$k]['child'] as $key => $value) {
$templates_web[$k]['child'][$key]['child'] = isset($parent[$value['id']])?$parent[$value['id']]:array();
}
}
}
}
return $templates_web;
}



相关文章

    暂无添加
暂无添加
40+云计算产品,6个月免费体验
更多>
    暂无添加
    暂无添加