当前位置: 首页>>代码示例>>PHP>>正文


PHP get_type_list函数代码示例

本文整理汇总了PHP中get_type_list函数的典型用法代码示例。如果您正苦于以下问题:PHP get_type_list函数的具体用法?PHP get_type_list怎么用?PHP get_type_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_type_list函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 public function index()
 {
     $is_subsite = false;
     $row = array();
     $type_list = get_type_list('acategory', 'id,type_nid,type_set');
     $type_nid = get_type_leve();
     //获得所有栏目自己的nid的组合  //根据type_nid获得id
     $xurl_tmp = explode("/", trim($_SERVER['REQUEST_URI'], '/'));
     //获得组合的type_nid   Array ( [0] => [1] => cfkt [2] => )
     $zu = $xurl_tmp[0];
     //组合  cfkt
     //print_r($type_nid);
     $typeid = $type_nid[$zu];
     $typeset = $type_list[$typeid]['type_set'];
     if ($typeset == 1) {
         //列表
         $templet = "list_index";
     } else {
         //单页
         $templet = "index_index";
     }
     if ($typeset == 1) {
         $parm['pagesize'] = 15;
         $parm['type_id'] = $typeid;
         $list = zwgetArticleList($parm);
         $vo = D('Acategory')->find($typeid);
         //                if($vo['parent_id']<>0) $this->assign('cname',D('Acategory')->getFieldById($vo['parent_id'],'type_name'));
         //                else $this->assign('cname',$vo['type_name']);
         $this->assign("vo", $vo);
         $this->assign("list", $list['list']);
         $this->assign("pagebar", $list['page']);
     } else {
         $vo = D('Acategory')->find($typeid);
         //                    if($vo['parent_id']<>0) $this->assign('cname',D('Acategory')->getFieldById($vo['parent_id'],'type_name'));
         //                     else $this->assign('cname',$vo['type_name']);
         $this->assign("vo", $vo);
     }
     $this->assign("active_bar", 'index');
     $this->display($templet);
 }
开发者ID:GStepOne,项目名称:CI,代码行数:40,代码来源:AboutAction.class.php

示例2: get_type_list

    $smarty->assign('full_page', 1);
    $list = get_type_list();
    $smarty->assign('type_list', $list['item']);
    $smarty->assign('filter', $list['filter']);
    $smarty->assign('record_count', $list['record_count']);
    $smarty->assign('page_count', $list['page_count']);
    $sort_flag = sort_flag($list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    assign_query_info();
    $smarty->display('bonus_type.htm');
}
/*------------------------------------------------------ */
//-- 翻页、排序
/*------------------------------------------------------ */
if ($_REQUEST['act'] == 'query') {
    $list = get_type_list();
    $smarty->assign('type_list', $list['item']);
    $smarty->assign('filter', $list['filter']);
    $smarty->assign('record_count', $list['record_count']);
    $smarty->assign('page_count', $list['page_count']);
    $sort_flag = sort_flag($list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('bonus_type.htm'), '', array('filter' => $list['filter'], 'page_count' => $list['page_count']));
}
/*------------------------------------------------------ */
//-- 编辑红包类型名称
/*------------------------------------------------------ */
if ($_REQUEST['act'] == 'edit_type_name') {
    check_authz_json('bonus_manage');
    $id = intval($_POST['id']);
    $val = json_str_iconv(trim($_POST['val']));
开发者ID:norain2050,项目名称:mhFault,代码行数:31,代码来源:bonus.php

示例3: get_area_type_infos

function get_area_type_infos($area_id = 0)
{
    $row = array();
    $type_list = get_type_list('aacategory', 'id,type_nid,type_set,area_id');
    if (!isset($_GET['typeid'])) {
        $type_nid = get_area_type_leve(0, $area_id);
        //获得所有栏目自己的nid的组合
        $rurl = explode("?", $_SERVER['REQUEST_URI']);
        $xurl_tmp = explode("/", str_replace(array("index.html", ".html"), array('', ''), $rurl[0]));
        //获得组合的type_nid
        $zu = implode("-", array_filter($xurl_tmp));
        //组合
        //print_r($type_nid);
        $typeid = $type_nid[$area_id . $zu];
        $typeset = $type_list[$typeid]['type_set'];
    } else {
        $typeid = intval($_GET['typeid']);
        $typeset = $type_list[$typeid]['type_set'];
    }
    if ($typeset == 1) {
        //列表
        $templet = "list_index";
    } else {
        //单页
        $templet = "index_index";
    }
    $row['typeset'] = $typeset;
    $row['templet'] = $templet;
    $row['typeid'] = $typeid;
    return $row;
}
开发者ID:hutao1004,项目名称:yintt,代码行数:31,代码来源:Lib.php

示例4: admin_priv

 //        {
 //            sys_msg($_LANG['disable_ok'], 0, $link);
 //        }
 //        else
 //        {
 //            sys_msg($_LANG['disable_error'], 1, $link);
 //        }
 //
 //        break;
 /* 显示短信发送界面,如果尚未注册或启用短信服务则显示注册界面。 */
 case 'display_send_ui':
     /* 检查权限 */
     admin_priv('sms_send');
     if ($sms->has_registered()) {
         $smarty->assign('ur_here', $_LANG['03_sms_send']);
         $special_ranks = get_type_list();
         $send_rank['1_0'] = $_LANG['user_list'];
         //foreach($special_ranks as $rank_key => $rank_value)
         foreach ($special_ranks as $val) {
             $send_rank['2_' . $val['type_id']] = $val['type_name'] . '[' . $val['num'] . ']';
         }
         $smarty->assign('country_list', get_regions());
         $smarty->assign('province_list', get_regions(1, 1));
         assign_query_info();
         $smarty->assign('send_rank', $send_rank);
         $smarty->display('sms_send_ui.htm');
     } else {
         $smarty->assign('ur_here', $_LANG['register_sms']);
         $smarty->assign('sms_site_info', $sms->get_site_info());
         assign_query_info();
         $smarty->display('sms_register_ui.htm');
开发者ID:554119220,项目名称:kjrscrm,代码行数:31,代码来源:sms.php

示例5: get_type_list

      <label class="form-label col-3"><span class="c-red">*</span>标签:</label>
      <div class="formControls col-5 skin-minimal">
		<label class="item"><input name="tagid[]" type="checkbox" value="1"> 标签1</label>
		<label class="item"><input name="tagid[]" type="checkbox" value="2"> 标签2</label>
		<label class="item"><input name="tagid[]" type="checkbox" value="3"> 标签3</label>
		<label class="item"><input name="tagid[]" type="checkbox" value="4"> 标签4</label>
      </div>
      <div class="col-4"> </div>
    </div>
    <div class="row cl">
      <label class="form-label col-3">所属分类:</label>
      <div class="formControls col-5"> <span class="select-box">
        <select class="select" size="1" name="typeid" datatype="*" nullmsg="请选择所属分类!">
          <option value="" selected>请选择所属分类</option>
          <?php 
$_result = get_type_list();
if (is_array($_result)) {
    $i = 0;
    $__LIST__ = $_result;
    if (count($__LIST__) == 0) {
        echo "";
    } else {
        foreach ($__LIST__ as $key => $vo) {
            $mod = $i % 2;
            ++$i;
            ?>
<option value="<?php 
            echo $vo["id"];
            ?>
"><?php 
            echo $vo["title"];
开发者ID:skyling,项目名称:bookz,代码行数:31,代码来源:c83badb0a387ad4ae1012f430bc45517.php


注:本文中的get_type_list函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。