=dlookup("[二级分类]""[基础数据]","[物业资质三级升二级分类]="-&Form![Combo364]!"物业资质三级升二级分类")

&%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Category_Manage_New_Two.aspx.cs"
Inherits="Lilaidao.Admin.Weblogin.Category_Manage_New_Two" %&
&%@ Register Src="bottom.ascx" TagName="bottom" TagPrefix="V5" %&
主要代码如下&!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&
&html xmlns="http://www.w3.org/1999/xhtml"&
&head id="Head1" runat="server"&
&title&商品分类管理&/title&
&link href="css/css.css" rel="stylesheet" type="text/css" /&
&link href="css/css_list.css" rel="stylesheet" type="text/css" /&
&link href="css/control.css" rel="stylesheet" type="text/css" /&
&script language="javascript" type="text/javascript" src="js/Common.js"&&/script&
&script src="js/jquery-1.3.2.min.js" type="text/javascript"&&/script&
&script type="text/javascript"&
$(function () {
$("input[name='Category1']").click(function () {
var idvalue = $(this).val();
var check = this.checked;
var idvalue2;
var check2;
$("input[name='Category2']").each(function (index, ele) {
if ($(ele).attr("ParentId") == idvalue) {
ele.checked =
idvalue2 = $(ele).val();
check2 = ele.checked;
$("input[name='Category3']").each(function (index, ele) {
if ($(ele).attr("ParentId") == idvalue2) {
ele.checked = check2;
$("input[name='Category2']").click(function () {
var parentId = $(this).attr("ParentId") //得到二级分类的父Id
var check = this.checked; //二级分类的选中状态
$("input[name='Category1']").each(function (index, ele) {
if ($(ele).val() == parentId) {
var idvalue = $(this).val()
//得到一级分类的id
//var countOne = $("input[type='checkbox'][parentid='" + idvalue + "']").length //得到二级分类选择框总数
//得到二级分类选择的个数如果大于0 一级分类选中
var count = $("input[type='checkbox'][parentid='" + idvalue + "']:checked").
count & 0 ? ele.checked = true : ele.checked = false;
idvalue2 = $(this).val(); //得到三级分类的父id
check2 = this.checked; //二级分类的选中状态
$("input[name='Category3']").each(function (index, ele) {
if ($(ele).attr("ParentId") == idvalue2) {
ele.checked = check2;
$("input[name='Category3']").click(function () {
var parentId = $(this).attr("ParentId") //得到三级分类的父Id
var check = this.checked; //三级分类的选中状态
$("input[name='Category2']").each(function (index, ele) {
if ($(ele).val() == parentId) {
var idvalue = $(this).val()
//得到二级分类的id
//var countOne = $("input[type='checkbox'][parentid='" + idvalue + "']").length //得到二级分类选择框总数
//得到三级分类选择的个数如果大于0 二级分类选中 ,对应的一级分类也选中
var count = $("input[type='checkbox'][parentid='" + idvalue + "']:checked").
// count & 0 ? ele.checked = true : ele.checked =
if (count & 0) {
ele.checked = true //选中二级分类
var id1 = $(ele).attr("ParentId") //得到一级分类的id
$("input[type='checkbox'][value='" + id1 + "']").attr("checked", "checked"); //选中一级分类
ele.checked = false; //选中二级分类
var id1 = $(ele).attr("ParentId") //得到一级分类的id
$("input[type='checkbox'][value='" + id1 + "']").attr("checked", ""); //不选中一级分类
&form id="form1" method="post"&
&div class="OperateTitle"&
【 商品分类管理 】
&% foreach (var item1 in list1)
string checks1 = "";
if (item1.IsMarket==true)
checks1 = "checked='checked'";
type="checkbox" name="Category1"&%=checks1%& id=&%=item1.Id%& value= &%=item1.Id%& parentid="&%=item1.ParentId%&" / &
&label for=&%=item1.Id%&&&%=item1.Title %&&/label&
&% var listCate2 = cgbll.GetList(item1.Id, false);
if (listCate2.Count & 0)
&br /&&nbsp&nbsp
&% foreach (var item2 in listCate2)
string checks2 = "";
if (item1.IsMarket == true)
checks2 = "checked='checked'";
type="checkbox" name="Category2" &%=checks2%& id=&%=item2.Id%& value= &%=item2.Id%& parentid="&%=item2.ParentId%&" / & &label for=&%=item2.Id%&&&%=item2.Title %&&/label&
&% var listCate3 = cgbll.GetList(item2.Id, false);
if (listCate3.Count&0)
&br /&&nbsp&nbsp&nbsp&nbsp
&% foreach (var item3 in listCate3 )
string checks3 = "";
if (item1.IsMarket == true)
checks3 = "checked='checked'";
type="checkbox" name="Category3"&%=checks3%& id=&%=item3.Id%& value= &%=item3.Id%& parentid="&%=item3.ParentId%&"
/ & &label for=&%=item3.Id%&&&%=item3.Title %&&/label&
&br /&&nbsp&nbsp
&br /&&nbsp&nbsp
&input type="submit" value="保存" class="button" style="margin-left:50px"/&
&V5:bottom ID="bottom" runat="server" /&
阅读(...) 评论()Excel二级、三级分类汇总的设置方法,差一点就实现不了
Excel二级、三级分类汇总的设置方法,差一点就实现不了
在excel中,分类汇总是很好用的汇总工具,但很多同学只会一级汇总,无法完成多级的分类汇总。【例】源表格分类汇总的前提汇总项要排序,所以我们按日期和产品排序然后选取整个表格区域,数据 - 分类汇总,在打开的分类汇总窗口中进行如下图所示设置。一级分类汇总完成如果想完成二级(产品)的分类的汇总,只需要重新选取汇总后的区域,数据 - 分类汇总,在分类汇总上进行如下图设置。关键点就是一定要把“替换当前分类汇总”勾选去掉。按产品分类汇总后的效果如下:兰色说:如果还需要进行三级、四级...就重复上面的操作,只是把分类字段换一下。新同学,可以扫下面的二维码快速关注(也可以长按二维码图片,在弹出的菜单上点“识别图中二维码”然后点关注),兰色在等你加入我们的excel第一教室!
发表评论:
馆藏&12104
TA的最新馆藏[转]&[转]&[转]&[转]&[转]&总分类账户以下的二级账户和三级账户等都均为明细分类账户吗_百度知道Destoon B2B网站管理系统是一套完善的B2B(电子商务)行业门户解决方案。系统基于PHP+MySQL开发,采用B/S架构,模板与程序分离,源码开放。模型化的开发思路,可扩展或删除任何功能;创新的缓存技术与数据库设计,可负载不低于百万级别数据容量及访问。系统被数万b2b网站所采用,同时,也有数量巨大的开发者利用该系统进行二次开发。
本文讲解了在destoon下如何实现调用当前栏目分类及子分类和三级分类的方法,是一个非常有用的功能,希望对大家二次开发destoon有所帮助,感兴趣的同学参考下.
在destoon中提供了如下的调用语句:
一级分类名:
{$m[catname]}
二级分类名:
{$c[catname]}
三级分类名:
{$b[catname]}
具体调用示例如下:
一、直接调用分类名称和链接:
{loop $maincat $i $m}&dl&
{php $child = get_maincat($maincat, $CATEGORY, 1);}
&dt&&a href=&{$MOD[linkurl]}{$m[linkurl]}& rel=&external nofollow& rel=&external nofollow& &{$m[catname]}&/a&&/dt&
{php $childs = get_maincat($m[catid], $CATEGORY, 1);}
{loop $childs $i $c}&dd&&a href=&{$MOD[linkurl]}{$c[linkurl]}& rel=&external nofollow& rel=&external nofollow& rel=&external nofollow& &{$c[catname]}&/a&&/dd&{/loop}
&/dl&{/loop}
二、调用分类名和其下最新文章:
{loop $maincat $i $m}
{php $child = get_maincat($maincat, $CATEGORY, 1);}
&div class=&hq01&&
&div class=&hq-tt&&
&p&&h4&{$m[catname]}&/h4&
{php $a = get_maincat($m[catid], $CATEGORY, 1);}
{loop $a $g}
{php $f = get_maincat($g[catid], $CATEGORY, 1);}
{loop $f $i $b}
&span&&a href=&{$MOD[linkurl]}{$c[linkurl]}& rel=&external nofollow& rel=&external nofollow& rel=&external nofollow& &{$b[catname]}&/a&&/span&
&span class=&hqmore&&&a href=&{$MOD[linkurl]}{$m[linkurl]}& rel=&external nofollow& rel=&external nofollow& &[更多]&/a&&/span& &/p&
&div class=&clear&&&/div&
{php $childs = get_maincat($m[catid], $CATEGORY, 1);}
{loop $childs $i $c}
&div class=&hq-cc&&
&!--{php $tags=tag(&moduleid=$moduleid&condition=status=3&areaid=$cityid&length=40&catid=&.$c[catid].&&order=&.$MOD[order].&&pagesize=5&datetype=2&target=_blank&template=null&)}--&
&li class=&li-t&&&span&&a href=&{$MOD[linkurl]}{$c[linkurl]}& rel=&external nofollow& rel=&external nofollow& rel=&external nofollow& &---更多&/a&&/span&{$c[catname]}&/li&
{loop $tags $t}
&li&&!-- &span class=&f_r&&{date('Y-m-d', $t[addtime])} &/span& --&
&a href=&{$t[linkurl]}& rel=&external nofollow& {if $target} target=&{$target}&{/if}&{$t[title]}&/a&
&div class=&clear&&&/div&
&div class=&clear&&&/div&
我是爹 发布于 13:26:26
根本就不行....别你妈的瞎复制
(0)&&(0)&&
Copyright &
All Rights Reserved &&&&&&}

我要回帖

更多关于 二级钢和三级钢的区别 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信