Jump to content

JNorman

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by JNorman

  1. Hi, In developing a new site, i am using tables and recently there appears to little gaps between tables on the site. I have tried sorting out the HTML but i cannot move the lines. The size of the gaps appear to be about half the height of a <br />. My code is below. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="includes/js/nav.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Arabian Airlines</title> <link href="includes/styles/properties.css" rel="stylesheet" type="text/css" /> </head> <body> <table width="900" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><a href="index.php"><img src="images/basic-layout/logos/left-logo.jpg" alt="Logo" width="300" height="260" /></a><br /></td> <td valign="top"><a href="index.php"><img src="images/basic-layout/logos/logo-right.jpg" alt="Logo" width="600" height="260" /><br /> </a></td> </tr> </table> <table width="900" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="50" valign="middle" class="menu-table"><a href="" class="menu-titles" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, 'anylinkmenu1')">OPERATIONS</a> <div id="anylinkmenu1" class="nav"> <a href="pages_about.php">About Arabian</a> <a href="pages_opproc.php">Operating Procedures</a> <a href="pages_fleet.php">Fleet Information</a> <a href="pages_routes.php">Route Maps</a></div> <img src="images/basic-layout/navigational/star.png" width="9" height="9" class="menu-divider" /> <span class="menu-titles"> <a href="" class="menu-titles" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, 'anylinkmenu2')">PILOT CENTRE</a><img src="images/basic-layout/navigational/star.png" width="9" height="9" class="menu-divider" /> <div id="anylinkmenu2" class="nav"> <a href="pages_login.php">Login</a> <a href="register_tandc.php">Register</a> <a href="pages_tandc.php">Terms and Conditions</a> <a href="pages_login.php">Forgotten Password</a></div> <a href="" class="menu-titles" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, 'anylinkmenu3')">HUBS</a><img src="images/basic-layout/navigational/star.png" width="9" height="9" class="menu-divider" /> <div id="anylinkmenu3" class="nav"> <a href="pages_dubai.php">Dubai Hub</a> <a href="pages_dubairoster.php">>> Dubai Roster</a> <a href="pages_dubaistats.php">>> Dubai Stats</a> <a href="pages_amman.php">Amman Hub</a> <a href="pages_ammanroster.php">>> Amman Roster</a> <a href="pages_ammanstats.php">>> Amman Stats</a></div> <a href="" class="menu-titles" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event, 'anylinkmenu4')">CONTACT US</a><img src="images/basic-layout/navigational/star.png" width="9" height="9" class="menu-divider" /> <div id="anylinkmenu4" class="nav"> <a href="pages_dubai.php">Website Feedback</a> <a href="pages_dubairoster.php">Other Support Queries</a></div> </span> <div id="anylinkmenu4" class="nav"> <a href="pages_dubai.php">Website Feedback</a> <a href="pages_dubairoster.php">Other Support Queries</a></div> </span></td> </tr> </table> <table width="900" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td> <td> </td> </tr> </table> <br /> </body> </html> This is my CSS @charset "UTF-8"; /* CSS Document */ body { margin-top:0px; background-image:url(../../images/basic-layout/bg.jpg); background-repeat:repeat-x; background-color:#E4E4E4; } img { border-style:none; } .menu-table { background-image:url(../../images/basic-layout/navigational/menu_back.jpg); height:40px; padding:5px; padding-left:23px; background-repeat:repeat-x; } .menu-titles { font-family:sans-serif, verdana; font-size:11px; color:#333333; text-align:center; vertical-align:middle; } .menu-divider { padding-left:23px; padding-right:23px; } .nav { position:absolute; visibility: hidden; border:1px solid #999999; border-bottom-width: 0; font-family:Tahoma; font-size:11px; font-weight:none; line-height: 18px; z-index: 100; background-color:#F9F9F9; width: 205px; font-family:Tahoma; font-size:11px; color:#FFFFFF; text-align:left; } .nav a { width: 100%; display: block; text-indent: 3px; border-bottom: 1px solid black; padding: 1px 0; text-indent: 5px; } .nav a:hover { /*hover background color*/ background-color:#333333; color: white; } Appreciate your help - James
  2. Hi Guys, In building a new website i am requesting that people input their date of births using a drop down for the Day and the month and a text box for the year. I am then converting these dates into a times stamp using the mktime() function in the processing. In most cases, it is successful and returns to timestamp however other times it will return 0. It seems to happen most when the dates are significantly less than 1950. My database field is set to text so it should accept any value. Thanks Guys. Form: <select name="day" id="day"> <option selected="selected">1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> <option>6</option> <option>7</option> <option>8</option> <option>9</option> <option>10</option> <option>11</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> <option>17</option> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>23</option> <option>24</option> <option>25</option> <option>26</option> <option>27</option> <option>28</option> <option>29</option> <option>30</option> <option>31</option> </select></label> <select name="month" id="month"> <option value="1" selected="selected">January</option> <option value="2">Febuary</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> <input name="year" type="text" id="year" size="4" maxlength="4" /> Processing: $dobtimestamp = mktime(0, 0, 0, $_POST["month"], $_POST["day"], $_POST["year"]); Appreciate your help! James
  3. After looking at google maps there is a very simple way of achieving this. If you want a text address such as 15 Street Name, Town you can do this; "http://maps.google.com/maps?f=q&hl=en&geocode=&q=15 Your Street, Your Town" If you want a post code just swap the text for the post code. Dont worry about putting the symbols jsut leave it as text. An example of post code is below; "http://maps.google.com/maps?f=q&hl=en&geocode=&q=AB6 3FK"
  4. Please, when posting put all of your code inside the code brackets so we can easily see all of the code. <body> <a name="top"></a> <div id="container"> <div id="head"> <div id="headlogo"> <h1><a href="/index.php" accesskey="1" title="<? echo $company_name; ?> - Home Page"><? if(file_exists($sitelogo)){echo '<span class="hide">';} else {} ?><? echo $company_name; ?><? if(file_exists($sitelogo)){echo '</span>';} else {} ?></a></h1> </div> <!-- end of headlogo --> <div id="imagestrip" title="Theme Nights"> <div id="images"> <? //*************images*************** if (($page==$default_page)&&($home_random_images=="yes")) { $altimage2 = $company_name; $path = "content/images/"; $dir = opendir($path."thumb/"); while (($file = readdir($dir)) !== false) { if (($file == ".")||($file == "..")||($file == ".thumbs")) {} else { $files[] = $file; } } closedir($dir); if ($files) { srand ((double) microtime( )*1000000); $random_number = rand(0,count($files)-1); for($i=0; $i<$max_thumbs; $i++) { if ($random_number > count($files)-1) {$random_number=0;} $smallimagefile = "/".$path."thumb/".$files[$random_number]; $bigimagefile = "/".$path."big/".$files[$random_number]; echo ' <script type="text/javascript" id="source-test2"> $(function() { $('#test2').crossSlide({ sleep: 2, //in sec fade: 1 //in sec }, [ { src: 'topimages-v1.jpg'}, { src: 'topimages-v2.jpg' } ]); }); </script> '; } } } else { if ($page) {$pageimage = $page;} if ($subpage) {$subpageimage = "-".$subpage;} $imagefile = $pageimage.$subpageimage; $imagefile = preg_replace("/ /i", "-", $imagefile); $imagefile = "content/.system-use/imagefiles/".$imagefile.".inc"; if (file_exists($imagefile)) { require $imagefile; $d = 1; while ($d < $max_thumbs+1) { $image = 'content/images/thumb/'.${"image".$d}; $bigimage = 'content/images/big/'.${"image".$d}; $altimage = $company_name." - ".${"imagedescription".$d}; if (file_exists($image)) { echo ' <span class="topimage"><a onclick="MM_openBrWindow(\'/popupimage.php?imagefile='.$bigimage.'&imagedesc='.$altimage.'\',\'picwin\',\'scrollbars=no,width=100,height=100\'); return false;" href="/popupimage.php?imagefile='.$bigimage.'&imagedesc='.$altimage.'" target="_blank" ><img src="/'.$image.'" alt="'.$altimage.'" class="imagethumb" height="160" width="235" /></a></span>';} $d++; }}} //*************END images*************** ?> </div> </div> <!-- end of imagestrip --> </div><!-- end of head --> <div id="nav" class="printhide"> <div id="navlist"> <ul> <?php $pagepath = "content/pages/"; $legalpath = "content/legals/"; $mainnavpath = "content/.system-use/navigation/"; $mainnavfile = $mainnavpath."mainnav.inc"; if (file_exists($mainnavfile)) { require $mainnavfile; sort ($mainfiles); for($i=0; $i<count($mainfiles); $i++) { if (!preg_match("/XX-/",$mainfiles[$i])) { $displayname = preg_replace("/\.inc/i", "", $mainfiles[$i]); $displayname = substr($displayname, 3); echo "<li"; if ($page==$displayname) {echo ' class="lion"';} echo "><a title='$displayname' href='"; if ($useredirect=="yes"){echo '/'.$displayname.'/';} else {echo '/index.php?page='.$displayname;} echo"' "; if ($page==$displayname) {echo 'class="aon"';} else {} echo ">$displayname</a></li>\n"; //*******now check and see if any sub-menus****** if ($page==$displayname) { $subnavfile = $mainnavpath.$displayname.".inc"; if (file_exists($subnavfile)) { require $subnavfile; sort ($subfiles); for($j=0; $j<count($subfiles); $j++) { if (!preg_match("/XX-/",$subfiles[$j])) { $subdisplayname = preg_replace("/\.inc/i", "", $subfiles[$j]); $subdisplayname = substr($subdisplayname, 3); echo "<li class='"; if ($subpage==$subdisplayname) {echo "li2on";}else {echo "li2";} echo "'><a title='$subdisplayname' href='"; if ($useredirect=="yes"){echo '/'.$displayname.'/'.$subdisplayname;} else {echo '/index.php?page='.$displayname.'&subpage='.$subdisplayname;} echo "' "; if ($subpage==$subdisplayname) {echo 'class="aon"';} else {} echo ">$subdisplayname</a></li>\n"; }} }else {} } //************end sub menus*********************** } } } else { echo "<strong>No Navigation - Please Login to your Admin System and set the Page Order</strong>"; } ?> <? // Show Price List Link in Menu if ($showpricelist == "yes") { echo "<li"; if ($page=='Price List') {echo ' class="lion"';} echo "><a title='Price List' href='"; if ($useredirect=="yes"){echo '/Price List/';} else {echo '/index.php?page=Price List';} echo"' "; if ($page=='Price List') {echo 'class="aon"';} else {} echo ">Price List</a></li>\n"; } ?> </ul> </div> </div> <div id="content"> <div class="crumbs"> <? if ($show_crumbs=="yes") { echo "You are here :: <a href='"; if ($useredirect=="yes"){echo '/'.$page.'/';} else {echo '/index.php?page='.$page;} echo "'>".$page."</a>"; if ($subpage) { echo " :: <a href='"; if ($useredirect=="yes"){echo '/'.$page.'/'.$subpage;} else {echo '/index.php?page='.$page.'&subpage='.$subpage;} echo "'>" . $subpage ."</a>";} } ?> <span style="text-align:right; display:block; float:right;"> <? include "cart/phpCart_minibasket.php"; ?></span> </div> <br /> <a name='content'></a> <? //*************If Homepage - Show the news*************** $newslocation = explode("|", $show_news); if (($page==$newslocation[0])&&($subpage==$newslocation[1])) { echo "<div id='news'>"; echo "<h4>Latest News</h4>"; include("admin/newsmanager/news.php"); echo "</div>"; } //*************End News********************************** ?> <h1><? if ($subpage) {$titlename=$subpage;} else {$titlename=$page;} echo $titlename; ?></h1> <div class="offersdiv"> <a href="#"><img src="/content/images/misc/freewine.gif" alt="Free wine when you join our email list!" /></a><br /><br /> <a href="#"><img src="/content/images/misc/recommend.gif" alt="Recommend This Site To a Friend" /></a> </div> <? if ($page) {$incfile = $pagepath.$page.'.inc';} if ($subpage) {$incfile = $pagepath.$page.'/'.$subpage.'.inc';} if (($page=="Legal")&&(!$subpage)) {$subpage="Privacy Policy";} if ($page=="Legal") {$incfile = $legalpath.$subpage.'.inc';} if ($page=="Shopping Cart") { $incfile = 'cart/phpCart_basket.php';} if ($page=="Shopping Checkout") { $incfile = 'cart/phpCart_checkout.php';} if ($page=="Order Received") { $incfile = 'cart/order_received.php';} if ($page=="Price List") { $incfile = 'cart/phpCart_shop.php';} if (file_exists($incfile)) { require $incfile; } else { echo $incfile; echo "<br /><br /><h4>Error - No page. Please advise webmaster.</h4>"; } ?> <? //******* LOAD CUSTOM MODULES BASED ON PAGE ASSIGNMENT **** //*********Image Gallery******* $gallerylocation = explode("|", $imagegallery); if (($page==$gallerylocation[0])&&($subpage==$gallerylocation[1])) { $galleryfile = 'imagegallery/iframe.php'; require $galleryfile; } //***************************** //*********Contact Form******* $contactformlocation = explode("|", $contactform); if (($page==$contactformlocation[0])&&($subpage==$contactformlocation[1])) { $contactfile = 'interface/contactform.php'; require $contactfile; } //***************************** ?> <div style="clear: both"> </div> </div><!-- end of content --> <br class="clear" /> <a href="#top" class="printhide">Back to Top</a> </div><!-- end of container --> <div id="footer"> <div class="footerbox"> <div class="footerlinks"> <a href="mailto:<? echo $company_email ;?>" title="Email Us" accesskey="0">Email Us</a> | <a href="<? if ($useredirect=="yes"){echo '/Legal/Privacy Policy';} else {echo '/index.php?page=Legal&subpage=Privacy Policy';} ?>" title="Privacy Policy" accesskey="2">Privacy Policy</a> | <a href="<? if ($useredirect=="yes"){echo '/Legal/Terms and Conditions';} else {echo '/index.php?page=Legal&subpage=Terms and Conditions';} ?>" title="Terms and Conditions" accesskey="3">Terms & Conditions</a> | <a href="<? if ($useredirect=="yes"){echo '/Legal/Accessibility';} else {echo '/index.php?page=Legal&subpage=Accessibility';} ?>" title="Accessibility Statement" accesskey="4">Accessibility</a> <? if ($show_sitemap=="yes") { echo ' | <a href="'; if ($useredirect=="yes"){echo '/Legal/Site Map';} else {echo '/index.php?page=Legal&subpage=Site Map';} echo '" title="Site Map" accesskey="5">Site Map</a>'; } ?> <? if ($show_search=="yes") { echo ' | <a href="'; if ($useredirect=="yes"){echo '/Legal/Site Search';} else {echo '/index.php?page=Legal&subpage=Site Search';} echo '" title="Site Search" accesskey="6">Search</a>'; } ?> </div> <div id="copyright"> <? require "interface/poweredby.php"; ?> <br />Copyright <? echo $company_name ;?> </div> </div> </div><!-- end of footer --> <a href="#top" class="hide" title='Back to Top'>Back to Top</a> </body> It apears that you have not back-slashed any of the javascript which is inside the php code. You will need to look through the code and find any commas which are inside the php code and and put a simple \ before them
  5. I'm not sure if this will be any help to you, but i do believe that you can include php files into a flash file however i cannot remember how to do this. A quick search on google will reveal to you how you can include a php file in flash.
  6. What sort of flat file is it? You could just produce a discount at the checkout and work out what the difference in VAT change would be. Its going to go back up so it would be a much simpler method than changing the whole script.
×
×
  • 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.