<?php
/**
 * Shop-Reviews
 *
 * @released under the GNU General Public License
 * inspired and in parts based on
 * Copyright (c) 2003 osCommerce
 * @author H-P Sausen
 * @copyright (c) since 2010 web4design.de
 * @contact webmaster@web4design.de
 * @version 3.0
 */

include(MH_DIR_CONFIG . 'config_shopvoting/admin/common.php');
include(MH_DIR_CONFIG . 'config_shopvoting/admin/common_header.php');
?>
<div id="borderbox">
    <?php echo mh_draw_form('shopvoting', shopvoting_admin_page_link(Shopvoting::FILENAME_SHOPREVIEW_MANAGE_PAGE_INFOS, '', true), '', 'post'); ?>

    
<div class="leftupdatebox">
        <?php echo WEB4DESIGN_DE_SR_SAVE_INFO; ?>&nbsp;&nbsp;&nbsp; <input type="submit" name=""
                                                                           value="<?php echo WEB4DESIGN_DE_SR_SAVE_SETTINGS; ?>"/>
</div>
    
        <table class="maintab" style="width:99%">
            <tr>
                <td colspan="3">
                    <?php
                    if (isset($_POST) && count($_POST) > 0) {
                        $voting->setAdminSeiteninfo();
                        $voting->__construct();
                        ?>
                        <div class="speichern"><?php echo WEB4DESIGN_DE_SR_UPDATED; ?></div>
                    <?php } ?>
                </td>
            </tr>
            <tr>
                <td width="48%" style="vertical-align: top;">
                    <p class="adminConfigHeader"><strong><?php echo WEB4DESIGN_DE_SR_META_SETTINGS; ?></strong></p>
                    <?php

                    $langMeta = array();
                    $langMeta = $voting->getAdminLanguages();

                    ?>
                    <table class="settingtab">
                        <?php
                        for ($m = 0;
                             $m < sizeof($langMeta);
                             $m++) {
                            if ($langMeta[$m]['status'] == 1) {

                                ?>
                                <tr>
                                    <td colspan="2">
                                    <img
                                        src="<?php echo $voting->admin_path_url . 'images/' . $langMeta[$m]['directory']; ?>.gif"
                                        alt="" title=""/> <?php echo $langMeta[$m]['directory']; ?>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="12%"><?php echo WEB4DESIGN_DE_SR_PAGE_TITLE; ?></td>
                                    <td width="88%">
                                        <input type="text" name="metas_<?php echo $langMeta[$m]['languages_id']; ?>[title]"
                                           value="<?php echo $langMeta[$m]['title']; ?>" class="admininputwidth"
                                           maxlength="255"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td><?php echo WEB4DESIGN_DE_SR_META_DESCRIPTION ?></td>
                                    <td>
                                    <input type="text"
                                           name="metas_<?php echo $langMeta[$m]['languages_id']; ?>[description]"
                                           value="<?php echo $langMeta[$m]['meta_description']; ?>"
                                           class="admininputwidth" maxlength="255"/>
                                    <input type="hidden"
                                           name="metas_<?php echo $langMeta[$m]['languages_id']; ?>[languages_id]"
                                               value="<?php echo $langMeta[$m]['languages_id']; ?>" size="2"/>
                                    <input type="hidden"
                                           name="metas_<?php echo $langMeta[$m]['languages_id']; ?>[meta_id]"
                                               value="<?php echo $langMeta[$m]['meta_id']; ?>" size="2"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td><?php echo WEB4DESIGN_DE_SR_META_KEYS ?></td>
                                    <td>
                                    <input type="text"
                                           name="metas_<?php echo $langMeta[$m]['languages_id']; ?>[keywords]"
                                           value="<?php echo $langMeta[$m]['meta_keywords']; ?>" class="admininputwidth"
                                           maxlength="255"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr/>
                                    </td>
                                </tr>

                            <?php
                            }
                        }
                        ?>
                    </table>
                </td>
                <td width="2%">&nbsp;</td>
                <td width="48%" style="vertical-align: top;">

                </td>
            </tr>
        </table>

    </form>
    <p class="clr">&nbsp;</p>
</div>
