Pruvodce na nastavovani prirazky
[mirrors/SokoMan.git] / assistants / set-margin.inc.php
1 <?php
2 switch($SUBPATH[0]) {
3 default: case 1:
4 echo $this->html->form("$URL/2", 'GET', array(
5 array('margin','40','text',false,'autofocus','margin (%):'),
6 array(false,'SET-MARGIN','submit')
7 ));
8 break;
9 case 2:
10 $margin = 1+($_GET['margin']/100);
11 $this->db->safe_query("UPDATE model SET model_price_out = CEIL(model_price_in * $margin)");
12 echo(T('Margin set to').' '.($margin*100-100).'%');
13 break;
14 }
This page took 0.264879 seconds and 4 git commands to generate.