clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-14 00:40
Návrat hore
Odpovedať s citátom
|
Is it possible to have a link, instead of the radio button, to select a certain record to view/change?
I ask because I have a large table, and selecting the radio button and then scrolling all the way to the bottom can be cumbersome with such a large table.
Thanks!
Chris
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-12-16 06:01
Návrat hore
Odpovedať s citátom
|
Change the nav value to TUD?
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-16 06:26
Návrat hore
Odpovedať s citátom
|
Doug, you solved my two issues in one evening. Thank you very much.
Do you work for Platon? If I buy a phpMyEdit license, do you get a chunk of that money?
Thanks again. Now I'm looking in phpMyEdit.class.php to see if I can change that V link to 'More Info' or something. Any hints?
Chris
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-12-16 14:53
Návrat hore
Odpovedať s citátom
|
Look to the English language files in the /lang/ folder and change View to More Info at that location.
The project maintainer, Ondrej Jombik, offers a commercial license and some Extensions:
http://www.phpmyedit.org/article.php?commercial
Having previously licensed phpMyEdit, I offer a version which instantly generates a form for each table in the currently configured database:
http://www.php-form-generator.com/phpmyedit/generator.php
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-16 18:10
Návrat hore
Odpovedať s citátom
|
Doug,
I changed 'View', but it only changed the buttons at the top and bottom. What can I do to change the links for each record, where the link text is just 'V'? Thanks again.
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-16 18:43
Návrat hore
Odpovedať s citátom
|
Solved.
For anyone else, line 2417 of phpMyEdit.class.php :
Kód: |
echo '<a href="',$viewQuery,'" title="',$viewTitle,'" class="',$css_class_name,'">V</a>'; |
Change the V to whatever you want the link text to be.
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-16 19:11
Návrat hore
Odpovedať s citátom
|
Last question(s).
Is there a way to style the single record view (view/change) differently from the list view? I was attempting to make the width smaller when just looking at one record. I can't seem to find any different html elements that I could use css on.
Also, is there a way to add html elements after the single record view (view/change), but not have them on the list view? This is a bigger project of mine, where I would like to add a graph of some numbers in that record.
Thanks.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-12-16 19:48
Návrat hore
Odpovedať s citátom
|
I understand only one of your two questions. To pick out styles which vary somewhat by page mode, use Firefox with Web Developer Toolbar / CSS / View Style Information. About 75 style exist in various modes.
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-16 19:50
Návrat hore
Odpovedať s citátom
|
More on my second question. I want to add a graphic below the phpMyEdit, but only on the record view (which I've now linked to as "More Info") and not below the list table with all the records. Is that possible?
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-12-16 20:03
Návrat hore
Odpovedať s citátom
|
Get a copy of dBug.php to install in the page footer, exposing which PME_* variables are set or unset.
http://dbug.ospinto.com/
Kód: |
require_once('dBug.php');
new dBug ($GLOBALS); |
PME_sys_operation is unset in List mode and returns a variety of values when other INPUT buttons have been clicked.
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-16 20:13
Návrat hore
Odpovedať s citátom
|
doug Napísal: |
To pick out styles which vary somewhat by page mode, use Firefox with Web Developer Toolbar / CSS / View Style Information. About 75 style exist in various modes. |
The styles for both table and view modes look the same and have the same elements (.pme-form and .pme-main). If there a way to only style the view mode?
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-12-16 20:16
Návrat hore
Odpovedať s citátom
|
Think about it.
Conditionally include stylesheets based on whether or not PME_sys_operation is set, and if set, then if == View, include a second stylesheet below the primary one in your page header.
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-16 20:19
Návrat hore
Odpovedať s citátom
|
Got it. Thanks for all the help.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-12-16 20:26
Návrat hore
Odpovedať s citátom
|
The simpler you keep it, the fewer unexpected events will occur (e.g. Apply button usage in change mode). Thus experiment with each available button in all page modes. Also use the Forum's Search feature to find examples of usage for PME_sys_operation.
In a log-in system with varying user levels, various privileges or fields or other settings can be restricted based on known session variables originating within your project (non-phpMyEdit variables). Put global phpMyEdit settings for navigation and similar items in one include file and tweak things like privileges within the main script.
|
clindsey
Založený: 01.09.2008
Príspevky: 31
Zaslal: 2009-12-18 19:00
Návrat hore
Odpovedať s citátom
|
Doug,
Thanks for the help, I think I have figured that out. One last question. How can I move the text link to view to the far right side of the page?
Chris
|
Odoslať novú tému
Odpovedať na tému
Choď na stránku 1, 2 Ďalší
|