- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
$URL1 = "db_edit.php?db=$db&field=$field&id=".$row['ID']."&setchbx=0&value=";
$URL2 = "db_edit.php?db=$db&field=$field&id=".$row['ID']."&setchbx=1&value=";
$Name1 = $Name."_0_".$row['ID'];
$Name2 = $Name."_1_".$row['ID'];
$NamePP = $Name."_pp_".$row['ID'];
$values = $row[$field];
if ($values=="") $values ="0|";
$values = explode("|",$values);
$numval = count($values)-1;
$lastval = $values[$numval];
if ($lastval=="") $lastval = "##";
$lastval = explode("#",$lastval);
$val = $lastval[2];
$sval = $val;
if ($val=="") $sval = "---";
if ($val=="") $val = $today_0;
$dvv = $val;
$val = explode(".",$val);
$bgcl = "#fff";
$bcl = "#fff";
if ($lastval[2]=="") {
$bgcl = "#fff";
$bcl = "#fff";
} else {
if (DateToInt($today_7)>DateToInt($lastval[2])) $bgcl = "#fee";
if (DateToInt($today_7)>DateToInt($lastval[2])) $bcl = "#f44";
if (DateToInt($today_1)>DateToInt($lastval[2])) $bgcl = "#faa";
if (DateToInt($today_1)>DateToInt($lastval[2])) $bcl = "#f44";
if (DateToInt($today_0)>DateToInt($lastval[2])) $bgcl = "#f44";
if (DateToInt($today_0)>DateToInt($lastval[2])) $bcl = "#f44";
}
if ($values[0]=="1") {
$bgcl = "#afa";
$bcl = "#afa";
}
Комментарии (0) RSS
Добавить комментарий