本文整理汇总了PHP中comboCategory函数的典型用法代码示例。如果您正苦于以下问题:PHP comboCategory函数的具体用法?PHP comboCategory怎么用?PHP comboCategory使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了comboCategory函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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>
<td class="smallfont" align="right"><?php
示例2: comboCategory
</td>
</tr>
<tr>
<td width="15%" class="smallfont" align="right">Hình ảnh</td>
<td width="1%" class="smallfont" align="center"></td>
<td width="83%" class="smallfont">
<input type="file" name="txtImage" class="textbox" size="34">
<input type="checkbox" name="chkClearImg" value="on" /> Xóa chọn hình
</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', $arraySourceCombo, '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>
示例3: getArrayCombo
include 'district_m_insert.php';
$pathView = '';
$pathThumb = '';
include 'viewImage.php';
$whereGetArrayCategory = $whereStatus;
$arraySourceCombo = getArrayCombo($tableCityId, 'id', 'name', $whereGetArrayCategory);
// vong lạp THEO NGON NGU===================[[[[[[[[[[[[[[[[[[[[[[[[[[[====================]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
$processFrameShowHtmlConnertTC = "";
$processFrameShowHtmlConnert = "";
$processFrameShowHtmlChackJs = "";
foreach ($conf as $ln => $j) {
//JAVASACRT KIEM TRA THEO GIA====================================================[[[[[[[[[[
$processFrameShowHtmlChackJs .= "\nif(test_empty(document.frmForm.txtName" . $ln . ".value)){\n\t\talert('" . CNAME . "');\n\t\tdocument.frmForm.txtName" . $ln . ".focus();\n\t\treturn false;\n\t}\n\n";
//JAVASACRT KIEM TRA THEO GIA====================================================[[[[[[[[[[[[[KET THUC=]]]]]]]]]
//LAY NOI DUNG THEO NGON NGU====================================================[[[[[[[[[[[[[====]]]]]]]]]
if (isset($_REQUEST['id'])) {
$oldid = $_REQUEST['id'];
$row = getRecord($tableDistrict, "id_code=" . $oldid . " and lang='" . $ln . "'");
$name = $row['name'];
$sort = $row['sort'];
$status = $row['status'];
}
$showHtmlChkStatus = $status > 0 ? "checked" : "";
$processFrameShowHtmlConnert .= "\n<tr >\n\t\t\t\t\t<td width=\"15%\" align=\"left\" valign=\"middle\" bgcolor=\"#0069A8\" class=\"title\" style=\"text-transform:uppercase\">\n\t\t\t\t\t</td>\n\t\t\t\t <td width=\"1%\" bgcolor=\"#0069A8\" class=\"title\" align=\"center\"> </td>\n\t\t\t\t\t<td width=\"83%\" height=\"24\" align=\"left\" valign=\"middle\" bgcolor=\"#0069A8\" class=\"title\"><font style=\"font-weight: 700\" color=\"#FFFFFF\">\n\t\t\t\t\t" . $conf[$ln] . " </font></td>\n\t\t </tr>\t\n \t\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TNAME . "</td>\n\t\t\t\t <td width=\"1%\" class=\"smallfont\" align=\"center\"><font color=\"#FF0000\">*</font></td>\n\t\t\t\t\t<td width=\"83%\" class=\"smallfont\">\n\t\t\t\t\t\t<input value=\"" . $name . "\" type=\"text\" name=\"txtName" . $ln . "\" ONCHANGE=\"validateName(this.value,'" . $ln . "');\" class=\"textbox\" size=\"70\">\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\n\n" . $processFrameShowHtmlConnertTC . "\n\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TNOTSHOW . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"checkbox\" name=\"chkStatus" . $ln . "\" value=\"on\" " . $showHtmlChkStatus . ">\n</td>\n</tr>\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";
$showCityHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Tỉnh thành phố</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n" . comboCategory('city', $arraySourceCombo, 'smallfont', $city, 0) . "</td>\n</tr>\n\n";
$processFrameShowHtml = "\n\n<script language=\"javascript\">\n\nfunction btnSave_onclick(){\n" . $processFrameShowHtmlChackJs . "\n}\n</script>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../js/date/epoch_styles.css\" />\n<script type=\"text/javascript\" src=\"../js/date/epoch_classes.js\"></script>\n<script type=\"text/javascript\">\n\n\nvar dsd,ded,psd,ped; \n\nwindow.onload = function(){\n\n //alert ((screenH-footerheight)-300);\n dsd = new Epoch('epoch_popup','popup',document.getElementById('txtDiscount_start_date'));\n ded = new Epoch('epoch_popup','popup',document.getElementById('txtDiscount_end_date'));\n psd = new Epoch('epoch_popup','popup',document.getElementById('txtPromotions_start_date'));\n ped = new Epoch('epoch_popup','popup',document.getElementById('txtPromotions_end_date'));\n\n }\n\n</script>\n\n\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.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\n\n\n<script type=\"text/javascript\">\nfunction showRelatedproductAjax(id)\n{\n\n\tif (document.getElementById(\"relatedProduct\"+id).checked){\n\n\n\nvar xmlhttpProduct; \nif (id==\"\")\n {\n document.getElementById(\"showRelatedproduct_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 xmlhttpProduct=new XMLHttpRequest();\n }\nelse\n {// code for IE6, IE5\n xmlhttpProduct=new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\nxmlhttpProduct.onreadystatechange=function()\n {\n if (xmlhttpProduct.readyState==4 && xmlhttpProduct.status==200)\n {\n document.getElementById(\"showRelatedproduct_div\"+id).innerHTML=xmlhttpProduct.responseText;\n }\n }\nxmlhttpProduct.open(\"GET\",\"" . $moduleUrl . "/related_product_ajax.php?idParent=\"+id+\"&idCode=" . $_REQUEST['id'] . "&lang=" . $_lang_A . "\",true);\nxmlhttpProduct.send();\n\n\t}else {\n\n\tdocument.getElementById(\"showRelatedproduct_div\"+id).innerHTML=\"\";\n\n\t}\n\n}\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=\"" . $actDistrict . "_m\">\n<input type=\"hidden\" name=\"id\" value=\"" . $_REQUEST['id'] . "\">\n<input type=\"hidden\" name=\"page\" value=\"" . $_REQUEST['page'] . "\">\n<input type=\"hidden\" name=\"lang\" value=\"" . $_lang_A . "\">\n<input type=\"hidden\" name=\"id_member\" value=\"" . $id_member . "\">\n<input type=\"hidden\" name=\"code_module\" value=\"" . $_REQUEST['code_module'] . "\">\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 . "\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\n" . $showPOSTSRELATEDTOPRORTFOLIOAllHtml . "\n" . $showPOSTSRELATEDPRODUCTSHtml . "\n" . $showImageAllHtml . "\n" . $showNewHtml . "\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t" . $showCityHtml . "\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";
示例4: comboCategory
<?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', $arraySourceCombo, '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="20" class="title"><input type="checkbox" name="chkall" onClick="chkallClick(this);"></th>
<th width="20" class="title"></th>
<th width="20" class="title"></th>
示例5: comboCategory
<td width="15%" class="smallfont" align="right">Code 1 </td>
<td width="1%" class="smallfont" align="center"><font color="#FF0000">*</font></td>
<td width="83%" class="smallfont">
<input value="<?php
echo $code_module;
?>
" type="text" name="txtCode_module" class="textbox" size="70"> </td>
</tr>
<tr>
<td width="15%" class="smallfont" align="right">Type Module </td>
<td width="1%" class="smallfont" align="center"></td>
<td width="83%" class="smallfont">
<?php
echo comboCategory('type_module', $arrayConfigType, 'smallfont', $type_module, '');
?>
</td>
</tr>
<tr>
<td width="15%" class="smallfont"></td>
<td width="1%" class="smallfont" align="center"></td>
<td width="83%" class="smallfont"><input type="submit" name="btnSave" value="Update" class="button" onclick="return btnSave_onclick()" />
<input type="reset" class="button" value="Reset"> </td>
</tr>
</table>
</td>
</tr>
</table>
</form>
示例6: while
';
}
//lay thong tin cac mon day hoc
$HtmlClasses = '';
$sqlClasses = "select * from {$tableCategoryNew} where status=0 and parent=196 and lang='vn' {$sortby}";
$resultClasses = @mysql_query($sqlClasses, $conn);
while ($Classes = @mysql_fetch_array($resultClasses)) {
$idClasses = $Classes['id_code'];
$nameClasses = $Classes['name'];
for ($w = 0; $w < count($arrayClassesId); $w++) {
if ($arrayClassesId[$w] == $idClasses) {
$checkboxClasses = $arrayClasses[$w] == 1 ? "checked" : "";
}
}
$HtmlClasses .= "\n\t<div class=\"table-form-5\">\n <input type=\"checkbox\" value=\"on\" class=\"table-form-4\" name=\"txtClasses" . $idClasses . "\" " . $checkboxClasses . " id=\"obj_42\">\n <label for=\"obj_42\">" . $nameClasses . "</label>\n </div>";
//mon day tot nhat
$selectedGood = $classes_good == $idClasses ? 'selected' : '';
$HtmlClassesGood .= "<option value=\"" . $idClasses . "\" " . $selectedGood . ">" . $nameClasses . "</option>";
}
$HtmlClassesGoodAll = "<select name=\"classes_good\" class=\"table-form-6\">\n <option>------ " . TOPTIONAL . " ------</option>\n " . $HtmlClassesGood . "\n </select>";
//lay thong tin cac mon day hoc
//neu la lam gia su
$arraySourceComboPrice = getArrayCombo($tableCategoryNewId, 'id', 'name', 'parent=197');
if ($sex == 1) {
$checkedtype_sex1 = 'checked="checked"';
} elseif ($sex == 0) {
$checkedtype_sex0 = 'checked="checked"';
}
$showHtmlHomeConnert = "<section class=\"clear\"></section>\n<section class=\"main-width\">" . $asideleft . "\n<aside class=\"center-col\">\n " . $showHtmlSearch . "\n <div class=\"center-col-1\"><img src=\"" . $serverName . "images/title-bg-1.png\" width=\"7\" height=\"35\" alt=\"\"></div>\n <div class=\"center-col-2\">Đăng ký làm gia sư</div>\n <div class=\"center-col-1\"><img src=\"" . $serverName . "images/title-bg-3.png\" width=\"7\" height=\"35\" alt=\"\"></div>\n <div class=\"next-page-top\" id=\"pagn\">\n <ul class=\"next-page\">\n <li><a href=\"javascript:history.go(-1);\" title=\"\"> " . _rBACK . "</a></li>\n </ul>\n </div>\n <div class=\"clear\"></div>\n <div class=\"center-col-3\">\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $serverName . "css/form.css\"/>\n<script type=\"text/javascript\" src=\"" . $serverName . $folderLib . "/md5.js\"></script>\n<script type=\"text/javascript\" src=\"" . $serverName . $folderDatabase . "/district.js\"></script>\n<script language=\"javascript\">\nfunction btnRegi_onclick(){\ndocument.getElementById('email_subject').style.display = \"none\";\ndocument.getElementById('email_name').style.display = \"none\";\ndocument.getElementById('email_address').style.display = \"none\";\ndocument.getElementById('email_phone').style.display = \"none\";\ndocument.getElementById('email_birthday').style.display = \"none\";\ndocument.getElementById('email_schools').style.display = \"none\";\ndocument.getElementById('email_majors').style.display = \"none\";\ndocument.getElementById('email_gs_ctd').style.display = \"none\";\ndocument.getElementById('email_obj_42').style.display = \"none\";\ndocument.getElementById('email_email').style.display = \"none\";\ndocument.getElementById('emailok_error').style.display = \"none\";\ndocument.getElementById('email_error').style.display = \"none\";\ndocument.getElementById('email_capcha').style.display = \"none\";\n\t\n\tif(document.Register.txtName.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_name').style.display = \"\";\n\t\tdocument.Register.txtName.focus();return false;\n\t}\n\t\n\tif(document.Register.txtSubject.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_subject').style.display = \"\";\n\t\tdocument.Register.txtSubject.focus();return false;\n\t}\n\t\n\t\n\tif(document.Register.txtAddress.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_address').style.display = \"\";\n\t\tdocument.Register.txtAddress.focus();return false;\n\t}\n\t\n\tif(document.Register.txtPhone.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_phone').style.display = \"\";\n\t\tdocument.Register.txtPhone.focus();return false;\n\t}\n\t\n\t\n\tif(document.Register.txtEmail.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_email').style.display = \"\";\n\t\tdocument.Register.txtEmail.focus();return false;\n\t}\n\t\n\tif(document.Register.txtBirthday.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_birthday').style.display = \"\";\n\t\tdocument.Register.txtBirthday.focus();return false;\n\t}\n\t\n\tif(document.Register.txtSchools.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_schools').style.display = \"\";\n\t\tdocument.Register.txtSchools.focus();return false;\n\t}\n\t\n\tif(document.Register.txtMajors.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_majors').style.display = \"\";\n\t\tdocument.Register.txtMajors.focus();return false;\n\t}\n\t\n // if (t<1){\n// document.getElementById('message_errorre').style.display = \"\";\n//\t\tdocument.getElementById('email_gs_ctd').style.display = \"\";\n// return false;\n// }\n//\t\n//\tvar total1 = \$(\"#obj_42 input[type=checkbox]:checked\").size();\n// if (!total1>0){\n// document.getElementById('message_errorre').style.display = \"\";\n//\t\tdocument.getElementById('email_obj_42').style.display = \"\";\n// return false;\n// }\n\t\n\tif(document.Register.txtCapchainput.value==''){\n\t\tdocument.getElementById('message_errorre').style.display = \"\";\n\t\tdocument.getElementById('email_capcha').style.display = \"\";\n\t\tdocument.Register.txtCapchainput.focus();return false;\n\t}\t\n\treturn true;\n}\n</script>\n \n\n\n<div class=\"center-14\">\n <div class=\"table-3\"> Mong các bạn cung cấp thông tin một cách chính xác nhất để chúng tôi có thể giúp bạn lựa chọn một Lớp dạy và học sinh phù hợp với khả năng và nguyện vọng của các bạn.\n Rất cảm ơn các bạn đã tin tưởng và lựa chọn Công ty Gia sư. </div>\n\t\t <br><br>\n\t\t " . $showHtmlMessError . "\n <form name=\"Register\" method=\"POST\" id=\"ap_Register_form\" novalidate=\"novalidate\" action=\"" . $serverName . FRAMEMEMBERTOUTORNAME . "/\"> \n\t <input name=\"openidReturn_to\" value=\"" . $openidReturn_to . "\" type=\"hidden\">\n\t\t<input name=\"txtCapcha\" value=\"" . md5($code_cards) . "\" type=\"hidden\">\n\t\t<input name=\"idAll\" value=\"" . $oldid . "\" type=\"hidden\">\n\t <table class=\"table-1\">\n\t\t \n <tr class=\"table-2\">\n <td colspan=\"2\"><strong>Thông tin cá nhân:</strong></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Tiêu đề tin:</td>\n <td><input name=\"txtName\" value=\"" . $name . "\" type=\"text\" class=\"table-form-1\"></td>\n </tr>\n\t\t \n\t\t <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Họ tên:</td>\n <td><input name=\"txtSubject\" value=\"" . $subject . "\" type=\"text\" class=\"table-form-1\"></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Địa chỉ:</td>\n <td><input name=\"txtAddress\" value=\"" . $address . "\" type=\"text\" class=\"table-form-1\"></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Quận/Huyện:</td>\n <td>\n\t\t\t<div class=\"city_input\">\n\t\t\t" . comboCity($city, '', '0', 'districtdiv', '') . "</div>\n <div class=\"city_input\" id=\"districtdiv\">\n" . comboDistrict('', $district, $city, '', '0', '') . "\n</div></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Di động:</td>\n <td><input name=\"txtPhone\" value=\"" . $phone . "\" type=\"text\" class=\"table-form-1\"></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"> ĐT cố định:</td>\n <td><input name=\"txtTelephone\" value=\"" . $telephone . "\" type=\"text\" class=\"table-form-1\"></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Email:</td>\n <td><input name=\"txtEmail\" value=\"" . $email . "\" type=\"text\" class=\"table-form-1\"></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Năm sinh:</td>\n <td><input name=\"txtBirthday\" value=\"" . $birthday . "\" type=\"text\" class=\"table-form-3\"></td>\n </tr>\n <tr>\n <td class=\"table-text-right\">Giới tính:</td>\n <td>Nữ\n <input name=\"type_sex\" type=\"radio\" " . $checkedtype_sex1 . " value=\"1\" /> \n Nam\n <input name=\"type_sex\" type=\"radio\" value=\"0\" " . $checkedtype_sex0 . " /></td>\n </tr>\n <tr class=\"table-2\">\n <td colspan=\"2\"><strong>Thông tin Gia sư:</strong></td>\n </tr>\n <tr>\n <td class=\"table-text-right\">Trình độ:</td>\n <td>" . comboTypeGS($TYPE_SEARCH, $gs_t, 'GS_T', 'GS_T', '0') . "</td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Nơi đào tạo <br />\n (hoặc nơi đang công tác)</td>\n <td>\n\t\t\t<input value=\"" . $schools . "\" type=\"text\" name=\"txtSchools\" class=\"table-form-1\" size=\"50\">\n\t\t\t</td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Ngành học:</td>\n <td>\n\t\t\t<input value=\"" . $majors . "\" type=\"text\" name=\"txtMajors\" class=\"table-form-1\" size=\"50\">\n\t\t\t</td>\n </tr>\n <tr>\n <td class=\"table-text-right\">Số năm kinh nghiệm:</td>\n <td>\n\t\t\t<input value=\"" . $yexperience . "\" type=\"text\" name=\"txtYexperience\" class=\"table-form-3\" size=\"10\">\n\t\t\t</td>\n </tr>\n <tr>\n <td class=\"table-text-right\">Điểm thi ĐH/CĐ <br/>\n (tổng điểm 3 môn thi của bạn):</td>\n <td><input value=\"" . $higher_scores . "\" type=\"text\" name=\"txtHigher_scores\" class=\"table-form-3\" size=\"10\"></td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Có thể dạy:</td>\n <td>" . checkboxTypeGS($TYPE_SEARCH, $gs_ctd, 'GS_CTD', 'GS_CTD', '0', 'table-form-4', '', 'class_', '<br>') . "</td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Môn dạy:</td>\n <td> " . $HtmlClasses . "</td>\n </tr>\n <tr>\n <td class=\"table-text-right\">Môn dạy tốt nhất:</td>\n <td>" . $HtmlClassesGoodAll . "</td>\n </tr>\n <tr>\n <td> </td>\n <td class=\"table-2\"><strong>Các buổi có thể dạy trong tuần:</strong></td>\n </tr>\n <tr>\n <td class=\"table-text-right\">\n <label class=\"table-form-7\"> Sáng: <br />\n Chiều: <br />\n Tối: <br />\n </label></td>\n <td>" . checkboxTypeGS($TYPE_SEARCH, $tg_scts, 'TG_SCT', 'TG_SCTS', '0', 'table-form-4', '', 'morning_') . "\n <br />\n " . checkboxTypeGS($TYPE_SEARCH, $tg_sctc, 'TG_SCT', 'TG_SCTC', '0', 'table-form-4', '', 'morning_') . "\n <br />\n " . checkboxTypeGS($TYPE_SEARCH, $tg_sctt, 'TG_SCT', 'TG_SCTT', '0', 'table-form-4', '', 'morning_') . "</td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Khoảng học phí Gia sư mong muốn <br/> (Là học phí cho 1 buổi/2h)</td>\n <td>\n " . comboCategory('txtPrice', $arraySourceComboPrice, 'smallfont', $price, 0) . "\n </td>\n </tr>\n <tr>\n <td class=\"table-text-right\">Thông tin thêm hoặc yêu cầu khác:</td>\n <td>\n <textarea name=\"txtDetailShort\" class=\"table-form-9\" cols=\"40\" rows=\"5\">" . $detail_short . "</textarea>\n </td>\n </tr>\n <tr>\n <td class=\"table-text-right\"><span class=\"table-4\">(*)</span> Mã bảo mật:</td>\n <td>\n\t\t\t<div class=\"capcha\">\n\t\t\t<input name=\"txtCapchainput\" type=\"text\" class=\"table-form-3\"></div> <div class=\"capcha\"><img src=\"" . $serverName . "captcha/captcha_ajax.php\"/></div></td>\n </tr>\n\t\t \n </table>\n <small style=\"font-weight:normal\">Các trường có đánh dấu <span class=\"table-4\">(*)</span> là bắt buộc. Xin hãy đảm bảo tất cả các thông tin bạn nhập là chính xác!</small><br/>\t\n\t\t\t<input type=\"submit\" name=\"btnRegister\" onClick=\"return btnRegi_onclick()\" style=\"width:120px;height:22px;\" value=\"Gửi thông tin\" class=\"comment-bg-1-btn\" />\n </form>\n </div>\n\n\t\n</div>\n\n\n </div>\n </aside>\n" . $asideright . "</section>";
}
示例7: session_start
<?php
session_start();
$_lang_A = 'vn';
$folderIncAjax = "../";
require "../../qweasd/hoanghung.php";
require "../../qweasd/common_start.php";
include "../../lib/func.lib.php";
require "../language/language.php";
require "../language/language_config.php";
include 'table_act.php';
include '../../module/table_frame.php';
?>
<?php
// Developed by Roshan Bhattarai
// Visit http://roshanbh.com.np for this script and more.
// This notice MUST stay intact for legal use
//this varible contains the array of existing users
//value got from the get metho
$idcity = $_GET['idcity'];
$id = $_GET['id'];
$arraySourceComboDistrict = getArrayCombo($tableDistrictId, 'id', 'name', "parent=" . $idcity);
echo comboCategory('ddDistrict', $arraySourceComboDistrict, 'smallfont', $district, 0);
示例8: comboCategory
<td width="15%" class="smallfont" align="right">Thông tin chi tiết</td>
<td width="1%" class="smallfont" align="center"></td>
<td width="83%" class="smallfont">
<textarea name="txtDetailShort" cols="80" rows="10" id="txtDetailShort"><?php
echo $detail_short;
?>
</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', getArrayNews($tableCategoryConfig), '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>
示例9: comboCategory
</tr>
<tr>
<td width="15%" class="smallfont" align="right">Pass </td>
<td width="1%" class="smallfont" align="center"><font color="#FF0000">*</font></td>
<td width="83%" class="smallfont">
<input value="" type="text" name="txtPwd" class="textbox" size="70"> </td>
</tr>
<tr>
<td width="15%" class="smallfont" align="right">City </td>
<td width="1%" class="smallfont" align="center"><font color="#FF0000">*</font></td>
<td width="83%" class="smallfont">
<?php
echo comboCategory('txtCity', $arraySourceCombo, 'smallfont', $city, 0);
?>
</td>
</tr>
<tr>
<td width="15%" class="smallfont" align="right">Country </td>
<td width="1%" class="smallfont" align="center"><font color="#FF0000">*</font></td>
<td width="83%" class="smallfont">
<input value="<?php
echo $country;
?>
" type="text" name="txtCountry" class="textbox" size="70"> </td>
</tr>
<tr>
<td width="15%" class="smallfont" align="right">Update new</td>
<td width="1%" class="smallfont" align="center"></td>
示例10: btnSave_onclick
$showPOSTSRELATEDPRODUCTSHtmlTr .= "
</div>
</td>
</tr>
";
//LAY NHUNG SP CUA DANH MUC NAY==================================================KET THUC==================[[[[[[[[[[[[[[[
}
//KIEM TRA DANH MUC NAY CO SP KHONG=================================KET THUC
}
$showPOSTSRELATEDPRODUCTSHtml = "
<tr>
<td width=\"15%\" class=\"smallfont\" align=\"right\">"._adPOSTSRELATEDPRODUCTS."</td>
<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>
<td width=\"83%\" class=\"smallfont\">
<div class=\"div_scroll\" style=\"height:200px;\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
".$showPOSTSRELATEDPRODUCTSHtmlTr."
</table>
</div>
</td>
</tr>
";*/
//BAI VIET LIEN QUAN TOI SAN PHAM=====================================================KET THUC
$processFrameShowHtml = "\n\n<script language=\"javascript\">\n\nfunction btnSave_onclick(){\n\n//if(test_empty(document.frmForm.txtCode.value)){\n//\t\talert('" . CPLEASEENTERYOURCODE . "');\n//\t\tdocument.frmForm.txtCode.focus();\n//\t\treturn false;\n//\t}\n//KIEM TRA THEO NGON NGU===========================\n" . $processFrameShowHtmlChackJs . "\n}\n</script>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../js/date/epoch_styles.css\" />\n<script type=\"text/javascript\" src=\"../js/date/epoch_classes.js\"></script>\n<script type=\"text/javascript\">\n\n\nvar dsd,ded,psd,ped; \n\nwindow.onload = function(){\n\n //alert ((screenH-footerheight)-300);\n dsd = new Epoch('epoch_popup','popup',document.getElementById('txtDiscount_start_date'));\n ded = new Epoch('epoch_popup','popup',document.getElementById('txtDiscount_end_date'));\n psd = new Epoch('epoch_popup','popup',document.getElementById('txtPromotions_start_date'));\n ped = new Epoch('epoch_popup','popup',document.getElementById('txtPromotions_end_date'));\n\n }\n\n</script>\n\n\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.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\n\n\n<script type=\"text/javascript\">\nfunction showRelatedproductAjax(id)\n{\n\n\tif (document.getElementById(\"relatedProduct\"+id).checked){\n\n\n\nvar xmlhttpProduct; \nif (id==\"\")\n {\n document.getElementById(\"showRelatedproduct_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 xmlhttpProduct=new XMLHttpRequest();\n }\nelse\n {// code for IE6, IE5\n xmlhttpProduct=new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\nxmlhttpProduct.onreadystatechange=function()\n {\n if (xmlhttpProduct.readyState==4 && xmlhttpProduct.status==200)\n {\n document.getElementById(\"showRelatedproduct_div\"+id).innerHTML=xmlhttpProduct.responseText;\n }\n }\nxmlhttpProduct.open(\"GET\",\"" . $moduleUrl . "/related_product_ajax.php?idParent=\"+id+\"&idCode=" . $_REQUEST['id'] . "&lang=" . $_lang_A . "\",true);\nxmlhttpProduct.send();\n\n\t}else {\n\n\tdocument.getElementById(\"showRelatedproduct_div\"+id).innerHTML=\"\";\n\n\t}\n\n}\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=\"" . $actAdvertisement . "_m\">\n<input type=\"hidden\" name=\"id\" value=\"" . $_REQUEST['id'] . "\">\n<input type=\"hidden\" name=\"page\" value=\"" . $_REQUEST['page'] . "\">\n<input type=\"hidden\" name=\"lang\" value=\"" . $_lang_A . "\">\n<input type=\"hidden\" name=\"txtcodeParentCha\" value=\"" . $codeParentCha . "\">\n<input type=\"hidden\" name=\"code_module\" value=\"" . $_REQUEST['code_module'] . "\">\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 . "\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<!--<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TCODE . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"><font color=\"#FF0000\">*</font></td>\n<td width=\"83%\" class=\"smallfont\">\n\t\t\t\t\t\t\n<input value=\"" . $CODE_default['code_product'] . $code . "\" type=\"text\" name=\"txtCode\" id=\"txtCode\" class=\"textbox\" size=\"50\"><span id=\"msgbox\" style=\"display:none\"></span>\t\n</td>\n</tr>-->\n" . $showPOSTSRELATEDTOPRORTFOLIOAllHtml . "\n" . $showPOSTSRELATEDPRODUCTSHtml . "\n" . $showImageAllHtml . "\n" . $showNewHtml . "\n" . $showHomeHtml . "\t\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TSELECTEDCATEGORY . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">" . comboAdvertisementType($typeIVM, 'cmbImageVideoMusic') . "</td>\n</tr>\n\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\">" . comboCategory('ddCat', $arraySourceCombo, 'smallfont', $parent, 0) . "</td>\n</tr>-->\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . ADADVERTISINGMODULE . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">" . comboAdvertisementModule($_REQUEST['adv_module'], "1", "comboAdvertisementModule", "textbox") . "</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";
示例11: getRecord
//JAVASACRT KIEM TRA THEO GIA====================================================[[[[[[[[[[[[[KET THUC=]]]]]]]]]
//LAY NOI DUNG THEO NGON NGU====================================================[[[[[[[[[[[[[====]]]]]]]]]
if (isset($_REQUEST['id'])) {
$oldid = $_REQUEST['id'];
$row = getRecord($tableImage, "id_code=" . $oldid . " and lang='" . $ln . "'");
$title = $row['title'];
$name = $row['name'];
$subject = $row['subject'];
$detail_short = $row['detail_short'];
$detail = $row['detail'];
$sort = $row['sort'];
$status = $row['status'];
}
//LAY NOI DUNG HTML=================================
//connert=============================================================
$processFrameShowHtmlConnertTC = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TSHORTCONTENT . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\t\t\t\t\t\t \n<textarea name=\"txtDetail" . $ln . "\" cols=\"80\" rows=\"10\" id=\"txtDetail" . $ln . "\">" . $detail . "</textarea>\n</td></tr>\n";
//connert=============================================================
$showHtmlChkStatus = $status > 0 ? "checked" : "";
$processFrameShowHtmlConnert .= "\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" . $conf[$ln] . " </font></td>\n</tr>\t\n\t\t\n\t\t \n \t\t \t\t\t\t\t\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TNAME . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"><font color=\"#FF0000\">*</font></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $name . "\" type=\"text\" name=\"txtName" . $ln . "\" ONCHANGE=\"validateName(this.value,'" . $ln . "');\" class=\"textbox\" size=\"70\">\t\t\t\t\t</td>\n</tr>\n\n" . $processFrameShowHtmlConnertTC . "\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TNOTSHOW . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"checkbox\" name=\"chkStatus" . $ln . "\" value=\"on\" " . $showHtmlChkStatus . ">\n</td>\n</tr>\n";
//LAY NOI DUNG THEO NGON NGU====================================================[[[[[[[[[[[[[KET THUC=]]]]]]]]]
}
// vong lạp THEO NGON NGU===================[[[[[[[[[[[[[[[[[[[[[[[[[[[======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'] . ")-(" . ADHINHDAIDIEN . ") \n</td>\n</tr>\n\n<!--<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . TENLARGE . "</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'] . ")-(" . ADFILEVIDEOHOACAMNHAC . ") \n</td>\n</tr>-->\n";
//kiem tra co cho hien nut post hinh khong=================ket thuc
$processFrameShowHtml = "\n\n<script language=\"javascript\">\n\nfunction btnSave_onclick(){\n//KIEM TRA THEO NGON NGU===========================\n" . $processFrameShowHtmlChackJs . "\n}\n</script>\n\n\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 . "/user_availability.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\n<form method=\"post\" name=\"frmForm\" enctype=\"multipart/form-data\" action=\"./\">\n<input type=\"hidden\" name=\"act\" value=\"" . $actImage . "_m\">\n<input type=\"hidden\" name=\"id\" value=\"" . $_REQUEST['id'] . "\">\n<input type=\"hidden\" name=\"page\" value=\"" . $_REQUEST['page'] . "\">\n<input type=\"hidden\" name=\"lang\" value=\"" . $_lang_A . "\">\n<input type=\"hidden\" name=\"code_module\" value=\"" . $_REQUEST['code_module'] . "\">\n<input value=\"" . $code . "\" type=\"hidden\" name=\"txtCode\" class=\"textbox\" size=\"70\">\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 . "\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\n\n\n" . $showImageAllHtml . "\n" . $showNewHtml . "\n" . $showHomeHtml . "\n\n\n\n\n\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\">" . comboCategory('ddCat', $arraySourceCombo, 'smallfont', $_REQUEST['idComment'], 0) . "</td>\n</tr>\n\n\t\n\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";
示例12: 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_new_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>
示例13: comboCategory
<?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', getArrayNews($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="25" class="title"><input type="checkbox" name="chkall" onClick="chkallClick(this);"></th>
<th class="title" colspan="2" rowspan></th>
<th width="30" class="title"><a class="title" href="<?php
示例14: comboCategory
<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>
示例15: 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';
}
?>