當前位置: 首頁>>代碼示例>>PHP>>正文


PHP OX::assetPath方法代碼示例

本文整理匯總了PHP中OX::assetPath方法的典型用法代碼示例。如果您正苦於以下問題:PHP OX::assetPath方法的具體用法?PHP OX::assetPath怎麽用?PHP OX::assetPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在OX的用法示例。


在下文中一共展示了OX::assetPath方法的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                    &nbsp;<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);
 }
開發者ID:ballistiq,項目名稱:revive-adserver,代碼行數:37,代碼來源:Region.class.php

示例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>";
 }
開發者ID:ballistiq,項目名稱:revive-adserver,代碼行數:33,代碼來源:AuditDaySpanField.php

示例3: showAveragedColumnLegend

 function showAveragedColumnLegend()
 {
     if (!self::$averagedColumnDisplayed) {
         return '';
     }
     return '<img src="' . OX::assetPath() . '/images/warning.gif" width="16 height="16" alt="" title="" />: ' . $GLOBALS['strAveragedColumnLegend'];
 }
開發者ID:villos,項目名稱:tree_admin,代碼行數:7,代碼來源:Flexy.php

示例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;
 }
開發者ID:akirsch,項目名稱:revive-adserver,代碼行數:11,代碼來源:TrackerAppend.php

示例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();
 }
開發者ID:hostinger,項目名稱:revive-adserver,代碼行數:13,代碼來源:Grid.php

示例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 . ":&nbsp;</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>&nbsp;<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();
}
開發者ID:villos,項目名稱:tree_admin,代碼行數:56,代碼來源:lib-maintenance.inc.php

示例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);
 }
開發者ID:Spark-Eleven,項目名稱:revive-adserver,代碼行數:23,代碼來源:Date.class.php

示例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'>&nbsp;</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'>&nbsp;</td></tr>";
     $buffer .= "<tr><td width='30'>&nbsp;</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'>&nbsp;</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'>&nbsp;</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'>&nbsp;</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;
 }
開發者ID:Spark-Eleven,項目名稱:revive-adserver,代碼行數:43,代碼來源:invocation.inc.php

示例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 "&nbsp;&nbsp;";
            // Icon
            if (substr($what, 0, 5) == 'zone:') {
                echo "<img src='" . OX::assetPath() . "/images/icon-zone.gif' align='absmiddle'>&nbsp;";
            } else {
                echo "<img src='" . OX::assetPath() . "/images/icon-generatecode.gif' align='absmiddle'>&nbsp;";
            }
            // 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>";
    }
}
開發者ID:villos,項目名稱:tree_admin,代碼行數:41,代碼來源:maintenance-cache.php

示例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                    &nbsp;<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);
 }
開發者ID:ballistiq,項目名稱:revive-adserver,代碼行數:26,代碼來源:City.class.php

示例11:

        echo "<td><br />" . $maint_update[1]['description'] . "<br /><br />";
        echo "</td>";
        echo "<td width='32'>&nbsp;</td>";
        echo "</tr>";
        if ($maint_update[1]['url_zip'] != '' || $maint_update[1]['url_tgz'] != '') {
            echo "<tr height='1'><td colspan='2' bgcolor='#F6F6F6'><img src='" . OX::assetPath() . "/images/spacer.gif' height='1' width='100%'>";
            echo "<td colspan='2' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break-el.gif' height='1' width='100%'></td></tr>";
            echo "<tr height='25' bgcolor='#F6F6F6'><td height='25' colspan='2'>&nbsp;&nbsp;</td><td>";
            if ($maint_update[1]['url_zip'] != '') {
                echo "<img src='" . OX::assetPath() . "/images/icon-filetype-zip.gif' align='absmiddle'>&nbsp;";
                echo "<a href='" . $maint_update[1]['url_zip'] . "'>" . $strDownloadZip . "</a>";
                if ($maint_update[1]['url_tgz'] != '') {
                    echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
                }
            }
            if ($maint_update[1]['url_tgz'] != '') {
                echo "<img src='" . OX::assetPath() . "/images/icon-filetype-zip.gif' align='absmiddle'>&nbsp;";
                echo "<a href='" . $maint_update[1]['url_tgz'] . "'>" . $strDownloadGZip . "</a>";
            }
            echo "</td><td>&nbsp;</td></tr>";
        }
        echo "<tr height='1'><td colspan='4' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td></tr>";
        echo "</table>";
    } else {
        phpAds_Die($strErrorOccurred, $strUpdateServerDown);
    }
}
/*-------------------------------------------------------*/
/* HTML framework                                        */
/*-------------------------------------------------------*/
phpAds_PageFooter();
開發者ID:Apeplazas,項目名稱:plazadelatecnologia,代碼行數:31,代碼來源:updates-product.php

示例12: _function_oa_title_sort

 function _function_oa_title_sort($aParams, &$smarty)
 {
     if (!empty($aParams['str'])) {
         if (!empty($aParams['item'])) {
             $str = $this->_function_t($aParams, $smarty);
             $item = $aParams['item'];
             $order = !empty($aParams['order']) ? $aParams['order'] : 'down';
             $url = !empty($aParams['url']) ? $aParams['url'] : '#';
             $url .= strpos($url, '?') !== false ? '&' : '?';
             $buffer = '<a href="' . htmlspecialchars($url . 'listorder=' . $item) . '">' . $str . '</a>';
             $listorder = $smarty->get_template_vars('listorder');
             $orderdirection = $smarty->get_template_vars('orderdirection');
             if (empty($listorder) && !empty($aParams['default']) && $aParams['default']) {
                 $listorder = $item;
             }
             if (empty($orderdirection)) {
                 $orderdirection = $order;
             }
             if ($listorder == $item) {
                 $order = $orderdirection == 'down' ? 'up' : 'down';
                 $caret = $orderdirection == 'down' ? 'ds' : 'u';
                 $buffer .= ' <a href="' . htmlspecialchars($url . 'orderdirection=' . $order) . '">';
                 $buffer .= '<img src="' . OX::assetPath() . '/images/caret-' . $caret . '.gif" border="0" alt="" title="">';
                 $buffer .= '</a>';
             }
             return $buffer;
         } else {
             $smarty->trigger_error("t: missing 'item' parameter");
         }
     } else {
         $smarty->trigger_error("t: missing 'str'parameter");
     }
 }
開發者ID:hostinger,項目名稱:revive-adserver,代碼行數:33,代碼來源:Template.php

示例13: _getChainZonesImage

function _getChainZonesImage($aZone)
{
    switch ($aZone['delivery']) {
        case phpAds_ZoneBanner:
            $imageName = '/images/icon-zone.gif';
            break;
        case phpAds_ZoneInterstitial:
            $imageName = '/images/icon-interstitial.gif';
            break;
        case phpAds_ZonePopup:
            $imageName = '/images/icon-popup.gif';
            break;
        case phpAds_ZoneText:
            $imageName = '/images/icon-textzone.gif';
            break;
        default:
            $imageName = '';
    }
    if ($imageName) {
        $image = "<img src='" . OX::assetPath() . "{$imageName}' align='absmiddle'>";
    }
    return $image;
}
開發者ID:ballistiq,項目名稱:revive-adserver,代碼行數:23,代碼來源:zone-advanced.php

示例14: count

// total number of agencies
$agencyCount = count($aManagers);
echo "\t\t\t\t<br /><br /><br /><br />\n";
echo "\t\t\t\t<table width='100%' border='0' align='center' cellspacing='0' cellpadding='0'>\n";
echo "\t\t\t\t<tr>\n";
echo "\t\t\t\t\t<td height='25' colspan='3'>&nbsp;&nbsp;<b>" . $strOverall . "</b></td>\n";
echo "\t\t\t\t</tr>\n";
echo "\t\t\t\t<tr height='1'>\n";
echo "\t\t\t\t\t<td colspan='4' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td>\n";
echo "\t\t\t\t</tr>\n";
echo "\t\t\t\t<tr>\n";
echo "\t\t\t\t\t<td height='25'>&nbsp;&nbsp;" . $strTotalAgencies . ": <b>" . $agencyCount . "</b></td>\n";
echo "\t\t\t\t\t<td height='25' colspan='2'></td>\n";
echo "\t\t\t\t</tr>\n";
echo "\t\t\t\t<tr height='1'>\n";
echo "\t\t\t\t\t<td colspan='3' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td>\n";
echo "\t\t\t\t</tr>\n";
echo "\t\t\t\t</table>\n";
echo "\t\t\t\t<br /><br />\n";
/*-------------------------------------------------------*/
/* Store preferences                                     */
/*-------------------------------------------------------*/
$session['prefs']['agency-index.php']['hideinactive'] = $hideinactive;
$session['prefs']['agency-index.php']['listorder'] = $listorder;
$session['prefs']['agency-index.php']['orderdirection'] = $orderdirection;
$session['prefs']['agency-index.php']['nodes'] = implode(",", $node_array);
phpAds_SessionDataStore();
/*-------------------------------------------------------*/
/* HTML framework                                        */
/*-------------------------------------------------------*/
phpAds_PageFooter();
開發者ID:Spark-Eleven,項目名稱:revive-adserver,代碼行數:31,代碼來源:agency-index.php

示例15: displayArrayData

 /**
  * Outputs the HTML to display the data for this limitation
  *
  * @return void
  */
 function displayArrayData()
 {
     $conf = $GLOBALS['_MAX']['CONF'];
     $this->bannerid = isset($GLOBALS['bannerid']) ? $GLOBALS['bannerid'] : 0;
     $tabindex =& $GLOBALS['tabindex'];
     $aChannels = array();
     // Get all of the agency channels that could be used for this banner
     //  select the agency ID that owns this banner (it may be the admin ID, 0)
     $doChannel = OA_Dal::factoryDO('channel');
     $doAgency = OA_Dal::factoryDO('agency');
     $doClients = OA_Dal::factoryDO('clients');
     $doCampaigns = OA_Dal::factoryDO('campaigns');
     $doBanners = OA_Dal::factoryDO('banners');
     $doBanners->bannerid = $this->bannerid;
     $doCampaigns->joinAdd($doBanners);
     $doClients->joinAdd($doCampaigns);
     $doAgency->joinAdd($doClients);
     $doChannel->joinAdd($doAgency);
     $doChannel->affiliateid = 0;
     $doChannel->selectAdd("{$doChannel->tableName()}.name as channelname");
     $doChannel->find();
     while ($doChannel->fetch()) {
         $aChannel = $doChannel->toArray();
         $channelId = $aChannel['channelid'];
         $aChannels[$channelId] = $aChannel;
     }
     // Get all of the publisher channels that could be used for this banner
     //  only publishers (affiliates) which are linked to the banner
     $doChannel = OA_Dal::factoryDO('channel');
     $doAffiliates = OA_Dal::factoryDO('affiliates');
     $doZones = OA_Dal::factoryDO('zones');
     $doAdZoneAssoc = OA_Dal::factoryDO('ad_zone_assoc');
     $doAdZoneAssoc->ad_id = $this->bannerid;
     $doZones->joinAdd($doAdZoneAssoc);
     $doAffiliates->joinAdd($doZones);
     $doChannel->joinAdd($doAffiliates);
     $doChannel->selectAdd("{$doChannel->tableName()}.name as channelname");
     $doChannel->find();
     while ($doChannel->fetch()) {
         $aChannel = $doChannel->toArray();
         $channelId = $aChannel['channelid'];
         $aChannels[$channelId] = $aChannel;
     }
     $aSelectedChannels = array();
     // Sort the list, and move selected items to the top of the list
     usort($aChannels, '_sortByChannelName');
     foreach ($aChannels as $index => $aChannel) {
         if (in_array($aChannel['channelid'], $this->data)) {
             $aSelectedChannels[$index] = $aChannel;
             unset($aChannels[$index]);
         }
     }
     $aChannels = $aSelectedChannels + $aChannels;
     echo "<div class='box'>";
     foreach ($aChannels as $aChannel) {
         if (empty($aChannel['affiliateid'])) {
             $editUrl = "channel-acl.php?agencyid={$this->agencyid}&channelid={$aChannel['channelid']}";
         } else {
             $editUrl = "channel-acl.php?affiliateid={$aChannel['affiliateid']}&channelid={$aChannel['channelid']}";
         }
         echo "\n                <div class='boxrow'>\n                    <input\n                        tabindex='" . $tabindex++ . "'\n                        type='checkbox'\n                        id='c_{$this->executionorder}_{$aChannel['channelid']}'\n                        name='acl[{$this->executionorder}][data][]'\n                        value='{$aChannel['channelid']}'" . (in_array($aChannel['channelid'], $this->data) ? ' checked="checked"' : '') . "\n                    />\n                    " . htmlspecialchars($aChannel['channelname']) . "\n                    <a href='{$editUrl}' target='_blank'><img src='" . OX::assetPath() . "/images/{$GLOBALS['phpAds_TextDirection']}/go_blue.gif' border='0' align='absmiddle' alt='{$GLOBALS['strView']}'></a>\n                </div>";
     }
     echo "</div>";
 }
開發者ID:Spark-Eleven,項目名稱:revive-adserver,代碼行數:69,代碼來源:Channel.class.php


注:本文中的OX::assetPath方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。