Esempio n. 1
0
    substrRegex = new RegExp(q, 'i');

    // iterate through the pool of strings and for any string that
    // contains the substring `q`, add it to the `matches` array
    $.each(strs, function(i, str) {
      if (substrRegex.test(str)) {
        matches.push(str);
      }
    });

    cb(matches);
  };
};

<?php 
$result1 = get_sub_menu();
?>
																					

var states1 = [<?php 
foreach ($result1 as $res1) {
    echo " '{$res1['s_menu_name']}',";
}
?>
];


$('#the-basics1 .typeahead').typeahead({
  hint: true,
  highlight: true,
  minLength: 1
Esempio n. 2
0
 </div> <?php 
}
?>
 <?php 
if ($this->Config['company_enable']) {
    ?>
 <?php 
    $d_c_name = $this->Config['default_company'] ? $this->Config['default_company'] : '单位';
    $d_d_name = $this->Config['default_department'] ? $this->Config['default_department'] : '部门';
    $d_j_name = $this->Config['default_job'] ? $this->Config['default_job'] : '岗位';
    ?>
 <?php 
}
?>
 <?php 
$sub_menu_list = $_sub_menu_list ? $_sub_menu_list : get_sub_menu();
?>
 <?php 
if ($sub_menu_list) {
    ?>
 <div class="nav3"> <ul class="cc"> <?php 
    if (is_array($sub_menu_list)) {
        foreach ($sub_menu_list as $value) {
            ?>
 <?php 
            if ($value['type'] == '1' && PLUGINDEVELOPER < 1) {
                continue;
            }
            ?>
 <li 
<?php 
Esempio n. 3
0
File: header.php Progetto: rSSi/posh
			<div class="logo">
				<a href="<?php 
bloginfo('url');
?>
" title="H O M E">
					<img src="<?php 
bloginfo('template_url');
?>
/images/<?php 
echo $logo;
?>
" id="logo" width="203" height="88" alt="LOGO">
				</a>
			</div>
			<div class="main_menu_container">
				<ul class="main_menu"><!-- MENU -->
					<?php 
wp_nav_menu(array('menu' => 'Hauptmenü'));
?>
				</ul>
			</div>
		</div>
		<div class="access_bottom">
			<?php 
if (is_category() || is_single()) {
    get_sub_menu();
}
?>
		</div>
	</div>
<!--  end header -->