예제 #1
0
    case "v_delMenu":
        $id = $system->utility->filter->queryString('id');
        $system->xorg->smarty->assign("entity", $entity = $system->dbm->db->informer("`{$settings['postCategory']}`", "`id` = '{$id}'"));
        $system->xorg->smarty->assign("text", sprintf($lang[doYouWantDeleteCategory], $entity[name]));
        $system->xorg->prompt->promptShow('p', $lang[delCategory], $system->xorg->smarty->fetch("{$settings['moduleAddress']}/{$settings['moduleName']}/{$settings['viewAddress']}/{$settings['tplAddress']}/object/del" . $settings['ext4']));
        break;
    case "c_delObject":
        $c_menu->c_delObject($_POST[id]);
        break;
        // List Menu
    // List Menu
    case "c_listObject":
        $c_menu->c_listObject($_GET[filter]);
        break;
        // Activate Object
    // Activate Object
    case "c_activateObject":
        break;
        // Deactive Menu
    // Deactive Menu
    case "c_deactivateObject":
        break;
    case "c_contentList":
        require_once 'module/post/model/post.php';
        $settings['colNumber'] = 'simple';
        $system->xorg->prompt->promptShow('p', $lang['selectContent'], m_post::m_simpleListObject('simpleList'));
        break;
    default:
        $system->xorg->smarty->display($settings['commonTpl'] . "404" . $settings['ext4']);
        break;
}
예제 #2
0
파일: env.php 프로젝트: rezarahimi4861/icmf
$system->xorg->smarty->assign("dateJalali", $system->time->iCal->dator(time(), 1, 'jalali'));
$system->xorg->smarty->assign("dateGregorian", date("j F Y"));
################################
# Live Support                 #
################################
$system->xorg->smarty->assign("liveSupport", $system->xorg->smarty->fetch($settings[commonTpl] . 'liveSupport' . $settings['ext4']));
################################
# Basket                       #
################################
$system->xorg->smarty->assign("basket", $system->xorg->smarty->fetch($settings[commonTpl] . 'basket' . $settings['ext4']));
################################
# Post                         #
################################
require_once "module/post/config/config.php";
require_once "module/post/model/post.php";
$post = new m_post();
//$post->m_feedObject("http://fsnet.persianblog.ir/rss.xml", 9);
//$system->xorg->smarty->assign("postList", $post->m_listObject('showListObject', $_GET[filter]));
$system->xorg->smarty->assign("news", $post->m_listObject('titleList'));
$system->xorg->smarty->assign("marquee", $system->xorg->smarty->fetch($settings[customiseTpl] . 'news' . $settings['ext4']));
################################
# Left                         #
################################
$system->xorg->smarty->assign("left", $system->xorg->smarty->fetch($settings[commonTpl] . 'left' . $settings['ext4']));
################################
# Main                         #
################################
$thumbnail = $system->seo->thumbnail();
if (strstr($thumbnail, 'http')) {
    $system->xorg->smarty->assign("thumbnail", $thumbnail);
} else {
예제 #3
0
파일: env.php 프로젝트: rezarahimi4861/icmf
################################
//$system->xorg->smarty->assign("panel", $system->xorg->smarty->fetch($settings[commonTpl] . 'panel' . $settings[ext4]));
################################
# Header                       #
################################
//$system->xorg->smarty->assign("header", $system->xorg->smarty->fetch($settings[commonTpl] . 'header' . $settings['ext4']));
################################
# Google Plus                  #
################################
//$system->xorg->smarty->assign("googlePlus", $system->xorg->smarty->fetch($settings[commonTpl] . "googlePlus". $settings['ext4']));
################################
# Post                         #
################################
require_once "module/post/config/config.php";
require_once "module/post/model/post.php";
$m_post = new m_post();
$system->xorg->smarty->assign("post", $m_post->m_listObject('showListObjectSingleCol', $settings['category']));
$system->xorg->smarty->assign("titleList", $m_post->m_listObject('titleList'));
//$system->xorg->smarty->assign("analysisList", $m_post->m_listObject('titleList', 'category=18'));
$system->xorg->smarty->assign("mediaPost", $m_post->m_mediaListObject('mediaList'));
################################
# Left Box                     #
################################
//$system->xorg->smarty->assign("leftBox", $system->xorg->smarty->fetch($settings[customiseTpl] . 'leftBox' . $settings['ext4']));
################################
# Live Support                 #
################################
//$system->xorg->smarty->assign("liveSupport", $system->xorg->smarty->fetch($settings[commonTpl] . 'liveSupport' . $settings['ext4']));
################################
# Main                         #
################################
예제 #4
0
파일: env.php 프로젝트: rezarahimi4861/icmf
################################
//$system->xorg->smarty->assign("panel", $system->xorg->smarty->fetch($settings[commonTpl] . 'panel' . $settings[ext4]));
################################
# Header                       #
################################
//$system->xorg->smarty->assign("header", $system->xorg->smarty->fetch($settings[commonTpl] . 'header' . $settings['ext4']));
################################
# Google Plus                  #
################################
//$system->xorg->smarty->assign("googlePlus", $system->xorg->smarty->fetch($settings[commonTpl] . "googlePlus". $settings['ext4']));
################################
# Post                         #
################################
require_once "module/post/config/config.php";
require_once "module/post/model/post.php";
$m_post = new m_post();
$system->xorg->smarty->assign("post", $m_post->m_listObject('showList'));
//$system->xorg->smarty->assign("titleList", $m_post->m_listObject('titleList'));
//$system->xorg->smarty->assign("analysisList", $m_post->m_listObject('titleList', 'category=18'));
//$system->xorg->smarty->assign("voicePost", $m_post->m_listObject('shortList', 'contentType=voice'));
//$system->xorg->smarty->assign("videoPost", $m_post->m_listObject('shortList', 'contentType=video'));
################################
# Left Box                     #
################################
//$system->xorg->smarty->assign("leftBox", $system->xorg->smarty->fetch($settings[customiseTpl] . 'leftBox' . $settings['ext4']));
################################
# Live Support                 #
################################
//$system->xorg->smarty->assign("liveSupport", $system->xorg->smarty->fetch($settings[commonTpl] . 'liveSupport' . $settings['ext4']));
################################
# Main                         #
예제 #5
0
파일: env.php 프로젝트: rezarahimi4861/icmf
################################
//$system->xorg->smarty->assign("panel", $system->xorg->smarty->fetch($settings[commonTpl] . 'panel' . $settings[ext4]));
################################
# Header                       #
################################
//$system->xorg->smarty->assign("header", $system->xorg->smarty->fetch($settings[commonTpl] . 'header' . $settings['ext4']));
################################
# Google Plus                  #
################################
//$system->xorg->smarty->assign("googlePlus", $system->xorg->smarty->fetch($settings[commonTpl] . "googlePlus". $settings['ext4']));
################################
# Post                         #
################################
require_once "module/post/config/config.php";
require_once "module/post/model/post.php";
$m_post = new m_post();
//$system->xorg->smarty->assign("post", $m_post->m_listObject('showListObjectSingleCol', $settings['category']));
$system->xorg->smarty->assign("titleList", $m_post->m_listObject('titleList'));
$system->xorg->smarty->assign("postCategory", $system->xorg->htmlElements->treeElement->tree($settings[postCategory], 0, 'postCategory', 'postCategory right specialFont', '(`id` < 20 OR `id` > 26) AND `active` = 1'));
//$system->xorg->smarty->assign("analysisList", $m_post->m_listObject('titleList', 'category=18'));
$system->xorg->smarty->assign("voicePost", $m_post->m_listObject('shortList', 'contentType=voice'));
$system->xorg->smarty->assign("videoPost", $m_post->m_listObject('shortList', 'contentType=video'));
################################
# Left Box                     #
################################
//$system->xorg->smarty->assign("leftBox", $system->xorg->smarty->fetch($settings[customiseTpl] . 'leftBox' . $settings['ext4']));
################################
# Live Support                 #
################################
//$system->xorg->smarty->assign("liveSupport", $system->xorg->smarty->fetch($settings[commonTpl] . 'liveSupport' . $settings['ext4']));
################################
예제 #6
0
파일: env.php 프로젝트: rezarahimi4861/icmf
################################
//$system->xorg->smarty->assign("panel", $system->xorg->smarty->fetch($settings[commonTpl] . 'panel' . $settings[ext4]));
################################
# Header                       #
################################
//$system->xorg->smarty->assign("header", $system->xorg->smarty->fetch($settings[commonTpl] . 'header' . $settings['ext4']));
################################
# Google Plus                  #
################################
//$system->xorg->smarty->assign("googlePlus", $system->xorg->smarty->fetch($settings[commonTpl] . "googlePlus". $settings['ext4']));
################################
# Post                         #
################################
require_once "module/post/config/config.php";
require_once "module/post/model/post.php";
$m_post = new m_post();
//$system->xorg->smarty->assign("post", $m_post->m_listObject('showListObjectSingleCol', $settings['category']));
$system->xorg->smarty->assign("titleList", $m_post->m_listObject('titleList'));
//$system->xorg->smarty->assign("analysisList", $m_post->m_listObject('titleList', 'category=18'));
//$system->xorg->smarty->assign("mediaPost", $m_post->m_mediaListObject('mediaList'));
################################
# Left Box                     #
################################
//$system->xorg->smarty->assign("leftBox", $system->xorg->smarty->fetch($settings[customiseTpl] . 'leftBox' . $settings['ext4']));
################################
# Live Support                 #
################################
//$system->xorg->smarty->assign("liveSupport", $system->xorg->smarty->fetch($settings[commonTpl] . 'liveSupport' . $settings['ext4']));
################################
# Main                         #
################################
예제 #7
0
<?php

if (file_exists(visor . ".php")) {
    require_once visor . ".php";
}
switch ($sysVar[mode]) {
    case "v_load":
        if (empty($_GET[filter])) {
            require_once "module/post/config/config.php";
            require_once "module/post/model/post.php";
            $system->xorg->smarty->assign("post", m_post::m_listObject('list'));
            $system->xorg->smarty->display($settings[customiseTpl] . 'center' . $settings[ext4]);
        } else {
            if (file_exists($settings[customiseTpl] . $_GET[filter] . $settings[ext4])) {
                require_once "module/post/config/config.php";
                require_once "module/post/model/post.php";
                $system->xorg->smarty->assign("post", m_post::m_listObject('list'));
                $system->xorg->smarty->assign("titlePost", m_post::m_listObject('titleList'));
                $system->xorg->smarty->display($settings[customiseTpl] . $_GET[filter] . $settings[ext4]);
            } else {
                $system->xorg->smarty->display($settings[commonTpl] . "404" . $settings[ext4]);
            }
        }
        break;
    default:
        $system->xorg->smarty->display($settings[commonTpl] . "404" . $settings[ext4]);
        break;
}
예제 #8
0
파일: env.php 프로젝트: rezarahimi4861/icmf
# Toolbar                      #
################################
$system->xorg->smarty->assign("toolbar", $system->xorg->smarty->fetch($settings[commonTpl] . 'toolbar' . $settings[ext4]));
################################
# Shop                         #
################################
require_once "module/product/model/product.php";
$product = new m_product();
$product->m_hierarchicalListCategory(0);
$system->xorg->smarty->assign("category", "<ul id='productTreeMenu' style='padding-right: 20px;'>\n" . $product->tree . "<ul>\n");
################################
# Post                         #
################################
require_once "module/post/config/config.php";
require_once "module/post/model/post.php";
$post = new m_post();
//$system->xorg->smarty->assign("postList", $post->m_listObject('showList', $_GET[filter]));
$system->xorg->smarty->assign("news", $post->m_feedObject("http://brandsaz.persianblog.ir/rss.xml", 9));
################################
# Main                         #
################################
if ($sysVar[op] && $sysVar[mode]) {
    $system->module->loadModule();
    $content = $system->xorg->smarty->fetchedVar;
    $system->seo->seo($content);
    $system->seo->scan();
    $system->xorg->smarty->assign("keywords", $system->seo->metaKeywordMaker());
    $system->xorg->smarty->assign("description", $system->seo->metaDescriptionMaker());
    $system->xorg->smarty->assign("title", $system->seo->titleMaker('best'));
    $system->xorg->smarty->assign("main", $content);
}
예제 #9
0
 public function m_userList($filter = null, $viewMode = 'show')
 {
     global $lang, $settings, $system;
     $filter = $system->filterSplitter($filter);
     $system->xorg->pagination->paginateStart("userMan", "c_userList", "`id`, `active`, `timeStamp`, `uType`, `firstName`, `coName`, `workField`, `regTime`, `workDetails`, `lastName`, `fatherName`, `userName`, `userPic`, `gender`, `idNumber`, `nationalCode`, `nationalCode`, `state`, `issued`, `region`, `district`, `zipcode`, `address`, `nationality`, `religion`, `financialStatus`, `level`, `mobile`, `showMobile`, `phone`, `email`, `showEmail`, `googlePlus`, `facebook`, `twitter`", "`{$this->userTable}`", "1 {$filter}", "`timeStamp` ASC");
     $count = 1;
     while ($row = $system->dbm->db->fetch_array()) {
         $userList[$count]['count'] = $count;
         $userList[$count]['id'] = $id = $row[id];
         $userList[$count]['active'] = $row[active] == 1 ? $lang[active] : $lang[notActive];
         $userList[$count]['timeStamp'] = $system->time->iCal->dator($row[timeStamp]);
         $userList[$count]['uType'] = $row[uType];
         $userList[$count]['firstName'] = $row[firstName];
         $userList[$count]['coName'] = $row[coName];
         $userList[$count]['workField'] = $row[workField];
         $userList[$count]['regTime'] = $row[regTime];
         $userList[$count]['workDetails'] = $row[workDetails];
         $userList[$count]['lastName'] = $row[lastName];
         $userList[$count]['fatherName'] = $row[fatherName];
         $userList[$count]['userName'] = $userName = $row[userName];
         $userList[$count]['userPic'] = empty($row[userPic]) ? "theme/{$settings['theme']}/img/defaultUserPic.jpg" : "{$row['userPic']}";
         $userList[$count]['genderId'] = $row[gender];
         $userList[$count]['gender'] = $system->dbm->db->informer("`{$this->genderTable}`", "`id` = {$row['gender']}", 'name');
         $userList[$count]['idNumber'] = $row[idNumber];
         $userList[$count]['nationalCode'] = $row[nationalCode];
         $userList[$count]['nationalityId'] = $row[nationality];
         $userList[$count]['nationality'] = $system->dbm->db->informer("`{$this->countriesTable}`", "`id` = {$row['nationality']}", 'name');
         $userList[$count]['issuedId'] = $row[issued];
         $userList[$count]['issued'] = $system->dbm->db->informer("`{$this->cityTable}`", "`id` = {$row['issued']}", 'name');
         $userList[$count]['stateId'] = $row[state];
         $userList[$count]['state'] = $system->dbm->db->informer("`{$this->stateTable}`", "`id` =  {$row['state']}", 'name');
         $userList[$count]['regionId'] = $row[region];
         $userList[$count]['region'] = $system->dbm->db->informer("`{$settings['region']}`", "`id` =  {$row['region']}", 'name');
         $userList[$count]['districtId'] = $row[district];
         $userList[$count]['district'] = $system->dbm->db->informer("`{$settings['district']}`", "`id` =  {$row['district']}", 'name');
         $userList[$count]['address'] = $row[address];
         $userList[$count]['zipcode'] = $row[zipcode];
         $userList[$count]['religionId'] = $row[religion];
         $userList[$count]['religion'] = $system->dbm->db->informer("`{$this->religionTable}`", "`id` = {$row['religion']}", 'name');
         $userList[$count]['financialStatusId'] = $row[financialStatus];
         $userList[$count]['financialStatus'] = $system->dbm->db->informer("`{$this->statusTable}`", "`id` = {$row['financialStatus']}", 'name');
         $userList[$count]['levelId'] = $row[level];
         $userList[$count]['level'] = $system->dbm->db->informer("`{$this->levelTable}`", "`id` = {$row['level']}", 'name');
         $userList[$count]['googlePlus'] = $row['googlePlus'];
         $userList[$count]['facebook'] = $row['facebook'];
         $userList[$count]['twitter'] = $row['twitter'];
         $userList[$count]['mobile'] = $row[mobile];
         $userList[$count]['showMobile'] = $row[showMobile];
         $userList[$count]['phone'] = $row[phone];
         $userList[$count]['email'] = $row[email];
         $userList[$count]['showEmail'] = $row[showEmail];
         $count++;
     }
     $system->xorg->smarty->assign("navigation", $system->xorg->pagination->renderFullNav());
     $system->xorg->smarty->assign("userList", $userList);
     if ($count > 2) {
         $system->xorg->smarty->display($settings[moduleAddress] . "/" . $this->moduleName . "/view/tpl/userList" . $settings[ext4]);
     } else {
         if ($viewMode == 'show') {
             $system->xorg->smarty->display($settings[moduleAddress] . "/" . $this->moduleName . "/view/tpl/profile" . $settings[ext4]);
         } elseif ($viewMode == 'home') {
             if ($system->dbm->db->count_records("`user`", "`userName` = '{$userName}'") == 1) {
                 require_once 'module/post/model/post.php';
                 $system->xorg->smarty->assign("postList", m_post::m_listObject('showList', 'author=' . $id));
                 require_once 'module/comment/model/comment.php';
                 $system->xorg->smarty->assign("commentList", m_comment::m_listObject('showListObjectSimple', 'uid=' . $id . ',op=post'));
                 $system->xorg->smarty->assign("personalPage", $system->dbm->db->informer("`{$settings['userExtraInfo']}`", "`uid` = {$id}", "pageSource"));
                 $system->xorg->smarty->display($settings[moduleAddress] . "/" . $this->moduleName . "/view/tpl/home" . $settings['ext4']);
             } else {
                 $system->xorg->smarty->display($settings[commonTpl] . "404" . $settings['ext4']);
             }
         }
     }
 }
예제 #10
0
파일: env.php 프로젝트: rezarahimi4861/icmf
$system->xorg->smarty->assign("header", $system->xorg->smarty->fetch($settings[commonTpl] . 'header' . $settings['ext4']));
################################
# Calendar                     #
################################
$system->xorg->smarty->assign("dateJalali", $system->time->iCal->dator(time(), 1, 'jalali'));
$system->xorg->smarty->assign("dateGregorian", date("j F Y"));
################################
# Basket                       #
################################
$system->xorg->smarty->assign("basket", $system->xorg->smarty->fetch($settings[commonTpl] . 'basket' . $settings['ext4']));
################################
# Post                         #
################################
require_once "module/post/config/config.php";
require_once "module/post/model/post.php";
$post = new m_post();
$system->xorg->smarty->assign("postList", $post->m_listObject('showListObjectSingleCol', $_GET[filter]));
################################
# Main                         #
################################
$thumbnail = $system->seo->thumbnail();
if (strstr($thumbnail, 'http')) {
    $system->xorg->smarty->assign("thumbnail", $thumbnail);
} else {
    $system->xorg->smarty->assign("thumbnail", 'http://' . $settings[domainName] . '/' . $thumbnail);
}
$system->xorg->smarty->assign("keywords", $system->seo->metaKeywordMaker('show'));
$system->xorg->smarty->assign("description", $system->seo->metaDescriptionMaker());
$system->xorg->smarty->assign("title", $settings[siteName] . ' - ' . $system->seo->titleMaker('best'));
$system->xorg->smarty->assign("main", $content);
################################