Is it possible to remove the select record boxes at the left of each record in the table view ?
Thanks.
Jean
select record box
-
- Veteran Member
- Posts: 45
- Joined: 2015-04-15 06:33
- Location: Hyderabad
- Contact:
Re: select record box
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.
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.
- Attachments
-
- search2.PNG (50.9 KiB) Viewed 6549 times
-
- search.PNG (47.96 KiB) Viewed 6549 times
-
- Veteran Member
- Posts: 45
- Joined: 2015-04-15 06:33
- Location: Hyderabad
- Contact:
Re: select record box
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.
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.
- Attachments
-
- select2.PNG (58.49 KiB) Viewed 6549 times
-
- select.PNG (57.29 KiB) Viewed 6549 times
-
- Veteran Member
- Posts: 45
- Joined: 2015-04-15 06:33
- Location: Hyderabad
- Contact:
Re: select record box
Hi,
If your issue is solved then please place me on code helper.
If your issue is solved then please place me on code helper.
Re: select record box
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
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
-
- Veteran Member
- Posts: 45
- Joined: 2015-04-15 06:33
- Location: Hyderabad
- Contact:
Re: select record box
Hi,
if you satisfied by my solution then start code helper topic.
if you satisfied by my solution then start code helper topic.
-
- Veteran Member
- Posts: 45
- Joined: 2015-04-15 06:33
- Location: Hyderabad
- Contact:
Re: select record box
Hello,
Please Refer to your friends for working on tasks which are payable for coding to solve the issues
Please Refer to your friends for working on tasks which are payable for coding to solve the issues