コード例 #1
0
<?php 
/*--------KIEM TRA THUOC TINH---------------------*/
$defaulType = getRecord($tableCategoryConfigId, " id=" . $_REQUEST['codeParent']);
?>

<?php 
// Config
include 'modulePro/table_act.php';
if ($_REQUEST['codeParent'] == $_REQUEST['idComment']) {
    $parentWhereConfig = "parent=1";
    $codeParentCha = 1;
} else {
    $parentWhereConfig = "parent=" . $_REQUEST['codeParent'];
}
$errMsg = '';
$arraySourceCombo = getArrayCombo($tableCategoryConfigId, 'id', 'name', $parentWhereConfig);
?>


<?php 
/*--------KIEM TRA THUOC TINH---------------------*/
$defaulType = getRecord($tableCategoryConfigId, " id=" . $_REQUEST['codeParent']);
?>




<?php 
// Ckeditor
include_once 'ckeditor/ckeditor.php';
require_once 'ckfinder/ckfinder.php';
コード例 #2
0
    $whereSearchParentOk = $whereSearchParent;
} elseif ($totalSearchParentCha > 0) {
    $whereSearchParentOk = $whereSearchParentCha;
}
if ($whereSearchParentOk != "") {
    $searchHtmlShow = "<tr>\n\t\t\t\t\t<td width=\"15%\" class=\"smallfont\" align=\"right\">" . ADCATEGORYSEARCH . "</td>\n\t\t\t\t\t<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n\t\t\t\t\t<td width=\"83%\" class=\"smallfont\">\n\t\t\t\t\t<table  border=\"0\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\">";
    $sqlSearch = "select * from {$tableCategorySearchId} where " . $whereSearchParentOk . " and " . $whereStatus;
    $resultSearch = mysql_query($sqlSearch, $conn);
    while ($Search = mysql_fetch_array($resultSearch)) {
        $Searchname = getRecord($tableCategorySearch, 'id_code=' . $Search['id'] . " and lang='" . $_lang_A . "'");
        $searchHtmlShowCon = "";
        //echo $Search['typeivm'];
        if ($Search['typeivm'] == '0') {
            $rewSearchProduct = getRecord($tableProductSearchId, "id_code=" . $_REQUEST['id'] . " and id_search_parent=" . $Search['id']);
            //echo $rewSearchProduct['id'];
            $arraySourceSearch = getArrayCombo($tableSearchId, 'id', 'name', "parent=" . $Search['id'] . " or id=1");
            $searchHtmlShowCon = comboCategory('ddCatSearch_' . $Search['id'], $arraySourceSearch, 'smallfont', $rewSearchProduct['id_search'], 0);
        } elseif ($Search['typeivm'] == '1') {
            $searchHtmlShowCon = "<table  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
            $sqlSearchCon = "select * from {$tableSearchId} where parent=" . $Search['id'] . " and " . $whereStatus;
            $resultSearchCon = mysql_query($sqlSearchCon, $conn);
            while ($SearchCon = mysql_fetch_array($resultSearchCon)) {
                $SearchConname = getRecord($tableSearch, 'id_code=' . $SearchCon['id'] . " and lang='" . $_lang_A . "'");
                $countSearchProduct = countRecord($tableProductSearchId, "id_code=" . $_REQUEST['id'] . " and id_search_parent=" . $Search['id'] . " and id_search=" . $SearchCon['id'] . " and status_search=1");
                $searchHtmlShowCon .= "\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t <tr>\n    <td class=\"smallfont\" align=\"left\" width=\"15\" valign=\"middle\" height=\"20\"><input type=\"checkbox\" name=\"chkSearch" . $Search['id'] . $SearchCon['id'] . "\"  " . ($countSearchProduct > 0 ? "checked" : "") . ">\t</td>\n    <td class=\"smallfont\" align=\"left\" valign=\"middle\" height=\"20\">" . $SearchConname['name'] . "</td>\n  </tr>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t";
            }
            $searchHtmlShowCon .= "</table>";
        }
        $searchHtmlShow .= " <tr>\n                        <td width=\"300\" class=\"smallfont\" align=\"left\" valign=\"middle\" style=\"border-bottom:1px dotted #CCCCCC\">" . $searchHtmlShowCon . "</td>\n                        <td align=\"left\" class=\"smallfont\" valign=\"middle\"  style=\"border-bottom:1px dotted #CCCCCC; border-left:1px dotted #CCCCCC; \">&nbsp;" . $Searchname['name'] . "</td>\n                      </tr>";
    }
    $searchHtmlShow .= "  </table></td></tr>";
コード例 #3
0
$showSTTHtml = "\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 type=\"text\" name=\"txtSort\" value=\"" . $sort . "\"/>\t\t</td>\n</tr>\n\n";
//kiem tra co cho hien nut home khong================ket thuc
if ($defaulType['parent_1'] == '245') {
    $masanpham = "<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Mã sản phẩm:</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $code . "\" type=\"text\" name=\"txtCode\"  id=\"txtCode\"  class=\"textbox\" size=\"50\"> <span id=\"msgbox\"></span></td>\n</tr>";
    $arrayThuonghieu = getArrayCombo($tableCategoryConfigId, 'id', 'name', "parent=346");
    $arrayPriceSearch = getArrayCombo($tableCategoryConfigId, 'id', 'name', "parent=357");
    $HtmlTypeSearch = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Thương hiệu</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">" . comboCategory('txtParent2', $arrayThuonghieu, 'smallfont', $parent2, 0) . "</td>\n</tr>\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Giá trong khoảng</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">" . comboCategory('txtPriceSearch', $arrayPriceSearch, 'smallfont', $type_search, 0) . "</td>\n</tr>\n<script type=\"text/javascript\" src=\"js/jquery-1.11.0.min.js\"></script>\n<script>\n\$(document).ready(function() {\n\t\$.ajax({\n\t\turl:'" . $serverName . "ajax/admin_random_code_product.php',\n\t\ttype:'post',\n\t\tasync:true,\n\t\tsuccess:function(result){\n\t\t\t\$('#txtCode').val(result);\n\t\t}\n\t});\n\n\tif(\$('input[name=\"txtPrice\"]').val() != ''){\n\t\tvar number = numberFomat(\$('input[name=\"txtPrice\"]').val());\n        \$('.showPrice').html('Giá: '+number);\n\t}\n\n\tif(\$('input[name=\"txtSale\"]').val() != '' && \$('input[name=\"txtSale\"]').length > 0){\n\t\tvar number = numberFomat(\$('input[name=\"txtSale\"]').val());\n        \$('.showSale').html('Giá: '+number);\n\t}\n\t\$('#comboDiscounts').change(function(){\n\t\tvar valPr = \$('input[name=\"txtPrice\"]').val();\n\t\tvar dis = \$(this).val();\n\t\t\$('input[name=\"txtSale\"]').val(Math.ceil(valPr - valPr*dis/100));\n\t\tvar number = numberFomat(\$('input[name=\"txtSale\"]').val());\n        \$('.showSale').html('Giá: '+number);\n\t});\n\tfunction numberFomat(val){\n\t\t var a = val;\n        var c = a.split(',');aaa='';\n        for(i=0;i<c.length;i++){\n            aaa += \"\"+c[i]+\"\";  \n        }\n        var b = (aaa+\"\").replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"\$1.\");\n        return b;\n\t}\n\t \$('input[name=\"txtPrice\"]').keyup(function(){\n        var number = numberFomat(\$(this).val());\n        \$('.showPrice').html('Giá: '+number);\n    });\n    \$('input[name=\"txtSale\"]').keyup(function(){\n        var number = numberFomat(\$(this).val());\n        var number1 = \$(this).val();\n        var number2 = \$('input[name=\"txtPrice\"]').val();\n        var number3 = ((number2-number1)/number2)*100;\n        //\$('#comboDiscounts')\n        \$(\"#comboDiscounts\").prop('selectedIndex', number3);\n        \$('.showSale').html('Giá: '+number);\n    });\n\t\$('input[name=\"txtSale\"]').keyup(function(){\n        var number = numberFomat(\$(this).val());\n        \$('.showSale').html('Giá: '+number);\n    });\n});\n</script>\n\n";
} else {
    $masanphamcode = "<input value=\"" . $CODE_default['code_product'] . $code . "\" type=\"hidden\" name=\"txtCode\" id=\"txtCode\"  class=\"textbox\" size=\"50\">";
}
//kiem tra co cho hien nut post hinh khong================
if ($defaulType['type_image'] == '2') {
    $showImageAllHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . $mp3Html . "</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 . " \n</td>\n</tr>\n\n<!--<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . $mp3Html1 . "</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" . TDELETE . "  file<10MB \n</td>\n</tr>\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Hình 2</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"file\" name=\"txtImageLarge1\" class=\"textbox\" size=\"34\">\n<input type=\"checkbox\" name=\"chkClearImgLarge1\" value=\"on\"> \n" . TDELETE . "  file<10MB \n</td>\n</tr>\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Hình 3</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input type=\"file\" name=\"txtImageLarge2\" class=\"textbox\" size=\"34\">\n<input type=\"checkbox\" name=\"chkClearImgLarge2\" value=\"on\"> \n" . TDELETE . "  file<10MB \n</td>\n</tr>-->\n";
} else {
    $showImageAllHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . $mp3Html . "</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";
}
if (!$_SESSION['level'] > 0) {
    $showHtmlMember = "<input type=\"hidden\" name=\"ddMember\" value=\"" . $idUserLevel . "\">";
} else {
    $arraySourceComboMember = getArrayCombo($tableUser, 'id', 'name', '1=1');
    $showHtmlMember = "\n\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">" . SMEMBER . "</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">" . comboCategory('ddMember', $arraySourceComboMember, 'smallfont', $idMember, 0) . "</td>\n</tr>\n\n";
}
if ($_REQUEST['codeParent'] == '79') {
    $HtmlPrice = "\n<!--<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Slogan trang chủ</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $subject . "\" type=\"text\" name=\"txtSubject\" class=\"textbox\" size=\"80\">\t\t</td>\n</tr>-->\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Hotline</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $price . "\" type=\"text\" name=\"txtPrice\" class=\"textbox\" size=\"40\">\t\t</td>\n</tr>";
    $HtmlSale = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Email nhận tin</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $sale . "\" type=\"text\" name=\"txtSale\" class=\"textbox\" size=\"40\">\t\t</td>\n</tr>";
    $showTypeLinkHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">f,t,g,z,y</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";
}
//if($defaulType['parent_1'] != 245){
$HtmlTags = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Tag</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $tag . "\" type=\"text\" name=\"txtTag\" class=\"textbox\" size=\"80\">\t\t</td>\n</tr>";
//}
$processFrameShowHtml = "\n\n<script language=\"javascript\">\n\nfunction btnSave_onclick(){\n\nif(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\nif(test_empty(document.frmForm.txtNamevn.value)){\n\t\talert('" . CNAME . "');\n\t\tdocument.frmForm.txtNamevn.focus();\n\t\treturn false;\n\t}\n\n\t\nif(test_empty(document.frmForm.txtUrlvn.value)){\n\t\talert('" . APLEASEENTERYOURURL . "');\n\t\tdocument.frmForm.txtUrlvn.focus();\n\t\treturn false;\n}\n\n" . $processFrameShowHtmlChackJs1 . "\n\n" . $abcdShowHtmlChackJs . "\n\n\n}\n</script>\n\n<script src=\"js/count.js\" type=\"text/javascript\" language=\"javascript\"></script>\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\" src=\"js/jquery-1.11.0.min.js\"></script>\n<!--<script type=\"text/javascript\" src=\"js/script_price.js\"></script>-->\n<script type=\"text/javascript\">\n\n\nvar dsd,ded;  \n\nwindow.onload = function(){\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 }\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;\ndocument.getElementById(\"txtTitle_t\"+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<script type=\"text/javascript\" src=\"" . $serverName . $folderDatabase . "/district.js\"></script>\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=\"" . $actConfig . "_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" . $masanphamcode . "\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\">&nbsp;</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" . $showFromABCDHtml . $showFromhoidapHtml . $showHtmlGroup . $masanpham . $HtmlPrice . $HtmlSale . $HtmlTypeSearch . "\n" . $showImageAllHtml . "\n" . $showNewHtml . "\n" . $showHomeHtml . "\n" . $showSTTHtml . "\n" . $showTypeLinkHtml1 . $HtmlTags . "\t\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\">" . comboCategoryLevel('ddCat', getArrayCategory($tableCategoryConfigId, $tableCategoryConfig, $_lang_A, $whereGetArrayCategory . " and havechildren=0"), '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";
コード例 #4
0
</script>




<?php 
// Config
include 'modulePro/table_act.php';
if (!$_REQUEST['id']) {
    $CODE_default = getRecord($tableCategoryConfigId, 'id=' . $_REQUEST['codeParent']);
    // ma mac dinh
}
$parentWhereConfig = $_REQUEST['codeParent'] != "" ? 'parent=' . $_REQUEST['codeParent'] : '1=1';
$errMsg = '';
$arraySourceCombo = getArrayCombo($tableCategoryConfig, 'id', 'name', $parentWhereConfig);
$arraySourceComboInc = getArrayCombo($tableCategoryConfigId, 'id', 'name', "id<>" . $_REQUEST['codeParent']);
?>


<?php 
/*--------KIEM TRA THUOC TINH---------------------*/
$defaulType = getRecord($tableCategoryConfigId, " id=" . $_REQUEST['codeParent']);
?>




<?php 
// Ckeditor
include_once 'ckeditor/ckeditor.php';
require_once 'ckfinder/ckfinder.php';
コード例 #5
0
ファイル: content_link_m.php プロジェクト: ece4u/ece4cWeb
<?php

// Config
$codeSelect = $multiLanguage == 0 ? "code='" . $_lang . "_link'" : "code='vn_link' or code='en_link'";
$tableCategoryConfig = 'tbl_content_category';
$tableConfig = 'tbl_content';
$actConfig = 'link';
$arraySourceCombo = getArrayCombo($tableCategoryConfig, 'id', 'name', $codeSelect);
?>

<?php 
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
    echo '<script language="javascript" src="../lib/scripts/editor.js"></script>';
} else {
    echo '<script language="javascript" src="../lib/scripts/moz/editor.js"></script>';
}
?>

<script language="javascript">
function btnSave_onclick(){
	if(test_empty(document.frmForm.txtName.value)){
		alert('Hãy nhập "tên" !');
		document.frmForm.txtName.focus();
		return false;
	}
	if(test_integer(document.frmForm.txtSort.value)){
		alert('"Thứ tự sắp xếp" phải là số !');
		document.frmForm.txtSort.focus();
		return false;
	}
	
コード例 #6
0
$errMsg = '';
$actConfigAdv = "ads";
include_once 'ckeditor/ckeditor.php';
require_once 'ckfinder/ckfinder.php';
$arrryCkfinder = array('txtDetailShort', 'txtDetail');
$path = "../" . $folderLibrary . "/" . $actConfigAdv;
$pathdb = $folderLibrary . "/" . $actConfigAdv;
$errMsg = '';
/*--------KIEM TRA THUOC TINH---------------------*/
//$defaulType					=	getRecord($tableCategoryConfigId," id=".$_REQUEST['codeParent']);
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'];
コード例 #7
0
';
    }
    //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              &nbsp; &nbsp; 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>&nbsp;</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>";
}
コード例 #8
0
<?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);
コード例 #9
0
include $moduleUrl . '/module_menu_main_m_insert.php';
include 'viewImage.php';
//LAY MA MAC DINH CHO MAU TIN NAY=====================
if (!$_REQUEST['id']) {
    $CODE_default = getRecord($tableCategoryConfigId, 'id=' . $_REQUEST['codeParent']);
    // ma mac dinh
}
//LAY PARENT MAC DINH================================================
$parentWhereConfig = $_REQUEST['codeParent'] != "" ? 'parent=' . $_REQUEST['codeParent'] : '1=1';
//SAC DINH DIEU KIEN CUA COMBO=====================
if ($_REQUEST['typec'] == '1') {
    $whereUtilityCategoryAll = ' and havechildren=1';
} else {
    $whereUtilityCategoryAll = ' and havechildren=0';
}
$arraySourceCombo = getArrayCombo($tableCategoryConfig, 'id', 'name', $CategorwhereGetArrayCategory . $whereUtilityCategoryAll);
if ($defaulType['parent_1'] == '176' || $_REQUEST['codeParent'] == '176') {
    $showFromABCDHtml = "\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Số xu phải trả khi thi thử bài nay</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $scores . "\" type=\"text\" name=\"txtScores\" class=\"textbox\" size=\"10\"></td>\n</tr>\n<tr>\n<td width=\"15%\" class=\"smallfont\" align=\"right\">Thời gian thi</td>\n<td width=\"1%\" class=\"smallfont\" align=\"center\"></td>\n<td width=\"83%\" class=\"smallfont\">\n<input value=\"" . $minutes . "\" type=\"text\" name=\"txtMinutes\" class=\"textbox\" size=\"10\"> phút</td>\n</tr>\n\n";
    $abcdShowHtmlChackJs = "\nif(test_integer(document.frmForm.txtScores.value)){\n\t\talert('Số xu phải là số');\n\t\tdocument.frmForm.txtScores.focus();\n\t\treturn false;\n\t}";
}
// 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}\t\n\t\n\t\n\tif(test_empty(document.frmForm.txtUrl" . $ln . ".value)){\n\t\talert('" . APLEASEENTERYOURURL . "');\n\t\tdocument.frmForm.txtUrl" . $ln . ".focus();\n\t\treturn false;\n}\t\n";
    //JAVASACRT KIEM TRA THEO GIA====================================================[[[[[[[[[[[[[KET THUC=]]]]]]]]]
    //LAY NOI DUNG THEO NGON NGU====================================================[[[[[[[[[[[[[====]]]]]]]]]
    if (isset($_REQUEST['id'])) {
        $oldid = $_REQUEST['id'];
コード例 #10
0
<?php

// Config
include 'userConfig/table_act.php';
$tableModuleId = 'tbl_configmodule_id';
$tableModule = 'tbl_configmodule';
$actModule = 'module';
$arrayConfigType = getArrayCombo($tableConfigType, 'id', 'name', "type<>'\$'");
?>







<?php 
// Ckeditor
include_once 'ckeditor/ckeditor.php';
require_once 'ckfinder/ckfinder.php';
$path = "../images/module";
$pathdb = "images/module";
?>

<script language="javascript">

function btnSave_onclick(){
	
	if(test_empty(document.frmForm.txtCode_folder.value)){
		alert('txtCode_folder!');
		document.frmForm.txtCode_folder.focus();