本文整理汇总了PHP中template_top函数的典型用法代码示例。如果您正苦于以下问题:PHP template_top函数的具体用法?PHP template_top怎么用?PHP template_top使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了template_top函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
AUTH::require_valid_app_key('stats202', $_SESSION['user_api_key'], $_SESSION['user_stats202_app_key']);
template_top('My Offer Stats');
include_once '../top.php';
#function display_calendar($page, $show_time, $show_adv, $show_bottom, $show_limit, $show_breakdown, $show_type, $show_cpc_or_cpv = true) {
$page = '/stats202/ajax/getOfferStats.php';
$show_time = true;
$show_adv = false;
$show_bottom = true;
$show_limit = true;
$show_breakdown = false;
$show_cpc_or_cpv = false;
$show_type = false;
display_calendar($page, $show_time, $show_adv, $show_bottom, $show_limit, $show_breakdown, $show_type, $show_cpc_or_cpv);
?>
<script type="text/javascript">
loadContent('/stats202/ajax/getOfferStats.php',null);
</script>
<?php
template_bottom();
示例2: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//show the template
template_top('Hourly Overview', NULL, NULL, NULL);
?>
<div id="info">
<h2>Hourly Overview</h2>
The breakdown overview allows you to see your stats per hour average.
</div>
<?php
display_calendar('/tracking202/ajax/sort_hourly.php', true, true, true, false, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_hourly.php',null);
</script>
<?php
template_bottom();
示例3: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Spy View', NULL, NULL, NULL);
?>
<div id="info">
<h2>Spy View</h2>
Spy is a live view of visitors interacting with your affiliate campaigns.
</div>
<?php
display_calendar('/tracking202/ajax/click_history.php?spy=1', false, true, true, false, false, true, false);
?>
<script type="text/javascript">
if($('s-status-loading')) { $('s-status-loading').style.display=''; }
runSpy();
new PeriodicalExecuter(runSpy, 5);
</script>
<?php
template_bottom();
示例4: template_top
}
if (isset($_GET['delete_rotator_id'])) {
$mysql['user_id'] = $db->real_escape_string($_SESSION['user_id']);
$mysql['rotator_id'] = $db->real_escape_string($_GET['delete_rotator_id']);
$delete_sql = "DELETE FROM 202_rotators WHERE id='" . $mysql['rotator_id'] . "' AND user_id='" . $mysql['user_id'] . "'";
if (_mysqli_query($delete_sql)) {
$rule_sql = "DELETE FROM 202_rotator_rules WHERE rotator_id='" . $mysql['rotator_id'] . "'";
if (_mysqli_query($rule_sql)) {
$criteria_sql = "DELETE FROM 202_rotator_rules_criteria WHERE rotator_id='" . $mysql['rotator_id'] . "'";
if (_mysqli_query($criteria_sql)) {
$delete_success = true;
}
}
}
}
template_top('Smart Rotator', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<div class="row">
<div class="col-xs-5">
<h6>Smart Rotator & Split Testing Setup</h6>
</div>
<div class="col-xs-7">
<div class="error pull-right" id="form_erors" style="display: none;margin-top: 20px;">
<small><span class="fui-alert"></span> Hey! Make sure all field are filled.</small>
</div>
<div class="<?php
if ($error) {
echo "error";
示例5: clickserver_api_domain_list
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/clickserver_api_management.php';
AUTH::require_user();
//get all of the user data
$mysql['user_id'] = $db->real_escape_string($_SESSION['user_id']);
$user_sql = "\tSELECT \t`clickserver_api_key`\n\t\t\t\t FROM \t`202_users` \n\t\t\t\t WHERE \t`202_users`.`user_id`='" . $mysql['user_id'] . "'";
$user_result = $db->query($user_sql);
$user_row = $user_result->fetch_assoc();
if ($user_row['clickserver_api_key']) {
$clickservers = clickserver_api_domain_list($user_row['clickserver_api_key']);
}
template_top('ClickServer Management', NULL, NULL, NULL);
?>
<div class="row account">
<div class="col-xs-12">
<div class="row">
<div class="col-xs-4">
<h6>Manage Your ClickServers</h6>
</div>
<div class="col-xs-8">
<div id="response-body" style="text-align:right">
<span id="response-text"></span>
</div>
</div>
</div>
</div>
<div class="col-xs-4">
<div class="panel panel-default account_left">
示例6: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//set the timezone for the user, for entering their dates.
AUTH::set_timezone($_SESSION['user_timezone']);
//show the template
template_top('Rotators Breakdown Overview', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Rotators Breakdown Overview</h6>
<small>The breakdown overview allows you to see your rotators stats per day, per hour, or an interval that you set.</small>
</div>
</div>
<?php
display_calendar('/tracking202/ajax/sort_rotator.php', true, false, true, false, true, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_rotator.php',null);
</script>
<?php
template_bottom();
示例7: showHeader
function showHeader($total_list){
$str = '';
//goi phan template
$str .= template_top($this->title,$this->urlsearch());
if($this->quickEdit){
//phan quick edit
$str .= '<form action="quickedit.php?url=' . base64_encode($_SERVER['REQUEST_URI']) . '" method="post" enctype="multipart/form-data" name="listing">
<input type="hidden" name="iQuick" value="update">';
}
$str .= ' <table id="listing" cellpadding="5" cellspacing="0" border="1" bordercolor="' . $this->fs_border . '" width="100%" class="table">';
if($this->showid){
$str .= ' <th class="h" width="30">Stt</th>';
}
if($this->delete){
$str .= ' <th class="h check"><input type="checkbox" id="check_all" onclick="checkall(' . $total_list . ')"></th>';
}
if($this->quickEdit){
//phan quick edit
$str .= ' <th class="h"><img src="' . $this->image_path . 'save.png" onclick="document.listing.submit()" style="cursor: pointer;" border="0"></th>';
}
foreach($this->arrayLabel as $key=>$lable){
if($this->arrayShow[$key] == 0){
$str .= ' <th class="h">' . $lable . $this->urlsort($this->arrayField[$key]) . ' </th>';
}
}
return $str;
} // End function showHeader
示例8: update_needed
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//check if its the latest verison
$_SESSION['update_needed'] = update_needed();
//check to see if this user has stats202 enabled
$_SESSION['stats202_enabled'] = AUTH::is_valid_app_key('stats202', $_SESSION['user_api_key'], $_SESSION['user_stats202_app_key']);
template_top();
?>
<div class="slim">
<div class="welcome">
<table cellspacing="0" cellpadding="0" class="section">
<tr>
<td class="left" ><h2>Sponsor <a href="http://prosper202.com/advertise/" style="font-size: 10px;">(advertise)</span></h2></td>
<td><hr></td>
</tr>
</table>
<p><iframe class="advertise" src="http://prosper202.com/ads/prosper202/" scrolling="no" frameborder="0"></iframe></p>
<table cellspacing="0" cellpadding="0" class="section">
<tr>
<td class="left" ><h2>Prosper202 Development Blog</h2></td>
<td><hr></td>
</tr>
</table><?php
$rss = fetch_rss('http://prosper202.com/blog/rss/');
if (isset($rss->items) && 0 != count($rss->items)) {
$rss->items = array_slice($rss->items, 0, 5);
foreach ($rss->items as $item) {
示例9: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
template_top($server_row, 'Get Advanced Landing Page Code', NULL, NULL, NULL);
?>
<div id="info">
<h2>Setup an Advanced Landing Page - Get Code</h2>
Select what landing page you wish to use, and then add all the different campaigns you plan on running with the landing page.<br/><br/>
</div>
<h1></h1>
<form id="tracking_form" method="post">
<input type="hidden" id="counter" name="counter" value="0"/>
<table class="setup">
<tr>
<td class="left_caption">Landing Page</td>
<td>
<select name="landing_page_id" id="landing_page_id" onchange="">
<option value="0"> -- </option> <?php
$mysql['user_id'] = mysql_real_escape_string($_SESSION['user_id']);
$landing_page_sql = "SELECT * FROM 202_landing_pages WHERE user_id='" . $mysql['user_id'] . "' AND landing_page_type='1' AND landing_page_deleted='0'";
$landing_page_result = _mysql_query($landing_page_sql);
// or record_mysql_error($landing_page_sql);
while ($landing_page_row = mysql_fetch_array($landing_page_result, MYSQL_ASSOC)) {
$html['landing_page_id'] = htmlentities($landing_page_row['landing_page_id'], ENT_QUOTES, 'UTF-8');
$html['landing_page_nickname'] = htmlentities($landing_page_row['landing_page_nickname'], ENT_QUOTES, 'UTF-8');
示例10: menu
$class_menu = new menu();
$listAll = $class_menu->getAllChild("categories_multi", "cat_id", "cat_parent_id", 0, "cat_type='static' AND lang_id = " . $lang_id, "cat_id,cat_name,cat_type", "cat_order ASC,cat_name ASC", "cat_has_child", 0);
unset($class_menu);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
echo $load_header;
?>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<? /*------------------------------------------------------------------------------------------------*/ ?>
<?php
echo template_top(translate_text("Records Add"));
?>
<? /*------------------------------------------------------------------------------------------------*/ ?>
<?
$form = new form();
$form->create_form("form_name",$fs_action,"post","multipart/form-data",'onsubmit="validateForm();return false;" id="form_name" ');
$form->create_table();
?>
<?php
echo $form->text_note('Những ô dấu sao (<font class="form_asterisk">*</font>) là bắt buộc phải nhập.');
echo $form->errorMsg($errorMsg);
?>
<?php
echo $form->select_db_multi("Danh mục", "sta_category_id", "sta_category_id", $listAll, "cat_id", "cat_name", $sta_category_id, "Danh mục", 1, "", 1, 0, "", "");
echo $form->text("Tiêu đề", "sta_title", "sta_title", $sta_title, "Tiêu đề", 1, 250, "", 255, "", "", "");
示例11: record_mysql_error
if ($_GET['edit_aff_campaign_id']) {
$mysql['user_id'] = $db->real_escape_string($_SESSION['user_id']);
$mysql['aff_campaign_id'] = $db->real_escape_string($_GET['edit_aff_campaign_id']);
$aff_campaign_sql = "SELECT \t* \n\t\t\t\t\t\t FROM \t`202_aff_campaigns`\n\t\t\t\t\t\t WHERE \t`aff_campaign_id`='" . $mysql['aff_campaign_id'] . "'\n\t\t\t\t\t\t AND \t\t`user_id`='" . $mysql['user_id'] . "'";
$aff_campaign_result = $db->query($aff_campaign_sql) or record_mysql_error($aff_campaign_sql);
$aff_campaign_row = $aff_campaign_result->fetch_assoc();
$selected['aff_network_id'] = $aff_campaign_row['aff_network_id'];
$html = array_map('htmlentities', $aff_campaign_row);
$html['aff_campaign_id'] = htmlentities($_GET['edit_aff_campaign_id'], ENT_QUOTES, 'UTF-8');
}
//this will override the edit, if posting and edit fail
if ($_SERVER['REQUEST_METHOD'] == 'POST' and $add_success != true) {
$selected['aff_network_id'] = $_POST['aff_network_id'];
$html = array_map('htmlentities', $_POST);
}
template_top('Affiliate Campaigns Setup', NULL, NULL, NULL);
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<div class="row">
<div class="col-xs-4">
<h6>Campaign Setup</h6>
</div>
<div class="col-xs-8">
<div class="<?php
if ($error) {
echo "error";
} else {
echo "success";
}
示例12: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
//show the template
template_top('Breakdown Overview', NULL, NULL, NULL);
?>
<div id="info">
<h2>Breakdown Overview</h2>
The breakdown overview allows you to see your stats per day, per hour, or an interval that you set.
</div>
<?php
display_calendar('/tracking202/ajax/sort_breakdown.php', true, true, true, false, true, true);
?>
<script type="text/javascript">
loadContent('/tracking202/ajax/sort_breakdown.php',null);
</script>
<?php
template_bottom();
示例13: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php';
AUTH::require_user();
//before loading the offers202 page, check to make sure this users api key is valid,
//if they do not have one, they will have to generated one
AUTH::require_valid_api_key();
template_top('RSS Feeds');
include_once '../top.php';
?>
<br/><br/>
<table style="margin: 0px auto;">
<tr>
<td>
<h3 class="green">Offer RSS Feeds</h3>
<p>Here are list of the rss feeds you can subscribe to. </p>
</td>
</tr>
<tr>
<td>
<h3 class="green" style="margin: 40px 0px 10px;">All Networks RSS Feeds (most recent 500 offers) & Customizable Offer RSS Feeds</h3>
<p style="margin: 8px 0px;">Here are a few offer RSS feeds. One showing the entire offer feed, and the other two showing customizable examples.</p>
<table class="setup-table" cellpadding="0" cellspacing="0" style="margin: 0px;">
<tr>
<th>Affiliate Network</th>
<th>RSS Feed</th>
</tr>
<tr>
<td>All Offers, All Networks</th>
示例14: array
if ($_GET['addAlert']) {
if (isset($_GET['alertValue'])) {
$get = array('apiKey' => $_SESSION['user_api_key'], 'alertType' => $_GET['alertType'], 'alertValue' => $_GET['alertValue']);
$url = TRACKING202_API_URL . '/alerts202/addAlert?' . http_build_query($get);
$addAlert = getUrl($url);
$addAlert = convertXmlIntoArray($addAlert);
$errors = $addAlert['errors']['error'];
if (!$errors) {
header('location: ?addSuccess=1');
} else {
$html = array_map('htmlentities', $_GET);
}
}
}
//now grab all of my alerts
template_top('Offer Alerts');
?>
<table cellspacing="0" cellpadding="0" border="0" style="margin: 50px auto 0px;">
<tbody>
<tr>
<td style="padding-right: 50px;">
<table border="0">
<tbody>
<tr>
<td>
<h3>Welcome to Alerts202</h3>
Alerts202 are email updates of the latest relevant offers based on your choice of query or topic.
<br/>
<br/>
Some handy uses of Alerts202 include:
示例15: template_top
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php';
AUTH::require_user();
template_top('Pixel And Postback URLs');
//the pixels
$unSecuredPixel = '<img height="1" width="1" border="0" style="display: none;" src="http://' . getTrackingDomain() . '/tracking202/static/gpx.php?amount=" />';
$unSecuredPixel_2 = '<img height="1" width="1" border="0" style="display: none;" src="http://' . getTrackingDomain() . '/tracking202/static/gpx.php?amount=&cid=" />';
//post back urls
$unSecuredPostBackUrl = 'http://' . getTrackingDomain() . '/tracking202/static/gpb.php?amount=&subid=';
$unSecuredPostBackUrl_2 = 'http://' . getTrackingDomain() . '/tracking202/static/gpb.php?amount=&subid=';
//universal pixel
$unSecuredUniversalPixel = '<iframe height="1" width="1" border="0" style="display: none;" frameborder="0" scrolling="no" src="http://' . getTrackingDomain() . '/tracking202/static/upx.php?amount=" seamless></iframe>';
$unSecuredUniversalPixelJS = '
<script>
var vars202={amount:"",cid:""};(function(d, s) {
var js, upxf = d.getElementsByTagName(s)[0], load = function(url, id) {
if (d.getElementById(id)) {return;}
if202 = d.createElement("iframe");if202.src = url;if202.id = id;if202.height = 1;if202.width = 0;if202.frameBorder = 1;if202.scrolling = "no";if202.noResize = true;
upxf.parentNode.insertBefore(if202, upxf);
};
load("http://' . getTrackingDomain() . '/tracking202/static/upx.php?amount="+vars202[\'amount\']+"&cid="+vars202[\'cid\'], "upxif");
}(document, "script"));</script>
<noscript>
<iframe height="1" width="1" border="0" style="display: none;" frameborder="0" scrolling="no" src="http://' . getTrackingDomain() . '/tracking202/static/upx.php?amount=&cid=" seamless></iframe>
</noscript>';
?>
<div class="row" style="margin-bottom: 15px;">
<div class="col-xs-12">
<h6>Get your Pixel or Post Back URL</h6>