Jump to content

jonw118

Members
  • Posts

    77
  • Joined

  • Last visited

    Never

Everything posted by jonw118

  1. I use FCKeditor and when I use this line for inserting the code into the database, it is automatically inserting a "rn" at the beginning of every time there is a line break. Can someone think of what I need to change so it does not insert that when adding it into the database? I think it has something to do with the line I highlighted in red if(isset($HTTP_POST_VARS['name'])) { saveEdContent($HTTP_POST_VARS['name'], mysql_real_escape_string($HTTP_POST_VARS['editor_content'])); } tep_redirect(tep_href_link(FILENAME_PROFORMA_FC, 'action=edit_unit&pf_name='.$HTTP_POST_VARS['name'])); break; Thanks so much!
  2. Awesome - I appreciate the help so much! I understand now the errors I made... so I can fix for the other ones. Thanks again!
  3. Thanks for the help... it's working somewhat prints a lot of extra stuff... for example it should say "Residential" but right now it says "1selectedResidential2356789101112" Any thoughts?
  4. Hey there- quick question... I'd really appreciate any help. I have a dropdown box that displays in the admin side of my site... but instead of having it as a dropdown, I want it to just print what currently shows as selected (I don't want it to show the actual dropdown). Is there something quick I can do in here to make this happen: <?php $catOption=$object->allowed_user_category($_SESSION["my_adminid"]); if($catOption==0){ ?> <select id="catID" name="catID"> <option value="" SELECTED>Please Choose............</option> <?php $rs=mysql_query("select * FROM tbl_category "); while($row=mysql_fetch_array($rs)){ ?> <option value="<?php echo $row["cat_ID"]?>"<?php if($row["cat_ID"]==$rowListing["cat_ID"]) echo "selected"?>><?php echo $row["cat_descp"]?></option> <?php }?> </select> <?php } else{ ?> <?php } ?> THANKS!
  5. Hello - I have a line of code that displays a product description. Currently it is set to strip tags, but I don't want it to. I've tried to get rid of strip_tags a million different ways, but when I do, it breaks the page. How would you suggest I rewrite this line? Thanks for any help!! <?php echo $lc_text = osc_trunc_string(strip_tags($listing['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), MASTER_LIST_DESCRIPTION_LENGTH) . ' '; ?>
  6. Heck YEAH! That did it - THANKS SO MUCH for your help. I am most appreciative.
  7. Here's the <?php tag it's within (sorry for the length of code): <?php } $list_box_contents = array(); for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $column = 0; echo ' <table cellspacing=0 cellpadding=0> <tr><td width=533 height=0></td></tr> <tr><td> <table cellspacing=0 cellpadding=0 width=531 align=center> <tr> '; $listing_query = tep_db_query($listing_split->sql_query); while ($listing = tep_db_fetch_array($listing_query)) { $product_contents = array(); $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = '' . $listing['products_name'] . ''; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = '<span style="color:#7F7F7F;font-size:11px"><s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s></span><br><span style="font-size:12px">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>'; } else { $lc_text = '<span style="font-size:9px">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>'; } break; case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; $lc_text = ' ' . $listing['products_quantity'] . ' '; break; case 'PRODUCT_LIST_WEIGHT': $lc_align = 'right'; $lc_text = ' ' . $listing['products_weight'] . ' '; break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); $product_contents[] = $lc_text; } $product_query = tep_db_query("select products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$listing['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); $product = tep_db_fetch_array($product_query); $new_products['products_description'] = $product['products_description']; echo ' <td width=177 valign=top> <table border=0 cellspacing=0 cellpadding=0 nof=ly> <tr valign=top align=left> <td width=49 height=1><img src="./clearpixel.gif" width=49 height=1 border=0 alt=""></td> <td width=206 height=1><img src="./clearpixel.gif" width=206 height=1 border=0 alt=""></td> </tr> <tr valign=top align=left> <td colspan=2 rowspan=2 width=255> <table id="Table3" border=0 background="./productbck.gif" cellspacing=1 cellpadding=2> <tr height=255> <td width=249> <p> <table width="100%" border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td align="CENTER"> <table id="Table2" border=0 cellspacing=0 cellpadding=2 width=224 height=215> <tr height=47> <td width=220> <p style="text-align: center;"><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px;"> <table width="100%" border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td align="CENTER"> <table width=219 border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td class="TextObject" style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px; color: rgb(255,255,255); font-weight: bold; text-decoration: none ;"> <p style="text-align: center;">'.$product_contents[1].' <br> '.$product_contents[2].' </p> </td> </tr> </table> </td> </tr> </table> </span></p> </td> </tr> <tr height=34> <td> <p> <table width=215 border=0 cellspacing=0 cellpadding=0 align=left nof=te> <tr> <td class="TextObject" style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px; color: rgb(0,0,0); text-decoration: none ;"> <?php $text = '<p>'. preg_replace('/\s\S*$/i', '', substr($new_products['products_description'], 0, 90)).' ... </p>'; echo strip_tags($text); echo "\n"; // Allow <p> and <a> echo strip_tags($text, '<p><a>'); ?> </td> </tr> </table> </p> </td> </tr> <tr height=62> <td> <p> <table width=216 border=0 cellspacing=0 cellpadding=0 align=left nof=te> <tr> <td class="TextObject"> <p>'.$product_contents[0].' </p> </td> </tr> </table> </p> </td> </tr> <tr height=55> <td> <p> <table width="100%" border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td align="CENTER"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '"><img id="Picture201" height=29 width=159 src="./viewproduct.gif" border=0 alt=""></a></td> </tr> </table> </p> </td> </tr> </table> </td> </tr> </table> </p> </td> </tr> </table> </td> </tr> <tr valign=top align=left> <td width=0></td> </tr> </table> </td> '; $column ++; if ($column >= 3) { $rows ++; $column = 0; echo ' </tr> <tr><td colspan=5 height=5></td></tr> <tr><td colspan=5 align=center></td></tr> <tr> '; } else echo '<td><width=1></td>'; } echo ' </tr> </table> </td></tr> <tr><td></td></tr> </table> '; //new productListingBox($list_box_contents); } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); echo '<div class=PageHeading>Categories</div>'; new productListingBox($list_box_contents); } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?>
  8. WAIT! Scratch that... it is within a <?php ?> tag, completely missed that. Anyway to include that within another <?php tag?
  9. No it is outside of any <?php ?> tags. Here are all the tags on that page: <?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> <?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> <?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> <?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> And at the very end of the page: <?php } ?>
  10. Yeah, I see what you did there and made sense, but produces same here. Here's what I think is enough relevant code. Thanks so much for your help: <table border=0 cellspacing=0 cellpadding=0 nof=ly> <tr valign=top align=left> <td width=49 height=1><img src="./clearpixel.gif" width=49 height=1 border=0 alt=""></td> <td width=206 height=1><img src="./clearpixel.gif" width=206 height=1 border=0 alt=""></td> </tr> <tr valign=top align=left> <td colspan=2 rowspan=2 width=255> <table id="Table3" border=0 background="./productbck.gif" cellspacing=1 cellpadding=2> <tr height=255> <td width=249> <p> <table width="100%" border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td align="CENTER"> <table id="Table2" border=0 cellspacing=0 cellpadding=2 width=224 height=215> <tr height=47> <td width=220> <p style="text-align: center;"><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px;"> <table width="100%" border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td align="CENTER"> <table width=219 border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td class="TextObject" style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px; color: rgb(255,255,255); font-weight: bold; text-decoration: none ;"> <p style="text-align: center;">'.$product_contents[1].' <br> '.$product_contents[2].' </p> </td> </tr> </table> </td> </tr> </table> </span></p> </td> </tr> <tr height=34> <td> <p> <table width=215 border=0 cellspacing=0 cellpadding=0 align=left nof=te> <tr> <td class="Text" style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px; color: rgb(0,0,0); text-decoration: none ;"> [color=red]<?php $text = '<p>'. preg_replace('/\s\S*$/i', '', substr($new_products['products_description'], 0, 90)).' ... </p>'; echo strip_tags($text); echo "\n"; // Allow <p> and <a> echo strip_tags($text, '<p><a>'); ?> [/color] </td> </tr> </table> </p> </td> </tr> <tr height=62> <td> <p> <table width=216 border=0 cellspacing=0 cellpadding=0 align=left nof=te> <tr> <td class="TextObject"> <p>'.$product_contents[0].' </p> </td> </tr> </table> </p> </td> </tr> <tr height=55> <td> <p> <table width="100%" border=0 cellspacing=0 cellpadding=0 nof=te> <tr> <td align="CENTER"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '"><img id="201" height=29 width=159 src="./viewproduct.gif" border=0 alt=""></a></td> </tr> </table>
  11. Just tried... unfortunately, produces the same error.
  12. I guess nobody can help me with this? If there's anything else I could provide to help please let me know. I'm beating my head trying to figure it out. I can't tell you how appreciative I would be.
  13. Parse error: syntax error, unexpected '>' in /home/***/public_html/retail/includes/modules/product_listing.php on line 208 That's using the code I referenced above.
  14. It keeps telling me that ">" is what's causing the problem... but, to me everything looks closed correctly. Any thoughts? Thanks so much for any help at all!
  15. Ok, -thanks- and as you are about to tell I'm struggling, as I read it, the line should go <?php $text = '<p>'.preg_replace('/\s\S*$/i', '', substr($new_products['products_description'], 0, 90)).' ... </p>' echo strip_tags($text); echo "\n"; // Allow <p> and <a> echo strip_tags($text, '<p><a>'); ?> But... I'm obviously doing something wrong here. Thanks so much for the help...
  16. I have a line of code that pulls text in from the database. The text that has been put into the database was inserted using HTML from an editor. So, when I pull it out, I want the html formatting to be stripped from it and only display the unformatted text. Here's the line of code that pulls it from the db: <p>'.preg_replace('/\s\S*$/i', '', substr($new_products['products_description'], 0, 90)).' ... </p> Can anyone give some advise what I would insert in the line to stip the formatting? Thanks! Jon
  17. I tried that, and getting the same error message (which I forgot to post in the first one): Query ErrorYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by list_ID' at line 1
  18. Here's the deal - I have an admin panel that displays listings based on the users ID (when a user is logged in, displays only their listings). Well, I now need to build a page where it displays all listings in the sytem - user ID is completely irrelevant. And I took out the line that verifies against sessions, as the page I am building is open to the public, so I don't need any type of user restrictions. But I'm stuck. Here's the PHP code at the top of the page. I tried just to delete out the areas referring to [my_adminid], but not good enough. I would REALLY appreciate anyone's thoughts on making this happen: <?php require_once("inc/admin_info_class.php"); require_once("inc/paging_class.php"); $object=new admin_info_class; if($_REQUEST["noPerPage"]!=""){ $noPerPage=$_REQUEST["noPerPage"]; }else{ $noPerPage=10; } $memType=$object->check_user_Type($_SESSION["my_adminid"]); if($memType==0){ $strSQL="select DATE_FORMAT(reg_date,'%m/%d/%Y') as _date ,a.* from tbl_listing as a WHERE a.mem_ID=$_SESSION[my_adminid] order by list_ID "; } else { $strSQL="select DATE_FORMAT(reg_date,'%m/%d/%Y') as _date ,a.* from tbl_listing as a order by list_ID "; } // echo $strSQL; $paging=new paging($noPerPage,5); // paging class object $rsListing=$paging->query($strSQL); if($_REQUEST['action']=='_delete') { $sql = "DELETE FROM tbl_listing where list_ID=". $_REQUEST['id'] ." "; mysql_query($sql); @mysql_query("DELETE FROM tbl_listing_image WHERE list_ID=". $_REQUEST['id'] ." "); @mysql_query("DELETE FROM tbl_listing_map WHERE list_ID=". $_REQUEST['id'] ." "); @mysql_query("DELETE FROM tbl_sell_mang_link WHERE list_ID=". $_REQUEST['id'] ." "); header("location:listings.php"); } ?> If it helps at all, here is the full page of code: <?php require_once("inc/admin_info_class.php"); require_once("inc/paging_class.php"); $object=new admin_info_class; if($_REQUEST["noPerPage"]!=""){ $noPerPage=$_REQUEST["noPerPage"]; }else{ $noPerPage=10; } $memType=$object->check_user_Type($_SESSION["my_adminid"]); if($memType==0){ $strSQL="select DATE_FORMAT(reg_date,'%m/%d/%Y') as _date ,a.* from tbl_listing as a WHERE a.mem_ID=$_SESSION[my_adminid] order by list_ID "; } else { $strSQL="select DATE_FORMAT(reg_date,'%m/%d/%Y') as _date ,a.* from tbl_listing as a order by list_ID "; } // echo $strSQL; $paging=new paging($noPerPage,5); // paging class object $rsListing=$paging->query($strSQL); if($_REQUEST['action']=='_delete') { $sql = "DELETE FROM tbl_listing where list_ID=". $_REQUEST['id'] ." "; mysql_query($sql); @mysql_query("DELETE FROM tbl_listing_image WHERE list_ID=". $_REQUEST['id'] ." "); @mysql_query("DELETE FROM tbl_listing_map WHERE list_ID=". $_REQUEST['id'] ." "); @mysql_query("DELETE FROM tbl_sell_mang_link WHERE list_ID=". $_REQUEST['id'] ." "); header("location:listings.php"); } ?><center> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>listings</TITLE> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="<?php echo $page['css_path']; ?>"> <script type="text/javascript" src="<?php echo isset($page['js'])? $page['js']:'../../functions.js'; ?> "> </script> <script> var hwndPopup_27b5; function openpopup_27b5(url){ var popupWidth = 715; var popupHeight = 415; var popupTop = 300; var popupLeft = 300; var isFullScreen = false; var isAutoCenter = true; var popupTarget = "popupwin_27b5"; var popupParams = "toolbar=0, scrollbars=0, menubar=0, status=0, resizable=0"; if (isFullScreen) { popupParams += ", fullscreen=1"; } else if (isAutoCenter) { popupTop = parseInt((window.screen.height - popupHeight)/2); popupLeft = parseInt((window.screen.width - popupWidth)/2); } var ua = window.navigator.userAgent; var isMac = (ua.indexOf("Mac") > -1); //IE 5.1 PR on OSX 10.0.x does not support relative URLs in pop-ups the way they're handled below w/ document.writeln if (isMac && url.indexOf("http") != 0) { url = location.href.substring(0,location.href.lastIndexOf('\/')) + "/" + url; } var isOpera = (ua.indexOf("Opera") > -1); var operaVersion; if (isOpera) { var i = ua.indexOf("Opera"); operaVersion = parseFloat(ua.substring(i + 6, ua.indexOf(" ", i + )); if (operaVersion > 7.00) { var isAccessible = false; eval("try { isAccessible = ( (hwndPopup_27b5 != null) && !hwndPopup_27b5.closed ); } catch(exc) { } "); if (!isAccessible) { hwndPopup_27b5 = null; } } } if ( (hwndPopup_27b5 == null) || hwndPopup_27b5.closed ) { if (isOpera && (operaVersion < 7)) { if (url.indexOf("http") != 0) { hwndPopup_27b5 = window.open(url,popupTarget,popupParams + ((!isFullScreen) ? ", width=" + popupWidth +", height=" + popupHeight : "")); if (!isFullScreen) { hwndPopup_27b5.moveTo(popupLeft, popupTop); } hwndPopup_27b5.focus(); return; } } if (!(window.navigator.appName == "Netscape" && !document.getElementById)) { //not ns4 popupParams += ", width=" + popupWidth +", height=" + popupHeight + ", left=" + popupLeft + ", top=" + popupTop; } else { popupParams += ", left=" + popupLeft + ", top=" + popupTop; } //alert(popupParams); hwndPopup_27b5 = window.open("",popupTarget,popupParams); if (!isFullScreen) { hwndPopup_27b5.resizeTo(popupWidth, popupHeight); hwndPopup_27b5.moveTo(popupLeft, popupTop); } hwndPopup_27b5.focus(); with (hwndPopup_27b5.document) { open(); write("<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy onLoad=\"window.location.href='" + url + "'\"></bo"+"dy></ht"+"ml>"); close(); } } else { if (isOpera && (operaVersion > 7.00)) { eval("try { hwndPopup_27b5.focus(); hwndPopup_27b5.location.href = url; } catch(exc) { hwndPopup_27b5 = window.open(\""+ url +"\",\"" + popupTarget +"\",\""+ popupParams + ", width=" + popupWidth +", height=" + popupHeight +"\"); } "); } else { hwndPopup_27b5.focus(); hwndPopup_27b5.location.href = url; } } } </script> <script> var domok=document.all||document.getElementById if (domok) document.write('<SCRIPT SRC="js/sortTable.js"><\/SCRIPT>') </script> <LINK REL=STYLESHEET TYPE="text/css" HREF="http://www.dotcomproducer.com/drop.css"> </HEAD> <BODY NOF="(MB=(Listings, 0, 0, 0, 0), L=(listingsLayout, 641, 721))" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0033CC" VLINK="#990099" ALINK="#FF0000" onLoad='if (domok) initTable("table0")' TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=614 NOF=LY> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=614> <P ALIGN=LEFT><FONT FACE="Arial,Helvetica,Geneva,Sans-serif"><TR VALIGN=TOP ALIGN=LEFT> <TD></TD> <TD WIDTH=614> <P ALIGN=LEFT><FONT FACE="Arial,Helvetica,Geneva,Sans-serif"> <table border=0 cellspacing=0 cellpadding=0 width=558 nof="LayoutRegion1"> <tr valign=top align=left> <td width=10 height=16><img src="../assets/images/autogen/clearpixel.gif" width=10 height=1 border=0 alt=""></td> <td width=1><img src="../assets/images/autogen/clearpixel.gif" width=1 height=1 border=0 alt=""></td> <td width=456><img src="../assets/images/autogen/clearpixel.gif" width=456 height=1 border=0 alt=""></td> <td width=91><img src="../assets/images/autogen/clearpixel.gif" width=91 height=1 border=0 alt=""></td> </tr> <tr valign=top align=left> <td></td> <td colspan=2 width=457 class="TextObject"> <p><b><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 14px; color: rgb(0,51,153);">Current Products in Gallery:</span></b><span style="font-size: 10px;"><b><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; color: rgb(0,51,153);"> </span></b><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif;"></span></span></p> </td> <td></td> </tr> <tr valign=top align=left> <td colspan=4 height=20></td> </tr> <tr valign=top align=left> <td colspan=2></td> <td colspan=2 width=547 class="TextObject"> <p style="text-align: left;"><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 10px; color: rgb(255,0,0);"><a style="color: rgb(255,0,0);" href="create_listings.php">Add New Product To Gallery</a><br><a style="color: rgb(255,0,0);" target="_self" href="javascript:openpopup_27b5('import.php')"></a></span></p> </td> </tr> </table> </td> <td> <table border=0 cellspacing=0 cellpadding=0 width=221 nof="LayoutRegion1"> <tr valign=top align=left> <td width=1 height=52><img src="../assets/images/autogen/clearpixel.gif" width=1 height=1 border=0 alt=""></td> <td width=220><img src="../assets/images/autogen/clearpixel.gif" width=220 height=1 border=0 alt=""></td> </tr> <tr valign=top align=left> <td></td> </tr> </table> </td> </tr> </table> <table border=0 cellspacing=0 cellpadding=0 nof="LayoutRegion1"> <tr valign=top align=left> <td width=10 height=9><img src="../assets/images/autogen/clearpixel.gif" width=10 height=1 border=0 alt=""></td> <td></td> </tr> <tr valign=top align=left> <td></td> <td width=520> <table id="table0" border=0 cellspacing=0 cellpadding=2 width="100%" height=31> <p><b></b></p> </td> <td width=210> <p><b><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px;">Product:</span></b></p> </td> <?php $i=0; while($rowListing=$paging->result_assoc($rsListing)){ if($i%2==0){ echo "<tr style=\"background-color: rgb(190,197,255);\">"; } else{ echo " <tr>"; } ?> <td > <p><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 11px;"><?php echo $rowListing["street_add"]?></span></p> </td> <td > <p><span style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 9px; color: rgb(255,0,0);"><a href="edit_listings.php?lID=<?php echo $rowListing["list_ID"]?>" style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 9px; color: rgb(255,0,0);">View / Edit</a> | <a href="#" style="font-family: Verdana,Tahoma,Arial,Helvetica,Sans-serif; font-size: 9px; color: rgb(255,0,0);"onClick="javasdcript:frmConfirm(<?php echo $rowListing["list_ID"]?>);">Delete</a></span></p> </td> <?php $i++; } mysql_free_result($rsListing); ?> </table> </td> </tr> <tr valign=top align=left> <td></td> <td> </td> </tr> <tr valign=top align=left> <td></td> <td><div align="center"><?php echo $paging->print_link();?> </div></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </FONT></P> </TD> </TR> </TABLE> </BODY> </HTML> <script language="javascript"> function frmConfirm(_ID) { var strConfirm; strConfirm = confirm("Are you sure to want to delete this ?"); if(strConfirm) { window.location.href='?action=_delete&id='+ _ID ; } } </script>
  19. So, I'm moving servers from my current VPS to a new one (with Verio). Here's the problem. I have a dynamic php script called content_info.php that pulls the values from the DB and applies it to a template (using Xtemplate) and creates a html page. For this to work, it uses a .htaccess file. When I moved this stuff over to the new server - my .htaccess is not working - thereby rendering the content pages useless. I need some serious help here as it's critical. Here is the .htaccess file: Options +FollowSymLinks RewriteEngine on #RewriteBase / RewriteRule ^content/(.*)/(.*).html content_info.php?id=$1 I'm not a pro at all when it comes to dealing with Apache and .htaccess files. Is there any reason it couldn't move from one server to the next? What could I do to get this work? Any help would GREATLY appreciated.
  20. Awesome! That did it!!! Now I'm having an .htaccess problem, will post in another forum for that.
  21. I am in the process of moving my site... on my new server I've hit a problem. I have an admin side that requires a user/pass. When you login it takes you authentication.php. It as this point things get stuck. Here is the code for that page: <? //starting session error_reporting(E_ALL ^ E_NOTICE); session_start(); include_once("inc/dbConn.php"); $db=new dbConnection; $conn=$db->connection(); //authenticating login id and password $user = $_POST['txtlogid']; $passwd = $_POST['txtpwd']; $sql = "SELECT * FROM tbl_member WHERE (mem_name = '$user' AND mem_pass = '$passwd' )"; $result = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($result)>0) { $Row = @mysql_fetch_array($result); $my_adminid = $Row["mem_ID"]; session_register("my_adminid"); $_SESSION['my_adminid']=$my_adminid; header("location: index.php"); } else { header("location: login.php?fail=1"); } ?> Here is the error I get when I type in my user/pass and it stalls on the page: Any help would GREATLY appreciated!
  22. I literally didn't sleep last night playing around so much on this trying to get it work - and I think I've reached the end of the Internet searching for solutions. Guess it's time to concede to the fact it isn't possible (at least to my knowledge). If anyone has any thoughts I'd certainly be more than open to hearing them! Not having the capability to do this puts a major bump in my project.
  23. Well... I was hoping that would do the trick... not so much! My code looks like this (obviously just testing with this code): For the parent frame: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script type="text/javascript"> document.domain="SERVER_NAME.com"; </script> <script language="JavaScript"> <!-- function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; } //--> </script> </head> <body> <iframe width="700" id="the_iframe" onLoad="calcHeight();" src="http://URL.com" scrolling="NO" frameborder="1" height="1"> </iframe> </body> </html> For the page iframed in: <HTML> <HEAD> <script type="text/javascript"> document.domain="SERVER_NAME.com"; </script> </HEAD> <BODY> test 123 </BODY> </HTML> Any ideas would MUCH appreciated! Thanks...
  24. Thanks for responding. Fortunately I do have control over both places. So, if I read the documentation correctly - I only have to drop that js in the <head> of both pages (the parent and the one being framed in)... and it will work? I would think within the IFRAME tag it would need some sort of reference to that js, but maybe not... will have some testing ahead of me. I will give that a shot. Would be beyond AWESOME if that works.
  25. Hey there - I know this topic has been dead for a while - but roopurt18, hoping (BIG TIME!) you can help me. I've been trying everything under the sun to do what it appears you have done. I want to IFRAME in an EXTERNAL (Cross) domain and make the iframe resize to the page height. However, I keep running into a brick wall with everything I read - js not allowing cross-domains (creating permission errors). I was about to give up - then I found your post. So it looks as if it is possible based on what you referenced. I can't tell you how much I would appreciate ANY help (btw- I am able to fully edit code on both domains). Thanks! Jon
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.