当前位置: 首页>>代码示例>>PHP>>正文


PHP set_active函数代码示例

本文整理汇总了PHP中set_active函数的典型用法代码示例。如果您正苦于以下问题:PHP set_active函数的具体用法?PHP set_active怎么用?PHP set_active使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了set_active函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: active

function active($con, $table, $col, $b)
{
    for ($i = 0; $i < 220; $i++) {
        if (isset($_POST["date{$i}"])) {
            set_active($con, $table, $b, $col, $i);
            echo $i . '<br>';
        }
    }
}
开发者ID:esther-b,项目名称:ABStudent,代码行数:9,代码来源:functphp.php

示例2: sample

 public function sample()
 {
     add_page_info("title", " Home " . ($this->type ? "- " . $this->type : ""));
     add_page_info("stylesheet", "main", "main-style");
     add_page_info("javascript", "main", "main-script");
     add_page_content("container", "container");
     add_page_content("top_nav", 'sample/top_nav/content');
     add_page_content("user_nav", 'sample/top_nav/user_nav/content');
     add_page_content("page_header", 'sample/page_header/content');
     add_page_content("page_top_menu", 'sample/page_top_menu/content');
     add_page_content("page_content", 'sample/page_content/content');
     add_page_content("left_sidebar", 'sample/page_content/left_sidebar/content');
     add_page_content("right_sidebar", 'sample/page_content/right_sidebar/content');
     add_page_content("page_footer", 'sample/page_footer/content');
     set_active("collapse_side_nav_link", true);
     $this->load->view('template/frame', $this->data);
 }
开发者ID:shemehs,项目名称:shine19395,代码行数:17,代码来源:home.php

示例3: isset

<?php

$curriculuminfo = isset($curriculuminfo) ? $curriculuminfo : false;
if ($curriculuminfo) {
    $breadcrumb = array("name" => "bdcieditlink", "text" => '<span class="glyphicon glyphicon-edit"></span> Edit', "url" => "dashboard/curriculums/" . ($curriculuminfo ? $curriculuminfo->getCurriculumid() : 0) . "/edit");
    add_breadcrumb($breadcrumb);
}
set_active("bdcieditlink", true);
add_page_info("stylesheet", "spinner/bootstrap-spinner", "spinner-style");
add_page_info("javascript", "spinner/jquery.spinner", "spinner-script");
add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/info/edit/page_content/content");
add_page_content("dashboard_curriculums_content_title", "Curriculum information");
set_active("dashboard_curriculums_info", true);
set_hide_this("selectCurriculuminformationform", true);
set_has_value("page_content_heading", "Curriculum Information");
set_has_value("curriculum_info_title", isset($curriculum_info) ? $curriculum_info->getCurriculumname() : "No Curriculum Selected");
set_link_url("backlink", site_url("dashboard/curriculums/" . ($curriculuminfo ? $curriculuminfo->getCurriculumid() : 0)));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
$this->load->view("management/dashboard/curriculums/info/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:20,代码来源:view.php

示例4: set_active

<?php

set_active("dashboard_curriculums_settings_yearlevels", true);
$breadcrumb = array("name" => "bdcsyearlevelslink", "text" => 'Year levels', "uri" => "dashboard/curriculums/settings/yearlevels");
add_breadcrumb($breadcrumb);
$this->load->view("management/dashboard/curriculums/settings/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:6,代码来源:view.php

示例5: set_active

<?php

set_active("bdcisubjectslink", true);
add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/info/subjects/page_content/content");
add_page_content("dashboard_curriculums_content_title", "Curriculum Subjects");
add_page_content("page_action_menu", "management/dashboard/curriculums/info/subjects/page_action_menu/content");
add_page_info("javascript", "select-all-checkbox", "select-all-checkbox-script");
set_link_url("backlink", site_url("dashboard/curriculums/" . ($curriculuminfo ? $curriculuminfo->getCurriculumid() : 0)));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
set_link_url("refreshlink", current_url() . (has_value("filtercurriculumsubjects") ? "?filter=" . get_value("filtercurriculumsubjects") . (has_value("fcurriculumsubjectsyearlevel") ? "&fyearlevel=" . get_value("fcurriculumsubjectsyearlevel") : "") . (has_value("fcurriculumsubjectssemester") ? "&fsemester=" . get_value("fcurriculumsubjectssemester") : "") . (has_value("searchcurriculumsubjects") ? "&search=" . get_value("searchcurriculumsubjects") . (has_value("searchcurriculumsubjectskey") ? "&searchkey=" . get_value("searchcurriculumsubjectskey") : "") : "") : (has_value("searchcurriculumsubjects") ? "?search=" . get_value("searchcurriculumsubjects") . (has_value("searchcurriculumsubjectskey") ? "&searchkey=" . get_value("searchcurriculumsubjectskey") : "") : "")));
$this->load->view("management/dashboard/curriculums/info/subjects/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:12,代码来源:pre_view.php

示例6: set_active

    ?>
">
					            	<span class="caret"></span>
					            </a>
					            <ul class="dropdown-menu">
					        		<li class="<?php 
    echo set_active('profile');
    ?>
 ?>">
					        			<a href="profile.php?id=<?php 
    echo get_session('user_id');
    ?>
">Mon profil</a>
					        		</li>
					        		<li class="<?php 
    echo set_active('modify_profile');
    ?>
 ?>">
					        			<a href="modify_profile.php?id=<?php 
    echo get_session('user_id');
    ?>
">Modifier mon profil</a>
					        		</li>
					            	<li>
					        			<a href="logout.php">Déconnexion</a>
					        		</li>
					            </ul>
				            </li>
			        		<li class="dropdown">
					            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
					            	Langue
开发者ID:Nynnii,项目名称:syn,代码行数:31,代码来源:_nav.php

示例7: add_page_content

<?php

add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/settings/page_content/container");
add_page_content("dashboard_curriculums_content_title", "Curriculum Settings");
add_page_content("curriculums_settings_sub_mennu", "management/dashboard/curriculums/settings/page_sub_menu/content");
set_link_url("backlink", site_url("dashboard/curriculums"));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
set_active("settingslink", true);
$breadcrumb = array("name" => "bdcsettingslink", "text" => 'Settings', "uri" => "dashboard/curriculums/settings");
add_breadcrumb($breadcrumb);
$this->load->view("management/dashboard/curriculums/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:12,代码来源:view.php

示例8: add_page_content

<?php

add_page_content("curriculum_settings_content", "management/dashboard/curriculums/settings/types/add/page_content/content");
$breadcrumb = array("name" => "bdcstaddlink", "text" => 'Add', "uri" => "dashboard/curriculums/settings/types/add");
add_breadcrumb($breadcrumb);
set_active("bdcstaddlink", true);
$this->load->view("management/dashboard/curriculums/settings/types/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:7,代码来源:view.php

示例9: add_page_content

<?php

add_page_content("curriculum_settings_content", "management/dashboard/curriculums/settings/types/info/edit/page_content/content");
$curriculumtypeinfo = isset($curriculumtypeinfo) ? $curriculumtypeinfo : false;
$breadcrumb = array("name" => "bdcstieditlink", "text" => "Edit", "uri" => "dashboard/curriculums/settings/types/" . ($curriculumtypeinfo ? $curriculumtypeinfo->getCurriculumtypeid() : 0) . "/edit");
add_breadcrumb($breadcrumb);
set_active("bdcstieditlink", true);
$this->load->view("management/dashboard/curriculums/settings/types/info/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:8,代码来源:view.php

示例10: add_page_info

<?php

add_page_info("stylesheet", "spinner/bootstrap-spinner", "spinner-style");
add_page_info("javascript", "spinner/jquery.spinner", "spinner-script");
$curriculuminfo = isset($curriculuminfo) ? $curriculuminfo : false;
$curriculumsubjectinfo = isset($curriculumsubjectinfo) ? $curriculumsubjectinfo : false;
set_active("bdcisclasstypeslink", true);
set_link_url("backlink", site_url("dashboard/curriculums/" . ($curriculuminfo ? $curriculuminfo->getCurriculumid() : 0) . "/subjects/" . ($curriculumsubjectinfo ? $curriculumsubjectinfo->getCurriculumsubjectid() : 0)));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
add_page_info("javascript", "select-all-checkbox", "select-all-checkbox-script");
//add_page_content("page_action_menu","management/dashboard/curriculums/info/subjects/info/page_action_menu/content");
add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/info/subjects/info/page_content/content");
add_page_content("dashboard_curriculums_content_title", "Curriculum subject information");
$this->load->view("management/dashboard/curriculums/info/subjects/info/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:15,代码来源:pre_view.php

示例11: array

<?php

$breadcrumb = array("name" => "bdclistlink", "text" => 'List', "uri" => "dashboard/curriculums/list");
add_breadcrumb($breadcrumb);
set_active("bdclistlink", true);
$this->load->view("management/dashboard/curriculums/list/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:6,代码来源:pre_view.php

示例12: add_page_content

<?php

add_page_content("curriculum_settings_content", "management/dashboard/curriculums/settings/types/page_content/content");
set_active("bdcstypeslink", true);
$this->load->view("management/dashboard/curriculums/settings/types/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:5,代码来源:pre_view.php

示例13: add_page_info

<?php

add_page_info("stylesheet", "spinner/bootstrap-spinner", "spinner-style");
add_page_info("javascript", "spinner/jquery.spinner", "spinner-script");
$curriculuminfo = isset($curriculuminfo) ? $curriculuminfo : false;
$curriculumsubjectinfo = isset($curriculumsubjectinfo) ? $curriculumsubjectinfo : false;
if ($curriculuminfo) {
    $breadcrumb = array("name" => "bdciseditlink", "text" => ' Edit ', "uri" => "dashboard/curriculums/" . ($curriculuminfo ? $curriculuminfo->getCurriculumid() : 0) . "/subjects/" . ($curriculumsubjectinfo ? $curriculumsubjectinfo->getCurriculumsubjectid() : 0) . "/edit");
    add_breadcrumb($breadcrumb);
}
set_active("bdciseditlink", true);
add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/info/subjects/info/edit/page_content/content");
add_page_content("dashboard_curriculums_content_title", "Edit Curriculum Subject");
set_link_url("backlink", site_url("dashboard/curriculums/" . ($curriculuminfo ? $curriculuminfo->getCurriculumid() : 0) . "/subjects"));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
$this->load->view("management/dashboard/curriculums/info/subjects/info/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:17,代码来源:view.php

示例14: get_group

<?php

/* ========== /mycms/admin/pages ========== */
require_once $_SERVER['DOCUMENT_ROOT'] . '/mycms/twig/lib/Twig/Autoloader.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/mycms/includes/functions.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/mycms/includes/vars.php';
$group = get_group();
Twig_Autoloader::register();
$loader = new Twig_Loader_Filesystem($_SERVER['DOCUMENT_ROOT'] . '/mycms/templates');
$twig = new Twig_Environment($loader);
$template = $twig->loadTemplate('admin/pages/index.phtml');
$params = array('projectname' => $projectname, 'main_links' => set_active(get_menu_links('main-menu', $group), 'Administration'), 'user_links' => get_menu_links('user-menu', $group), 'admin_links' => set_active(get_menu_links('administration', $group), 'Seiten'));
$template->display($params);
开发者ID:Koelli91,项目名称:mycms,代码行数:13,代码来源:index.php

示例15: get_group

<?php

/* ========== /mycms ========== */
require_once $_SERVER['DOCUMENT_ROOT'] . '/mycms/twig/lib/Twig/Autoloader.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/mycms/includes/functions.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/mycms/includes/vars.php';
$group = get_group();
Twig_Autoloader::register();
$loader = new Twig_Loader_Filesystem($_SERVER['DOCUMENT_ROOT'] . '/mycms/templates');
$twig = new Twig_Environment($loader);
$template = $twig->loadTemplate('index.phtml');
$params = array('projectname' => $projectname, 'main_links' => set_active(get_menu_links('main-menu', $group), 'Home'), 'user_links' => set_active(get_menu_links('user-menu', $group), ''));
$template->display($params);
开发者ID:Koelli91,项目名称:mycms,代码行数:13,代码来源:index.php


注:本文中的set_active函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。