Jump to content

scarezekiel

Members
  • Posts

    70
  • Joined

  • Last visited

Everything posted by scarezekiel

  1. i tried..still doesnt work..
  2. okay so i need this same logo to be on the other page..how do i do it.. this is code of the logo page.. <? if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query = "select master_event.* , (DATE_FORMAT(event_datefrom, '%d %M %Y')) as datefrom, (DATE_FORMAT(event_dateto, '%d %M %Y')) as dateto, ucase(event_name) as eventname from master_event where master_event.event_id = '$ttid '"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ $eventname = $row['eventname']; $eventdesc = $row['event_desc']; //$companydescription = $row['company_description']; $eventvenue = $row['event_venue']; $eventfee = $row['event_fee']; $datefrom = $row['datefrom']; $dateto = $row['dateto']; echo "<font color='#000000' face='arial' ><b> $eventname </b> </font> <br>"; echo "<font color='#000000' face='arial' ><i>Date</i> : $datefrom - $dateto <br>"; echo "<i>Venue</i> : $eventvenue <br>"; $querypstype = "SELECT DISTINCT master_pstype.pstype_id, pstype_desc FROM master_pstype INNER JOIN master_psevent ON master_psevent.pstype_id= master_pstype.pstype_id where master_psevent.event_id = '$ttid' ORDER BY pstype_order"; $resultpstype=mysql_query($querypstype); while($rowpstype = mysql_fetch_array($resultpstype)){ $pstypeid = $rowpstype['pstype_id']; $pstypedesc = $rowpstype['pstype_desc']; echo "<br><font color='#8B3A3A' size='1' face='georgia' ><b><i>$pstypedesc</i></b></font> <br>"; $queryps = "SELECT master_psevent.*, pstype_desc, company_name, company_link, company_description, logo_filename FROM master_psevent LEFT JOIN master_pstype ON master_psevent.pstype_id = master_pstype.pstype_id LEFT JOIN master_ps ON master_ps.ps_id = master_psevent.ps_id WHERE master_psevent.event_id = '$ttid' and master_pstype.pstype_id= '$pstypeid' ORDER BY pstype_desc,company_name "; echo $queryps; $resultps=mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $companyname = $rowps['company_name']; $companyid = $rowps['ps_id']; $companylinkori = $rowps['company_link']; $companydescription = $rowps['company_description']; $logopath = $rowps['logo_filename']; $describelink = "index.php?view=describe&ttid=$ttid&pstypeid=$pstypeid&psid=$companyid"; if(!empty($companydescription)){ echo "<a href=\"$describelink\" target=\"_blank\"><img src=".$logo_dir."/".$logopath." width=\"15%\" border=\"0\"></a>"; } else { echo "<a href=\"$describelink\" target=\"_blank\"><img src=".$logo_dir."/".$logopath." width=\"15%\" border=\"0\"></a>"; } } } } ?> i need to put the logo script on this page without removing other data..just wanna add the logo in it..where do i alter? <? $monthname=$_POST['month']; if (isset($_GET['np'])){ $num_pages=$_GET['np']; } else { if($searchtype == 'yes') if ($monthname=="All" || $monthname=="") { $query = "SELECT count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom desc"; }else { $query = "SELECT count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom desc"; } else if ($monthname=="All" || $monthname=="") { $query = "Select count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom desc"; }else { $query = "Select count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom desc"; } $result=mysql_query($query); $row=mysql_fetch_array($result, MYSQL_NUM); $num_records=$row[0]; if ($num_records > $displayhome){ $num_pages=ceil($num_records/$displayhome); } else { $num_pages=1; } } if (isset($_GET['s'])){ $start=$_GET['s']; } else { $start=0; } if ($monthname=="All" || $monthname=="") { $query = "SELECT master_event.*,master_type.type_name, DATE_FORMAT(event_datefrom, '%d %b %y') as datefrom, DATE_FORMAT(event_dateto, '%d %b %y') as dateto, event_venue, (event_name) as eventname FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom asc LIMIT $start, $displayhome"; }else { $query = "SELECT master_event.*,master_type.type_name, DATE_FORMAT(event_datefrom, '%d %b %y') as datefrom, DATE_FORMAT(event_dateto, '%d %b %y') as dateto, event_venue, (event_name) as eventname FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom asc LIMIT $start, $displayhome"; } $result = mysql_query($query); $bg='#e5e5e5'; while($row = mysql_fetch_array($result)){ $eventid = $row['event_id']; $eventname = str_replace("", "", $row['eventname']); $eventdatefrom = $row['datefrom']; $eventdateto = $row['dateto']; $event_venue = $row['event_venue']; $event_desc = $row['event_desc']; $speakerlist = $row['speakerlist']; $showline1 = ""; $showpros =""; $showline2 = ""; $showreg =""; $showline3 = ""; $showps =""; $showline4 = ""; $showtestimonial =""; $showline5 = ""; $showsp =""; $showline6 = ""; $showsl =""; if ($eventdatefrom ==$eventdateto) { $eventdate = $eventdatefrom; } else { $eventdate = $eventdatefrom . " - " . $eventdateto; } $querypros="select count(*) as proscount from master_prospectus where event_id ='$eventid' "; $resultpros = mysql_query($querypros); while($rowpros = mysql_fetch_array($resultpros)){ $proscount = $rowpros['proscount']; if ($proscount > 0) { $showline1 = "|"; $showpros ="Request Brochure"; } } $queryreg="select (CASE WHEN event_dateto >= NOW() THEN 'valid' ELSE 'invalid' END) AS validreg from master_event where event_id ='$eventid' "; $resultreg = mysql_query($queryreg); while($rowreg = mysql_fetch_array($resultreg)){ $validreg = $rowreg['validreg']; if ($validreg == "valid") { $showline2 = "|"; $showreg ="Online Registration"; } } $queryps="select count(*) as pscount from master_psevent where event_id ='$eventid' "; $resultps = mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $pscount = $rowps['pscount']; if ($pscount > 0) { $showline3 = "|"; $showps ="Partner & Sponsor"; } } $querytesm="select count(*) as tesmcount from master_testimonial where event_id ='$eventid' "; $resulttesm = mysql_query($querytesm); while($rowtesm = mysql_fetch_array($resulttesm)){ $tesmcount = $rowtesm['tesmcount']; if ($tesmcount > 0) { $showline4 = "|"; $showtestimonial ="Testimonial"; } } $querysp="select count(*) as spcount from master_speakernote where event_id ='$eventid' "; $resultsp = mysql_query($querysp); while($rowsp = mysql_fetch_array($resultsp)){ $spcount = $rowsp['spcount']; if ($spcount > 0) { $showline5 = "|"; $showsp ="Speaker Notes"; } } if ($speakerlist <> '') { $showline6 = "|"; $showsl ="Speaker List"; } echo "<tr><p style=\"font-size:small;\"> <td width='' ><img src='images/search.png' alt='tooltips' ></img>&nbsp<a href='index.php?view=event&content=tips&ttid=$eventid' title ='$eventname' class=\"fancybox fancybox.iframe\" style=\"color:#104E8B;text-decoration: none; \" ><strong><font size='2' face='Segoe UI' >$eventname</font></strong></a><br> <font color='#000000' size='2' face='arial' >Date : $eventdate <br> Venue : $event_venue<br></font> <table style=\"text-align: left; width: 400px; height: 92px;\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"> <tbody> <tr> <td></td> <td style=\"text-align: justify; color: #000000;\"> <font color='#000000' size='2' face='arial' > $event_desc</font></td> <td></td> </tr> </tbody> </table> <font color='#919191' size='1' face='arial' ><b> <a href='index.php?view=prospectus&regrq=$eventid' title ='Request Brochure...' >$showpros</a> <b>$showline1</b> <a href='index.php?view=registration&regrq=$eventid' title ='Online Registration...' > $showreg </a> <b>$showline2</b> <a href='index.php?view=event&content=psevent&ttid=$eventid' title ='Sponsor & Partner...' class='fancybox fancybox.iframe' >$showps</a> <b>$showline3</b> <a href='index.php?view=event&content=tesm&ttid=$eventid' title ='Testimonial...' class='fancybox fancybox.iframe' >$showtestimonial</a> <b>$showline4</b> <a href='index.php?view=spl&splid=$eventid' > $showsp</a><b>$showline5</b> <a href='index.php?view=event&content=speaker&ttid=$eventid' title ='$eventname' class='fancybox fancybox.iframe' > $showsl</a></font><br><br></td> </p></tr></b></font> "; } if ($eventid=="") { echo "No Records Found."; } echo "<td><p style=\"font-size:1;\">"; echo "<br>"; if ($num_pages > 1) { $current_page = ($start/$displayhome) + 1; if ($current_page != 1) { echo '<a href="index.php?view=home&content=list&s=' . ($start - $displayhome) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">Previous</a> ';} for ($i = 1; $i <= $num_pages; $i++) { if ($i != $current_page) { echo '<a href="index.php?view=home&content=list&s=' . (($displayhome * ($i - 1))) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">' . $i . '</a> '; } else { echo '<font face="arial" size="2">'; echo $i . '</font> ';} } if ($current_page != $num_pages) { echo '<a href="index.php?view=home&content=list&s=' . ($start + $displayhome) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">Next</a>';} } echo "</p></td>"; ?> </tr> </div> </form>
  3. how do i change my table border to single line..instead of like mine now.i changed the css.still the same.. <style type="text/css"> table.sample { border-width: 1px; border-spacing: 2px; border-style: outset; border-color: black; border-collapse: separate; background-color: white; font-weight: normal; color: black} } table.sample th { border-width: 1px; padding: 1px; border-style: inset; border-color: grey; background-color: white; -moz-border-radius: ; } table.sample td { border-width: 1px; padding: 1px; border-style: inset; border-color: grey; background-color: white; -moz-border-radius: ; } </style> <tr> <th>Header</th> <td>Content</td> </tr> </table> <?php echo ' <div id="content"> <div id="colOne"> <div id="logo"> <h1></h1> <h2><br>Nationwide Call Centre <br><br><i>Toll Free</i> </h2><h1>1800-22-1010</h1> </div> <div class="box"> <ul class="bottom"> <li class="first"><h5> <i>Web Design Package</i><br></br> </li> </ul> </div> </div> <div id="colTwo"> <h2>Web Design Package</h2> <div class="bodytext" style="padding: 12px;" align="justify"> <p style="text-align: center;"> </p> <p align="left"><br> </p> <p align="left"><font color="black">Web Design Package: </font></p> <table class="sample"> <tr> <th> <th>Standard</th> <th>Advance</th> </th> </tr> <td align="center"> <b>Layout</b> </td> <td> </td> <td> </td> <tr> <td>Number of Pages</td> <td>Up to 5</td> <td>Custom</td> </tr> <tr> <td>Design Concept</td> <td>Basic</td> <td>Custom</td> </tr> <tr> <td>Navigation Menu</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td>Navigation Drop Down Menu</td> <td>None</td> <td>Yes</td> </tr> <tr> </tr> <td align="center"> <b>Marketing Tools</b> </td> <td> </td> <td> </td> <tr> <td>Banners / Image Slider</td> <td>1</td> <td>Custom</td> </tr> <tr> <td>Enquiry Form</td> <td>1</td> <td>1</td> </tr> <tr> <td>Facebook or Twitter widgets</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td>Visitors Counter</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td>Copywriter</td> <td>None</td> <td>Yes</td> </tr> <tr> </tr> <td align="center"> <b>Page Editor</b> </td> <td> </td> <td> </td> <tr> <td>Photo Gallery</td> <td>None</td> <td>Yes</td> </tr> <tr> <td>Product Catalogue</td> <td>None</td> <td>Yes</td> </tr> <tr> <td>News Management</td> <td>None</td> <td>Yes</td> </tr> <tr> <td>Articles Management</td> <td>None</td> <td>Yes</td> </tr> <tr> <td>Banner Management</td> <td>None</td> <td>Yes</td> </tr> <tr> </tr> <td align="center"> <b>Domain Name & Web Hosting (1 year subscription)</b> </td> <td> </td> <td> </td> <tr> <td>Domain Name (.com)</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td>Web Hosting<br> 20GB of web/email space<br> Unlimited email account</td> <td>Yes</td> <td>Yes</td> </tr> <tr> <td><b>Price</b></td> <td><b>RM1,488.00</b></td> <td><b>To Quote</b></td> </tr> </table> </p> </div> </div> </div> ' ?>
  4. actually page 3 is not sample..its just a different page.but i want the same logo to appear in the 1st page/fancybox..so i need to take some codes of the logo from page 3, and implement on the 1st page/fancybox. but i dont know how to do it..
  5. okay so my problem is..i need to put the logo inside this fancybox..when u click page 1..it will link to page 2(fancybox). Inside the fancybox i want to put the logo..i attached a sample..just like on page 3.. this is code for page 1 and page2(fancybox page) <select name="month" onchange="this.form.submit();"> <option <?php if ($_POST['month'] == 'All') print 'selected '; ?> value="All">All</option> <option <?php if ($_POST['month'] == 'January') print 'selected '; ?> value="January">January</option> <option <?php if ($_POST['month'] == 'February') print 'selected '; ?> value="February">February</option> <option <?php if ($_POST['month'] == 'March') print 'selected '; ?> value="March">March</option> <option <?php if ($_POST['month'] == 'April') print 'selected '; ?> value="April">April</option> <option <?php if ($_POST['month'] == 'May') print 'selected '; ?> value="May">May</option> <option <?php if ($_POST['month'] == 'June') print 'selected '; ?> value="June">June</option> <option <?php if ($_POST['month'] == 'July') print 'selected '; ?> value="July">July</option> <option <?php if ($_POST['month'] == 'August') print 'selected '; ?> value="August">August</option> <option <?php if ($_POST['month'] == 'September') print 'selected '; ?> value="September">September</option> <option <?php if ($_POST['month'] == 'October') print 'selected '; ?> value="October">October</option> <option <?php if ($_POST['month'] == 'November') print 'selected '; ?> value="November">November</option> <option <?php if ($_POST['month'] == 'December') print 'selected '; ?> value="December">December</option> </select> </div> <br> <? $monthname=$_POST['month']; if (isset($_GET['np'])){ $num_pages=$_GET['np']; } else { if($searchtype == 'yes') if ($monthname=="All" || $monthname=="") { $query = "SELECT count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom desc"; }else { $query = "SELECT count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom desc"; } else if ($monthname=="All" || $monthname=="") { $query = "Select count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom desc"; }else { $query = "Select count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom desc"; } $result=mysql_query($query); $row=mysql_fetch_array($result, MYSQL_NUM); $num_records=$row[0]; if ($num_records > $displayhome){ $num_pages=ceil($num_records/$displayhome); } else { $num_pages=1; } } if (isset($_GET['s'])){ $start=$_GET['s']; } else { $start=0; } if ($monthname=="All" || $monthname=="") { $query = "SELECT master_event.*,master_type.type_name, DATE_FORMAT(event_datefrom, '%d %b %y') as datefrom, DATE_FORMAT(event_dateto, '%d %b %y') as dateto, event_venue, (event_name) as eventname FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom asc LIMIT $start, $displayhome"; }else { $query = "SELECT master_event.*,master_type.type_name, DATE_FORMAT(event_datefrom, '%d %b %y') as datefrom, DATE_FORMAT(event_dateto, '%d %b %y') as dateto, event_venue, (event_name) as eventname FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom asc LIMIT $start, $displayhome"; } $result = mysql_query($query); $bg='#e5e5e5'; while($row = mysql_fetch_array($result)){ $eventid = $row['event_id']; $eventname = str_replace("", "", $row['eventname']); $eventdatefrom = $row['datefrom']; $eventdateto = $row['dateto']; $event_venue = $row['event_venue']; $event_desc = $row['event_desc']; $speakerlist = $row['speakerlist']; $showline1 = ""; $showpros =""; $showline2 = ""; $showreg =""; $showline3 = ""; $showps =""; $showline4 = ""; $showtestimonial =""; $showline5 = ""; $showsp =""; $showline6 = ""; $showsl =""; if ($eventdatefrom ==$eventdateto) { $eventdate = $eventdatefrom; } else { $eventdate = $eventdatefrom . " - " . $eventdateto; } $querypros="select count(*) as proscount from master_prospectus where event_id ='$eventid' "; $resultpros = mysql_query($querypros); while($rowpros = mysql_fetch_array($resultpros)){ $proscount = $rowpros['proscount']; if ($proscount > 0) { $showline1 = "|"; $showpros ="Request Brochure"; } } $queryreg="select (CASE WHEN event_dateto >= NOW() THEN 'valid' ELSE 'invalid' END) AS validreg from master_event where event_id ='$eventid' "; $resultreg = mysql_query($queryreg); while($rowreg = mysql_fetch_array($resultreg)){ $validreg = $rowreg['validreg']; if ($validreg == "valid") { $showline2 = "|"; $showreg ="Online Registration"; } } $queryps="select count(*) as pscount from master_psevent where event_id ='$eventid' "; $resultps = mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $pscount = $rowps['pscount']; if ($pscount > 0) { $showline3 = "|"; $showps ="Partner & Sponsor"; } } $querytesm="select count(*) as tesmcount from master_testimonial where event_id ='$eventid' "; $resulttesm = mysql_query($querytesm); while($rowtesm = mysql_fetch_array($resulttesm)){ $tesmcount = $rowtesm['tesmcount']; if ($tesmcount > 0) { $showline4 = "|"; $showtestimonial ="Testimonial"; } } $querysp="select count(*) as spcount from master_speakernote where event_id ='$eventid' "; $resultsp = mysql_query($querysp); while($rowsp = mysql_fetch_array($resultsp)){ $spcount = $rowsp['spcount']; if ($spcount > 0) { $showline5 = "|"; $showsp ="Speaker Notes"; } } if ($speakerlist <> '') { $showline6 = "|"; $showsl ="Speaker List"; } echo "<tr><p style=\"font-size:small;\"> <td width='' ><img src='images/search.png' alt='tooltips' ></img>&nbsp<a href='index.php?view=event&content=tips&ttid=$eventid' title ='$eventname' class=\"fancybox fancybox.iframe\" style=\"color:#104E8B;text-decoration: none; \" ><strong><font size='2' face='Segoe UI' >$eventname</font></strong></a><br> <font color='#000000' size='2' face='arial' >Date : $eventdate <br> Venue : $event_venue<br></font> <table style=\"text-align: left; width: 400px; height: 92px;\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"> <tbody> <tr> <td></td> <td style=\"text-align: justify; color: #000000;\"> <font color='#000000' size='2' face='arial' > $event_desc</font></td> <td></td> </tr> </tbody> </table> <font color='#919191' size='1' face='arial' ><b> <a href='index.php?view=prospectus&regrq=$eventid' title ='Request Brochure...' >$showpros</a> <b>$showline1</b> <a href='index.php?view=registration&regrq=$eventid' title ='Online Registration...' > $showreg </a> <b>$showline2</b> <a href='index.php?view=event&content=psevent&ttid=$eventid' title ='Sponsor & Partner...' class='fancybox fancybox.iframe' >$showps</a> <b>$showline3</b> <a href='index.php?view=event&content=tesm&ttid=$eventid' title ='Testimonial...' class='fancybox fancybox.iframe' >$showtestimonial</a> <b>$showline4</b> <a href='index.php?view=spl&splid=$eventid' > $showsp</a><b>$showline5</b> <a href='index.php?view=event&content=speaker&ttid=$eventid' title ='$eventname' class='fancybox fancybox.iframe' > $showsl</a></font><br><br></td> </p></tr></b></font> "; } if ($eventid=="") { echo "No Records Found."; } echo "<td><p style=\"font-size:1;\">"; echo "<br>"; if ($num_pages > 1) { $current_page = ($start/$displayhome) + 1; if ($current_page != 1) { echo '<a href="index.php?view=home&content=list&s=' . ($start - $displayhome) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">Previous</a> ';} for ($i = 1; $i <= $num_pages; $i++) { if ($i != $current_page) { echo '<a href="index.php?view=home&content=list&s=' . (($displayhome * ($i - 1))) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">' . $i . '</a> '; } else { echo '<font face="arial" size="2">'; echo $i . '</font> ';} } if ($current_page != $num_pages) { echo '<a href="index.php?view=home&content=list&s=' . ($start + $displayhome) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">Next</a>';} } echo "</p></td>"; ?> </tr> </div> </form> i want the logo like on page 3 to be on fancybox code for page 3(sample) <? if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query = "select master_event.* , (DATE_FORMAT(event_datefrom, '%d %M %Y')) as datefrom, (DATE_FORMAT(event_dateto, '%d %M %Y')) as dateto, ucase(event_name) as eventname from master_event where master_event.event_id = '$ttid '"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ $eventname = $row['eventname']; $eventdesc = $row['event_desc']; //$companydescription = $row['company_description']; $eventvenue = $row['event_venue']; $eventfee = $row['event_fee']; $datefrom = $row['datefrom']; $dateto = $row['dateto']; echo "<font color='#000000' face='arial' ><b> $eventname </b> </font> <br>"; echo "<font color='#000000' face='arial' ><i>Date</i> : $datefrom - $dateto <br>"; echo "<i>Venue</i> : $eventvenue <br>"; $querypstype = "SELECT DISTINCT master_pstype.pstype_id, pstype_desc FROM master_pstype INNER JOIN master_psevent ON master_psevent.pstype_id= master_pstype.pstype_id where master_psevent.event_id = '$ttid' ORDER BY pstype_order"; $resultpstype=mysql_query($querypstype); while($rowpstype = mysql_fetch_array($resultpstype)){ $pstypeid = $rowpstype['pstype_id']; $pstypedesc = $rowpstype['pstype_desc']; echo "<br><font color='#8B3A3A' size='1' face='georgia' ><b><i>$pstypedesc</i></b></font> <br>"; $queryps = "SELECT master_psevent.*, pstype_desc, company_name, company_link, company_description, logo_filename FROM master_psevent LEFT JOIN master_pstype ON master_psevent.pstype_id = master_pstype.pstype_id LEFT JOIN master_ps ON master_ps.ps_id = master_psevent.ps_id WHERE master_psevent.event_id = '$ttid' and master_pstype.pstype_id= '$pstypeid' ORDER BY pstype_desc,company_name "; $resultps=mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $companyname = $rowps['company_name']; $companyid = $rowps['ps_id']; $companylinkori = $rowps['company_link']; $companydescription = $rowps['company_description']; $logopath = $rowps['logo_filename']; $describelink = "index.php?view=describe&ttid=$ttid&pstypeid=$pstypeid&psid=$companyid"; if(!empty($companydescription)){ echo "<a href=\"$describelink\" target=\"_blank\"><img src=".$logo_dir."/".$logopath." width=\"15%\" border=\"0\"></a>"; } else { echo "<a href=\"$describelink\" target=\"_blank\"><img src=".$logo_dir."/".$logopath." width=\"15%\" border=\"0\"></a>"; } } } } ?>
  6. Okay..when i click the slider i want it to anchor down to (Upcoming Events-same page as slider on the bottom)-see on photo 2, and the title event will change according to which photo i clicked on the slider.. o yea..im a newbie this is the code for home <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="jquery/jqFancyTransitions.1.8.min.js"></script> <link rel="stylesheet" href="styles2.css" type="text/css" /> <div id="page" > <div id="ftHolder"> <div id="ft"> <img src="slider/2.jpg" alt="CLINICAL WASTE CONFERENCE 2012" <i><a href='http://www.aep.com.my/index.php?view=event&content=tips&ttid=39'></a></i> <a href='#'></a> <img src="slider/6.jpg" alt="HOW TO EFFECTIVELY OUTSOURCE FACILITIES MANAGEMENT SERVICES" <i><a href='http://www.aep.com.my/index.php?view=event&content=tips&ttid=78'></a></i> <a href='#'></a> <img src="slider/7.jpg" alt="BIOMASS CONFERENCE 2012" <i><a href='http://www.aep.com.my/index.php?view=event&content=tips&ttid=80'></a></i> <a href='#'></a> <img src="slider/8.jpg" alt="NICHE NURSING CONFERENCE 2012" <i><a href='http://www.aep.com.my/index.php?view=event&content=tips&ttid=79'></a></i> <a href='#'></a> <img src="slider/5.jpg" alt="INTERNATIONAL PUBLIC PRIVATE PARTNERSHIP (PPP) & INFRASTRUCTURE SUMMIT & EXHIBITION 2012" <i><a href='http://www.aep.com.my/index.php?view=event&content=tips&ttid=81'></a></i> <a href='#'></a> <img src="slider/9.jpg" alt="TECHNICAL & VOCATIONAL EDUCATION & TRAINING (TVET) CONFERENCE 2012" <i><a href='http://www.aep.com.my/index.php?view=event&content=tips&ttid=82'></a></i> <a href='#'></a> </div> </div> </div> <script> $('#ft').jqFancyTransitions({ navigation: false, links : true,width: 710,height: 280 }); </script> <div id="shadow"> <img src="slider/slider.png" /> </div> <div id="left-column"> <div id="logo"> <span class="logotxt1"><span style="color: rgb(144, 66, 84);"> <span style="font-family: Matura MT Script Capitals;">W</span>elcome</span> <span style="color: rgb(170, 78, 100);"><span style="font-family: Matura MT Script Capitals;"></span></span> <span style="color: rgb(212, 97, 125);"><span style="color: rgb(188, 86, 111);"><span style="font-family: Matura MT Script Capitals;"></span></span><span style="color: rgb(221, 101, 130);"></span></span></span> <span class="logotxt2"></span><br> <table style="text-align: left; width: 430px; height: 92px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td></td> <td style="font-family: Arial; text-align: justify;"><font color='#000000' size='2' face='arial' ><i>Established in 2003, <b>Asia Executive Programs</b> develops and delivers business conferences and corporate training programmes. Our business conferences are conceptualised and developed through well-researched methodologies. We run our own-brand of conferences that are topical and focus on latest government policies and industry developments. Our business conferences and corporate training programmes are channels for ideas, experiences and best practices.</i></font></td> <td></td> </tr> </tbody> </table> </div> <div class="box"> <a name = "a"></a> <h1>Upcoming Events</h1> <? include ("page/home_upcoming_events.php"); ?> </div> </div> <div id="right-column" align="center" > <div id="main-image"><img class="shadow" src="images/logo.jpg"> </img></div> <span style="font-family: Arial;" class="txt"><strong>Asia Executive Programs Sdn. Bhd. <br>(623109-U)</strong></span><br style="font-family: Arial;"> <span style="font-family: Arial;" class="txt"> Unit 18-3A,<br> Menara 1MK, Kompleks 1 Mont’ Kiara<br> No 1 Jalan Kiara, Mont’ Kiara,<br> 50480 Kuala Lumpur,<br> Malaysia.<br> Tel: 603-6211 7009<br> 603-6211 9008 <br> 603-6211 9002 <br> Fax: 603-6211 9003<br> Website:<a href="http://www.aep.com.my"> www.aep.com.my</a><br> Email:<a href="mailto:info@aep.com.my"> info@aep.com.my</a><br><br> </span> <div class="sidebar"> <h3 align="right"><img src="images/gallery.jpg" />&nbsp&nbsp&nbsp</h3> <? include ("page/home_gallery.php"); ?> <br> </div> </div> and this is code for the Upcoming event <form name ="frmupcomingevents" method="post" enctype="multipart/form-data" action="index.php?#a"> <link rel="stylesheet" href="jquery/tooltip/css/globaltip.css"> <script src="jquery/tooltip/js/jquery.js" type="text/javascript"></script> <script src="jquery/tooltip/js/jtip.js" type="text/javascript"></script> <title>fancyBox - Fancy jQuery Lightbox Alternative | Demonstration</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- Add jQuery library --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> <!-- Add mousewheel plugin (this is optional) --> <script type="text/javascript" src="lib/jquery.mousewheel-3.0.6.pack.js"></script> <!-- Add fancyBox main JS and CSS files --> <script type="text/javascript" src="source/jquery.fancybox.js"></script> <link rel="stylesheet" type="text/css" href="source/jquery.fancybox.css" media="screen" /> <!-- Add Button helper (this is optional) --> <link rel="stylesheet" type="text/css" href="source/helpers/jquery.fancybox-buttons.css?v=2.0.3" /> <script type="text/javascript" src="source/helpers/jquery.fancybox-buttons.js?v=2.0.3"></script> <!-- Add Thumbnail helper (this is optional) --> <link rel="stylesheet" type="text/css" href="source/helpers/jquery.fancybox-thumbs.css?v=2.0.3" /> <script type="text/javascript" src="source/helpers/jquery.fancybox-thumbs.js?v=2.0.3"></script> <script type="text/javascript"> $(document).ready(function() { /* Simple image gallery. Use default settings */ $('.fancybox').fancybox(); /* Different effects */ // Change title type, overlay opening speed and opacity $(".fancybox-effects-a").fancybox({ helpers: { title : { type : 'outside' }, overlay : { speedIn : 500, opacity : 0.95 } } }); // Disable opening and closing animations, change title type $(".fancybox-effects-b").fancybox({ openEffect : 'none', closeEffect : 'none', helpers : { title : { type : 'over' } } }); // Set custom style, close if clicked, change title type and overlay color $(".fancybox-effects-c").fancybox({ wrapCSS : 'fancybox-custom', closeClick : true, helpers : { title : { type : 'inside' }, overlay : { css : { 'background-color' : '#eee' } } } }); // Remove padding, set opening and closing animations, close if clicked and disable overlay $(".fancybox-effects-d").fancybox({ padding: 0, openEffect : 'elastic', openSpeed : 150, closeEffect : 'elastic', closeSpeed : 150, closeClick : true, helpers : { overlay : null } }); /* Button helper. Disable animations, hide close button, change title type and content */ $('.fancybox-buttons').fancybox({ openEffect : 'none', closeEffect : 'none', prevEffect : 'none', nextEffect : 'none', closeBtn : false, helpers : { title : { type : 'inside' }, buttons : {} }, afterLoad : function() { this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); } }); /* Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked */ $('.fancybox-thumbs').fancybox({ prevEffect : 'none', nextEffect : 'none', closeBtn : false, arrows : false, nextClick : true, helpers : { thumbs : { width : 50, height : 50 } } }); }); </script> <style type="text/css"> .fancybox-custom .fancybox-outer { box-shadow: 0 0 50px #222; } </style> <div id="contentPad"> <div align="left"> <select name="month" onchange="this.form.submit();"> <option <?php if ($_POST['month'] == 'All') print 'selected '; ?> value="All">All</option> <option <?php if ($_POST['month'] == 'January') print 'selected '; ?> value="January">January</option> <option <?php if ($_POST['month'] == 'February') print 'selected '; ?> value="February">February</option> <option <?php if ($_POST['month'] == 'March') print 'selected '; ?> value="March">March</option> <option <?php if ($_POST['month'] == 'April') print 'selected '; ?> value="April">April</option> <option <?php if ($_POST['month'] == 'May') print 'selected '; ?> value="May">May</option> <option <?php if ($_POST['month'] == 'June') print 'selected '; ?> value="June">June</option> <option <?php if ($_POST['month'] == 'July') print 'selected '; ?> value="July">July</option> <option <?php if ($_POST['month'] == 'August') print 'selected '; ?> value="August">August</option> <option <?php if ($_POST['month'] == 'September') print 'selected '; ?> value="September">September</option> <option <?php if ($_POST['month'] == 'October') print 'selected '; ?> value="October">October</option> <option <?php if ($_POST['month'] == 'November') print 'selected '; ?> value="November">November</option> <option <?php if ($_POST['month'] == 'December') print 'selected '; ?> value="December">December</option> </select> </div> <br> <? $monthname=$_POST['month']; if (isset($_GET['np'])){ $num_pages=$_GET['np']; } else { if($searchtype == 'yes') if ($monthname=="All" || $monthname=="") { $query = "SELECT count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom desc"; }else { $query = "SELECT count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom desc"; } else if ($monthname=="All" || $monthname=="") { $query = "Select count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom desc"; }else { $query = "Select count(*) FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom desc"; } $result=mysql_query($query); $row=mysql_fetch_array($result, MYSQL_NUM); $num_records=$row[0]; if ($num_records > $displayhome){ $num_pages=ceil($num_records/$displayhome); } else { $num_pages=1; } } if (isset($_GET['s'])){ $start=$_GET['s']; } else { $start=0; } if ($monthname=="All" || $monthname=="") { $query = "SELECT master_event.*,master_type.type_name, DATE_FORMAT(event_datefrom, '%d %b %y') as datefrom, DATE_FORMAT(event_dateto, '%d %b %y') as dateto, event_venue, (event_name) as eventname FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 order by event_datefrom asc LIMIT $start, $displayhome"; }else { $query = "SELECT master_event.*,master_type.type_name, DATE_FORMAT(event_datefrom, '%d %b %y') as datefrom, DATE_FORMAT(event_dateto, '%d %b %y') as dateto, event_venue, (event_name) as eventname FROM master_event LEFT JOIN master_type ON master_type.type_id = master_event.type_id where isupcomingevent = 1 AND MONTHNAME(event_datefrom) = '$monthname' order by event_datefrom asc LIMIT $start, $displayhome"; } $result = mysql_query($query); $bg='#e5e5e5'; while($row = mysql_fetch_array($result)){ $eventid = $row['event_id']; $eventname = str_replace("", "", $row['eventname']); $eventdatefrom = $row['datefrom']; $eventdateto = $row['dateto']; $event_venue = $row['event_venue']; $event_desc = $row['event_desc']; $speakerlist = $row['speakerlist']; $showline1 = ""; $showpros =""; $showline2 = ""; $showreg =""; $showline3 = ""; $showps =""; $showline4 = ""; $showtestimonial =""; $showline5 = ""; $showsp =""; $showline6 = ""; $showsl =""; if ($eventdatefrom ==$eventdateto) { $eventdate = $eventdatefrom; } else { $eventdate = $eventdatefrom . " - " . $eventdateto; } $querypros="select count(*) as proscount from master_prospectus where event_id ='$eventid' "; $resultpros = mysql_query($querypros); while($rowpros = mysql_fetch_array($resultpros)){ $proscount = $rowpros['proscount']; if ($proscount > 0) { $showline1 = "|"; $showpros ="Request Brochure"; } } $queryreg="select (CASE WHEN event_dateto >= NOW() THEN 'valid' ELSE 'invalid' END) AS validreg from master_event where event_id ='$eventid' "; $resultreg = mysql_query($queryreg); while($rowreg = mysql_fetch_array($resultreg)){ $validreg = $rowreg['validreg']; if ($validreg == "valid") { $showline2 = "|"; $showreg ="Online Registration"; } } $queryps="select count(*) as pscount from master_psevent where event_id ='$eventid' "; $resultps = mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $pscount = $rowps['pscount']; if ($pscount > 0) { $showline3 = "|"; $showps ="Partner & Sponsor"; } } $querytesm="select count(*) as tesmcount from master_testimonial where event_id ='$eventid' "; $resulttesm = mysql_query($querytesm); while($rowtesm = mysql_fetch_array($resulttesm)){ $tesmcount = $rowtesm['tesmcount']; if ($tesmcount > 0) { $showline4 = "|"; $showtestimonial ="Testimonial"; } } $querysp="select count(*) as spcount from master_speakernote where event_id ='$eventid' "; $resultsp = mysql_query($querysp); while($rowsp = mysql_fetch_array($resultsp)){ $spcount = $rowsp['spcount']; if ($spcount > 0) { $showline5 = "|"; $showsp ="Speaker Notes"; } } if ($speakerlist <> '') { $showline6 = "|"; $showsl ="Speaker List"; } echo "<tr><p style=\"font-size:small;\"> <td width='' ><img src='images/search.png' alt='tooltips' ></img>&nbsp<a href='index.php?view=event&content=tips&ttid=$eventid' title ='$eventname' class=\"fancybox fancybox.iframe\" style=\"color:#104E8B;text-decoration: none; \" ><strong><font size='2' face='Segoe UI' >$eventname</font></strong></a><br> <font color='#000000' size='2' face='arial' >Date : $eventdate <br> Venue : $event_venue<br></font> <table style=\"text-align: left; width: 400px; height: 92px;\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"> <tbody> <tr> <td></td> <td style=\"text-align: justify; color: #000000;\"> <font color='#000000' size='2' face='arial' > $event_desc</font></td> <td></td> </tr> </tbody> </table> <font color='#919191' size='1' face='arial' ><b> <a href='index.php?view=prospectus&regrq=$eventid' title ='Request Brochure...' >$showpros</a> <b>$showline1</b> <a href='index.php?view=registration&regrq=$eventid' title ='Online Registration...' > $showreg </a> <b>$showline2</b> <a href='index.php?view=event&content=psevent&ttid=$eventid' title ='Sponsor & Partner...' class='fancybox fancybox.iframe' >$showps</a> <b>$showline3</b> <a href='index.php?view=event&content=tesm&ttid=$eventid' title ='Testimonial...' class='fancybox fancybox.iframe' >$showtestimonial</a> <b>$showline4</b> <a href='index.php?view=spl&splid=$eventid' > $showsp</a><b>$showline5</b> <a href='index.php?view=event&content=speaker&ttid=$eventid' title ='$eventname' class='fancybox fancybox.iframe' > $showsl</a></font><br><br></td> </p></tr></b></font> "; } if ($eventid=="") { echo "No Records Found."; } echo "<td><p style=\"font-size:1;\">"; echo "<br>"; if ($num_pages > 1) { $current_page = ($start/$displayhome) + 1; if ($current_page != 1) { echo '<a href="index.php?view=home&content=list&s=' . ($start - $displayhome) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">Previous</a> ';} for ($i = 1; $i <= $num_pages; $i++) { if ($i != $current_page) { echo '<a href="index.php?view=home&content=list&s=' . (($displayhome * ($i - 1))) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">' . $i . '</a> '; } else { echo '<font face="arial" size="2">'; echo $i . '</font> ';} } if ($current_page != $num_pages) { echo '<a href="index.php?view=home&content=list&s=' . ($start + $displayhome) . '&np=' . $num_pages . '#a" class="style1" style="color:#4F94CD;text-decoration: none;">Next</a>';} } echo "</p></td>"; ?> </tr> </div> </form>
  7. i actually ammended the codes..please see the second one.. i change on the $describelink part
  8. ok so before this.. if there isnt description for the company..the logo cant be click..only can be clicked if there is description added..im confused.. <? if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query = "select master_event.* , (DATE_FORMAT(event_datefrom, '%d %M %Y')) as datefrom, (DATE_FORMAT(event_dateto, '%d %M %Y')) as dateto, ucase(event_name) as eventname from master_event where master_event.event_id = '$ttid '"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ $eventname = $row['eventname']; $eventdesc = $row['event_desc']; //$companydescription = $row['company_description']; $eventvenue = $row['event_venue']; $eventfee = $row['event_fee']; $datefrom = $row['datefrom']; $dateto = $row['dateto']; echo "<font color='#000000' face='arial' ><b> $eventname </b> </font> <br>"; echo "<font color='#000000' face='arial' ><i>Date</i> : $datefrom - $dateto <br>"; echo "<i>Venue</i> : $eventvenue <br>"; $querypstype = "SELECT DISTINCT master_pstype.pstype_id, pstype_desc FROM master_pstype INNER JOIN master_psevent ON master_psevent.pstype_id= master_pstype.pstype_id where master_psevent.event_id = '$ttid' ORDER BY pstype_order"; $resultpstype=mysql_query($querypstype); while($rowpstype = mysql_fetch_array($resultpstype)){ $pstypeid = $rowpstype['pstype_id']; $pstypedesc = $rowpstype['pstype_desc']; echo "<br><font color='#8B3A3A' size='1' face='georgia' ><b><i>$pstypedesc</i></b></font> <br>"; $queryps = "SELECT master_psevent.*, pstype_desc, company_name, company_link, company_description, logo_filename FROM master_psevent LEFT JOIN master_pstype ON master_psevent.pstype_id = master_pstype.pstype_id LEFT JOIN master_ps ON master_ps.ps_id = master_psevent.ps_id WHERE master_psevent.event_id = '$ttid' and master_pstype.pstype_id= '$pstypeid' ORDER BY pstype_desc,company_name "; $resultps=mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $companyname = $rowps['company_name']; $companyid = $rowps['ps_id']; $companylinkori = $rowps['company_link']; $companydescription = $rowps['company_description']; $logopath = $rowps['logo_filename']; $describelink = "index.php?ttid=$ttid&content=describe&pstypeid=$pstypeid&psid=$companyid"; echo "<a href=\"$describelink\" target=\"_blank\"><img src=".$logo_dir."/".$logopath." width=\"15%\"></a>"; ?> <br> <? } echo "<br>"; } } ?> im new..so to make it simple..the problem is ..i want it to be (if there is description = logo can be click, if no = otherwise)
  9. i tried to access website from a shared network but i keep getting this error. Before this I can access the website through my local host. But since we have started using the shared server.. i cant access most of the websites.. i searched on google they mentioned about php.ini settings. No idea why did my superior changed to iis server.. definitely works on apache before.
  10. this is the errors PHP Notice: Use of undefined constant view - assumed 'view' in C:\inetpub\wwwroot\ablenetcommy\index.php on line 139 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 142 PHP Warning: fopen(hitcounter.txt): failed to open stream: Permission denied in C:\inetpub\wwwroot\ablenetcommy\counter.php on line 5 PHP Warning: fputs() expects parameter 1 to be resource, boolean given in C:\inetpub\wwwroot\ablenetcommy\counter.php on line 6 PHP Warning: fclose() expects parameter 1 to be resource, boolean given in C:\inetpub\wwwroot\ablenetcommy\counter.php on line 7 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 146 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 149 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 152 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 155 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 158 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 161 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 164 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 167 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 170 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 173 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 176 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 179 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 182 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 185 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 188 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 191 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 194 PHP Notice: Undefined variable: view in C:\inetpub\wwwroot\ablenetcommy\index.php on line 197 and this is my index.php <?session_start();?> <? include ('config.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Ablenet Group</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="default.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="menu.css" type="text/css" media="screen" /> <style> #menu li .drop {background:url("images/drop.gif") no-repeat right 8px; </style> <style type="text/css"> a:focus { outline: none; } a.trigger{ position: absolute; background:#88bbd4 ; text-decoration: none; font-size: 11px; font-family: tahoma; color:#fff; padding:5px 12px 6px 10px; font-weight: bold; z-index:2; } a.trigger.left { left: 0; border-top-right-radius: 5px; -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; border-bottom-right-radius: 5px; } a.trigger.right { right: 0; border-bottom-left-radius: 5px; border-top-left-radius: 5px; -moz-border-radius-bottomleft: 5px; -moz-border-radius-topleft: 5px; -webkit-border-bottom-left-radius: 5px; -webkit-border-top-left-radius: 5px; } a.trigger:hover { background-color:#59B; } a.active.trigger { background:#666 ; } .panel { font-size: 12px; font-family: tahoma; color:#CCC; position: absolute; display: none; background: #000000; width: 350px; height: auto; z-index:1; } .panel.left { left: 0; padding: 20px 30px 20px 50px; border-top-right-radius: 15px; -moz-border-radius-topright: 15px; -webkit-border-top-right-radius: 15px; -moz-border-radius-bottomright: 15px; -webkit-border-bottom-right-radius: 15px; border-bottom-right-radius: 15px; } .panel.right { right: 0; padding: 20px 100px 20px 30px; border-bottom-left-radius: 15px; border-top-left-radius: 15px; -moz-border-radius-bottomleft: 15px; -moz-border-radius-topleft: 15px; -webkit-border-bottom-left-radius: 15px; -webkit-border-top-left-radius: 15px; } .panel p { font-size:11px; font-family: tahoma; color:#fff; } </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="js/jquery.slidePanel.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ // default settings // $('.panel').slidePanel(); // custom settings $('#panel1').slidePanel({ triggerName: '#trigger1', position: 'fixed', triggerTopPos: '80px', panelTopPos: '0px', }); $('#panel2').slidePanel({ triggerName: '#trigger2', position: 'fixed', triggerTopPos: '120px', panelTopPos: '10px' }); $('#panel3').slidePanel({ triggerName: '#trigger3', triggerTopPos: '220px', panelTopPos: '200px', ajax: true, ajaxSource: 'side.html' }); }); </script> </head> <body> <a href="#" id="trigger1" class="trigger right">Web <br>Package</a> <div id="panel1" class="panel right"> <p><font color="red">Web Design & Maintenance</font><br><br> <p><font color="white"> <p> <img src="images/indent.png" /> Standard Web Design Package<span>&nbsp <font color=red>RM1,488.00</font></span></a> <span><a href="index.php?view=webdesign"><font color=red>Read more...</font></span></a></p> <p><img src="images/indent.png" /> Advance Web Design Package</p> <p><img src="images/indent.png" /> Website Maintenance</p> <p><img src="images/indent.png" /> Domain Name and Web Hosting Services</p></font><br> <p><font color="red">For more information, please call</font> <font color="#CD919E">1800-22-1010 </font> <p> <p><font color="red">or <a href="index.php?view=feedback" style="font-weight:bold; color: #CD919E; " onmouseover="this.style.color='#FFFFFF'" onmouseout="this.style.color='#CD919E'">send us your enquiry. </a></font> <p> </div> <? include ("header/header.php"); ?> <? if(isset($_GET[view])) { $view = $_GET[view]; } if ($view == ''){ include (VIEWPAGE.'main.php'); include ("counter.php"); } if ($view == 'home'){ include (VIEWPAGE.'main.php'); } if ($view == 'servicesla'){ include (VIEWPAGE.'service_sla.php'); } if ($view == 'servicecon'){ include (VIEWPAGE.'service_consulting.php'); } if ($view == 'solutions'){ include (VIEWPAGE.'solution.php'); } if ($view == 'fulfillment'){ include (VIEWPAGE.'fulfillment.php'); } if ($view == 'about'){ include (VIEWPAGE.'aboutus.php'); } if ($view == 'contact'){ include (VIEWPAGE.'contactus.php'); } if ($view == 'career'){ include (VIEWPAGE.'career.php'); } if ($view == 'rms'){ include (VIEWPAGE.'software_rms.php'); } if ($view == 'erp'){ include (VIEWPAGE.'software_erp.php'); } if ($view == 'cdms'){ include (VIEWPAGE.'software_cdms.php'); } if ($view == 'tams'){ include (VIEWPAGE.'software_tams.php'); } if ($view == 'csms'){ include (VIEWPAGE.'software_csms.php'); } if ($view == 'feedback'){ include (VIEWPAGE.'feedback.php'); } if ($view == 'captcha_code_file'){ include (VIEWPAGE.'captcha_code_file.php'); } if ($view == 'submit'){ include (VIEWPAGE.'submit.php'); } if ($view == 'thanks'){ include (VIEWPAGE.'thanks.php'); } if ($view == 'webdesign'){ include (VIEWPAGE.'webdesign.php'); } ?> <? include ("footer/footer.php"); ?> </body> </html>
  11. im trying to connect to our office server by remote desktop.. but when i do it..alot of error came out from my index.php and counter.php.. does anyone ever experience these problems? what should i do..
  12. i need the image to go down same as the right column.. where and what do i need to alter? so this is the page source <html> <div id="wrapper"> <? include ("header/header.php"); ?> <div id="main-content"> <? if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } if(isset($_GET[pstypeid])) { $pstypeid = $_GET[pstypeid]; } if(isset($_GET[psid])) { $psid = $_GET[psid]; } $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query = "select master_event.* , (DATE_FORMAT(event_datefrom, '%d %M %Y')) as datefrom, (DATE_FORMAT(event_dateto, '%d %M %Y')) as dateto, ucase(event_name) as eventname from master_event where master_event.event_id = '$ttid '"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ $eventname = $row['eventname']; $eventdesc = $row['event_desc']; //$companydescription = $row['company_description']; $eventvenue = $row['event_venue']; $eventfee = $row['event_fee']; $datefrom = $row['datefrom']; $dateto = $row['dateto']; ?> <div class="header" align="center"> <? echo "<font color='#000000' face='arial' ><b> $eventname </b> </font> <br>"; echo "<font color='#000000' face='arial' ><i>Date</i> : $datefrom - $dateto <br>"; echo "<i>Venue</i> : $eventvenue <br>"; $querypstype = "SELECT master_pstype.* FROM master_pstype WHERE master_pstype.pstype_id = '$pstypeid'"; $resultpstype=mysql_query($querypstype); while($rowpstype = mysql_fetch_array($resultpstype)){ $pstypeid = $rowpstype['pstype_id']; $pstypedesc = $rowpstype['pstype_desc']; $queryps = "SELECT * FROM master_ps WHERE master_ps.ps_id = $psid"; $resultps=mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $companyname = $rowps['company_name']; $companyid = $rowps['ps_id']; $companylinkori = $rowps['company_link']; $companydescription = $rowps['company_description']; $logopath = $rowps['logo_filename']; ?> <div id="left-column"> <div id="left" align="left" > <div id="main-image"> <table style="text-align: right; width: 300px; height: 92px; padding : 0 30px 30px;float : left;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="font-family: Arial; text-align: left;"><font color='#000000' size='2' face='arial'> <br> <br> <? echo "<font color='#8B3A3A' size='1' face='georgia' ><b><i>$pstypedesc</i></b> </font> <br>"; echo '<img src="http://localhost/aep/pslogo/'.$logopath.'" width="40%">'; ?> </td> </tr> </tbody> </table> </div> </div> </div> </div> <? ?> <div id="right-column"> <div id="right" align="right" > <span style="color: rgb(144, 66, 84);"> <table style="text-align: left; width: 600px; height: 92px;" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="font-family: Arial; text-align: justify;"><font color='#000000' size='2' face='arial'><? echo $companydescription; ?> <br> <br> </td> </tr> </tbody> </table> </div> </div> <br> <? } echo ""; ?> <div id="footer">footer <a href="http://www.confidential.com.my/">u mad bro?</a><br /> </div> </div> <? } } ?> </html> this is the css /*** Global Settings ****/ body {font : normal 12px/1.6em Arial, Helvetica, sans-serif;color : #2a3845;margin : 0px;padding : 0; background: #FFFFFF repeat-x; } p { margin : 0;padding : 0;} a:visited, a:link {color : #2a3845;text-decoration : none;background:none;outline:none; } a:hover {color : #a43b55;text-decoration : none;background:none;outline:none; } h1 { color : #7a2e40;margin: 0px 0px 10px 0px;padding-bottom : 10px;font : normal 17px Georgia, serif;border-bottom : 1px solid #efece7;} h2 {color : #7a2e40;margin : 20px 0 10px;padding-bottom : 10px;font : normal 17px Georgia, serif;border-bottom : 1px solid #efece7;} h3 {color : #7a2e40;margin : 10px 0;padding-bottom : 10px;font : bold 14px Arial, Helvetica, sans-serif;border-bottom : 1px solid #efece7;} h4 { color : #7a2e40;font : normal 12px Georgia, serif;} h5 {color : #7a2e40;margin : 10px 0;padding-bottom : 10px;font : bold 12px Arial, Helvetica, sans-serif;border-bottom : 0px solid #efece7;} ul {padding:0;margin:0 0 0 17px;list-style: square url(images/bullet.gif);} .box {background : #f7f7f7;border : 1px solid #f0e9eb;padding : 15px;} /*** Layout ****/ #wrapper {margin : 0 auto;width : 776px;border-left : 1px solid #f0e9eb;border-right : 1px solid #f0e9eb;} #header {margin : 0 50px;} #bg {height : 25px;background : url(images/bg.gif) repeat-x;} #nav {background : url(images/red.jpg) repeat-x; padding : 10px 20px;text-align : right;color : #f6dde3;} #nav a:visited, #nav a:link {text-decoration : none;color : #f6dde3;} #nav a:hover {text-decoration : underline;color : #f6dde3;} #main-content {margin : 0 auto;} #logo {margin-bottom : 50px;} .logotxt1 {font : normal 18px Georgia, serif;color : #fa7393;margin : 10px 0 0 15px;} .logotxt2 {font : normal 18px Georgia, serif;color : #7a2e40; } #left-column {width : 440px;padding : 0 10px 30px;float : left;} #left-column2 {width : 715px;padding : 0 30px 30px;float : left;} #right-column {width : 270px;float : right;padding-top: 20px;} .crd a:visited, .crd a:link, .crd a:hover{text-decoration : none;color : #2a3845;cursor: text;} #footer {height: 20px; background : #f7f7f7;bottom:0px; border-top : 1px solid #f0e9eb;border-bottom : 1px solid #f0e9eb;padding : 5px 5px;clear : both;} /*** SideBAR ***/ #main-image {text-align : center;} .sidebar {width : 235px;margin : 0 auto;padding : 10px 25px;background : url(images/shadow.jpg) no-repeat top;} /*** image drop shadow***/ img.shadow { background: url(images/shadow-1000x1000.gif) no-repeat right bottom; padding: 5px 10px 10px 5px; }
  13. u mean like this ? "<img src=".$logo_dir."/".$imagepath." width=\"95%\" height=\"95%\"></img>"; its not working..
  14. Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/aep/public_html/administrator/page/master_psevent_edit.php on line 71 <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .style1 {color: #FFFFFF} --> </style> </head> <table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <td> <form action="" method="post" name="" id=""> <table width="600" border="0" align="left" cellpadding="2" cellspacing="2"> <tr > <td valign="top" ><input name="topcheckbox" type="checkbox" class="check" id="topcheckbox" onClick="selectallps();" value="ON"> Select All</td><td></td> <? $id = $_GET[id]; $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query="select DATE_FORMAT(event_datefrom, '%d %b %Y') AS datefrom, DATE_FORMAT(event_dateto, '%d %b %Y') AS dateto, event_venue , ucase(event_name) as eventname from master_event where event_id = '$id' "; $result=mysql_query($query,$connection) or die(mysql_error()); while($row=mysql_fetch_array($result)) { $eventdatefrom =$row['datefrom']; $eventdateto =$row['dateto']; $eventvenue =$row['event_venue']; echo "<strong>"; echo $row['eventname']; echo "</strong>Date : "; echo "$eventdatefrom - $eventdateto"; echo "<br> Venue : $eventvenue <br><br>"; } ?> </tr> <tr><table width="600" frame="box" rules="all" border="3px" align="left" cellpadding="2" cellspacing="2"> <td><strong><a href="javascript:goDelps()">Del</a></strong></td> <td width = "100" valign="top"><strong>Logo</strong></img></td> <td width = "400" ><strong>Type/Company Name</strong></td> </tr> <? $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query="SELECT master_psevent.*, pstype_desc, company_name, logo_filename FROM master_psevent LEFT JOIN master_pstype ON master_psevent.pstype_id = master_pstype.pstype_id LEFT JOIN master_ps ON master_ps.ps_id = master_psevent.ps_id where master_psevent.event_id = '$id' order by pstype_desc, company_name "; $result=mysql_query($query,$connection) or die(mysql_error()); while($row=mysql_fetch_array($result)) { $imagepath = $row['logo_filename']; $pseventid = $row['psevent_id']; $companyname = $row['company_name']; $type = $row['pstype_desc']; ?> <tr> <td valign="top"><input name="<? echo $pseventid; ?>" type="checkbox" class="check"></td><td> //this is line 71--<?echo "<img src=".$logo_dir."/".$imagepath." width="95%" height="95%"></img> "; ?> </td> <td valign="top" ><div align="left"> </div><? echo $type; ?><br><b><? echo $companyname; ?></b></td> </tr> <? } ?> <tr> <td><strong><a href="javascript:goDelps()" style="color:white; text-decoration:none;"><img src='images\delete.jpg'></img></a></strong></td> <td><strong><img src='images\photos.jpg'></img> </strong></td> <td><strong><img src='images\ps.bmp'></img> </strong></td> </tr> </table> </form></td> </tr> <form name = "eventinfor"> <input type='hidden' name='eventid' value=<? echo"$_GET[id]"; ?> > </form> </table> </html>
  15. ok so on my website which u can check out..its on www.aep.com.my .. at the first page..scroll down till u see upcoming events..click on page 2.. then click partner & sponsor button.. a page with logos will appear..so i only need to link on the DANAJAMIN logo, which ive done already. Other logos' links should be remove..but the logo remains there..please help me.. Another thing is i need the logos to appear horizontally instead of vertically.. so this is my source code <? if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query = "select master_event.* , (DATE_FORMAT(event_datefrom, '%d %M %Y')) as datefrom, (DATE_FORMAT(event_dateto, '%d %M %Y')) as dateto, ucase(event_name) as eventname from master_event where master_event.event_id = '$ttid '"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ $eventname = $row['eventname']; $eventdesc = $row['event_desc']; $companydescription = $row['company_description']; $eventvenue = $row['event_venue']; $eventfee = $row['event_fee']; $datefrom = $row['datefrom']; $dateto = $row['dateto']; echo "<font color='#000000' face='arial' ><b> $eventname </b> </font> <br>"; echo "<font color='#000000' face='arial' ><i>Date</i> : $datefrom - $dateto <br>"; echo "<i>Venue</i> : $eventvenue <br>"; $querypstype = "SELECT DISTINCT master_pstype.pstype_id, pstype_desc FROM master_pstype INNER JOIN master_psevent ON master_psevent.pstype_id= master_pstype.pstype_id where master_psevent.event_id = '$ttid' ORDER BY pstype_id"; $resultpstype=mysql_query($querypstype); while($rowpstype = mysql_fetch_array($resultpstype)){ $pstypeid = $rowpstype['pstype_id']; $pstypedesc = $rowpstype['pstype_desc']; echo "<br><font color='#8B3A3A' size='1' face='georgia' ><b><i>$pstypedesc</i></b></font> <br>"; $queryps = "SELECT master_psevent.*, pstype_desc, company_name, company_link, company_description, logo_filename FROM master_psevent LEFT JOIN master_pstype ON master_psevent.pstype_id = master_pstype.pstype_id LEFT JOIN master_ps ON master_ps.ps_id = master_psevent.ps_id WHERE master_psevent.event_id = '$ttid' and master_pstype.pstype_id= '$pstypeid' ORDER BY pstype_desc,company_name "; $resultps=mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $companyname = $rowps['company_name']; $companyid = $rowps['ps_id']; $companylinkori = $rowps['company_link']; $companydescription = $rowps['company_description']; if ($companyid==33){ $companylink = "http://www.aep.com.my/index.php?view=describe"; } else { if ($companylinkori <> "") { //$companylink = "http://".$rowps['company_link']; $companylink = "http://www.aep.com.my/index.php?view=".$companyid; } else { $companylink = ""; } } $logopath = $rowps['logo_filename']; if ($companylink <> ""){ echo "<font color='#4A708B' face='arial' ><a href=$companylink style=\"color:white;text-decoration: none; \" target='new'><img src=".$logo_dir."/".$logopath." width=\"15%\"></img></a>&nbsp&nbsp</font>"; } else { echo "<font color='#4A708B' face='arial' ><img src=".$logo_dir."/".$logopath." width=\"15%\"></img>&nbsp&nbsp</font>"; } ?> <br> <? } echo "<br>"; } } ?>
  16. ok so now all my logo link goes to the same page..i dont know how to fix it.i want all of them connect to a link(each of the company has their own company_link id) which i named company_link which is already in the database..so i need to call it.there are about 20 total logos.. except for the $company id=33..just remain that one.. <? if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query = "select master_event.* , (DATE_FORMAT(event_datefrom, '%d %M %Y')) as datefrom, (DATE_FORMAT(event_dateto, '%d %M %Y')) as dateto, ucase(event_name) as eventname from master_event where master_event.event_id = '$ttid '"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ $eventname = $row['eventname']; $eventdesc = $row['event_desc']; $companydescription = $row['company_description']; $eventvenue = $row['event_venue']; $eventfee = $row['event_fee']; $datefrom = $row['datefrom']; $dateto = $row['dateto']; echo "<font color='#000000' face='arial' ><b> $eventname </b> </font> <br>"; echo "<font color='#000000' face='arial' ><i>Date</i> : $datefrom - $dateto <br>"; echo "<i>Venue</i> : $eventvenue <br>"; $querypstype = "SELECT DISTINCT master_pstype.pstype_id, pstype_desc FROM master_pstype INNER JOIN master_psevent ON master_psevent.pstype_id= master_pstype.pstype_id where master_psevent.event_id = '$ttid' ORDER BY pstype_id"; $resultpstype=mysql_query($querypstype); while($rowpstype = mysql_fetch_array($resultpstype)){ $pstypeid = $rowpstype['pstype_id']; $pstypedesc = $rowpstype['pstype_desc']; echo "<br><font color='#8B3A3A' size='1' face='georgia' ><b><i>$pstypedesc</i></b></font> <br>"; $queryps = "SELECT master_psevent.*, pstype_desc, company_name, company_link, company_description, logo_filename FROM master_psevent LEFT JOIN master_pstype ON master_psevent.pstype_id = master_pstype.pstype_id LEFT JOIN master_ps ON master_ps.ps_id = master_psevent.ps_id WHERE master_psevent.event_id = '$ttid' and master_pstype.pstype_id= '$pstypeid' ORDER BY pstype_desc,company_name "; $resultps=mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $companyname = $rowps['company_name']; $companyid = $rowps['ps_id']; $companylinkori = $rowps['company_link']; $companydescription = $rowps['company_description']; if ($companyid==33){ $companylink = "http://(confidential)/index.php?view=describe"; } else { if ($companylinkori <> "") { //$companylink = "http://".$rowps['company_link']; $companylink = "http://(confidential)/index.php?view=".$companyid; } else { $companylink = ""; } } $logopath = $rowps['logo_filename']; if ($companylink <> ""){ echo "<font color='#4A708B' face='arial' ><a href=$companylink style=\"color:white;text-decoration: none; \" target='new'><img src=".$logo_dir."/".$logopath." width=\"15%\"></img></a>&nbsp&nbsp</font>"; } else { echo "<font color='#4A708B' face='arial' ><img src=".$logo_dir."/".$logopath." width=\"15%\"></img>&nbsp&nbsp</font>"; } ?> <br> <? } echo "<br>"; } } ?>
  17. not link to other website..i want it to link to another .php file that i created..
  18. Ok so my problem is i need to change the page link. Now if i click on the link (marked with red) it will link to the company website. So, instead of going to the website. I want to change it to link to another page which i created named (oscar.php on my index.php). But without removing the company logo on it. This is my 1st time encounter this type of case since im very new. this is the index <?session_start();?> <? include ('config.php'); include ('config_email.php'); include ('config_key.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>asia programs</title> <link rel="stylesheet" href="style.css" type="text/css" /> <script type="text/javascript" src="jquery/jquery.js"></script> <script type="text/javascript" src="jquery/thickbox/thickbox.js"></script> <link rel="stylesheet" href="jquery/thickbox/thickbox.css" type="text/css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <link rel="stylesheet" href="jquery/jquery.treeview.css" /> <script src="jquery/lib/jquery.cookie.js" type="text/javascript"></script> <script src="jquery/jquery.treeview.js" type="text/javascript"></script> <link rel="stylesheet" href="css/globalslide.css"> <style type="text/css"> #footer2 { position:absolute; bottom:0; width:100%; height:140px; background: #000; opacity:0.9; filter:alpha(opacity=92); } /* for moz/opera and others*/ html>body #footer2{position:fixed} #footer2-inner{ height: 69px; background-color: black; } /* margin-bottom ensures last content is not obscured by footer */ #content { margin-bottom: 69px; }</style> </head> <body> <? if(isset($_GET[view])) { $view = $_GET[view]; } if(isset($_GET[content])) { $content = $_GET[content]; } if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } if(isset($_GET[mod])) { $mod = $_GET[mod]; } if(isset($_GET[note])) { $note = $_GET[note]; } if ($ttid <> ''){ if ($content == 'tips') { include (VIEWPAGE.'view_event_tooltip.php'); } if ($content == 'tesm') { include (VIEWPAGE.'view_event_testimonial.php'); } if ($content == 'psevent') { include (VIEWPAGE.'view_event_ps.php'); } if ($content == 'oscar') { include (VIEWPAGE.'view_event_description.php'); } if ($content == 'prospectus') { include (VIEWPAGE.'view_event_prospectus.php'); } if ($content == 'speaker') { include (VIEWPAGE.'view_event_speakerlist.php'); } } elseif ($ttid == ''){ ?> <div id="wrapper"> <? include ("header/header.php"); ?> <div id="main-content"> <? if ($content== ''){ if ($view == ''){ include (VIEWPAGE.'home.php'); include ("counter.php"); } if ($view == 'home'){ include (VIEWPAGE.'home.php'); } if ($view == 'about'){ include (VIEWPAGE.'view_aboutus.php'); } if ($view == 'sponsorship'){ include (VIEWPAGE.'view_sponsorship.php'); } if ($view == 'gallery'){ include (VIEWPAGE.'view_gallery.php'); } if ($view == 'subgallery'){ include (VIEWPAGE.'view_subgallery.php'); } if ($view == 'news'){ include (VIEWPAGE.'view_news.php'); } if ($view == 'subnews'){ include (VIEWPAGE.'view_subnews.php'); } if ($view == 'contact'){ include (VIEWPAGE.'view_contactus.php'); } if ($view == 'enquirysubmit'){ include (VIEWPAGE.'view_enquiry_thankyou.php'); } if ($view == 'career'){ include (VIEWPAGE.'view_career.php'); } if ($view == 'event'){ include (VIEWPAGE.'view_event_search.php'); } if ($view== 'spl'){ include (VIEWPAGE.'view_event_speakernote_list.php'); } } if ($view == 'home'){ if ($content== 'list'){ include (VIEWPAGE.'home.php'); } } if ($view == 'event'){ if ($content== 'list'){ include (VIEWPAGE.'view_event_searchlist.php'); } } if ($view == 'registration') { include (VIEWPAGE.'view_event_registration.php'); } if ($view == 'regmsgsuccess') { include (VIEWPAGE.'view_event_registration_msgsuccess.php'); } if ($view == 'regmsgerror') { include (VIEWPAGE.'view_event_registration_msgerror.php'); } if ($view == 'prospectus') { include (VIEWPAGE.'view_event_prospectus.php'); } if ($view == 'msgsuccess') { include (VIEWPAGE.'view_event_prospectus_msgsuccess.php'); } if ($view == 'msgerror') { include (VIEWPAGE.'view_event_prospectus_msgerror.php'); } if ($view == 'sn') { include (VIEWPAGE.'view_event_speakernote.php'); } if ($view == 'confirmation') { if ($mod == 'reg') { include (VIEWPAGE.'view_event_registration_insert.php'); } if ($mod == 'pro') { include (VIEWPAGE.'view_event_prospectus_insert.php'); } if ($mod == 'note') { include (VIEWPAGE.'view_event_speakernote_insert.php'); } if ($mod == 'ec') { include (VIEWPAGE.'view_event_speakernote_check.php'); } if ($mod == 'ecspreg') { include (VIEWPAGE.'view_event_speakernote_ecsuccess.php'); } } ?> </div> <? include ("footer/footer.php"); ?> </div> <? if (($view == 'home')|| ($view == '')){ ?> <? } } ?> </body></html> ok so this is the code for the page that i attached a photo of it <? if(isset($_GET[ttid])) { $ttid = $_GET[ttid]; } $connection=mysql_connect("$server", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query = "select master_event.* , (DATE_FORMAT(event_datefrom, '%d %M %Y')) as datefrom, (DATE_FORMAT(event_dateto, '%d %M %Y')) as dateto, ucase(event_name) as eventname from master_event where master_event.event_id = '$ttid '"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ $eventname = $row['eventname']; $eventdesc = $row['event_desc']; $companydescription = $row['company_description']; $eventvenue = $row['event_venue']; $eventfee = $row['event_fee']; $datefrom = $row['datefrom']; $dateto = $row['dateto']; echo "<font color='#000000' face='arial' ><b> $eventname </b> </font> <br>"; echo "<font color='#000000' face='arial' ><i>Date</i> : $datefrom - $dateto <br>"; echo "<i>Venue</i> : $eventvenue <br>"; $querypstype = "SELECT DISTINCT master_pstype.pstype_id, pstype_desc FROM master_pstype INNER JOIN master_psevent ON master_psevent.pstype_id= master_pstype.pstype_id where master_psevent.event_id = '$ttid' ORDER BY pstype_id"; $resultpstype=mysql_query($querypstype); while($rowpstype = mysql_fetch_array($resultpstype)){ $pstypeid = $rowpstype['pstype_id']; $pstypedesc = $rowpstype['pstype_desc']; echo "<br><font color='#8B3A3A' size='1' face='georgia' ><b><i>$pstypedesc</i></b></font> <br>"; $queryps = "SELECT master_psevent.*, pstype_desc, company_name, company_link, company_description, logo_filename FROM master_psevent LEFT JOIN master_pstype ON master_psevent.pstype_id = master_pstype.pstype_id LEFT JOIN master_ps ON master_ps.ps_id = master_psevent.ps_id WHERE master_psevent.event_id = '$ttid' and master_pstype.pstype_id= '$pstypeid' ORDER BY pstype_desc,company_name "; $resultps=mysql_query($queryps); while($rowps = mysql_fetch_array($resultps)){ $companyname = $rowps['company_name']; $companylinkori = $rowps['company_link']; $companydescription = $rowps['company_description']; if ($companylinkori <> "") { $companylink = "http://".$rowps['company_link']; } else { $companylink = ""; } $logopath = $rowps['logo_filename']; if ($companylink <> ""){ echo "<font color='#4A708B' face='arial' ><a href=$companylink style=\"color:white;text-decoration: none; \" target='new'><img src=".$logo_dir."/".$logopath." width=\"15%\"></img></a>&nbsp&nbsp</font>"; } else { echo "<font color='#4A708B' face='arial' ><img src=".$logo_dir."/".$logopath." width=\"15%\"></img>&nbsp&nbsp</font>"; } ?> <br> <? } echo "<br>"; } } ?>
  19. thx man..ive managed to put the bar..but now it doesnt update anymore.. this is my code <html> <head> <script type="text/javascript" src="../administrator/page/nicEdit.js"></script> <script type="text/javascript"> bkLib.onDomLoaded(function() { nicEditors.allTextAreas() }); </script> <meta http-equiv="refresh" content="600"> <style type="text/css"> A:link {text-decoration: none} A:visited {text-decoration: none} A:active {text-decoration: none} A:hover {font-size:24; color: red;} </style> <script language="JavaScript"> function validate(){ companyname=document.frmpsedit.companyname.value; if ((companyname == '')){ alert('Invalid Company Name'); return false; } } </script> </head> <br/> <table cellspacing="4" border="0" bordercolor="#C8BBBE" bgcolor=""> <br> <? if ((isset($_POST['id'])) && (is_numeric($_POST['id']))) { $id=$_POST['id']; } elseif ((isset($_GET['id'])) && (is_numeric($_GET['id']))) { $id=$_GET['id']; } else { echo "error"; } $connection=mysql_connect("$servername", "$username", "$password") or die("Could not establish connection"); mysql_select_db($database_name, $connection) or die ("Could not select database"); $query="select * from master_ps WHERE ps_id='$id'"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $companyname= $row['company_name']; $companylink= $row['company_link']; $logofilename= $row['logo_filename']; $companydescription= $row['company_description']; $filepath=$logo_dir."/".$logofilename."?".time() ; } echo "<font color=\"#000000\" size=\"2\" face=\"verdana,arial\" ><strong>Edit Partner / Sponsor</strong> </font> <br><br>"; echo "<form name='frmpsedit' enctype='multipart/form-data' method='post' action='index.php?action=ps&menu=update' onSubmit='return validate()' "; echo "<tr><td valign='top'>Company Name $star:</td><td><input type='text' size='55' name='companyname' value='$companyname'></td></tr>"; echo "<tr><td valign='top'>Link :</td><td><input type='text' size='55' name='companylink' value='$companylink'></td></tr>"; echo "<tr><td valign='top'>Description :</td><td> <br><textarea name='companydescription' style=\"width: 450px; height: 100px;\">$companydescription</textarea><br><br></td></tr>"; echo "<tr><td valign='top'>Current Logo :</td><td><img src='$filepath' width='50%'> </a></img></td></tr>"; $photo_upload_fields = ""; $counter = 1; if( $_GET['$logocount'] ) $number_of_fields = (int)($_GET['$logocount']); echo "<tr><td valign='top'>New Logo :</td>"; while( $counter <= $logocount ) { echo "<td><input name='photo_filename[]' size = '55' type='file'/></td>"; $counter++; } echo "<input type='hidden' name='psid' value='$_GET[id]'>"; echo "<input type='hidden' name='logofilename' value='$logofilename'>"; echo "<br> "; ?> <? if(isset($_GET[id])){ echo "<tr><td><br/><input type='submit' name='submit' value='Update' onclick='return validate()'></td></tr>";} else echo "<tr><td><br/><input type='submit' name='submit' value='Submit' onclick='return validate()'></td></tr>"; echo "</form>"; echo "<tr><td><br/>$star indicates required field!</td></tr>"; ?> </table> <?//echo "<hr>";?> </html>
  20. ok so i need this kind of bar settings on my description box..problem is i dont know the code..help please
  21. the problem is how do i make the footer (which u can see on my attachment) go to the bottom of the page.. <body> <div id="body47"> <span class="class1"> <link rel="stylesheet" type="text/css" href="nav/nav.css" /> <script src="nav/stuHover.js" type="text/javascript"></script> <ul id="nav"> <li><a href="contactus.html">Contact Us</a></li> <li><a href="career.html">Career</a></li> <li><a href="#">Lauching Soon &#187;</a> <ul> <li><a href="http://www.sitename" target=_blank class="parent">pagename1</a></li> <li><a href="http://www.sitename" target=_blank class="parent">pagename2</a></li> </ul> </li> <li><a href="investorrelations.html">Investor Relations </a> </li> <li><a href="about_us.html">About Us</a></li> </ul> </span> <div id="logo"><a href="index.html"><img src="images/logo.png" alt="company" border="0" height="69" width="99" /></a></div> <div id="bottom_menu8"> <div id="bottom_menu6_box"> <div class="font_gold" id="b_top"> <div id="aboutus">careers</div> <span class="class3"> <div class="font_9" id="main_site"><a href="index.html">back to main site</a></div> </span></div> <div class="font_a2" id="body_8"> <p>We firmly believe that a key part of building a successful business is people and we are constantly looking for the right candidates to join our team. If you have talent with great attitude, we have a lot to offer. You may apply via email to myemail.com . All applications will be treated with strictest confidence. We regret only shortlisted candidates will be notified.</p> </div> <div id="body_2"> <div id="career_page"> <div id="accordion"> <div> <h3><a href="#" class="font_a3">Executives - Public Relations & Communications<span class="font_a1">- ( Kuala Lumpur )</span></a></h3> <div class="font_a1"> <ul> <p><strong>Responsibilities:</strong><br /> </p> <li> To prepare newsletters, press releases, articles, marketing materials etc.<br /> </li> <li> To keep the official website of the organization up-to-date.<br /> </li> <li>Creative and able to come up with new and innovative ideas or PR strategies.<br /> </li> <li> Planning, developing and implementing PR strategies.</li> <li> To liaise with colleagues and answering enquiries from media.</li> </ul> <p><br /> </p> <ul> <p><strong>Requirements:</strong><br /> </p> <li> Degree in Mass Communication or equivalent.<br /> </li> <li>Good command in written and spoken English, Chinese and Bahasa Malaysia.<br /> </li> <li>Has the responsibility to uphold the prestige of the company.<br /> </li> <li> Minimum 1 year working experience in relevant industry in preferred.<br /> </li> </ul> </div> <div> <h3><a href="#" class="font_a3">Executives - Sales & Administration <span class="font_a1">- ( Kuala Lumpur )</span></a></h3> <div> <ul> <p class="font_a1">Responsibilities:<br /> </p> <li><span class="font_a1">Monitor and follow-up on all loan documentation, outstanding amounts and stakeholder's sum due by purchasers, financiers, Bahagian Pinjaman Perumahan and solicitors.<br /> </span> </li> <li><span class="font_a1">Prepare sales, billing and collection status reports.<br /> </span> </li> <li><span class="font_a1">Prepare letter of consent to purchasers or banks for transfer of property.<br /> </span> </li> <li><span class="font_a1">Provide assistance in general office administration and sales function.<br /> </span> </li> </ul> <p class="font_a1"><br /> </p> <ul class="font_a1"> <p>Requirements:<br /> </p> <li>Degree or Diploma in Sales & Marketing or Business Administration<br /> </li> <li> Minimum 2 years working experience<br /> </li> <li> Good command in written and spoken English / Bahasa Malaysia<br /> </li> <li> Computer literate and knowledge of IFCA system is an advantage </li> </ul> </div> </div> <div> <h3><a href="#" class="font_a3">Project Engineer <span class="font_a1"> - ( Kuala Lumpur & Selangor )</span></a></h3> <div class="font_a1"> <ul> <p><strong>Responsibilities:</strong><br /> </p> <li>Attend and coordinate all site matters with various contractors, consultants and relevant authorities (technical or non-technical)<br /> </li> <li>Monitor construction workers, materials and machinery of the entire site to endure timely completion of the project<br /> </li> <li>Monitor progress of the construction site to meet targets of every stage of completion of the construction works such as billing stages<br /> </li> <li>Management and coordination of project with consultants and contractors, to ensure timely completion within budget whilst achieving the required quality standard<br /> </li> <li>Ensure compliance with the requirements of safety standard guidelines of the relevant Acts, regulations, by-laws and other<br /> </li> <li>Carry out Joint Inspection on incoming, in process and final inspection with consultant representatives in accordance with contract specification / drawings/ inspection and test plan <p><br /> </p> </li> </ul> <ul> <p><strong>Requirements:</strong><br /> </p> <li>Degree in Civil and Structural Engineering or Architectural or equivalent</li> <li>Minimum 4 years of working experience, preferably with experience in property development or construction company<br /> </li> <li>Well versed in architecture, structural, mechanical and electrical works<br /> </li> <li>Posses sound knowledge of construction and property development practices<br /> </li> <li>Able to work independently and self-motivated person </li> </ul> </div> <div> <h3><a href="#" class="font_a3">Executive - Sales <span class="font_a1"> - ( Kuala Lumpur & Selangor )</span></a></h3> <div class="font_a1"> <ul> <p><strong>Responsibilities:</strong><br /> </p> <li>Attend to all prospects and sources for new potential buyers, close sales and achieve sales target<br /> </li> <li>Participate in all sales launches and promotional events<br /> </li> <li>Assist in other marketing activities, such as road show, exhibition and booth set up<br /> </li> <li> Handle all sales documentations inclusive of Sales & Purchase Agreement, Loan Agreement, Billings and other relevant documents <p><br /> </p> </li> </ul> <ul> <p><strong>Requirements:</strong><br /> </p> <li>Minimum 2 years working experience in property sales</li> <li>Results oriented and able to work with other sales team<br /> </li> <li>Good people management skills, self-motivated, aggressive and positive working attitude<br /> </li> <li>Creative selling skills with strong sales closing technique </li> </ul> </div> <div> <h3><a href="#" class="font_a3">Clerk of works <span class="font_a1"> - ( Kuala Lumpur & Selangor )</span></a></h3> <div class="font_a1"> <ul> <p><strong>Responsibilities:</strong><br /> </p> <li>Monitor and control the construction quality and timely completion of the project<br /> </li> <li>Coordinate effectively with various contractors, consultants and authorities on all site matters<br /> </li> <li>Display team work and work closely with other personnel at all times <p><br /> </p> </li> </ul> <ul> <p><strong>Requirements:</strong><br /> </p> <li> Diploma or Degree in Civil and Structural Engineering or Architectural or equivalent</li> <li> Minimum 4 to 5 years working experience, preferably with experience in housing developments<br /> </li> <li>Experience in CONQUAS & QLASSIS Quality Inspections will be an advantage </li> </ul> </div> <h3> </h3> <div class="font_a1"> </div> <h3><span class="font_a1"><br /> </span></h3> </div> <div> <h3> </h3> </div> </div> </div> </div> </div> </div> <div class="font_gold" id="b_left"><strong>ALL RIGHT RESERVED 2011 © company name</strong></div> </div> </div> </body></html> please tell me where to alter it thx
  22. thx..im a beginner.fresh grad.and ive been trying all sort of things..so thats why my codes are messy..
×
×
  • 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.