Ejemplo n.º 1
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 6)));
$caseType = ContentList::getList($params);
Template::assign('caseType', $caseType);
Template::display('ht/module/case.tpl');
Ejemplo n.º 2
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 3)));
$directorType = ContentList::getList($params);
Template::assign('directorType', $directorType);
Template::display('ht/module/director.tpl');
Ejemplo n.º 3
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 5)));
$brandType = ContentList::getList($params);
Template::assign('brandType', $brandType);
Template::display('ht/module/brand.tpl');
Ejemplo n.º 4
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 7)));
$worksType = ContentList::getList($params);
Template::assign('worksType', $worksType);
Template::display('ht/module/works.tpl');
Ejemplo n.º 5
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
Template::SetTitle('首页');
$params = array('condition' => array(), 'order' => array());
define('PAGE_SIZE', 1);
$p = intval($_GET["p"]) ? intval($_GET["p"]) : "1";
$offset = PAGE_SIZE * ($p - 1);
$indexType = ContentList::getList($params, $offset, PAGE_SIZE);
$totalcount = $indexType['count'];
$pager = new Pager(array('pageSize' => PAGE_SIZE, 'rowCount' => (int) $totalcount));
Template::assign('indexType', $indexType['list']);
Template::assign('pager', $pager->genYuan());
Template::assign('usernames', $usernames);
Template::display('pager.tpl');
Ejemplo n.º 6
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 4)));
$honorType = ContentList::getList($params);
Template::assign('honorType', $honorType);
Template::display('ht/module/honor.tpl');
Ejemplo n.º 7
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 1)));
//echo json_encode(ContentList::getList($params));
$indextype = ContentList::getList($params);
ContentList::del($params);
Template::assign('indextype', $indextype);
Template::display('ht/module/index.tpl');
Ejemplo n.º 8
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 8)));
$contactType = ContentList::getList($params);
Template::assign('contactType', $contactType);
Template::display('ht/module/contact.tpl');
Ejemplo n.º 9
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$caseid = $_REQUEST['id'];
$params = array('condition' => array(array('id', $caseid)));
$caseDetail = ContentList::getList($params);
Template::assign('caseDetail', $caseDetail);
Template::display('ht/module/casedetail.tpl');
Ejemplo n.º 10
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$params = array('condition' => array(array('typeid', 2)));
$aboutType = ContentList::getList($params);
Template::assign('aboutType', $aboutType);
Template::display('ht/module/about.tpl');
Ejemplo n.º 11
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../init.inc.php';
$worksid = $_REQUEST['id'];
$params = array('condition' => array(array('id', $worksid)));
$worksDetail = ContentList::getList($params);
Template::assign('worksDetail', $worksDetail);
Template::display('ht/module/worksdetail.tpl');