function active_blog($name) { if (uri_contains('impressum')) { return ''; } if (uri_contains('series') && ($name == 'uber' || $name == 'projekte')) { return active($name); } if ($name == 'series' && !uri_contains('uber') && !uri_contains('projekte') && $name != 'uber' && $name != 'projekt') { return active($name); } if (uri_contains('uber') && !uri_contains('series') && $name == 'articles') { return 'active'; } if (uri_contains('projekte') && !uri_contains('series') && $name == 'articles') { return 'active'; } if ($name == 'articles' && !uri_contains('projekte') && !uri_contains('uber') && !uri_contains('series')) { return 'active'; } return ''; }
><a href="?p=gestionnaires" title="Les gestionnaires">Les gestionnaires</a></li> <li <?php echo active('utilisateurs'); ?> ><a href="?p=utilisateurs" title="Les utilisateurs">Les utilisateurs</a></li> </ul> </nav> <h2>Références</h2> <nav> <ul class="nav nav-pills"> <li <?php echo active('configuration'); ?> ><a href="?p=configuration" title="Référence de configuration">Configurations</a></li> <li <?php echo active('conventions'); ?> ><a href="?p=conventions" title="Conventions du framework W">Conventions</a></li> <li><a href="../api/namespaces/W.html" title="Documentation de l'API">W :: API</a></li> </ul> </nav> </aside> <section id="content" class="language-php col-xs-12 col-lg-10"> <?php require $file; ?> </section> </div> <div class="row"> <footer class="col-xs-12"> <a href="http://wf3.fr" title="Site de la WebForce3">WF3</a>
/** @test */ public function active_calls_active_method() { $activeMock = Mockery::mock(Active::class); $activeMock->shouldReceive('active')->once()->with(['foo'], 'bar')->andReturn('baz'); App::shouldReceive('make')->once()->with('active')->andReturn($activeMock); $result = active('foo', 'bar'); $this->assertEquals('baz', $result); }
<li class="headingLi">Navigatie <ul class="headingItem"> <li><?php echo active("startpagina", "Startpagina", 1, "../images/"); ?> </li> <li><?php echo active("beginpagina", "Beginpagina", 0, "../images/"); ?> </li> <li><?php echo active("poll", "Poll", 0, "../images/"); ?> </li> <li><?php echo active("gastenboek", "Gastenboek", 0, "../images/"); ?> </li> </ul> </li> <li class="headingLi">Admin <ul class="headingItem"> <li><a href="?pagina=uitloggen" class="headingItemLink">Uitloggen</a></li> </ul> </li> </ul> <?php } ?> <ul class="heading"> <li class="headingLi">Beginpagina
include 'core/init.php'; include 'template/header.php'; ?> <section class="condition-area"> <div class="container"> <div class="row"> <div class="col-md-12"> <?php $errors = array(); if (empty($_POST) === false) { $username = $_POST['username']; $password = $_POST['password']; echo $username; if (empty($username) === true || empty($password) === true) { $errors[] = "Please Enter your Username and Password"; } elseif (user_exists($username) === false) { $errors[] = "We can\\'t find this Username. Are you registerd member ?"; } elseif (active($username) === false) { $errors[] = "Your Accout till now isn\\'t active"; } } print_r($errors); ?> </div> </div> </div> </section> <?php include 'template/footer.php';
<html lang="en"> <?php include_once 'header.php'; include_once '../includes/functions.php'; if (!loggedinadmin()) { die("<script>location.href = 'login.php'</script>"); } if (isset($_GET['del'])) { $no = $_GET['del']; delete($no); } elseif (isset($_GET['acpt'])) { $no = $_GET['acpt']; accept($no); } elseif (isset($_GET['actv'])) { $no = $_GET['actv']; active($no); } elseif (isset($_GET['inac'])) { $no = $_GET['inac']; inactive($no); } function delete($no) { require_once "../includes/sql.php"; $conexion = db_connect(); $sql = "DELETE FROM user WHERE user_id='" . $no . "'"; $result = $conexion->query($sql) or die("oopsy, error when tryin to delete "); } function accept($no) { require_once "../includes/sql.php"; $conexion = db_connect();
header("location:/inhome.php"); } if (isset($_POST['nis_active_x'])) { active($con, 'imp_notes', 'note_id', 1); header("location:/imp_notes.php"); } if (isset($_POST['isnt_active_x'])) { active($con, 'imp_dates', 'dates_id', 0); header("location:/imp_dates.php"); } if (isset($_POST['sisnt_active_x'])) { active($con, 'spec_list', 'spec_id', 0); header("location:/inhome.php"); } if (isset($_POST['nisnt_active_x'])) { active($con, 'imp_notes', 'note_id', 0); header("location:/imp_notes.php"); } /*Search Engine $k=$_GET['k']; $terms= explode(" ", $k); $query = "SELECT * FROM search WHERE"; foreach ($terms as $each){ $i++; if($i==1){ $query.="keywords LIKE '%$each%' "; } else{ $query.="OR keywords LIKE'%$each%' "; }
function submod_add($id, $d) { $top = hlpbt('apps_add') . ' '; if ($d) { $ver = '_' . $d; } $j = 'sbm' . '_submds__x_'; $top .= lj('" title="' . nms(104), 'sbm' . '_submds____' . $id . '_deft', picto('update')) . ' '; $top .= msqlink('system', 'default_apps') . ' '; $top .= lj(active($d, ''), 'popup_submds__x__' . $id . '_add', 'defaults') . ' '; $top .= lj(active($d, 'desk'), 'popup_submds__x_home_' . $id . '_add', 'home') . ' '; $top .= lj(active($d, 'desk'), 'popup_submds__x_desk_' . $id . '_add', 'desk') . ' '; $top .= lj(active($d, 'dev'), 'popup_submds__x_dev_' . $id . '_add', 'dev') . ' '; $r = msql_read('system', 'default_apps' . $ver, '', 1); $ra = array_flip(msq_cat($r, 1)); foreach ($ra as $va) { $bt = picto('file', 32) . ' ' . $va; $rb[$va] .= lj('sicon', 'popup_submds__x_' . $va . '_' . $id . '_adc', $bt) . ' '; foreach ($r as $k => $v) { $bt = picto($v[7], 32) . ' ' . $v[0]; if ($v[1] == $va) { $rb[$va] .= lj('sicon', $j . $k . '_' . $id . '_ads_' . $d, $bt) . ' '; } } } return popup(nms(92) . ' Apps', $top . make_tabs($rb) . divc('clear', ''), 320); }
<ul class="nav nav-sidebar"> <?php foreach ($navigation as $nav) { ?> <?php if ($nav->shown) { ?> <li class="<?php echo active($nav->active); ?> "> <a href="<?php echo $nav->url; ?> "> <i class="fa <?php echo $nav->icon; ?> "></i> <span style="font-size: 9px;"><?php echo $nav->title; ?> </span> </a> </li> <?php } ?> <?php
} echo "</td>"; echo "<td>"; $active_yesterday = query(active($yesterday, $yesterday)); while ($row = mysql_fetch_assoc($active_yesterday)) { echo $row['count'] . ' (' . $row['groupname'] . ')<br/>'; } echo "</td>"; echo "<td>"; $active_7daysago = query(active($daysago7, $today)); while ($row = mysql_fetch_assoc($active_7daysago)) { echo $row['count'] . ' (' . $row['groupname'] . ')<br/>'; } echo "</td>"; echo "<td>"; $active_30daysago = query(active($daysago30, $today)); while ($row = mysql_fetch_assoc($active_30daysago)) { echo $row['count'] . ' (' . $row['groupname'] . ')<br/>'; } echo "</td>"; echo "</tr>"; mysql_free_result($active_today); mysql_free_result($active_yesterday); mysql_free_result($active_7daysago); mysql_free_result($active_30daysago); // denied access echo "<tr>"; echo "<td>todo: devices denied access</td>"; echo "</tr>"; // newly registered function registered($startday, $endday)
function admin() { $qb = ses('qb'); $qda = ses('qda'); $qdu = ses('qdu'); $USE = ses('USE'); $auth = ses('auth'); $admin = $_GET['admin'] ? $_SESSION['admin'] = $_GET['admin'] : $_SESSION['admin']; if ($_GET['set']) { $_SESSION['set'] = $_GET['set']; } if ($USE != "") { $hubname = rse("hub", $qdu . ' WHERE name="' . $qb . '"'); if (!$hubname) { $hubname = $qb; } list($autologok, $userhub) = sql('name,hub', 'qdu', 'r', 'ip="' . hostname() . '"'); } $rep = "params"; //verif_user if ($USE != $qb && $USE != "" && $userhub) { $hub = lka('/' . $USE, $USE); } elseif ($USE != $qb && $USE != "" && $autologok != $USE && $autologok) { $alert .= lkc('txtx', '/?log=on', 'autolog') . ' '; } elseif ($USE == $qb && !$userhub && prmb(11) >= 4) { $alert .= lkc("txtred", "/?log=create_hub", "create_hub!"); } elseif ($USE == "") { $reta = lkc('txtx', htac('module') . 'Home', $qb) . br() . br() . loged($USE, $_SESSION['iq'], "", 7) . br(); } //admin_menu $aff = adminauthes(); if ($admin == "=") { $_SESSION['set'] = $_GET['set'] = $USE ? "Global" : "User"; } //defaults if ($aff[$_GET['set']]) { $admin = key($aff[$_GET['set']]); } $_SESSION['admin'] = $admin; $goto = '/?admin=' . $admin; //if(!$userhub){unset($aff['User']['mail']); unset($aff['User']['password']);} //auto_select_category foreach ($aff as $k => $v) { if ($v[$admin]) { $_SESSION['set'] = $k; $curauth = $v[$admin]; } $raf = array_merge_b($raf, array_keys($v)); } if ($curauth === false) { $curauth = 7; } //login if ($USE) { $w .= lkc('popw', htac('module') . 'Home', pictxt('home', $hubname)) . ' '; $w .= btn("popbt", pictxt('user', $USE . ' ' . asciinb($auth)) . ' (' . nameofauthes($auth) . ')'); } //fastmenu $fmn = array('console', 'params', 'restrictions', 'apps', 'css', 'finder', 'templates', 'connectors', 'plugin', 'msql', 'tools', 'pictos', 'stats', 'update'); foreach ($raf as $v) { if (in_array($v, $fmn)) { $tit .= lkc(active($admin, $v), htac('admin') . $v, pictit(mimes_types($v), $v)) . ' '; } } $reta .= divc('right', $w . $alert); $tit .= lkc('txtit', htac('admin') . $admin, $admin) . ' '; if ($admin != "=") { $reta .= div('', $tit); } if ($auth >= 7 && $admin == 'update') { $ret = adm_update(); } if ($auth >= $curauth && $curauth) { switch ($admin) { //global case 'console': $ret = adm_console($auth); break; case 'apps': require_once 'adminx.php'; $ret = adm_apps($_GET['set'], '', $_GET['dig']); break; case 'messages': if ($qb == $USE or $auth >= $curauth) { $ret = adm_messages(); } else { $ret = contact(nms(84), 'txtcadr'); } break; case 'hubs': $ret = adm_hubs($auth); break; case 'nodes': $ret = adm_nodes($auth, $goto); break; case 'stats': list($p, $o) = explode('/', $_GET['set']); $ret = plugin('stats', $p, $o); break; case 'newsletter': $ret = adm_newsletter($_GET['send']); break; case 'disk': $ret = plugin('disk', '', ''); break; case 'share': $ret = plugin('share', '', ''); break; case 'tickets': $ret = plugin('tickets', '', ''); break; case 'faq': $r = msql_read('system', 'program_faq', ''); $ret = nl2br(stripslashes(make_divtable($r, 1))); break; } //articles if ($_SESSION['set'] == 'Articles') { switch ($admin) { case 'create': $ret = f_inp('', ''); break; case 'categories': $ret = catarts(); break; case 'trackbacks': req('mod,art'); $ret = trkarts(''); break; default: $ret = adminarts(); break; } } switch ($admin) { case 'chat': require_once 'art.php'; $ret = output_trk(read_idy('microchat', 'DESC')); break; case 'shop': $ret = helps('shop_class'); break; case 'book': $ret = lkc('txtblc', '/plug/book.php', 'book'); break; } //configs switch ($admin) { case 'restrictions': $ret = adm_restrictions(); break; case 'params': $ret = adm_params($curauth, rep); break; case 'avatar': if ($USE) { $ret = adm_avatar(0); } break; case 'mail': if ($_POST['amail']) { if ($USE == $qb) { $_SESSION['qbin']['adminmail'] = $_POST['amail']; } update('qdu', 'mail', $_POST['amail'], 'name', $USE); } $ml = rse('mail', $qdu . ' WHERE name = "' . $USE . '"'); if ($ml) { $valu = input2('text', 'amail', $ml . '" size="35" maxlength="50') . ' ' . input2('submit', 'Submit', 'modif_mail', ''); } $ret = form($goto, $valu); break; case 'password': $ret = set_password($USE); break; case 'banner': $ret = set_ban(); break; case 'descript': $ret = editbrain($admin); break; case 'google': $ret = editbrain($admin); break; case 'members': $ret = adm_members_a($auth, $goto); break; case 'authes': $titles = array('fonction', 'auth'); if (auth(6)) { $ret = msqlink('system', 'admin_authes') . br(); } foreach ($aff as $k => $v) { $datas = ''; arsort($v); foreach ($v as $ka => $va) { $datas[$ka] = array($va); } $outre[$k] = make_tables($titles, $datas, 'txtblc', ''); } $ret .= make_tabs($outre, 'at'); break; } //constructors switch ($admin) { case 'css': $ret = adm_editcss(); break; case 'fonts': $ret = edit_fonts(); break; case 'connectors': $ret = data_brain('connectors') . br() . br(); $ret .= lkc('txtblc', $goto . '&help==', 'connectors_infos') . br(); if ($_GET['help']) { $ret .= conn_help() . br(); } break; case 'modules': $ret = data_brain('modules') . br() . br() . adm_mod_hlp($goto); break; case 'templates': $ret = data_brain('template'); break; case 'plugin': $ret = adm_plugin(); break; case 'msql': $ret = adm_msql(); break; case 'dev': $ret = plugin('dev', '', ''); break; case 'editags': req('meta'); $ret = admin_tags(get('set')); break; case 'finder': $ret = call_finder($qb, 'disk'); break; case 'backup': $ret = adm_backup($qb, $auth, $goto, $rep); break; case 'update_notes': $ret .= adm_update_notes('', 1); break; case 'plug': $ret .= adm_edit_plug(); break; } if ($admin && !$ret && $auth >= $curauth) { //editbrain $ret = plugin($admin, $_GET['p'], $_GET['o']); } } else { switch ($admin) { case 'members': $ret = adm_members_b(); break; } } #render if ($_SESSION['admin'] && !$_GET['callj']) { $head = $reta . br(); } else { $head = bal('h2', lka('/admin/' . $_SESSION['admin'], $_SESSION['admin'])) . br(); } return $head . $ret; }
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html">Autism Community</a> </div> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav side-nav"> <li <?php echo active($params, 'article'); ?> ><a href="./index.php"><i class="fa fa-pencil"></i> Articles</a></li> <li <?php echo active($params, 'video'); ?> ><a href="#"><i class="fa fa-play"></i> Videos</a></li> </ul> <ul class="nav navbar-nav navbar-right navbar-user"> <li class="dropdown user-dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php echo $user->name; ?> <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#"><i class="fa fa-user"></i> Profile</a></li> <li><a href="#"><i class="fa fa-gear"></i> Settings</a></li> <li class="divider"></li> <li><a href="../../logout.php"><i class="fa fa-power-off"></i> Log Out</a></li> </ul>
active('umum/register'); ?> "><a href="<?php echo site_url('umum/register'); ?> ">Register</a></li> <?php } else { $user = $this->session->userdata('user'); ?> <li><a href="#">Welcome <b><?php echo ucwords($user['username']); ?> </b>!</a></li> <li class="<?php active('dashboard/index'); ?> "><a href="<?php echo site_url('dashboard/index'); ?> ">Dashboard</a></li> <li><a href="<?php echo site_url('umum/logout'); ?> ">Logout</a></li> <!-- <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Shortcut <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">Senarai Buku</a></li> <li><a href="#">Buku Baru</a></li> <li><a href="#">Maklumat Akaun</a></li>
<a/> </li> <?php } } ?> <li style="margin-top: 5px<?php $page = active(); if ($page == 'favoris.php') { echo '; background-color: #4e4e4e'; } ?> "> <a href="favoris.php" <?php $page = active(); if ($page == 'favoris.php') { echo 'style="color: white"'; } ?> ><span class="glyphicon glyphicon-heart" style="margin-right: 15px; color: #D9534F"></span> Favorites</a> </li> <?php } else { ?> <li style="margin-top: 30px"> <a href="index.php"><span class="glyphicon glyphicon-lock" style="margin-right: 15px"></span> Locked</a> </li> <?php } ?>
<a href="<?php url('iterations-trigonometriques'); ?> " class="<?php active('iterations-trigonometriques'); ?> ">Itérations trigonométriques</a> <a href="<?php url('explorations-complexes'); ?> " class="<?php active('explorations-complexes'); ?> ">Explorations complexes</a> <a href="<?php url('distributions-aleatoires'); ?> " class="<?php active('distributions-aleatoires'); ?> ">Distributions aléatoires ?</a> </div> <div class="page-container"> <?php include 'pages/' . $_GET['page'] . '.php'; ?> </div> </div> <!-- / .container --> </body> </html>
'><a href="../student/attendance.php"><i class="fa fa-bullhorn"></i> <span>Attendance</span></a></li> <!-- >>>>>> origin/master --> <li><a href="#"><i class="fa fa-pie-chart"></i> <span>Fees information</span></a></li> <li class='treeview <?php active('changepass.php'); active('adduser.php'); ?> '> <a href="#"><i class="fa fa-edit"></i> <span>Settings</span> <i class="fa fa-angle-left pull-right"></i></a> <ul class="treeview-menu"> <li class='<?php active('changepass.php'); ?> '><a href="../admin/changepass.php"><i class="fa fa-laptop"></i>Change password</a> </li> <li class='<?php active('adduser.php'); ?> '><a href="../admin/adduser.php"><i class="fa fa-files-o"></i>Add a user account</a> </li> </ul> </li> <li><a href="../include/logout.php"><i class="fa fa-link"></i> <span>Logout</span></a></li> </ul> <!-- /.sidebar-menu --> </section> <!-- /.sidebar --> </aside></aside>
<span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Doctor</a> </div> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav side-nav"> <li class="active"><a href="#"><i class="fa fa-pencil"></i> Chat</a></li> <!--li <?php echo active($params, 'trainer'); ?> ><a href="<?php echo $trainerlink; ?> "><i class="fa fa-pencil"></i> Trainers</a></li> <li <?php echo active($params, 'doctor'); ?> ><a href="<?php echo $doctorlink; ?> "><i class="fa fa-play"></i> Doctors</a></li--> </ul> <ul class="nav navbar-nav navbar-right navbar-user"> <li class=""> <a href="../logout.php" ><i class="fa fa-user"></i> Logout</a> </li> </ul> </div> </nav>
<li class="<?php echo active('equipo'); ?> "><a href="<?php echo base_url(); ?> equipo">Equipo</a></li> <li class="<?php echo active('galeria'); ?> "><a href="<?php echo base_url(); ?> galeria">Galería</a></li> <li class="<?php echo active('contacto'); ?> "><a href="<?php echo base_url(); ?> contacto">Contacto</a></li> <!-- <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Menú #1 <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Acción #1</a></li> <li><a href="#">Acción #2</a></li> <li><a href="#">Acción #3</a></li> <li class="divider"></li> <li><a href="#">Acción #4</a></li> <li class="divider"></li> <li><a href="#">Acción #5</a></li>
<script type="text/javascript" src="js/functions.js"></script> </head> <body> <div id="wr"> <div id="hd"> <ul id="mnv"> <li<?php echo active("home"); ?> ><a href="?p=home">Home</a></li> <li<?php echo active("about_us"); ?> ><a href="?p=about_us">About us</a></li> <li<?php echo active("services"); ?> ><a href="?p=services">Services</a></li> <li<?php echo active("gallery"); ?> ><a href="?p=gallery">Gallery</a></li> <li<?php echo active("contact_us"); ?> ><a href="?p=contact_us">Contact us</a></li> </ul> </div> </div> </body> </html>
<a href="#">Регистрация</a> </div> </header> <div id="mainmenu"> <ul> <li><a href="/" class="<?php active(''); ?> ">Главная</a></li> <li><a href="/?page=about_me" class="<?php active('about_me'); ?> ">Обо мне</a></li> <li><a href="/?page=comment" class="<?php active('comment'); ?> ">Комментарии</a></li> </ul> </div> <div id="main"> <?php Route::renderContent(); ?> </div> </div> <footer> <div id="footer_inner"> <ul> <li><a href="#">Инвестору</a></li>
<div class="all-40 small-100 tiny-100"> <center><h3>Ajoute tes photos !</h3></center> <form class="ink-form" enctype="multipart/form-data" action="model/upload.php?type=photo&page=photos" method="post"> <div class="control-group"> <div class="input-file"> <input type="file" name="image_photo" required /> </div> <?php $page = active(); ?> <input type="hidden" name="chemin_photo" value="Vos Photos" /> <input type="hidden" name="page" value="<?php echo active(); ?> " /> <center style="margin-top : 15px"> <font color="#c91010"> <?php $erreur = $_GET['error']; if ($erreur == '1') { echo 'Un problème un survenu lors du choix de répoertoire'; } ?> <?php $erreur = $_GET['error']; if ($erreur == '2') { echo 'Le fichier n\'a pas été chargé';
function getAdmin($tab) { ?> <div class="tab-content pn br-n admin-form"> <div class="col-md-12"> </div> <div class="col-md-12"> <div class="section-divider mb40"> <span> <b> Reference Table ( <?php if ($tab == 1) { echo "Test Category"; } elseif ($tab == 2) { echo "Test Group"; } elseif ($tab == 3) { echo "Test List"; } elseif ($tab == 4) { echo "Section"; } elseif ($tab == 5) { echo "Unit"; } ?> ) </b> </span> </div> </div> <div class="col-md-12" align="right"> <button class="btn btn-system btn-sm" onclick="adminAdd('<?php echo $tab; ?> ')"><i class="fa fa-plus"></i> New</button> </div> <div class="col-md-12"> </div> <div class="col-md-12"> <div class="panel panel-widget chat-widget"> <div class="panel-body bg-light dark" style="overflow-y: scroll; overflow-y: hidden;"> <table class="table table-stripe table-hover" id="primary" cellspacing="0" width="100%"> <thead> <tr class="primary" align="center"> <?php if ($tab == 1) { ?> <td width="5%">No</td> <td width="10%">Code</td> <td width="55%">Description</td> <td width="15%">Status</td> <td width="15%">Action</td> <?php } elseif ($tab == 2) { ?> <td width="5%">No</td> <td width="10%">Category</td> <td width="55%">Description</td> <td width="15%">Status</td> <td width="15%">Action</td> <?php } elseif ($tab == 3) { ?> <td width="5%">No</td> <td width="10%">Group</td> <td width="20%">Description</td> <td width="5%">Code</td> <td width="10%">Type</td> <td width="10%">Limit</td> <td width="10%">Reference</td> <td width="10%">Specification</td> <td width="10%">Action</td> <?php } elseif ($tab == 4) { ?> <td width="5%">No</td> <td width="65%">Section</td> <td width="15%">Status</td> <td width="15%">Action</td> <?php } elseif ($tab == 5) { ?> <td width="5%">No</td> <td width="40%">Section</td> <td width="30%">Unit</td> <td width="10%">Status</td> <td width="15%">Action</td> <?php } ?> </tr> </thead> <tbody> <?php $count = 1; if ($tab == 1) { $query = "SELECT rtk_kod,rtk_short_kod,rtk_desc,rtk_active FROM ref_test_kat"; } elseif ($tab == 2) { $query = "SELECT rtk_desc,rtg_kod,rtg_rtk_kod,rtg_desc,rtg_active FROM ref_test_group\n JOIN ref_test_kat ON ref_test_kat.rtk_kod=ref_test_group.rtg_rtk_kod\n WHERE rtk_active=1"; } elseif ($tab == 3) { $query = "SELECT rt_kod,rt_group,rt_test_kod,rt_desc,rt_limit,rt_ref,rt_spec FROM ref_test"; } elseif ($tab == 4) { $query = "SELECT rsek_kod,rsek_desc,rsek_status FROM ref_seksyen\n WHERE rsek_rp_kod=3"; } elseif ($tab == 5) { $query = "SELECT ru_kod,ru_short_kod,ru_desc,ru_status,rsek_desc FROM ref_unit\n JOIN ref_seksyen ON ref_seksyen.rsek_kod=ref_unit.ru_rsek_kod\n WHERE rsek_rp_kod='3' AND rsek_status=1"; } $result = selQuery($query); while ($row = mysqli_fetch_assoc($result)) { ?> <tr align="center"> <?php if ($tab == 1) { ?> <td><?php echo $count++; ?> </td> <td><?php echo $row['rtk_short_kod']; ?> </td> <td align="left"><?php echo $row['rtk_desc']; ?> </td> <td><?php echo active($row['rtk_active']); ?> </td> <td><button class="btn btn-primary btn-sm" onclick="adminEdit('<?php echo $tab; ?> ','<?php echo $row['rtk_kod']; ?> ')">View / Edit</button></td> <?php } elseif ($tab == 2) { ?> <td><?php echo $count++; ?> </td> <td align="left"><?php echo $row['rtk_desc']; ?> </td> <td align="left"><?php echo $row['rtg_desc']; ?> </td> <td><?php echo active($row['rtg_active']); ?> </td> <td><button class="btn btn-primary btn-sm" onclick="adminEdit('<?php echo $tab; ?> ','<?php echo $row['rtg_kod']; ?> ')">View / Edit</button></td> <?php } elseif ($tab == 3) { ?> <td><?php echo $count++; ?> </td> <td><?php //echo $row['rug_desc']; ?> </td> <td align="left"><?php echo $row['rt_group']; ?> </td> <td><?php echo $row['rt_test_kod']; ?> </td> <td align="left"><?php echo $row['rt_desc']; ?> </td> <td align="left"><?php echo $row['rt_limit']; ?> </td> <td align="left"><?php echo $row['rt_ref']; ?> </td> <td align="left"><?php echo $row['rt_spec']; ?> </td> <td><button class="btn btn-primary btn-sm" onclick="adminEdit('<?php echo $tab; ?> ','<?php echo $row['rt_kod']; ?> ')">View / Edit</button></td> <?php } elseif ($tab == 4) { ?> <td><?php echo $count++; ?> </td> <td align="left"><?php echo $row['rsek_desc']; ?> </td> <td><?php echo active($row['rsek_status']); ?> </td> <td><button class="btn btn-primary btn-sm" onclick="adminEdit('<?php echo $tab; ?> ','<?php echo $row['rsek_kod']; ?> ')">View / Edit</button></td> <?php } elseif ($tab == 5) { ?> <td><?php echo $count++; ?> </td> <td align="left"><?php echo $row['rsek_desc']; ?> </td> <td align="left"><?php echo $row['ru_short_kod'] . " - " . $row['ru_desc']; ?> </td> <td><?php echo active($row['ru_status']); ?> </td> <td><button class="btn btn-primary btn-sm" onclick="adminEdit('<?php echo $tab; ?> ','<?php echo $row['ru_kod']; ?> ')">View / Edit</button></td> <?php } ?> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <?php }
?> ><a href="summary.php">Summary</a></li> <li<?php active('project'); ?> ><a href="<?php echo $after_login_redirect; ?> ">Group Projects</a></li> </ul> <form action="task_search.php" method="get"> <input type="text" name="s" placeholder="search tasks"> </form> <ul class="nav secondary-nav"> <li<?php active('private'); ?> ><a href="project.php?private=1">My Private Projects</a></li> <li><?php right_align(); ?> </li> </ul> </div><!-- /container --> </div><!-- /fill --> </div><!-- /topbar --> <div class="container main_content"> <div class="page_icon float_right"> <img class="page_icon" src="<?php echo icon_address(); ?>
?> </li> <li><?php echo active("poll", "Poll", 0, "images/"); ?> </li> <li><?php echo active("gastenboek", "Gastenboek", 0, "images/"); ?> </li> <li><?php echo active("algemene_informatie", "Algemene informatie", 0, "images/"); ?> </li> <li><?php echo active("contact", "Contact", 0, "images/"); ?> </li> </ul> </li> <li class="headingLi">Admin <ul class="headingItem"> <li><a href="admin/index.php" class="headingItemLink">Admin gedeelte</a></li> </ul> </li> </ul> </div> </td> <td style="width: 590px:" valign="top"> <div style="background-color: #EFEFEF; margin: 5px 0 0 5px; padding: 5px;"> <?php
if (active($menu->controller, $menu->action)) { ?> $(function(){ var a = $('a[href="<?php echo $menu->controller . '/' . $menu->action; ?> "]'); a.parent().parent().parent().parent().parent().addClass('open active'); a.parent().parent().parent().addClass('open active'); }) <?php } ?> </script> <a class="<?php echo active($menu->controller, $menu->action, true); ?> " href="<?php echo $menu->controller . '/' . $menu->action; ?> "> <?php echo $menu->name; ?> </a> </li> <?php } ?> <?php }
?> ><a href="/" class="navbar-home" data-toggle='tooltip' data-placement='bottom' title='Home'><i class="fa fa-home"></i></a></li> <li <?php active("hot-topics"); ?> ><a href="/hot-topics" class="navbar-fire" data-toggle='tooltip' data-placement='bottom' title='Hot Topics'><i class="fa fa-fire"></i></a></li> <li <?php active("authors"); ?> ><a href="/authors" class="navbar-authors" data-toggle='tooltip' data-placement='bottom' title='Authors'><i class="fa fa-users"></i></a></li> <li <?php active("categories"); ?> ><a href="/categories" class="navbar-categories" data-toggle='tooltip' data-placement='bottom' title='Categories'><i class="fa fa-th"></i></a></li> <li <?php active("gallery"); ?> ><a href="/gallery" class="navbar-gallery" data-toggle='tooltip' data-placement='bottom' title='Gallery'><i class="fa fa-picture-o"></i></a></li> </ul> <ul class="nav navbar-nav navbar-right"> <?php Query("*", "navbar_right"); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { $navTitle = $row['title']; $navLink = $row['link']; ?> <li><a href="<?php echo $navLink; ?> "><?php
/** * Determine if any of the provided routes are active. * * @param mixed $routes * @return bool */ function is_active($routes) { $routes = is_array($routes) ? $routes : func_get_args(); return active()->isActive($routes); }
</ul> <ul class="nav pull-right"> <li class="dropdown" id="menu3"> <?php echo anchor('#menu3', '<i class="icon-user icon-white"></i> ' . $sess->username . ' <b class="caret"></b>', 'class="dropdown-toggle" data-toggle="dropdown"'); ?> <ul class="dropdown-menu"> <li <?php echo active('users/account'); ?> ><?php echo anchor('users/account', '<i class="icon-cog"></i> Account settings'); ?> </li> <li <?php echo active('users/password'); ?> ><?php echo anchor('users/password', '<i class="icon-lock"></i> Change password'); ?> </li> <li class="divider"></li> <li><?php echo anchor('logout', '<i class="icon-off"></i> ' . lang('menu_logout')); ?> </li> </ul> </li> </ul> <?php echo form_open('events/do_search', array('class' => 'navbar-search pull-right'));
</a> </li> <li <?php echo active(1, $c); ?> ><a href="./gallery.php?page=1">1</a></li> <li <?php echo active(2, $c); ?> ><a href="./gallery.php?page=2">2</a></li> <li <?php echo active(3, $c); ?> ><a href="./gallery.php?page=3">3</a></li> <li <?php echo active(4, $c); ?> ><a href="./gallery.php?page=4">4</a></li> <li style="cursor:pointer" <?php echo disabled(4, $c); ?> > <a id="next" href="./gallery.php?page=<?php echo $c + 1; ?> " > <span aria-hidden="true">»</span> </a> </li> </ul> </nav>
<?php session_start(); require_once 'nusoap/lib/nusoap.php'; $client = new nusoap_client('http://localhost/tasit/server.php?wsdl', true); if (isset($_SESSION['username'])) { //jika tidak ada session } else { header("location:login.php"); } $result = active(); $home = ""; $pel = ""; $buku = ""; if ($result == "sewa") { $home = "active"; } elseif ($result == "pelanggan") { $pel = "active"; } elseif ($result == "buku") { $buku = "active"; } ?> <!DOCTYPE html> <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">