check_token(); $setsqlarr['parentid'] = intval($_POST['parentid']); $setsqlarr['title'] = trim($_POST['title']); $setsqlarr['key'] = trim($_POST['key']); $setsqlarr['type'] = trim($_POST['type']); $setsqlarr['url'] = trim($_POST['url']); $setsqlarr['status'] = intval($_POST['status']); $setsqlarr['menu_order'] = intval($_POST['menu_order']); !updatetable(table('weixin_menu'), $setsqlarr, " id=" . intval($_POST['id'])) ? adminmsg("修改失败!", 0) : ""; $link[0]['text'] = "返回列表"; $link[0]['href'] = '?act=set_menu'; adminmsg("保存成功!", 2, $link); } elseif ($act == 'add_menu') { get_token(); $smarty->assign('navlabel', "set_menu"); $smarty->assign('parent_manu', get_parent_menu()); $smarty->display('weixin/admin_weixin_menu_add.htm'); } elseif ($act == 'add_menu_save') { check_token(); $setsqlarr['parentid'] = intval($_POST['parentid']); $setsqlarr['title'] = trim($_POST['title']); $setsqlarr['key'] = trim($_POST['key']); $setsqlarr['type'] = trim($_POST['type']); $setsqlarr['url'] = trim($_POST['url']); $setsqlarr['status'] = intval($_POST['status']); $setsqlarr['menu_order'] = intval($_POST['menu_order']); !inserttable(table('weixin_menu'), $setsqlarr) ? adminmsg("保存失败!", 0) : ""; $link[0]['text'] = "返回列表"; $link[0]['href'] = '?act=set_menu'; adminmsg("添加成功!", 2, $link); } elseif ($act == 'binding_list') {
<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini"> <span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div> </div><!-- #sidebar-shortcuts --> <ul class="nav nav-list"> <?php $menus = get_parent_menu(); foreach ($menus as $one) { ?> <li > <a href="<?php echo SITE_LINK . "/" . $one->link; ?> " <?php if (get_children_menu($one->form_id)) { ?> class="dropdown-toggle" <?php } ?> >