Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Prev Previous Post   Next Post Next
  #1  
Old 02-07-2005, 08:36 AM
Joe Pimms Joe Pimms is offline
 
Join Date: Jan 2005
Location: Canada
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default help with a pop-up and database connection

i have a java script that will do a pop-up for a new window and i started doin a view.php file so when a user selects an item a pop-up will show with all the contents my problem is im haveing problems with making the php file to do that

look at ss1 image this is the code i have:
PHP Code:
<td class='alt2' align='center' width='1%'><a href=\"view.php?$session[sessionurl]serialid=$row[serialid]\"><img src='info.gif' alt='view!' border='0' /></a></td> 
and here is the java script :
PHP Code:
function d(id){ 
window.open('view.php?'+id,'Operate','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=570,height=300');

now in the template code there is this :
PHP Code:
 $stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
title>$vboptions[bbtitle] - $pagetitle</title>
<
script src="./sys.js"></script>
$headinclude
</head>
<
body>
$header
$navbar
{$_page}
<
br /> 
and in the section part of the template there is this:

PHP Code:
{$pagenav}
<
br/>
<
table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<
thead>
    <
tr>
        <
td class="tcat" colspan='5'>
            <
a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_attatch')"><img id="collapseimg_forumhome_attatch" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a>
            <
div align='center'>items</div></td>
    </
tr>
</
thead>
<
tbody id="collapseobj_forumhome_attatch" style="{$vbcollapse['collapseobj_forumhome_attatch']}">

<
tr>
<
td class='thead' align='center'>App Name</td>
<
td class='thead' align='center'>Uploaded By</td>
<
td class='thead' align='center'>View Now</td>
</
tr>

$views_now

</tbody>
</
table>
<
br />
{
$pagenav
now look at ss2 this is the template code :
PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
</head>
<
body>
<
table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
<
thead>
    <
tr>
        <
td class="tcat" colspan="2">$vbphrase[items_for]$item</td>
    </
tr>
</
thead
<
td class="alt1">$vbphrase[item_number]$itemnum</td>
            </
tr>
            </
table>

<
div align="center"> <br>
  <
input type=submit name=sbm value=Close onClick=window.close()>
  </
span><br>
  
</
div>
</
body>
</
html
please help me im needing help with the database and the view.php file to work
Attached Images
File Type: jpg ss2.JPG (11.2 KB, 0 views)
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04669 seconds
  • Memory Usage 2,483KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete