Jump to content

How to center WebPage(zoom in zoom out) container not work


rjayzurc22

Recommended Posts

<html>

<head>

<title>Citigate Travel Plus</title>

 

<link rel="stylesheet" type="css" href="homepage.css"/>

<link rel="stylesheet" type="css" href="modalcss.css"/>

<link type="text/css" href="jquery-ui-1.7.3.custom.css" rel="stylesheet" />

<script src = "jquery-1.6.2.min.js" type = "text/javascript"></script>

<script src = "jquery-ui-1.7.3.custom.min.js" type = "text/javascript"></script>

<script type='text/javascript' src='slideshow.js'></script>

<script type='text/javascript' src='jquery.js'></script>

<script type='text/javascript' src='modal.js'></script>

 

 

</head>

 

 

<body>

 

 

<?php

include 'layoutbasic.php';

require_once("connect.php");

session_start();

$page="homepage.php";

$status = $_SESSION['status'];

$position="";

 

 

 

$featuredspot = array();

$slideshow = mysql_query("select * from tblhomepageslideshow ORDER BY ID DESC ");

 

while($r=mysql_fetch_array($slideshow))

{

array_push($featuredspot, $r[1]);

}

 

?>

 

<img src="promo.png" id="promo"/>

 

 

 

<input type="image" src="inquiry.png"  name="inquiry" id="inquiry" onclick="window.location.href = 'searchinquiry.php'"/>

<input type="image" src="operator.png"  name="operator" id="operator"/>

 

 

 

 

<div id="photoShow">

 

<div class="current">

<img src="<?php echo $featuredspot[0]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>

</div>

<div>

<img src="<?php echo $featuredspot[1]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>

</div>

<div>

<img src="<?php echo $featuredspot[2]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>

</div>

<div>

<img src="<?php echo $featuredspot[3]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>

</div>

<div>

<img src="<?php echo $featuredspot[4]?>" alt="Photo Gallery" width="700" height="280" class="gallery"/>

</div>

 

</div>

 

 

 

 

 

<?php

 

if($status==1)

{

$email = $_SESSION['email'];

$check = mysql_query("select * from tblmember where emailadd = '$email' ");

 

$row1 = mysql_fetch_assoc($check);

$fname = $row1['firstname'];

$position = $row1['status'];

 

echo "<div style = 'position:absolute; top:60; left:700; width:460; height:50; text-align:right; font-family:arial;'>";

echo "<h2>Hello, $fname</h2>";

echo "</div>";

}

else{

echo "<div style = 'position:absolute; top:55; left:700; width:460; height:50; text-align:right; font-family:arial;'>";

echo "<h1>Citigate Travel Plus</h1>";

echo "</div>";

}

include 'layoutmenus.php';

?>

 

 

<div id="chatbox">

<script id="sid0020000064511697063">(function() 

{function async_load(){s.id="cid0020000064511697063";s.src=(window.location.href.indexOf('file:///') > -1 ? 'http:' : '') + '//st.chatango.com/js/gz/emb.js';

s.style.cssText="width:250px;height:500px;";

s.async=true;s.text='{"handle":"citigatetravelplus","arch":"js","styles":{"a":"0f507e","b":100,"c":"FFFFFF","d":"FFFFFF","k":"0f507e","l":"0f507e","m":"0f507e","n":"FFFFFF","q":"0f507e","r":100,"allowpm":0,"cnrs":"0.35"}}';

var ss = document.getElementsByTagName('script');

for (var i=0, l=ss.length; i < l; i++){

if (ss.id=='sid0020000064511697063'){ss.id +='_';ss.parentNode.insertBefore(s, ss);break;}}}var s=document.createElement('script');

if (s.async==undefined){if (window.addEventListener) {addEventListener('load',async_load,false);}

else if (window.attachEvent) {attachEvent('onload',async_load);}}else {async_load();}})();

</script>

</div>

 

</body>

</html>

 

<?php

 

$per_page = 4;

 

$start = $_GET['start'];

 

$record_count = mysql_num_rows(mysql_query("SELECT * FROM tblpromopackages"));

 

$max_pages = $record_count / $per_page; 

 

$promo = mysql_query("select * from tblpromopackages LIMIT $start, $per_page");

 

$x=500;

$y=410;

$picture=0;

 

 

 

 

while($row=mysql_fetch_array($promo))

{

$id = $row[0];

$pname = $row[1];

$pprice = $row[2];

$image = $row[3];

 

echo "<div style='position:absolute; top:".$x."px; left:". $y . "px; font: 15px arial; text-align:center; '>";

echo"<img src='$image'; width=200px; height=120px;><br/>";

echo "$pname";

echo "<form action='preview.php' method='POST'>";

echo "<br/><input type='image' src='btnDetails.png'/>";

echo "<input type='hidden' name='id' id='id' value='$id'/>";

echo "<input type='hidden' name='table' id='table' value='tblpromopackages'/>";

echo "<input type='hidden' name='exit' id='exit' value='homepage.php'/>";

echo "</form>";

echo"</div>";

 

 

if($position=="admin")

{

$a=$x-8;

$b=$y-8;

echo "<div style='position:absolute; top:".$a."px; left:". $b . "px; font: 15px arial; text-align:center; '>";

echo "<a href='editpackage.php?edit=" . $id . "&table=tblpromopackages&exit=homepage.php'>[Edit]</a>";

echo"</div>";

 

$a=$x-8;

$b=$y+180;

echo "<div style='position:absolute; top:".$a."px; left:". $b . "px; font: 15px arial; text-align:center; '>";

echo "<a href='delete.php?id=" . $id . "&exit=homepage.php&table=tblpromopackages' onClick='confirm('Are you sure?')'><img src='delete.png'/ style='width:30; heigth:30;'></a>";

echo"</div>";

}

 

 

 

if($picture<1)

{

$y = $y+250;

$picture=$picture+1;

}

else

{

$picture=0;

$y=410;

$x=$x+210;

}

}

 

 

if($position=="admin"){

echo "<div style='position:absolute; top:462px; left:850px; font: 15px arial; text-align:center; '>";

echo "<a href='addpromo.php' style='color:white'>[Add]</a>";

echo"</div>";

 

echo "<div style='position:absolute; top:165px; left:850px; font: 15px arial; text-align:center; '>";

echo "<a href='addfeaturedspots.php' style='color:white'>[Add]</a>";

echo"</div>";

}

 

if($max_pages>1){

echo "<div style='position:absolute; top:900px; left:350px;  height:20;'>"; 

echo "<ul class='paginate'>";

 

$prev = $start - $per_page;

$next = $start + $per_page;

 

if ($start>0){

  echo " <a href='homepage.php?start=$prev'>prev</a> ";

?>

<script type="text/javascript">

 

window.scrollTo(0,450);

 

</script>

<?php

}

 

$i=1;

for ($x=0;$x<$record_count;$x=$x+$per_page)

{

if ($start!=$x)

echo "<a href='homepage.php?start=$x'>$i</a> ";

else

echo "<a href='homepage.php?start=$x'><b>$i</b></a>";

$i++;

}

 

 

if ($start<$record_count-$per_page)

  echo "<a href='homepage.php?start=$next'>next</a>";

  

 

echo "</ul>";

echo"</div>";

}

 

 

 

 

?>

 

 

 

 

<a href="https://www.facebook.com/zenoedge?fref=ts" target="_blank" class="twitter-share-button" data-lang="en" id="ads">

 <img src="ads.png" height="500">

</a>

 

 


Link to comment
Share on other sites

rather than simply posting your entire file, you really should explain a bit more context if you want help here.  i dont even know what your question is.  point us in the direction of where in the code you think your problem is, what you are trying to achieve, and where/how you think its failing.  that will be a good start.  oh, and please wrap your code in code tags.  easier to read that way

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.