Page 1 of 1

select record box

Posted: 2015-05-13 14:07
by jeannov
Is it possible to remove the select record boxes at the left of each record in the table view ?

Thanks.
Jean

Re: select record box

Posted: 2015-05-14 11:40
by Satya Kavala
Hi jeannov ,

yes it is possible, but you have to make small changes

see the files i attached.
open the required file_dml.php there you can find the code like below.


// process foreign key links
if($selected_id){
$templateCode=str_replace('<%%PLINK(CRnumber)%%>', ($combo_CRnumber->SelectedData ? "<span id=\"Pateint_Registration_plink1\" class=\"hidden\"><a class=\"btn btn-default\" href=\"Pateint_Registration_view.php?SelectedID=" . urlencode($combo_CRnumber->SelectedData) . "\"><i class=\"glyphicon glyphicon-search\"></i></a></span>" : ''), $templateCode);
$templateCode=str_replace('<%%PLINK(Department)%%>', ($combo_Department->SelectedData ? "<span id=\"Departments_plink2\" class=\"hidden\"><a class=\"btn btn-default\" href=\"Departments_view.php?SelectedID=" . urlencode($combo_Department->SelectedData) . "\"><i class=\"glyphicon glyphicon-search\"></i></a></span>" : ''), $templateCode);
$templateCode=str_replace('<%%PLINK(Referred_To)%%>', ($combo_Referred_To->SelectedData ? "<span id=\"Departments_plink3\" class=\"hidden\"><a class=\"btn btn-default\" href=\"Departments_view.php?SelectedID=" . urlencode($combo_Referred_To->SelectedData) . "\"><i class=\"glyphicon glyphicon-search\"></i></a></span>" : ''), $templateCode);
}

in the above code we can see three arguments depending upon the comma separator, So remove the second argument and place single codes(' ') in the plae of second argument like below.





// process foreign key links
if($selected_id){
$templateCode=str_replace('<%%PLINK(CRnumber)%%>','', $templateCode);
$templateCode=str_replace('<%%PLINK(Department)%%>','', $templateCode);
$templateCode=str_replace('<%%PLINK(Referred_To)%%>','', $templateCode);
}





if you have any doubts on this please PM me.

I'm happy to help you.

Re: select record box

Posted: 2015-05-14 11:51
by Satya Kavala
Hi,
Sorry for the above reply

go to datalist.php


if(!$Print_x) $this->HTML .= '<th style="width: 18px;" class="text-center"><input class="hidden-print" type="checkbox" title="' . htmlspecialchars($Translation['Select all records']) . '" id="select_all_records"></th>';


$this->HTML .= "<td class=\"text-center\"><input class=\"hidden-print record_selector\" type=\"checkbox\" id=\"record_selector_{$attr_id}\" name=\"record_selector[]\" value=\"{$attr_id}\"{$checked}></td>";



search for the above two lines and just comment those two lines with (double slash) //

these lines may be at the line numbers of 865 and 1030 approximately in datalist.php


if you have any doubts on this please PM me.

I'm happy to help you.

Re: select record box

Posted: 2015-05-14 12:13
by Satya Kavala
Hi,

If your issue is solved then please place me on code helper.

Re: select record box

Posted: 2015-05-15 00:56
by jeannov
Thanks Satya,

it is working very well, no more little select record boxes, looks cleaner.

Code helper topic is to pay tribute to Uday !
Should we start Satya code helper topic ?

Jean

Re: select record box

Posted: 2015-05-15 05:09
by Satya Kavala
Hi,
if you satisfied by my solution then start code helper topic.

Re: select record box

Posted: 2015-05-19 09:01
by Satya Kavala
Hello,
Please Refer to your friends for working on tasks which are payable for coding to solve the issues