Multi view custom code
if($table=="badge" && $field=="Photo" && $ptype=="view")
{
if ($value) {
$value = "";
for($i=0;$i<count(json_decode($data['Photo'],true));$i++){
$value = $value."
<a class='popupwindow' rel='windowCenter'href='print-lundscape.php?idb=".$data["Idb"]."');\">
<img border=\"0\" style=\"max-width:120px;max-height:140px;\"src=\"http://localhost/live_supplier/mfhandler.php?file=".json_decode($data['Photo'],true)[$i]['usrName']."&table=badge&field=Photo&pageType=list&key1=".$data["Idb"]."\"&nodisp=1>
</a>";
}
}
else {
$value ="
<a class='popupwindow' rel='windowCenter'href='print-lundscape.php?idb=".$data["Idb"]."');\"><img src=\"no-img.jpg\" width=\"90\" height=\"100\"></a>";
};;
if($table=="badge" && $field=="Photo" && $ptype=="view")
{
if ($value) {
$value = "";
for($i=0;$i<count(json_decode($data['Photo'],true));$i++){
$value = $value."
<a class='popupwindow' rel='windowCenter'href='print-lundscape.php?idb=".$data["Idb"]."');\">
<img border=\"0\" style=\"max-width:120px;max-height:140px;\"src=\"http://localhost/live_supplier/mfhandler.php?file=".json_decode($data['Photo'],true)[$i]['usrName']."&table=badge&field=Photo&pageType=list&key1=".$data["Idb"]."\"&nodisp=1>
</a>";
}
}
else {
$value ="
<a class='popupwindow' rel='windowCenter'href='print-lundscape.php?idb=".$data["Idb"]."');\"><img src=\"no-img.jpg\" width=\"90\" height=\"100\"></a>";
};;
0 comments:
Post a Comment