Пример #1
0
    } else {
        $allCatIDs = global_common::getArrayColumn($allSubCats, global_mapping::ArticleTypeID);
    }
}
//print_r($allCatIDs);
if ($expired) {
    $condidtion = ' And ' . global_mapping::EndDate . ' < \'' . global_common::nowDateSQL() . '\'';
} else {
    $condidtion = ' And ' . global_mapping::StartDate . ' <= \'' . global_common::nowDateSQL() . '\'' . ' And ' . global_mapping::EndDate . ' >= \'' . global_common::nowDateSQL() . '\'';
}
if ($inactive == 'true') {
    $condidtion .= ' And `' . global_mapping::Status . '` = 0';
} else {
    $condidtion .= ' And `' . global_mapping::Status . '` = 1';
}
$articles = $objArticle->searchArticle(0, $allCatIDs, '', '', $condidtion);
$_SESSION[global_common::SES_C_CUR_PAGE] = "admin/admin_article.php";
include_once 'include/_admin_header.inc';
?>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_article.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_articletype.js');
?>
"></script>
<div id="admin-article">
	<div class="row-fluid">
		<div class="span12">
			<!-- BEGIN PAGE TITLE & BREADCRUMB-->
Пример #2
0
    } else {
        $allCatIDs = global_common::getArrayColumn($allSubCats, global_mapping::ArticleTypeID);
    }
}
//print_r($allCatIDs);
if ($expired) {
    $condidtion = ' And ' . global_mapping::EndDate . ' < \'' . global_common::nowDateSQL() . '\'';
} else {
    $condidtion = ' And (' . global_mapping::EndDate . ' >= \'' . global_common::nowDateSQL() . '\' OR ' . global_mapping::EndDate . ' is null )';
}
if ($inactive == 'true') {
    $condidtion .= ' And `' . global_mapping::Status . '`=0';
} else {
    $condidtion .= ' And `' . global_mapping::Status . '`=1';
}
$articles = $objArticle->searchArticle($page, $allCatIDs, '', '', $condidtion, '', $total);
$_SESSION[global_common::SES_C_CUR_PAGE] = "admin/admin_article.php";
include_once 'include/_admin_header.inc';
?>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_article.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_articletype.js');
?>
"></script>
<div id="admin-article">
	<div class="row-fluid">
		<div class="span12">
			<!-- BEGIN PAGE TITLE & BREADCRUMB-->
Пример #3
0
require 'config/globalconfig.php';
require 'include/_permission_admin.inc';
include_once 'class/model_articletype.php';
include_once 'class/model_article.php';
include_once 'class/model_user.php';
$objArticleType = new model_ArticleType($objConnection);
$objArticle = new model_Article($objConnection);
$catID = $_pgR["cid"];
$allCats = $objArticleType->getAllArticleType(0, null, 'ParentID=' . $catID, null);
if (count($allCats) <= 0) {
    $allCatIDs = $catID;
} else {
    $allCatIDs = global_common::getArrayColumn($allCats, global_mapping::ArticleTypeID);
}
//$condidtion =global_mapping::StartDate.' <= \''.global_common::nowSQL().'\''.' And '.global_mapping::EndDate.' >= \''.global_common::nowSQL().'\'';
$articles = $objArticle->searchArticle(1, '', '', '', $condidtion);
$_SESSION[global_common::SES_C_CUR_PAGE] = "admin/admin_article.php";
include_once 'include/_admin_header.inc';
?>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_article.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_articletype.js');
?>
"></script>
<div id="admin-article">
	<div class="row-fluid">
		<div class="span12">
			<!-- BEGIN PAGE TITLE & BREADCRUMB-->