Changeset 27589


Ignore:
Timestamp:
Mar 7, 2014, 10:30:38 AM (10 years ago)
Author:
Miklfe
Message:
 
Location:
extensions/MyPiwiShop
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/MyPiwiShop/admin/template/options.tpl

    r27568 r27589  
    2020                $('.addedit').click(function() {
    2121                        $('.Tadd').show();
     22                        $('.add_content').css('top','100px')
    2223                        $('#add_option').fadeIn();
    2324                        $("input[name=name]").focus();
     
    125126               
    126127                $(document).on('click','#table_option .optEdit', function () {
    127                         var $this =$(this);
     128                        var $this       =$(this),
     129                                $pos    = $(document).scrollTop(),
     130                                $pos    = $pos + 100;
     131                               
     132                        $('.add_content').css('top',$pos)
    128133                        $('.Tedit').show();
    129134                        _rempform($this);
     
    134139               
    135140                $(document).on('click','#table_option .optDupli', function () {
    136                         var $this =$(this);
     141                        var $this       =$(this);
     142                                $pos    = $(document).scrollTop(),
     143                                $pos    = $pos + 100;
     144                               
     145                        $('.add_content').css('top',$pos)
    137146                        $('.Tdupli').show();
    138147                        _rempform($this);
     
    254263<div class="add_content">
    255264        <div class="boxtitre"><h1>
    256         <span class="tit Tadd">{'Add a'|translate}</span>
    257         <span class="tit Tedit">{'Edit the'|translate}</span>
    258         <span class="tit Tdupli">{'Duplicate the'|translate}</span>
    259         <span>{' option'|translate}</span>
     265        <span class="tit Tadd">{'Add '|translate}</span>
     266        <span class="tit Tedit">{'Edit '|translate}</span>
     267        <span class="tit Tdupli">{'Duplicate '|translate}</span>
     268        <span class="tit Tedit Tdupli">{'the option'|translate}</span>
     269        <span class="tit Tadd">{'a option'|translate}</span>
    260270        </h1></div>
    261271        <span id="close_addoption" class="close_box_add"></span>
  • extensions/MyPiwiShop/admin/template/product.tpl

    r27568 r27589  
    2222               
    2323                $('#AddProd').click(function() {
     24                        $('.add_content').css('top','100px')
    2425                        $('.Tadd').show();
    2526                        $('#Add_product').fadeIn();
     
    121122               
    122123                $(document).on('click','#formTab_prod .prodEdit', function () {
    123                         var $this       = $(this);
     124                        var $this       = $(this),
     125                                $pos    = $(document).scrollTop(),
     126                                $pos    = $pos + 100;
     127                               
     128                        $('.add_content').css('top',$pos)
    124129                        $('.Tedit').show();
    125130                        _rempform($this);
     
    131136                $(document).on('click','#formTab_prod .prodDupli', function () {
    132137                        var $this       = $(this);
     138                                $pos    = $(document).scrollTop(),
     139                                $pos    = $pos + 100;
     140                               
     141                        $('.add_content').css('top',$pos)
    133142                        $('.Tdupli').show();
    134143                        _rempform($this);
     
    287296<span id="close_Add_product" class="close_box_add"></span>
    288297        <div class="boxtitre"><h1>
    289         <span class="tit Tadd">{'Add a'|translate}</span>
    290         <span class="tit Tdupli">{'Duplicate the'|translate}</span>
    291         <span class="tit Tedit">{'Edit the'|translate}</span>
    292         <span>{' product'|translate}</span>
     298        <span class="tit Tadd">{'Add '|translate}</span>
     299        <span class="tit Tdupli">{'Duplicate '|translate}</span>
     300        <span class="tit Tedit">{'Edit '|translate}</span>
     301        <span class="tit Tedit Tdupli">{'the product'|translate}</span>
     302        <span class="tit Tadd">{'a product'|translate}</span>
    293303        </h1></div>
    294304<form id="AddProdForm"  method="post" name="add_prod" action="">
  • extensions/MyPiwiShop/admin/template/style.css

    r27568 r27589  
    9191        border:2px solid #7c7c7c;
    9292        border-radius:10px;
    93         top:100px;
    9493        display:inline-block;
    9594    vertical-align:middle;
  • extensions/MyPiwiShop/language/fr_FR/plugin.lang.php

    r27568 r27589  
    55$lang['Add a option']='Ajouter une option';
    66$lang['Add a product']='Ajouter un produit';
    7 $lang['Add a']='Ajouter une';
     7$lang['Add ']='Ajouter ';
    88$lang['Add the selected products for these images']='Ajouter les produits sélectionnés à ces images';
    99$lang['Change the display order of products in the form']='Changer l\'ordre d\'affichage des produits dans le formulaire';
     
    1313$lang['Delete the selected products for these images']='Supprimer les produits sélectionnés pour ces images';
    1414$lang['Display _MENU_ records per page']='Afficher _MENU_ éléments';
    15 $lang['Duplicate the']='Dupliquer l\'';
    16 $lang['Edit the']='Editer l\'';
     15$lang['Duplicate ']='Dupliquer ';
     16$lang['Edit ']='Editer ';
     17$lang['the option']='l\'option';
     18$lang['the product']='le produit';
     19$lang['a option']='une option';
     20$lang['a product']='un produit';
    1721$lang['Edit']='Editer';
    1822$lang['Fields marked with * must be completed']='les champs marqués par * doivent être renseignés';
     
    4549$lang['The field is required']='Le champ est requis';
    4650$lang['The order is changed']='L\'ordre est changé';
    47 $lang['Type of option']='Type d\'option';
    4851$lang['Type of option']='Type d\'option';
    4952$lang['Type']='Type';
  • extensions/MyPiwiShop/main.inc.php

    r27568 r27589  
    8383  load_language('plugin.lang', MPS_PATH);
    8484 
    85   // prepare plugin configuration
    86   $query='SELECT * FROM '.MPS_CONF_TABLE.';';
    87   $result       = pwg_query($query);
    88   while($row = pwg_db_fetch_assoc($result)){
    89    $config = $row ;
    90   }
    9185 
    92   $template->assign(array(
    93   'mps_conf' => $config
    94   )); 
    9586
    9687}
  • extensions/MyPiwiShop/maintain.inc.php

    r27568 r27589  
    1212  function install($plugin_version, &$errors=array())
    1313  {
    14     global $conf, $prefixeTable;
     14    global $prefixeTable;
    1515
    16     // add a new table
    1716  $tables = mps_get_tables();
    1817
     
    4039        )
    4140      );
    42         }
    43        
     41 
    4442        pwg_query('
    4543        CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_product` (
     
    5250        ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    5351        ;');
    54        
     52
    5553        pwg_query('
    5654        CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_prod_img` (
     
    6058        ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    6159        ;');
    62        
     60
    6361        pwg_query('
    6462        CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_option` (
     
    9088        ) ENGINE=MyISAM DEFAULT CHARSET=utf8
    9189        ;');
     90  } 
     91    $this->installed = true;
    9292       
    93     $this->installed = true;
    94   }
    95  
     93}
    9694  /**
    9795   * plugin activation
     
    9997  function activate($plugin_version, &$errors=array())
    10098  {
    101     if (!$this->installed)
     99
     100   if (!$this->installed)
    102101    {
    103102
     
    105104    }
    106105  }
    107 
    108   /**
    109    * plugin deactivation
    110    */
     106 
    111107  function deactivate()
    112108  {
    113109  }
     110
    114111
    115112  /**
     
    119116  {
    120117    global $prefixeTable;
    121 
     118        echo('ret'),
    122119    // delete table
    123120    pwg_query('DROP TABLE `'. $prefixeTable .'mps_conf`;');
     
    129126 }
    130127}
    131 
    132128
    133129function mps_get_tables()
     
    152148  return $tables;
    153149}
     150
Note: See TracChangeset for help on using the changeset viewer.