function replaceTemplateValues($string, $siteid, $page_title) { $db = Database::obtain(); $sql = "SELECT * FROM " . TABLE_WEBSITES . "\n\t\t\t\t\tWHERE `id` =" . $siteid . ""; $websitedata = $db->query_first($sql); $website_template = $websitedata['website_template']; $website_protect_value = $websitedata['website_protect']; $website_name = $websitedata['website_name']; $meta_description = $websitedata['website_description']; $meta_keywords = $websitedata['website_keywords']; $creator_name = $websitedata['creator_name']; $creator_website = $websitedata['creator_website']; $website_template = $websitedata['website_template']; $default_file_extension = '.html'; if (isUser($_SESSION['userid']) or isActive($_SESSION['userid']) == false) { $website_footer = MSG00010 . ' <a href ="' . szUrl() . '" >' . szName() . '</a> - ' . MSG00082 . ' ' . szYear() . ' ' . $website_name . '. ' . MSG00057 . ' '; } else { $website_footer = MSG00009 . ' <a href="http://' . $creator_website . '" target="_blank" alt="' . $creator_name . '" title="' . $creator_name . '">' . $creator_name . '</a> - ' . MSG00082 . ' ' . szYear() . ' ' . $website_name . '. ' . MSG00057 . ' '; } $meta_generator_name = szName(); $meta_language = szLanguage(); if ($website_protect_value == '1') { $website_protect = protectSite(); } else { $website_protect = ''; } $website_header = ' <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>' . $page_title . ' - ' . $website_name . '</title> <meta name="description" content="' . $meta_description . '"> <meta name="keywords" content="' . $meta_keywords . '"> <meta http-equiv="Copyright" content="' . $website_name . '" /> <meta name="generator" content="' . $meta_generator_name . '" /> <meta http-equiv="content-language" content="' . $meta_language . '" /> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="favicon.ico"/> <link href="sitezilla.css" rel="stylesheet" type="text/css"> <link href="templates/' . $website_template . '/style.css" rel="stylesheet" type="text/css"> ' . ie6Css($website_template) . ie7Css($website_template) . $website_protect . ''; $webauthor = getAuthor($website_template); if ($webauthor == MSG00007) { $author = ''; } else { if (strlen(stristr($webauthor, szCompany())) > 0) { $author = ''; } else { $author = ' ' . MSG00008 . ' ' . $webauthor; } } $placeholders = array('WEBSITE_HEADER', 'WEBSITE_NAME', 'WEBSITE_FOOTER', 'TEMPLATE_AUTHOR'); $new_vals = array($website_header, '<a href="index' . $default_file_extension . '" alt="' . $website_name . '" title="' . $website_name . '">' . $website_name . '</a>', $website_footer, $author); $newString = str_replace($placeholders, $new_vals, $string); return $newString; }
public function test_is_active() { Route::shouldReceive('currentRouteName')->once()->andReturn('about'); $this->assertEquals('active', isActive(['faq', 'about'])); Route::shouldReceive('currentRouteName')->once()->andReturn('home'); $this->assertEquals('active', isActive('home')); URL::shouldReceive('current')->once()->andReturn('http://localhost:8000/about'); $this->assertEquals('custom-clas-name', isActive('about', 'custom-clas-name')); Route::shouldReceive('currentRouteName')->once()->andReturn('news'); $this->assertEquals('', isActive('home')); }
?> </td> <td><?php echo $core->formatMoney($row['price']); ?> </td> <td><?php echo $row['days'] . ' ' . $member->getPeriod($row['period']); ?> </td> <td><?php echo $row['description']; ?> </td> <td align="center"><?php echo isActive($row['active']); ?> </td> <td align="center"><a href="index.php?do=memberships&action=edit&id=<?php echo $row['id']; ?> "><img src="../images/edit.png" alt="" class="tooltip img-wrap2" title="Edit: <?php echo $row['title']; ?> "/></a></td> <td align="center"><a href="javascript:void(0);" class="delete" rel="<?php echo $row['title']; ?> " id="item_<?php echo $row['id']; ?>
// * * // ************************************************************************* session_start(); if (!isset($_SESSION['userid'])) { header("Location: index.php"); } include_once 'functions/functions.php'; if (!isset($_GET['preview'])) { include_once 'admin_template/header.php'; } $userid = checkSession(); //END SESSION CHECK $passw_changed = false; $showindex = true; if (isset($_GET['activate'])) { if (!isActive($userid)) { activateAccount($userid); } } elseif (isset($_GET['user']) && $_GET['user'] == 'save' && $userid != 0) { if ($_POST['id'] != '' && $_POST['username'] != '' && $_POST['fullnames'] != '' && $_POST['phone'] != '' && $_POST['email'] != '') { $savedetails = true; //UpdateUser $userdata = array(); $userdata['id'] = cleanPost($_POST['id']); $userdata['username'] = cleanPost($_POST['username']); $userdata['group'] = cleanPost($_POST['group']); $userdata['account_active'] = cleanPost($_POST['account_active']); $userdata['fullnames'] = cleanPost($_POST['fullnames']); $userdata['phone'] = cleanPost($_POST['phone']); $userdata['user_website'] = cleanPost($_POST['user_website']); $userdata['email'] = cleanPost($_POST['email']);
<div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="<?php echo isActive('index.php'); ?> "><a href="index.php">Icons <span class="sr-only">(current)</span></a></li> <li class="<?php echo isActive('start.php'); ?> "><a href="start.php">Getting started</a></li> <li class="<?php echo isActive('ico.php'); ?> "><a href="ico.php">Examples</a></li> <li class="<?php echo isActive('license.php'); ?> "><a href="license.php">License</a></li> </ul> </div><!--/.navbar-collapse --> </div> </nav> <?php echo $content; ?> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="js/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="js/bootstrap.min.js"></script>
} elseif (isset($_GET['down'])) { $mitemid = cleanGet($_GET['down']); editWebsiteMenuOrder($siteid, $mitemid, 'down'); } elseif (isset($_GET['addpage']) && isset($_POST['page_title']) && strlen($_POST['page_title']) > 1) { $page_title = cleanGet($_POST['page_title']); if (isActive($userid)) { if (maxSitePages($siteid) == false) { addPage($siteid, $page_title); } else { sysMsg(MSG00119); } } else { demoMsg(); } } elseif (isset($_GET['changetitle']) && isset($_POST['old_page_id'])) { $pageid = cleanPost($_POST['old_page_id']); $title = cleanPost($_POST['new_page_title']); if (isActive($userid)) { changePageTitle($pageid, $title); } else { demoMsg(); } } if ($siteid != 0 && $showmenu == true) { editWebsiteMenu($siteid); } } else { giveWarning(); } //END MENU include_once 'admin_template/footer.php';
<?php //Author: Kadir CETINKAYA - breakv0id@0xdeffbeef require_once "base.php"; if (isActive()) { $active = "Active"; } else { $active = "Frozen"; } $left = getLeft(); $left = sprintf("%02d:%02d:%02d", (int) ($left / 3600), $left / 60 % 60, $left % 60); ?> <div class="container"> <div class="panel panel-default"> <div class="panel-heading"><?php echo $board[0]; ?> [<?php echo $active; ?> : <?php echo $left; ?> ]</div> <table class="table"> <thead> <tr> <th>#</th> <th><?php echo $board[1]; ?>
<?php message(); if (isActive('previous_taxonomy')) { $prev = tpl('previous_taxonomy', 0); ?> <ul class="breadcrumb"> <li> <a href="<?php qoolinfo('home'); ?> /admin/taxonomies"><?php t("Taxonomies"); ?> </a> <span class="divider">/</span> </li> <?php foreach ($prev as $k => $v) { ?> <li> <a href="<?php qoolinfo('home'); ?> /admin/taxonomies?id=<?php echo $v['id']; ?> "><?php echo $v['title']; ?> </a> <span class="divider">/</span> </li>
echo isActive($sideOrder, "createactivity"); ?> > <a href="/tpvote/index.php/Home/admin/createactivity">创建活动</a> </li> <li <?php echo isActive($sideOrder, "activitylist"); ?> > <a href="/tpvote/index.php/Home/admin/activitylist">活动列表</a> </li> <li class="nav-header"> 选项维护 </li> <li <?php echo isActive($sideOrder, "addoptions"); ?> > <a href="/tpvote/index.php/Home/admin/addoptions">添加选项</a> </li> <li class="divider"> </li> <!-- <li> <a href="#">帮助</a> </li> --> </ul> <!-- <div class="accordion" id="accordion-910278"> <div class="accordion-group"> <div class="accordion-heading"> <button class="accordion-toggle btn btn-primary btn-block" data-toggle="collapse" data-parent="#accordion-910278" href="#accordion-element-314631">用户维护</button> </div>
<li <?php echo isActive("index"); ?> > <a href="/"> <span class="fa fa-fw fa-home"></span> Home </a> </li> <li> <a href="https://github.com/devzero-xyz" target="_blank"> <span class="fa fa-fw fa-github"></span> GitHub </a> </li> <li <?php echo isActive("contact"); ?> > <a href="contact.php"> <span class="fa fa-fw fa-envelope"></span> Contact </a> </li> </ul> </div> </div> </nav> </body> </html>
echo base_url(); ?> footnotes">Nifty Footnotes</a></li> <li class="<?php echo isActive($page_id, "automatictabs"); ?> "><a href="<?php echo base_url(); ?> automatictabs">Automatic Tabs</a></li> <li class="<?php echo isActive($page_id, "portfolio"); ?> "><a href="<?php echo base_url(); ?> portfolio">Portfolio</a></li> <li class="<?php echo isActive($page_id, "helpers"); ?> "><a href="<?php echo base_url(); ?> helpers">Helpers</a></li> </ul> </li> </ul> </div> </div><!--/.sidebar --> </nav>
$bageBooking = $countNewPending > 0 ? " <span class=\"badge\">{$countNewPending}</span>" : ''; } $bageMessages = ''; if (issetModule('messages')) { $countMessagesUnread = Messages::getCountUnread(Yii::app()->user->id); $bageMessages = $countMessagesUnread > 0 ? " <span class=\"badge\">{$countMessagesUnread}</span>" : ''; } ?> <div class="bootnavbar-delimiter"></div> <div class="container-fluid"> <div class="row-fluid"> <div class="span3"> <div class="well sidebar-nav"> <?php $this->widget('bootstrap.widgets.TbMenu', array('type' => 'list', 'encodeLabel' => false, 'items' => array(array('label' => tc('Listings'), 'visible' => Yii::app()->user->checkAccess('apartments_admin') || Yii::app()->user->checkAccess('comments_admin') || Yii::app()->user->checkAccess('apartmentsComplain_admin')), array('label' => tc('Listings') . $bageListings, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/apartments/backend/main/admin', 'active' => isActive('apartments'), 'visible' => Yii::app()->user->checkAccess('apartments_admin')), array('label' => tc('List your property'), 'icon' => 'icon-plus-sign', 'url' => $baseUrl . '/apartments/backend/main/create', 'active' => isActive('apartments.create'), 'visible' => Yii::app()->user->checkAccess('apartments_admin')), array('label' => tc('Comments') . $bageComments, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/comments/backend/main/admin', 'active' => isActive('comments'), 'visible' => Yii::app()->user->checkAccess('comments_admin')), array('label' => tc('Complains') . $bageComplain, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/apartmentsComplain/backend/main/admin', 'active' => isActive('apartmentsComplain'), 'visible' => issetModule('apartmentsComplain') && Yii::app()->user->checkAccess('apartmentsComplain_admin')), array('label' => tt('Booking apartment', 'booking') . $bageBooking, 'icon' => 'icon-file', 'url' => $baseUrl . '/bookingtable/backend/main/admin', 'active' => isActive('bookingtable'), 'visible' => issetModule('bookingtable') && Yii::app()->user->checkAccess('bookingtable_admin')), array('label' => tc('Users'), 'visible' => Yii::app()->user->checkAccess('users_admin')), array('label' => tc('Users'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/users/backend/main/admin', 'active' => isActive('users'), 'visible' => Yii::app()->user->checkAccess('users_admin')), array('label' => tt('Reviews', 'reviews'), 'visible' => Yii::app()->user->checkAccess('reviews_admin')), array('label' => tt('Reviews_management', 'reviews') . $bageReviews, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/reviews/backend/main/admin', 'active' => isActive('reviews'), 'visible' => Yii::app()->user->checkAccess('reviews_admin')), array('label' => tt('Add_feedback', 'reviews'), 'icon' => 'icon-plus-sign', 'url' => $baseUrl . '/reviews/backend/main/create', 'active' => isActive('reviews.create'), 'visible' => Yii::app()->user->checkAccess('reviews_admin')), array('label' => tt('Vacancy', 'vacancy'), 'visible' => Yii::app()->user->checkAccess('vacancy_admin')), array('label' => tt('Vacancy_management', 'vacancy') . $bageVacancy, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/vacancy/backend/main/admin', 'active' => isActive('vacancy'), 'visible' => Yii::app()->user->checkAccess('vacancy_admin')), array('label' => tt('Add_feedback', 'vacancy'), 'icon' => 'icon-plus-sign', 'url' => $baseUrl . '/vacancy/backend/main/create', 'active' => isActive('vacancy.create'), 'visible' => Yii::app()->user->checkAccess('vacancy_admin')), array('label' => tt('Clients', 'clients'), 'visible' => Yii::app()->user->checkAccess('clients_admin')), array('label' => tt('Clients', 'clients'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/clients/backend/main/admin', 'active' => isActive('clients'), 'visible' => Yii::app()->user->checkAccess('clients_admin')), array('label' => tc('Content'), 'visible' => Yii::app()->user->checkAccess('news_admin') || Yii::app()->user->checkAccess('articles_admin') || Yii::app()->user->checkAccess('menumanager_admin')), array('label' => tc('News'), 'icon' => 'icon-file', 'url' => $baseUrl . '/news/backend/main/admin', 'active' => isActive('news'), 'visible' => Yii::app()->user->checkAccess('news_admin')), array('label' => tc('Blog'), 'icon' => 'icon-file', 'url' => $baseUrl . '/blog/backend/main/admin', 'active' => isActive('blog'), 'visible' => Yii::app()->user->checkAccess('blog_admin')), array('label' => tc('Q&As'), 'icon' => 'icon-file', 'url' => $baseUrl . '/articles/backend/main/admin', 'active' => isActive('articles'), 'visible' => Yii::app()->user->checkAccess('articles_admin')), array('label' => tc('Top menu items'), 'icon' => 'icon-file', 'url' => $baseUrl . '/menumanager/backend/main/admin', 'active' => isActive('menumanager'), 'visible' => Yii::app()->user->checkAccess('menumanager_admin')), array('label' => tc('Info pages'), 'icon' => 'icon-file', 'url' => $baseUrl . '/infopages/backend/main/admin', 'active' => isActive('infopages'), 'visible' => Yii::app()->user->checkAccess('infopages_admin')), array('label' => tt('Messages', 'messages'), 'visible' => issetModule('messages') && Yii::app()->user->checkAccess('messages_admin')), array('label' => tt('Messages', 'messages') . $bageMessages, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/messages/backend/main/admin', 'active' => isActive('messages') || isActive('messages.read'), 'visible' => issetModule('messages') && Yii::app()->user->checkAccess('messages_admin')), array('label' => tt('Mailing messages', 'messages'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/messages/backend/mailing/admin', 'active' => isActive('messages.mailing'), 'visible' => issetModule('messages') && Yii::app()->user->checkAccess('messages_admin')), array('label' => tc('Payments'), 'visible' => issetModule('payment') && (Yii::app()->user->checkAccess('payment_admin') || Yii::app()->user->checkAccess('paidservices_admin'))), array('label' => tc('Tariff Plans'), 'icon' => 'icon-shopping-cart', 'url' => $baseUrl . '/tariffPlans/backend/main/admin', 'active' => isActive('tariffPlans'), 'visible' => issetModule('tariffPlans') && issetModule('paidservices') && Yii::app()->user->checkAccess('tariff_plans_admin')), array('label' => tc('Paid services'), 'icon' => 'icon-shopping-cart', 'url' => $baseUrl . '/paidservices/backend/main/admin', 'active' => isActive('paidservices'), 'visible' => issetModule('payment') && Yii::app()->user->checkAccess('paidservices_admin')), array('label' => tc('Manage payments') . $bagePayments, 'icon' => 'icon-shopping-cart', 'url' => $baseUrl . '/payment/backend/main/admin', 'active' => isActive('payment'), 'visible' => issetModule('payment') && Yii::app()->user->checkAccess('payment_admin')), array('label' => tc('Payment systems'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/payment/backend/paysystem/admin', 'active' => isActive('payment.paysystem'), 'visible' => issetModule('payment') && Yii::app()->user->checkAccess('payment_admin')), array('label' => tc('References'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Categories of references'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/referencecategories/backend/main/admin', 'active' => isActive('referencecategories'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Values of references'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/referencevalues/backend/main/admin', 'active' => isActive('referencevalues'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "View:"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/windowto/backend/main/admin', 'active' => isActive('windowto'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "Check-in"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/timesin/backend/main/admin', 'active' => isActive('timesin'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "Check-out"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/timesout/backend/main/admin', 'active' => isActive('timesout'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "Property types"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/apartmentObjType/backend/main/admin', 'active' => isActive('apartmentObjType'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "City/Cities"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/apartmentCity/backend/main/admin', 'active' => isActive('apartmentCity'), 'visible' => !issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Blockip'), 'visible' => Yii::app()->user->checkAccess('blockip_admin')), array('label' => tc('Blockip'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/blockIp/backend/main/admin', 'active' => isActive('blockIp'), 'visible' => Yii::app()->user->checkAccess('blockip_admin')), array('label' => tc('Settings'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Settings'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/configuration/backend/main/admin', 'active' => isActive('configuration'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Manage modules'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/modules/backend/main/admin', 'active' => isActive('modules'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Images'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/images/backend/main/index', 'active' => isActive('images'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Change admin password'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/adminpass/backend/main/index', 'active' => isActive('adminpass'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Site service '), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/service/backend/main/admin', 'active' => isActive('service'), 'visible' => issetModule('service'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Authentication services'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/socialauth/backend/main/admin', 'active' => isActive('socialauth'), 'visible' => issetModule('socialauth'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Manage themes'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/themes/backend/main/admin', 'active' => isActive('themes'), 'visible' => issetModule('themes'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Languages and currency'), 'visible' => Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Languages'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/lang/backend/main/admin', 'active' => isActive('lang'), 'visible' => !isFree() && Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Translations'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/translateMessage/backend/main/admin', 'active' => isActive('translateMessage'), 'visible' => Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Currencies'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/currency/backend/main/admin', 'active' => isActive('currency'), 'visible' => issetModule('currency') && Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Modules'), 'visible' => Yii::app()->user->checkAccess('all_modules_admin') && (issetModule('notifier') || issetModule('slider') || issetModule('advertising') || issetModule('iecsv') || issetModule('formdesigner') || issetModule('socialposting'))), array('label' => tc('Mail editor'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/notifier/backend/main/admin', 'active' => isActive('notifier'), 'visible' => issetModule('notifier') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Slide-show on the Home page'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/slider/backend/main/admin', 'active' => isActive('slider'), 'visible' => issetModule('slider') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Import / Export'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/iecsv/backend/main/admin', 'active' => isActive('iecsv'), 'visible' => issetModule('iecsv') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Advertising banners'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/advertising/backend/advert/admin', 'active' => isActive('advertising'), 'visible' => issetModule('advertising') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('The forms designer'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/formdesigner/backend/main/admin', 'active' => isActive('formdesigner') || isActive('formeditor'), 'visible' => issetModule('formdesigner') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tt('Services of automatic posting', 'socialposting'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/socialposting/backend/main/admin', 'active' => isActive('socialposting'), 'visible' => issetModule('socialposting') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Location module'), 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Countries'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/location/backend/country/admin', 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin'), 'active' => isActive('location.country')), array('label' => tc('Regions'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/location/backend/region/admin', 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin'), 'active' => isActive('location.region')), array('label' => tc('Cities'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/location/backend/city/admin', 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin'), 'active' => isActive('location.city'))))); ?> </div> <!--/.well --> </div> <!--/span--> <div class="span9"> <?php echo $content; ?> </div> <!--/span--> </div> <!--/row--> <hr>
$tags = isset($_GET['tags']) ? explode('+', urldecode($_GET['tags'])) : array(); } if (false !== ($k = array_search($tag, $tags))) { $x = $tags; unset($x[$k]); return urlencode(implode('+', $x)); } $x = $tags; $x[] = $tag; return urlencode(implode('+', $x)); } $contacts = explode(';', $office->contacts); foreach ($cats as $cat) { ?> <a class="<?php echo isActive($cat['name']) ? 'active' : ''; ?> " href="<?php echo $this->createUrl('office/items/index', array('oid' => $office->id, 'tags' => append($cat['name']))); ?> "><?php echo $cat['title']; ?> </a> <span class="count">(<?php echo $cat['cnt']; ?> )</span><br /> <br /> <?php } ?>
<tr> <td class='nav_cell' > </td> <td class='nav_cell' width='14%'> <div<?php isActive($cat, 'introduction'); ?> id='introduction'><?php echo $lang_menu_intro; ?> </div> </td> <td class='nav_cell' width='14%'> <div<?php isActive($cat, 'upgrade'); ?> id='upgrade'><?php echo $lang_menu_upgrade; ?> </div> </td> <td class='nav_cell' > </td> </tr> </table> <div class="content"> <?php
<span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?php echo basePath(); ?> "><img src="<?php echo asset('pulseLogo.png'); ?> " width="25"> PULSE Framework</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li<?php if (isActive() == '/') { echo ' class="active"'; } ?> ><a href="<?php echo basePath(); ?> ">Welcome</a></li> <li><a href="<?php echo uri('documentationUrl'); ?> ">Documentation</a></li> <li><a href="<?php echo uri('communityUrl'); ?> ">Pulse Community</a></li>
if (isActive("UserImage")) { include 'UserImage.php'; } else { if (isActive("Upload")) { include 'Upload.php'; } else { if (isActive("OtherImage")) { include 'OtherImage.php'; } else { if (isActive("UserList")) { include 'UserList.php'; } else { if (isActive("Colors")) { include 'Colors.php'; } else { if (isActive("Editor")) { include 'Editor.php'; } else { include 'Home.php'; } } } } } } } } ?> <script src="../scripts/js/bootstrap.min.js"></script>
</div> <?php } ?> <?php if (isActive('hasForm')) { ?> <a id="formSubmiter" class="btn btn-primary" href="#"><?php t("Save"); ?> </a> <?php } ?> <?php if (isActive('isEditor')) { ?> <a id="toggler" class="btn btn-primary" href="#"><?php t("HTML"); ?> </a> <?php } ?> <form action="<?php qoolinfo('home'); ?> /admin/search" class="navbar-search pull-right"> <input name="q" type="text" class="search-query span2" placeholder="<?php t('Search');
"> <i class="fa fa-bars"></i> Data List </a> </li> <li> <a href="<?php echo site_url('products/add'); ?> "> <i class="fa fa-plus-square"></i> New Product </a> </li> </ul> </li> <li <?php isActive('salesorder'); ?> > <a href="<?php echo site_url('salesorder'); ?> "> <i class="fa fa-shopping-cart"></i> <span class="title">Sales Order</span> <span class="selected"></span> </a> </li> <!-- <li> <a href="javascript:;"> <i class="fa fa-shopping-cart"></i>
function panelTabPermission($permissions, $isMenu = TRUE) { $ref = $isMenu ? "menu" : "outro"; $local = ""; $active = TRUE; $phtml = ""; $navTabs = ""; $tabContent = ""; $phtml .= '<div class="panel panel-default">'; $phtml .= '<div class="panel-heading">' . ucfirst($ref) . '</div>'; $phtml .= '<div class="panel-body">'; foreach ($permissions as $permission) { $refNavTabContent = $ref . '-' . $permission->local; $class = isActive($active); if ($permission->local !== $local) { $navTabs .= '<li class="' . $class . '""><a data-toggle="tab" href="#' . $refNavTabContent . '">' . ucfirst($permission->local) . '</a></li>'; $tabContent .= '<div class="tab-pane ' . $class . '" id="' . $refNavTabContent . '">'; $tabContent .= getLabelTabContent($permissions, $permission->local); $tabContent .= '</div>'; $local = $permission->local; $active = FALSE; } } $phtml .= '<ul class="nav nav-tabs" data-tabs="tabs">' . $navTabs . '</ul>'; $phtml .= '<div class="tab-content">' . $tabContent . '</div>'; $phtml .= '</div>'; // close .panel-body $phtml .= '</div>'; // close .panel return $phtml; }
?> >Pageantry</a></li> <li><a href="gallery.php"<?php echo isActive($currPage, $pagesArr[4], $classStr); ?> >Gallery</a></li> <li><a href="events.php"<?php echo isActive($currPage, $pagesArr[3], $classStr); ?> >Events</a></li> <li><a href="/blog/"<?php echo isActive($currPage, $pagesArr[2], $classStr); ?> >Blog</a></li> <li><a href="about.php"<?php echo isActive($currPage, $pagesArr[5], $classStr); ?> >About</a></li> --> </ul> </div> <div class="content-box"> <p>A Word From Our Proprietor</p> <blockquote><span class="bqstart">“</span>D.Sinatra is a professional event company, our forte is providing entertainment, event management and promoting fashion and life style. <br /><br />We have undoubtedly grown from strength to strength since our incorporation in June 18, 2010.<span class="bqend">”</span></blockquote> </div> <div class="content-box"> <p class="small-print">© <?php echo date("Y"); ?>
</span> </td> </tr>'; if (vtlib_isModuleActive('Accounts') && isPermitted('Accounts', 'EditView') == 'yes') { $convertlead .= '<tr> <td align="right" class="dvtCellLabel">' . $mod_strings['LBL_ACCOUNT_NAME'] . '</td> <td class="dvtCellInfo"><input type="text" name="account_name" class="detailedViewTextBox" value="' . $company . '" readonly="readonly"></td> </tr>'; } if (vtlib_isModuleActive('Potentials') && isPermitted('Potentials', 'EditView') == 'yes') { // An array which as module => fields mapping, to check for field permissions $fields_list = array('Potentials' => array('potentialname', 'closingdate', 'amount', 'sales_stage')); $fields_permission = array(); foreach ($fields_list as $mod => $fields) { foreach ($fields as $key => $field) { if (getFieldVisibilityPermission($mod, $current_user->id, $field) == '0' && isActive($field, $mod) == true) { $fields_permission[$field] = '0'; $potTabid = getTabid('Potentials'); global $adb; $query = 'select typeofdata from vtiger_field where fieldname = ? and tabid = ?'; $res = $adb->pquery($query, array($field, $potTabid)); $type = $adb->query_result($res, 0, 'typeofdata'); if (strpos($type, 'M')) { $mandatory[$field] = '*'; } } else { $fields_permission[$field] = '1'; } } } $convertlead .= '<tr>
?> </h3> <dl> <?php foreach ($user['data'] as $k => $v) { ?> <dt><?php echo $k; ?> </dt> <dd><?php echo $v; ?> </dd> <?php } ?> </dl> </div> <?php if (isActive('formTitle')) { ?> <div class="6u"> <?php showForm('theForm'); ?> </div> <?php } ?> </div>
<nav> <ul> <li class="<?php echo isActive($page_id, "homepage"); ?> "><a href="<?php echo base_url(); ?> homepage">Homepage</a></li> <li class="<?php echo isActive($page_id, "example"); ?> "><a href="<?php echo base_url(); ?> example">Example</a></li> </ul> </nav>
<td><small class="wojo label"><?php echo $row->abbr; ?> </small></td> <td data-sort-value="<?php echo $row->home; ?> "><?php echo isActive($row->home); ?> </td> <td data-sort-value="<?php echo $row->active; ?> "><?php echo isActive($row->active); ?> </td> <td><?php echo $row->sorting; ?> </td> <td data-editable="true" data-set='{"type": "cntvat", "id": <?php echo $row->id; ?> ,"key":"vat", "path":""}'><?php echo $row->vat; ?> </td> <td><a href="index.php?do=countries&action=edit&id=<?php echo $row->id;
<ul class="nav navbar-nav"> <li class="<?php echo isActive($pageName,"home")?>"><a href="<?php echo base_url()?>">Home</a></li> <li class="<?php echo isActive($pageName,"about")?>"><a href="<?php echo base_url()?>">Player Portfolio</a></li> <li class="<?php echo isActive($pageName,"about")?>"><a href="<?php echo base_url()?>">Assembly</a></li> </ul>
echo base_url(); ?> automatictabs">Automatic Tabs</a></li> <li class="<?php echo isActive($page_id, "portfolio"); ?> "><a href="<?php echo base_url(); ?> portfolio">Portfolio</a></li> <li class="<?php echo isActive($page_id, "helpers"); ?> "><a href="<?php echo base_url(); ?> helpers">Helpers</a></li> <li class="<?php echo isActive($page_id, "Feedreader"); ?> "><a href="<?php echo base_url(); ?> feedreader">Feedreader</a></li> </ul> </li> </ul> </div><!--/.navbar-collapse --> </div> </nav>
} } ?> <!DOCTYPE html> <html> <head> <title>Voting System - Ballot</title> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" /> <link href="misc/css/index.css" rel="stylesheet" media="screen" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link href="bootsrap/assets/css/bootstrap-responsive.css" rel="stylesheet" /> </head> <body> <?php if (in_array($_SESSION['studID'], get_voters($_GET['bid'])) || get_status($_GET['bid']) === '1' && $_SESSION['userGroup'] !== 'admin' || isActive($_GET['bid']) === '0' && $_SESSION['userGroup'] !== 'admin') { ?> <div class="container-fluid" id="base"> <div class="row-fluid"> <div class="span8 offset2" id="content" style="position: fixed; top: 35%; max-height: 200px;"> <p> <br /> <br /> <h1 style="text-align: center;">This ballot is no longer available for you.</h1> </p> </div> </div> </div> <?php
">Link</a></li> <li class="<?php echo isActive($pageName, "about"); ?> "><a href="<?php echo base_url(); ?> ">Link</a></li> <li class="<?php echo isActive($pageName, "about"); ?> "><a href="<?php echo base_url(); ?> ">Link</a></li> <li class="<?php echo isActive($pageName, "about"); ?> "><a href="<?php echo base_url(); ?> ">Link</a></li> <li class="<?php echo isActive($pageName, "about"); ?> "><a href="<?php echo base_url(); ?> ">Link</a></li> </ul>
qoolinfo('langcode'); ?> ", remove_script_host : false, relative_urls : false, theme : "simple", width:'1px', height:'1px', }); $("#"+editor_id).hide(); }); </script> <?php } if (isActive('loadEditor')) { ?> <script type="text/javascript" src="<?php qoolinfo('home'); ?> /lib/js/editor/jquery.tinymce.js"></script> <script type="text/javascript"> $().ready(function() { $('textarea.editor').tinymce({ // Location of TinyMCE script script_url : '<?php qoolinfo('home'); ?> /lib/js/editor/tiny_mce.js',
private function addSolver($id) { global $db; global $team; if (isActive()) { $this->solvers[] = $id; } $this->realsolvers[] = $id; $solvers = implode(",", $this->solvers); $realsolvers = implode(",", $this->realsolvers); if (count($this->realsolvers) === 1) { $this->openNext(); } $sql = "UPDATE `tasks` SET `solvers`=?, `realsolvers`=? WHERE `id`=?"; $stmt = $db->prepare($sql); $stmt->bind_param("ssi", $solvers, $realsolvers, $this->id); $stmt->execute(); $stmt->close(); $nSolvers = max(4 - count($this->realsolvers), 0); $points = $this->point + $nSolvers * 2; $team->updScore(); if (isActive()) { $team->score += $points; } $team->realscore += $points; $team->update(); }