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


PHP Load::view方法代码示例

本文整理汇总了PHP中Load::view方法的典型用法代码示例。如果您正苦于以下问题:PHP Load::view方法的具体用法?PHP Load::view怎么用?PHP Load::view使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Load的用法示例。


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

示例1: delete

 function delete($id)
 {
     $article_title = $this->article->getArticleTitleById($id);
     $result = $this->article->delete($id) ? 'Article <b>' . $article_title . '</b> deleted' : 'Error deleting the article';
     $data = array('title' => 'All articles', 'notice' => array('type' => 'success', 'message' => $result));
     Load::view('notice.php', $data);
 }
开发者ID:tucuta,项目名称:CMS-1,代码行数:7,代码来源:article.php

示例2: display

 function display()
 {
     Load::model('transaction');
     $Transaction = new Transaction();
     $param['data'] = $Transaction->viewAll();
     Load::view('request', $param);
 }
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:7,代码来源:request.php

示例3: codes

 function codes()
 {
     Load::model('user');
     $User = new User();
     $param['codes'] = $User->get_codes();
     Load::view('codes', $param);
 }
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:7,代码来源:account.php

示例4: display

 function display()
 {
     Load::model('company');
     $Company = new Company();
     $param['income'] = $Company->get_income();
     $param['expense'] = $Company->get_expense();
     //$param['onhand'] = $this->get_cashonhand();
     //$param['aff_money'] = $this->get_affmoney();
     Load::view('business-status', $param);
 }
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:10,代码来源:bstatus.php

示例5: FIRST

 function FIRST()
 {
     Load::model('geology');
     $Geology = new Geology();
     $result = $Geology->get_summary();
     include 'ewallet.php';
     $Ewallet = new Ewallet();
     $this->param['weekly'] = $Ewallet->get_weekly($result['OUT']);
     Load::view('dashboard', $this->param);
 }
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:10,代码来源:dashboard.php

示例6: forgotpassword

 public function forgotpassword()
 {
     if (isset($_POST['email'])) {
         $param['title'] = "Thank you very much!";
         $param['content'] = "You should now recieve a password reset link in your email. <br /> Haven't recieved the email? Try to resend again. <br /> <hr />";
         Load::view('thankyou', $param);
     }
     Load::view('forgotpassword');
     // always shows :)
 }
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:10,代码来源:front.php

示例7: init

 public function init()
 {
     $this->config_number = isset($_GET['config']) ? $_GET['config'] : 'none';
     Load::view('header');
     switch ($this->config_number) {
         case '1':
             Load::view('config1');
             break;
         case '2':
             Load::view('formcreator');
             break;
         default:
             Load::view('initial');
             break;
     }
 }
开发者ID:beingsane,项目名称:JoomlaComponentCreator,代码行数:16,代码来源:initialize.php

示例8: generate

 public static function generate()
 {
     //генерируем компонент
     $output_content = self::generateComponent();
     //генерируем содержимое модулей:
     //получаем позиции модулей из шаблона
     $params = (new Db())->getOne('SELECT `params` FROM ##extensions WHERE `name`=?s', [SConfig::SITE_TEMPLATE]);
     $positions = Json::decode($params)['module_positions'];
     $modules_output = [];
     //генерируем вывод модулей каждой позиции
     foreach ($positions as $position) {
         $modules_output[$position] = self::generateModule($position);
     }
     //если страница загружается методом AJAX
     if (isset($_GET['_ajax_mode_'])) {
         echo Json::encode([self::generateHeader(true), $output_content, $modules_output, self::debugInfo()]);
     } else {
         //иначе подключаем ШАБЛОН
         Load::view(SITE_ROOT . '/templates/' . SConfig::SITE_TEMPLATE . '/index.php', ['content' => $output_content, 'modules' => $modules_output, 'header' => self::generateHeader(), 'debug' => self::debugInfo()]);
     }
 }
开发者ID:pavel78779,项目名称:my_cms,代码行数:21,代码来源:Document.php

示例9: array

<div class="col-sm-9 col-md-10 main">

<!--  Start Editing Here  -->
<div role="tabpanel">
	<?php 
Load::view('partials/ewallet-menu', array('page' => 2));
?>

<br /><br />
<div class="row">
	<div class="col-md-6">
		<form action="" method="POST">
			<input type="hidden" name="amount" id="amount" />
			<h3>Add Account Details</h3>

			<div class="form-group">
			    <label for="acc_type">Account Type</label>
			    <select class="form-control" name="acc_type" id="acc_type">
					<option val="">-</option>
					<option val="Ultimate">Ultimate</option>
					<option val="Premier">Premier</option>
					<option val="Basic">Basic</option>
				</select>
			</div>
			<div class="form-group">
			    <label for="pid">Placement ID</label>
			    <input class="form-control" type="text" name="pid" />
			</div>
			<div class="form-group">
			    <label for="position">Position</label>
			    <select class="form-control" name="position">
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:31,代码来源:ewallet-addaccount.php

示例10: array

<div class="col-sm-9 col-md-10 main">

<!--  Start Editing Here  -->

<div role="tabpanel">
<?php 
Load::view('partials/account-menu', array('page' => 1));
?>

	<div style="max-width:400px;">
		<form action="" method="POST">
			<div class="form-group">
			    <label for="btnphoto">Your Picture</label><br />
			    <img class="upload_prev" src="<?php 
echo SITE_URL;
?>
/uploads/<?php 
echo $photo;
?>
" width="300" />
			    <br /><br />
			    <input type="file" class="" id="btnphoto" name="file" />
			    <input type="hidden" name="photo" id="photo" />
				<div id="progress" class="progress">
			        <div class="progress-bar progress-bar-success"></div>
			    </div>		
			</div>
			<div class="form-group">
			    <label for="username">Username</label>
			    <input type="text" class="form-control" name="username" value="<?php 
echo $username;
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:31,代码来源:info.php

示例11: array

<div class="col-sm-9 col-md-10 main">

<!--  Start Editing Here  -->
<div role="tabpanel">
	<?php 
Load::view('partials/geneology-menu', array('page' => 1));
?>

<br /><br />
	<div class="geo-row g-1">
		<div class="geo-center">
			<div class="item"><div class="box"><img src="<?php 
echo SITE_URL;
?>
/uploads/thumbnail/<?php 
echo $uID_avatar_1;
?>
" /></div><span class="tail"></span></div>
		</div>
	</div>
	<div class="geo-row g-2">
		<div class="geo-center">
			<div class="item"><span class="head"></span><?php 
Geneology::echo_box($uID_avatar_2, $uID_2);
?>
<span class="tail"></span></div>
			<div class="item"><span class="head"></span><?php 
Geneology::echo_box($uID_avatar_3, $uID_3);
?>
<span class="tail"></span></div>
		</div>
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:31,代码来源:geneology-graphical.php

示例12: Db

<?php

$form_id = Request::getUrlSegment(2, true, Validator::INT);
$form_data = (new Db())->getRow('SELECT * FROM `##feedback_forms` WHERE `id`=?i', $form_id, MYSQLI_ASSOC);
if (!$form_data) {
    Router::set404();
}
$fields = (new Db())->getAll('SELECT * FROM `##feedback_fields` WHERE `form_id`=?i AND `published`=1 ORDER BY `ordering`', $form_data['id'], MYSQLI_ASSOC);
if (Request::getUrlSegment(3, false) === 'submit') {
    Load::file(__DIR__ . '/submit.php', ['form_data' => $form_data, 'fields' => $fields]);
} else {
    //отображаем форму
    Document::addCss(SConfig::SITE_MAIN_URI . 'components/feedback/client/style.css');
    Document::addJs(SConfig::SITE_MAIN_URI . 'components/feedback/client/script.js');
    Document::setTitle($form_data['name']);
    session_start();
    if (isset($_SESSION['feedback_send_status'])) {
        echo '<div class="system-notice ' . $_SESSION['feedback_send_status'][0] . '">' . $_SESSION['feedback_send_status'][1] . '</div>';
        unset($_SESSION['feedback_send_status']);
    }
    session_write_close();
    Load::view(__DIR__ . '/view.php', ['data' => $form_data, 'fields' => $fields, 'params' => Request::getItemParams()]);
}
开发者ID:pavel78779,项目名称:my_cms,代码行数:23,代码来源:form.php

示例13: audiobooks

 function audiobooks()
 {
     Load::view('library-audiobooks');
 }
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:4,代码来源:library.php

示例14:

<style>
#content{
	margin-left: 200px;
}
</style>
<div id="content">

	<?php 
Load::view('partials/library-menu');
?>
	
	[ library videos ]
</div>
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:13,代码来源:library-videos.php

示例15: end

 function end()
 {
     // always called last
     Load::view('partials/admin-footer');
 }
开发者ID:etuyco,项目名称:v2.inlight-marketing,代码行数:5,代码来源:admin.php


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