4 echo $this->html
->form("$URL/2", 'GET', array(
5 array('margin','40','text',false,'autofocus','margin (%):'),
6 array(false,'SET-MARGIN','submit')
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).'%');
This page took 0.264879 seconds and 4 git commands to generate.