本文整理汇总了PHP中OX类的典型用法代码示例。如果您正苦于以下问题:PHP OX类的具体用法?PHP OX怎么用?PHP OX使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OX类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayData
/**
* Outputs the HTML to display the data for this limitation
*
* @return void
*/
function displayData()
{
$this->data = $this->_expandData($this->data);
$tabindex =& $GLOBALS['tabindex'];
// The region plugin is slightly different since we need to allow for multiple regions in different countries
echo "\n <table border='0' cellpadding='2'>\n <tr>\n <th>" . $this->translate('Country') . "</th>\n <td>\n <select name='acl[{$this->executionorder}][data][]' {$disabled}>";
foreach ($this->res as $countryCode => $countryName) {
if (count($countryName) === 1) {
continue;
}
$selected = $this->data[0] == $countryCode ? 'selected="selected"' : '';
echo "<option value='{$countryCode}' {$selected}>{$countryName[0]}</option>";
}
echo "\n </select>\n <input type='image' name='action[none]' src='" . OX::assetPath() . "/images/{$GLOBALS['phpAds_TextDirection']}/go_blue.gif' border='0' align='absmiddle' alt='{$GLOBALS['strSave']}'></td>\n </tr>";
if (!empty($this->data[0])) {
// A country has been selected, show city list for this country...
// Note: Since a disabled field does not pass it's value through, we need to pass the selected country in...
echo "<tr><th>" . $this->translate('Region(s)') . "</th><td><div class='box'>";
$aRegions = $this->res[$this->data[0]];
unset($aRegions[0]);
$aSelectedRegions = $this->data;
unset($aSelectedRegions[0]);
foreach ($aRegions as $sCode => $sName) {
echo "<div class='boxrow'>";
echo "<input tabindex='" . $tabindex++ . "' ";
echo "type='checkbox' id='c_{$this->executionorder}_{$sCode}' name='acl[{$this->executionorder}][data][]' value='{$sCode}'" . (in_array($sCode, $aSelectedRegions) ? ' CHECKED' : '') . ">{$sName}</div>";
}
echo "</div></td></tr>";
}
echo "\n </table>\n ";
$this->data = $this->_flattenData($this->data);
}
示例2: display
/**
* A method that echos the HTML for this field.
*/
function display()
{
$oStartDate = $this->getStartDate();
$startDateStr = is_null($oStartDate) ? '' : $oStartDate->format('%Y-%m-%d');
$oEndDate = $this->getEndDate();
$endDateStr = is_null($oEndDate) ? '' : $oEndDate->format('%Y-%m-%d');
echo "\n <select name='{$this->_name}_preset' id='{$this->_name}_preset' onchange='{$this->_name}FormChange(" . ($this->_autoSubmit ? 1 : 0) . ")' tabindex='" . $this->_tabIndex++ . "'>";
foreach ($this->_fieldSelectionNames as $v => $n) {
$selected = $v == $this->_fieldSelectionValue ? " selected='selected'" : '';
echo "\n <option value='{$v}'{$selected}>{$n}</option>";
}
echo "\n </select>\n <label for='{$this->_name}_start' style='margin-left: 1em'> " . $this->oTrans->translate('From') . "</label>\n <input class='date' name='{$this->_name}_start' id='{$this->_name}_start' type='text' value='{$startDateStr}' tabindex='" . $this->_tabIndex++ . "' />\n <input type='image' src='" . OX::assetPath() . "/images/icon-calendar.gif' id='{$this->_name}_start_button' align='absmiddle' border='0' tabindex='" . $this->_tabIndex++ . "' />\n <label for='{$this->_name}_end' style='margin-left: 1em'> " . $this->oTrans->translate('To') . "</label>\n <input class='date' name='{$this->_name}_end' id='{$this->_name}_end' type='text' value='{$endDateStr}' tabindex='" . $this->_tabIndex++ . "' />\n <input type='image' src='" . OX::assetPath() . "/images/icon-calendar.gif' id='{$this->_name}_end_button' align='absmiddle' border='0' tabindex='" . $this->_tabIndex++ . "' />\n <script type='text/javascript'>\n <!--\n Calendar.setup({\n inputField : '{$this->_name}_start',\n ifFormat : '%Y-%m-%d',\n button : '{$this->_name}_start_button',\n align : 'Bl',\n weekNumbers: false,\n firstDay : " . ($GLOBALS['pref']['ui_week_start_day'] ? 1 : 0) . ",\n electric : false\n })\n Calendar.setup({\n inputField : '{$this->_name}_end',\n ifFormat : '%Y-%m-%d',\n button : '{$this->_name}_end_button',\n align : 'Bl',\n weekNumbers: false,\n firstDay : " . ($GLOBALS['pref']['ui_week_start_day'] ? 1 : 0) . ",\n electric : false\n })\n // Tabindex handling\n {$this->_name}TabIndex = " . ($this->_tabIndex - 4) . ";\n // Functions\n function {$this->_name}Reset()\n {\n document.getElementById('{$this->_name}_start').value = '{$startDateStr}';\n document.getElementById('{$this->_name}_start').value = '{$endDateStr}';\n document.getElementById('{$this->_name}_preset').value = '{$this->_fieldSelectionValue}';\n }\n function {$this->_name}FormSubmit() {\n submitForm();\n return false;\n }\n function {$this->_name}FormChange(bAutoSubmit)\n {\n var o = document.getElementById('{$this->_name}_preset');\n var {$this->_name}SelectName = o.options[o.selectedIndex].value;\n var specific = {$this->_name}SelectName == 'specific';";
$oTmpDaySpan = new OA_Admin_DaySpan();
foreach ($this->_fieldSelectionNames as $v => $n) {
if ($v != 'specific') {
if ($v != 'all_events') {
$oTmpDaySpan->setSpanPresetValue($v);
$oTmpStartDate = $oTmpDaySpan->getStartDate();
$sTmpStartDate = $oTmpStartDate->format('%Y-%m-%d');
$oTmpEndDate = $oTmpDaySpan->getEndDate();
$sTmpEndDate = $oTmpEndDate->format('%Y-%m-%d');
} else {
$sTmpStartDate = '';
$sTmpEndDate = '';
}
echo "\n if ({$this->_name}SelectName == '{$v}') {\n document.getElementById('{$this->_name}_start').value = '{$sTmpStartDate}';\n document.getElementById('{$this->_name}_end').value = '{$sTmpEndDate}';\n }\n ";
}
}
echo "\n\n document.getElementById('{$this->_name}_start').readOnly = !specific;\n document.getElementById('{$this->_name}_end').readOnly = !specific;\n\n if (!specific) {\n document.getElementById('{$this->_name}_start').style.backgroundColor = '#CCCCCC';\n document.getElementById('{$this->_name}_end').style.backgroundColor = '#CCCCCC';\n document.getElementById('{$this->_name}_start').tabIndex = null;\n document.getElementById('{$this->_name}_start_button').tabIndex = null;\n document.getElementById('{$this->_name}_end').tabIndex = null;\n document.getElementById('{$this->_name}_end_button').tabIndex = null;\n } else {\n document.getElementById('{$this->_name}_start').style.backgroundColor = '#FFFFFF';\n document.getElementById('{$this->_name}_end').style.backgroundColor = '#FFFFFF';\n document.getElementById('{$this->_name}_start').tabIndex = {$this->_name}TabIndex;\n document.getElementById('{$this->_name}_start_button').tabIndex = {$this->_name}TabIndex + 1;\n document.getElementById('{$this->_name}_end').tabIndex = {$this->_name}TabIndex + 2;\n document.getElementById('{$this->_name}_end_button').tabIndex = {$this->_name}TabIndex + 3;\n }\n\n document.getElementById('{$this->_name}_start_button').readOnly = !specific;\n document.getElementById('{$this->_name}_end_button').readOnly = !specific;\n document.getElementById('{$this->_name}_start_button').src = specific ? '" . OX::assetPath() . "/images/icon-calendar.gif' : '" . OX::assetPath() . "/images/icon-calendar-d.gif';\n document.getElementById('{$this->_name}_end_button').src = specific ? '" . OX::assetPath() . "/images/icon-calendar.gif' : '" . OX::assetPath() . "/images/icon-calendar-d.gif';\n document.getElementById('{$this->_name}_start_button').style.cursor = specific ? 'auto' : 'default';\n document.getElementById('{$this->_name}_end_button').style.cursor = specific ? 'auto' : 'default';\n\n if (!specific && bAutoSubmit) {\n submitForm();\n }\n }\n {$this->_name}FormChange(0);\n //-->\n </script>";
}
示例3: showAveragedColumnLegend
function showAveragedColumnLegend()
{
if (!self::$averagedColumnDisplayed) {
return '';
}
return '<img src="' . OX::assetPath() . '/images/warning.gif" width="16 height="16" alt="" title="" />: ' . $GLOBALS['strAveragedColumnLegend'];
}
示例4: __construct
/**
* PHP5-style constructor
*/
function __construct()
{
$this->_useDefaultDal();
$this->advertiser_id = MAX_getValue('clientid', 0);
$this->tracker_id = MAX_getValue('trackerid', 0);
$this->assetPath = OX::assetPath();
$this->showReminder = false;
}
示例5: display
/**
* A method to launch and display the widget
*
*/
function display()
{
$oTpl = new OA_Admin_Template('dashboard/grid.html');
$oTpl->assign('dashboardURL', MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php'));
$oTpl->assign('cssURL', OX::assetPath() . "/css");
$oTpl->assign('imageURL', OX::assetPath() . "/images");
$oTpl->assign('jsURL', OX::assetPath() . "/js");
$oTpl->display();
}
示例6: phpAds_MaintenanceSelection
function phpAds_MaintenanceSelection($subSection, $mainSection = 'maintenance')
{
global $phpAds_TextDirection, $strBanners, $strCache, $strChooseSection, $strPriority, $strSourceEdit, $strStats, $strStorage, $strMaintenance, $strCheckForUpdates, $strViewPastUpdates, $strEncoding, $strDeliveryLimitations, $strAppendCodes, $strMenus, $strPlugins;
?>
<script language="JavaScript">
<!--
function maintenance_goto_section()
{
s = document.maintenance_selection.section.selectedIndex;
s = document.maintenance_selection.section.options[s].value;
document.location = '<?php
echo $mainSection;
?>
-' + s + '.php';
}
// -->
</script>
<?php
$conf =& $GLOBALS['_MAX']['CONF'];
$pref =& $GLOBALS['_MAX']['PREF'];
echo "<table border='0' width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><form name='maintenance_selection'><td height='35'>";
echo "<b>" . $strChooseSection . ": </b>";
echo "<select name='section' onChange='maintenance_goto_section();'>";
if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN)) {
if ($mainSection == 'updates') {
echo "<option value='product'" . ($subSection == 'product' ? ' selected' : '') . ">" . $strCheckForUpdates . "</option>";
echo "<option value='history'" . ($subSection == 'history' ? ' selected' : '') . ">" . $strViewPastUpdates . "</option>";
} else {
echo "<option value='maintenance'" . ($subSection == 'maintenance' ? ' selected' : '') . ">" . $strMaintenance . "</option>";
echo "<option value='banners'" . ($subSection == 'banners' ? ' selected' : '') . ">" . $strBanners . "</option>";
echo "<option value='priority'" . ($subSection == 'priority' ? ' selected' : '') . ">" . $strPriority . "</option>";
$login = 'ftp://' . $conf['store']['ftpUsername'] . ':' . $conf['store']['ftpPassword'] . '@' . $conf['store']['ftpHost'] . '/' . $conf['store']['ftpPath'];
if ($conf['allowedBanners']['web'] == true && ($conf['store']['mode'] == 0 && $conf['store']['webDir'] != '' || $conf['store']['mode'] == 1 && $login != '') && $conf['webpath']['images'] != '') {
echo "<option value='storage'" . ($subSection == 'storage' ? ' selected' : '') . ">" . $strStorage . "</option>";
}
// if (!isset($conf['delivery']['cache']) || $conf['delivery']['cache'] != 'none')
// echo "<option value='cache'".($subSection == 'zones' ? ' selected' : '').">".$strCache."</option>";
if ($conf['delivery']['acls']) {
echo "<option value='acls'" . ($subSection == 'acls' ? ' selected' : '') . ">" . $strDeliveryLimitations . "</option>";
}
echo "<option value='appendcodes'" . ($subSection == 'appendcodes' ? ' selected' : '') . ">" . $strAppendCodes . "</option>";
echo "<option value='encoding'" . ($subSection == 'encoding' ? ' selected' : '') . ">{$strEncoding}</option>";
echo "<option value='menus'" . ($subSection == 'menus' ? ' selected' : '') . ">" . $strMenus . "</option>";
echo "<option value='plugins'" . ($subSection == 'plugins' ? ' selected' : '') . ">" . $strPlugins . "</option>";
}
}
// Switched off
// echo "<option value='finance'".($subSection == 'finance' ? ' selected' : '').">Finance</option>";
echo "</select> <a href='javascript:void(0)' onClick='maintenance_goto_section();'>";
echo "<img src='" . OX::assetPath() . "/images/" . $phpAds_TextDirection . "/go_blue.gif' border='0'></a>";
echo "</td></form></tr>";
echo "</table>";
phpAds_ShowBreak();
}
示例7: displayData
/**
* Outputs the HTML to display the data for this limitation
*
* @return void
*/
function displayData()
{
$this->data = $this->_expandData($this->data);
$tabindex =& $GLOBALS['tabindex'];
if ($this->data['day'] == 0 && $this->data['month'] == 0 && $this->data['year'] == 0) {
$set = false;
} else {
$set = true;
}
echo "<table><tr><td>";
if ($set) {
$oDate = new Date($this->data['year'] . '-' . $this->data['month'] . '-' . $this->data['day']);
}
$dateStr = is_null($oDate) ? '' : $oDate->format('%d %B %Y ');
echo "\n <input class='date' name='acl[{$this->executionorder}][data][date]' id='acl[{$this->executionorder}][data][day]' type='text' value='{$dateStr}' tabindex='" . $tabindex++ . "' />\n <input type='image' src='" . OX::assetPath() . "/images/icon-calendar.gif' id='{$this->executionorder}_button' align='absmiddle' border='0' tabindex='" . $tabindex++ . "' />\n <script type='text/javascript'>\n <!--\n Calendar.setup({\n inputField : 'acl[{$this->executionorder}][data][day]',\n ifFormat : '%d %B %Y',\n button : '{$this->executionorder}_button',\n align : 'Bl',\n weekNumbers: false,\n firstDay : " . ($GLOBALS['pref']['begin_of_week'] ? 1 : 0) . ",\n electric : false\n })\n //-->\n </script>";
echo "</td></tr></table>";
$this->data = $this->_flattenData($this->data);
}
示例8: placeLayerSettings
function placeLayerSettings()
{
global $align, $collapsetime, $padding, $closetext;
global $tabindex;
if (!isset($align)) {
$align = 'right';
}
if (!isset($collapsetime)) {
$collapsetime = '-';
}
if (!isset($padding)) {
$padding = '2';
}
if (!isset($closetext)) {
$closetext = $this->translate("[Close]");
}
$buffer = '';
$buffer .= "<tr><td height='10' colspan='3'> </td></tr>";
$buffer .= "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break-el.gif' height='1' width='100%'></td></tr>";
$buffer .= "<tr><td height='10' colspan='3'> </td></tr>";
$buffer .= "<tr><td width='30'> </td>";
$buffer .= "<td width='200'>" . $this->translate("Alignment") . "</td><td width='370'>";
$buffer .= "<select name='align' style='width:175px;' tabindex='" . $tabindex++ . "'>";
$buffer .= "<option value='left'" . ($align == 'left' ? ' selected' : '') . ">" . $this->translate("Left") . "</option>";
$buffer .= "<option value='center'" . ($align == 'center' ? ' selected' : '') . ">" . $this->translate("Center") . "</option>";
$buffer .= "<option value='right'" . ($align == 'right' ? ' selected' : '') . ">" . $this->translate("Right") . "</option>";
$buffer .= "</select>";
$buffer .= "</td></tr>";
$buffer .= "<tr><td width='30'><img src='" . OX::assetPath() . "/images/spacer.gif' height='5' width='100%'></td></tr>";
$buffer .= "<tr><td width='30'> </td>";
$buffer .= "<td width='200'>" . $this->translate("Close text") . "</td><td width='370'>";
$buffer .= "<input class='flat' type='text' name='closetext' size='' value='" . $closetext . "' style='width:175px;' tabindex='" . $tabindex++ . "'></td></tr>";
$buffer .= "<tr><td width='30'><img src='" . OX::assetPath() . "/images/spacer.gif' height='5' width='100%'></td></tr>";
$buffer .= "<tr><td width='30'> </td>";
$buffer .= "<td width='200'>" . $this->translate("Automatically collapse after") . "</td><td width='370'>";
$buffer .= "<input class='flat' type='text' name='collapsetime' size='' value='" . (isset($collapsetime) ? $collapsetime : '-') . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strAbbrSeconds'] . "</td></tr>";
$buffer .= "<tr><td width='30'><img src='" . OX::assetPath() . "/images/spacer.gif' height='5' width='100%'></td></tr>";
$buffer .= "<tr><td width='30'> </td>";
$buffer .= "<td width='200'>" . $this->translate("Banner padding") . "</td><td width='370'>";
$buffer .= "<input class='flat' type='text' name='padding' size='' value='" . (isset($padding) ? $padding : '0') . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strAbbrPixels'] . "</td></tr>";
$buffer .= "<tr><td width='30'><img src='" . OX::assetPath() . "/images/spacer.gif' height='5' width='100%'></td></tr>";
return $buffer;
}
示例9: phpAds_showCache
function phpAds_showCache()
{
$conf = $GLOBALS['_MAX']['CONF'];
global $strSize, $strKiloByte;
global $phpAds_TextDirection;
$rows = phpAds_cacheInfo();
if (is_array($rows)) {
$i = 0;
// Header
echo "<table width='100%' border='0' align='center' cellspacing='0' cellpadding='0'>";
echo "<tr height='25'>";
echo "<td height='25'><b>" . $strSize . "</b></td>";
echo "</tr>";
echo "<tr height='1'><td colspan='5' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td></tr>";
foreach (array_keys($rows) as $key) {
strtok($key, "=");
$what = strtok("&");
if ($i > 0) {
echo "<tr height='1'><td colspan='5' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break-l.gif' height='1' width='100%'></td></tr>";
}
echo "<tr height='25' " . ($i % 2 == 0 ? "bgcolor='#F6F6F6'" : "") . ">";
echo "<td height='25'>";
echo " ";
// Icon
if (substr($what, 0, 5) == 'zone:') {
echo "<img src='" . OX::assetPath() . "/images/icon-zone.gif' align='absmiddle'> ";
} else {
echo "<img src='" . OX::assetPath() . "/images/icon-generatecode.gif' align='absmiddle'> ";
}
// Name
echo $what;
echo "</td>";
echo "<td height='25'>" . round($rows[$key] / 1024) . " " . $strKiloByte . "</td>";
echo "</tr>";
$i++;
}
// Footer
echo "<tr height='1'><td colspan='5' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td></tr>";
echo "</table>";
}
}
示例10: displayData
/**
* Outputs the HTML to display the data for this limitation
*
* @return void
*/
function displayData()
{
$this->data = $this->_expandData($this->data);
$tabindex =& $GLOBALS['tabindex'];
// The city plugin is slightly different since we need to allow for multiple city names in different countries
echo "\n <table border='0' cellpadding='2'>\n <tr>\n <th>" . $this->translate('Country') . "</th>\n <td>\n <select name='acl[{$this->executionorder}][data][]' {$disabled}>";
foreach ($this->res as $countryCode => $countryName) {
$selected = $this->data[0] == $countryCode ? 'selected="selected"' : '';
echo "<option value='{$countryCode}' {$selected}>{$countryName}</option>";
}
echo "\n </select>\n <input type='image' name='action[none]' src='" . OX::assetPath() . "/images/{$GLOBALS['phpAds_TextDirection']}/go_blue.gif' border='0' align='absmiddle' alt='{$GLOBALS['strSave']}'></td>\n </tr>";
if (isset($this->data[0])) {
// A country has been selected, show city list for this country...
// Note: Since a disabled field does not pass it's value through, we need to pass the selected country in...
echo "<tr><th>" . $this->translate('City(s)') . "</th><td>";
echo "<input type='text' name='acl[{$this->executionorder}][data][]' value='" . htmlspecialchars($this->data[1], ENT_QUOTES) . "' tabindex='" . $tabindex++ . "' />";
echo "</td></tr>";
}
echo "\n </table>\n ";
$this->data = $this->_flattenData($this->data);
}
示例11: displayRecoveryResetForm
/**
* Display new password form
*
* @param string error message text
*/
function displayRecoveryResetForm($id, $errormessage = '')
{
if (!empty($errormessage)) {
echo "<div class='errormessage' style='width: 400px;'><img class='errormessage' src='" . OX::assetPath() . "/images/errormessage.gif' align='absmiddle'>";
echo "<span class='tab-r'>{$errormessage}</span></div>";
}
echo "<form method='post' action='password-recovery.php'>\n";
echo "<input type='hidden' name='id' value=\"" . htmlspecialchars($id) . "\" />";
echo "<div class='install'>" . $GLOBALS['strPwdRecEnterPassword'] . "</div>";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo "<tr><td colspan='2'><img src='" . OX::assetPath() . "/images/break-el.gif' width='400' height='1' vspace='8'></td></tr>";
echo "<tr height='24'><td>" . $GLOBALS['strPassword'] . ": </td><td><input type='password' name='newpassword' /></td></tr>";
echo "<tr height='24'><td>" . $GLOBALS['strRepeatPassword'] . ": </td><td><input type='password' name='newpassword2' /></td></tr>";
echo "<tr height='24'><td> </td><td><input type='submit' value='" . $GLOBALS['strProceed'] . "' /></td></tr>";
echo "<tr><td colspan='2'><img src='" . OX::assetPath() . "/images/break-el.gif' width='400' height='1' vspace='8'></td></tr>";
echo "</table>";
echo "</form>\n";
}
示例12: strip_tags
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software |
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
+---------------------------------------------------------------------------+
$Id: banner-htmlpreview.php 37157 2009-05-28 12:31:10Z andrew.hill $
*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/www/admin/lib-statistics.inc.php';
require_once MAX_PATH . '/lib/max/Delivery/adRender.php';
require_once MAX_PATH . '/lib/max/Admin_DA.php';
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
$aBanner = Admin_DA::getAd($bannerid);
$aBanner['bannerid'] = $aBanner['ad_id'];
if (!empty($aBanner)) {
$conf = $GLOBALS['_MAX']['CONF'];
$bannerName = strip_tags(phpAds_buildBannerName($bannerid, $aBanner['name'], $aBanner['alt']));
$sizeDescription = $aBanner['type'] == 'txt' ? ' ' : " width: {$aBanner['width']} height: {$aBanner['height']}";
$bannerCode = MAX_adRender($aBanner, 0, '', '', '', true, '', false, false);
$protocol = $_SERVER['SERVER_PORT'] == $conf['openads']['sslPort'] ? "https" : "http";
$deliveryUrl = $protocol . ':' . MAX_commonConstructPartialDeliveryUrl($conf['file']['flash']);
echo "\n<html>\n<head>\n<title>{$bannerName}</title>\n<link rel='stylesheet' href='" . OX::assetPath() . "/css/interface-{$phpAds_TextDirection}.css'>\n<script type='text/javascript' src='{$deliveryUrl}'></script>\n</head>\n<body marginheight='0' marginwidth='0' leftmargin='0' topmargin='0' bgcolor='#EFEFEF'>\n<table cellpadding='0' cellspacing='0' border='0'>\n<tr height='32'>\n <td width='32'><img src='" . OX::assetPath() . "/images/cropmark-tl.gif' width='32' height='32'></td>\n <td background='" . OX::assetPath() . "/images/ruler-top.gif'> </td>\n <td width='32'><img src='" . OX::assetPath() . "/images/cropmark-tr.gif' width='32' height='32'></td>\n</tr>\n<tr height='{$aBanner['height']}'>\n <td width='32' background='" . OX::assetPath() . "/images/ruler-left.gif'> </td>\n <td bgcolor='#FFFFFF' width='{$aBanner['width']}'>\n {$bannerCode}\n </td>\n <td width='32'> </td>\n</tr>\n<tr height='32'>\n <td width='32'><img src='" . OX::assetPath() . "/images/cropmark-bl.gif' width='32' height='32'></td>\n <td>{$sizeDescription}</td>\n <td width='32'><img src='" . OX::assetPath() . "/images/cropmark-br.gif' width='32' height='32'></td>\n</tr>\n</table>\n</body>\n</html>";
}
示例13: str_replace
// Action
$action = $strUserlog[$row['action']];
$action = str_replace('{id}', $row['object'], $action);
echo "<td height='20' colspan='2'><img src='" . OX::assetPath() . "/images/spacer.gif' height='16' width='16' align='absmiddle'> " . $action . "</td>";
echo "</tr>";
$i++;
}
if ($doUserLog->getRowCount() > 0) {
echo "<tr height='1'><td colspan='4' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td></tr>";
echo "<tr><td height='25' colspan='2'>";
echo "<img src='" . OX::assetPath() . "/images/icon-recycle.gif' border='0' align='absmiddle'> <a href='userlog-delete.php?token=" . urlencode(phpAds_SessionGetToken()) . "'>" . $strDeleteLog . "</a>";
echo "</td><td height='25' colspan='2' align='" . $phpAds_TextAlignRight . "'>";
if ($start > 0) {
echo "<a href='userlog-maintenance.php?start=" . ($start - 1) . "'>";
echo "<img src='" . OX::assetPath() . "/images/arrow-l.gif' border='0' align='absmiddle'>" . $strPrevious . "</a>";
}
if ($count > ($start + 1) * $limit) {
if ($start > 0) {
echo " | ";
}
echo "<a href='userlog-maintenance.php?start=" . ($start + 1) . "'>";
echo $strNext . "<img src='" . OX::assetPath() . "/images/arrow-r.gif' border='0' align='absmiddle'></a>";
}
echo "</td></tr>";
}
echo "</table>";
echo "<br /><br />";
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageFooter();
示例14: phpAds_registerGlobalUnslashed
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
// Register input variables
// TODO: This variable has been added to demonstrate that clicking on
// links from error messages could bring the already entered e-mail address
// to the new form. Feel free to keep it or remove, depending on the
// implementation strategy.
phpAds_registerGlobalUnslashed('email');
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageHeader("4.1.3.4.7.2");
// TODO: The path here should probably start with the advertiser's data
// Not sure if we need to include the campaign and banner in the path though.
// We'll need to clarify this with the Product team.
echo "<img src='" . OX::assetPath() . "/images/icon-affiliate.gif' align='absmiddle'> <b>Create AdSense Account</b><br /><br /><br />";
phpAds_ShowSections(array("4.1.3.4.7.2"));
/*-------------------------------------------------------*/
/* Main code */
/*-------------------------------------------------------*/
require_once MAX_PATH . '/lib/OA/Admin/Template.php';
$oTpl = new OA_Admin_Template('adsense-create.html');
$oTpl->assign('fields', array(array('title' => 'Email address for AdSense Account', 'fields' => array(array('name' => 'email', 'label' => 'Email', 'value' => '', 'id' => 'adsenseemail', 'title' => 'Provide valid email', 'clientValid' => 'required:true,email:true'))), array('title' => 'Name for the AdSense Account in Openads', 'fields' => array(array('name' => 'name', 'label' => 'Name for the AdSense Account in Openads', 'value' => '', 'id' => 'accountname', 'title' => 'Provide name in Openads', 'clientValid' => 'required:true')))));
//var_dump($oTpl);
//die();
$oTpl->display();
/*-------------------------------------------------------*/
/* HTML framework */
/*-------------------------------------------------------*/
phpAds_PageFooter();
示例15: layerstyle
/**
* Generate the HTML option
*
* @return string A string containing html for option
*/
function layerstyle()
{
$option = '';
$layerstyles = array();
$layerStylesFolder = dirname(__FILE__) . '/layerstyles';
$stylesdir = opendir($layerStylesFolder);
while ($stylefile = readdir($stylesdir)) {
if (is_dir($layerStylesFolder . '/' . $stylefile) && file_exists($layerStylesFolder . '/' . $stylefile . '/invocation.inc.php')) {
if (ereg('^[^.]', $stylefile)) {
$layerstyles[$stylefile] = isset($GLOBALS['strAdLayerStyleName'][$stylefile]) ? $GLOBALS['strAdLayerStyleName'][$stylefile] : str_replace("- ", "-", ucwords(str_replace("-", "- ", $stylefile)));
}
}
}
closedir($stylesdir);
asort($layerstyles, SORT_STRING);
$option .= "<tr><td width='30'> </td>";
$option .= "<td width='200'>" . $this->translate("Style") . "</td><td width='370'>";
$option .= "<select name='layerstyle' onChange='this.form.submit()' style='width:175px;' tabindex='" . $this->maxInvocation->tabindex++ . "'>";
reset($layerstyles);
while (list($k, $v) = each($layerstyles)) {
$option .= "<option value='{$k}'" . ($this->maxInvocation->layerstyle == $k ? ' selected' : '') . ">{$v}</option>";
}
$option .= "</select>";
$option .= "</td></tr>";
$option .= "<tr><td width='30'><img src='" . OX::assetPath() . "/images/spacer.gif' height='1' width='100%'></td></tr>";
return $option;
}