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


PHP loadview函数代码示例

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


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

示例1: array

<?php

$data = array();
$data['title'] = "Video";
$data['template'] = "main_home/video_view";
loadview("layout", $data);
开发者ID:quangphpd00900,项目名称:maytinh,代码行数:6,代码来源:video.php

示例2: array

    // send the output buffer
    @ob_end_flush();
} else {
    $admin_template = $template = array();
    $admin_template['content'] = ob_get_contents();
    @ob_end_clean();
    // build the admin interface (with menu)
    $admin_template['fpbx_types'] = $types;
    $admin_template['fpbx_type_names'] = $type_names;
    $admin_template['fpbx_menu'] = $fpbx_menu;
    $admin_template['fpbx_usecategories'] = $amp_conf['USECATEGORIES'];
    $admin_template['fpbx_type'] = $type;
    $admin_template['display'] = $display;
    // set the language so local module languages take
    set_language();
    // then load it and put it into the main freepbx interface
    $template['content'] = loadview('freepbx_admin', $admin_template);
    $template['use_nav_background'] = true;
    // setup main template
    $template['module_name'] = $module_name;
    $template['module_page'] = $module_page;
    if ($amp_conf['SERVERINTITLE']) {
        $template['title'] = $_SERVER['SERVER_NAME'] . " FreePBX administration";
    } else {
        $template['title'] = "FreePBX administration";
    }
    $template['amp_conf'] =& $amp_conf;
    $template['reload_needed'] = check_reload_needed();
    $template['benchmark_starttime'] = $benchmark_starttime;
    showview('freepbx', $template);
}
开发者ID:hardikk,项目名称:HNH,代码行数:31,代码来源:config.php

示例3: loadview

<link href="<?php 
echo base_url;
?>
public/admin/styles/admin-white.css" rel="stylesheet" type="text/css" />
<link href="<?php 
echo base_url;
?>
public/admin/styles/styles.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php 
echo base_url . "public/images/favicon.ico";
?>
" />
<?php 
loadview("scripts");
?>
</head>

<body>
	<div id="wrapper">
		<?php 
loadview("header", $data);
?>
        <?php 
loadview("content", $data);
?>
    </div>
    	<?php 
loadview("bottom", $data);
?>
</body>
</html>
开发者ID:quangphpd00900,项目名称:maytinh,代码行数:31,代码来源:layout.php

示例4: session_start

<?php

session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo $data['title'];
?>
</title>
<meta name="keywords" content="WEBSITE ĐIỆN TOÁN ĐÁM MÂY" />
<meta name="description" content="WEBSITE ĐIỆN TOÁN ĐÁM MÂY" />
<base href="<?php 
echo base_url;
?>
" />
<?php 
loadview("scripts");
?>

</head>
<body>
	<?php 
loadview("header", $data);
loadview("content", $data);
loadview("buttom", $data);
?>
</body>
</html>
开发者ID:quangphpd00900,项目名称:maytinh,代码行数:31,代码来源:layout.php

示例5: switch

/* </functions> */
$action = Functions::get('action');
Functions::checkRights(__FILE__, $action, Functions::get('token'));
switch ($action) {
    case 'fields_info':
        $data = infoFields();
        break;
    case 'new':
        $data = addDrink();
        break;
    case 'update':
        $data = updateDrink(Functions::get('id'));
        break;
    case 'info':
        $data = infoDrink(Functions::get('id'));
        break;
    case 'delete':
        $data = deleteDrink(Functions::get('id'));
        break;
    case 'customer_history':
        $data = getCustomerHistory(Functions::get('id'));
        break;
    case 'list':
        $data = listDrinks();
        break;
    default:
        Functions::setResponse(400);
}
/* </controller> */
loadview('json', $data);
开发者ID:Babaritech,项目名称:babar2,代码行数:30,代码来源:drink.php

示例6: Helper_Validate

<?php

$data['error'] = "";
if (isset($_POST['ok'])) {
    $u = $p = "";
    $help = new Helper_Validate();
    $help->check_empty($_POST['txtuser'], $lang['err_empty_user']);
    $help->check_empty($_POST['txtpass'], $lang['err_empty_pass']);
    $help->notmatches($_POST['txtpass'], $_POST['txtpass2'], $lang['err_notmatches']);
    $help->user_registered($_POST['txtuser'], $lang['err_user_registered']);
    if ($help->valid() == FALSE) {
        $data['error'] = $help->getmess();
    } else {
        $u = $_POST['txtuser'];
        $p = $_POST['txtpass'];
        $l = $_POST['level'];
        $muser = new Model_User();
        $data_insert = array("username" => $u, "password" => $p, "level" => $l);
        $muser->insert_user($data_insert);
        redirect("index.php?module=user&act=list");
    }
}
loadview("user/add_view", $data);
开发者ID:nhan7285,项目名称:php7285,代码行数:23,代码来源:add.php

示例7: loadview

<script type="text/javascript" src="<?php 
echo base_url . "public/js/wowslider.js";
?>
"></script>
<script type="text/javascript" src="<?php 
echo base_url . "public/js/script_wow.js";
?>
"></script>

	<?php 
loadview($data['template'], $data);
?>
     <div id="content_slide_bottom">
      	<img src="<?php 
echo base_url . "public/images/";
?>
banner_bottom.png" alt="" />
      </div>
    </div>
  </div>
</div>
开发者ID:quangphpd00900,项目名称:maytinh,代码行数:21,代码来源:content.php

示例8: array

    if ($_POST['txtuser'] == NULL) {
        $data['error'][] = "Please enter your username";
    } else {
        $u = $_POST['txtuser'];
    }
    if ($_POST['txtpass'] != $_POST['txtpass2']) {
        $data['error'][] = "Your password and repassword are not matches";
    } else {
        if ($_POST['txtpass'] != "") {
            $p = $_POST['txtpass'];
        } else {
            $p = "none";
        }
    }
    $l = $_POST['level'];
    if ($u && $p && $l) {
        if ($muser->check_username($u, $id) == FALSE) {
            $data['error'][] = "Your username has been registered, please try again";
        } else {
            $data_update = array("username" => $u, "level" => $l);
            if ($p != "none") {
                $data_update['password'] = $p;
            }
            $muser->update_user($data_update, $id);
            redirect("index.php?module=user&act=list");
        }
    }
}
$data['info'] = $muser->getuser($id);
loadview("user/edit_view", $data);
开发者ID:nhan7285,项目名称:php7285,代码行数:30,代码来源:edit.php

示例9: Model_User

<?php

$muser = new Model_User();
$helper = new Helper_Paging($config, $muser);
$data["users"] = $muser->listuser();
$data['pages'] = $helper->getPageLinks('index.php?module=user&act=list');
loadview("user/list_view", $data);
开发者ID:nhan7285,项目名称:php7285,代码行数:7,代码来源:list.php

示例10: Model_User

<?php

/**
 * Created by PhpStorm.
 * User: MSI
 * Date: 12-May-16
 * Time: 2:36 PM
 */
$mUser = new Model_User();
$listUser = $mUser->listAll();
loadview("user/list", $listUser);
开发者ID:d10cn2btt,项目名称:studyBtt,代码行数:11,代码来源:list.php


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