Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Yet another Newbie question.....

phpMyEdit Configuration     Yet another Newbie question.....
Odoslať novú tému   Odpovedať na tému    
 
smudley     Založený: 18.02.2004   Príspevky: 5  
Príspevok Zaslal: 2006-10-30 15:07
Návrat hore  Odpovedať s citátom     

This is a wonderful tool but I wonder if I'm asking it to do something it's not designed to do.
I have searched the forum for the answer and it's probably combination of several answers.

How do I put the results in to a URL from different columns of the same table.
Kód:
file://///Server/folder/folder/[column1]/[column1]-3xx/[column1]-[column2]/[column3]138.pdf


To get it to come out like this?:

Kód:
file://///Server/folder/folder/PMH/PMH-3xx/PMH-359/A138.pdf


Where:
[column1] = PMH
[column2] = 359
[column3] = A

I've looked at the Doc's at the URL and sql section but it's not answering what I need.

Am I off my rocker or is there a way to do this?

Thanks in advance!

Smudley

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-11-02 18:03
Návrat hore  Odpovedať s citátom     

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html#AEN967

is the only possible workaround

just make it look like <a href...>

and set escape option to false.

 
smudley     Založený: 18.02.2004   Príspevky: 5  
Príspevok Zaslal: 2006-11-07 06:52
Návrat hore  Odpovedať s citátom     

Thanks for the reply Michal but I must be dense. I do not understand your reply. Would you please explain a little bit more.

Thanks,
Smudley

 
smudley     Založený: 18.02.2004   Príspevky: 5  
Príspevok Zaslal: 2006-11-29 23:02
Návrat hore  Odpovedať s citátom     

smudley Napísal:
Thanks for the reply Michal but I must be dense. I do not understand your reply. Would you please explain a little bit more.

Thanks,
Smudley


I don't suppose you would answer this?

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2006-12-02 15:53
Návrat hore  Odpovedať s citátom     

The key to doing this is to create a virtual field using the 'sql' option and use an appropriate SQL statement to compose the URL as you want it. You will also need to compose the HTML around it as well to turn it into a clickable link. Remember to set 'escape' to false.

 
smudley     Založený: 18.02.2004   Príspevky: 5  
Príspevok Zaslal: 2006-12-15 19:55
Návrat hore  Odpovedať s citátom     

ajh Napísal:
The key to doing this is to create a virtual field using the 'sql' option and use an appropriate SQL statement to compose the URL as you want it. You will also need to compose the HTML around it as well to turn it into a clickable link. Remember to set 'escape' to false.


Thanks @ajh for answering this but I guess I'm not doing something right. I can not get the 'sql' to show up in my HTML string.
I can get it to work without the HTML.

Kód:

$opts ['fdd']['Drawing'] = array (
    'sql' => 'punch',
    'escape' => false,
    'name'     => 'Show Prints',
    'URL'      =>
    'file:////Server/folder/$value.pdf',
    'URLtarget' => '_blank',
    'URLdisp'  => 'Click to view Print'
);


I'm trying to have it where a user clicks on the link to open a PDF in the browser that is stored on the local server using UNC path.

Kód:

'sql' => 'punch',


Is what I want to be placed where the $value is.

Kód:

'file:////Server/folder/$value.pdf',


 
smudley     Založený: 18.02.2004   Príspevky: 5  
Príspevok Zaslal: 2006-12-20 22:11
Návrat hore  Odpovedať s citátom     

doug Napísal:
I'm not sure I completely understand the objective, but perhaps this example will help someone:

Kód:
$opts['fdd']['email'] = array(
  'name'       => 'Email',
  'maxlen'     => 45,
  'required'   => false,
  'options'    => 'ACPVDFL',
  'select'     => 'T',
  'nowrap'     => 'false',
  'help|ACP'   => 'Limit 45 chars.',
  'sort'       => true
);

$opts['fdd']['email']['escape'] = false;

$opts['fdd']['email']['sql|LF'] =
  'if(email <> "",
    CONCAT("<a href=\"mailto:",
      email,
        "?subject=Hello&body=Merry%20Christmas,
          Bill\">",
            email,
              "</a>"),
                "")';


Thanks @doug for the example.
I'll see if I can apply it to my situation.

Smudley

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov