public function index()
 {
     $map['pid'] = 0;
     if (I('pid')) {
         $map['pid'] = intval(I('pid'));
     }
     $keywords = I('keywords');
     if ($keywords) {
         $map['title'] = array('like', "%{$keywords}%");
     }
     $map['type'] = 'bottom';
     $map['status'] = array('gt', -1);
     $result = $this->page($this->table, $map, 'sort desc');
     $data['result'] = $result;
     getNavigation();
     $this->assign($data);
     $this->display();
 }
Example #2
0
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div id="navbar" class="collapse navbar-collapse navbar-ex1-collapse">
            <a class="navbar-brand" href="http://www.evga.com/Products/ProductList.aspx?type=8">EVGA B-Stock</a>
            <ul class="nav navbar-nav">
                <li><a href="http:<?php 
echo $base_url;
?>
/index.php?load=">All</a></li>
                <?php 
$nav = getNavigation($DOM);
if ($nav !== false && $showui === true) {
    foreach ($nav as $navname => $navitem) {
        ?>
                    <li><a href="http:<?php 
        echo $base_url . '/index.php?load=' . $navitem['url'];
        ?>
"><?php 
        echo $navname;
        ?>
</a></li>
                <?php 
    }
}
?>
Example #3
0
 $engSmarty->assign('arrLanguageSelect', $arrLanguageSelect);
 $_SERVER["REQUEST_URI"] = str_replace('?' . $_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']);
 //get current requested node
 $recNode = $objStructure->fnGetNodeByPath($_SERVER["REQUEST_URI"]);
 require_once MODULE_DIR . "structure/actions.userinit.inc";
 if (is_object($recNode) and $arrGlobalRights[$recNode->rightID] == "read") {
     $_SESSION["lang"] = $recNode->lang;
     $strTemplate = "mainpage.tpl";
     //node exists, get its language and language settings instead of default
     require_once CONFIG_DIR . $_SESSION["lang"] . ".translation.inc";
     $engSmarty->assign("arrTranslation", $arrTranslation);
     require_once MODULE_DIR . "structure/actions.banner.inc";
     require_once MODULE_DIR . "structure/actions.sitevariables.public.inc";
     $arrTree = $objStructure->fnGetNode($recNode->ID, "menu", $recNode->langNodeID, "", $arrGlobalRights);
     $arrTree = menu_markPathSelected($recNode->path, $arrTree, 6);
     $arrPath = getNavigation($arrTree);
     include MODULE_DIR . "structure/actions.content.inc";
     if ($recNode->ID != $arrContent[0]->parentFolderID && $arrContent[0]->parentFolderID != '' && $arrContent[0]->parentFolderID != 0) {
         $curItem = menu_findItemById($arrContent[0]->parentFolderID, $arrTree);
         header("location:" . $curItem->link);
         exit;
     }
     //include(MODULE_DIR . "structure/actions.comments.public.inc");
     //include(MODULE_DIR . "structure/actions.meta.inc");
     $engSmarty->assign("datetime", date('j.m.Y | H:i'));
     if ($strError) {
         $engSmarty->assign("strError", $strError);
     }
     $_SESSION['comment_lang'] = $_SESSION["lang"];
     if ($_SESSION["lang"] == 'rus') {
         $_SESSION["lang"] = 'eng';
	  		<a href="javascript:void(0)">国际术语信息中心(Infoterm)</a><i></i>
	  		<a href="javascript:void(0)">国际医疗口译员协会(IMIA)</a><i></i>
	  		<a href="javascript:void(0)">翻译自动化用户协会(TAUS)</a><i></i>
	  		<a href="javascript:void(0)">深圳市台电实业有限公司</a><i></i>
	  		<a href="javascript:void(0)">思迪软件科技(深圳)有限公司</a><i></i>
	  		<a href="javascript:void(0)">21英语教师网</a><i></i>
	  		<a href="javascript:void(0)">传神联合(北京)信息技术有限公司</a> -->
	  	</div>
	</div> 
</div>

<div class="footer_box_ZH">
	<div class="container">
		<p>	
			<?php 
$navigation = getNavigation();
$bottom_navigation = $navigation['bottom'];
foreach ($bottom_navigation as $key => $row) {
    ?>
				<?php 
    if ($key) {
        ?>
				|
				<?php 
    }
    ?>
			<a href="/web/<?php 
    echo $row['url'];
    ?>
" target='<?php 
    echo $row['target'];
Example #5
0
require_once "functions.php";
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<link rel="stylesheet" type="text/css" href="./components/normalize-css/normalize.css">
	<link rel="stylesheet" type="text/css" href="./components/fontawesome/css/font-awesome.min.css">
	<!--<link rel="stylesheet" type="text/css" href="./components/lightbox2/dist/css/lightbox.css">-->
	<link rel="stylesheet" type="text/css" href="./assets/css/style.min.css">

	<title>network2pure</title>
</head>

<body>
	<div id="header-container">
		<header role="banner">
			<div class="header-image">
				<a href="#"><img width="189" height="63" src="./assets/images/n2logo.svg" alt="network2 logo" /></a>
			</div>
			<?php 
getNavigation();
?>
		</header>
	</div>

	<div id="container">
Example #6
0
        $id = $last;
    }
} else {
    $id = $last;
}
// Obtain the strip
$strip = Cache::getStrip($id);
// Obtain the language
if (isset($_GET['lang'])) {
    $lang = $_GET['lang'];
} else {
    $lang = Config::getLanguage();
}
$lang = getLang($lang);
// Obtain the navigation
list($nav_first, $nav_last, $nav_prev, $nav_next, $nav_gallery) = getNavigation($id, $last, $lang);
$nav_forum_post = Config::getFluxbbForum() . '/post.php?ttitle=' . urlencode($strip->getTitle()) . '&fid=' . Config::getFluxbbForumId();
$nav_forum_view = Config::getFluxbbForum() . '/redirect_stripit.php?ttitle=' . urlencode($strip->getTitle());
$permanent_link = htmlentities(getPermanentLink($id, $lang));
// If necessary, obtain the forum data
$comments = '';
$wotd = '';
if (Config::getUseFluxbb() === true) {
    $comments = Forum::getComments($strip, $lang);
    $wotd = Forum::getWotd($lang);
}
// show the template
if (isset($_GET['ajax']) === true) {
    // it's an ajax call, return an XML
    header('Content-type: text/xml');
    include_once Config::getTemplateFolder() . '/stripit.xml';
Example #7
0
 /**
  * Returns index
  * @param string
  * @return string
  **/
 public function front_index($function = '')
 {
     return function_exists($function) ? $function() : getNavigation();
 }