<?
$result_1 = mysql_query("SELECT * FROM $morning_sub_table ORDER BY sub_id");
?>
<script language="javascript">
var onecount;
onecount=0;
subcat = new Array();
<?
$count = 0;
while($r = mysql_fetch_array($result_1)){
?>
subcat[<?=$count?>] = new Array("<?= $r["cat_name"]?>","<?= $r["cat_id"]?>","<?= $r["sub_id"]?>");
<?
$count++;
}
morning_free_result($result_1);
?>
onecount = <?=$count?>;
function changelocation(locationid)
{
document.myform.sub_id.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.sub_id.options[document.myform.sub_id.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</script>
<form name="myform" method="post" action="">
<table width="30%">
<tr>
<td>所在类型</td>
<td>
<select size="1" name="catid" id="catid" onChange="changelocation(document.myform.catid.options[document.myform.catid.selectedIndex].value)">
<option value="">--选择所在类型--</option>
<?
$result = mysql_query("SELECT * FROM $morning_cat_table");
while($r = mysql_fetch_array($result)){
?>
<option value="<?=$r['cat_id']?>"><?=$r['cat_name']?></option>
<?
$selclass = $r['cat_id'];
}
morning_free_result($result);
?>
</select></td>
</tr>
<? } ?>
<tr class="firstrow">
<td width="28%">所在栏目</td>
<td width="72%">
<select size="1" name="sub_id" >
<? if ($mod != 'edit'){ ?>
<option value="">--选择所在栏目--</option>
<? } ?>
<?
if (isset($list[sub_id]))
{
$res = mysql_query("SELECT * FROM $morning_sub_table WHERE sub_id = '$list[sub_id]'");
}
else
{
$res = mysql_query("select * from $morning_sub_table WHERE sub_id = '$selclass'");
}
while ($r = mysql_fetch_array($res)) {
?>
<option value="<?=$r[sub_id]?>"><?=$r[cat_name]?></option>
<?
}
morning_free_result($res);
?>
</select></td>
</tr>
</table>
</form>
<!--
**********************
说明:
表 morning_cat_table是类型表,字段:cat_id(类型id),cat_name(类型名称)
表 morning_sub_table是某个类型下的拦目,字段:sub_id(拦目id),cat_id(所属的类型id),cat_name(栏目名称)
**********************
-->
没有合适的资源?快使用搜索试试~ 我知道了~
美工极好的完整公司站点(绝对无错)
共610个文件
gif:317个
jpg:134个
asp:106个
需积分: 0 7 下载量 76 浏览量
2009-01-06
19:01:53
上传
评论
收藏 3.81MB RAR 举报
温馨提示
以前修改的一公司站点,功能齐全,因未付完余款,现贡献出来奉献给大家!
资源推荐
资源详情
资源评论
收起资源包目录
美工极好的完整公司站点(绝对无错) (610个子文件)
#fdsag&gdf%nanfang.asp 2.21MB
editor.asp 58KB
admin_main.asp 28KB
index.asp 16KB
recruit_show.asp 15KB
BgHelper.asp 15KB
BgHelper.asp 15KB
editor_InsertEQ.asp 14KB
BgHelper_b.asp 14KB
admin_Product.asp 14KB
admin_Product_new.asp 13KB
BgHelper_b.asp 13KB
admin_Product_recommend.asp 13KB
admin_Product_new.asp 13KB
admin_Product.asp 13KB
function.asp 12KB
admin_link.asp 12KB
MD5.asp 11KB
admin_reply.asp 10KB
admin_book.asp 10KB
admin_flash.asp 10KB
shi.asp 10KB
news.asp 10KB
message.asp 10KB
admin_Stories.asp 10KB
editor_tableprops.asp 10KB
product.asp 10KB
recruit.asp 10KB
productnew.asp 9KB
jishu_b.asp 9KB
download.asp 9KB
UpLoadClass.asp 9KB
admin_menu.asp 9KB
admin_down.asp 9KB
editor_cellprops.asp 9KB
function.asp 9KB
editor_SelectUpFile.asp 9KB
download_bb.asp 8KB
admin_group.asp 8KB
jishu.asp 8KB
product_b.asp 8KB
admin_user.asp 8KB
admin_msg.asp 8KB
admin_ProductClass.asp 8KB
admin_notice.asp 8KB
AccessDB.asp 8KB
admin_job.asp 7KB
news_show.asp 7KB
Default.asp 7KB
company.asp 6KB
editor_InsertPic.asp 6KB
contact.asp 6KB
jishu_show.asp 6KB
editEmploy.asp 6KB
editor_ubbhelp.asp 5KB
AddEmploy.asp 5KB
Upfile_Dialog.asp 5KB
upfile_class.asp 5KB
msgManage.asp 4KB
msgManage_b.asp 4KB
EditSuccess.asp 4KB
editor_calculator.asp 4KB
editor_selcolor.asp 4KB
admin_view.asp 4KB
admin_hotel.asp 4KB
editor_InsertTable.asp 4KB
AddSuccess.asp 4KB
editor_find.asp 4KB
product_show.asp 4KB
successManage.asp 4KB
employManage.asp 4KB
download_show.asp 3KB
editEmploy_b.asp 3KB
admin_hotel2.asp 3KB
editor_InsertFlash.asp 3KB
editor_InsertRM.asp 3KB
editor_help.asp 3KB
admin_left.asp 3KB
admin_pwd.asp 3KB
editor_color.asp 3KB
editor_fieldset.asp 3KB
editor_InsertMedia.asp 3KB
admin_top.asp 2KB
editor_InsertIframe.asp 2KB
editor_InsertHR.asp 2KB
FrontHelper.asp 2KB
Helper.asp 2KB
left.asp 2KB
Main.asp 2KB
footer.asp 2KB
Conn1.asp 2KB
Conn.asp 2KB
Conn2.asp 2KB
header.asp 2KB
Conn.asp 2KB
file.asp 1KB
checkcode.asp 1KB
Upload_Dialog.asp 833B
editor_Content.asp 789B
editor_Conn.asp 499B
共 610 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
ccboos
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Javascript和Python的微商城项目设计源码 - MicroMall
- 基于Java的网上订餐系统设计源码 - online ordering system
- 基于Javascript的超级美眉网络资源管理应用模块设计源码
- 基于Typescript和PHP的编程知识储备库设计源码 - study-php
- Screenshot_2024-05-28-11-40-58-177_com.tencent.mm.jpg
- 基于Dart的Flutter小提琴调音器APP设计源码 - violinhelper
- 基于JavaScript和CSS的随寻订购网页设计源码 - web-order
- 基于MATLAB的声纹识别系统设计源码 - VoiceprintRecognition
- 基于Java的微服务插件集合设计源码 - wsy-plugins
- 基于Vue和微信小程序的监理日志系统设计源码 - supervisionLog
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功