/
k64t34
/
oku
Обзор
Документация
Войти
/
k64t34
/
oku
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
admin/tarif_deviation.php
82 строки
3 KB
K64t
0
08 дек 2023, 19:34
08 дек 2023, 19:34
4e582e9
Код
Авторство
О чём код?
<?php echo '<p align="center">����� �� ����������(���./����)</p>'; ?> <table border="1" cellpadding="0" cellspacing="0" width="986" style="border-collapse: collapse"> <tr> <td width="100%" colspan="5" align="center"> <p><b>����������</b></td> </tr> <tr> <td width="50%" align="center" colspan="2" ><b>�������</b></td> <td width="50%" align="center" colspan="3" ><b>�����������</b></td> </tr> <tr> <td width="25%" align="center" ><b>��� ���������� </b></td> <td width="25%" align="center" ><b>��� ��������</b></td> <td width="25%" align="center" ><b>��� ���������� </b></td> <td width="25%" align="center" colspan="2" ><b>��� �������� </b></td> </tr> <tr> <!-- � � � � � � � � --> <!--�������-����������--> <td width="25%" align="center" > <?$tarif=firm_tarif_deviation1($firm_id,1,1);?> <input type="text" name="id_<?=$tarif[0]?>" size="10" class="fld_Edit" value="<?=$tarif[1]?>"></td> <!--//�������-��������--> <td width="25%" align="center" > <?$tarif=firm_tarif_deviation1($firm_id,1,0);?> <input type="text" name="id_<?=$tarif[0]?>" size="10" class="fld_Edit" value="<?=$tarif[1]?>"></td> <!-- � � � � � � � � � � � --> <? if ($rec_firm{'generation'}) {?> <!--�����������-����������--> <td width="25%" align="center" > <?$tarif=firm_tarif_deviation1($firm_id,0,1);?> <input type="text" name="id_<?=$tarif[0]?>" size="10" class="fld_Edit" value="<?=$tarif[1]?>"></td> <!--�����������-��������--> <td width="25%" align="center" > <?$tarif=firm_tarif_deviation1($firm_id,0,0);?> <input type="text" name="id_<?=$tarif[0]?>" size="10" class="fld_Edit" value="<?=$tarif[1]?>"></td> <? } else //������� ������ ��� ����������� { $sql = 'SELECT * FROM period'; $rs_period = mysql_query($sql); for ($i_increase=1;$i_increase==0;$i_increase--) {?> <td> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%"> <? mysql_data_seek($rs_period,0); while ($rec_period = mysql_fetch_array($rs_period, MYSQL_ASSOC)) {?> <tr> <td width="50%"><?=$rec_period{'name'}?></td> <td width="50%"> <?$tarif=firm_tarif_deviation1($firm_id,0,$i_increase,$rec_period{'id'});?> <input type="text" name="id_<?=$tarif[0]?>" size="10" class="fld_Edit" value="<?=$tarif[1]?>"></td> </tr> <?}?> </table> </td> <?}?> <? function firm_tarif_deviation1($idFirm,$iniciative,$Increase,$idPeriod) { /* ���� ��� ������ �� �����, �� ������� ������ � ��������� ���� */ return array(0,0); } ?>