⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sell_cate1.php

📁 php中英版本 仿alibaba贸易平台
💻 PHP
字号:
<?
include("../include/configuration.inc");
include("../include/database.inc");
include("../include/dbaccess.inc");

$lang = "gb2312";
$user_id = "test";
$rc = configuration($lang, $userid);
session_start();
if ($is_pass != "Yes")
        header("Location: un_login.php");
?>
<html>
    <head>
        <title>选择行业类目</title>
        <link rel="shortcut icon" href="http://china.alibaba.com/favicon.ico"><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta name="description" content="供求信息/ 商业公告板/商业贸易机会/进出口贸易机会/电子商务/"><meta name="keywords" content="供求信息,商业公告板,商业机会,进出口,商情公告板,商业BBS,进出口BBS,贸易机会,供求信息,贸易机会,商业机会,电子商务,免费贸易机会,供求信息,商业公告板,商业机会,进出口,商情公告板,商业BBS,进出口BBS,贸易机会,供求信息,贸易机会,商业机会,电子商务,免费贸易机会,供求信息,商业公告板,商业机会,进出口,商情公告板,商业BBS,进出口BBS,贸易机会,供求信息,贸易机会,商业机会,电子商务,免费贸易机会,求购,出售,贸易,求购,出售,贸易">

        <style type=text/css>
<!--
td {font-size: 12px;font-family: "宋体";}
A:link{        color:#039;        text-decoration: underline;}
A:visited{color:#039;text-decoration: underline;}
A:hover{color:#f60;text-decoration: underline;}

.left:link { text-decoration: none; color: #000000;font-size: 14.8px}
.left:visited { color: #111111;text-decoration: none;font-size: 14.8px }
.left:hover { text-decoration: underline; color:#FF6701;font-size: 14.8px}

.left1:link {text-decoration: none;color: #ff6600;font-size: 14.8px;font-weight: bold;}
.left1:visited {color: #ff6600;        text-decoration: none;        font-size: 14.8px;        font-weight: bold;}
.left1:hover {        text-decoration: underline;        color:#ff6600;        font-size: 14.8px;        font-weight: bold;}

.top:link { text-decoration: none; color: #0066cc;font-size: 12px;}
.top:visited { color: #0066cc;text-decoration: none;font-size: 12px ;}
.top:hover { text-decoration: underline; color:#ff6600;font-size: 12px;}

.top1:link {text-decoration: none;color: #000000;font-size: 12px;}
.top1:visited {color: #000000;        text-decoration: none;        font-size: 12px;}
.top1:hover {        text-decoration: underline;        color:#ff6600;        font-size: 12px;}

.leftnav {background-color: E6E6E6;text-align:right; padding:6px 10px 6px 0px;cursor:hand;}
.leftnav1 {background-color: ffffff;text-align:right; padding:6px 10px 6px 0px;}
.leftnav2 {background-color: f2f2f2;text-align:right; padding:6px 10px 6px 0px;cursor:hand;}

.topnav {background-color: ccffff;text-align:center;}
.topnav1 {background-color: ffffff;text-align:center;}

.note {color:#999999;}

.homebg {background-repeat: no-repeat;background-position: right bottom;}

.bdr1 { border-color: #EDEDED; border-style: solid; border-top-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px; padding: 0px 0px 0px 0px;}
.bdr2 { border-color: #CCCCCC; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; padding: 12px 12px 12px 12px;}
.bdr3 { border-color: #CC6633; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; padding: 12px 12px 12px 12px;}

.tbg1 {background-color: CC6633;font-size: 14.8px;color:#ffffff; padding: 4px 4px 4px 4px;font-weight: bold;}
.tbg2 {background-color: FFF7D8;font-size: 12px;color:#000000; padding: 4px 4px 4px 4px;}
.tbg3 {background-color: CC6633;font-size: 16px;color:#ffffff; padding: 4px 4px 4px 4px;font-weight: bold;}

.fbg1 { border-color: #FFCC99; border-style: solid; border-top-width: 2px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding: 4px 4px 4px 4px;background-color: #F1EEEE;color:#CC3300;font-weight: bold;}

.formtop {text-align:right;vertical-align:top;padding-top:6px}

        .X{font-size:24px;font-weight:bold;}
        .L{font-size:16px;font-weight:bold;}
        .M{font:bold 14.8px 宋体}
        .C{font-size:14.8px}
        .S{font-size:12px;}
        .lh13{line-height:130%}
        .lh15{line-height:150%}
        .lh17{line-height:170%}

        .padded { padding: 12px 12px 12px 12px;}

.temp {color: #999999;}
--></STYLE>    </head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>

<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
      <td bgcolor="ff6600"><img src="http://www.ec51.com/images/logo.jpg" width="140" height="32"></td>
    <td align="right" valign="bottom" bgcolor="ff6600"><a href="javascript:window.close()"><img src="http://img.china.alibaba.com/images/chs/myalibaba/closewindow.gif" width="61" height="11" border="0"></a></td>
  </tr>
</table>
  <br>


<table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
        <center>
    <form action=" " method="Post" name=mycategory>
        <table width="95%" border=0 cellPadding=6 cellSpacing=0 bgcolor="#D8D8D8">
            <tr>
                <td align="center" class="M"><B>请选择适当的类目</B></td>
            </tr>
        </table>
    <table width="95%" border=0 cellPadding=3 cellSpacing=2 bgcolor="#EEEEEE">
        <tr>
            <td>
                <a href="sell_cate.php">所有类目</a>&gt;<? echo $catalog; ?></td>
        </tr>
    </table>
    <br>
    <table border=0 cellPadding=4 cellSpacing=0 width="95%">
        <tr>
            <td align="center">
            <INPUT name=submit_category onclick=javascript:returnValue() type=button value="确 认">
            </td>
        </tr>
    </table>
    <table width="95%" border=0 cellPadding=4 cellSpacing=1 bgcolor="#F9F9F9">
 <?
$cat_arr = read_cat1($rc, $tablename, $catalog_id);
//echo sizeof($cat_arr)%4;
for ($i=0; $i<sizeof($cat_arr); $i++)
{
        if (($i%4) == 0)
                echo "<tr>";
?>
        <td>
                <input type="radio" name="selectcategory" value="<? echo $cat_arr[$i]["catalog_id"]; ?>"><? echo $cat_arr[$i]["catalog"]; ?>
        </td>
<?
        if (($i%4) == 3)
                echo "</tr>";
}
if ((sizeof($cat_arr)%4) == 1)
        echo "<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>";
if ((sizeof($cat_arr)%4) == 2)
        echo "<td>&nbsp;</td><td>&nbsp;</td></tr>";
if ((sizeof($cat_arr)%4) == 3)
        echo "<td>&nbsp;</td></tr>";
?>
                                                                                                                                                                       </tr>
    </table>
    <table border=0 cellPadding=4 cellSpacing=0 width="95%">
        <tr>
            <td align="center">
            <INPUT name=submit_category onclick=javascript:returnValue() type=button value="确 认">
            </td>
        </tr>
    </table>
</form>
<script>
function Category() {
        this.boardlist=new Array();
    this.addBoard=addBoard;
}
function addBoard(board) {
    this.boardlist = this.boardlist.concat(board);
}
//board methods
function Board(id,title) {
        this.id=id;
        this.title=title;
}
var cur = new Category();
<?
 for ($i=0; $i<sizeof($cat_arr); $i++)
 {
?>
cur.addBoard(new Board('<? echo $cat_arr[$i]["catalog_id"]; ?>','<? echo $catalog; ?>'+'/'+'<? echo $cat_arr[$i]["catalog"]; ?>'))
<?
}
?>
function returnValue(){
    var isel = 1
    for(i=0;i<document.mycategory.selectcategory.length;i++){
        if(document.mycategory.selectcategory[i].checked){
            for(j=0;j<cur.boardlist.length;j++){
                if(cur.boardlist[j].id == document.mycategory.selectcategory[i].value){
                    isel++;
                        window.opener.document.form.CategoryId1Name.value = cur.boardlist[j].title;
                        window.opener.document.form.p_z_Z_CategoryName.value = cur.boardlist[j].title;
                    window.opener.document.form.p_z_Z_CategoryId1.value = cur.boardlist[j].id;
                        self.close();
                }
            }
        }
    }
    if(isel<=1){
        alert("请先选择类目!")
    }
}
</script>

    </td>
  </tr>
</table>
<br>


<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td bgcolor="e4e4e4">&nbsp;</td>
  </tr>
</table>

</center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -