Jump to content

virtualadz

Members
  • Posts

    489
  • Joined

  • Last visited

Everything posted by virtualadz

  1. can anyone please tell me if i need to parse php pages as .html, my site is here bhuratea.com, using the menu you can see a lot of content pages. thanks or any help
  2. i am not thinking of going into dll or .jsp , i was asking about php and showing it as .html, but is their really any core benefit of parsing .html pages over php. my site has a lot of pages other than shopping, so it means a lot of content (i.e. text), i am more than confused at this stage, i think my site has become disorganized.
  3. is it in anyway going to affect my php (with session urls), or anything else, i have never used it.
  4. i am a little curious to know which web language ebay uses to build pages, all i see sometimes is cgi or dll. i have also been searching around how does ebay show that we are logged in within an .html extension page. many of their pages are .html , can anyone shed some light on it.
  5. hi, all well before making my site live, there are possibly one or two more changes left (and the last one being the task of organizing each file). this is one of them:i have the wholesale enquiry page in my site, can be seen at: www.bhuratea.com/wholesale_inquiry.php , the first thing i did like to do is making the inquiry box smaller in size, i tried but figured out no way, the second being adding some new fields and making them required., the code for my page is: there isn't any js file linked to it, so most probably eveyrhting ought to be done in php. the code which i see to make the text area box smaller is marked down the line in bold. changing values only let's it height to be decreased, width remaisn full.the values of the enquiry box are 50, 15 i treid changing but in vain, any ideas to change it's size<?php/* $Id: wholesale_inquiry.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $*/ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WHOLESALE); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); if (tep_validate_email($email_address)) { // BEGIN CUSTOMER SUBJECT// tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $HTTP_POST_VARS['email_subject'], $enquiry, $name, $email_address);// END CUSTOMER SUBJECT tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_WHOLESALE));?><!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"><html <?php echo HTML_PARAMS; ?>><head><?php// BOF: Header Tag Controller v2.5.7if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php');} else {?> <title><?php echo TITLE; ?></title><?php}// EOF: Header Tag Controller v2.5.7?><base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"><link rel="stylesheet" type="text/css" href="stylesheet.css"><link rel="stylesheet" media="all" type="text/css" href="basic_dd.css" /><!--[if lte IE 6]><link rel="stylesheet" media="all" type="text/css" href="basic_dd_ie.css" /><![endif]--></head><body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"><!-- header //--><?php require(DIR_WS_INCLUDES . 'header.php'); ?><!-- header_eof //--><!-- body //--><table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"><!-- left_navigation //--><?php require(DIR_WS_INCLUDES . 'column_left.php'); ?><!-- left_navigation_eof //--> </table></td><!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr><?php if ($messageStack->size('contact') > 0) {?> <tr> <td><?php echo $messageStack->output('contact'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr><?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {?> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr><?php } else {?> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_NAME; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('name'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_EMAIL; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('email'); ?></td> </tr> <!-- BEGIN CUSTOMER SUBJECT --> <tr> <td class='main'><?php echo ENTRY_CUSTOMER_SUBJECT . '<br>' . tep_draw_input_field('email_subject'); ?></td> </tr><!-- END CUSTOMER SUBJECT --> <tr> <td class="main"><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr><?php }?> </table></form></td><!-- body_text_eof //--> </tr></table><!-- body_eof //--><!-- footer //--><?php require(DIR_WS_INCLUDES . 'footer.php'); ?><!-- footer_eof //--><br></body></html><?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  6. ok hi , now making the image map further more complex. i want a world clock and or that what i want is suppose, if someone moves mouse over US in the map then the time is shown, now do i make a rotating clock. is there a way or is it too complex.
  7. but there ain't any bordercolordark and bordercolorlight
  8. ok i will have a look at it. i used jonas code , how do insert skym's, into it, so that the text doesn't disappear on a second click
  9. is there a way to also move the bordercolor and other such border color attributes from td to css.
  10. you are asking a question or suggesting something
  11. hey dan the anchor link doesn't workwhen visiting the site first time it takes me to the page directlywww.site.com/folder/file.php#top, instead of moving straight to top, does php need any other coding
  12. hey but what if i wanted a global value for this, i.e. in my page there are quite a few forms and so setting js for each code is unnecessary and also is a arduous task. so can jonas post #3 code can be made such , that it can be used for many forms, as the <script> in that has Enter Search keywords... which cannot be the same for every form
  13. i have a flash menu and want to make it an anchor link to a text, how can i do thatjust like what we use in html<a href="#top">a</a> (this should be in flash)<a name="top">a</a>is it possible?
  14. it worked, now i am searching for the image align, will be back tomorrow.
  15. ok i am searching for that, when i find it will post here, in the meantime can you take a look at what's wrong with this<a href="#top"><?php echo tep_image(DIR_WS_IMAGES . 'top.gif'); ?></a>igonore the image, just look at the anchor link, it's not showing up correctlywww.site.com/folder/file.phpit should make a link to go to the top for this page, but instead shows thiswww.site.com/#top
  16. bcoz i use seesions and the links should be in the php format so as the customer doesn't lose his shopping cart itemssorry i didn't mention the image will be a link
  17. well, i dont know what you are talking, i have all my images set to like this right from the start and it works.now suppose if i want a image with alt, width, height , it would be<?php echo tep_image(DIR_WS_IMAGES . 'next.gif', IMAGE_ALT, IMAGE_WIDTH, IMAGE_HEIGHT); ?>i want to have the align=middle attribute, i do i have that, is the below code right<?php echo tep_image(DIR_WS_IMAGES . 'next.gif', IMAGE_ALT, IMAGE_WIDTH, IMAGE_HEIGHT, IMAGE_ALIGN); ?>
  18. i want to align my image as middle in php, this is the code with alt <?php echo tep_image(DIR_WS_IMAGES . 'next.gif', IMAGE_GO); ?>now can i leave the width and height and make the code like this<?php echo tep_image(DIR_WS_IMAGES . 'next.gif', IMAGE_GO, IMAGE_ALIGN); ?>is the above code right, should i leave a blank space for width and height and will the browser understand it auto.and it's reference will look like this:define('IMAGE_ALIGN', 'middle');
  19. is there a way doing it with div's and with complete css.
  20. well i can't use simply td and tr , i have 1000's in other pages, i will have to embed my default stylesheet in this page. but that's not the question:i already made the text relevant details using css, how do i make these through cssborderColor=#008000 borderColorLight=#c0c0c0 align=left width=103 borderColorDark=#ffffff height=30, i want these attributes to be defined in the css
  21. sorry, for not being clear, i needed to move all the info from td and tr using css, the tr and td will appear more than 100 times so it's better to use css. so how do i define those td & tr attributes using css.
  22. an alternative way for it using css: the tr's and td's will appear more than 100 times!, that's why <html><head><title>W3schools</title><style type="text/css">td.TGLOSS {font-family: arial, verdana;font-size: 11px;color: #333333;</style></head><body><table borderColor=#ffffff cellSpacing=0 borderColorDark=#ffffff cellPadding=0 width=474 borderColorLight=#ffffff border=1> <tr> <td class="TGLOSS" borderColor=#008000 borderColorLight=#c0c0c0 align=left width=103 borderColorDark=#ffffff height=30> Agony of the leaves</td> <td class="TGLOSS" borderColor=#008000 borderColorLight=#c0c0c0 width=355 borderColorDark=#ffffff>This is a description of the relaxation of curled leaves during steeping.</td> </tr></table> </body></html>
  23. virtualadz

    and i'm back

    ah, you understood it slighty different: when typing it (www.site.com/subfolder) in the address bar it shows, but i want to link it from my page. i have a index.php file already there.now in my reference php file it is as:define('FILENAME_FILE', 'subfolder/index.php');i tried it doing what was of no help:define('FILENAME_FILE', 'subfolder');there's no prob, in getting it from the addrees bar of a browser, i need it get from my file/page. hope i was clear
×
×
  • Create New...