Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  HowTo: make popup from List to View (code snip)

phpMyEdit General     HowTo: make popup from List to View (code snip)
Post new topic   Reply to topic    
 
Zack     Joined: 23 Jul 2004   Posts: 5  
Post Posted: 2004-07-29 19:46
Back to top  Reply with quote     

FYI:

I was wanting to make a popup for a project.
Here it is.

Edit: phpMyEdit.class.php
About line: 2052

Current:
Code:
if ($this->view_enabled()) {
$printed_out = true;
echo '<a "class="',$css_class_name,'" href="';
echo htmlspecialchars($this->page_name.$qviewStr),'"><img class="';
echo $css_class_name,'" src="',$this->url['images'];
echo 'pme-view.png" height="15" width="16" border="0" alt="';
echo htmlspecialchars($this->labels['View']),'" title="';
echo htmlspecialchars($this->labels['View']),'"></a>';
}


Edited:
Code:
if ($this->nav_graphic_links()) {
$printed_out = false;
if ($this->view_enabled()) {
$printed_out = true;
echo "<a href=\"$this->page_name.$qviewStr\" target=\"_blank\" onClick=\"PopUp=window.open('$this->page_name.$qviewStr','NewWin','toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=no,width=400,height=400,left=430,top=23'); PopUp.focus(); return false;\">";
echo '<center><img class="',$css_class_name,'" src="',$this->url['images'];
echo 'pme-view.png" height="15" width="16" border="0" alt="';
echo htmlspecialchars($this->labels['View']),'" title="';
echo htmlspecialchars($this->labels['View']),'"></center></a>';
}


Thanks for phpMyEdit.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy