Topic: How do i add clickable link for table cell?
im trying to add gl_budget.php from table column Amount into a clickable link how do it ?
gl.budget.php
label_cell(number_format2($d, 0), "nowrap align=right",get_budget_view_str($myrow["id"]));
ui.view code
function get_budget_view_str($type, $trans_no, $label="", $force=false, $class='', $id='')
{
if (!$force && !user_show_gl_info())
return "";
$icon = false;
if ($label == "")
{
$label = _("GL");
$icon = ICON_GL;
}
$url = ($type == ST_WORKORDER) ? "manufacturing/view/wo_costs_view.php?trans_no=$trans_no"
: "gl/view/gl_budget_view.php?type_id=$type&trans_no=$trans_no";
return viewer_link($label, $url, $class, $id, $icon);
}
<a href="https://ibb.co/pKq6ST1"><img src="https://i.ibb.co/pKq6ST1/67.png" alt="67" border="0"></a>