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


PHP rex_info函数代码示例

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


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

示例1: printPluginList

 static function printPluginList($addon, $headline, $noPluginsAvailabeMsg)
 {
     $plugins = self::getAvailablePlugins($addon);
     if (count($plugins) < 1) {
         echo rex_info($noPluginsAvailabeMsg);
     } else {
         echo '<table id="be-utilities-overview" class="rex-table">';
         echo '<tr><th>' . $headline . '</th></tr>';
         foreach ($plugins as $plugin) {
             // description
             $htmlDescription = '';
             $description = self::getPluginDescription($addon, $plugin);
             if ($description != '') {
                 $htmlDescription = '<p>' . $description . '</p>';
             }
             // link
             $htmlLink = 'index.php?page=' . $addon . '&amp;subpage=plugin.' . $plugin;
             // title and css class
             if (self::hasPluginSubpage($addon, $plugin)) {
                 $htmlTitle = '<a href="' . $htmlLink . '">' . self::getPluginTitle($addon, $plugin) . '</a>' . $htmlDescription;
                 $htmlIcon = '<a href="' . $htmlLink . '"><div class="plugin-icon"></div></a>';
             } else {
                 $htmlTitle = '<span>' . self::getPluginTitle($addon, $plugin) . '</span>' . $htmlDescription;
                 $htmlIcon = '<div class="plugin-icon grey"></div>';
             }
             // table row
             echo '<tr><td>' . $htmlIcon . '<div class="right">';
             echo $htmlTitle;
             echo '</div></td></tr>';
         }
         echo '</table>';
     }
 }
开发者ID:olien,项目名称:be_utilities,代码行数:33,代码来源:class.rex_plugin_factory.inc.php

示例2: focus_setup_metainfo

function focus_setup_metainfo()
{
    global $REX;
    if (!isset($REX['USER'])) {
        return;
    }
    $install_metas = array('med_focuspoint_data' => array('Focuspoint Data', 'med_focuspoint_data', 200, '', 1, '', '', '', ''), 'med_focuspoint_css' => array('Focuspoint CSS', 'med_focuspoint_css', 201, '', 1, '', '', '', ''));
    $db = new rex_sql();
    foreach ($db->getDbArray('SHOW COLUMNS FROM `rex_file` LIKE \'med_focuspoint_%\';') as $column) {
        unset($install_metas[$column['Field']]);
    }
    foreach ($install_metas as $k => $v) {
        $db->setQuery('SELECT `name` FROM `rex_62_params` WHERE `name`=\'' . $k . '\';');
        if ($db->getRows() > 0) {
            // FIELD KNOWN TO METAINFO BUT MISSING IN ARTICLE..
            $db->setQuery('ALTER TABLE `rex_file` ADD `' . $k . '` TEXT NOT NULL;');
            if ($REX['REDAXO']) {
                echo rex_info('Metainfo Feld ' . $k . ' wurde repariert.');
            }
        } else {
            if (!function_exists('a62_add_field')) {
                require_once $REX['INCLUDE_PATH'] . '/addons/metainfo/functions/function_metainfo.inc.php';
            }
            a62_add_field($v[0], $v[1], $v[2], $v[3], $v[4], $v[5], $v[6], $v[7], $v[8]);
            if ($REX['REDAXO']) {
                echo rex_info('Metainfo Feld ' . $k . ' wurde angelegt.');
            }
        }
    }
    rex_file::copy(rex_path::addon("focuspoint", "classes/class.rex_effect_focuspoint_resize.inc.php"), rex_path::addon("image_manager", "classes/effects/class.rex_effect_focuspoint_resize.inc.php"));
}
开发者ID:olien,项目名称:rex_focuspoint,代码行数:31,代码来源:install.inc.php

示例3: updateSettingsFile

 public static function updateSettingsFile($showSuccessMsg = true)
 {
     global $REX, $I18N;
     $settingsFile = self::getSettingsFile();
     $msg = self::checkDirForFile($settingsFile);
     if ($msg != '') {
         if ($REX['REDAXO']) {
             echo rex_warning($msg);
         }
     } else {
         if (!file_exists($settingsFile)) {
             self::createDynFile($settingsFile);
         }
         // deprecated settings
         unset($REX['ADDON']['open_graph']['settings']['cached_redirects']);
         unset($REX['ADDON']['open_graph']['settings']['no_double_content_redirects_only_frontend']);
         $content = "<?php\n\n";
         foreach ((array) $REX['ADDON']['open_graph']['settings'] as $key => $value) {
             $content .= "\$REX['ADDON']['open_graph']['settings']['{$key}'] = " . var_export($value, true) . ";\n";
         }
         if (rex_put_file_contents($settingsFile, $content)) {
             if ($REX['REDAXO'] && $showSuccessMsg) {
                 echo rex_info($I18N->msg('open_graph_config_ok'));
             }
         } else {
             if ($REX['REDAXO']) {
                 echo rex_warning($I18N->msg('open_graph_config_error'));
             }
         }
     }
 }
开发者ID:ReggaePanda,项目名称:open_graph,代码行数:31,代码来源:class.opengraph.inc.php

示例4: updateSettingsFile

 /**
  * Aktualisiert die gespeicherten Benutzereinstellungen .
  * @global mixed[] $REX Redaxo Variable
  * @global i18n $I18N Objekt mir Übersetzungen fürs Backend
  * @param boolean $showSuccessMsg True, wenn Meldung bei erfolgreichem
  * Speichern angezeigt werden soll.
  */
 public static function updateSettingsFile($showSuccessMsg = true)
 {
     global $REX, $I18N;
     $settingsFile = self::getSettingsFile();
     $msg = self::checkDirForFile($settingsFile);
     if ($msg != '') {
         if ($REX['REDAXO']) {
             echo rex_warning($msg);
         }
     } else {
         if (!file_exists($settingsFile)) {
             self::createDynFile($settingsFile);
         }
         $content = "<?php\n\n";
         foreach ((array) $REX['ADDON']['hr4you_sync']['settings'] as $key => $value) {
             $content .= "\$REX['ADDON']['hr4you_sync']['settings']['{$key}'] = " . var_export($value, true) . ";\n";
         }
         if (rex_put_file_contents($settingsFile, $content)) {
             if ($REX['REDAXO'] && $showSuccessMsg) {
                 echo rex_info($I18N->msg('d2u_stellenmarkt_hr4you_sync_config_ok'));
             }
         } else {
             if ($REX['REDAXO']) {
                 echo rex_warning($I18N->msg('d2u_stellenmarkt_hr4you_sync_config_error'));
             }
         }
     }
 }
开发者ID:TobiasKrais,项目名称:d2u_stellenmarkt,代码行数:35,代码来源:class.rex_hr4you_sync_utils.inc.php

示例5: a587_stats_addtruncate

function a587_stats_addtruncate($params)
{
    global $I18N;
    if (rex_request('func') == 'truncate') {
        $stats = new rexsearchStats();
        $stats->truncate();
        a587_stats_saveSettings(array('maxtopSearchitems' => '10', 'searchtermselect' => '', 'searchtermselectmonthcount' => '12'));
        $params['subject'] = rex_info($I18N->Msg('a587_stats_truncate_done')) . $params['subject'];
    }
    $params['subject'] .= '<p class="rex-tx1">' . $I18N->Msg('a587_stats_truncate') . '</p>
<p class="rex-button"><a onclick="return confirm(\'' . $I18N->Msg('a587_stats_truncate_confirm') . '\');" href="index.php?page=rexsearch&amp;subpage=generate&amp;func=truncate" class="rex-button"><span>' . $I18N->Msg('a587_stats_truncate_button') . '</span></a></p>';
    return $params['subject'];
}
开发者ID:olien,项目名称:rexsearch,代码行数:13,代码来源:functions.inc.php

示例6: rex_a657_check_version

function rex_a657_check_version()
{
    global $I18N, $REX;
    $latestVersion = rex_a657_get_latest_version();
    if (!$latestVersion) {
        return false;
    }
    $rexVersion = $REX['VERSION'] . '.' . $REX['SUBVERSION'] . '.' . $REX['MINORVERSION'];
    if (version_compare($rexVersion, $latestVersion, '>')) {
        // Dev version
        $notice = rex_warning($I18N->msg('vchecker_dev_version', $rexVersion));
    } elseif (version_compare($rexVersion, $latestVersion, '<')) {
        // update required
        $notice = rex_warning($I18N->msg('vchecker_old_version', $rexVersion, $latestVersion));
    } else {
        // current version
        $notice = rex_info($I18N->msg('vchecker_current_version', $rexVersion));
    }
    return $notice;
}
开发者ID:Barnhiac,项目名称:MTW_REDAXO,代码行数:20,代码来源:function_version_check.inc.php

示例7: get

 /**
  * Erstellt den Tabellen Quellcode
  *
  * @return string
  */
 function get()
 {
     global $I18N;
     $s = "\n";
     // Form vars
     $this->addFormAttribute('action', $this->getUrl());
     $this->addFormAttribute('method', 'post');
     // Table vars
     $caption = $this->getCaption();
     $tableColumnGroups = $this->getTableColumnGroups();
     // Check if class attribute exists
     if (empty($this->tableAttributes['class'])) {
         $this->addTableAttribute('class', 'rex-table');
     }
     // Columns vars
     $columnFormates = array();
     $columnNames = array();
     foreach ($this->getColumnNames() as $columnName) {
         if (is_array($columnName) || !in_array($columnName, $this->columnDisabled)) {
             $columnNames[] = $columnName;
         }
     }
     // List vars
     $sortColumn = $this->getSortColumn();
     $sortType = $this->getSortType();
     $warning = $this->getWarning();
     $message = $this->getMessage();
     $nbRows = $this->getRows();
     $header = $this->getHeader();
     $footer = $this->getFooter();
     if ($warning != '') {
         $s .= rex_warning($warning) . "\n";
     } elseif ($message != '') {
         $s .= rex_info($message) . "\n";
     }
     if ($header != '') {
         $s .= $header . "\n";
     }
     $s .= '<form' . $this->_getAttributeString($this->getFormAttributes()) . '>' . "\n";
     $s .= '  <table' . $this->_getAttributeString($this->getTableAttributes()) . '>' . "\n";
     if ($caption != '') {
         $s .= '    <caption>' . htmlspecialchars($caption) . '</caption>' . "\n";
     }
     if (count($tableColumnGroups) > 0) {
         foreach ($tableColumnGroups as $tableColumnGroup) {
             $tableColumns = $tableColumnGroup['columns'];
             unset($tableColumnGroup['columns']);
             $s .= '    <colgroup' . $this->_getAttributeString($tableColumnGroup) . '>' . "\n";
             foreach ($tableColumns as $tableColumn) {
                 $s .= '      <col' . $this->_getAttributeString($tableColumn) . ' />' . "\n";
             }
             $s .= '    </colgroup>' . "\n";
         }
     }
     $s .= '    <thead>' . "\n";
     $s .= '      <tr>' . "\n";
     foreach ($columnNames as $columnName) {
         // Spalten, die mit addColumn eingefügt wurden
         if (is_array($columnName)) {
             $columnName = $columnName[0];
         }
         $columnHead = $this->getColumnLabel($columnName);
         if ($this->hasColumnOption($columnName, REX_LIST_OPT_SORT)) {
             if ($columnName == $sortColumn) {
                 $columnSortType = $sortType == 'desc' ? 'asc' : 'desc';
             } else {
                 $columnSortType = $this->getColumnOption($columnName, REX_LIST_OPT_SORT_DIRECTION, 'asc');
             }
             $columnHead = '<a href="' . $this->getUrl(array('start' => $this->getStartRow(), 'sort' => $columnName, 'sorttype' => $columnSortType)) . '">' . $columnHead . '</a>';
         }
         $layout = $this->getColumnLayout($columnName);
         $s .= '        ' . str_replace('###VALUE###', $columnHead, $layout[0]) . "\n";
         // Formatierungen hier holen, da diese Schleife jede Spalte nur einmal durchläuft
         $columnFormates[$columnName] = $this->getColumnFormat($columnName);
     }
     $s .= '      </tr>' . "\n";
     $s .= '    </thead>' . "\n";
     if ($footer != '') {
         $s .= '    <tfoot>' . "\n";
         $s .= $footer;
         $s .= '    </tfoot>' . "\n";
     }
     if ($nbRows > 0) {
         $maxRows = $nbRows - $this->getStartRow();
         $s .= '    <tbody>' . "\n";
         for ($i = 0; $i < $this->getRowsPerPage() && $i < $maxRows; $i++) {
             $s .= '      <tr>' . "\n";
             foreach ($columnNames as $columnName) {
                 // Spalten, die mit addColumn eingefügt wurden
                 if (is_array($columnName)) {
                     // Nur hier sind Variablen erlaubt
                     $columnName = $columnName[0];
                     $columnValue = $this->formatValue($columnFormates[$columnName][0], $columnFormates[$columnName], false, $columnName);
                 } else {
                     $columnValue = $this->formatValue($this->getValue($columnName), $columnFormates[$columnName], true, $columnName);
//.........这里部分代码省略.........
开发者ID:eaCe,项目名称:redaxo4,代码行数:101,代码来源:class.rex_list.inc.php

示例8: rex_info_block

            $warning = '';
        }
    }
    if (is_array($info)) {
        if (count($info) > 0) {
            echo rex_info_block(implode('<br />', $info));
        }
        $info = '';
    } else {
        if ($info != '') {
            echo rex_info($info);
            $info = '';
        }
    }
    if (!empty($args['types'])) {
        echo rex_info($I18N->msg('pool_file_filter', $args['types']));
    }
    //deletefilelist und cat change
    echo '<div class="rex-form" id="rex-form-mediapool-media">
       <form action="index.php" method="post" enctype="multipart/form-data">
          <fieldset class="rex-form-col-1">
            <legend class="rex-form-hidden-legend">' . $I18N->msg('pool_selectedmedia') . '</legend>
            
            <div class="rex-form-wrapper">
              <input type="hidden" name="page" value="mediapool" />
              <input type="hidden" id="media_method" name="media_method" value="" />
              ' . $arg_fields . '

              <table class="rex-table" summary="' . htmlspecialchars($I18N->msg('pool_file_summary', $rex_file_category_name)) . '">
                <caption>' . $I18N->msg('pool_file_caption', $rex_file_category_name) . '</caption>
                <colgroup>
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:mediapool.media.inc.php

示例9: trigger_error

if (empty($prefix)) {
    trigger_error('Fehler: Prefix nicht definiert!', E_USER_ERROR);
    exit;
}
if (empty($metaTable)) {
    trigger_error('Fehler: metaTable nicht definiert!', E_USER_ERROR);
    exit;
}
$Basedir = dirname(__FILE__);
$field_id = rex_request('field_id', 'int');
//------------------------------> Feld loeschen
if ($func == 'delete') {
    $field_id = rex_request('field_id', 'int', 0);
    if ($field_id != 0) {
        if (a62_delete_field($field_id)) {
            echo rex_info($I18N->msg('minfo_field_successfull_deleted'));
        } else {
            echo rex_warning($I18N->msg('minfo_field_error_deleted'));
        }
    }
    $func = '';
}
//------------------------------> Eintragsliste
if ($func == '') {
    $list = rex_list::factory('SELECT field_id, name FROM ' . $REX['TABLE_PREFIX'] . '62_params WHERE `name` LIKE "' . $prefix . '%" ORDER BY prior');
    $list->setCaption($I18N->msg('minfo_field_list_caption'));
    $imgHeader = '<a class="rex-i-element rex-i-metainfo-add" href="' . $list->getUrl(array('func' => 'add')) . '"><span class="rex-i-element-text">' . $I18N->msg('add') . '</span></a>';
    $list->addColumn($imgHeader, '<span class="rex-i-element rex-i-metainfo"><span class="rex-i-element-text">' . $I18N->msg('edit') . '</span></span>', 0, array('<th class="rex-icon">###VALUE###</th>', '<td class="rex-icon">###VALUE###</td>'));
    $list->setColumnParams($imgHeader, array('func' => 'edit', 'field_id' => '###field_id###'));
    $list->removeColumn('field_id');
    $list->addTableColumnGroup(array(40, '*', 80));
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:field.inc.php

示例10: addSlice

    function addSlice($I_ID, $module_id)
    {
        global $REX, $I18N;
        $MOD = rex_sql::factory();
        $MOD->setQuery('SELECT * FROM ' . $REX['TABLE_PREFIX'] . "module WHERE id={$module_id}");
        if ($MOD->getRows() != 1) {
            $slice_content = rex_warning($I18N->msg('module_doesnt_exist'));
        } else {
            $initDataSql = rex_sql::factory();
            $REX_ACTION = array();
            foreach ($REX['VARIABLES'] as $obj) {
                $REX_ACTION = $obj->getACRequestValues($REX_ACTION);
            }
            // ----- PRE VIEW ACTION [ADD]
            $REX_ACTION = rex_execPreViewAction($module_id, 'add', $REX_ACTION);
            // ----- / PRE VIEW ACTION
            // ****************** Action Werte in Sql-Objekt uebernehmen
            foreach ($REX['VARIABLES'] as $obj) {
                $obj->setACValues($initDataSql, $REX_ACTION);
            }
            $moduleInput = $this->replaceVars($initDataSql, $MOD->getValue('eingabe'));
            $msg = '';
            if ($this->warning != '') {
                $msg .= rex_warning($this->warning);
            }
            if ($this->info != '') {
                $msg .= rex_info($this->info);
            }
            $slice_content = '
                <a id="addslice"></a>
                ' . $msg . '
                <div class="rex-form rex-form-content-editmode-add-slice">
                <form action="index.php#slice' . $I_ID . '" method="post" id="REX_FORM" enctype="multipart/form-data">
                    <fieldset class="rex-form-col-1">
                        <legend><span>' . $I18N->msg('add_block') . '</span></legend>
                        <input type="hidden" name="article_id" value="' . $this->article_id . '" />
                        <input type="hidden" name="page" value="content" />
                        <input type="hidden" name="mode" value="' . $this->mode . '" />
                        <input type="hidden" name="slice_id" value="' . $I_ID . '" />
                        <input type="hidden" name="function" value="add" />
                        <input type="hidden" name="module_id" value="' . $module_id . '" />
                        <input type="hidden" name="save" value="1" />
                        <input type="hidden" name="clang" value="' . $this->clang . '" />
                        <input type="hidden" name="ctype" value="' . $this->ctype . '" />

                        <div class="rex-content-editmode-module-name">
                            <h3 class="rex-hl4">
                                ' . $I18N->msg('module') . ': <span>' . htmlspecialchars(rex_translate($MOD->getValue('name'))) . '</span>
                            </h3>
                        </div>

                        <div class="rex-form-wrapper">

                            <div class="rex-form-row">
                                <div class="rex-content-editmode-slice-input">
                                <div class="rex-content-editmode-slice-input-2">
                                    ' . $moduleInput . '
                                </div>
                                </div>
                            </div>

                        </div>
                    </fieldset>

                    <fieldset class="rex-form-col-1">
                         <div class="rex-form-wrapper">
                            <div class="rex-form-row">
                                <p class="rex-form-col-a rex-form-submit">
                                    <input class="rex-form-submit" type="submit" name="btn_save" value="' . $I18N->msg('add_block') . '"' . rex_accesskey($I18N->msg('add_block'), $REX['ACKEY']['SAVE']) . ' />
                                </p>
                            </div>
                        </div>
                    </fieldset>
                </form>
                </div>
                <script type="text/javascript">
                     <!--
                    jQuery(function($) {
                        $(":input:visible:enabled:not([readonly]):first", $("#REX_FORM")).focus();
                    });
                     //-->
                </script>';
        }
        return $slice_content;
    }
开发者ID:Barnhiac,项目名称:MTW_REDAXO,代码行数:85,代码来源:class.rex_article_editor.inc.php

示例11: rex_info

    $websiteId = $params['form']->params['website_id'];
    // destroy website
    rex_website_manager::destroyWebsite($websiteId);
    // delete clang file for clang fix
    if (!$REX['WEBSITE_MANAGER_SETTINGS']['identical_clangs']) {
        rex_website_manager::deleteClangFile($websiteId);
    }
    // update init file to reflect changes
    rex_website_manager::updateInitFile();
    return true;
});
// output
echo '<div class="rex-addon-output-v2">';
if ($REX['WEBSITE_MANAGER']->getCurrentWebsiteId() > 1) {
    // user can only edit websites if selected website is master website
    echo rex_info($I18N->msg('website_manager_website_master_msg'));
} elseif ($func == '') {
    // show website list
    $query = 'SELECT * FROM rex_website ORDER BY priority';
    $list = rex_list::factory($query, 10000);
    $list->setNoRowsMessage($I18N->msg('website_manager_website_no_websites_available'));
    $list->setCaption($I18N->msg('website_manager_website_list'));
    $list->addTableAttribute('summary', $I18N->msg('website_manager_website_list'));
    $list->addTableColumnGroup(array(40, 40, '*', 280, 80, 80));
    $list->removeColumn('start_article_id');
    $list->removeColumn('notfound_article_id');
    $list->removeColumn('default_template_id');
    $list->removeColumn('table_prefix');
    $list->removeColumn('color');
    $list->removeColumn('protocol');
    $list->removeColumn('priority');
开发者ID:olien,项目名称:website_manager,代码行数:31,代码来源:websites.inc.php

示例12: rex_sql

    }
    $func = '';
}
if ($func == 'unpublish') {
    $sql = new rex_sql();
    $sql->setTable(rex_asd_news_config::getTable());
    $sql->setWhere('id=' . $id . ' AND clang = ' . $clang);
    $sql->setValue('publishedAt', '0000-00-00 00:00:00');
    $sql->setValue('publishedBy', 0);
    $successMessage = $I18N->msg('asd_news_unpublished_s');
    if (rex_asd_news_config::getConfig('published-lang') == 'all') {
        $sql->setWhere('`id` = ' . $id);
        $successMessage = $I18N->msg('asd_news_unpublished_m');
    }
    if ($sql->update()) {
        echo rex_info($successMessage);
    } else {
        echo rex_warning($sql->getError());
    }
    $func = '';
}
if ($func == '') {
    $list = new rex_list('
    SELECT
      `id`, `title`, `publishedAt`, `status`
    FROM `' . rex_asd_news_config::getTable() . '`
    WHERE `clang` = ' . $clang . '
    ORDER BY CASE
        WHEN `publishedAt` = "0000-00-00 00:00:00" THEN 1
         ELSE 0
        END DESC,
开发者ID:Sysix,项目名称:asd_news,代码行数:31,代码来源:news.php

示例13: rex_setup_setDBcharset

         $info_msg .= rex_setup_setDBcharset('utf8 COLLATE utf8_general_ci');
         // create temp sql dump from upload
         $tmp_sql = getImportDir() . '/temp.sql';
         if (@move_uploaded_file($_FILES['FORM']['tmp_name']['importfile'], $tmp_sql)) {
             // import sql dump
             if ($err_msg == '') {
                 $I18N->appendFile($REX['INCLUDE_PATH'] . '/addons/import_export/lang/');
                 rex_a1_import_db($tmp_sql);
                 @unlink($tmp_sql);
             } else {
                 // no permissions error
                 $err_msg = $I18N->msg('setup_03802') . ' ' . $I18N->msg('setup_03803', 'addons/import_export/backup/') . ' <br>';
             }
             // notify without setup abort
             if ($info_msg != '') {
                 echo rex_info($info_msg);
             }
         }
         // setup addons
         if ($err_msg == '') {
             $err_msg .= rex_setup_addons();
         }
         // apply 4.3 patches to database
         if ($err_msg == '') {
             $err_msg .= rex_setup_import($REX['INCLUDE_PATH'] . '/install/update4_x_to_4_7.sql');
         }
     }
 } elseif ($dbanlegen == 3) {
     // ----- vorhandenen Export importieren
     // set database default charset
     $err_msg .= rex_setup_setDBcharset('utf8 COLLATE utf8_general_ci');
开发者ID:redaxo,项目名称:redaxo4,代码行数:31,代码来源:setup.inc.php

示例14: rex_info

            echo rex_info("Vielen Dank f&uuml;r den Eintrag.");
        }
    }
}
// ********************************************* LOESCHEN
if ($func == "delete") {
    // TODO:
    // querloeschen - bei be_em_relation, muss die zieltabelle auch bearbeitet werden + die relationentabelle auch geloescht werden
    $query = "delete from {$table} where id='" . $table_id . "' ";
    $delsql = new rex_sql();
    // $delsql->debugsql=1;
    $delsql->setQuery($query);
    $query = "delete from {$table_field} where table_id='" . $table_id . "' ";
    $delsql->setQuery($query);
    $func = "";
    echo rex_info($bezeichner . " wurde gel&ouml;scht");
}
// ********************************************* LISTE
if ($show_list) {
    // formatting func fuer status col
    function rex_em_status_col($params)
    {
        global $I18N;
        $list = $params["list"];
        return $list->getValue("status") == 1 ? $I18N->msg("em_tbl_active") : $I18N->msg("em_tbl_inactive");
    }
    echo "<table cellpadding=5 class=rex-table><tr>\n\t   <td><a href=index.php?page=" . $page . "&subpage=" . $subpage . "&func=add><b>+ {$bezeichner} anlegen</b></a></td>\n\t   </tr></table><br />";
    $sql = "select * from {$table} order by prio,table_name";
    $list = rex_list::factory($sql, 30);
    // $list->setColumnParams("id", array("table_id"=>"###id###","func"=>"edit"));
    $list->removeColumn("id");
开发者ID:BackupTheBerlios,项目名称:redaxo-svn,代码行数:31,代码来源:tables.inc.php

示例15: rex_info

    $field =& $form->addTextareaField('body');
    $field->setLabel($I18N->msg('xform_email_body'));
    $field =& $form->addTextareaField('body_html');
    $field->setLabel($I18N->msg('xform_email_body_html'));
    $field =& $form->addMedialistField('attachments');
    $field->setLabel($I18N->msg('xform_email_attachments'));
    $form->show();
    echo '</div>';
}
if ($func == 'delete') {
    $query = "delete from {$table} where id='" . $template_id . "' ";
    $delsql = rex_sql::factory();
    $delsql->debugsql = 0;
    $delsql->setQuery($query);
    $func = '';
    echo rex_info($I18N->msg('xform_email_info_template_deleted'));
}
if ($func == '') {
    echo '<div class="rex-addon-output-v2">';
    /** Suche  **/
    $add_sql = ' ORDER BY name';
    $link = '';
    $sql = "select * from {$table} " . $add_sql;
    $list = rex_list::factory($sql);
    $list->setCaption($I18N->msg('xform_email_header_template_caption'));
    $list->addTableAttribute('summary', $I18N->msg('xform_email_header_template_summary'));
    $list->addTableColumnGroup(array(40, 40, '*', 153, 153));
    $img = '<img src="media/template.gif" alt="###name###" title="###name###" />';
    $imgAdd = '<img src="media/template_plus.gif" alt="' . $I18N->msg('xform_create_template') . '" title="' . $I18N->msg('xform_email_create_template') . '" />';
    $imgHeader = '<a href="' . $list->getUrl(array('page' => $page, 'subpage' => $subpage, 'func' => 'add')) . '">' . $imgAdd . '</a>';
    $list->addColumn($imgHeader, $img, 0, array('<th class="rex-icon">###VALUE###</th>', '<td class="rex-icon">###VALUE###</td>'));
开发者ID:Barnhiac,项目名称:MTW_REDAXO,代码行数:31,代码来源:index.inc.php


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