* Date Created 5/6/2012
 *
 */
/// <summary>
/// Implementations of slarticles represent a Article
///
/// </summary>
chdir("..");
/* TODO: Add code here */
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"];
$page = $_pgR["p"] ? $_pgR["p"] : 1;
$inactive = $_pgR["inactive"];
$expired = $_pgR["expired"];
$allCats = $objArticleType->getAllArticleType(0, null, 'ParentID=0', null);
if ($catID == 0) {
    $allCatIDs = '';
} else {
    $allSubCats = $objArticleType->getAllArticleType(0, null, 'ParentID=' . $catID, null);
    //print_r($allSubCats);
    if (count($allSubCats) <= 0) {
        $allCatIDs = $catID;
    } else {
        $allCatIDs = global_common::getArrayColumn($allSubCats, global_mapping::ArticleTypeID);
    }
 * Date Created 5/6/2012
 *
 */
/// <summary>
/// Implementations of slarticles represent a Article
///
/// </summary>
chdir("..");
/* TODO: Add code here */
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');
?>
示例#3
0
 * Date Created 5/6/2012
 *
 */
/// <summary>
/// Implementations of slarticles represent a Article
///
/// </summary>
chdir("..");
/* TODO: Add code here */
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"];
$inactive = $_pgR["inactive"];
$expired = $_pgR["expired"];
$allCats = $objArticleType->getAllArticleType(0, null, 'ParentID=0', null);
if ($catID == 0) {
    $allCatIDs = '';
} else {
    $allSubCats = $objArticleType->getAllArticleType(0, null, 'ParentID=' . $catID, null);
    //print_r($allSubCats);
    if (count($allSubCats) <= 0) {
        $allCatIDs = $catID;
    } else {
        $allCatIDs = global_common::getArrayColumn($allSubCats, global_mapping::ArticleTypeID);
    }
}
示例#4
0
<?php

/* TODO: Add code here */
require 'config/globalconfig.php';
include_once 'class/model_articletype.php';
include_once 'class/model_article.php';
include_once 'class/model_comment.php';
include_once 'class/model_user.php';
$objArticleType = new model_ArticleType($objConnection);
$objArticle = new model_Article($objConnection);
$objComment = new Model_Comment($objConnection);
if ($_pgR["articleid"]) {
    $articleID = $_pgR["articleid"];
    $article = $objArticle->getArticleByID($articleID);
    $intPage = 1;
    $total = 0;
    $comments = $objComment->getCommentByArticle($intPage, $total, $articleID, '*', '', ' CreatedDate DESC');
}
?>

<?php 
include_once 'include/_header.inc';
include_once 'include/_menu.inc';
include_once 'include/_article.inc';
echo '<div id= "comment-list">';
include_once 'include/_comment_list.inc';
echo '</div>';
include_once 'include/_comment_editor.inc';
?>

<?php