" value="" autocomplete="off">
">
db->query("select $fieldName from $tableName where $lookupField='$V'")->row();
$result[] = $v->$fieldName;
endforeach;
return implode(",", $result);
}
function getFieldfromValue($tableName, $fieldName, $lookupField, $referenceValue)
{
$ci = &get_instance();
$t = "select $fieldName from $tableName where $lookupField='$referenceValue'"; //echo $t; //die;
$v = $ci->db->query($t);
if ($v->num_rows() > 0) {
$v = $v->row();
return $v->$fieldName;
} else {
return "N/A";
}
}
function fillComboWithValue($fieldName, $displayName, $fieldID, $tableName, $displayField, $valueField, $default = "", $CSSclass = "", $multiple = false, $condition = "")
{
$ci = &get_instance();
?>
";
//$R=DB::select("list columns from $tableName");
// print_r(Schema::getColumnListing($tableName));
echo "";
}
function showEditButton($url, $text = "Edit")
{
?>