| Index
» Projekty
» phpMyEdit
» Fórum
» Need Help with links |
 |
EMRadmin
Založený: 13.09.2008
Príspevky: 4
Zaslal: 2008-09-13 03:24
Návrat hore
Odpovedať s citátom
|
Hello,
I am trying to create a link for every record in the database. I am manually creating the link and inputing it into the database, I would like phpMyEdit to show the link and make it clickable.
Example of link:
<a target="_blank" href="http://www.betterhealthcaregroup.com/EMR/TESTDOCTOR/Charts/54182_ClinicalChart.php">
Imprimir</a>
How do I do this? I am Clueless[/url]
|
EMRadmin
Založený: 13.09.2008
Príspevky: 4
Zaslal: 2008-09-13 16:35
Návrat hore
Odpovedať s citátom
|
| doug Napísal: |
| Are the links identical? Or do they vary based on another field? |
No For Example
PatintID | Nombre | Apellido | ExpedienteClinico
------------------------------------------------
12345 | Peter | Jones |
Imprimir
12346 | Sammy | Doe |
Imprimir
------------------------------------------------
Each of the links in the ExpedienteClinico Column will go to a specific link to a file of that record. Basically when the Emergency room click on the link, it will take them to that patients medical record. (a php file on the server).
Thanks in advance.
|
EMRadmin
Založený: 13.09.2008
Príspevky: 4
Zaslal: 2008-09-13 18:55
Návrat hore
Odpovedať s citátom
|
Thanks for the code. I really appreciate your help. I placed your code and took out what was there. Results: Its shows the complete link:
<a href="http://www.betterhealthcaregroup.com/EMR/TESTDOCTOR/ClinicalCharts/54182_ClinicalChart.php">54182_ClinicalChart.php</a>
but I would rather only show
Imprimir
The reason being is that the link is very long and ruins the structure of the table.
Also the link is not clickable, what can I do there?
| doug Napísal: |
For View, List, and Filter modes, if the filename "54182_ClinicalChart.php" is entered in the database field `ExpedienteClinico` then you can use MySQL's CONCAT statement to manually code a link to http://www.betterhealthcaregroup.com/EMR/TESTDOCTOR/Charts/
| Kód: |
$opts['fdd']['ExpedienteClinico']['sql|VLF'] =
'if(ExpedienteClinico <> "",
CONCAT("<a href=\"http://www.betterhealthcaregroup.com/EMR/TESTDOCTOR/Charts/",
ExpedienteClinico,
"\">",
ExpedienteClinico,
"</a>"),
"")'; |
|
|
EMRadmin
Založený: 13.09.2008
Príspevky: 4
Zaslal: 2008-09-13 19:20
Návrat hore
Odpovedať s citátom
|
Im a novice, "I feel Stupid"
Where should I put that exactly? I got an error:
Parse error: parse error, unexpected T_STRING
This is the code I have now:
| Kód: |
$opts['fdd']['ExpedienteClinico']['sql|VLF'] =
'if(ExpedienteClinico <> "",
CONCAT("<a href=\"http://www.betterhealthcaregroup.com/EMR/TESTDOCTOR/ClinicalCharts/",
ExpedienteClinico,
"\">",
ExpedienteClinico,<br>
'escape' => false,
"</a>"),
"")'; |
| doug Napísal: |
I forgot: add to the field array
|
|
thefeldkircher
Založený: 11.10.2008
Príspevky: 9
Zaslal: 2008-10-19 14:53
Návrat hore
Odpovedať s citátom
|
| doug Napísal: |
| Are the links identical? Or do they vary based on another field? |
This is a very good question...
How do you create a url based on two fields?
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2008-11-09 06:32
Návrat hore
Odpovedať s citátom
|
Doug,
How would you make the url open in a new window? I tried adding
in several places, but I kept getting mysql errors.
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2008-11-09 07:51
Návrat hore
Odpovedať s citátom
|
Thanks again!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|