• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getArrayCategory函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getArrayCategory函数的典型用法代码示例。如果您正苦于以下问题:PHP getArrayCategory函数的具体用法?PHP getArrayCategory怎么用?PHP getArrayCategory使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getArrayCategory函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>&nbsp;</td>\n\t\t<td>&nbsp;</td>\n\t\t<td>&nbsp;</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";
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:30,代码来源:orders.php


示例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>
开发者ID:ece4u,项目名称:ece4cWeb,代码行数:31,代码来源:search.php


示例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;
}
开发者ID:bestwishforyou95,项目名称:tiennam,代码行数:14,代码来源:func.lib.php


示例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) {
开发者ID:raphaelrocha,项目名称:quebragalho,代码行数:31,代码来源:server.php


示例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>
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:31,代码来源:search.php


示例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>&nbsp;</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 . "&amp;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";
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:30,代码来源:city.php


示例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>
				
开发者ID:ece4u,项目名称:ece4cWeb,代码行数:30,代码来源:product_category_m.php


示例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;
}
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:22,代码来源:func.lib.home.php


示例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 . "&amp;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";
开发者ID:bestwishforyou95,项目名称:congnghemoitruong,代码行数:30,代码来源:voucherpublic111.php


示例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==' 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getArrayCombo函数代码示例发布时间:2022-05-15
下一篇:
PHP getArray函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap