public static function index() { $courseId = $_GET['snavId']; $navId = $_GET['navId']; $courseId = $_GET['snavId']; $content = mod_course::getOne($courseId); $currentNav = getCurrentNav($navId); $currentNavInfo = getCurrentNavInfo($courseId); render_template("course.php", array("navId" => $navId, "snavId" => $courseId, "content" => $content, "currentNav" => $currentNav, "currentNavInfo" => $currentNavInfo)); }
public static function index() { $snavId = $_GET['snavId']; $navId = $_GET['navId']; $currentNav = getCurrentNav($navId); //联系我们 if ($snavId == 13) { render_template("callus.php", array("navId" => $navId, "snavId" => $snavId, "currentNav" => $currentNav)); } //在线订购 if ($snavId == 14) { render_template("buy.php", array("navId" => $navId, "snavId" => $snavId, "currentNav" => $currentNav)); } //留言建议 if ($snavId == 46) { render_template("advice.php", array("navId" => $navId, "snavId" => $snavId, "currentNav" => $currentNav)); } //招商加盟 if ($snavId == 47) { render_template("business.php", array("navId" => $navId, "snavId" => $snavId, "currentNav" => $currentNav)); } }
public static function index() { $navId = $_GET['navId']; $snavId = $_GET['snavId']; $rs = mod_article::getList($snavId); $articleType = $rs[0]['articleType']; $currentNav = getCurrentNav($navId); $currentNavInfo = getCurrentNavInfo($snavId); $args = array("navId" => $navId, "snavId" => $snavId, "content" => $rs, "currentNav" => $currentNav, "currentNavInfo" => $currentNavInfo); if ($articleType == "1") { //text render_template("article_text.php", $args); } if ($articleType == "2") { //list render_template("article_list.php", $args); } if ($articleType == "3") { //imglist render_template("article_imgList.php", $args); } }
} ?> ><a href="/archives">Archives</a></li> <li class="dropdown" id="menu1"> <a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"> Projects <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a href="https://github.com/git-ftp/git-ftp">git-ftp - Git Powered FTP Script</a></li> <li class="divider"></li> <li><a href="https://github.com/resmo">See all my projects</a></li> </ul> </li> <li <?php if (getCurrentNav() == "contact") { ?> class="active"<?php } ?> ><a href="/contact">Contact</a></li> </ul> <form class="navbar-search pull-right" method="get" action="http://www.google.com/search"> <input type="text" name="q" class="search-query" placeholder="Search @ google"/> <input type="hidden" name="sitesearch" value="renemoser.net" /> </form> </div><!--/.nav-collapse --> </div> </div> </div>