*
 */
/// <summary>
/// Implementations of slAdvertising represent a Advertising
///
/// </summary>
chdir("..");
/* TODO: Add code here */
require 'config/globalconfig.php';
require 'include/_permission_admin.inc';
include_once 'class/model_user.php';
include_once 'class/model_advertising.php';
include_once 'class/model_adtype.php';
include_once 'class/model_articletype.php';
$objArticleType = new model_ArticleType($objConnection);
$objAdvertising = new Model_Advertising($objConnection);
$objAdType = new Model_AdType($objConnection);
if ($_pgR["act"] == Model_Advertising::ACT_ADD || $_pgR["act"] == Model_Advertising::ACT_UPDATE) {
    //get user info
    $c_userInfo = $_SESSION[global_common::SES_C_USERINFO];
    $advertisingName = $_pgR[global_mapping::AdvertisingName];
    $advertisingName = html_entity_decode($advertisingName, ENT_COMPAT, 'UTF-8');
    $adTypeID = html_entity_decode($_pgR[global_mapping::AdTypeID], ENT_COMPAT, 'UTF-8');
    $articleTypeID = html_entity_decode($_pgR[global_mapping::ArticleTypeID], ENT_COMPAT, 'UTF-8');
    $content = html_entity_decode($_pgR[global_mapping::Content], ENT_COMPAT, 'UTF-8');
    $preferLink = html_entity_decode($_pgR[global_mapping::PreferLink], ENT_COMPAT, 'UTF-8');
    $order = html_entity_decode($_pgR[global_mapping::Order], ENT_COMPAT, 'UTF-8');
    $startDate = html_entity_decode($_pgR[global_mapping::StartDate], ENT_COMPAT, 'UTF-8');
    $endDate = html_entity_decode($_pgR[global_mapping::EndDate], ENT_COMPAT, 'UTF-8');
    $imageLink = html_entity_decode($_pgR[global_mapping::ImageLink], ENT_COMPAT, 'UTF-8');
    $partnerID = html_entity_decode($_pgR[global_mapping::PartnerID], ENT_COMPAT, 'UTF-8');
示例#2
0
 * This file was automatically generated By Code Smith 
 * Modifications will be overwritten when code smith is run
 *
 * PLEASE DO NOT MAKE MODIFICATIONS TO THIS FILE
 * Date Created 5/6/2012
 *
 */
/// <summary>
/// Implementations of sladvertisings represent a Advertising
///
/// </summary>
chdir("..");
/* TODO: Add code here */
require 'config/globalconfig.php';
include_once 'class/model_advertising.php';
$objAdvertising = new Model_Advertising($objConnection);
if ($_pgR["act"] == model_Advertising::ACT_ADD) {
    if (global_common::isCLogin()) {
        //get user info
        //$c_userInfo = $_SESSION[consts::SES_C_USERINFO];
        //if ($objMenu->getMenuByName($_pgR['name'])) {
        //	echo global_common::convertToXML($arrHeader, array("rs",'info'), array(0,global_common::STRING_NAME_EXIST), array(0,1));
        //	return;
        //}
        $advertisingID = $_pgR['AdvertisingID'];
        $advertisingID = global_editor::rteSafe(html_entity_decode($advertisingID, ENT_COMPAT, 'UTF-8'));
        $advertisingName = $_pgR['AdvertisingName'];
        $advertisingName = global_editor::rteSafe(html_entity_decode($advertisingName, ENT_COMPAT, 'UTF-8'));
        $partnerID = $_pgR['PartnerID'];
        $partnerID = global_editor::rteSafe(html_entity_decode($partnerID, ENT_COMPAT, 'UTF-8'));
        $startDate = $_pgR['StartDate'];