本文整理汇总了PHP中global_common::updateDeleteFlag方法的典型用法代码示例。如果您正苦于以下问题:PHP global_common::updateDeleteFlag方法的具体用法?PHP global_common::updateDeleteFlag怎么用?PHP global_common::updateDeleteFlag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类global_common
的用法示例。
在下文中一共展示了global_common::updateDeleteFlag方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$strHTML = $objMenu->outputHTMLMenu($arrSection);
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, $strHTML), array(0, 1));
return;
} else {
echo global_common::convertToXML($arrHeader, array("rs", 'inf'), array(0, 'Kh?ng c? nh?m h?ng'), array(0, 0));
return;
}
} elseif ($_pgR['act'] == model_AdType::ACT_DELETE) {
$IDName = "menu_id";
$contentID = $_pgR["id"];
$strTableName = user_menu::TBL_T_MENU;
$result = global_common::updateDeleteFlag($contentID, $IDName, $strTableName, $_pgR["status"], $objConnection);
if ($result) {
$IDName = "content_id";
$strTableName = user_faq::TBL_T_FAQ;
$result = global_common::updateDeleteFlag($contentID, $IDName, $strTableName, $_pgR["status"], $objConnection);
}
$arrHeader = global_common::getMessageHeaderArr($banCode = 0, 0);
$arrKey = array("rs", "id");
$arrValue = array($result ? 1 : 0, $contentID);
$arrIsMetaData = array(0, 1);
echo global_common::convertToXML($arrHeader, $arrKey, $arrValue, $arrIsMetaData);
return;
}
?>
<?php
include_once 'include/_admin_header.inc';
include_once 'include/_admin_menu.inc';
?>
<script type="text/javascript" src="<?php
示例2: elseif
}
return;
} elseif ($_pgR['act'] == Model_Retailer::ACT_DELETE_PRICE) {
if (global_common::isCLogin()) {
$IDName = global_mapping::RetailerID;
$contentID = $_pgR["rid"];
$status = $_pgR["status"];
$currentUserID = $_SESSION[global_common::SES_C_USERINFO][global_mapping::UserID];
$retailter = $objRetailer->getRetailerByID($contentID);
$createBy = $retailter[global_mapping::CreatedBy];
if ($createBy != $currentUserID) {
return;
}
if ($retailter) {
$strTableName = Model_Retailer::TBL_SL_RETAILER;
$result = global_common::updateDeleteFlag($contentID, $IDName, $currentUserID, $strTableName, $status, $objConnection);
if ($result) {
$arrHeader = global_common::getMessageHeaderArr($banCode);
//$banCode
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, 'Xóa thành công'), array(0, 1));
return;
}
}
}
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, 'Xóa thất bại.'), array(0, 1));
return;
} elseif ($_pgR['act'] == Model_Product::ACT_SHOW_EDIT_STORE_PRICE) {
$productID = $_pgR['id'];
$storePrices = $objProductPrice->getProductPriceByProduct($productID);
include 'include/_store_price.inc';
return;
示例3: elseif
return;
} elseif ($_pgR['act'] == Model_Property::ACT_SHOW_EDIT) {
$propertyID = $_pgR['id'];
$property = $objProperty->getPropertyByID($propertyID);
if ($property) {
echo global_common::convertToXML($strMessageHeader, array("rs", "content"), array(1, json_encode($property)), array(0, 1));
} else {
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, "Data is invalid. Pleae try again later"), array(0, 1));
}
return;
} elseif ($_pgR['act'] == Model_Property::ACT_DELETE) {
$c_userInfo = $_SESSION[global_common::SES_C_USERINFO];
$deletedBy = $c_userInfo[global_mapping::UserID];
$propertyID = $_pgR[global_mapping::PropertyID];
$status = $_pgR[global_mapping::Status];
$result = global_common::updateDeleteFlag($propertyID, global_mapping::PropertyID, $deletedBy, Model_Property::TBL_SL_PROPERTY, $status, $objConnection);
if ($result) {
$arrHeader = global_common::getMessageHeaderArr($banCode);
//$banCode
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, ($status ? 'Xóa' : 'Deactivate') . ' thành công'), array(0, 1));
return;
} else {
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, ($isActivate ? 'Xóa' : 'Deactivate') . ' unsuccessfully'), array(0, 1));
return;
}
}
$catID = $_pgR["cid"];
$page = $_pgR["p"];
/*
if($catID == 0)
{
示例4: array
$advertising = $objAdvertising->getAdvertisingByID($advertisingID);
if ($advertising) {
$advertising[global_mapping::StartDate] = global_common::formatDateVN($advertising[global_mapping::StartDate]);
$advertising[global_mapping::EndDate] = global_common::formatDateVN($advertising[global_mapping::EndDate]);
//echo json_encode($advertising);
echo global_common::convertToXML($strMessageHeader, array("rs", "content"), array(1, json_encode($advertising)), array(0, 1));
} else {
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, "Data is invalid. Pleae try again later"), array(0, 1));
}
return;
} elseif ($_pgR['act'] == Model_Advertising::ACT_DELETE) {
$c_userInfo = $_SESSION[global_common::SES_C_USERINFO];
$deletedBy = $c_userInfo[global_mapping::UserID];
$advertisingID = $_pgR[global_mapping::AdvertisingID];
$status = $_pgR[global_mapping::Status];
$result = global_common::updateDeleteFlag($advertisingID, global_mapping::AdvertisingID, $deletedBy, Model_Advertising::TBL_SL_ADVERTISING, $status, $objConnection);
if ($result) {
$arrHeader = global_common::getMessageHeaderArr($banCode);
//$banCode
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, ($status ? 'Xóa' : 'Deactivate') . ' thành công'), array(0, 1));
return;
} else {
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, ($isActivate ? 'Xóa' : 'Deactivate') . ' unsuccessfully'), array(0, 1));
return;
}
}
$catID = $_pgR["cid"];
$page = $_pgR["p"];
if (!$page) {
$page = 1;
}
示例5: elseif
return;
} elseif ($_pgR['act'] == Model_Manufactory::ACT_SHOW_EDIT) {
$manuID = $_pgR['id'];
$manu = $objManufactory->getManufactoryByID($manuID);
if ($manu) {
echo global_common::convertToXML($strMessageHeader, array("rs", "content"), array(1, json_encode($manu)), array(0, 1));
} else {
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, "Data is invalid. Pleae try again later"), array(0, 1));
}
return;
} elseif ($_pgR['act'] == Model_Manufactory::ACT_DELETE) {
$c_userInfo = $_SESSION[global_common::SES_C_USERINFO];
$deletedBy = $c_userInfo[global_mapping::UserID];
$manuID = $_pgR[global_mapping::ManufactoryID];
$status = $_pgR[global_mapping::Status];
$result = global_common::updateDeleteFlag($manuID, global_mapping::ManufactoryID, $deletedBy, Model_Manufactory::TBL_SL_MANUFACTORY, $status, $objConnection);
if ($result) {
$arrHeader = global_common::getMessageHeaderArr($banCode);
//$banCode
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, ($status ? 'Xóa' : 'Deactivate') . ' thành công'), array(0, 1));
return;
} else {
echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, ($isActivate ? 'Xóa' : 'Deactivate') . ' unsuccessfully'), array(0, 1));
return;
}
}
$catID = $_pgR["cid"];
//$page = $_pgR["p"];
if ($catID) {
$searchGroup = global_mapping::CategoryID . '= \'' . $catID . '\'';
}