| 433 | |
| 434 | == Dodanie pola status == |
| 435 | {{{ |
| 436 | #!php |
| 437 | |
| 438 | require_once('./classes/UsefullDataSets/ProcessesStatesDataSet.inc'); |
| 439 | |
| 440 | $set = new ProcessesStatesDataSet(FALSE, TRUE); |
| 441 | $set->getStatesForDocument($dctpid); // $dctpid - Typ dokumentu (types_of_documents.dctpid) |
| 442 | |
| 443 | $this->tpstid = new DBSelect('yourTpstidSelectName'); |
| 444 | $this->tpstid->top = '10px'; |
| 445 | $this->tpstid->left = '70px'; |
| 446 | $this->tpstid->width = '200px'; |
| 447 | $this->tpstid->query = $set->getSQLQuery(); |
| 448 | $this->tpstid->update(); |
| 449 | }}} |