| | |
| | | 'nav_name' => '全部课程', |
| | | 'unselected_icon' => MODULE_URL."template/mobile/{$template}/images/unselected_search_icon.png", |
| | | 'selected_icon' => MODULE_URL."template/mobile/{$template}/images/selected_search_icon.png", |
| | | 'url_link' => $this->redefineUrl($this->createMobileUrl('search', array('t'=>time()))), |
| | | 'url_link' => $this->redefineUrl($this->createMobileUrl('search', array('t'=>time(),'searchtype'=>1))), |
| | | ); |
| | | } |
| | | if(!$navigation['self']){ |
| | |
| | | foreach ($categorylist as $k => $v) { |
| | | $categorylist[$k]['child'] = pdo_fetchall("SELECT * FROM " . tablename($this -> table_category) . " WHERE uniacid=:uniacid AND parentid=:parentid AND search_show=:search_show ORDER BY displayorder DESC", array(':uniacid'=>$uniacid, ':parentid'=>$v['id'],':search_show'=>1)); |
| | | } |
| | | |
| | | |
| | | /* 知识点分类 */ |
| | | $hot_knowledge = pdo_fetchall("SELECT * FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid=:uniacid AND is_hot=:is_hot AND search_show=:search_show ORDER BY displayorder DESC", array(':uniacid' => $uniacid, ':is_hot' => 1,':search_show'=>1)); |
| | | $knowledgelist = pdo_fetchall("SELECT * FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid=:uniacid AND parentid=:parentid AND search_show=:search_show ORDER BY displayorder DESC", array(':uniacid'=>$uniacid, ':parentid'=>0,':search_show'=>1)); |
| | | if($_GPC['cat_id'] > 0){ |
| | | $hot_knowledge = pdo_fetchall("SELECT * FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid=:uniacid AND is_hot=:is_hot AND search_show=:search_show AND catalog_id_2=:catalog_id_2 ORDER BY displayorder DESC", array(':uniacid' => $uniacid, ':is_hot' => 1,':search_show'=>1,'catalog_id_2'=>$_GPC['cat_id'])); |
| | | $knowledgelist = pdo_fetchall("SELECT * FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid=:uniacid AND parentid=:parentid AND search_show=:search_show AND catalog_id_2=:catalog_id_2 ORDER BY displayorder DESC", array(':uniacid'=>$uniacid, ':parentid'=>0,':search_show'=>1,'catalog_id_2'=>$_GPC['cat_id'])); |
| | | }else{ |
| | | $hot_knowledge = pdo_fetchall("SELECT * FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid=:uniacid AND is_hot=:is_hot AND search_show=:search_show ORDER BY displayorder DESC", array(':uniacid' => $uniacid, ':is_hot' => 1,':search_show'=>1)); |
| | | $knowledgelist = pdo_fetchall("SELECT * FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid=:uniacid AND parentid=:parentid AND search_show=:search_show ORDER BY displayorder DESC", array(':uniacid'=>$uniacid, ':parentid'=>0,':search_show'=>1)); |
| | | } |
| | | |
| | | foreach ($knowledgelist as $k => $v) { |
| | | $knowledgelist[$k]['child'] = pdo_fetchall("SELECT * FROM " . tablename("fy_lesson_knowledge_point") . " WHERE uniacid=:uniacid AND parentid=:parentid AND search_show=:search_show ORDER BY displayorder DESC", array(':uniacid'=>$uniacid, ':parentid'=>$v['id'],':search_show'=>1)); |
| | |
| | | {/if} |
| | | <p class="weui-tabbar__label">{$navigation['index']['nav_name']}</p> |
| | | </a> |
| | | <a href="{$navigation['search']['url_link']}" class="weui-tabbar__item {if $foot_params['search']}weui-bar__item_on{/if}"> |
| | | {if $foot_params['search']} |
| | | <a href="{$navigation['search']['url_link']}" class="weui-tabbar__item {if $foot_params['search'] && $_GPC['searchtype']=='1'}weui-bar__item_on{/if}"> |
| | | {if $foot_params['search'] && $_GPC['searchtype']=='1'} |
| | | <img src="{$navigation['search']['selected_icon']}" class="weui-tabbar__icon" /> |
| | | {else} |
| | | <img src="{$navigation['search']['unselected_icon']}" class="weui-tabbar__icon" /> |
| | |
| | | <p class="weui-tabbar__label">{$navigation['search']['nav_name']}</p> |
| | | </a> |
| | | {if $navigation['diynav']} |
| | | <a href="{$navigation['diynav']['url_link']}" class="weui-tabbar__item {if $foot_params['diynav']}weui-bar__item_on{/if}"> |
| | | {if $foot_params['diynav']} |
| | | <a href="{$navigation['diynav']['url_link']}" class="weui-tabbar__item {if $foot_params['diynav'] && $_GPC['searchtype']=='2'}weui-bar__item_on{/if}"> |
| | | {if $foot_params['diynav'] && $_GPC['searchtype']=='2'} |
| | | <img src="{$navigation['diynav']['selected_icon']}" class="weui-tabbar__icon" /> |
| | | {else} |
| | | <img src="{$navigation['diynav']['unselected_icon']}" class="weui-tabbar__icon" /> |
| | |
| | | <div class="search flex0"> |
| | | <i class="icon_search flex_g0"></i> |
| | | <input type="text" name="keyword" value="{$_GPC['keyword']}" placeholder="{php echo $index_page['searchBox'] ? $index_page['searchBox'] : '搜索您感兴趣的课程';}"> |
| | | <button class="search-btn">搜索aa</button> |
| | | <button class="search-btn">搜索</button> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | </a> |
| | | {loop $knowledgelist $key $parent} |
| | | <a href="javascript:;"> |
| | | <li class="nav_menu_item {if $_GPC['knowledge_pid']==$parent['knowledge_pid']}nav_menu_item_selected{/if}">{$parent['name']}</li> |
| | | <li class="nav_menu_item {if $_GPC['knowledge_pid']==$parent['id']}nav_menu_item_selected{/if}">{$parent['name']}</li> |
| | | </a> |
| | | {/loop} |
| | | </ul> |
| | |
| | | <li class="nav_menu_item {if ($_GPC['knowledge_pid']==$_GPC['knowledge_id']) && ($_GPC['knowledge_id']==$know['id'])}nav_menu_item_selected{/if}">{$know['name']}</li> |
| | | </a> |
| | | {loop $know['child'] $child} |
| | | <a href="{php echo $child['link'] ? $child['link'] : $this->createMobileUrl('search', array('knowledge_id'=>$child['id'],'pid'=>$child['parentid'])).'&keyword='.$keyword.'&sort='.$sort.'&attr1='.$attr1.'&attr2='.$attr2;}"> |
| | | <a href="{php echo $child['link'] ? $child['link'] : $this->createMobileUrl('search', array('knowledge_id'=>$child['id'],'knowledge_pid'=>$child['parentid'])).'&keyword='.$keyword.'&sort='.$sort.'&attr1='.$attr1.'&attr2='.$attr2;}"> |
| | | <li class="nav_menu_item {if $_GPC['knowledge_id']==$child['id']}nav_menu_item_selected{/if}">{$child['name']}</li> |
| | | </a> |
| | | {/loop} |