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


PHP cpg_fetch_icon函数代码示例

本文整理汇总了PHP中cpg_fetch_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP cpg_fetch_icon函数的具体用法?PHP cpg_fetch_icon怎么用?PHP cpg_fetch_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: social_bookmarks_initialize

function social_bookmarks_initialize()
{
    global $CONFIG, $JS, $lang_plugin_social_bookmarks, $social_bookmarks_icon_array;
    $superCage = Inspekt::makeSuperCage();
    if (in_array('js/jquery.spinbutton.js', $JS['includes']) != TRUE) {
        $JS['includes'][] = 'js/jquery.spinbutton.js';
    }
    if (in_array('plugins/social_bookmarks/script.js', $JS['includes']) != TRUE) {
        $JS['includes'][] = 'plugins/social_bookmarks/script.js';
    }
    require_once "./plugins/social_bookmarks/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/social_bookmarks/lang/{$CONFIG['lang']}.php")) {
        require_once "./plugins/social_bookmarks/lang/{$CONFIG['lang']}.php";
    }
    if ($CONFIG['enable_menu_icons'] >= 1) {
        $social_bookmarks_icon_array['configure'] = '<img src="./plugins/social_bookmarks/images/icons/configure.png" border="0" width="16" height="16" alt="" class="icon" />';
        $social_bookmarks_icon_array['menu'] = '<img src="./plugins/social_bookmarks/images/icons/social_bookmarks.png" border="0" width="16" height="16" alt="" class="icon" />';
    } else {
        $social_bookmarks_icon_array['configure'] = '';
        $social_bookmarks_icon_array['menu'] = '';
    }
    if ($CONFIG['enable_menu_icons'] == 2) {
        $social_bookmarks_icon_array['page'] = '<img src="./plugins/social_bookmarks/images/icons/social_bookmarks.png" border="0" width="16" height="16" alt="" class="icon" />';
    } else {
        $social_bookmarks_icon_array['page'] = '';
    }
    $social_bookmarks_icon_array['announcement'] = cpg_fetch_icon('announcement', 1);
    $social_bookmarks_icon_array['ok'] = cpg_fetch_icon('ok', 0);
    $social_bookmarks_icon_array['cancel'] = cpg_fetch_icon('cancel', 0);
    $social_bookmarks_icon_array['stop'] = cpg_fetch_icon('stop', 0);
    $return['language'] = $lang_plugin_social_bookmarks;
    $return['icon'] = $social_bookmarks_icon_array;
    return $return;
}
开发者ID:phill104,项目名称:branches,代码行数:34,代码来源:init.inc.php

示例2: monitor_calibration_bar_language

function monitor_calibration_bar_language()
{
    global $CONFIG, $lang_plugin_moncalb, $moncal_icon_array;
    require "./plugins/monitorcalibrationbar/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/monitorcalibrationbar/lang/{$CONFIG['lang']}.php")) {
        require "./plugins/monitorcalibrationbar/lang/{$CONFIG['lang']}.php";
    }
    if ($CONFIG['enable_menu_icons'] == 1) {
        $moncal_icon_array['calibration'] = '<img src="./plugins/monitorcalibrationbar/images/icons/calibration.png" width="16" height="16" border="0" alt="" class="icon" />';
        $moncal_icon_array['config'] = '<img src="./plugins/monitorcalibrationbar/images/icons/calibration_config.png" width="16" height="16" border="0" alt="" class="icon" />';
    } else {
        $moncal_icon_array['calibration'] = '';
        $moncal_icon_array['config'] = '';
    }
    if ($CONFIG['enable_menu_icons'] >= 1) {
        $moncal_icon_array['config_menu'] = '<img src="./plugins/monitorcalibrationbar/images/icons/calibration_config.png" width="16" height="16" border="0" alt="" class="icon" />';
    } else {
        $moncal_icon_array['config_menu'] = '';
    }
    $moncal_icon_array['announcement'] = cpg_fetch_icon('announcement', 1);
    $moncal_icon_array['plugin_manager'] = cpg_fetch_icon('plugin_mgr', 2);
    $moncal_icon_array['ok'] = cpg_fetch_icon('ok', 1);
    $return['language'] = $lang_plugin_moncalb;
    $return['icon'] = $moncal_icon_array;
    return $return;
}
开发者ID:phill104,项目名称:branches,代码行数:26,代码来源:init.inc.php

示例3: favorite_mailer_button

function favorite_mailer_button()
{
    $superCage = Inspekt::makeSuperCage();
    if ($superCage->get->getAlpha('album') == 'favpics') {
        global $lang_meta_album_names;
        $lang_meta_album_names['favpics'] .= ' <a href="contact.php?fm_mail" title="Send favorites to admin">' . cpg_fetch_icon('contact', 2) . '</a>';
    }
}
开发者ID:phill104,项目名称:branches,代码行数:8,代码来源:codebase.php

示例4: FileMove_page_start

function FileMove_page_start()
{
    global $CONFIG, $lang_plugin_FileMove;
    require './plugins/FileMove/include/init.inc.php';
    $icon = cpg_fetch_icon('download', 1);
    if (GALLERY_ADMIN_MODE) {
        FileMove_config_button('index.php?file=FileMove/plugin_config', $lang_plugin_FileMove['config_title'], '', $lang_plugin_FileMove['config_button']);
    }
}
开发者ID:phill104,项目名称:branches,代码行数:9,代码来源:codebase.php

示例5: check_files_admin_menu

function check_files_admin_menu($admin_menu)
{
    if (GALLERY_ADMIN_MODE) {
        $new_button = "\n            <div class=\"admin_menu admin_float\"><a href=\"index.php?file=check_files/additional_files&amp;do=dashboard\">" . cpg_fetch_icon('disk_usage', 2) . "Search for additional files</a></div>\n            <div class=\"admin_menu admin_float\"><a href=\"index.php?file=check_files/missing_files&amp;do=dashboard\">" . cpg_fetch_icon('disk_usage', 2) . "Search for missing files</a></div>\n        ";
        $look_for = "<!-- END documentation -->";
        $admin_menu = str_replace($look_for, $look_for . $new_button, $admin_menu);
    }
    return $admin_menu;
}
开发者ID:phill104,项目名称:branches,代码行数:9,代码来源:codebase.php

示例6: newsletter_initialize

function newsletter_initialize()
{
    global $CONFIG, $JS, $lang_plugin_newsletter, $newsletter_icon_array;
    $superCage = Inspekt::makeSuperCage();
    if (in_array('js/jquery.spinbutton.js', $JS['includes']) != TRUE) {
        $JS['includes'][] = 'js/jquery.spinbutton.js';
    }
    if (in_array('plugins/newsletter/js/script.js', $JS['includes']) != TRUE) {
        $JS['includes'][] = 'plugins/newsletter/js/script.js';
    }
    require "./plugins/newsletter/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/newsletter/lang/{$CONFIG['lang']}.php")) {
        require "./plugins/newsletter/lang/{$CONFIG['lang']}.php";
    }
    if ($CONFIG['enable_menu_icons'] == 2) {
        $newsletter_icon_array['config'] = '<img src="./plugins/newsletter/images/icons/config.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['newsletter'] = '<img src="./plugins/newsletter/images/icons/newsletter.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['catlist'] = '<img src="./plugins/newsletter/images/icons/catlist.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['subscribe'] = '<img src="./plugins/newsletter/images/icons/subscribe.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['mailing'] = '<img src="./plugins/newsletter/images/icons/mailing.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['archive'] = '<img src="./plugins/newsletter/images/icons/archive.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['locked'] = '<img src="./plugins/newsletter/images/icons/locked.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['unlocked'] = '<img src="./plugins/newsletter/images/icons/unlocked.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['search'] = '<img src="./plugins/newsletter/images/icons/search.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['send'] = '<img src="./plugins/newsletter/images/icons/send.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['queue'] = '<img src="./plugins/newsletter/images/icons/delete.png" width="16" height="16" border="0" alt="" class="icon" />';
    } else {
        $newsletter_icon_array['config'] = '';
        $newsletter_icon_array['announcement'] = '';
        $newsletter_icon_array['catlist'] = '';
        $newsletter_icon_array['subscribe'] = '';
        $newsletter_icon_array['mailing'] = '';
        $newsletter_icon_array['archive'] = '';
        $newsletter_icon_array['locked'] = '<img src="./plugins/newsletter/images/icons/locked.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['unlocked'] = '<img src="./plugins/newsletter/images/icons/unlocked.png" width="16" height="16" border="0" alt="" class="icon" />';
        $newsletter_icon_array['search'] = '';
        $newsletter_icon_array['send'] = '';
        $newsletter_icon_array['queue'] = '';
    }
    $newsletter_icon_array['announcement'] = cpg_fetch_icon('announcement', 1);
    $newsletter_icon_array['plugin_manager'] = cpg_fetch_icon('plugin_mgr', 2);
    $newsletter_icon_array['ok'] = cpg_fetch_icon('ok', 2);
    $newsletter_icon_array['success'] = cpg_fetch_icon('ok', 0);
    $newsletter_icon_array['failure'] = cpg_fetch_icon('cancel', 0);
    $newsletter_icon_array['cancel'] = cpg_fetch_icon('cancel', 2);
    $newsletter_icon_array['edit'] = cpg_fetch_icon('edit', 0);
    $newsletter_icon_array['delete'] = cpg_fetch_icon('delete', 0);
    $newsletter_icon_array['add'] = cpg_fetch_icon('add', 2);
    $newsletter_icon_array['visible'] = cpg_fetch_icon('online', 0);
    $newsletter_icon_array['invisible'] = cpg_fetch_icon('offline', 0);
    $return['language'] = $lang_plugin_newsletter;
    $return['icon'] = $newsletter_icon_array;
    return $return;
}
开发者ID:phill104,项目名称:branches,代码行数:54,代码来源:init.inc.php

示例7: fte_init

function fte_init()
{
    global $CONFIG, $lang_plugin_filetypes_editor, $filetypes_editor_icon_array;
    require "./plugins/filetypes_editor/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/filetypes_editor/lang/{$CONFIG['lang']}.php")) {
        require "./plugins/filetypes_editor/lang/{$CONFIG['lang']}.php";
    }
    if ($CONFIG['enable_menu_icons'] == 2) {
        $filetypes_editor_icon_array['audio'] = '<img src="./plugins/filetypes_editor/images/icons/audio.png" border="0" width="16" height="16" alt="" class="icon" />';
        $filetypes_editor_icon_array['document'] = '<img src="./plugins/filetypes_editor/images/icons/document.png" border="0" width="16" height="16" alt="" class="icon" />';
        $filetypes_editor_icon_array['image'] = '<img src="./plugins/filetypes_editor/images/icons/image.png" border="0" width="16" height="16" alt="" class="icon" />';
        $filetypes_editor_icon_array['movie'] = '<img src="./plugins/filetypes_editor/images/icons/movie.png" border="0" width="16" height="16" alt="" class="icon" />';
        $filetypes_editor_icon_array['qt'] = '<img src="./plugins/filetypes_editor/images/icons/quicktime.png" border="0" width="16" height="16" alt="" class="icon" />';
        $filetypes_editor_icon_array['rmp'] = '<img src="./plugins/filetypes_editor/images/icons/real.png" border="0" width="16" height="16" alt="" class="icon" />';
        $filetypes_editor_icon_array['swf'] = '<img src="./plugins/filetypes_editor/images/icons/flash.png" border="0" width="16" height="16" alt="" class="icon" />';
        $filetypes_editor_icon_array['wmp'] = '<img src="./plugins/filetypes_editor/images/icons/wmp.png" border="0" width="16" height="16" alt="" class="icon" />';
    } else {
        $filetypes_editor_icon_array['audio'] = '';
        $filetypes_editor_icon_array['document'] = '';
        $filetypes_editor_icon_array['image'] = '';
        $filetypes_editor_icon_array['movie'] = '';
        $filetypes_editor_icon_array['qt'] = '';
        $filetypes_editor_icon_array['rmp'] = '';
        $filetypes_editor_icon_array['swf'] = '';
        $filetypes_editor_icon_array['wmp'] = '';
    }
    if ($CONFIG['enable_menu_icons'] >= 1) {
        $filetypes_editor_icon_array['filetype'] = '<img src="./plugins/filetypes_editor/images/icons/filetype.png" width="16" height="16" border="0" alt="" class="icon" />';
    } else {
        $filetypes_editor_icon_array['filetype'] = '';
    }
    $filetypes_editor_icon_array['announcement'] = cpg_fetch_icon('announcement', 1);
    $filetypes_editor_icon_array['plugin_manager'] = cpg_fetch_icon('plugin_mgr', 2);
    $filetypes_editor_icon_array['edit'] = cpg_fetch_icon('edit', 0);
    $filetypes_editor_icon_array['add'] = cpg_fetch_icon('add', 2);
    $filetypes_editor_icon_array['delete'] = cpg_fetch_icon('delete', 2);
    $filetypes_editor_icon_array['ok'] = cpg_fetch_icon('ok', 2);
    $filetypes_editor_icon_array['cancel'] = cpg_fetch_icon('cancel', 2);
    $filetypes_editor_icon_array['none'] = cpg_fetch_icon('cancel', 2);
    $return['language'] = $lang_plugin_filetypes_editor;
    $return['icon'] = $filetypes_editor_icon_array;
    return $return;
}
开发者ID:phill104,项目名称:branches,代码行数:43,代码来源:init.inc.php

示例8: external_edit_init

function external_edit_init()
{
    global $CONFIG, $lang_plugin_external_edit, $external_edit_icon_array;
    require "./plugins/external_edit/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/external_edit/lang/{$CONFIG['lang']}.php")) {
        require "./plugins/external_edit/lang/{$CONFIG['lang']}.php";
    }
    if ($CONFIG['enable_menu_icons'] > 0) {
        $external_edit_icon_array['fotoflexer'] = '<img src="./plugins/external_edit/images/icons/fotoflexer.png" width="16" height="16" border="0" alt="" class="icon" />';
    } else {
        $external_edit_icon_array['fotoflexer'] = '';
    }
    $external_edit_icon_array['announcement'] = cpg_fetch_icon('announcement', 1);
    $external_edit_icon_array['ok'] = cpg_fetch_icon('ok', 2);
    $external_edit_icon_array['cancel'] = cpg_fetch_icon('cancel', 2);
    $external_edit_icon_array['none'] = cpg_fetch_icon('cancel', 2);
    $external_edit_icon_array['ignore'] = cpg_fetch_icon('ignore', 2);
    $return['language'] = $lang_plugin_external_edit;
    $return['icon'] = $external_edit_icon_array;
    return $return;
}
开发者ID:phill104,项目名称:branches,代码行数:21,代码来源:init.inc.php

示例9: annotate_initialize

function annotate_initialize()
{
    global $CONFIG, $JS, $lang_plugin_annotate, $annotate_icon_array;
    require_once "./plugins/annotate/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/annotate/lang/{$CONFIG['lang']}.php")) {
        require_once "./plugins/annotate/lang/{$CONFIG['lang']}.php";
    }
    if ($CONFIG['enable_menu_icons'] == 2) {
        $annotate_icon_array['annotate'] = '<img src="./plugins/annotate/images/icons/annotate.png" border="0" width="16" height="16" alt="" class="icon" />';
        $annotate_icon_array['permission_none'] = '<img src="./plugins/annotate/images/icons/invisible.png" border="0" width="16" height="16" alt="" class="icon" />';
        $annotate_icon_array['permission_read'] = '<img src="./plugins/annotate/images/icons/visible.png" border="0" width="16" height="16" alt="" class="icon" />';
        $annotate_icon_array['permission_write'] = '<img src="./plugins/annotate/images/icons/edit.png" border="0" width="16" height="16" alt="" class="icon" />';
        $annotate_icon_array['permission_delete'] = '<img src="./plugins/annotate/images/icons/delete.png" border="0" width="16" height="16" alt="" class="icon" />';
        $annotate_icon_array['announcement'] = cpg_fetch_icon('announcement', 1);
        $annotate_icon_array['configure'] = cpg_fetch_icon('config', 1);
        $annotate_icon_array['update_database'] = cpg_fetch_icon('update_database', 1);
        $annotate_icon_array['import'] = cpg_fetch_icon('download', 1);
        $annotate_icon_array['manage'] = cpg_fetch_icon('edit', 1);
        $annotate_icon_array['ok'] = cpg_fetch_icon('ok', 2);
        $annotate_icon_array['cancel'] = cpg_fetch_icon('cancel', 2);
        $annotate_icon_array['delete'] = cpg_fetch_icon('delete', 2);
    } else {
        $annotate_icon_array['annotate'] = '';
        $annotate_icon_array['permission_none'] = '';
        $annotate_icon_array['permission_read'] = '';
        $annotate_icon_array['permission_write'] = '';
        $annotate_icon_array['permission_delete'] = '';
        $annotate_icon_array['announcement'] = '';
        $annotate_icon_array['configure'] = '';
        $annotate_icon_array['update_database'] = '';
        $annotate_icon_array['import'] = '';
        $annotate_icon_array['manage'] = '';
        $annotate_icon_array['ok'] = '';
        $annotate_icon_array['cancel'] = '';
        $annotate_icon_array['delete'] = '';
    }
    $return['language'] = $lang_plugin_annotate;
    $return['icon'] = $annotate_icon_array;
    return $return;
}
开发者ID:phill104,项目名称:branches,代码行数:40,代码来源:init.inc.php

示例10: mirror_configure

function mirror_configure()
{
    global $CONFIG, $CPG_PLUGINS;
    $icon_array['ok'] = cpg_fetch_icon('ok', 1);
    $icon_array['cancel'] = cpg_fetch_icon('cancel', 1);
    $allow_continue = 1;
    echo <<<EOT
    <form action="" method="post" name="mirror_config" id="mirror_config">
        <ul>
EOT;
    if ($CONFIG['transparent_overlay'] != '0') {
        echo <<<EOT
            <li>The mirror plugin doesn't work with the config option '<em>Insert a transparent overlay to minimize image theft</em>'. If you decide to continue, that option will be disabled for you. Don't turn it back on while using this plugin.</li>
EOT;
    }
    if (($plugin_id = CPGPluginAPI::installed('image_manipulation')) !== false) {
        echo <<<EOT
            <li>You have installed the plugin '<em>Image Manipulation (image_manipulation)</em>' that can't be run at the same time with the Mirror plugin. Return to the plugin manager and uninstall that other plugin first before installing this plugin.</li>
EOT;
        $allow_continue = 0;
    }
    echo <<<EOT
        </ul>
EOT;
    if ($allow_continue == 1) {
        echo <<<EOT
        <input type="hidden" name="mirror_continue_anyway" id="mirror_continue_anyway" value="1" />
        <button type="submit" class="button" name="submit" value="Continue anyway">{$icon_array['ok']}Continue anyway</button>
EOT;
    }
    echo <<<EOT
        <a href="pluginmgr.php" class="admin_menu">{$icon_array['cancel']}Cancel</a>
EOT;
    echo <<<EOT
    </form>
EOT;
}
开发者ID:phill104,项目名称:branches,代码行数:37,代码来源:codebase.php

示例11: thumb_rotate_initialize

function thumb_rotate_initialize()
{
    global $CONFIG, $lang_plugin_thumb_rotate, $thumb_rotate_icon_array, $gd_extension_array;
    $superCage = Inspekt::makeSuperCage();
    $gd_extension_array = array('jpg', 'jpeg', 'gif', 'png');
    if (GALLERY_ADMIN_MODE) {
        global $JS;
        $JS['includes'][] = 'plugins/thumb_rotate/js/farbtastic.js';
        $JS['includes'][] = 'js/jquery.spinbutton.js';
    }
    require "./plugins/thumb_rotate/lang/english.php";
    if ($CONFIG['lang'] != 'english' && file_exists("./plugins/thumb_rotate/lang/{$CONFIG['lang']}.php")) {
        require "./plugins/thumb_rotate/lang/{$CONFIG['lang']}.php";
    }
    if ($CONFIG['enable_menu_icons'] == 2) {
        $thumb_rotate_icon_array['thumb_rotate'] = '<img src="./plugins/thumb_rotate/images/icons/thumb_rotate.png" width="16" height="16" border="0" alt="" class="icon" />';
        $thumb_rotate_icon_array['config'] = '<img src="./plugins/thumb_rotate/images/icons/config.png" width="16" height="16" border="0" alt="" class="icon" />';
        $thumb_rotate_icon_array['batch'] = '<img src="./plugins/thumb_rotate/images/icons/batch.png" width="16" height="16" border="0" alt="" class="icon" />';
    } else {
        $thumb_rotate_icon_array['thumb_rotate'] = '';
        $thumb_rotate_icon_array['config'] = '';
        $thumb_rotate_icon_array['batch'] = '';
    }
    if ($CONFIG['enable_menu_icons'] >= 1) {
        $thumb_rotate_icon_array['config_menu'] = '<img src="./plugins/thumb_rotate/images/icons/thumb_rotate_config.png" width="16" height="16" border="0" alt="" class="icon" />';
    } else {
        $thumb_rotate_icon_array['config_menu'] = '';
    }
    $thumb_rotate_icon_array['announcement'] = cpg_fetch_icon('announcement', 1);
    $thumb_rotate_icon_array['plugin_manager'] = cpg_fetch_icon('plugin_mgr', 2);
    $thumb_rotate_icon_array['ok'] = cpg_fetch_icon('ok', 2);
    $thumb_rotate_icon_array['cancel'] = cpg_fetch_icon('cancel', 2);
    $thumb_rotate_icon_array['next'] = cpg_fetch_icon('right', 2);
    $return['language'] = $lang_plugin_thumb_rotate;
    $return['icon'] = $thumb_rotate_icon_array;
    return $return;
}
开发者ID:phill104,项目名称:branches,代码行数:37,代码来源:init.inc.php

示例12: cpg_db_query

     $results = cpg_db_query("SELECT value FROM {$CONFIG['TABLE_BRIDGE']} WHERE name = 'recovery_logon_timestamp'");
     if ($results->numRows()) {
         $row = $results->fetchArray(true);
     }
     $recovery_logon_timestamp = $row['value'];
     //print $recovery_logon_timestamp;
     $results = cpg_db_query("SELECT value FROM {$CONFIG['TABLE_BRIDGE']} WHERE name = 'recovery_logon_failures'");
     if ($results->numRows()) {
         $row = $results->fetchArray(true);
     }
     $recovery_logon_failures = $row['value'];
     $logon_allowed = cpg_check_allowed_emergency_logon($recovery_logon_timestamp, $recovery_logon_failures);
     if ($logon_allowed < 0) {
         $logon_allowed = 0;
     }
     starttable(-1, cpg_fetch_icon('bridge_mgr', 2) . $lang_bridgemgr_php['recovery_title'], 2);
     echo <<<EOT
 <form name="disable_integration" id="cpgform" action="{$CPG_PHP_SELF}" method="post">
 <tr>
     <td class="tableb" colspan="2">
         {$lang_bridgemgr_php['recovery_explanation']}
     </td>
 </tr>
 <tr>
       <td class="tableb" width="40%">{$lang_bridgemgr_php['username']}</td>
       <td class="tableb" width="60%"><input type="text" class="textinput" name="username" style="width: 100%" /></td>
 </tr>
 <tr>
     <td class="tableb">{$lang_bridgemgr_php['password']}</td>
     <td class="tableb"><input type="password" class="textinput" name="password" style="width: 100%" /></td>
 </tr>
开发者ID:CatBerg-TestOrg,项目名称:coppermine,代码行数:31,代码来源:bridgemgr.php

示例13: edit_user

function edit_user($user_id)
{
    global $CONFIG, $CPG_PHP_SELF, $LINEBREAK;
    //, $PHP_SELF;
    global $lang_usermgr_php, $lang_common, $icon_array, $op;
    $form_data = array(array('input', 'user_name', cpg_fetch_icon('my_profile', 2) . $lang_usermgr_php['name'], 25), array('password', 'user_password', cpg_fetch_icon('key_enter', 2) . $lang_usermgr_php['password'], 25), array('yesno', 'user_active', cpg_fetch_icon('online', 2) . $lang_usermgr_php['user_active']), array('group_list', 'user_group', cpg_fetch_icon('groups_mgr', 2) . $lang_usermgr_php['user_group']), array('input', 'user_email', cpg_fetch_icon('mail', 2) . $lang_usermgr_php['user_email'], 255));
    if ($CONFIG['user_profile1_name'] != '') {
        $form_data[] = array('input', 'user_profile1', cpg_fetch_icon('blank', 2) . $CONFIG['user_profile1_name'], 255);
    }
    if ($CONFIG['user_profile2_name'] != '') {
        $form_data[] = array('input', 'user_profile2', cpg_fetch_icon('blank', 2) . $CONFIG['user_profile2_name'], 255);
    }
    if ($CONFIG['user_profile3_name'] != '') {
        $form_data[] = array('input', 'user_profile3', cpg_fetch_icon('blank', 2) . $CONFIG['user_profile3_name'], 255);
    }
    if ($CONFIG['user_profile4_name'] != '') {
        $form_data[] = array('input', 'user_profile4', cpg_fetch_icon('blank', 2) . $CONFIG['user_profile4_name'], 255);
    }
    if ($CONFIG['user_profile5_name'] != '') {
        $form_data[] = array('input', 'user_profile5', cpg_fetch_icon('blank', 2) . $CONFIG['user_profile5_name'], 255);
    }
    if ($CONFIG['user_profile6_name'] != '') {
        $form_data[] = array('textarea', 'user_profile6', cpg_fetch_icon('blank', 2) . $CONFIG['user_profile6_name'], 255);
    }
    //$form_data = CPGPluginAPI::filter('usermgr_form_list', array(0 => $form_data, 1 => $user_id);
    list($timestamp, $form_token) = getFormToken();
    if ($user_id != 'new_user') {
        $sql = "SELECT * FROM {$CONFIG['TABLE_USERS']} WHERE user_id = '{$user_id}'";
        $result = cpg_db_query($sql);
        if (!mysql_num_rows($result)) {
            cpg_die(CRITICAL_ERROR, $lang_usermgr_php['err_unknown_user'], __FILE__, __LINE__);
        }
        $user_data = mysql_fetch_array($result);
        mysql_free_result($result);
        if (mysql_num_rows(cpg_db_query("SELECT user_name FROM {$CONFIG['TABLE_BANNED']} WHERE user_name = '" . addslashes($user_data['user_name']) . "' AND brute_force=0 LIMIT 1"))) {
            $user_status = $lang_usermgr_php['user_is_banned'];
        } elseif ($user_data['user_active'] == 'YES') {
            $user_status = $lang_usermgr_php['status_active'];
        } else {
            $user_status = $lang_usermgr_php['status_inactive'];
        }
    } else {
        // If this is a new user then add a checkbox for 'send login data to user' option
        $form_data[] = array('checkbox', 'send_login_data', $lang_usermgr_php['send_login_data']);
        $user_data = array('user_name' => '', 'user_active' => '', 'user_group' => '', 'user_group_list' => '', 'user_email' => '', 'user_profile1' => '', 'user_profile2' => '', 'user_profile3' => '', 'user_profile4' => '', 'user_profile6' => '');
    }
    $status_icon = cpg_fetch_icon('online', 2);
    echo <<<EOT
        <form name="cpgform3" id="cpgform3" method="post" action="{$CPG_PHP_SELF}?op=update&amp;user_id={$user_id}">

EOT;
    if ($op == 'new_user') {
        starttable(500, $icon_array['add_user'] . $lang_usermgr_php['create_new_user'], 2);
    } else {
        starttable(500, $icon_array['edit'] . $lang_usermgr_php['modify_user'], 2);
        echo <<<EOT
        <tr>
                <td class="tableb">
                        {$status_icon}{$lang_usermgr_php['status']}
                </td>
                <td class="tableb">
                        {$user_status}
                </td>
        </tr>
EOT;
    }
    $loopCounter = 0;
    foreach ($form_data as $element) {
        if ($loopCounter / 2 == floor($loopCounter / 2)) {
            $row_style_class = 'tableb tableb_alternate';
        } else {
            $row_style_class = 'tableb';
        }
        $loopCounter++;
        switch ($element[0]) {
            case 'input':
                $value = $user_data[$element[1]];
                if ($element[2]) {
                    echo <<<EOT
            <tr>
                <td width="40%" class="{$row_style_class}" valign="top">
                            {$element[2]}
            </td>
            <td width="60%" class="{$row_style_class}" valign="top">
                    <input type="text" style="width: 100%" name="{$element[1]}" maxlength="{$element[3]}" value="{$value}" class="textinput" />
                    </td>
            </tr>


EOT;
                }
                break;
            case 'textarea':
                $value = $user_data[$element[1]];
                if ($element[2]) {
                    echo <<<EOT
            <tr>
                <td width="40%" class="{$row_style_class}" height="25" valign="top">
                            {$element[2]}
            </td>
//.........这里部分代码省略.........
开发者ID:CatBerg-TestOrg,项目名称:coppermine_1.6.x,代码行数:101,代码来源:usermgr.php

示例14: display_plugin_list

function display_plugin_list()
{
    global $CPG_PLUGINS, $lang_pluginmgr_php, $lang_plugin_php, $lang_common, $CONFIG, $CPG_PHP_SELF;
    list($timestamp, $form_token) = getFormToken();
    $help = '&nbsp;' . cpg_display_help('f=plugins.htm&amp;as=plugin_manager&amp;ae=plugin_manager_end&amp;top=1', '800', '600');
    $help_plugin_enable = cpg_display_help('f=configuration.htm&amp;as=admin_general_enable-plugins&amp;ae=admin_general_enable-plugins_end', 400, 300);
    // configure plugin api (enabled or disabled)
    $yes_selected = $CONFIG['enable_plugins'] ? 'checked="checked"' : '';
    $no_selected = !$CONFIG['enable_plugins'] ? 'checked="checked"' : '';
    print '<form name="pluginenableconfig" id="cpgform2" action="' . $CPG_PHP_SELF . '" method="post" style="margin:0px;padding:0px">';
    starttable('-1', cpg_fetch_icon('plugin_mgr', 2) . $lang_pluginmgr_php['pmgr'] . $help, 3);
    echo <<<EOT
        <tr>
                <td class="tableh2" colspan="3">
                    {$lang_pluginmgr_php['explanation']}
                </td>
        </tr>
        <tr>
                <td class="tableb">
                    {$lang_pluginmgr_php['plugin_enabled']}
                </td>
                <td class="tableb">
                    <input type="radio" id="enable_plugins1" name="enable_plugins" value="1"  onclick="document.pluginenableconfig.submit();" {$yes_selected} class="radio" /><label for="enable_plugins1" class="clickable_option">{$lang_common['yes']}</label>
                    &nbsp;&nbsp;
                    <input type="radio" id="enable_plugins0" name="enable_plugins" value="0"  onclick="document.pluginenableconfig.submit();" {$no_selected} class="radio" /><label for="enable_plugins0" class="clickable_option">{$lang_common['no']}</label>
                    <input type="hidden" name="update_config" value="1" />
                    <input type="hidden" name="form_token" value="{$form_token}" />
                    <input type="hidden" name="timestamp" value="{$timestamp}" />
                </td>
                <td class="tableb">
                    {$help_plugin_enable}
                </td>
        </tr>
EOT;
    endtable();
    print '</form>';
    echo <<<EOT
        <br />
EOT;
    $help = '&nbsp;' . cpg_display_help('f=plugins.htm&amp;as=plugin_manager_uninstall&amp;ae=plugin_manager_uninstall_end&amp;top=1', '640', '480');
    $available_plugins = cpg_get_dir_list('./plugins/');
    starttable('100%');
    echo <<<EOT
        <tr>
                <td class="tableh1" width="90%"><strong><span class="statlink">{$lang_pluginmgr_php['i_plugins']}</span></strong></td>
                <td colspan="3" class="tableh1" align="center" width="10%"><strong><span class="statlink">{$lang_pluginmgr_php['operation']}</span></strong>{$help}</td>
        </tr>
EOT;
    unset($installed_plugins);
    if ($CONFIG['enable_plugins'] == 1) {
        $loop_counter = 0;
        foreach ($CPG_PLUGINS as $thisplugin) {
            $installed_plugins[$loop_counter] = array('index' => $thisplugin->index, 'plugin_id' => $thisplugin->plugin_id, 'path' => $thisplugin->path, 'priority' => $thisplugin->priority, 'error' => $thisplugin->error);
            $loop_counter++;
        }
    } else {
        // If plugin system is turned off, grab installed plugins from database table
        $query = 'SELECT * FROM ' . $CONFIG['TABLE_PLUGINS'] . ' ORDER BY priority ASC;';
        $result = cpg_db_query($query);
        $loop_counter = 0;
        while ($installed_plugin = mysql_fetch_assoc($result)) {
            $installed_plugins[$loop_counter] = array('index' => $loop_counter, 'plugin_id' => $installed_plugin['plugin_id'], 'path' => $installed_plugin['path'], 'priority' => $installed_plugin['priority'], 'error' => array());
            $loop_counter++;
        }
    }
    $installed_count = 0;
    $loop_counter = 0;
    if (isset($installed_plugins) == TRUE) {
        $plugins_count = count($installed_plugins);
        foreach ($installed_plugins as $thisplugin) {
            $installed_count++;
            unset($extra_info);
            unset($install_info);
            include './plugins/' . $thisplugin['path'] . '/configuration.php';
            $pluginPath = $thisplugin['path'];
            $safename = addslashes(str_replace('&nbsp;', '', $name));
            if (isset($extra_info) == TRUE) {
                $extra = $extra_info;
            } else {
                $extra = '';
            }
            if (sizeof($thisplugin['error']) > 0) {
                $error = $thisplugin['error']['desc'];
                $extra = '<tr><td class="tableb" width="100%" colspan="2">' . '<strong>' . $lang_common['error'] . ':</strong> <span style="color:red;">' . $error . '</span>' . '</td></tr>' . $extra;
            }
            if ($loop_counter == 0) {
                $row_style_class = 'tableb';
            } else {
                $row_style_class = 'tableb tableb_alternate';
            }
            $loop_counter++;
            if ($loop_counter > 1) {
                $loop_counter = 0;
            }
            echo <<<EOT
        <tr>
            <td width="90%" class="{$row_style_class}">
                <a name="{$pluginPath}"></a>
                <table border="0" width="100%" cellspacing="0" cellpadding="0" class="maintable">
                    <tr>
//.........这里部分代码省略.........
开发者ID:JoseCOCA,项目名称:baudprint,代码行数:101,代码来源:pluginmgr.php

示例15: display_cat_list

function display_cat_list()
{
    global $CAT_LIST, $CONFIG, $lang_catmgr_php, $lang_common, $CPG_PHP_SELF, $LINEBREAK;
    $CAT_LIST3 = $CAT_LIST;
    $loop_counter = 0;
    list($timestamp, $form_token) = getFormToken();
    $form_token = "&amp;form_token={$form_token}&amp;timestamp={$timestamp}";
    foreach ($CAT_LIST3 as $key => $category) {
        if ($category['cid'] == 0) {
            continue;
        }
        if ($loop_counter == 0) {
            $row_style_class = 'tableb';
        } else {
            $row_style_class = 'tableb tableb_alternate';
        }
        $loop_counter++;
        if ($loop_counter > 1) {
            $loop_counter = 0;
        }
        echo '        <tr>' . $LINEBREAK;
        echo '                <td class="' . $row_style_class . '" width="80%"><strong>' . $category['name'] . '</strong></td>' . $LINEBREAK;
        if ($category['pos'] > 0 && $CONFIG['categories_alpha_sort'] != 1) {
            echo '                <td class="' . $row_style_class . '" width="4%"><a href="' . $CPG_PHP_SELF . '?op=movetop&amp;cid1=' . $category['cid'] . '&amp;pos1=' . $category['pos'] . $form_token . '" class="rounded_menu"><span>' . cpg_fetch_icon('upup', 0, $lang_common['move_top']) . '</span></a></td>' . $LINEBREAK;
            echo '                <td class="' . $row_style_class . '" width="4%"><a href="' . $CPG_PHP_SELF . '?op=move&amp;cid1=' . $category['cid'] . '&amp;pos1=' . ($category['pos'] - 1) . '&amp;cid2=' . $category['prev'] . '&amp;pos2=' . $category['pos'] . $form_token . '" class="rounded_menu"><span>' . cpg_fetch_icon('up', 0, $lang_common['move_up']) . '</span></a></td>' . $LINEBREAK;
        } else {
            echo '                <td class="' . $row_style_class . '" width="4%">' . '&nbsp;' . '</td>' . $LINEBREAK;
            echo '                <td class="' . $row_style_class . '" width="4%">' . '&nbsp;' . '</td>' . $LINEBREAK;
        }
        if ($category['pos'] < $CAT_LIST[$category['parent']]['cat_count'] - 1 && $CONFIG['categories_alpha_sort'] != 1) {
            echo '                <td class="' . $row_style_class . '" width="4%"><a href="' . $CPG_PHP_SELF . '?op=move&amp;cid1=' . $category['cid'] . '&amp;pos1=' . ($category['pos'] + 1) . '&amp;cid2=' . $category['next'] . '&amp;pos2=' . $category['pos'] . $form_token . '" class="rounded_menu"><span>' . cpg_fetch_icon('down', 0, $lang_common['move_down']) . '</span></a></td>' . $LINEBREAK;
            echo '                <td class="' . $row_style_class . '" width="4%"><a href="' . $CPG_PHP_SELF . '?op=movebottom&amp;cid1=' . $category['cid'] . '&amp;pos1=' . $category['pos'] . $form_token . '" class="rounded_menu"><span>' . cpg_fetch_icon('downdown', 0, $lang_common['move_bottom']) . '</span></a></td>' . $LINEBREAK;
        } else {
            echo '                <td class="' . $row_style_class . '" width="4%">' . '&nbsp;' . '</td>' . $LINEBREAK;
            echo '                <td class="' . $row_style_class . '" width="4%">' . '&nbsp;' . '</td>' . $LINEBREAK;
        }
        if ($category['cid'] != 1) {
            echo '                <td class="' . $row_style_class . '" width="4%"><a href="' . $CPG_PHP_SELF . '?op=deletecat&amp;cid=' . $category['cid'] . $form_token . '" onclick="return confirmDel(\'' . addslashes(str_replace('&nbsp;', '', $category['name'])) . '\')" class="rounded_menu"><span>' . cpg_fetch_icon('delete', 0, $lang_common['delete']) . '</span></a></td>' . $LINEBREAK;
        } else {
            echo '                <td class="' . $row_style_class . '" width="4%">' . '&nbsp;' . '</td>' . $LINEBREAK;
        }
        echo '                <td class="' . $row_style_class . '" width="4%">' . '<a href="' . $CPG_PHP_SELF . '?op=editcat&amp;cid=' . $category['cid'] . $form_token . '" class="rounded_menu"><span>' . cpg_fetch_icon('edit', 0, $lang_common['edit']) . '</span></a></td>' . $LINEBREAK;
        echo '                <td class="' . $row_style_class . '" width="4%">' . $LINEBREAK . cat_list_box($category['cid'], $CAT_LIST3[$category['parent']]) . $LINEBREAK . '</td>' . $LINEBREAK;
        echo '        </tr>' . $LINEBREAK;
    }
}
开发者ID:CatBerg-TestOrg,项目名称:coppermine,代码行数:46,代码来源:catmgr.php


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