コード例 #1
0
ファイル: index.php プロジェクト: roni5/sela
<?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_user.php';
$objArticleType = new model_ArticleType($objConnection);
$objArticle = new model_Article($objConnection);
$arrCategory = $objArticleType->getAllArticleType();
$objUser = new Model_User($objConnection);
if ($_pgR["act"] == Model_User::ACT_LOGIN) {
}
?>

<?php 
include_once 'include/_header.inc';
include_once 'include/_menu.inc';
include_once 'include/_cat_list.inc';
?>

<?php 
//footer
include_once 'include/_footer.inc';
コード例 #2
0
 * Date Created 5/6/2012
 *
 */
/// <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');
コード例 #3
0
ファイル: post.php プロジェクト: vietlethanh/oceo
include_once 'class/model_property.php';
include_once 'class/model_productproperty.php';
include_once 'class/model_propertygroup.php';
include_once 'class/model_datatype.php';
include_once 'class/model_adtype.php';
include_once 'class/model_city.php';
//get catId from _article.inc
//$catID = $_pgR['cid'];
$objCity = new Model_City($objConnection);
$allCities = $objCity->getAllCity();
$page = $_pgR["p"] ? $_pgR["p"] : 1;
if (!$_pgR["cid"]) {
    global_common::redirectByScript("index.php");
}
$keyword = $_pgR['kw'];
$objArticleType = new model_ArticleType($objConnection);
$objProduct = new Model_Product($objConnection);
$objProductProperty = new Model_ProductProperty($objConnection);
$objManufactory = new Model_Manufactory($objConnection);
$catID = $_pgR['cid'];
//Just get from "article_list.php"
//$district = $_pgR['ds'];
$keyword = $_pgR['kw'];
$manu = $_pgR['manu'];
$properties = $_pgR['property'];
$filterProperty = '';
foreach ($properties as $key => $info) {
    //echo $key;
    if ($info) {
        $filterProperty .= '(GROUP_CONCAT(\'&&\',propertyid, propertyvalue,\'&&\') LIKE \'%&&' . $key . $info . '&&%\') And ';
    }
コード例 #4
0
ファイル: index.php プロジェクト: roni5/sela
<?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_user.php';
$objArticleType = new model_ArticleType($objConnection);
$arrCategories = $objArticleType->getAllArticleType(0, null, '`ParentID`=0', 'Level');
?>

<?php 
include_once 'include/_header.inc';
/*include_once('include/_menu.inc');
include_once('include/_cat_list.inc');
*/
?>
<link rel="stylesheet" type="text/css" href="css/gallery.css" />
<script src="js/ga.js" type="text/javascript"></script>
<script type="text/javascript">
   $(document).ready(function () {
    $(".item").click(function (e) {
        /*e.stopPropagation();
        $(".item").removeClass("clicked");
        $(this).toggleClass("clicked");
        $("body").addClass("showing-item");
 
        var offset = $(this).offset();
        var pos = offset.left + $(this).width()
        var center = $(".gallery").width() / 2;
        if (pos > center) {
コード例 #5
0
 * PLEASE DO NOT MAKE MODIFICATIONS TO THIS FILE
 * 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);
コード例 #6
0
<?php

/* TODO: Add code here */
require 'config/globalconfig.php';
include_once 'class/model_articletype.php';
$objArticleType = new model_ArticleType($objConnection);
$htmlCategory = $objArticleType->DisplayAllCategory();
?>

<?php 
include_once 'include/_header.inc';
include_once 'include/_menu.inc';
?>

<div class="article-memo">
	<div class="article-memo-detail">
		<div class="article-memo-content">
			<div class="article-memo-control">control</div>
			<h2>HELLO247-CHUYÊN BÁN BA LÔ, TÚI XÁCH ĐI LÀM-ĐỰNG LAPTOP-ĐI HỌC- NAM NỮ GIÁ hấp dẫn</h2>
			<div class="article-short-info">
				<span><b>sukoi</b> Comment: 24-12-2012</span>
				<span class="paging"> 
					<a>1</a> <a> 2</a 
				</span>
			</div>
		</div>
	</div>
	<div class="article-memo-user">
		<div class="user-info">
			<div><img src="/image/default/default_logo.jpg" width="120" height="100" /></div>
			username