- 001
- 002
- 003
- 004
- 005
- 006
- 007
- 008
- 009
- 010
- 011
- 012
- 013
- 014
- 015
- 016
- 017
- 018
- 019
- 020
- 021
- 022
- 023
- 024
- 025
- 026
- 027
- 028
- 029
- 030
- 031
- 032
- 033
- 034
- 035
- 036
- 037
- 038
- 039
- 040
- 041
- 042
- 043
- 044
- 045
- 046
- 047
- 048
- 049
- 050
- 051
- 052
- 053
- 054
- 055
- 056
- 057
- 058
- 059
- 060
- 061
- 062
- 063
- 064
- 065
- 066
- 067
- 068
- 069
- 070
- 071
- 072
- 073
- 074
- 075
- 076
- 077
- 078
- 079
- 080
- 081
- 082
- 083
- 084
- 085
- 086
- 087
- 088
- 089
- 090
- 091
- 092
- 093
- 094
- 095
- 096
- 097
- 098
- 099
- 100
<?php
preprint($_POST);
if (
(
isset($_POST['id']) &&
isset($_POST['kart']) &&
isset($_POST['kart']) &&
isset($_POST['print'])&&
isset($_POST['num'])&&
isset($_POST['resourse'])&&
isset($_POST['pr1'])&&
isset($_POST['pr2'])&&
isset($_POST['pr3'])&&
isset($_POST['pr4'])&&
isset($_POST['pr5'])
)
&&
(
(count($_POST['id']) == count($_POST['kart'])) &&
(count($_POST['id']) == count($_POST['print'])) &&
(count($_POST['id']) == count($_POST['num'])) &&
(count($_POST['id']) == count($_POST['resourse'])) &&
(count($_POST['id']) == count($_POST['pr1'])) &&
(count($_POST['id']) == count($_POST['pr2'])) &&
(count($_POST['id']) == count($_POST['pr3'])) &&
(count($_POST['id']) == count($_POST['pr4'])) &&
(count($_POST['id']) == count($_POST['pr5']))
)
)
{
$momass = array();
if ($this->url_array[5] == 'ink')
{
$type = "1";
}
elseif ($this->url_array[5] == 'laser')
{
$type = "2";
}
foreach($_POST['id'] as $key => $val)
{
$momass[$key] = new cPrinterElements($val);
$momass[$key]->setData('type',$type);
$pr_id = trim(strip_tags($this->url_array[4]));
$momass[$key]->setData('printer_id',$pr_id);
}
foreach($_POST['kart'] as $key => $val)
{
$momass[$key]->setData('kart',$val);
}
foreach($_POST['print'] as $key => $val)
{
$momass[$key]->setData('print',$val);
}
foreach($_POST['num'] as $key => $val)
{
$momass[$key]->setData('num',$val);
}
foreach($_POST['resourse'] as $key => $val)
{
$momass[$key]->setData('resourse',$val);
}
foreach($_POST['pr1'] as $key => $val)
{
$momass[$key]->setData('pr1',$val);
}
foreach($_POST['pr2'] as $key => $val)
{
$momass[$key]->setData('pr2',$val);
}
foreach($_POST['pr3'] as $key => $val)
{
$momass[$key]->setData('pr3',$val);
}
foreach($_POST['pr4'] as $key => $val)
{
$momass[$key]->setData('pr4',$val);
}
foreach($_POST['pr5'] as $key => $val)
{
$momass[$key]->setData('pr5',$val);
}
foreach($_POST['komment'] as $key => $val)
{
$momass[$key]->setData('komment',$val);
}
foreach($_POST['link'] as $key => $val)
{
$momass[$key]->setData('link',$val);
}
foreach($momass as $uno)
{
if ($uno->getID())
{
Ранеее я постил всьюху.. это ее контроллер. пошел пить водку.