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


PHP GetAllType函数代码示例

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


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

示例1: CategoryType

					<option value="-1">请选择所属栏目</option>
					<?php 
CategoryType(1);
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<?php 
if ($cfg_maintype == 'Y') {
    ?>
		<tr>
			<td height="40" align="right">类 别:</td>
			<td><select name="mainid" id="mainid">
					<option value="-1">请选择所属类别</option>
					<?php 
    GetAllType('#@__maintype', '#@__infolist', 'mainid');
    ?>
				</select>
				<span class="maroon">*</span></td>
		</tr>
		<?php 
}
?>
		<tr>
			<td height="40" align="right">文章标题:</td>
			<td><input type="text" name="title" id="title" class="input" />
				<span class="maroon">*</span>
				<div class="titlePanel">
					<input type="hidden" name="colorval" id="colorval" />
					<input type="hidden" name="boldval" id="boldval" />
					<span onclick="colorpicker('colorpanel','colorval','title');" class="color" title="标题颜色"> </span> <span id="colorpanel"></span> <span onclick="blodpicker('boldval','title');" class="blod" title="标题加粗"> </span> <span onclick="clearpicker()" class="clear" title="清除属性">[#]</span> &nbsp; </div></td>
开发者ID:wtySk,项目名称:github,代码行数:31,代码来源:infolist_add.php

示例2: GetAllType

function GetAllType($tbname = '', $tbname2 = '', $colname = '', $id = 0, $i = 0)
{
    global $dosql, $cfg_siteid;
    if (isset($_GET['id'])) {
        $r = $dosql->GetOne("SELECT `{$colname}` FROM `{$tbname2}` WHERE `id`=" . intval($_GET['id']));
    }
    //商品分类与商品品牌不区分站点
    if ($tbname != '#@__goodstype' && $tbname != '#@__goodsbrand') {
        $sql = "SELECT * FROM `{$tbname}` WHERE `siteid`='{$cfg_siteid}' AND `parentid`={$id} ORDER BY orderid ASC";
    } else {
        $sql = "SELECT * FROM `{$tbname}` WHERE `parentid`={$id} ORDER BY orderid ASC";
    }
    $dosql->Execute($sql, $id);
    $i++;
    while ($row = $dosql->GetArray($id)) {
        $selected = '';
        if (isset($r) && is_array($r)) {
            if ($row['id'] == $r["{$colname}"]) {
                $selected = 'selected="selected"';
            }
        }
        echo '<option value="' . $row['id'] . '" ' . $selected . '>';
        for ($n = 1; $n < $i; $n++) {
            echo '&nbsp;&nbsp;&nbsp;&nbsp;';
        }
        if ($row['parentid'] != 0) {
            echo '|- ';
        }
        echo $row['classname'] . '</option>';
        GetAllType($tbname, $tbname2, $colname, $row['id'], $i);
    }
}
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:32,代码来源:admin.func.php

示例3: GetAllType

    } else {
        $selected = '';
    }
    echo "<option value=\"" . $row2['id'] . "\" {$selected}>" . $row2['modeltitle'] . "</option>";
}
?>
				</select>
				<span class="maroon">*</span></td>
			<td><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">所属栏目:</td>
			<td><select name="parentid" id="parentid" onchange="GetCatpSize(this.value);">
					<option value="0">一级栏目</option>
					<?php 
GetAllType('#@__infoclass', '#@__infoclass', 'parentid');
?>
				</select>
				<span class="maroon">*</span></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td height="40" align="right">栏目名称:</td>
			<td><input name="classname" type="text" id="classname" value="<?php 
echo $row['classname'];
?>
"  class="input" />
				<span class="maroon">*</span></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:infoclass_update.php

示例4: CategoryType

					<option value="-1">请选择所属栏目</option>
					<?php 
CategoryType(3);
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<?php 
if ($cfg_maintype == 'Y') {
    ?>
		<tr>
			<td height="40" align="right">类 别:</td>
			<td><select name="mainid" id="mainid">
					<option value="-1">请选择所属类别</option>
					<?php 
    GetAllType('#@__maintype', '#@__soft', 'mainid');
    ?>
				</select>
				<span class="maroon">*</span></td>
		</tr>
		<?php 
}
?>
		<tr>
			<td height="40" align="right">软件名称:</td>
			<td><input type="text" name="title" id="title" class="input" />
				<span class="maroon">*</span>
				<div class="titlePanel">
					<input type="hidden" name="colorval" id="colorval" />
					<input type="hidden" name="boldval" id="boldval" />
					<span onclick="colorpicker('colorpanel','colorval','title');" class="color" title="标题颜色"> </span> <span id="colorpanel"></span> <span onclick="blodpicker('boldval','title');" class="blod" title="标题加粗"> </span> <span onclick="clearpicker()" class="clear" title="清除属性">[#]</span> &nbsp; </div></td>
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:soft_add.php

示例5: cfm_btype

<title>添加商品分类</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/getuploadify.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<div class="formHeader"> <span class="title">添加商品分类</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="goodstype_save.php" onsubmit="return cfm_btype();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td width="25%" height="40" align="right">所属类别:</td>
			<td width="75%"><select name="parentid" id="parentid">
					<option value="0">一级商品分类</option>
					<?php 
GetAllType('#@__goodstype', '#@__goodstype', 'id');
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">类别名称:</td>
			<td><input type="text" name="classname" id="classname" class="input" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
			<td height="40" align="right">缩略图片:</td>
			<td><input type="text" name="picurl" id="picurl" class="input" />
				<span class="cnote"><span class="grayBtn" onclick="GetUploadify('uploadify','缩略图上传','image','image',1,<?php 
echo $cfg_max_file_size;
?>
开发者ID:wtySk,项目名称:github,代码行数:31,代码来源:goodstype_add.php

示例6: GetAllType

    } else {
        $selected = '';
    }
    echo "<option value=\"" . $row['id'] . "\" {$selected}>" . $row['modeltitle'] . "</option>";
}
?>
				</select>
				<span class="maroon">*</span></td>
			<td><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">所属栏目:</td>
			<td><select name="parentid" id="parentid" onchange="GetCatpSize(this.value);">
					<option value="0">一级栏目</option>
					<?php 
GetAllType('#@__infoclass', '#@__infoclass', 'id');
?>
				</select>
				<span class="maroon">*</span></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td height="40" align="right">栏目名称:</td>
			<td><input name="classname" type="text" id="classname" class="input" />
				<span class="maroon">*</span></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td height="40" align="right">缩略图片:</td>
			<td><input name="picurl" type="text" id="picurl" class="input" />
				<span class="cnote"><span class="grayBtn" onclick="GetUploadify('uploadify','缩略图上传','image','image',1,<?php 
开发者ID:wtySk,项目名称:github,代码行数:31,代码来源:infoclass_add.php

示例7: CategoryType

					<option value="-1">请选择所属栏目</option>
					<?php 
CategoryType(2);
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<?php 
if ($cfg_maintype == 'Y') {
    ?>
		<tr>
			<td height="40" align="right">类 别:</td>
			<td><select name="mainid" id="mainid">
					<option value="-1">请选择所属类别</option>
					<?php 
    GetAllType('#@__maintype', '#@__infoimg', 'mainid');
    ?>
				</select>
				<span class="maroon">*</span></td>
		</tr>
		<?php 
}
?>
		<tr>
			<td height="40" align="right">文章标题:</td>
			<td><input type="text" name="title" id="title" class="input" />
				<span class="maroon">*</span>
				<div class="titlePanel">
					<input type="hidden" name="colorval" id="colorval" />
					<input type="hidden" name="boldval" id="boldval" />
					<span onclick="colorpicker('colorpanel','colorval','title');" class="color" title="标题颜色"> </span> <span id="colorpanel"></span> <span onclick="blodpicker('boldval','title');" class="blod" title="标题加粗"> </span> <span onclick="clearpicker()" class="clear" title="清除属性">[#]</span> &nbsp; </div></td>
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:infoimg_add.php

示例8: cfm_btype

<script type="text/javascript" src="templates/js/getuploadify.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<?php 
$row = $dosql->GetOne("SELECT * FROM `#@__goodstype` WHERE `id`={$id}");
?>
<div class="formHeader"> <span class="title">修改商品分类</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="goodstype_save.php" onsubmit="return cfm_btype();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td width="25%" height="40" align="right">所属类别:</td>
			<td width="75%"><select name="parentid" id="parentid">
					<option value="0">一级商品分类</option>
					<?php 
GetAllType('#@__goodstype', '#@__goodstype', 'parentid');
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">类别名称:</td>
			<td><input type="text" name="classname" id="classname" class="input" value="<?php 
echo $row['classname'];
?>
" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
			<td height="40" align="right">图片地址:</td>
			<td><input type="text" name="picurl" id="picurl" class="input" value="<?php 
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:goodstype_update.php

示例9: cfm_btype

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加二级类别</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<div class="formHeader"> <span class="title">添加二级类别</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="maintype_save.php" onsubmit="return cfm_btype();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td width="25%" height="40" align="right">所属类别:</td>
			<td width="75%"><select name="parentid" id="parentid">
					<option value="0">一级分类</option>
					<?php 
GetAllType('#@__maintype', '#@__maintype', 'id');
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">类别名称:</td>
			<td><input type="text" name="classname" id="classname" class="input" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
			<td height="40" align="right">排列顺序:</td>
			<td><input type="text" name="orderid" id="orderid" class="inputs" value="<?php 
echo GetOrderID('#@__maintype');
?>
" /></td>
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:maintype_add.php

示例10: cfm_weblink

<script type="text/javascript" src="templates/js/checkf.func.js"></script>
<script type="text/javascript" src="plugin/calendar/calendar.js"></script>
</head>
<body>
<?php 
$row = $dosql->GetOne("SELECT * FROM `#@__weblink` WHERE `id`={$id}");
?>
<div class="formHeader"> <span class="title">修改友情链接</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="weblink_save.php" onsubmit="return cfm_weblink();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td width="25%" height="40" align="right">链接类型:</td>
			<td width="75%"><select name="classid" id="classid">
					<option value="-1">请选择链接类型</option>
					<?php 
GetAllType('#@__weblinktype', '#@__weblink', 'classid');
?>
				</select>
				<span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">网站名称:</td>
			<td><input type="text" name="webname" id="webname" class="input" value="<?php 
echo $row['webname'];
?>
" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
			<td height="40" align="right">跳转链接:</td>
			<td><input type="text" name="linkurl" id="linkurl" class="input" value="<?php 
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:weblink_update.php

示例11: GetAllType

		</tr>
		<tr>
			<td height="40" align="right">商品分类:</td>
			<td><select name="typeid" id="typeid" onchange="GetAttr(this.value)">
					<option value="-1">请选择所属分类</option>
					<?php 
GetAllType('#@__goodstype', '#@__goods', 'typeid');
?>
				</select></td>
		</tr>
		<tr>
			<td height="40" align="right">商品品牌:</td>
			<td><select name="brandid" id="brandid">
					<option value="-1">请选择所属品牌</option>
					<?php 
GetAllType('#@__goodsbrand', '#@__goods', 'brandid');
?>
				</select></td>
		</tr>
		<tr>
			<td height="40" align="right">商品名称:</td>
			<td><input type="text" name="title" id="title" class="input" value="<?php 
echo $row['title'];
?>
" <?php 
echo 'style="color:' . $row['colorval'] . ';font-weight:' . $row['boldval'] . ';"';
?>
 />
				<span class="maroon">*</span>
				<div class="titlePanel">
					<input type="hidden" name="colorval" id="colorval" value="<?php 
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:goods_update.php

示例12: cfm_btype

<title>添加商品品牌</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/getuploadify.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<div class="formHeader"> <span class="title">添加商品品牌</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="goodsbrand_save.php" onsubmit="return cfm_btype();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td width="25%" height="40" align="right">所属品牌:</td>
			<td width="75%"><select name="parentid" id="parentid">
					<option value="0">一级品牌分类</option>
					<?php 
GetAllType('#@__goodsbrand', '#@__goodsbrand', 'id');
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">品牌名称:</td>
			<td><input type="text" name="classname" id="classname" class="input" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
			<td height="40" align="right">图片地址:</td>
			<td><input type="text" name="picurl" id="picurl" class="input" />
				<span class="cnote"><span class="grayBtn" onclick="GetUploadify('uploadify','缩略图上传','image','image',1,<?php 
echo $cfg_max_file_size;
?>
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:goodsbrand_add.php

示例13: cfm_nav

<title>添加导航菜单</title>
<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/getuploadify.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<div class="formHeader"> <span class="title">添加导航菜单</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="nav_save.php" onsubmit="return cfm_nav();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td height="40" align="right" width="25%">所属分类:</td>
			<td width="75%"><select name="parentid" id="parentid">
					<option value="0">一级导航分类</option>
					<?php 
GetAllType('#@__nav', '#@__nav', 'id');
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">导航名称:</td>
			<td><input type="text" name="classname" id="classname" class="input" />
				<span class="maroon">*</span><span class="cnote">导航图片不为空,则以导航图片为优先级展示</span></td>
		</tr>
		<tr>
			<td height="40" align="right">跳转链接:</td>
			<td><input type="text" name="linkurl" id="linkurl" class="input" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:nav_add.php

示例14: cfm_adtype

<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<?php 
$row = $dosql->GetOne("SELECT * FROM `#@__adtype` WHERE `id`={$id}");
?>
<div class="formHeader"> <span class="title">修改广告位</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="adtype_save.php" onsubmit="return cfm_adtype();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td width="25%" height="40" align="right">所属广告位:</td>
			<td width="75%"><select name="parentid" id="parentid">
					<option value="0">一级广告位</option>
					<?php 
GetAllType('#@__adtype', '#@__adtype', 'parentid');
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">广告位名称:</td>
			<td><input name="classname" type="text" id="classname" class="input" value="<?php 
echo $row['classname'];
?>
" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
			<td height="40" align="right">广告位尺寸:</td>
			<td><input type="text" name="width" id="width" class="inputls" value="<?php 
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:adtype_update.php

示例15: cfm_btype

<script type="text/javascript" src="templates/js/jquery.min.js"></script>
<script type="text/javascript" src="templates/js/checkf.func.js"></script>
</head>
<body>
<?php 
$row = $dosql->Getone("SELECT * FROM `#@__weblinktype` WHERE `id`={$id}");
?>
<div class="formHeader"> <span class="title">修改链接类别</span> <a href="javascript:location.reload();" class="reload">刷新</a> </div>
<form name="form" id="form" method="post" action="weblinktype_save.php" onsubmit="return cfm_btype();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="formTable">
		<tr>
			<td width="25%" height="40" align="right">所属类别:</td>
			<td width="75%"><select name="parentid" id="parentid">
					<option value="0">一级友情链接</option>
					<?php 
GetAllType('#@__weblinktype', '#@__weblinktype', 'parentid');
?>
				</select>
				<span class="maroon">*</span><span class="cnote">带<span class="maroon">*</span>号表示为必填项</span></td>
		</tr>
		<tr>
			<td height="40" align="right">类别名称:</td>
			<td><input type="text" name="classname" id="classname" class="input" value="<?php 
echo $row['classname'];
?>
" />
				<span class="maroon">*</span></td>
		</tr>
		<tr>
			<td height="40" align="right">排列顺序:</td>
			<td><input type="text" name="orderid" id="orderid" class="inputs" value="<?php 
开发者ID:beijizhou,项目名称:xinjiang001,代码行数:31,代码来源:weblinktype_update.php


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