本文整理汇总了PHP中main::display方法的典型用法代码示例。如果您正苦于以下问题:PHP main::display方法的具体用法?PHP main::display怎么用?PHP main::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类main
的用法示例。
在下文中一共展示了main::display方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main
<?php
define('root_dir', "./");
include_once root_dir . "classes/main.class.php";
$main = new main();
$main->show_msg();
$vars = array("page" => array("root_dir" => root_dir, "msg" => $main->msg, "msg_cls" => $main->msg_cls, "title" => "Register on CharBhar"));
$main->display(root_dir . "pages/register.ta", $vars, false);
示例2: main
<?php
define('root_dir', "./");
include_once "classes/main.class.php";
include_once "classes/user.class.php";
$main = new main();
$main->show_msg();
$user_info = new user();
$user = $user_info->get_basic_info();
$sub_links = '';
$main_content = '<div class="row-fluid">
<h3>Hello ' . $user['name'] . ', our cashier here to </h3>
<hr/>
<div class="span12 marginl0 hrdashed">
<div class="row-fluid">
<div class="span6 alignC"><a href="http://www.payumoney.com/store/buy/pazlet-cashier" ><button class="btn btn-large btn-warning">Add Balance to your Pazlet A/C</button></a></div>
<div class="span6 alignR"><button class="btn btn-large btn-danger">Transfer Balance to your Bank</button></div>
</div>
</div>
</div>';
$vars = array('page' => array('root_dir' => root_dir, 'msg' => $main->msg, 'msg_cls' => $main->msg_cls, 'metad' => "Activate your triaas account. Activate by mobile authentication code. Activate and start to play on triaas", 'metak' => "triaas activation, account activation, a/c activation, activate via mobile, authentication code on mobile, last step of triaas registration", 'sub_links' => $sub_links, 'main_content' => $main_content));
$main->display('pages/cmn-page2.ta', $vars, true);
示例3: config
require_once 'classes/base/requires.php';
$config = new config();
$config = new db();
$auth_url = "https://www.facebook.com/dialog/oauth?client_id=" . $config->fbAppId . "&redirect_uri=" . urlencode($config->canvas_page);
$signed_request = $_REQUEST["signed_request"];
list($encoded_sig, $payload) = explode('.', $signed_request, 2);
$data = json_decode(base64_decode(strtr($payload, '-_', '+/')), true);
if (empty($data["user_id"])) {
echo "<script> top.location.href='" . $auth_url . "'</script>";
} else {
echo "Welcome User: " . $data["user_id"];
}
// Initialize a Facebook instance from the PHP SDK
$facebook = new Facebook($config->fbconfig);
$user_id = $facebook->getUser();
//check new user
$res = $db->raw('SELECT * FROM users WHERE fbid = "' . $user_id . '" limit 1');
$data = $db->res2data($res);
if (empty($data)) {
// add to db
$db->insert('users', array('fbid' => $user_id));
}
//require_once ('controllers/mainController.php');
$main = new main();
$main->display();
if (!empty($data) && $data[0]['promoter'] == 'True') {
//show admin panel
//require_once ('controllers/adminController.php');
$main = new admin();
$main->display();
}
示例4: main
<?php
include_once "./classes/main.class.php";
$main = new main();
$main->show_msg();
session_start();
if (isset($_SESSION['upldmin_id'])) {
header("Location:./home.php");
exit;
} else {
$vars = array("page" => array("metad" => "Upload Puzzles.", 'title' => "Login to Upload Puzzle Portal.", 'msg' => $main->msg, 'msg_cls' => $main->msg_cls));
$main->display("./pages/upldmin-login.ta", $vars, true);
}
示例5: sms
$activation_time = mysql_real_escape_string($activation_time);
if ($activation_time == 1) {
$dbh->select("tmp_users", "mobile", "id='{$reg_id}'", "none", "none");
$mobile = $dbh->select_res['mobile'];
$main_content = "<div class='row-fluid'><div class='span12'><h1>Activate your account:</h1>\n\t\t\t<p>We have sent an activation code to your registered mobile number " . $mobile . ". Please activate your a/c by submitting activation code.</p>\n\t\t\t<form action='scripts/account-activation.php' method='post'>\n\t\t\t\t<fieldset>\n\t <div class='control-group'>\n\t <div class='control'>\n\t \t<input type='hidden' name='reg_id' value='" . $reg_id . "'>\n\t \t<label>Activation Code:</label> <input type='text' placeholder='Activation code' name='activation_code'/>\n\t \t<input type='submit' value='Activate Now' class='btn btn-success'/>\n\t \t</div>\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t\t<p>If you don't recieved activation code within few minutes than first check your mobile no and <a href='account_activation.php?reg_id=" . $reg_id . "&time=2'> click here </a>to send again. </p>\n\t\t\t</div>\n\t\t\t</div>\n\t\t";
} else {
if ($activation_time > 1) {
$dbh->select("tmp_users", "first_name, mobile, activation_code", "id='{$reg_id}'", "none", "none");
if ($dbh->sel_count_row > 0) {
$mobile = $dbh->select_res['mobile'];
$reg_code = $dbh->select_res['activation_code'];
$f_name = $dbh->select_res['first_name'];
include_once "./classes/sms.class.php";
$sms = new sms();
// $sms->send_authcode($mobile, $f_name, $reg_code);
} else {
echo "Error";
}
//
//
//
$main_content = "<div class='row-fluid'><div class='span12'><h1>Activate your account:</h1>\n\t\t\t<p>We have sent an activation code to your registered mobile number " . $mobile . ". Please activate your a/c by submitting activation code.</p>\n\t\t\t<form action='scripts/account-activation.php' method='post'>\n\t\t\t\t<fieldset>\n\t <div class='control-group'>\n\t <div class='control'>\n\t \t<input type='hidden' name='reg_id' value='" . $reg_id . "'>\n\t \t<label>Activation Code:</label> <input type='text' placeholder='Activation code' name='activation_code'/>\n\t \t<input type='submit' value='Activate Now' class='btn btn-success'/>\n\t \t</div>\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t\t<p>If you don't recieved activation code within few minutes than first check your mobile no and <a href='account_activation.php?reg_id=" . $reg_id . "&time=2'> click here </a>to send again. </p>\n\t\t\t</div>\n\t\t\t</div>\n\t\t";
}
}
} else {
$sub_head = '<img src="' . root_dir . 'images/SMS-Icon2.png">';
$main_content = "<div class='row-fluid'><div class='span12 alignC'><h1 class='alignC'>Account activation :</h1><hr/>\n\t\t\t<form action='scripts/account-activation.php' method='post' class='form form-inline'>\n\t\t\t\t<fieldset>\n\t <div class='control-group'>\n\t <label>Mobile:</label> <input type='text' placeholder='Your registered Mobile No.' name='mobile'/> \n\t <label>Email :</label> <input type='text' placeholder='Your registered Email address' name='email'/>\n\t <input type='submit' value='Get Activation Code' class='btn'/>\n\t \n\t </div>\n\t\t\t\t</fieldset>\n\t\t\t</form>\n\t\t\t</div>\n\t\t\t<div class='span6 marginl0 alignC hrdashed'>\n\t\t\t\t<hr/>\n\t\t\t\t<a href='./register.php'><button class='btn btn-primary'>Create New Account</button></a>\n\t\t\t</div>\n\t\t\t<div class='span6 marginl0 alignC hrdashed'>\n\t\t\t\t<hr/>\n\t\t\t\t<a href='./login.php'><button class='btn btn-info'>Login</button></a>\n\t\t\t</div>\n\t\t\t</div>\n\t\t\t<br/>\n\t\t";
}
$vars = array('page' => array('root_dir' => root_dir, 'msg' => $main->msg, 'msg_cls' => $main->msg_cls, 'metad' => "Activate your triaas account. Activate by mobile authentication code. Activate and start to play on triaas", 'metak' => "triaas activation, account activation, a/c activation, activate via mobile, authentication code on mobile, last step of triaas registration", 'sub_head' => $sub_head, 'main_content' => $main_content));
$main->display('pages/cmn-page.ta', $vars);
示例6: main
<?php
include_once "./classes/main.class.php";
$main = new main();
$main->show_msg();
session_start();
$vars = array("page" => array("metad" => "Upload Puzzles.", 'title' => "Login to Upload Puzzle Portal.", 'msg' => $main->msg, 'msg_cls' => $main->msg_cls));
$main->display("./pages/home.ta", $vars, true);
示例7: main
<?php
define('root_dir', "./");
include_once root_dir . "classes/main.class.php";
include_once root_dir . "classes/game.class.php";
$main = new main();
$game = new game();
$main->show_msg();
$game->get_content();
$vars = array("page" => array("root_dir" => root_dir, "msg" => $main->msg, "msg_cls" => $main->msg_cls, "title" => "Pazlet: the Game of Mind"), "table" => array('puzzle1' => $game->a_puzzle, 'puzzle2' => $game->b_puzzle, 'puzzle3' => $game->c_puzzle, 'puzzle4' => $game->d_puzzle, 'puzzle5' => $game->e_puzzle, 'game_id' => $game->game_id));
$main->display(root_dir . "pages/table.ta", $vars, true);