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


PHP xajaxResponse::includeCSS方法代码示例

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


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

示例1: openPopup

function openPopup($popup)
{
    $objResponse = new xajaxResponse();
    $objResponse->includeCSS(str_replace('index.php', '', $_SERVER['SCRIPT_NAME']) . 'includes/layout/overlay.css');
    switch ($popup) {
        case 'undelete':
            $popup_title = 'Restore Posts';
            $popup_contents = <<<UNDELETE
\t<form id="editsee_undelte">
\t<table>
\t<tr><td><!-- Content Type:</td><td> <select id="content_type" onchange="xajax_undeleteList((this.options[this.selectedIndex]).value)">
\t\t<option value=""></option>
\t\t<option value="post">Posts</option>
\t\t<option value="page">Pages</option>
\t\t<option value="links">Links</option>
\t\t<option value="comments">Comments</options>
\t\t</select>--><input type="button" value="Load Posts" onclick="xajax_undeleteList('post'); return false;" /></td></tr>
\t\t<tr><td colspan="2" id="undelete_items"></td></tr>
\t\t<tr><td colspan="2" class="submit">
UNDELETE;
            break;
        case 'password':
            $popup_title = 'Change Password';
            $popup_contents = <<<PASSWORD
\t<form id="editsee_password">
\t<table>
\t<tr><td>Existing Password:</td><td><input type="password" id="existing_password" /></td></tr>
\t<tr><td>New Password:</td><td><input type="password" id="new_password" /></td></tr>
\t<tr><td>Re-Type New Password:</td><td><input type="password" id="retype_password" /></td></tr>
\t<tr><td colspan="2" class="submit">
\t<input type="submit" value="change password" onclick="xajax_changePassword(
\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById('existing_password').value
\t\t\t\t\t\t\t\t\t\t\t\t\t,document.getElementById('new_password').value
\t\t\t\t\t\t\t\t\t\t\t\t\t,document.getElementById('retype_password').value
\t\t\t\t\t\t\t\t\t\t\t\t); return false;" />
PASSWORD;
            break;
        case 'new_link':
            $popup_title = 'New Link';
            $popup_contents = <<<NEWLINK
\t<form id="editsee_newlink">
\t<table>
\t<tr><td>Link URL:</td><td><input type="text" id="link_url" /></td></tr>
\t<tr><td>Link Title:</td><td><input type="text" id="link_title" /></td></tr>
\t<tr><td>No-Follow <span title="no follow tells search engine to ignore this link">(?)</span>:</td><td><input type="checkbox" id="link_nofollow" class="checkbox" value="nofollow" /></td></tr>
\t<tr><td>Link Target</td><td><select id="link_target">
\t\t\t\t\t\t\t\t\t<option value="_self">Same Window</option>
\t\t\t\t\t\t\t\t\t<option value="_blank">New Window</option>
\t\t\t\t\t\t\t\t</select></td></tr>
\t<tr><td colspan="2" class="submit">
\t<input type="submit" value="add link" onclick="xajax_newLink(
\t\t\t\t\t\t\t\t\t\t\t\t\tdocument.getElementById('link_url').value
\t\t\t\t\t\t\t\t\t\t\t\t\t,document.getElementById('link_title').value
\t\t\t\t\t\t\t\t\t\t\t\t\t,document.getElementById('link_nofollow').checked
\t\t\t\t\t\t\t\t\t\t\t\t\t,(document.getElementById('link_target').options[document.getElementById('link_target').selectedIndex]).value
\t\t\t\t\t\t\t\t\t\t\t\t); return false;" />
NEWLINK;
            break;
        case 'theme_selector':
            $_SESSION['temp_theme'] = '';
            $_SESSION['popup_close_redirect'] = 'yes';
            $project7 = new editsee_App();
            $themes = '';
            $theme_url = $project7->get_config('es_main_url') . 'theme/';
            $handler = opendir('./theme');
            while (false !== ($file = readdir($handler))) {
                if (substr($file, 0, 1) != '.') {
                    $themes .= '<option value="' . $file . '"';
                    if ($file == $project7->get_config('es_theme')) {
                        $themes .= ' selected="selected"';
                        $theme_image = $theme_url . $project7->get_config('es_theme') . '/screenshot.png';
                    }
                    $themes .= '>' . ucfirst($file) . '</option>';
                }
            }
            $popup_title = 'Change Theme';
            $popup_contents = <<<THEMESELECT
\t\t\t<form id="editsee_theme_selector">
\t\t\t<table>
\t\t\t<tr><td>Theme:</td><td><select id="site_theme" onchange="document.getElementById('theme_screenshot').src='{$theme_url}'+(this.options[this.selectedIndex]).value+'/screenshot.png'">\t
\t\t\t{$themes}</select></td></tr>
\t\t\t<tr><td colspan="2"><img id="theme_screenshot" src="{$theme_image}"></div></td></tr>
\t\t\t<tr><td colspan="2" class="submit"><input type="submit" value="Preview Theme" onclick="xajax_previewTheme((document.getElementById('site_theme').options[document.getElementById('site_theme').selectedIndex]).value); return false;" /></td></tr>
\t\t\t<tr><td colspan="2" class="submit"><input type="submit" value="change theme" onclick="xajax_setTheme((document.getElementById('site_theme').options[document.getElementById('site_theme').selectedIndex]).value); return false;" />
THEMESELECT;
            break;
        case 'site_settings':
            $project7 = new editsee_App();
            $title = $project7->get_config('es_title');
            $main_url = $project7->get_config('es_main_url');
            $description = $project7->get_config('es_description');
            $posts_per_page = $project7->get_config('es_posts_per_page');
            $email_comments = $project7->get_config('es_email_comments') == '1' ? ' checked="checked"' : '';
            $show_post_author = $project7->get_config('es_show_post_author') == '1' ? ' checked="checked"' : '';
            $popup_title = 'Site Settings';
            $popup_contents = <<<SITESETTINGS
\t\t<form id="editsee_sitesettings">
\t\t<table>
\t\t<tr><td>Site Title:</td><td><input type="text" id="site_title" value="{$title}" /></td></tr>
\t\t<tr><td>Site URL:</td><td><input type="text" id="main_url" value="{$main_url}" /></td></tr>
//.........这里部分代码省略.........
开发者ID:apexad,项目名称:editsee,代码行数:101,代码来源:xajax.php


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