• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getTypeList函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: editpost

 /**
  * 编辑主题时页面新增的表单项目
  * @param Integer $fid: 版块ID
  * @param Integer $tid: 当前帖子ID
  * @return string 通过 return 返回即可输出到编辑主题页面中 
  */
 public function editpost($fid, $tid)
 {
     require_once './function/feedback.php';
     $typelist = getTypeList();
     $thread["proposalinfo"] = getFeedback($tid, $fid);
     include template('forum/post_proposal');
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:13,代码来源:product_proposal.class.php


示例2: getSelectBox

function getSelectBox($language, $table, $name, $title, $checked, $onchange = NULL, $Town_id = NULL)
{
    switch ($table) {
        case 'jea_kind':
            $rows = getKindList($language);
            break;
        case 'jea_legal':
            $rows = getLegalList($language);
            break;
        case 'jea_position':
            $rows = getPositionList($language);
            break;
        case 'jea_direction':
            $rows = getDirectionList($language);
            break;
        case 'jea_area_unit':
            $rows = getAreaUnitList($language);
            break;
        case 'jea_type':
            $rows = getTypeList($language);
            break;
        case 'jea_town':
            $rows = getTownList($language);
            break;
        case 'jea_area':
            $rows = getAreaList($Town_id, $language);
            break;
    }
    $html = '';
    $html .= "<select name='{$name}' id='{$name}'  {$onchange} >";
    if (!empty($title)) {
        $html .= "<option value='0'>{$title}</option>";
    }
    foreach ($rows as $row) {
        $selected = '';
        $selected = $row[0] == $checked ? 'selected = selected' : '';
        $html .= "<option  value={$row['0']} {$selected} >{$row['1']}</option>";
    }
    $html .= "</select>";
    return $html;
}
开发者ID:omarmm,项目名称:MangLuoiBDS,代码行数:41,代码来源:view.html.php


示例3: getTypeList

  <div id="topLower" >

 
   <div class="internal">
   
    <div id="logo"><a href="__APP__/"><img src="__ROOT__/Style/gold/images/logo.png" width="235" height="90" alt="#" /></a></div>
 
<div style="padding-top:35px">
    <ul>
	<?php $typelist = getTypeList(array('type_id'=>0,'limit'=>10)); foreach($typelist as $vtype=> $va){ ?>
     	<li for="first"><a class="af" href="<?php echo ($va["turl"]); ?>" <?php if($va["is_blank"])echo 'target="_blank"'; ?>><?php echo ($va["type_name"]); ?></a>
        
      <!-- <span class="icon-dd"></span>-->
        
        
		<?php $sontypelist = getTypeList(array('type_id'=>$va['id'],'limit'=>10,'notself'=>true)); if(count($sontypelist)>0) echo "" ;if(count($sontypelist)>0) echo "<ol style='display:none'>"; foreach($sontypelist as $sonvtype){ ?>
		<li><a href="<?php echo ($sonvtype["turl"]); ?>" <?php if($sonvtype["is_blank"])echo 'target="_blank"'; ?>><?php echo ($sonvtype["type_name"]); ?></a></li>
		<?php } if(count($sontypelist)>0) echo '</ol>'; ?>
     	</li>
		
	<?php } ?>
	
	
	
	
	
	
	
	</ul>
	</div>
开发者ID:hutao1004,项目名称:yintt,代码行数:30,代码来源:6d0702b4240f5b5ab44c70fd5c42e54c.php


示例4: getTypeList

    }
    ?>
            </a>
            <div class="navigation-list-two-con" id="dw_ul2">
                <?php 
    if ($sontypelist != null) {
        ?>
              <div class="navigation-list-two">
                <?php 
        $sontypelist = getTypeList(array('type_id' => $va['id'], 'limit' => 8, 'notself' => true));
        ?>
                <span class="loanImg nav-sanjiao"></span>

                <ul class="navigation-two-list" id="erji_nav">
                  <?php 
        $sontypelist = getTypeList(array('type_id' => $va['id'], 'limit' => 8, 'notself' => true));
        foreach ($sontypelist as $sonvtype) {
            ?>
                  <li><a href="<?php 
            echo $sonvtype["turl"];
            ?>
"  ><?php 
            echo $sonvtype["type_name"];
            ?>
</a></li>
                  <?php 
        }
        ?>
                </ul>

              </div>
开发者ID:GStepOne,项目名称:CI,代码行数:31,代码来源:5d886ea855a453c1832e3fe3c5a01b2f.php


示例5: kf

 public function kf()
 {
     $kflist = M("ausers")->where("is_kf=1")->select();
     $this->assign("kflist", $kflist);
     //left
     $listparm['type_id'] = 0;
     $listparm['limit'] = 20;
     if ($_GET['type'] == "subsite") {
         $listparm['area_id'] = $this->siteInfo['id'];
         $leftlist = getAreaTypeList($listparm);
     } else {
         $leftlist = getTypeList($listparm);
     }
     $this->assign("leftlist", $leftlist);
     $this->assign("cid", $typeid);
     if ($_GET['type'] == "subsite") {
         $vop = D('Aacategory')->field('type_name,parent_id')->find($typeid);
         if ($vop['parent_id'] != 0) {
             $this->assign('cname', D('Aacategory')->getFieldById($vop['parent_id'], 'type_name'));
         } else {
             $this->assign('cname', $vop['type_name']);
         }
     } else {
         $vop = D('Acategory')->field('type_name,parent_id')->find($typeid);
         if ($vop['parent_id'] != 0) {
             $this->assign('cname', D('Acategory')->getFieldById($vop['parent_id'], 'type_name'));
         } else {
             $this->assign('cname', $vop['type_name']);
         }
     }
     $this->display();
 }
开发者ID:GStepOne,项目名称:CI,代码行数:32,代码来源:HelpAction.class.php


示例6: main


//.........这里部分代码省略.........
function ShowPDIV(i,p){
    if($("#type_P_CID_"+i)[0].length==0){
	    var v = $("#type_H_V")[0].innerHTML.split('@|@');
		$("#type_P_CID_"+i)[0].options[0] = new Option("作为顶级","0");
		for(j=1;j<v.length;j++){
		    $("#type_P_CID_"+i)[0].options[j] = new Option(v[j].split('|=|')[1],v[j].split('|=|')[0]);
			if(p==v[j].split('|=|')[0]) $("#type_P_CID_"+i)[0].options[j].selected = true;
		}
	}	
	$("#type_P_DIV_"+i)[0].style.display = ($("#type_P_DIV_"+i)[0].style.display == "none") ? "block" : "none";
}
function SelectPid(p,i){
	window.location.href = '?action=editid&typeid='+i+'&t_pid='+p;
}
</script>
<form action="" method="post" id="form1" name="form1">
<table class="tb2">
	<tr>
	<td>&nbsp;</td>
	<td width="35" align="center">编号</td>
	<td width="15%">名称</td>
	<td width="10%">关键字</td>
	<td width="15%">描述</td>
	<td width="5%">排序</td>
	<td width="25%">操作</td>
	</tr>
	<?php 
    $type = be("all", "type");
    if (isNum($type)) {
        $type = intval($type);
    } else {
        $type = 0;
    }
    getTypeList($type);
    ?>
	<tr>
	<td colspan="8"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onClick="checkAll(this.checked,'t_id[]')" /> 全选
	&nbsp;<input type="button" value="批量修改" id="btnEdit" class="input" />
	&nbsp;<input type="button" value="添加" id="btnAdd" class="input" />
<!--	&nbsp;<input type="button" value="数据转移" id="btnMove" class="input" />-->
	</td>
	</tr>
</table>
</form>
<div id="type_H_V" style="display:none"><?php 
    echo $arrtype;
    ?>
</div>


<div id="win1" class="easyui-window" title="窗口" style="padding:5px;width:400px;" closed="true" closable="false" minimizable="false" maximizable="false">
<form action="admin_ajax.php?action=save&tab=apk_category" method="post" id="form2" name="form2">
<table class="tb">
	<input id="flag" name="flag" type="hidden" value="add">
	<tr>
	<td width="20%">父级分类:</td>
	<td><select id="parent_id" name="parent_id">
      <option value="0">顶级分类</option>
    	<?php 
    echo makeSelectAll("apk_category", "id", "name", "parent_id", "disp_order", 0, "", "&nbsp;|&nbsp;&nbsp;", "");
    ?>
	  </select>
	</td>
	</tr>
	<tr>
	<td>名称:</td>
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:67,代码来源:admin_apk_category.php


示例7: getTypeList

echo _pax;
?>
</label>
			<p>
				<input type="text" name="reservation_pax" id="reservation_pax" class="required digits width-50" title=' ' value='<?php 
echo $row->reservation_pax;
?>
'/>
			</p>
		    <label><?php 
echo _type;
?>
</label>
			<p>
					<?php 
echo getTypeList($row->reservation_hotelguest_yn, 'enabled');
?>
		    </p>
			<label><?php 
echo _phone_room;
?>
</label>
			<p>
				<input type="text" name="reservation_guest_phone" id="reservation_guest_phone" value='<?php 
echo $row->reservation_guest_phone;
?>
' />
			</p>
			<label><?php 
echo _note;
?>
开发者ID:namaris,项目名称:Can_Pages,代码行数:31,代码来源:reservation_form.inc.php


示例8: getTypeList

		<br/>
		<p>
		<label><?php 
echo _pax;
?>
*</label><br/>
			<input type="text" name="reservation_pax" id="reservation_pax" class="required digits width-50" title=' ' />
		</p>
		<br/>
		<p>
	    <label><?php 
echo _type;
?>
*</label><br/>
				<?php 
getTypeList();
?>
		</p>
		<br/>
		<p>
		<label><?php 
echo _phone_room;
?>
</label><br/>
			<input type="text" name="reservation_guest_phone" id="reservation_guest_phone"/>
		</p>
		<br/>
		<p>
		<label><?php 
echo _email;
?>
开发者ID:namaris,项目名称:Can_Pages,代码行数:31,代码来源:new.inc.php


示例9: getTypeList

		</p>
		<br/>
		<p>
		<label><?php 
echo _pax;
?>
*</label><br/>
			<input type="text" name="reservation_pax" id="reservation_pax" class="required digits width-50" title=' ' />
		</p>
		<br/>
		<p>
	    <label><?php 
echo _type;
?>
*</label><br/>
				<? getTypeList();?>
		</p>
		<br/>
		<p>
		<label><?php 
echo _phone_room;
?>
</label><br/>
			<input type="text" name="reservation_guest_phone" id="reservation_guest_phone"/>
		</p>
		<br/>
		<p>
		<label><?php 
echo _note;
?>
</label><br/>
开发者ID:hellovic,项目名称:myseat,代码行数:31,代码来源:new.inc.php


示例10: get_ad

            <div class="clear"></div>
            </ul>
        </div>
        <div class="clear"></div>
    </div>
</div>

<div class="under">
	<div class="under_1000">
        <div class="logo_left"><a href="/p2p/index.php/home/index.html"><?php 
echo get_ad(1);
?>
</a></div>
        <div class="content_nav">
			<?php 
$typelist = getTypeList(array('type_id' => 0, 'limit' => 9));
foreach ($typelist as $vtype => $va) {
    ?>
            <a id="<?php 
    echo $va["type_nid"];
    ?>
" href="/p2p<?php 
    echo $va["turl"];
    ?>
" class=""><?php 
    echo $va["type_name"];
    ?>
</a>
            <?php 
}
?>
开发者ID:kinglong366,项目名称:p2p,代码行数:31,代码来源:cb6e053e31eae77baa8d17b42ff91420.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getTypes函数代码示例发布时间:2022-05-15
下一篇:
PHP getType函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap