예제 #1
0
<?php

/* TODO: Add code here */
require 'config/globalconfig.php';
include_once 'include/_permission.inc';
include_once 'class/model_user.php';
include_once 'class/model_article.php';
$objArticle = new Model_Article($objConnection);
$objUser = new Model_User($objConnection);
if (global_common::isCLogin()) {
    //get user info
    $userInfo = $_SESSION[global_common::SES_C_USERINFO];
    $userID = $userInfo[global_mapping::UserID];
    $condidtion = '(' . global_mapping::EndDate . ' >= \'' . global_common::nowDateSQL() . '\' Or ' . global_mapping::EndDate . ' is null)';
    $articles = $objArticle->getArticleByUser($userID, 1, global_common::DEFAULT_PAGE_SIZE, null, $condidtion, '');
    $condidtion = global_mapping::EndDate . ' < \'' . global_common::nowDateSQL() . '\'';
    $expireArticles = $objArticle->getArticleByUser($userID, 1, global_common::DEFAULT_PAGE_SIZE, null, $condidtion, '');
    //print_r($articles);
}
?>

<?php 
include_once 'include/_header.inc';
include_once 'include/_menu.inc';
?>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_user.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('user_article.js');
예제 #2
0
<?php

/* TODO: Add code here */
require 'config/globalconfig.php';
include_once 'include/_permission.inc';
include_once 'class/model_user.php';
include_once 'class/model_article.php';
$objArticle = new Model_Article($objConnection);
$objUser = new Model_User($objConnection);
if (global_common::isCLogin()) {
    //get user info
    $userInfo = $_SESSION[global_common::SES_C_USERINFO];
    $userID = $userInfo[global_mapping::UserID];
    $articles = $objArticle->getArticleByUser($userID, 0, global_common::DEFAULT_PAGE_SIZE, null, '', '');
    //print_r($articles);
}
?>

<?php 
include_once 'include/_header.inc';
include_once 'include/_menu.inc';
?>
<script type="text/javascript" src="<?php 
echo $_objSystem->locateJs('sela_user.js');
?>
"></script>
<div id="profile-page" class="page-content">
	<div class="row-fluid">
		<div class="span12">
			<!-- BEGIN PAGE TITLE & BREADCRUMB-->
			<h3 class="page-title">