本文整理汇总了PHP中getArrayCategory函数的典型用法代码示例。如果您正苦于以下问题:PHP getArrayCategory函数的具体用法?PHP getArrayCategory怎么用?PHP getArrayCategory使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getArrayCategory函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
} else {
$showNotshowactivation = " <a href=\"./?act=" . $actOrders . "{$actldate}&action=showactivation&acti=activation&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\" title=\"Chưa xác thực\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"Chưa xác thực\" height=\"20\"/></a>";
}
if ($row['delivery'] == 1) {
$showNotshowdelivery = "<a href=\"./?act=" . $actOrders . "{$actldate}&action=notshowdelivery&acti=delivery&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\" title=\"Đã giao hàng\"><img border=\"0\" src=\"images/show.gif\" alt=\"Đã giao hàng\" height=\"20\"/></a>";
} else {
$showNotshowdelivery = " <a href=\"./?act=" . $actOrders . "{$actldate}&action=showdelivery&acti=delivery&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\" title=\"Chưa giao hàng\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"Chưa giao hàng\" height=\"20\"/></a>";
}
if ($row['status'] == 0) {
$showNotshow = " <a href=\"./?act=" . $actOrders . "&action=notshow&" . $urlAll . "id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/show.gif\" alt=\"" . TSHOW . "\" height=\"20\"/></a>";
} else {
$showNotshow = "<a href=\"./?act=" . $actOrders . "&action=show&" . $urlAll . "id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"" . TNOTSHOW . "\" height=\"20\"/></a>";
}
$type_member = $row['type_member'];
$processFrameShowHtmlTr .= "\n\n<tr>\n\t\t" . $trDetele_2All . "\n\t\t" . $trEdit_2 . "\n " . $trDetele_2 . "\n\t <td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $row['id'] . "</td>\t\t\t\n\t\t<td align=\"left\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['phone'] . "</td>\n\t\t<td align=\"left\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['name'] . "</td>\t\n\t\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['email'] . "</td>\n\t\t \n\t\t {$countNUMEMAIL}\n\t\t \n\t\t \n\t\t \n\t\t" . $trAddImage . "\n\t\t \n\t\t" . $trAddComment . "\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n\t\t\n\t\t<input type=\"hidden\" value=\"" . $row['id'] . "\" name=\"hID[]\"/>\n <input type=\"text\" value=\"" . $row['sort'] . "\" size=\"2\" name=\"txtOrder[]\"/>\t\t</td>\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n" . $showNotshowactivation . "</td>\n\n<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n" . $showNotshowdelivery . "</td>\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n" . $showNotshow . "</td>\n\n\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['dateAdd'] . "</td>\n\t\t<td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $row['dateModify'] . "</td>\n\t</tr>\n";
}
//BAT DAU VONG WHILE------------------------------
//BOTTOM CUA TIN
$processFrameShowHtmlTr .= "\n<tr>\n\t " . $trDetele_1bottom . "\n\t " . $trEdit_1bottom . "\n\t " . $trDetele_1bottom . "\t\n\t\t<td></td>\n\t\t<td></td>\t\t\n\t\t<td></td>\t\t\t\t\n\t\t<td></td>\n\t\t\n\t\n\t\t" . $trAddImage_Bottom . "\n\t\t" . $trAddComment_Bottom . "\n\t\t<td valign=\"middle\" align=\"center\">\n\t\t<span class=\"title\"><input type=\"submit\" value=\"" . TUPDATE . "\" name=\"btnOrder\" class=\"button\"></span>\t </td>\n\n\t\t<td> </td>\n\t\t<td> </td>\n\t\t<td> </td>\n\t\t<td></td>\n {$td}\n\t\t<td></td>\n\t\n\t</tr>\n\n";
//KET NOI DU LIEU LAY NOI DUNG TRANG=============================[[[[[[[[[[[[[[[[[=====================]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]=KET THUC
/*if($totalAddnew>0){
$showSubmitHtmlAddNew = "<input type=\"button\" value=\"".TADDNEW."\" name=\"btnNew\" onClick=\"window.location='./?act=".$actOrders."_m&".$urlAll."page=".$_REQUEST['page']."&lang=".$_lang_A."'\" class=\"button\">";
}*/
$showSubmitHtmlAddNew = "<input type=\"submit\" value=\"Xuất ra file excel\" name=\"excel\" class=\"button\">";
///SHOW NUT submit========================
//if(($_REQUEST['codeParent']!='') and ($defaulType['type']!='0')) {
$showSubmitHtml = $trDeteleAllbottom . $showSubmitHtmlAddNew;
//}
$processFrameShowHtml = "\n<script src=\"js/ajax_chack_code_jquery.js\" type=\"text/javascript\" language=\"javascript\"></script>\n<script language=\"javascript\">\n//<!---------------------------------+\n// Developed by Roshan Bhattarai \n// Visit http://roshanbh.com.np for this script and more.\n// This notice MUST stay intact for legal use\n// --------------------------------->\n\$(document).ready(function()\n{\n\t\$(\"#txtCode\").blur(function()\n\t{\n\t\t//remove all the class add the messagebox classes and start fading\n\t\t\$(\"#msgbox\").removeClass().addClass('messagebox').text('" . CCHECHING . "').fadeIn(\"slow\");\n\t\t//check the username exists or not from ajax\n\t\t\$.post(\"" . $moduleUrl . "/ajax_chack_code.php\",{ code:\$(this).val() } ,function(data)\n {\n\t\t if(data == 0) //if username not avaiable\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODEALREADY . "').addClass('messageboxerror').fadeTo(900,1);\n\t\t\t});\t\t\n }\n\t\t else\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODECANNOTUSE . "').addClass('messageboxok').fadeTo(900,1);\t\n\t\t\t});\n\t\t }\n\t\t\t\t\n });\n \n\t});\n});\n</script>\n<script type=\"text/javascript\">\nfunction show_type_member(type,id)\n{\nvar xmlhttpcity; \nif (type==\"\")\n {\n document.getElementById(\"type_member_div\"+id).innerHTML='<div align=\"center\" style=\"width:100%\"><img src=\"../images/loading-large_boxed._V192195297_.gif\" /></div>';\n return;\n }\nif (window.XMLHttpRequest)\n {// code for IE7+, Firefox, Chrome, Opera, Safari\n xmlhttpcity=new XMLHttpRequest();\n }\nelse\n {// code for IE6, IE5\n xmlhttpcity=new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\nxmlhttpcity.onreadystatechange=function()\n {\n if (xmlhttpcity.readyState==4 && xmlhttpcity.status==200)\n {\n document.getElementById(\"type_member_div\"+id).innerHTML=xmlhttpcity.responseText;\n }\n }\nxmlhttpcity.open(\"GET\",\"chack_type_member_ajax.php?type=\"+type+\"&id=\"+id,true);\nxmlhttpcity.send();\n\n\n}\n\n</script>\n<p id=\"search-advance-order\">Tìm kiếm nâng cao</p>\n<style>\n .search-advance-order label,#search-advance-order{\n cursor:pointer;\n }\n #search-advance-order{\n color:blue;\n font-weight:bold;\n }\n #btnsearch-advance-other{\n padding:5px 20px;\n font-size:14px;\n cursor:pointer;margin-top:10px;\n }\n</style>\n<link type=\"text/css\" href=\"css/jquery.datepick.css\" rel=\"stylesheet\">\n<script type=\"text/javascript\" src=\"js/jquery-1.11.0.min.js\"></script>\n<script src=\"js/jquery.plugin.js\" type=\"text/javascript\"></script>\n<script type=\"text/javascript\" src=\"js/jquery.datepick.js\"></script>\n<script type=\"text/javascript\">\n\$(function() {\n\t \$('#datefrom').datepick();\n \$('#dateto').datepick();\n \$('.search-advance-order').slideUp('fast');\n \$('#search-advance-order').click(function(){\n \$('.search-advance-order').slideToggle();\n });\n});\n</script>\n<style type=\"text/css\">\n .datepick,.datepick-month{\n width:200px!important;\n }\n .datepick-nav, .datepick-ctrl{\n font-size:11px;\n }\n</style>\n<div class=\"search-advance-order\" style=\"margin-bottom:10px;\">\n<script src=\"js/script_search_advance_order.js\" type=\"text/javascript\"></script>\n <form action=\"./\" method=\"get\">\n <input type=\"hidden\" name=\"act\" value=\"" . $actOrders . "\"/>\n <table>\n <tr>\n <td>Date:</td>\n <td>\n <label>From <input name=\"date-from\" id=\"datefrom\" type=\"text\" placeholder=\"từ ngày\"/></label>\n <label>To <input name=\"date-to\" id=\"dateto\" type=\"text\" placeholder=\"đến ngày\"/></label>\n <select name=\"choose-date\" id=\"choose-date\">\n <option value=\"0\">Tất cả</option>\n <option value=\"1\">Theo ngày/tháng/năm</option>\n <option value=\"2\">Theo tháng/năm</option>\n <option value=\"3\">Theo năm</option>\n </select>\n </td>\n </tr>\n <tr>\n <td width=\"100\">Tình trạng:</td>\n <td>\n <label>\n <select name=\"choose-authentic\" id=\"choose-authentic\">\n <option value=\"0\">Tất cả</option>\n <option value=\"1\">Chưa xác thực</option>\n <option value=\"2\">Đã xác thực</option>\n </select>\n </label> \n <label>\n <select name=\"choose-delivery\" id=\"choose-delivery\">\n <option value=\"0\">Tất cả</option>\n <option value=\"1\">Chưa giao hàng</option>\n <option value=\"2\">Đã giao hàng</option>\n </select>\n </label>\n </td>\n </tr>\n <tr>\n <td>Hình thức:</td>\n <td><label style=\"color:red;\"><span><input name=\"fillemail\" id=\"fillemail\" checked type=\"checkbox\"/> Lọc địa chỉ email trùng</span></label></td>\n </tr>\n <tr>\n <td></td>\n <td>\n <input type=\"submit\" id=\"btnsearch-advance-other\" name=\"btnsearch-advance-other\" value=\"Tìm kiếm\"/>\n </td>\n </tr>\n </table>\n </form>\n</div>\n<form method=\"POST\" action=\"./\" name=\"frmForm\" enctype=\"multipart/form-data\">\n<input type=\"hidden\" name=\"page\" value=\"" . $page . "\">\n<input type=\"hidden\" name=\"delivery\" value=\"" . $_REQUEST['delivery'] . "\">\n<input type=\"hidden\" name=\"ldate\" value=\"" . $_REQUEST['ldate'] . "\">\n<input type=\"hidden\" name=\"activation\" value=\"" . $_REQUEST['activation'] . "\">\n<input type=\"hidden\" name=\"act\" value=\"" . $actOrders . "\">\n<input type=\"hidden\" name=\"lang\" value=\"" . $_lang_A . "\">\n\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t<tr>\n\t\t" . $showPageIndex . "\n\t\t<td height=\"30\" align=\"right\" valign=\"middle\" class=\"smallfont\">\n\t\t\t<table width=\"100%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td colspan=\"5\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n <!-- <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> " . comboCategoryLevel('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, $whereGetArrayCategory), 'smallfont', $_REQUEST['codeParent'], 1) . "\n\t\t\t<input type=\"button\" value=\"" . TMOVE . "\" class=\"button\" \n\t\t\t\tonClick=\"window.location='./?act=" . $actOrders . "&codeParent='+ddCat.value+'&lang=" . $_lang_A . "'\">--></td>\n </tr>\n <tr>\n <td width=\"61\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n " . MECHECKCODE . " </td>\n <td width=\"128\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\">\n \n <input value=\"" . $CODE_default['code_product'] . $code . "\" type=\"text\" name=\"txtCode\" id=\"txtCode\" class=\"textbox\" size=\"20\"> </td>\n <td align=\"left\" width=\"195\" valign=\"middle\" style=\"padding-right:20px;\" class=\"smallfont\" >\n <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> </td>\n <td width=\"269\" align=\"right\" valign=\"middle\" style=\"padding-right:20px;\"> \n\t<input type=\"text\" name=\"ddName\" />\n\t<input name=\"button3\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actOrders . "&name='+ddName.value+'&lang=" . $_lang_A . "'\" value=\"Tìm theo Email\" /></td>\n\n <td width=\"269\" align=\"right\" valign=\"middle\" style=\"padding-right:20px;\"> \n <input type=\"text\" name=\"ddPhone\" />\n <input name=\"btnPhone\" type=\"button\" class=\"button\" \n onclick=\"window.location='./?act=" . $actOrders . "&phone='+ddPhone.value+'&lang=" . $_lang_A . "'\" value=\"Tìm theo Phone\" /></td>\n <td width=\"383\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\"> \n\t<input type=\"text\" name=\"ddMa\" />\n\t <input name=\"button2\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actOrders . "&ma='+ddMa.value+'&lang=" . $_lang_A . "'\" value=\"" . MESEARCHCODE . "\" /></td>\n </tr>\n</table>\n\n\t\t</td>\n\t</tr>\n</table>\n\n\n<table border=\"1\" cellpadding=\"2\" bordercolor=\"#C9C9C9\" width=\"100%\">\n\n\n\n" . $processFrameShowHtmlTr . "\n\n\n\n</table>\n\n<table width=\"100%\">\n\t<tr>\n\t\t<td width=\"30%\">\n" . $showSubmitHtml . "\n\t\t</td>\n\t</tr>\n</table>\n\n\n\n</form>\n<script language=\"JavaScript\">\nfunction chkallClick(o) {\n \tvar form = document.frmForm;\n\tfor (var i = 0; i < form.elements.length; i++) {\n\t\tif (form.elements[i].type == \"checkbox\" && form.elements[i].name!=\"chkall\") {\n\t\t\tform.elements[i].checked = document.frmForm.chkall.checked;\n\t\t}\n\t}\n}\n</script>\n\n<p align=center class=\"err\">" . $errMsg . "<br></p>\n\n<table width=\"100%\">\n\t<tr><td height=\"10\"></td></tr>\n\t<tr><td class=\"smallfont\">" . UTOTALROW . " : <b>" . countRecord($tableOrdersId, $parentWhereConfig) . "</b>" . "</td></tr>\n</table>\n\n\n";
示例2: getArrayCategory
?>
">
</td>
</tr>
<tr><td colspan="3" height="20"></td></tr>
<tr>
<td class="smallfont" align="right"><?php
echo $l_BelongTo;
?>
</td>
<td class="smallfont" align="center">:</td>
<td class="smallfont">
<?php
$sourceCombo = getArrayCategory("tbl_product_category");
echo comboCategory('parent', $sourceCombo, 'smallfont', "", 1);
?>
</td>
</tr>
<tr>
<td class="smallfont" align="right"><?php
echo $l_PriceFrom;
?>
</td>
<td class="smallfont" align="center">:</td>
<td class="smallfont"><input type="text" name="pfrom" class="textbox"></td>
</tr>
<tr>
示例3: getArray
function getArray($query)
{
global $conn;
global $whereStatus;
$result = @mysql_query($query, $conn);
while ($row = @mysql_fetch_assoc($result)) {
$ret[] = array($row['id'], ($catid == 0 ? "" : $split) . $row['name']);
$getsub = getArrayCategory($table, $row['id'], $split . '===');
foreach ($getsub as $sub) {
$ret[] = array($sub[0], $sub[1]);
}
}
return $ret;
}
示例4: json_encode
} else {
$arrayProfessional['subcategory'] = "null";
}
}
echo json_encode($arrayProfessional);
} else {
echo json_encode(array('id' => 'not_found'));
}
} else {
if (strcmp('get-category', $_POST['method']) == 0) {
$sql = "SELECT * FROM CATEGORY";
$result = $conn->query($sql);
$arrayAll = array();
if ($result->num_rows > 0) {
foreach ($result as $model) {
$arrayCategory = getArrayCategory($model);
array_push($arrayAll, $arrayCategory);
}
echo json_encode($arrayAll);
} else {
array_push($arrayAll, array('id' => 'not_found'));
echo json_encode($arrayAll);
//echo json_encode(array('id'=>'not_found'));
}
} else {
if (strcmp('get-subcategory', $_POST['method']) == 0) {
$id_category = $_POST['data'];
$sql = "SELECT * FROM SUBCATEGORY WHERE ID_CATEGORY ='" . $id_category . "'";
$result = $conn->query($sql);
$arrayAll = array();
if ($result->num_rows > 0) {
示例5: comboCategory
$errMsg = ASUCCESSFULLY;
}
//kiem tra cap nhat thanh cong hay chua
?>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<?php
echo $totalItems > $MAXPAGE ? '<td height="30" class="smallfont" align="left" valign="middle" >Page :' . $pageindex . '</td>' : '';
?>
<td height="30" align="right" valign="middle" class="smallfont">
<?php
echo comboCategory('ddCat', getArrayCategory($tableCategorySearchId, $tableCategorySearch, $_lang_A, "parent=" . $_REQUEST['codeParent']), 'smallfont', $_REQUEST['codeParent'], 1);
?>
<input type="button" value="<?php
echo TMOVE;
?>
" class="button"
onClick="window.location='./?act=<?php
echo $actCategoryConfig;
?>
&codeParent='+ddCat.value+'&lang=<?php
echo $_lang_A;
?>
'">
</td>
</tr>
示例6: if
$showNotshowhome = " <a href=\"./?act=" . $actCity . "&action=showhome&module_city=" . $_REQUEST['module_city'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"" . TNOTSHOWHOME . "\" height=\"20\"/></a>";
}
if ($row['typical'] == 1) {
$showNotshowtypical = "<a href=\"./?act=" . $actCity . "&action=notshowtypical&module_city=" . $_REQUEST['module_city'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\" title=\"Gia sư tiêu biểu\"><img border=\"0\" src=\"images/show.gif\" alt=\"Gia sư tiêu biểu\" height=\"20\"/></a>";
} else {
$showNotshowtypical = " <a href=\"./?act=" . $actCity . "&action=showtypical&module_city=" . $_REQUEST['module_city'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\" title=\"Gia sư tiêu biểu\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"Không phải gia sư tiêu biểu\" height=\"20\"/></a>";
}
if ($row['status'] == 0) {
$showNotshow = " <a href=\"./?act=" . $actCity . "&action=notshow&module_city=" . $_REQUEST['module_city'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/show.gif\" alt=\"" . TSHOW . "\" height=\"20\"/></a>";
} else {
$showNotshow = "<a href=\"./?act=" . $actCity . "&action=show&module_city=" . $_REQUEST['module_city'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"" . TNOTSHOW . "\" height=\"20\"/></a>";
}
$type_member = $row['type_member'];
$type_member_c0 = $type_member == 0 ? ' checked="checked"' : "";
$type_member_c193 = $type_member == 193 ? ' checked="checked"' : "";
$type_member_c176 = $type_member == 176 ? ' checked="checked"' : "";
$processFrameShowHtmlTr .= "\n\n<tr>\n\t\t" . $trDetele_2All . "\n\t\t" . $trEdit_2 . "\n " . $trDetele_2 . "\n\t <td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $row['id'] . "</td>\t\t\t\n\t\t\n\t\t<td align=\"left\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['name'] . "</td>\t\t\t\n\n\t\t" . $trAddImage . "\n\t\t \n\t\t" . $trAddComment . "\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n\t\t\n\t\t<input type=\"hidden\" value=\"" . $row['id'] . "\" name=\"hID[]\"/>\n <input type=\"text\" value=\"" . $row['sort'] . "\" size=\"2\" name=\"txtOrder[]\"/>\t\t</td>\n\t\t\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n" . $showNotshow . "</td>\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['dateAdd'] . "</td>\n\t\t<td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $row['dateModify'] . "</td>\n\t</tr>\n";
}
//BAT DAU VONG WHILE------------------------------
//BOTTOM CUA TIN
$processFrameShowHtmlTr .= "\n<tr>\n\t " . $trDetele_1bottom . "\n\t " . $trEdit_1bottom . "\n\t " . $trDetele_1bottom . "\t\n\t\n\t\t<td></td>\t\t\n\t\t<td></td>\t\t\t\t\n\t\t\n\t\n\t\t" . $trAddImage_Bottom . "\n\t\t" . $trAddComment_Bottom . "\n\t\t<td valign=\"middle\" align=\"center\">\n\t\t<span class=\"title\"><input type=\"submit\" value=\"" . TUPDATE . "\" name=\"btnOrder\" class=\"button\"></span>\t </td>\n\n\t\t<td> </td>\n\t\t<td></td>\n\t\t<td></td>\n\t\n\t</tr>\n\n";
//KET NOI DU LIEU LAY NOI DUNG TRANG=============================[[[[[[[[[[[[[[[[[=====================]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]=KET THUC
if ($totalAddnew > 0) {
$showSubmitHtmlAddNew = "<input type=\"button\" value=\"" . TADDNEW . "\" name=\"btnNew\" onClick=\"window.location='./?act=" . $actCity . "_m&module_city=" . $_REQUEST['module_city'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "'\" class=\"button\">";
}
///SHOW NUT submit========================
//if(($_REQUEST['codeParent']!='') and ($defaulType['type']!='0')) {
$showSubmitHtml = $trDeteleAllbottom . $showSubmitHtmlAddNew;
//}
$processFrameShowHtml = "\n<script src=\"js/ajax_chack_code_jquery.js\" type=\"text/javascript\" language=\"javascript\"></script>\n<script language=\"javascript\">\n//<!---------------------------------+\n// Developed by Roshan Bhattarai \n// Visit http://roshanbh.com.np for this script and more.\n// This notice MUST stay intact for legal use\n// --------------------------------->\n\$(document).ready(function()\n{\n\t\$(\"#txtCode\").blur(function()\n\t{\n\t\t//remove all the class add the messagebox classes and start fading\n\t\t\$(\"#msgbox\").removeClass().addClass('messagebox').text('" . CCHECHING . "').fadeIn(\"slow\");\n\t\t//check the username exists or not from ajax\n\t\t\$.post(\"" . $moduleUrl . "/ajax_chack_code.php\",{ code:\$(this).val() } ,function(data)\n {\n\t\t if(data == 0) //if username not avaiable\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODEALREADY . "').addClass('messageboxerror').fadeTo(900,1);\n\t\t\t});\t\t\n }\n\t\t else\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODECANNOTUSE . "').addClass('messageboxok').fadeTo(900,1);\t\n\t\t\t});\n\t\t }\n\t\t\t\t\n });\n \n\t});\n});\n</script>\n<script type=\"text/javascript\">\nfunction show_type_member(type,id)\n{\nvar xmlhttpcity; \nif (type==\"\")\n {\n document.getElementById(\"type_member_div\"+id).innerHTML='<div align=\"center\" style=\"width:100%\"><img src=\"../images/loading-large_boxed._V192195297_.gif\" /></div>';\n return;\n }\nif (window.XMLHttpRequest)\n {// code for IE7+, Firefox, Chrome, Opera, Safari\n xmlhttpcity=new XMLHttpRequest();\n }\nelse\n {// code for IE6, IE5\n xmlhttpcity=new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\nxmlhttpcity.onreadystatechange=function()\n {\n if (xmlhttpcity.readyState==4 && xmlhttpcity.status==200)\n {\n document.getElementById(\"type_member_div\"+id).innerHTML=xmlhttpcity.responseText;\n }\n }\nxmlhttpcity.open(\"GET\",\"chack_type_member_ajax.php?type=\"+type+\"&id=\"+id,true);\nxmlhttpcity.send();\n\n\n}\n\n</script>\n<form method=\"POST\" action=\"./\" name=\"frmForm\" enctype=\"multipart/form-data\">\n<input type=\"hidden\" name=\"page\" value=\"" . $page . "\">\n<input type=\"hidden\" name=\"module_city\" value=\"" . $_REQUEST['module_city'] . "\">\n<input type=\"hidden\" name=\"act\" value=\"" . $actCity . "\">\n<input type=\"hidden\" name=\"lang\" value=\"" . $_lang_A . "\">\n\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t<tr>\n\t\t" . $showPageIndex . "\n\t\t<td height=\"30\" align=\"right\" valign=\"middle\" class=\"smallfont\">\n\t\t\t<table width=\"100%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td colspan=\"5\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n <!-- <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> " . comboCategoryLevel('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, $whereGetArrayCategory), 'smallfont', $_REQUEST['codeParent'], 1) . "\n\t\t\t<input type=\"button\" value=\"" . TMOVE . "\" class=\"button\" \n\t\t\t\tonClick=\"window.location='./?act=" . $actCity . "&codeParent='+ddCat.value+'&lang=" . $_lang_A . "'\">--></td>\n </tr>\n <tr>\n <td width=\"61\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n " . MECHECKCODE . " </td>\n <td width=\"128\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\">\n \n <input value=\"" . $CODE_default['code_product'] . $code . "\" type=\"text\" name=\"txtCode\" id=\"txtCode\" class=\"textbox\" size=\"20\"> </td>\n <td align=\"left\" width=\"195\" valign=\"middle\" style=\"padding-right:20px;\" class=\"smallfont\" >\n <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> </td>\n <td width=\"249\" align=\"right\" valign=\"middle\" style=\"padding-right:20px;\"> \n\t<input type=\"text\" name=\"ddName\" />\n\t<input name=\"button3\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actCity . "&name='+ddName.value+'&lang=" . $_lang_A . "'\" value=\"" . MESEARCHNAME . "\" /></td>\n <td width=\"413\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\"> \n\t<input type=\"text\" name=\"ddMa\" />\n\t <input name=\"button2\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actCity . "&ma='+ddMa.value+'&lang=" . $_lang_A . "'\" value=\"" . MESEARCHCODE . "\" /></td>\n </tr>\n</table>\n\n\t\t</td>\n\t</tr>\n</table>\n\n\n<table border=\"1\" cellpadding=\"2\" bordercolor=\"#C9C9C9\" width=\"100%\">\n\n\n\n" . $processFrameShowHtmlTr . "\n\n\n\n</table>\n\n<table width=\"100%\">\n\t<tr>\n\t\t<td width=\"30%\">\n" . $showSubmitHtml . "\n\t\t</td>\n\t</tr>\n</table>\n\n\n\n</form>\n<script language=\"JavaScript\">\nfunction chkallClick(o) {\n \tvar form = document.frmForm;\n\tfor (var i = 0; i < form.elements.length; i++) {\n\t\tif (form.elements[i].type == \"checkbox\" && form.elements[i].name!=\"chkall\") {\n\t\t\tform.elements[i].checked = document.frmForm.chkall.checked;\n\t\t}\n\t}\n}\n</script>\n\n<p align=center class=\"err\">" . $errMsg . "<br></p>\n\n<table width=\"100%\">\n\t<tr><td height=\"10\"></td></tr>\n\t<tr><td class=\"smallfont\">" . UTOTALROW . " : <b>" . countRecord($tableCityId, $parentWhereConfig) . "</b>" . "</td></tr>\n</table>\n";
示例7: comboCategory
"Bold","Italic",
"Underline","Strikethrough","|","Superscript","Subscript","|",
"JustifyLeft","JustifyCenter","JustifyRight","JustifyFull"
];
oEdit2.cmdAssetManager="modalDialogShow('../assetmanager/assetmanager.php',640,465)";
oEdit2.RENDER(document.getElementById("idTemporary2").innerHTML);
</script>
</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', getArrayCategory('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="12">
</td>
</tr>
示例8: getArrayCategory
function getArrayCategory($table, $table1 = "", $lang, $where, $catid = "", $split = "=")
{
global $conn;
global $whereStatus;
$ret = array();
if ($catid == "") {
$catid = 1;
}
if ($table1 == "") {
$table1 = $table;
}
$result = @mysql_query("select * from {$table} where {$whereStatus} and {$where} and parent={$catid}", $conn);
while ($row = @mysql_fetch_assoc($result)) {
$defauName = getRecord($table1, " id_code=" . $row['id'] . " and lang='" . $lang . "'");
$ret[] = array($row['id'], ($catid == 1 ? "" : $split) . $defauName['name']);
$getsub = getArrayCategory($table, $table1, $lang, $where, $row['id'], $split . $split);
foreach ($getsub as $sub) {
$ret[] = array($sub[0], $sub[1]);
}
}
return $ret;
}
示例9: count
}
//SAC DINH THANH VIEN NAY CO CHO SUA HAY KO==============
if ($row['status'] == 0) {
$showNotshow = "<a href=\"./?act=voucherpublic&action=notshow&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "\"><img border=\"0\" src=\"images/show.gif\" alt=\"" . TSHOWHOME . "\" height=\"20\"/></a>";
} else {
$showNotshow = " <a href=\"./?act=voucherpublic&action=show&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"" . TNOTSHOWHOME . "\" height=\"20\"/></a>";
}
/** Get name member */
$namemem = "";
$emailmem = "";
$sqlmem = "select name, email from tbl_member_id where id=" . $row['id_member'];
$querymem = @mysql_query($sqlmem, $conn);
if ($rowmem = @mysql_fetch_assoc($querymem)) {
$namemem = $rowmem['name'];
$emailmem = $rowmem['email'];
}
$processFrameShowHtmlTr .= "\n\n<tr>\n\t\t" . $trDetele_2All . "\n\t\t" . $trEdit_2 . "\n " . $trDetele_2 . "\n\t <td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $row['id'] . "</td>\n <td align=\"center\" style=\"font-weight:bold;\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $namemem . "</td>\n <td align=\"center\" style=\"font-weight:bold;\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $emailmem . "</td>\t\t\t\n\t\t<td align=\"center\" style=\"font-weight:bold;color:red;\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['code_voucher'] . "</td>\n\t\t<td align=\"center\" style=\"font-weight:bold;color:red;\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['discounts'] . "%</td>\t\n\t\n\t\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n" . $showNotshow . "</td>\n\t\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $date_from . "</td>\n\t\t<td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $date_to . "</td>\n\t</tr>\n";
}
if ($totalAddnew > 0) {
$showSubmitHtmlAddNew = "<input type=\"button\" value=\"" . TADDNEW . "\" name=\"btnNew\" onClick=\"window.location='./?act=voucherpublic_m&page=" . $_REQUEST['page'] . "'\" class=\"button\">";
}
///SHOW NUT submit========================
$sqlc = "select count(id) as numrow from tbl_voucher where type=1";
$queryc = @mysql_query($sqlc, $conn);
$rowc = @mysql_fetch_assoc($queryc);
$rowc = $rowc['numrow'];
if ($rowc > 0) {
$showSubmitHtml = $trDeteleAllbottom . $showSubmitHtmlAddNew;
}
$processFrameShowHtml = "\n<form method=\"POST\" action=\"./\" name=\"frmForm\" enctype=\"multipart/form-data\">\n<input type=\"hidden\" name=\"page\" value=\"" . $page . "\">\n<input type=\"hidden\" name=\"act\" value=\"voucherpublic\">\n\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t<tr>\n\t\t" . $showPageIndex . "\n\t\t<td height=\"30\" align=\"right\" valign=\"middle\" class=\"smallfont\">\n\t\t\t<table width=\"100%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td colspan=\"5\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n <!-- <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> " . comboCategoryLevel('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, $whereGetArrayCategory), 'smallfont', $_REQUEST['codeParent'], 1) . "\n\t\t\t<input type=\"button\" value=\"" . TMOVE . "\" class=\"button\" \n\t\t\t\tonClick=\"window.location='./?act=" . $actMember . "&codeParent='+ddCat.value+'&lang=" . $_lang_A . "'\">--></td>\n </tr>\n <tr>\n <td width=\"61\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n " . MECHECKCODE . " </td>\n <td width=\"128\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\">\n \n <input value=\"" . $CODE_default['code_product'] . $code . "\" type=\"text\" name=\"txtCode\" id=\"txtCode\" class=\"textbox\" size=\"20\"> </td>\n <td align=\"left\" width=\"195\" valign=\"middle\" style=\"padding-right:20px;\" class=\"smallfont\" >\n <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> </td>\n <td width=\"249\" align=\"right\" valign=\"middle\" style=\"padding-right:20px;\"> \n\t<input type=\"text\" name=\"ddName\" />\n\t<input name=\"button3\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actMember . "&name='+ddName.value+'&lang=" . $_lang_A . "'\" value=\"" . MESEARCHNAME . "\" /></td>\n <td width=\"413\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\"> \n\t<input type=\"text\" name=\"ddMa\" />\n\t <input name=\"button2\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actMember . "&ma='+ddMa.value+'&lang=" . $_lang_A . "'\" value=\"" . MESEARCHCODE . "\" /></td>\n </tr>\n</table>\n\n\t\t</td>\n\t</tr>\n</table>\n\n\n<table border=\"1\" cellpadding=\"2\" bordercolor=\"#C9C9C9\" width=\"100%\">\n\n\n\n" . $processFrameShowHtmlTr . "\n\n\n\n</table>\n\n<table width=\"100%\">\n\t<tr>\n\t\t<td width=\"30%\">\n" . $showSubmitHtml . "\n\t\t</td>\n\t</tr>\n</table>\n\n\n\n</form>\n<script language=\"JavaScript\">\nfunction chkallClick(o) {\n \tvar form = document.frmForm;\n\tfor (var i = 0; i < form.elements.length; i++) {\n\t\tif (form.elements[i].type == \"checkbox\" && form.elements[i].name!=\"chkall\") {\n\t\t\tform.elements[i].checked = document.frmForm.chkall.checked;\n\t\t}\n\t}\n}\n</script>\n\n<p align=center class=\"err\">" . $errMsg . "<br></p>\n\n<table width=\"100%\">\n\t<tr><td height=\"10\"></td></tr>\n\t<tr><td class=\"smallfont\">" . UTOTALROW . " : <b>" . $count_rows . "</b>" . "</td></tr>\n</table>\n";
示例10: getRecord
<?php
include $folderMobile . $folderModule . '/course_registration_sql.php';
$rowProductName = getRecord($tableNew, "parent='" . $parent_c . "' and " . $whereLang);
$name_c = $rowProductName['name'];
$detail_c = $rowProductName['detail_short'];
$keywords = $rowProductName['keywords'];
$description = $rowProductName['description'];
$image_c = $rowProductName['image'];
$title_c = $rowProductName['title_t'];
$titlePage = $title_c;
$keywordsMeta = $keywords;
$descriptionMeta = $description;
if ($_REQUEST['idCourse'] != '') {
$ddCat = $_REQUEST['idCourse'];
}
$contactCourse = $contactfooter;
$showHtmlNewHomTop = "\n<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $serverName . $folderCss . "/form.css\"/>\n<script language=\"javascript\">\nfunction btnContact_onclick(){\n\ndocument.getElementById('err_name').style.display = \"none\";\ndocument.getElementById('emailok_error').style.display = \"none\";\ndocument.getElementById('email_email').style.display = \"none\";\ndocument.getElementById('err_address').style.display = \"none\";\ndocument.getElementById('err_all').style.display = \"none\";\n\n\t\n\tif((document.contact.txtName.value=='')|| (document.contact.txtName.value=='Họ và tên của bạn (*)')){\n\t\t//document.getElementById('contact_from_erro').style.display = \"\";\n\t\tdocument.getElementById('err_name').style.display = \"\";\n\t\tdocument.contact.txtName.focus();return false;\n\t}\n\t\n\t\n\t\n\tif(document.contact.email.value==''){\n\t\tdocument.getElementById('contact_from_erro').style.display = \"\";\n\t\tdocument.getElementById('email_email').style.display = \"\";\n\t\tdocument.Register.email.focus();return false;\n\t}\n\t\n\tvar email = document.contact.email.value;\n\tvar filter = /^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+\$/;\n\tif (!filter.test(email)) \n\t{\n\t\tdocument.getElementById('contact_from_erro').style.display = \"\";\n\t\tdocument.getElementById('emailok_error').style.display = \"\";\n\t\tdocument.Register.email.focus();return false;\n\t}\n\t\n\tif((document.contact.txtPhone.value=='')||(document.contact.txtPhone.value=='Điện thoại (*)')){\n\t\t//document.getElementById('contact_from_erro').style.display = \"\";\n\t\tdocument.getElementById('err_phone').style.display = \"\";\n\t\tdocument.contact.txtPhone.focus();return false;\n\t}\n\t\n\tif((document.contact.txtAddress.value=='')||(document.contact.txtAddress.value=='Địa chỉ (*)')){\n\t\t//document.getElementById('contact_from_erro').style.display = \"\";\n\t\tdocument.getElementById('err_address').style.display = \"\";\n\t\tdocument.contact.txtAddress.focus();return false;\n\t}\n\t\n\t\n\tif((document.contact.txtCapchainput.value=='')|| (document.contact.txtCapchainput.value=='Nhập mã xác nhận (*)')){\n\t\t//document.getElementById('contact_from_erro').style.display = \"\";\n\t\tdocument.getElementById('err_capcha').style.display = \"\";\n\t\tdocument.contact.txtCapchainput.focus();return false;\n\t}\n\t\n\t\t\n\treturn true;\n}\n</script><section class=\"gt-left\">\n<form name=\"contact\" method=\"POST\" id=\"ap_contact_form\" novalidate=\"novalidate\" action=\"./\">\n<p class=\"contact-from-text-4\">Thông tin đăng ký khóa học seo! <br/>\n Quý khách vui lòng nhập thông tin vào form bên dưới :</p>\n <p>\n\t\t\t\n\t\t\t <div class=\"contact_from_erro\" id=\"contact_from_erro\">\n\n\t\t <p id=\"err_name\" class=\"name_do\" style=\"display:none\">\n\t\t\t\t \n Bạn vui lòng nhập tên liên hệ<br>\n\t\t\t\t\n\t </p>\n\t\t\n\t\t\n\t\t<p id=\"err_phone\" class=\"name_do\" style=\"display:none\">\n\t\t\t\t \n Bạn vui lòng nhập số điện thoại<br>\n\t\t\t\t\n\t </p>\n\t\t\n\t\t\t<p id=\"err_address\" class=\"name_do\" style=\"display:none\">\n\t\t\t\t \n Bạn vui lòng nhập thông tin địa chỉ<br>\n\t\t\t\t\n\t </p>\n\t\t\n\t\t<p id=\"email_email\" class=\"name_do\" style=\"display:none\">\n\t\t\t\t \n " . CYOUMAYENTEREMAIL . ".<br>\n\t\t\t\t\n\t </p>\n\t\t <p id=\"emailok_error\" class=\"name_do\" style=\"display:none\">\n\t\t\t\t \n " . CFNBOXMALFORMED . ".<br>\n\t\t\t\t\n\t </p>\n\t\t\n\t \n\t\t\n\t\t <p id=\"err_capcha\" class=\"name_do\" style=\"display:none\">\n\t\t\t\t \n Bạn hãy nhập mã bảo vệ<br>\n\t\t\t\t\n\t </p>\n\t\t <p id=\"err_all\" class=\"name_do\">\n\t\t\t\t \n " . $errMsg . "<br>\n\t\t\t\t\n\t </p>\n\n</div>\n <input name=\"txtName\" id=\"idName\" type=\"text\" onFocus=\"if (this.value=='Họ và tên của bạn (*)') this.value='';\" onBlur=\"if (this.value=='') this.value='Họ và tên của bạn (*)';\" value=\"Họ và tên của bạn (*)\" class=\"contact-from-input\" />\n </p>\n <p>\n <input name=\"email\" id=\"idEmail\" type=\"text\" onFocus=\"if (this.value=='Email của bạn (*)') this.value='';\" onBlur=\"if (this.value=='') this.value='Email của bạn (*)';\" value=\"Email của bạn (*)\" class=\"contact-from-input\"/>\n </p>\n <p>\n <input name=\"txtPhone\" id=\"idPhone\" type=\"text\" onFocus=\"if (this.value=='Điện thoại (*)') this.value='';\" onBlur=\"if (this.value=='') this.value='Điện thoại (*)';\" value=\"Điện thoại (*)\" class=\"contact-from-input\"/>\n </p>\n\t \n\t <p>\n <input name=\"txtAddress\" id=\"txtAddress\" type=\"text\" onFocus=\"if (this.value=='Địa chỉ (*)') this.value='';\" onBlur=\"if (this.value=='') this.value='Địa chỉ (*)';\" value=\"Địa chỉ (*)\" class=\"contact-from-input\"/>\n </p>\n\t \n \n\t <p>\n " . comboCategoryLevel('ddCat', getArrayCategory($tableNewId, $tableNew, $_lang, "parent=225", 225), 'smallfont', $ddCat, 0) . "<span class=\"contact-chonkhoahoac\">Chọn khóa học</span>\n </p>\n\t \n\t <p>\n <textarea name=\"txtDetail\" id=\"idDetail\" class=\"contact-from-textarea-size\">Thông tin thêm ...</textarea>\n </p>\n\t \n <p>\n <input name=\"txtCapchainput\" id=\"txtCapchainput\" type=\"text\" onFocus=\"if (this.value=='Nhập mã xác nhận (*)') this.value='';\" onBlur=\"if (this.value=='') this.value='Nhập mã xác nhận (*)';\" value=\"Nhập mã xác nhận (*)\" class=\"contact-from-text-1\"/>\n <span class=\"contact-from-text-3\"><img src=\"" . $serverName . "captcha/captcha_ajax.php\"/></span><span class=\"contact-from-text-2\">(*) : thông tin bắt buộc</span></p>\n <p class=\"contact-btn\">\n <input type=\"submit\" name=\"btnContact\" onClick=\"return btnContact_onclick()\" value=\"Đăng ký\" class=\"contact-submit-btn\">\n \n <input type=\"reset\" name=\"button2\" id=\"button2\" value=\"Nhập lại\" class=\"contact-submit-btn\">\n </p>\n </form>\n \n \n </section>\n \n" . $contactCourse;
?>
示例11: comboCategoryLevel
$codeSupportSkype = 'Support-Skype';
$tableCategorYahoo = 'tbl_module_new_category_yahoo';
$tableCategorSkype = 'tbl_module_new_category_skype';
$tableCategoryProductId = 'tbl_module_pro_category_id';
$tableCategoryProduct = 'tbl_module_pro_category';
$tableProductId = 'tbl_module_pro_id';
$tableProduct = 'tbl_module_pro';
$sortby = 'order by sort asc, last_modified desc';
$CategorwhereGetArrayCategory = "submenu=1";
$whereGetArrayCategory = "id<>1";
$whereUtilityCategory = " and havechildren=0";
$whereUtilityCategoryor = " and havechildren>0";
if (!$_SESSION['level'] > 0) {
if (!countRecord($tableUserLevel, $whereLevelId . " parent_level1=" . $_REQUEST['codeParent']) > 0 and $_REQUEST['act'] != '' or $_REQUEST['act'] == 'module_new_category') {
echo '<script>window.location="./?act=logout"</script>';
}
} else {
$comboHtml = "<span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> " . comboCategoryLevel('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, $whereGetArrayCategory), 'smallfont', $_REQUEST['codeParent'], 1) . "\n\t\t\t<input type=\"button\" value=\"" . TMOVE . "\" class=\"button\" \n\t\t\t\tonClick=\"window.location='./?act=" . $actConfig . "&codeParent='+ddCat.value+'&lang=" . $_lang_A . "'\">";
}
if ($_SESSION['level'] != '2') {
$whereSachdient = " and id<>107";
}
//IMAGE COMMENT
/*$actConfigComment = "module_com";
$whereConfigModuleLevelIdComment = "code_module='".$actConfigComment."' and status_module=1 and id_member=".$idUserLevel."";
$totalConfigModuleLevelIdComment = countRecord($tableUserLevelId,$whereConfigModuleLevelIdComment);
$rowConfigModuleLevelIdComment = getRecord($tableUserLevelId,$whereConfigModuleLevelIdComment);*/
//IMAGE COMMENT
$actConfigComment = "module_com";
$totalConfigModuleLevelIdComment = 1;
$totalConfigModuleLevelIdImage = 1;
示例12: comboContent
// vong lạp THEO NGON NGU===================[[[[[[[[[[[[[[[[[[[[[[[[[[[======KET THUC=====]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
//KIEM TRA CO CHO GAN LINK KO===========================
if ($defaulType['type_link'] == '1') {
$showTypeLinkHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TTHEREARELINKS . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $link . "\" type=\"text\" name=\"txtLink\" class=\"textbox\" size=\"40\">\t\t</td>\n</tr>\n\n";
}
//KIEM TRA CO CHO GAN LINK KO===========================
//kiem tra co cho hien nut new khong================
//if($defaulType['type_new']=='1') {
if ($_SESSION['loglevel'] == 'hoanghung120') {
$showChkNew = $new > 0 ? "checked" : "";
$showNewHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TPRODUCTNEW . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"checkbox\" name=\"chkNew\" value=\"on\" " . $showChkNew . "/>\t\t</td>\n</tr>\n\n";
}
//}
//kiem tra co cho hien nut new khong================ket thuc
//kiem tra co cho hien nut home khong================
$showChkHome = $home > 0 ? "checked" : "";
$showHomeHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TSHOWHOME . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"checkbox\" name=\"chkHome\" value=\"on\" " . $showChkHome . "/>\t\t</td>\n</tr>\n\n";
//kiem tra co cho hien nut home khong================ket thuc
//kiem tra co cho hien nut post hinh khong================
$showImageAllHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TTHUMBNAIL . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"file\" name=\"txtImage\" class=\"textbox\" size=\"34\">\n<input type=\"checkbox\" name=\"chkClearImg\" value=\"on\"> \n" . TDELETEIMAGE . " (" . $defaulType['image_width'] . " - " . $defaulType['image_height'] . ") \n</td>\n</tr>\n\n<!--<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Banner</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"file\" name=\"txtImageLarge\" class=\"textbox\" size=\"34\">\n<input type=\"checkbox\" name=\"chkClearImgLarge\" value=\"on\"> \n" . TDELETEIMAGE . " (" . $defaulType['image_large_width'] . " - " . $defaulType['image_large_height'] . ") \n</td>\n</tr>-->\n";
//kiem tra co cho hien nut post hinh khong=================ket thuc
//DANH MUC THUOC TINH CUA SAN PHAM==========================================================[[[[[[[[[[[[[[[[[[
$submenuShow = $submenu > 0 ? "checked" : "";
$typeShowChack = $type > 0 ? "checked" : "";
$type_commentShow = $type_comment > 0 ? "checked" : "";
$type_shareShow = $type_share > 0 ? "checked" : "";
$type_image_manyShow = $type_image_many > 0 ? "checked" : "";
$showTHUOCTINHMODULEHtml = "\n\n\n<tr>\n<td class=\"smallfont\" align=\"right\"> </td>\n<td class=\"smallfont\" align=\"center\"> </td>\n<td align=\"left\" valign=\"top\" class=\"smallfont\">\n\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"><span class=\"smallfont\" style=\"padding-right:10px;\">\n<input type=\"checkbox\" name=\"chkSubmenu\" value=\"on\" " . $submenuShow . " />\n</span></td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\">" . METHERESUBMENU . " </td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"> </td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-left:10px;\"> </td>\n<td rowspan=\"9\" align=\"left\" valign=\"top\" class=\"smallfont\" style=\"padding-left:10px;\"> </td>\n</tr>\n\n<tr>\n<td colspan=\"2\" align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:10px;\">" . comboContent($type_content) . " </td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:10px;\">" . comboImage($type_image) . " </td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-left:10px;\">" . MEIMAGE . "</td>\n</tr>\n\n<tr>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"><span class=\"smallfont\" style=\"padding-right:10px;\">\n<input type=\"checkbox\" name=\"chkType\" value=\"on\" " . $typeShowChack . " />\n</span></td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:20px;\"><span class=\"smallfont\" style=\"padding-right:20px;\">" . METYPEMOREARTICLES . "</span></td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"><input value=\"" . $image_width . "\" type=\"text\" name=\"txtImage_width\" class=\"textbox\" size=\"10\" />\n<input value=\"" . $image_height . "\" type=\"text\" name=\"txtImage_height\" class=\"textbox\" size=\"10\" /> </td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-left:10px;\">" . METHUMBNAILSIZE . "</td>\n</tr>\n\n<tr>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"><input type=\"checkbox\" name=\"chkType_comment\" value=\"on\" " . $type_commentShow . " /></td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\">" . METHEREARECOMMENT . "</td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"><input value=\"" . $image_large_width . "\" type=\"text\" name=\"txtImage_large_width\" class=\"textbox\" size=\"10\" />\n<input value=\"" . $image_large_height . "\" type=\"text\" name=\"txtImage_large_height\" class=\"textbox\" size=\"10\" /></td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-left:10px;\">" . MESIZELARGE . "</td>\n</tr>\n\n<tr>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"><input type=\"checkbox\" name=\"chkType_share\" value=\"on\" " . $type_shareShow . " /></td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\">" . METHEREARESHARE . "</td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"> </td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-left:10px;\"> </td>\n</tr>\n\n<tr>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"><input type=\"checkbox\" name=\"chkType_image_many\" value=\"on\" " . $type_image_manyShow . " /></td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\">" . CTHEREAREMANY . "</td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\"> </td>\n<td align=\"left\" valign=\"middle\" class=\"smallfont\" style=\"padding-left:10px;\"> </td>\n</tr>\n \n</table></td>\n</tr>\n\n\n\n";
//DANH MUC THUOC TINH CUA SAN PHAM==========================================================[[[[[[[[[[[[[[[[[[=====KET THUC==========]]]]]]]]]]]
$processFrameShowHtml = "\n\n<script language=\"javascript\">\n\nfunction btnSave_onclick(){\n\n\tif(test_empty(document.frmForm.txtCode.value)){\n\t\talert('" . CPLEASEENTERYOURCODE . "');\n\t\tdocument.frmForm.txtCode.focus();\n\t\treturn false;\n\t}\n\t\n\t\n\tif(test_empty(document.frmForm.txtCodeproduct.value)){\n\t\talert('" . CFPLEASEENTERYOURPRODUCTCODE . "');\n\t\tdocument.frmForm.txtCodeproduct.focus();\n\t\treturn false;\n\t}\n\t\n\tif(test_empty(document.frmForm.txtCode_module.value)){\n\t\talert('" . CYOUENTERTHCODELIST . "');\n\t\tdocument.frmForm.txtCode_module.focus();\n\t\treturn false;\n\t}\n//KIEM TRA THEO NGON NGU===========================\n" . $processFrameShowHtmlChackJs . $abcdShowHtmlChackJs . "\n}\n</script>\n<script src=\"js/count.js\" type=\"text/javascript\" language=\"javascript\"></script>\n\n<script src=\"js/ajax_chack_code_jquery.js\" type=\"text/javascript\" language=\"javascript\"></script>\n<script language=\"javascript\">\n//<!---------------------------------+\n// Developed by Roshan Bhattarai \n// Visit http://roshanbh.com.np for this script and more.\n// This notice MUST stay intact for legal use\n// --------------------------------->\n\$(document).ready(function()\n{\n\t\$(\"#txtCode\").blur(function()\n\t{\n\t\t//remove all the class add the messagebox classes and start fading\n\t\t\$(\"#msgbox\").removeClass().addClass('messagebox').text('" . CCHECHING . "').fadeIn(\"slow\");\n\t\t//check the username exists or not from ajax\n\t\t\$.post(\"" . $moduleUrl . "/ajax_chack_code_category.php\",{ code:\$(this).val() } ,function(data)\n {\n\t\t if(data == 0) //if username not avaiable\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODEALREADY . "').addClass('messageboxerror').fadeTo(900,1);\n\t\t\t});\t\t\n }\n\t\t else\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODECANNOTUSE . "').addClass('messageboxok').fadeTo(900,1);\t\n\t\t\t});\n\t\t }\n\t\t\t\t\n });\n \n\t});\n});\n</script>\n\n<script type=\"text/javascript\">\nfunction validateName(ContentUrl,lang)\n{\n //document.getElementById(\"txtName_o_t\").value =tfld; \ndocument.getElementById(\"txtUrl\"+lang).value=ContentUrl;\n}\n</script>\n<script type=\"text/javascript\">\nfunction AjaxFunction(urlCode,lang)\n{\nvar httpxml;\ntry\n{\n// Firefox, Opera 8.0+, Safari\nhttpxml=new XMLHttpRequest();\n}\ncatch (e)\n{\n// Internet Explorer\ntry\n{\nhttpxml=new ActiveXObject(\"Msxml2.XMLHTTP\");\n}\ncatch (e)\n{\ntry\n{\nhttpxml=new ActiveXObject(\"Microsoft.XMLHTTP\");\n}\ncatch (e)\n{\nalert(\"Your browser does not support AJAX!\");\nreturn false;\n}\n}\n}\nfunction stateck() \n{\nif(httpxml.readyState==4)\n{\n\nif(httpxml.responseText==0){\ndocument.getElementById(\"msg\"+lang).innerHTML='" . ATHISURLCANNOTUSE . "';\n}else{\ndocument.getElementById(\"msg\"+lang).innerHTML='" . AYOUCANUSERTHISURL . "';\n}\n//document.getElementById(\"msg\"+lang).innerHTML=httpxml.responseText;\n}\n}\nvar url=\"url_chack_ajax.php\";\nurl=url+\"?urlCode=\"+urlCode+\"&lang=\"+lang+\"&act=" . $_REQUEST['act'] . "\";\nurl=url+\"&sid=\"+Math.random();\nhttpxml.onreadystatechange=stateck;\nhttpxml.open(\"GET\",url,true);\nhttpxml.send(null);\n}\n</script>\n\n\n<form method=\"post\" name=\"frmForm\" enctype=\"multipart/form-data\" action=\"./\">\n<input type=\"hidden\" name=\"codeParent\" value=\"" . $_REQUEST['codeParent'] . "\">\n<input type=\"hidden\" name=\"act\" value=\"" . $actCategoryConfig . "_m\">\n<input type=\"hidden\" name=\"id\" value=\"" . $_REQUEST['id'] . "\">\n<input type=\"hidden\" name=\"page\" value=\"" . $_REQUEST['page'] . "\">\n<input type=\"hidden\" name=\"typec\" value=\"" . $_REQUEST['typec'] . "\">\n<input type=\"hidden\" name=\"lang\" value=\"" . $_lang_A . "\">\n<input type=\"hidden\" name=\"parent_1\" value=\"" . $parent_1 . "\">\t\n<input type=\"hidden\" name=\"parent\" value=\"" . $parent . "\">\t\n<input type=\"hidden\" name=\"txtCodeproduct\" value=\"" . $code_product . "\">\t\n<input type=\"hidden\" name=\"txtHotline\" value=\"" . $hotline . "\">\t\n<input type=\"hidden\" name=\"txtCode\" value=\"" . $code . "\">\t\n<input type=\"hidden\" name=\"txtCode_module\" value=\"" . $code_module . "\">\t\n\n<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#0069A8\" width=\"100%\">\n<tr>\n<td>\n<table border=\"0\" cellpadding=\"2\" bordercolor=\"#111111\" width=\"100%\" cellspacing=\"0\">\n<tr><td height=\"10\"></td></tr>\n<tr>\n<td colspan=\"3\" align=\"center\">\n" . $showViewImageHtml . "\n</td>\n</tr> \n\n\n\n" . $processFrameShowHtmlConnert . "\n" . $showTypeLinkHtml . $showHtmlChkStatusALL . $showNewHtml . "\n<tr >\n<td width=\"15%\" align=\"left\" valign=\"middle\" bgcolor=\"#0069A8\" class=\"title\" style=\"text-transform:uppercase\">\n</td>\n<td width=\"1%\" bgcolor=\"#0069A8\" class=\"title\" align=\"center\"> </td>\n<td width=\"83%\" height=\"24\" align=\"left\" valign=\"middle\" bgcolor=\"#0069A8\" class=\"title\"><font style=\"font-weight: 700\" color=\"#FFFFFF\">\n" . TSELECTEDCATEGORY . " </font></td>\n</tr>\n" . $showFromABCDHtml . $showImageAllHtml . "\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Số thứ tự</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $sort . "\" type=\"text\" name=\"txtSort\" class=\"textbox\" size=\"10\"></td>\n</tr>\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TTHELIST . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">" . comboCategoryLevel('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, $CategorwhereGetArrayCategory . $whereUtilityCategoryAll), 'smallfont', $_REQUEST['codeParent'], 0) . "</td>\n</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n<tr>\n<td width=\"15%\" class=\"smallfont\"></td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\"><input type=\"submit\" name=\"btnSave\" value=\"" . TUPDATE . "\" class=\"button\" onclick=\"return btnSave_onclick()\" />\n\n <input type=\"reset\" class=\"button\" value=\"" . TREENTER . "\">\t\t\t\t\t</td>\n</tr>\n</table>\n</td>\n</tr>\n</table>\n</form>\n<p align=center class=\"err\">" . $errMsg . "<br></p>\n";
示例13: comboCategory
<tr>
<td width="15%" class="smallfont" align="right" ><?php
echo TTHELIST;
?>
</td>
<td width="1%" class="smallfont" align="center"></td>
<td width="83%" class="smallfont"><?php
echo comboCategory('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, "1=1"), 'smallfont', $_REQUEST['codeParent'], 1);
?>
</td>
</tr>
<tr>
<td width="15%" class="smallfont" align="right"><?php
echo TSHOWHOME;
?>
</td>
<td width="1%" class="smallfont" align="center"></td>
<td width="83%" class="smallfont">
<input type="checkbox" name="chkHome" value="on" <?php
if ($home > 0) {
echo 'checked';
}
?>
示例14: if
} else {
$trEdit_2 = "";
}
//SAC DINH THANH VIEN NAY CO CHO SUA HAY KO==============
$showImageThumailHtml = $row['image'] != '' ? '<img border="0" src="../' . $row['image'] . '" alt="' . $row['name'] . '" height="20"/>' : '';
if ($row['home'] == 1) {
$showNotshowhome = "<a href=\"./?act=" . $actImage . "&action=notshowhome&codeParent=" . $_REQUEST['codeParent'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/show.gif\" alt=\"" . TSHOWHOME . "\" height=\"20\"/></a>";
} else {
$showNotshowhome = " <a href=\"./?act=" . $actImage . "&action=showhome&codeParent=" . $_REQUEST['codeParent'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"" . TNOTSHOWHOME . "\" height=\"20\"/></a>";
}
if ($row['status'] == 0) {
$showNotshow = " <a href=\"./?act=" . $actImage . "&action=notshow&codeParent=" . $_REQUEST['codeParent'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/show.gif\" alt=\"" . TSHOW . "\" height=\"20\"/></a>";
} else {
$showNotshow = "<a href=\"./?act=" . $actImage . "&action=show&codeParent=" . $_REQUEST['codeParent'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&id=" . $row['id'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "\"><img border=\"0\" src=\"images/notshow.gif\" alt=\"" . TNOTSHOW . "\" height=\"20\"/></a>";
}
$thumbnailShow = $row['image'] != "" ? "<a class=\"example-image-link\" href=\"../" . $row['image'] . "\" data-title=\"" . $row['name'] . "\" data-lightbox=\"example-set\"><img border=\"0\" src=\"../" . $row['image'] . "\" alt=\"" . $row['name'] . "\" height=\"20\"/></a>" : "";
$processFrameShowHtmlTr .= "\n\n<tr>\n\t\t" . $trDetele_2All . "\n\t\t" . $trEdit_2 . "\n " . $trDetele_2 . "\n\t <td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $row['id'] . "</td>\t\t\t\n\t\t<td align=\"left\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['name'] . "</td>\t\t\t\n\t\t<td align=\"left\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $nameCategory['name'] . "</td>\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n\t\t" . $thumbnailShow . "\t</td>\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $showNotshowhome . "</td>\n\n\t\t" . $trAddImage . "\n\t\t \n\t\t" . $trAddComment . "\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n\t\t\n\t\t<input type=\"hidden\" value=\"" . $row['id'] . "\" name=\"hID[]\"/>\n <input type=\"text\" value=\"" . $row['sort'] . "\" size=\"2\" name=\"txtOrder[]\"/>\t\t</td>\n\t\t\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">\n" . $showNotshow . "</td>\n\t\t<td align=\"center\" valign=\"middle\" bgcolor=\"" . $color . "\" class=\"smallfont\">" . $row['dateAdd'] . "</td>\n\t\t<td bgcolor=\"" . $color . "\" class=\"smallfont\" align=\"center\">" . $row['dateModify'] . "</td>\n\t</tr>\n";
}
//BAT DAU VONG WHILE------------------------------
//BOTTOM CUA TIN
$processFrameShowHtmlTr .= "\n<tr>\n\t " . $trDetele_1bottom . "\n\t " . $trEdit_1bottom . "\n\t " . $trDetele_1bottom . "\t\n\t\t<td></td>\t\n\t\t<td></td>\t\t\t\t\n\t\t<td></td>\n\t\t<td></td>\n\t\t<td></td>\n\t\t" . $trAddImage_Bottom . "\n\t\t" . $trAddComment_Bottom . "\n\t\t<td valign=\"middle\" align=\"center\">\n\t\t<span class=\"title\"><input type=\"submit\" value=\"" . TUPDATE . "\" name=\"btnOrder\" class=\"button\"></span>\t </td>\n\n\t\t<td> </td>\n\t\t<td></td>\n\t\t<td></td>\n\t\n\t</tr>\n\n";
//KET NOI DU LIEU LAY NOI DUNG TRANG=============================[[[[[[[[[[[[[[[[[=====================]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]=KET THUC
if ($totalAddnew > 0) {
$showSubmitHtmlAddNew = "<input type=\"button\" value=\"" . TADDNEW . "\" name=\"btnNew\" onClick=\"window.location='./?act=" . $actImage . "_m&codeParent=" . $_REQUEST['codeParent'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_lang_A . "'\" class=\"button\">";
}
///SHOW NUT submit========================
if ($_REQUEST['codeParent'] != '' and $defaulType['type'] != '0') {
$showSubmitHtml = $trDeteleAllbottom . $showSubmitHtmlAddNew;
}
$processFrameShowHtml = "\n<script src=\"js/ajax_chack_code_jquery.js\" type=\"text/javascript\" language=\"javascript\"></script>\n<script language=\"javascript\">\n//<!---------------------------------+\n// Developed by Roshan Bhattarai \n// Visit http://roshanbh.com.np for this script and more.\n// This notice MUST stay intact for legal use\n// --------------------------------->\n\$(document).ready(function()\n{\n\t\$(\"#txtCode\").blur(function()\n\t{\n\t\t//remove all the class add the messagebox classes and start fading\n\t\t\$(\"#msgbox\").removeClass().addClass('messagebox').text('" . CCHECHING . "').fadeIn(\"slow\");\n\t\t//check the username exists or not from ajax\n\t\t\$.post(\"" . $moduleUrl . "/ajax_chack_code.php\",{ code:\$(this).val() } ,function(data)\n {\n\t\t if(data == 0) //if username not avaiable\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODEALREADY . "').addClass('messageboxerror').fadeTo(900,1);\n\t\t\t});\t\t\n }\n\t\t else\n\t\t {\n\t\t \t\$(\"#msgbox\").fadeTo(200,0.1,function() //start fading the messagebox\n\t\t\t{ \n\t\t\t //add message and change the class of the box and start fading\n\t\t\t \$(this).html('" . CTHISCODECANNOTUSE . "').addClass('messageboxok').fadeTo(900,1);\t\n\t\t\t});\n\t\t }\n\t\t\t\t\n });\n \n\t});\n});\n</script>\n\n<form method=\"POST\" action=\"./?act=" . $_REQUEST['act'] . "&codeParent=" . $_REQUEST['act'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&page=" . $_REQUEST['page'] . "&lang=" . $_REQUEST['lang'] . "\" name=\"frmForm\" enctype=\"multipart/form-data\">\n<input type=\"hidden\" name=\"page\" value=\"" . $page . "\">\n<input type=\"hidden\" name=\"codeParent\" value=\"" . $_REQUEST['codeParent'] . "\">\n<input type=\"hidden\" name=\"idComment\" value=\"" . $_REQUEST['idComment'] . "\">\n<input type=\"hidden\" name=\"code\" value=\"" . $_REQUEST['code'] . "\">\n<input type=\"hidden\" name=\"act\" value=\"" . $actImage . "\">\n<input type=\"hidden\" name=\"lang\" value=\"" . $_lang_A . "\">\n\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t<tr>\n\t\t" . $showPageIndex . "\n\t\t<td height=\"30\" align=\"right\" valign=\"middle\" class=\"smallfont\">\n\t\t\t<table width=\"100%\" border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td colspan=\"5\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> " . comboCategoryLevel('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, $whereGetArrayCategory), 'smallfont', $_REQUEST['codeParent'], 1) . "\n\t\t\t<input type=\"button\" value=\"" . TMOVE . "\" class=\"button\" \n\t\t\t\tonClick=\"window.location='./?act=" . $actConfig . "&codeParent='+ddCat.value+'&lang=" . $_lang_A . "'\"></td>\n </tr>\n <tr>\n <td width=\"61\" align=\"right\" valign=\"middle\" class=\"smallfont\" style=\"padding-right:5px;\">\n " . MECHECKCODE . " </td>\n <td width=\"128\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\">\n \n <input value=\"" . $CODE_default['code_product'] . $code . "\" type=\"text\" name=\"txtCode\" id=\"txtCode\" class=\"textbox\" size=\"20\"> </td>\n <td align=\"left\" width=\"195\" valign=\"middle\" style=\"padding-right:20px;\" class=\"smallfont\" >\n <span id=\"msgbox\" style=\"display:none; font-size:12px\"></span> </td>\n <td width=\"249\" align=\"right\" valign=\"middle\" style=\"padding-right:20px;\"> \n\t<input type=\"text\" name=\"ddName\" />\n\t<input name=\"button3\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actImage . "&codeParent=" . $_REQUEST['codeParent'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&name='+ddName.value+'&lang=" . $_lang_A . "'\" value=\"" . MESEARCHNAME . "\" />\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t</td>\n <td width=\"413\" align=\"right\" valign=\"middle\" style=\"padding-right:5px;\"> \n\t<input type=\"text\" name=\"ddMa\" />\n\t <input name=\"button2\" type=\"button\" class=\"button\" \n\t\t\t\tonclick=\"window.location='./?act=" . $actImage . "&codeParent=" . $_REQUEST['codeParent'] . "&idComment=" . $_REQUEST['idComment'] . "&code_frame=" . $_REQUEST['code_frame'] . "&code_module=" . $_REQUEST['code_module'] . "&ma='+ddMa.value+'&lang=" . $_lang_A . "'\" value=\"" . MESEARCHCODE . "\" /></td>\n </tr>\n</table>\n\n\t\t</td>\n\t</tr>\n</table>\n\n\n<table border=\"1\" cellpadding=\"2\" bordercolor=\"#C9C9C9\" width=\"100%\">\n\n\n\n" . $processFrameShowHtmlTr . "\n\n\n\n</table>\n\n<table width=\"100%\">\n\t<tr>\n\t\t<td width=\"30%\">\n" . $showSubmitHtml . "\n\t\t</td>\n\t</tr>\n</table>\n\n\n\n</form>\n<link rel=\"stylesheet\" href=\"css/lightbox.css\">\n<script src=\"js/jquery-1.11.0.min.js\"></script>\n\t<script src=\"js/lightbox.js\"></script>\n<script language=\"JavaScript\">\nfunction chkallClick(o) {\n \tvar form = document.frmForm;\n\tfor (var i = 0; i < form.elements.length; i++) {\n\t\tif (form.elements[i].type == \"checkbox\" && form.elements[i].name!=\"chkall\") {\n\t\t\tform.elements[i].checked = document.frmForm.chkall.checked;\n\t\t}\n\t}\n}\n</script>\n\n<p align=center class=\"err\">" . $errMsg . "<br></p>\n\n<table width=\"100%\">\n\t<tr><td height=\"10\"></td></tr>\n\t<tr><td class=\"smallfont\">" . UTOTALROW . " : <b>" . countRecord('tbl_image_id', 'id_parent=' . $_REQUEST['idComment']) . "</b>" . "</td></tr>\n</table>\n";
示例15: comboCategory
<?php
if ($_REQUEST['code'] == 1) {
$errMsg = 'Cập nhật thành công.';
}
?>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="smallfont">Trang : <?php
echo $pageindex;
?>
</td>
<td height="30" align="right" class="smallfont">
<?php
echo comboCategory('ddCat', getArrayCategory('tbl_product_category'), 'smallfont', $_REQUEST['cat'], 1);
?>
<input type="button" value="Chuyển" class="button" onClick="window.location='./?act=product_category&cat='+ddCat.value">
</td>
</tr>
</table>
<table border="1" cellpadding="2" bordercolor="#C9C9C9" width="100%">
<tr>
<th width="27" class="title"><input type="checkbox" name="chkall" onClick="chkallClick(this);"></th>
<th class="title" colspan="2" nowrap></th>
<th width="30" class="title"><a class="title" href="<?php
echo getLinkSort(1);
?>
">ID</a></th>
<th width="199" class="title"><a class="title" href="<?php