Changes between Version 48 and Version 49 of Catalogue
- Timestamp:
- Jun 27, 2012 12:02:01 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Catalogue
v48 v49 8 8 function recalc(el) { 9 9 var price = parseFloat(el.parentNode.previousSibling.previousSibling.firstChild.nodeValue.replace(/\s/g, '')); 10 el.nextSibling.nodeValue = ' = ' + (price * el.value).toFixed(2).toString(); 10 var amountEl = el.nextSibling; 11 if( !amountEl ) { 12 amountEl = document.createTextNode(''); 13 el.parentNode.appendChild(amountEl); 14 } 15 amountEl.nodeValue = ' = ' + (price * el.value).toFixed(2).toString(); 11 16 } 12 17 … … 16 21 key = String.fromCharCode(key); 17 22 var regex = /[0-9]/; 18 if( !regex.test(key)) {23 if( !regex.test(key) ) { 19 24 theEvent.returnValue = false; 20 25 if(theEvent.preventDefault) … … 74 79 <td class="store"> × <input name="monitoring_basic" class="shopping-cart-input" 75 80 onkeyup="javascript:recalc(this)" 76 onkeypress="javascript:digitsOnly(event)"></input> 81 onkeypress="javascript:digitsOnly(event)"></input></td> 77 82 </tr> 78 83 <tr> 79 84 <td class="store"> + учет топлива, 1 месяц</td> 80 85 <td class="store" align="center">200 руб/мес<sup>1</sup></td> 81 <td class="store"> × <input name="monitoring_fuel" class="shopping-cart-input"></input></td> 86 <td class="store"> × <input name="monitoring_fuel" class="shopping-cart-input" 87 onkeyup="javascript:recalc(this)" 88 onkeypress="javascript:digitsOnly(event)"></input></td> 82 89 </tr> 83 90 <tr> 84 91 <td class="store"> + контроль рейсовой работы, 1 месяц</td> 85 92 <td class="store" align="center">200 руб/мес<sup>1</sup></td> 86 <td class="store"> × <input name="monitoring_routes" class="shopping-cart-input"></input></td> 93 <td class="store"> × <input name="monitoring_routes" class="shopping-cart-input" 94 onkeyup="javascript:recalc(this)" 95 onkeypress="javascript:digitsOnly(event)"></input></td> 87 96 </tr> 88 97 <tr> … … 97 106 <td class="store">Лицензия на 10 объектов, неограниченная по времени</td> 98 107 <td class="store" align="center">13 000 руб<sup>2</sup></td> 99 <td class="store"> × <input name="monitorserver_10" class="shopping-cart-input"></input></td> 108 <td class="store"> × <input name="monitorserver_10" class="shopping-cart-input" 109 onkeyup="javascript:recalc(this)" 110 onkeypress="javascript:digitsOnly(event)"></input></td> 100 111 </tr> 101 112 <tr> 102 113 <td class="store">Лицензия на 50 объектов, неограниченная по времени</td> 103 114 <td class="store" align="center">26 000 руб<sup>2</sup></td> 104 <td class="store"> × <input name="monitorserver_50" class="shopping-cart-input"></input></td> 115 <td class="store"> × <input name="monitorserver_50" class="shopping-cart-input" 116 onkeyup="javascript:recalc(this)" 117 onkeypress="javascript:digitsOnly(event)"></input></td> 105 118 </tr> 106 119 <tr> 107 120 <td class="store">Лицензия на 100 объектов, неограниченная по времени</td> 108 121 <td class="store" align="center">39 000 руб<sup>2</sup></td> 109 <td class="store"> × <input name="monitorserver_100" class="shopping-cart-input"></input></td> 122 <td class="store"> × <input name="monitorserver_100" class="shopping-cart-input" 123 onkeyup="javascript:recalc(this)" 124 onkeypress="javascript:digitsOnly(event)"></input></td> 110 125 </tr> 111 126 <tr> 112 127 <td class="store">Лицензия на 200 объектов, неограниченная по времени</td> 113 128 <td class="store" align="center">74 750 руб<sup>2</sup></td> 114 <td class="store"> × <input name="monitorserver_200" class="shopping-cart-input"></input></td> 129 <td class="store"> × <input name="monitorserver_200" class="shopping-cart-input" 130 onkeyup="javascript:recalc(this)" 131 onkeypress="javascript:digitsOnly(event)"></input></td> 115 132 </tr> 116 133 <tr> … … 130 147 <td class="store">Техническое сопровождение, годовая подписка</td> 131 148 <td class="store" align="center">10 000 руб/год</td> 132 <td class="store"> × <input name="subscription_10" class="shopping-cart-input"></input></td> 149 <td class="store"> × <input name="subscription_10" class="shopping-cart-input" 150 onkeyup="javascript:recalc(this)" 151 onkeypress="javascript:digitsOnly(event)"></input></td> 133 152 </tr> 134 153 <tr> 135 154 <td class="store">Техническая поддержка, годовая подписка</td> 136 155 <td class="store" align="center">50 000 руб/год</td> 137 <td class="store"> × <input name="subscription_50" class="shopping-cart-input"></input> (Уровень SLA, 1-5)</td> 156 <td class="store"> × <input name="subscription_50" class="shopping-cart-input" 157 onkeyup="javascript:recalc(this)" 158 onkeypress="javascript:digitsOnly(event)"></input> (Уровень SLA, 1-5)</td> 138 159 </tr> 139 160 <tr> … … 147 168 <td class="store">Датчик уровня топлива (ДУТ) ёмкостной OmniComm LLS</td> 148 169 <td class="store" align="center">9 700 руб</td> 149 <td class="store"> × <input name="subscription_10" class="shopping-cart-input"></input></td> 170 <td class="store"> × <input name="subscription_10" class="shopping-cart-input" 171 onkeyup="javascript:recalc(this)" 172 onkeypress="javascript:digitsOnly(event)"></input></td> 150 173 </tr> 151 174 <tr> … … 155 178 <td class="store">Установка автомобильного трекера</td> 156 179 <td class="store" align="center">1 000 руб</td> 157 <td class="store"> × <input name="tracker_mounting" class="shopping-cart-input"></input></td> 180 <td class="store"> × <input name="tracker_mounting" class="shopping-cart-input" 181 onkeyup="javascript:recalc(this)" 182 onkeypress="javascript:digitsOnly(event)"></input></td> 158 183 </tr> 159 184 <tr> 160 185 <td class="store">Установка ДУТ</td> 161 186 <td class="store" align="center">1 900 руб</td> 162 <td class="store"> × <input name="fuelsensor_mounting" class="shopping-cart-input"></input></td> 187 <td class="store"> × <input name="fuelsensor_mounting" class="shopping-cart-input" 188 onkeyup="javascript:recalc(this)" 189 onkeypress="javascript:digitsOnly(event)"></input></td> 163 190 </tr> 164 191 <tr> 165 192 <td class="store">Настройка и тарировка ДУТ/топливного бака</td> 166 193 <td class="store" align="center">900 руб</td> 167 <td class="store"> × <input name="fuelsensor_mounting" class="shopping-cart-input"></input></td> 194 <td class="store"> × <input name="fuelsensor_mounting" class="shopping-cart-input" 195 onkeyup="javascript:recalc(this)" 196 onkeypress="javascript:digitsOnly(event)"></input></td> 168 197 </tr> 169 198 <tr>