Пример #1
0
				<tr>
					<td width="15%" class="smallfont" align="right">Mô t&#7843; &#273;&#7847;y &#273;&#7911; v&#7873; s&#7843;n ph&#7849;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&#7897;c danh m&#7909;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&#7913; t&#7921; s&#7855;p x&#7871;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&#7875;n th&#7883;</td>
					<td width="1%" class="smallfont" align="center"></td>
Пример #2
0
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;
}
Пример #3
0
<?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