- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
switch ($status){
case STATUS_WAIT:
$sql='UPDATE orders SET status=\''.STATUS_WAIT.'\' WHERE id='.$id;
break;
case STATUS_ACCEPT:
$sql='UPDATE orders SET status=\''.STATUS_ACCEPT.'\' WHERE id='.$id;
break;
case STATUS_ORDER:
$sql='UPDATE orders SET status=\''.STATUS_ORDER.'\' WHERE id='.$id;
break;
case STATUS_CANCEL:
$sql='UPDATE orders SET status=\''.STATUS_CANCEL.'\' WHERE id='.$id;
break;
default: $this->addError('недопустимый статус');
}
GhOsTMZ 07.04.2011 12:11 # 0
guest 07.04.2011 12:28 # 0
e2718 07.04.2011 12:30 # −1
striker 08.04.2011 04:12 # +1
Lure Of Chaos 08.04.2011 10:44 # +2
bugmenot 08.04.2011 04:30 # 0