<tr> <td width="15%" class="smallfont" align="right">Mô tả đầy đủ về sản phẩm</td> <td width="1%" class="smallfont" align="center"></td> <td width="83%" class="smallfont"> <textarea name="txtDetail" cols="80" rows="10" id="txtDetail"><?php echo $full_description; ?> </textarea> </td> </tr> <tr><td height="10px"></td></tr> <!--tr> <td width="15%" class="smallfont" align="right">Thuộc danh mục</td> <td width="1%" class="smallfont" align="center"></td> <td width="83%" class="smallfont"> <?php echo comboCategory('ddCat', getArrayCategoryChild('tbl_product_category'), 'smallfont', $parent, 0); ?> </td> </tr> <tr> <td width="15%" class="smallfont" align="right">Thứ tự sắp xếp</td> <td width="1%" class="smallfont" align="right"></td> <td width="83%" class="smallfont"> <input value="<?php echo $sort; ?> " type="text" name="txtSort" class="textbox" size="15"> </td> </tr> <tr> <td width="15%" class="smallfont" align="right">Không hiển thị</td> <td width="1%" class="smallfont" align="center"></td>
function getArrayCategoryChild($table, $table1 = "", $catid = "", $split = "=") { global $conn; global $whereStatus; $lang = $_SESSION['LANGUAGE'] == '' ? $_SESSION['LANGUAGE_A'] : $_SESSION['LANGUAGE']; //global $lang; $ret = array(); if ($catid == "") { $catid = 1; } if ($table1 == "") { $table1 = $table; } $result = @mysql_query("select * from {$table} where {$whereStatus} and parent={$catid}", $conn); while ($row = @mysql_fetch_assoc($result)) { $defauName = getRecord($table1, " id_code=" . $row['id'] . " and lang='" . $lang . "'"); $ret[] = array($row['id'], $defauName['name']); $getsub = getArrayCategoryChild($table, $row['id'], $split . $split); foreach ($getsub as $sub) { $ret[] = array($sub[0], $sub[1]); } } return $ret; }
<?php if ($_REQUEST['code'] == 1) { $errMsg = 'Cập nhật thành công.'; } ?> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td height="30" class="smallfont">Trang : <?php echo $pageindex; ?> </td> <td align="right" class="smallfont"> <?php echo comboCategory('ddCat', getArrayCategoryChild($tableCategoryConfig), 'smallfont', $_REQUEST['cat'], 1); ?> <input type="button" value="Chuyển" class="button" onClick="window.location='./?act=<?php echo $actConfig; ?> &cat='+ddCat.value"> </td> </tr> </table> <table border="1" cellpadding="2" bordercolor="#C9C9C9" width="100%"> <tr> <th width="24" class="title"><input type="checkbox" name="chkall" onClick="chkallClick(this);"></th> <th class="title" colspan="2" rowspan></th> <th width="27" class="title"><a class="title" href="<?php