Changeset 27589
- Timestamp:
- Mar 7, 2014, 10:30:38 AM (10 years ago)
- Location:
- extensions/MyPiwiShop
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/MyPiwiShop/admin/template/options.tpl
r27568 r27589 20 20 $('.addedit').click(function() { 21 21 $('.Tadd').show(); 22 $('.add_content').css('top','100px') 22 23 $('#add_option').fadeIn(); 23 24 $("input[name=name]").focus(); … … 125 126 126 127 $(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) 128 133 $('.Tedit').show(); 129 134 _rempform($this); … … 134 139 135 140 $(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) 137 146 $('.Tdupli').show(); 138 147 _rempform($this); … … 254 263 <div class="add_content"> 255 264 <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> 260 270 </h1></div> 261 271 <span id="close_addoption" class="close_box_add"></span> -
extensions/MyPiwiShop/admin/template/product.tpl
r27568 r27589 22 22 23 23 $('#AddProd').click(function() { 24 $('.add_content').css('top','100px') 24 25 $('.Tadd').show(); 25 26 $('#Add_product').fadeIn(); … … 121 122 122 123 $(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) 124 129 $('.Tedit').show(); 125 130 _rempform($this); … … 131 136 $(document).on('click','#formTab_prod .prodDupli', function () { 132 137 var $this = $(this); 138 $pos = $(document).scrollTop(), 139 $pos = $pos + 100; 140 141 $('.add_content').css('top',$pos) 133 142 $('.Tdupli').show(); 134 143 _rempform($this); … … 287 296 <span id="close_Add_product" class="close_box_add"></span> 288 297 <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> 293 303 </h1></div> 294 304 <form id="AddProdForm" method="post" name="add_prod" action=""> -
extensions/MyPiwiShop/admin/template/style.css
r27568 r27589 91 91 border:2px solid #7c7c7c; 92 92 border-radius:10px; 93 top:100px;94 93 display:inline-block; 95 94 vertical-align:middle; -
extensions/MyPiwiShop/language/fr_FR/plugin.lang.php
r27568 r27589 5 5 $lang['Add a option']='Ajouter une option'; 6 6 $lang['Add a product']='Ajouter un produit'; 7 $lang['Add a']='Ajouter une';7 $lang['Add ']='Ajouter '; 8 8 $lang['Add the selected products for these images']='Ajouter les produits sélectionnés à ces images'; 9 9 $lang['Change the display order of products in the form']='Changer l\'ordre d\'affichage des produits dans le formulaire'; … … 13 13 $lang['Delete the selected products for these images']='Supprimer les produits sélectionnés pour ces images'; 14 14 $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'; 17 21 $lang['Edit']='Editer'; 18 22 $lang['Fields marked with * must be completed']='les champs marqués par * doivent être renseignés'; … … 45 49 $lang['The field is required']='Le champ est requis'; 46 50 $lang['The order is changed']='L\'ordre est changé'; 47 $lang['Type of option']='Type d\'option';48 51 $lang['Type of option']='Type d\'option'; 49 52 $lang['Type']='Type'; -
extensions/MyPiwiShop/main.inc.php
r27568 r27589 83 83 load_language('plugin.lang', MPS_PATH); 84 84 85 // prepare plugin configuration86 $query='SELECT * FROM '.MPS_CONF_TABLE.';';87 $result = pwg_query($query);88 while($row = pwg_db_fetch_assoc($result)){89 $config = $row ;90 }91 85 92 $template->assign(array(93 'mps_conf' => $config94 ));95 86 96 87 } -
extensions/MyPiwiShop/maintain.inc.php
r27568 r27589 12 12 function install($plugin_version, &$errors=array()) 13 13 { 14 global $ conf, $prefixeTable;14 global $prefixeTable; 15 15 16 // add a new table17 16 $tables = mps_get_tables(); 18 17 … … 40 39 ) 41 40 ); 42 } 43 41 44 42 pwg_query(' 45 43 CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_product` ( … … 52 50 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 53 51 ;'); 54 52 55 53 pwg_query(' 56 54 CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_prod_img` ( … … 60 58 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 61 59 ;'); 62 60 63 61 pwg_query(' 64 62 CREATE TABLE IF NOT EXISTS `'. $prefixeTable .'mps_option` ( … … 90 88 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 91 89 ;'); 90 } 91 $this->installed = true; 92 92 93 $this->installed = true; 94 } 95 93 } 96 94 /** 97 95 * plugin activation … … 99 97 function activate($plugin_version, &$errors=array()) 100 98 { 101 if (!$this->installed) 99 100 if (!$this->installed) 102 101 { 103 102 … … 105 104 } 106 105 } 107 108 /** 109 * plugin deactivation 110 */ 106 111 107 function deactivate() 112 108 { 113 109 } 110 114 111 115 112 /** … … 119 116 { 120 117 global $prefixeTable; 121 118 echo('ret'), 122 119 // delete table 123 120 pwg_query('DROP TABLE `'. $prefixeTable .'mps_conf`;'); … … 129 126 } 130 127 } 131 132 128 133 129 function mps_get_tables() … … 152 148 return $tables; 153 149 } 150
Note: See TracChangeset
for help on using the changeset viewer.