function ew_GetFileViewTag($fld, $fn) { if (!ew_EmptyStr($fn)) { if ($fld->IsBlobImage || ew_IsImageFile($fn)) { if ($fld->HrefValue == "" && !$fld->UseColorbox) { return "<img class=\"ewImage\" src=\"" . $fn . "\" alt=\"\"" . $fld->ViewAttributes() . ">"; } else { return "<a" . $fld->LinkAttributes() . "><img class=\"ewImage\" src=\"" . $fn . "\" alt=\"\"" . $fld->ViewAttributes() . "></a>"; } } else { if ($fld->FldDataType == EW_DATATYPE_BLOB) { $name = $fld->Upload->FileName != "" ? $fld->Upload->FileName : $fld->FldCaption(); } else { $name = basename($fn); } return "<div><a href=\"" . $fn . "\">" . $name . "</a></div>"; } } else { return ""; } }
function &Db($dbid = 0) { global $EW_CONN; if (ew_EmptyStr($dbid)) { $dbid = 0; } if (array_key_exists($dbid, $EW_CONN)) { $db =& $EW_CONN[$dbid]; } else { $db = FALSE; } return $db; }
> <?php echo $tbl_user->user_real_name->ListViewValue(); ?> </span> </span></td> <td<?php echo $tbl_user->user_avatar->CellAttributes(); ?> ><span id="el<?php echo $tbl_user_delete->RowCnt; ?> _tbl_user_user_avatar" class="tbl_user_user_avatar"> <span> <?php if (!ew_EmptyStr($tbl_user->user_avatar->ListViewValue())) { ?> <img src="<?php echo $tbl_user->user_avatar->ListViewValue(); ?> " alt="" style="border: 0;"<?php echo $tbl_user->user_avatar->ViewAttributes(); ?> ><?php } ?> </span> </span></td> <td<?php echo $tbl_user->user_cover->CellAttributes(); ?>
><?php if (!ew_EmptyStr($messages->image->ListViewValue())) { ?> <img src="<?php echo "http://mywhatsapp.co.ke/cfm/My/" . $messages->image->ListViewValue(); ?> " alt=""<?php echo $messages->image->ViewAttributes(); ?> ><?php } ?> </a> <?php } else { if (!ew_EmptyStr($messages->image->ListViewValue())) { ?> <img src="<?php echo $messages->image->ListViewValue(); ?> " alt=""<?php echo $messages->image->ViewAttributes(); ?> ><?php } } ?> <span id="tt_messages_x<?php echo $messages_list->RowCnt; ?> _image" style="display: none">
?> "></a> <?php if ($tbl_doc->doc_url->Visible) { // doc_url ?> <td<?php echo $tbl_doc->doc_url->CellAttributes(); ?> ><span id="el<?php echo $tbl_doc_list->RowCnt; ?> _tbl_doc_doc_url" class="tbl_doc_doc_url"> <span> <?php if (!ew_EmptyStr($tbl_doc->doc_url->ListViewValue())) { ?> <img src="<?php echo $tbl_doc->doc_url->ListViewValue(); ?> " alt="" style="border: 0;"<?php echo $tbl_doc->doc_url->ViewAttributes(); ?> ><?php } ?> </span> </span></td> <?php } ?>
?> <tr id="r_doc_url"<?php echo $tbl_doc->RowAttributes(); ?> > <td class="ewTableHeader"><span id="elh_tbl_doc_doc_url"><table class="ewTableHeaderBtn"><tr><td><?php echo $tbl_doc->doc_url->FldCaption(); ?> </td></tr></table></span></td> <td<?php echo $tbl_doc->doc_url->CellAttributes(); ?> ><span id="el_tbl_doc_doc_url"> <span> <?php if (!ew_EmptyStr($tbl_doc->doc_url->ViewValue)) { ?> <img src="<?php echo $tbl_doc->doc_url->ViewValue; ?> " alt="" style="border: 0;"<?php echo $tbl_doc->doc_url->ViewAttributes(); ?> ><?php } ?> </span> </span></td> </tr> <?php }
?> <tr id="r_user_avatar"<?php echo $tbl_user->RowAttributes(); ?> > <td class="ewTableHeader"><span id="elh_tbl_user_user_avatar"><table class="ewTableHeaderBtn"><tr><td><?php echo $tbl_user->user_avatar->FldCaption(); ?> </td></tr></table></span></td> <td<?php echo $tbl_user->user_avatar->CellAttributes(); ?> ><span id="el_tbl_user_user_avatar"> <span> <?php if (!ew_EmptyStr($tbl_user->user_avatar->ViewValue)) { ?> <img src="<?php echo $tbl_user->user_avatar->ViewValue; ?> " alt="" style="border: 0;"<?php echo $tbl_user->user_avatar->ViewAttributes(); ?> ><?php } ?> </span> </span></td> </tr> <?php }