Jump to content

Search the Community

Showing results for tags 'html'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

  1. Aw I never I found another new error because I though I already fix them all.. So here my problem, my while loop is looping twice.. They exactly display the data that I want, but they will display it twice.. so that's my problem. here my code : <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="finalproject"; // Database name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM student,surat,admin WHERE student.student_id=surat.student_id"; $result=mysql_query($sql); ?> <link href="TableCSSCodeupdate.css" rel="stylesheet" type="text/css"> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <table width="612" border="0" cellspacing="2" cellpadding="0" class="CSSTableGenerator"> <tr align="center"> </tr> <?php while($rows=mysql_fetch_array($result)){ ?> <td align="left"></td> <td align="left"><div align="left"><b>NO.</b> <td>:</td><td><? echo $rows['id_surat']; ?></div></td></tr> <td align="left"></td> <td align="left"><div align="left"><b>NAME</b> <td>:</td><td><? echo $rows['fullname']; ?></div></td></tr> <td align colspan="1" rowspan="2"></td> <tr align="left"> <td align="left"><div align="left"><b>STUDENT ID</b> <td>:</td><td> <? echo $rows['student_id']; ?></div></td></tr> <td align colspan="1" rowspan="2"></td> <tr align="left"> <td align="left"><div align="left"><b>IC NO.</b> <td>:</td><td><? echo $rows['ic_number']; ?></div></td></tr> <td align colspan="1" rowspan="2"></td> <tr align="left"> <td align="left"><div align="left"><b>COURSE</b> <td>:</td><td><? echo $rows['course']; ?></div></td></tr> <td align colspan="1" rowspan="2"></td></tr> <tr align="left"> <td align="left"><div align="left"><b>TYPE OF LETTER</b><td>:</td><td><? echo $rows['jenissurat']; ?></div></td></tr> <tr> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> </tr> <tr align="left"> <th scope="col"> </th> <th scope="col"> <?php $ids=$rows['id_surat']; $jenis=$rows['jenissurat']; switch($jenis) { case "TamatBelajar": echo '<a href="PHPWord/TamatBelajar-code.php">Generate Letter</a><br><br>'; mysql_query("UPDATE surat SET status='Approve' WHERE id_surat='$ids'"); break; case "PengesahanBelajar": echo '<a href="PHPWord/PengesahanBelajar-code.php">Generate Letter</a><br><br>'; mysql_query("UPDATE surat SET status='Approve' WHERE id_surat='$ids'"); break; case "KebenaranProjek": echo '<a href="PHPWord/KebenaranProjek-code.php">Generate Letter</a><br><br>'; mysql_query("UPDATE surat SET status='Approve' WHERE id_surat='$ids'"); break; case "PelepasanPeperiksaanAkhir": echo '<a href="PHPWord/PelepasanExam-code.php">Generate Letter</a><br><br>'; mysql_query("UPDATE surat SET status='Approve' WHERE id_surat='$ids'"); break; }?> </tr> <tr> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> </tr> </tr> <?php } ?> </table> </td> </tr> </table> <br> <?php mysql_close(); ?> </body> </html> I already download the file for that contain the full code. I really need help and solution ASAP.. Please :'( QueueLetterForm.php
  2. I'm trying to passing a data by url.. and what I want to know here, is it possible to insert php code inside <form action> ? Like this : <form id="form56" name="form56" class="wufoo topLabel page" autocomplete="off" enctype="multipart/form-data" method="post" novalidate action="<?php searchres.php?id=$id?>"> Or is there any better way that I can try? Hope someone can help me here.
  3. I have some php code that supervisors use to assign work to employees. I've added a field named clerks. There are 10 clerk names in the phpmyadmin database..clerk1, clerk2, clerk3, and so on to clerk10. I need for the clerk names to be automatically added to the clerk field in the form when it is opened..for instance, if the form is opened clerk1 is automatically inserted. And the next time it is opened, clerk2 is inserted until it reaches clerk10 & then starts over by inserting clerk1....is this possible?Like I said, I have a table in the database named clerk_names & the clerk's name is listed in this table. The database name is named flow. Any help will be greatly appreciated. Thanks
  4. I am using the service from bitping.net which uses a HTTP POST to send event data to my php script on my site. When an event is posted the data is inserted into a database and then triggers a SMS via the twilio script. For some reason my test event would run the script fine; insert the data and return info via SMS. but the actual event does not trigger the SMS! After a ton of debugging I tracked down the point where it stops working I have it broken into 3 parts. Data.php the main file Addresscheck.php Requiredebug.php I can only run two of these at a time. Data.php and require ("addresscheck.php"); or data.php and require ("requireDebug.php"); Both do work independently if I comment out the other include. I tried having one database, tried breaking it into two. (The way it is now) I keep thinking it must be a problem with the site bitping.net But every time data is passed into the database. Test/or real event. It is the twillio that is failing to trigger. It seems insane to me the Test event HTTP POST would be any different from the real event. I’ve been pounding my head with craziness; any pointers would be greatly appreciated. <?php //Call the 2 databases $conn = new mysqli('localhost', 'Admin', 'XXXXXXXX','MDHoldings'); //debug PASS //bitping HTTP post, but should work for Pubnub $to_address = $_POST["to_address"]; $amount = $_POST["amount"]; $btc = $_POST["btc_amount"]; $confirmations = $_POST["confirmations"]; $txhash = $_POST["txhash"]; $block = $_POST["block"]; $sig = $_POST["signature"]; $mysig = sha1( $address . $amount . $confirmations . $txhash . $block . "f632c83ad0f5a44d9a169902ff18b3ed" ); if ($mysig === $sig) { //check if number of confirmations is ok //update order/send user notification } else { //log all post data, send warning email to administrator } //get data //require ("requireDebug.php"); //store DATA $sql = "INSERT INTO `transactions` (`to_address`, `txhash`, `USD`, `amount`, `block`) VALUES ('$to_address', '$txhash', '$USD','$amount','$block')"; //KEEP TRACK OF IF's if ($conn->query($sql) === TRUE) { echo 'users entry saved successfully'; } else { echo 'Error: '. $conn->error; } //Debug PASS require ("addresscheck.php"); //debug 2 //require ("requireDebug.php"); //********** WHY CAN I ONLY Use 1?! If I only select one at a time, not both!? $cell = XXXXXXXXXX; //$Data = test; /* Send an SMS using Twilio. You can run this file 3 different ways: * * - Save it as sendnotifications.php and at the command line, run * php sendnotifications.php * * - Upload it to a web host and load mywebhost.com/sendnotifications.php * in a web browser. * - Download a local server like WAMP, MAMP or XAMPP. Point the web root * directory to the folder containing this file, and load * localhost:8888/sendnotifications.php in a web browser. */ // Step 1: Download the Twilio-PHP library from twilio.com/docs/libraries, // and move it into the folder containing this file. require "Services/Twilio.php"; // Step 2: set our AccountSid and AuthToken from www.twilio.com/user/account $AccountSid = "XXXXXXXXXXXXXXXXXXXXXXXXXX"; $AuthToken = "XXXXXXXXXXXXXXXXXXXXXXXXX"; // Step 3: instantiate a new Twilio Rest Client $client = new Services_Twilio($AccountSid, $AuthToken); // Step 4: make an array of people we know, to send them a message. // Feel free to change/add your own phone number and name here. $people = array( "$cell" => "$user", ); // Step 5: Loop over all our friends. $number is a phone number above, and // $name is the name next to it foreach ($people as $number => $name) { $sms = $client->account->sms_messages->create( // Step 6: Change the 'From' number below to be a valid Twilio number // that you've purchased, or the (deprecated) Sandbox number "XXXXXXXXXXXXX", // the number we are sending to - Any phone number $number, // the sms body " $test $name, There has been a deposit to $Account : $baddress you have $USD$ of new funds in your account. Recipt $txhash " ); // Display a confirmation message on the screen echo "Sent message to $name $amount"; } $conn->close(); ?> requireDebug.php <?php $conn = new mysqli('localhost', 'worker', 'XXXXXXX','test'); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } // sql query for INSERT INTO users (two rows) // SELECT sql query $sql = "SELECT `id`, Price FROM `Intake` ORDER BY id DESC LIMIT 1"; // perform the query and store the result $result = $conn->query($sql); // if the $result contains at least one row if ($result->num_rows > 0) { // output data of each row from $result while($row = $result->fetch_assoc()) { $rate = $row['Price']; } } else { echo '0 results'; } //$Data = $row['Price']; echo ($rate); $conn->close(); $USD = ($amount * $rate)/100000000; ?> addresscheck.php <?php // CONNECT TO THE DATABASE $conn = new mysqli('localhost', 'Admin', 'XXXXXXX','MDHoldings'); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } // sql query for INSERT INTO users (two rows) // SELECT sql query $sql2 = "SELECT * FROM Accounts WHERE Address = '$to_address'"; // perform the query and store the result $result2 = $conn->query($sql2); // if the $result contains at least one row if ($result2->num_rows > 0) { // output data of each row from $result while($row2 = $result2->fetch_assoc()) { $Account = $row2['Account']; } } else { echo '0 results'; } //echo ($test); //echo ($Account); //echo ($user_email); //echo ($Balance); $conn->close(); ?>
  5. Hello, I am new to this forum, but need to learn a thing or two about PHP... Now my request may be difficult or need a lot of planning to accomplish but here is what I am trying to do: I have a form connected to the database I am working with and It pulls queries from existing table data, and on change (submit) it replaces existing data. I now want to move forward, and do something different. I want to essentially have checkboxes (8 total) and if any one is checked, it will add to a value (making HTML) For example, if Checkbox 1 is selected, display - Which could be anything I needed it to beIf checkbox 2 is selected, the value will add to the bottom of the last field, and this repeats for each checkbox. The output (which I want to push into the Database) will be similar to as follows: [html Checkbox1] [html Checkbox2] [html Checkbox3] [4,5,6,7,8...] Again, this needs to go into the database to replace the existing field Any takers? Can anyone point me in the right direction?
  6. Please help me with my script. In another forum, I have read that it is impossible to have Javascript work in a PHP loop. What i wanted to do is to select only the products that has the status of live and output it in my webpage. The thing is, it outputs the values I retrieved from the database but the countdown timer only works in one product. Another problem of mine is that the onmouseover doesn't work at all. Please help me on how to solve those problems. Thank you! [/font] [font=Verdana, sans-serif]<?php $howmany = mysql_query("SELECT * FROM product WHERE status = 'LIVE'"); $nrow = mysql_num_rows($howmany); for($i = 0; $i < $nrow; $i++){ $row = mysql_fetch_array($howmany); $pname = $row[1]; $closedate = $row[4]; $img = $row[10]; ?> <td align='center'> <table background="images/auctionbox.gif" width="170" height="330"> <tr> <td align="center"><?php echo $pname; ?></td> </tr> <tr> <td height="50px" align="center" width="50px"><img src="<?php echo $img; ?>"></td> </tr> <tr> <td align="center"> <script language="Javascript"> TargetDate = "<?php echo $closedate ?>"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%%d %%H%%:%%M%%:%%S%%"; FinishMessage = "CLOSED!"; </script> <script language="Javascript" src="includes/countdown.js"></script> </td> </tr> <tr> <td align="center">P<label id="this">1.00</td> </tr> <tr> <td align="center">Last Bidder</td> </tr> <tr> <td align="center"> <script type="Javascript" src="includes/idkthis.js"></script> <a onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('BidButton','','images/bid-login.gif',1)" href="login"> <img name="BidButton" onload="MM_preloadImages('images/bid-login.gif')" width="90" height="40" src="images/bid-bid.gif"></a> </td> </tr> </table> </td> <?php } ?>
  7. I've tried three different attempts to force php to download. None of them are working correctly. Can anybody help me get this working? The text/garbage that displays on the screen looks like it was a zip opened in a text editor. I have also tried this http://stackoverflow...rbage-on-screen with no luck either First: Returns a page full of garbage $fid = $_GET['file']; $results = mysql_query("SELECT filename FROM files WHERE id=$fid"); if (mysql_numrows($results) == 0){ echo "<b>File not found</b>"; return; } $file = mysql_result($results,0,"filename"); $fileurl = 'http://url.com/files/'.$file; // Set headers header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$fileurl"); header("Content-Type: application/zip"); header("Content-Transfer-Encoding: binary"); // Read the file from disk readfile($fileurl); exit(); Second: Returns same garbage (.zip file) $fid = $_GET['file']; $results = mysql_query("SELECT filename FROM files WHERE id=$fid"); if (mysql_numrows($results) == 0){ echo "<b>File not found</b>"; return; } $file = mysql_result($results,0,"filename"); $fileurl = 'http://url.com/files/'.$file; header('Content-Description: File Transfer'); header('Content-Type: application/zip'); header('Content-Disposition: attachment; filename="'.basename($fileurl).'"'); //<<< Note the " " surrounding the file name header('Content-Transfer-Encoding: binary'); header('Connection: Keep-Alive'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($fileurl)); readfile($fileurl); Third: Returns same garbage, but also alters page layout $fid = $_GET["file"]; $results = mysql_query("SELECT filename FROM files WHERE id=$fid"); if (mysql_numrows($results) == 0){ echo '<b>File not found</b>'; return; } $file = mysql_result($results,0,'filename'); $fileurl = "http://url.com/files/".$file; // Inform browser that this is a force-download header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); // Inform browser that data can be binary in addition to text header('Content-Disposition: attachment; filename='.basename($fileurl)); header('Content-Transfer-Encoding: binary'); // Inform browser that this page expires immediately so that an update to the file will still work. header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($fileurl)); // Push actual file. ob_clean(); flush(); readfile($fileurl); exit(); Any help, insight, direction, or links would be greatly appreciated. Thank you. On a side note there are .zip, .rar, and .txt files. Do i just add content type lines?
  8. Hello, I am trying to output a grid of 3 columns (even if there is only 2 rows returned from the database) similar to a data table, but with divs instead. The data is coming from the database. Below is my current code (which is not working): <?php $end_row = 0; $columns = 3; $loop = 0; foreach ($events as $event) { if ($end_row == 0 && $loop++ != 0) { ?> <div class="left13 section_home"> <?php } ?> <h2><?php echo $event['event_title']; ?></h2> <a href="#"><img src="<?php echo ($event['photo_thumbnail'] != '') ? base_url() . 'media/photos/thumbnail/' . $event['photo_thumbnail'] : base_url() . 'images/no_photo_thumbnail.png'; ?>" alt="" title="" /></a> <p><?php echo ($event['event_description'] != '') ? substr($event['event_description'], 0, strpos($event['event_description'], ' ', 200)) : 'No description yet...'; ?></p> <a href="#" class="section_more"><span class="swirl_left"><span class="swirl_right">View This Event</span></span></a> <?php $end_row++; if($end_row >= $columns) { ?> </div> <?php $end_row = 0; } } if ($end_row != 0) { while ($end_row < $columns) { ?> <div class="left13 section_home"> </div> <?php $end_row++; } ?> <?php } ?> Here is how it should look. How can I adjust my current code to get this? <div class="left13 section_home"> <h2>Wedding <span>Location</span></h2> <a href="#"><img src="images/image_13.jpg" alt="" title="" /></a> <p>Ut enim ad minima veniam, quis nostru <strong>exercitationem</strong> ullam corporis laboriosam, nisi ut aliquid ex ea commodi <strong><a href="#">consequatur</a></strong> </p> <a href="#" class="section_more"><span class="swirl_left"><span class="swirl_right">read more</span></span></a> </div> <div class="left13 section_home"> <h2>Honeymoon <span>Destination</span></h2> <a href="#"><img src="images/image_13_2.jpg" alt="" title="" /></a> <p>Ut enim ad minima veniam, quis nostru <strong>exercitationem</strong> ullam corporis laboriosam, nisi ut aliquid ex ea commodi <strong><a href="#">consequatur</a></strong> </p> <a href="#" class="section_more"><span class="swirl_left"><span class="swirl_right">read more</span></span></a> </div> <div class="left13 section_home"> <h2>Girft <span>Registry</span></h2> <a href="#"><img src="images/image_13_3.jpg" alt="" title="" /></a> <p>Ut enim ad minima veniam, quis nostru <strong>exercitationem</strong> ullam corporis laboriosam, nisi ut aliquid ex ea commodi <strong><a href="#">consequatur</a></strong> </p> <a href="#" class="section_more"><span class="swirl_left"><span class="swirl_right">read more</span></span></a> </div>
  9. I need some a little help can't seem to find my own error ....What I'm trying to go for is a size select drownbox so when someone select Small,Medium or Large from Form1 that selection then gets pushed into my Cart Array along with my items id and quantity but for some reason I keep getting Notice: Undefined variable: sizeList in /home/content/72/10029872/html/cart.php on line 21 Warning: Cannot modify header information - headers already sent by (output started at /home/content/72/10029872/html/cart.php:21) in /home/content/72/10029872/html/cart.php on line 38 array <!------- HTML FORM ---------> <form id="form1" name="form1" method="post" action="cart.php"> <select name="size"> <option value="1">Small</option> <option value="2">Medium</option> <option value="3">Large</option> input type="hidden" name="pid" id="pid" value="<?php echo $sizeList; ?>" /> </select> <input type="hidden" name="pid" id="pid" value="<?php echo $id; ?>" /> <input type="submit" name="button" id="button" value="Add to Shopping Bag" /> </form> <!------- PHP CART ARRAY -------> <?php if (isset($_POST['pid'])) { $pid = $_POST['pid']; $wasFound = false; $i = 0; // If the cart session variable is not set or cart array is empty if (!isset($_SESSION["cart_array"]) || count($_SESSION["cart_array"]) < 1) { // RUN IF THE CART IS EMPTY OR NOT SET $_SESSION["cart_array"] = array(0 => array("item_id" => $pid, "quantity" => 1, "size" => $sizeList)); } else { // RUN IF THE CART HAS AT LEAST ONE ITEM IN IT foreach ($_SESSION["cart_array"] as $each_item) { $i++; while (list($key, $value) = each($each_item)) { if ($key == "item_id" && $value == $pid) { // That item is in cart already so let's adjust its quantity using array_splice() array_splice($_SESSION["cart_array"], $i-1, 1, array(array("item_id" => $pid, "quantity" => $each_item['quantity'] + 1))); $wasFound = true; } // close if condition } // close while loop } // close foreach loop if ($wasFound == false) { array_push($_SESSION["cart_array"], array("item_id" => $pid, "quantity" => 1)); } } header("location: cart.php"); exit(); } ?>
  10. Hi, I have to center a div in an absolute parent div. The usual suspect giving a width and adding margin:0 auto doesn't work. It "sorta" works if I put left:25% in the div I'm trying to center, but it doesn't adjust if I resize the screen. How do I do this? <div id="rest"> <div class="wrap-reset"> some content in center.. </div> </div> .wrap-reset { width:960px; position:relative; margin:0px; } #rest { position:absolute; top:0px; } Thanks,
  11. Hi, I know this is a very basic query but most of the tutorials etc. I can find seem to focus on querying multiple tables rather than one table. I want to filter the data from one table (Mutation) by three variables (prot_name, no_changes and amyloid) (all in this one table). In my main HTML page I have the form: <p><b>Advanced Search:</b>search for subgroups of mutations associated with a particular protein</p> <form action= "adv_mutationsearch.php" method='post'> <select name="result1"> <option value="alpha synuclein">alpha synclein</option> <option value="amyloid precursor protein">amyloid precursor protein</option> <option value="apolipoprotein A-1 precursor">apolipoprotein A-1 precursor</option> <option value="apolipoprotein A-1V precursor">apolipoprotein A-1V precursor</option> </select> <p><b>AND</b></p> <select name="result3"> <option value="amyloid">Amyloid</option> <option value="amorphous">Amorphous</option> <option value="non-amyloid">Non-amyloid</option> <option value="oligomers">Oligomers</option> <option value="undetermined">Undetermined</option> </select> <p><b>AND</b></p> <select name="result2"> <option value="single">Single</option> <option value="double">Double</option> <option value="multiple">Multiple</option> <option value="wild">Wild (original sequence)</option> </select> <br> <br> <input type='submit' value = 'filter'> </form> in my php file: <html><head> <link rel="stylesheet" type="text/css" href="tabs.css" media="screen" /> <title>Amyprot Table Viewer</title></head><body> <?php $db_host = '********'; $db_user = '********'; $db_pwd = '*********'; $database = 'amyprotdb'; $table = 'Mutation'; //receiving results from form submission and allocating to variables for query $query1 = $_POST['result1']; $query2 = $_POST['result2']; $query3 = $_POST['result3']; // connect to database if (!mysql_connect($db_host, $db_user, $db_pwd)) die("Can't connect to database"); if (!mysql_select_db($database)) die("Can't select database"); // query for sorting mutations by protein, number of changes and amyloidogenicity and printing result $result = mysql_query("SELECT * FROM {$table} WHERE prot_name_id={$query1} AND no_changes={$query2} AND amyloid={$query3}"); //to show results in table the current problem lies with the code below, the above code dows not show errors so need to undertsand the below sections. or change it to ordinary print out. $fields_num = mysql_num_fields($result); echo "<h1>Table: {$table}</h1>"; //echo "<table border='1'><tr>"; echo '<table cellpadding="0" cellspacing="1" class="db-table">'; // printing table headers for($i=0; $i<$fields_num; $i++) { $field = mysql_fetch_field($result); echo "<td>{$field->name}</td>"; } echo "</tr>\n"; // printing table rows while($row = mysql_fetch_row($result)) { echo "<tr>"; // $row is array... foreach( .. ) puts every element // of $row to $cell variable foreach($row as $cell) echo "<td>$cell</td>"; echo "</tr>\n"; } //mysql_free_result($result); ?> <div class="search"> <p>Return to database search page <a href="database.php"><span>Search</span></a></p> <p>Return to full mutations table <a href="mutationtable.php"><span>Mutation table</span></a></p> </div> </body></html> The error I get states that $result (when I am trying to print the table of results) is null meaning the whol post submission hasnt worked. I am an early learner as you can see, I have tried multiple ways to do this.. The set up above has been pared right back to the basics as I tried to clean up my code to see where the fault lay and now I am stuck. Thanks in advance x
  12. Hi, Now I'm having problem with html email where sentences are broken in the middle and make a new line.It would be new problem for a normal word, but it is a problem if it's happened with image src. The image is not displayed and if I take a look in the source codes the link is broken like: src="http://www. imageslink.com/image.jpg" . And it's not happened to all images in the email Does anyone knows what happens? I've tried to do str_replace in the output, but it doesn't work.
  13. Hi friend I try to create a simple html table and put on every cell data from three arrays my arrays are: $one = array('title1','title2','title3','title4','title5','title6'); $two = array('image1','image2','image3','image4','image5','image6'); $three = array('text1','text','text3','text4','text5','text6'); What i like to create is a table like this: ----------------------------------- | title1 | title2 | title3 | ----------------------------------- | image1 | image1 | image3 | ----------------------------------- | text1 | text2 | text3 | ----------------------------------- | title4 | title5 | title6 | ----------------------------------- | image4 | image5 | image6 | ----------------------------------- | text4 | text5 | text6 | ----------------------------------- In other words i need a script to create a rows take the first 3 data from every array put them on cells and every 3 cells create a new set of rows. Until now i'm able using the following cote to put data from only one array $numFiles = count($one); $start = 0; $end = $numFiles; $split = 3; print "<table><tr>"; for($i = $start; $i < $end; $i++) { print "<td>".$one[$i]."</td>"; if(($i) % ($split) == $split-1){ print "</tr><tr>"; } } print"</tr></table>"; If i use something like this: $numFiles = count($one); $start = 0; $end = $numFiles; $split = 3; print "<table><tr>"; for($i = $start; $i < $end; $i++) { print "<td>".$one[$i]."</td>"; if(($i) % ($split) == $split-1){ print "</tr><tr>"; for($i = $start; $i < $end; $i++) { print "<td>".$two[$i]."</td>"; if(($i) % ($split) == $split-1){ print "</tr><tr>"; } } } } print"</tr></table>"; I get this: ----------------------------------- | title1 | title2 | title3 | ----------------------------------- | image1 | image1 | image3 | ----------------------------------- | image4 | image5 | image6 | ----------------------------------- I know that i'm close but i need some help...
  14. Dear all, Can somebody tell me what the problem is from this results! And my result if i want it load in my browser: Just look here!! Maby is it a stupid ask but i sitting on this moment stuck.. Thanks!
  15. I am working on this script to populate a dropdown list from the SQL server express database but each time i run the script i get these errors. I am honestly really new with sqlserv syntax Here is my script
  16. Hi, I have added background image blueGradient.png to tr. It is not showing as expected. attached image. I want to show background image properly and need help in this. <!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>background Image</title> </head> <body> <table width="100%" border="1"> <tr style=" background-color:#00FFFF; background-image:url(blueGradient.png); background-repeat:repeat;"> <td colspan="2" align="center">Title</td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </body> </html> -Thanks Zohaib.
  17. HI guys, Everytime I run my php code I get this error message: This is my code: $query = mysql_query("SELECT * FROM Products WHERE cat='Skate' AND subcat='Footwear' LIMIT $start, $limit_img "); //end of query $limit_img = 24; $start = 0; $cols = 3; $cols_td = 0; //end of table variables $images = $row['photo']; $product = $row['product']; $price = $row['price']; //end of row variables echo "<table width='95%'><tr>"; //end of table while ($row = mysql_fetch_array($query)){ echo "<td><div align='center'>$row[product]</div></td>"; $cols_td = $col_td + 1; if($cols_td == $cols){ echo "</tr><tr>"; $cols_td = 0; } } //end of while statement echo "</tr></table>"; Thanks In advance!
  18. i have image slider it was working fine but i made add some content to it since then its not sliding images as before you can check it here:- http://boysjoys.com/test at first it show all the image properly but when it start scrolling it become unstable i m adding slider coding here please help me and i m including these files <script type="text/javascript" src="final/scripts/jquery-1.4.1.min.js"></script> <script type="text/javascript" src="final/scripts/jquery.easing.1.3.js"></script> <script type="text/javascript" src="final/scripts/jquery.timers.1.2.js"></script> <script type="text/javascript" src="final/scripts/jquery.galleryview.2.1.1.min.js"></script> <script type="text/javascript" src="final/scripts/jquery.galleryview.setup.js"></script> <div class="wrapper"> <div class="container"> <div class="content"> <div id="featured_slide"> <ul id="featurednews"> <!-- ####################################----SLIDE START----############################### --> <li><img src="final/images/slides/slides/israel-gaza-rocket_2399203b.jpg" alt=""/> <!-- slide --> <div class="panel-overlay"> <h2>Hamas commander Killed In Israel airstrikes against Gaza Strip </h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"><a href="news/Israel_launches_airstrikes_against_Gaza_Strip_kills_Hamas_commander.php">Israel has launched a series of airstrikes against military targets inside the Gaza Strip, killing a senior Hamas leader.<br /></a> </p> </div> </li> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li><img src="final/images/slides/slides/google-self-driving-car.jpg" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>Google gets license to operate driverless cars</h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"><a href="news/google-gets-license-to-operate.php">Nevada became the first to approve a license for Googles autonomous vehicles.In other words, cars that cruise, twist and turn without the need for a driver<br /></a> </p> </div> </li> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li><img src="final/images/slides/slides/windows8startscreen-100010356-large.jpg" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>New Microsoft Windows 8 tips and tricks for beginners</h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"><a href="news/windows_8_tips.php">Microsoft Windows 8 is now out and available on a whole host of different devices, ranging from your average desktop to super-slim touchscreen laptops and even tablets<br /></a> </p> </div> </li> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li><img src="final/images/slides/slides/Alleyne 2.jpg" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>Trinidad TV host charged over teen rape footage</h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"><a href="news/Trinidad_TV_host_charged_over_teen_rape_footage.php">Ian Alleyne, host of Trinidad TV has been charged with crimes under Sexual Offences Act after a tape purporting to show a mentally ill teenage girl being raped was allegedly broadcast last year.<br /></a> </p> </div> </li> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li><img src="final/images/slides/slides/gs3-iphone-ad.jpg" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>Fall Season Smartphone Wars: Samsung's Galaxy S3 Vs Apple's iPhone 5 </h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"><a href="news/samsung_galaxy_s3_vs_apple_iphone5.php">Samsung Or Apple,Who is the best of the best in the smartphone market.<br /></a> </p> </div> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li><img src="final/images/slides/slides/2011_08_SocialMedia.jpg" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>Youths And Social Networking </h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"> <a href="news/YouthsAndSociaNetworking.php">The world is undergoing a rapid growth in technological advancement and information dissemination is now easier and faster through the use of the internet.<br /></a> </p> </div> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li> <img src="final/images/slides/slides/aunt-minnies-place-haunted-31000.jpg" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>World Most Scariest Places</h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"> <a href="news/worlds10scariestplaces.php">There are places on this planet that are stranger than the most alien landscapes we have ever imagined. Places that make your skin crawl.<br /></a> </p> </div> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li><img src="final/images/slides/slides/deidresplashpic_395714a.jpg" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>Does My Ex Just Want Me For Sex</h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"> <a href="news/ex_for_sex.php">Is your ex using you for sex or do they truly want you back?<br /> </a> </p> </div> <!-- ####################################----SLIDE STOP----############################### --> <!-- ####################################----SLIDE START----############################### --> <li> <img src="final/images/slides/slides/GeorgeEntwistle.JPG" alt="" /> <!-- slide --> <div class="panel-overlay"> <h2>BBC Director-General Entwistle resigns </h2> <p style="font-size:12px; font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif; line-height:129%"> <a href="news/BBC_Director-General_Entwistle_resigns.php">Director-General of the BBC George Entwistle resigned.Mr Entwistle said he would stay on as Director-General but he said he was doing the "honourable thing" by stepping down.</a> </p> </div> </li> <!-- ####################################----SLIDE END----############################### --> <!-- ####################################----SLIDE END----############################### --> </ul> </div> </div>
  19. i have pop up code from http://gettopup.com it working well but i want to add some sharing and like button in pop up window and when i tried that in js file it stop working i was trying to put different like and share button for different pop up if there is 3 file 2 images and 1 video when user click on image 1 it show image in popup window with like and share button so user on facebook or other social network can see particular video or image which user liked or share the pop up window created by js file and i can't add "http://sharethis.com" widget into this js file i m attaching js file please help me guys ( sorry for poor layout of js file ) if(typeof(TopUp)=="undefined"){var scriptElement=(function deriveScriptElement(){var c="tu_dummy_script";document.write('<script id="'+c+'"><\/script>');var b=document.getElementById(c);var a=b.previousSibling;b.parentNode.removeChild(B);return a}());var scriptHost=(function deriveScriptHost(){var a=scriptElement.getAttribute("src");return a.match(/^\w+\:\/\//)?a.match(/^\w+\:\/\/[^\/]*\//)[0]:""}());var scriptParams=(function deriveScriptParams(){var e=scriptElement.getAttribute("src");var c=((e.match(/([\?]*)\?(.*)+/)||["","",""])[2]||"").replace(/(^[0123456789]+|\.js(\s+)?$)/,"").split("&");var d={};for(var b=0;b<c.length;b++){if(c[b]!=""){var a=c[b].split("=");if(a.length==2){d[a[0].replace(/^\s+|\s+$/g,"")]=a[1].replace(/^\s+|\s+$/g,"")}}}return d}());TopUp=(function(){var initialized=false,selector=null,on_ready=[],displaying=false,options=null,group=null,index=null,data=null;var fast_mode=false;var default_preset={layout:"dashboard",effect:"transform",resizable:1},presets={};var extendjQuery=function(){jQuery.extend({keys:function(hash){var keys=[];for(var key in hash){if(hash.hasOwnProperty(key)){keys.push(key)}}return keys},ie:jQuery.browser.msie,ie6:jQuery.browser.msie&&parseInt(jQuery.browser.version,10)==6,ie7:jQuery.browser.msie&&parseInt(jQuery.browser.version,10)==7,ie8:jQuery.browser.msie&&parseInt(jQuery.browser.version,10)==8,ff2:jQuery.browser.mozilla&&parseFloat(jQuery.browser.version)<1.9});jQuery.fn.extend({id:function(){if(!this.is("[id]")){var id="";var counter=0;do{id="element_"+counter++}while(jQuery("#"+id).length);jQuery(this).attr("id",id)}return jQuery(this).attr("id")},markerId:function(){return"_"+this.id()+"_marker"},bubbleDetect:function(selector,separator){var detected=null;var element=this;jQuery.each(selector.split(separator||","),function(i,e){var selector=jQuery.trim(e);if(jQuery(selector).index(element)!=-1){detected={element:jQuery(element),selector:selector}}});return detected||(element.parent()[0]?jQuery(element.parent()[0]).bubbleDetect(selector,separator):null)},center:function(){var css={top:parseInt((jQuery(window).height()-this.outerHeight())/2,10)+jQuery(window).scrollTop(),left:parseInt((jQuery(window).width()-this.outerWidth())/2,10)+jQuery(window).scrollLeft(),position:"absolute"};this.css(css);return this},lockDimensions:function(){this.css({width:this.outerWidth(),height:this.outerHeight()});return this},unlockDimensions:function(){this.css({width:"auto",height:"auto"});return this},centerWrap:function(compare){var current={width:this.outerWidth(),height:this.outerHeight()},delta={width:0,height:0},diff=0;compare.find(".te_frame").css("display","block");diff=compare.outerWidth()-current.width;if(delta.width<diff){delta.width=diff}diff=compare.outerHeight()-current.height;if(delta.height<diff){delta.height=diff}var offset=this.offset();var css={top:offset.top-(delta.height===0?0:parseInt(delta.height/2,10)),left:offset.left-(delta.width===0?0:parseInt(delta.width/2,10)),width:this.width()+delta.width,height:this.height()+delta.height};if(options.x){css.left=options.x-parseInt((css.width-compare.outerWidth())/2,10)}if(options.y){css.top=options.y-parseInt((css.height-compare.outerHeight())/2,10)}jQuery("#tu_center_wrapper").css(css);jQuery("#tu_centered_content").append(this);this.css({top:"auto",left:"auto",width:"auto",height:"auto",display:"inline-block",position:"relative"});if(jQuery.ff2){this.css({display:"table"})}if(jQuery.ie){this.css({display:"inline"})}jQuery("#tu_center_wrapper").show();return this},removeCenterWrap:function(newTopUpWidth){var position=jQuery("#tu_center_wrapper").offset();var delta={width:jQuery("#tu_center_wrapper").outerWidth()-newTopUpWidth,height:jQuery("#tu_center_wrapper").outerHeight()-this.outerHeight()};this.css({top:position.top+parseInt(delta.height/2,10),left:position.left+parseInt(delta.width/2,10),position:"absolute"}).appendTo("body");jQuery("#tu_center_wrapper").hide();return this},draggableZ:function(opts){var element=this;this.mousedown(function(event){if(opts&&opts.only&&!jQuery(event.target).is(opts.only)){return}event.preventDefault();var offset=element.offset();var diff={top:event.pageY-offset.top,left:event.pageX-offset.left};jQuery("body").addClass("te_dragging");jQuery("*").bind("mousemove.draggable",function(event){element.css({top:event.pageY-diff.top,left:event.pageX-diff.left})})});jQuery("#top_up").mouseup(function(event){jQuery("body").removeClass("te_dragging");jQuery("*").unbind("mousemove.draggable")})}})};var injectCode=function(){var images_url=TopUp.host+TopUp.images_path;var css='<style type="text/css" media="screen">.te_overflow{overflow:hidden !important}.te_dragging{cursor:move !important}#tu_overlay,.te_top_up{top:0;left:0}#tu_overlay{width:100%;height:100%;position:fixed;z-index:999}#temp_up{top:-9999px;z-index:-1}.te_transparent{opacity:0}.te_shaded{opacity:.65;background:black}.te_scrollable{overflow:auto}.te_top_up{position:absolute;z-index:1000}.te_top_up a{border:0}.te_top_up a:hover{border:0}.te_top_up .ui-resizable-se{position:absolute !important;background-color:transparent !important;border:0 !important}.te_wrapper{position:relative}.te_title{width:100%;color:white;font-family:"Lucida Grande", "Arial";font-size:11px;position:absolute;text-align:center;z-index:1001}.te_frame,#tu_center_wrapper{border-collapse:collapse}.te_frame tr,.te_frame td{margin:0;padding:0}.te_frame .te_left,.te_frame .te_middle,.te_frame .te_right{padding:0}.te_controls{position:absolute;z-index:1001}.te_close_link,.te_previous_link,.te_next_link{cursor:pointer}.te_close_link{position:absolute;z-index:1002}.te_previous_link,.te_next_link{display:block;float:left}#tu_center_wrapper{position:absolute;z-index:1000}#tu_loader{width:100%;height:100%;position:absolute;background:url('+images_url+"loader.gif) no-repeat 50% 50%;display:block;z-index:1003} #top_up .te_dashboard .ui-resizable-se{width:10px !important;height:10px !important;bottom:12px !important;right:10px !important;background-image:url("+images_url+"dashboard/sprite.png) !important;background-position:0 0 !important}.te_dashboard .te_title{top:-9px;font-weight:bold;text-shadow:1px 1px 1px black}.te_dashboard .te_corner,.te_dashboard .te_rib{background-image:url("+images_url+"dashboard/sprite.png)}.te_dashboard .te_top,.te_dashboard .te_bottom{height:20px}.te_dashboard .te_left_filler{width:20px}.te_dashboard .te_right_filler{width:19px}.te_dashboard .te_middle .te_middle{background:url("+images_url+"dashboard/middle.png)}.te_dashboard .te_top .te_left{background-position:-17px -29px}.te_dashboard .te_top .te_middle{background-position:0 -71px}.te_dashboard .te_top .te_right{background-position:-33px -29px}.te_dashboard .te_middle .te_left{background-position:-17px -232px}.te_dashboard .te_middle .te_right{background-position:-33px -232px}.te_dashboard .te_bottom .te_left{background-position:-17px -47px}.te_dashboard .te_bottom .te_middle{background-position:-17px -89px}.te_dashboard .te_bottom .te_right{background-position:-33px -47px}.te_dashboard .te_content{margin:-11px -12px -11px -13px}.te_dashboard .te_controls{left:50%;width:63px;height:29px;margin-left:-33px;padding-left:5px;bottom:35px;background-image:url("+images_url+"dashboard/sprite.png);background-position:0 -178px}.te_dashboard .te_previous_link,.te_dashboard .te_next_link{width:31px;height:29px;background-image:url("+images_url+"dashboard/sprite.png)}.te_dashboard .te_previous_link{background-position:66px -113px}.te_dashboard .te_next_link{background-position:30px -113px}.te_dashboard .te_previous_link:hover{background-position:66px -142px}.te_dashboard .te_next_link:hover{background-position:30px -142px}.te_dashboard .te_close_link{width:28px;height:26px;top:-1px;right:-6px;background-image:url("+images_url+"dashboard/sprite.png);background-position:-20px 0} #top_up .te_quicklook .ui-resizable-se{width:10px !important;height:10px !important;bottom:12px !important;right:9px !important;background-image:url("+images_url+"quicklook/sprite.png) !important;background-position:-75px -181px !important}.te_quicklook .te_title{top:6px}.te_quicklook .te_corner,.te_quicklook .te_rib{background-image:url("+images_url+"quicklook/sprite.png)}.te_quicklook .te_top{height:24px}.te_quicklook .te_bottom{height:56px}.te_quicklook .te_left_filler,.te_quicklook .te_right_filler{width:12px}.te_quicklook .te_middle .te_middle{background:url("+images_url+"quicklook/middle.png)}.te_quicklook .te_top .te_left{background-position:0 0}.te_quicklook .te_top .te_middle{background-position:0 -30px}.te_quicklook .te_top .te_right{background-position:12px 0}.te_quicklook .te_middle .te_left{background-position:0 -181px}.te_quicklook .te_middle .te_right{background-position:12px -181px}.te_quicklook .te_bottom .te_left{background-position:0 -122px}.te_quicklook .te_bottom .te_middle{background-position:0 -61px}.te_quicklook .te_bottom .te_right{background-position:12px -122px}.te_quicklook .te_content{margin:0 -7px}.te_quicklook .te_controls{left:50%;width:66px;margin-left:-33px;bottom:18px}.te_quicklook .te_previous_link,.te_quicklook .te_next_link{width:31px;height:29px;margin:0 1px;background-image:url("+images_url+"quicklook/sprite.png)}.te_quicklook .te_previous_link{background-position:89px -195px}.te_quicklook .te_next_link{background-position:52px -195px}.te_quicklook .te_previous_link:hover{background-position:89px -226px}.te_quicklook .te_next_link:hover{background-position:52px -226px}.te_quicklook .te_close_link{width:13px;height:13px;top:7px;left:9px;background-image:url("+images_url+"quicklook/sprite.png);background-position:-24px -181px} #top_up .te_flatlook .ui-resizable-se{width:10px !important;height:10px !important;bottom:22px !important;right:14px !important;background-image:url("+images_url+"flatlook/sprite.png) !important;background-position:-75px -181px !important}.te_flatlook .te_title{top:5px;text-shadow:1px 1px 2px #2A2A2A}.te_flatlook .te_corner,.te_flatlook .te_rib{background-image:url("+images_url+"flatlook/sprite.png)}.te_flatlook .te_top{height:26px}.te_flatlook .te_bottom{height:29px}.te_flatlook .te_left_filler,.te_flatlook .te_right_filler{width:21px}.te_flatlook .te_middle .te_middle{background:url("+images_url+"flatlook/middle.png) repeat-x top}.te_flatlook .te_top .te_left{background-position:0 0}.te_flatlook .te_top .te_middle{background-position:0 -29px}.te_flatlook .te_top .te_right{background-position:-89px 0}.te_flatlook .te_middle .te_left{background-position:0 -181px}.te_flatlook .te_middle .te_right{background-position:-89px -181px}.te_flatlook .te_bottom .te_left{background-position:0 -90px}.te_flatlook .te_bottom .te_middle{background-position:0 -58px}.te_flatlook .te_bottom .te_right{background-position:-89px -90px}.te_flatlook .te_content{margin:-2px -11px -3px -11px}.te_flatlook .te_controls{left:50%;width:66px;margin-left:-33px;bottom:18px}.te_flatlook .te_previous_link,.te_flatlook .te_next_link{width:31px;height:29px;margin:0 1px;background-image:url("+images_url+"flatlook/sprite.png)}.te_flatlook .te_previous_link{background-position:89px -195px}.te_flatlook .te_next_link{background-position:52px -195px}.te_flatlook .te_previous_link:hover{background-position:89px -226px}.te_flatlook .te_next_link:hover{background-position:52px -226px}.te_flatlook .te_close_link{width:13px;height:13px;top:6px;left:15px;background-image:url("+images_url+"flatlook/sprite.png);background-position:-24px -181px}</style>";var ie7fix='<style type="text/css" media="screen">.te_dashboard .te_content{margin-bottom:-14px}</style>';var ie6fix='<style type="text/css" media="screen">.te_dashboard .te_content{margin-bottom:-13px}.te_dashboard .te_controls{width:65px;padding-left:3px}.te_dashboard .te_top .te_left,.te_dashboard .te_top .te_middle,.te_dashboard .te_top .te_right{background-image:none}.te_dashboard .te_middle .te_left,.te_dashboard .te_middle .te_right{background-image:none}.te_dashboard .te_bottom .te_left,.te_dashboard .te_bottom .te_middle,.te_dashboard .te_bottom .te_right{background-image:none}.te_dashboard .te_controls,.te_dashboard .te_previous_link,.te_dashboard .te_next_link,.te_dashboard .te_close_link{background-image:none}.te_dashboard .te_top .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/top_left.png" , sizingMethod="crop" )}.te_dashboard .te_top .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/top_middle.png" , sizingMethod="scale")}.te_dashboard .te_top .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/top_right.png" , sizingMethod="crop" )}.te_dashboard .te_middle .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/middle_left.png" , sizingMethod="scale")}.te_dashboard .te_middle .te_middle{filter:alpha(opacity = 75);background:black}.te_dashboard .te_middle .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/middle_right.png" , sizingMethod="scale")}.te_dashboard .te_bottom .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/bottom_left.png" , sizingMethod="crop" )}.te_dashboard .te_bottom .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/bottom_middle.png", sizingMethod="scale")}.te_dashboard .te_bottom .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/bottom_right.png" , sizingMethod="crop" )}.te_dashboard .te_controls{background:#505455}.te_dashboard .te_previous_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/previous.png" , sizingMethod="crop" )}.te_dashboard .te_next_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/next.png" , sizingMethod="crop" )}.te_dashboard .te_close_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'dashboard/close_link.png" , sizingMethod="crop" )} .te_quicklook .te_bottom{height:55px}.te_quicklook .te_controls{width:67px}.te_quicklook .te_top .te_left,.te_quicklook .te_top .te_middle,.te_quicklook .te_top .te_right{background-image:none}.te_quicklook .te_middle .te_left,.te_quicklook .te_middle .te_right{background-image:none}.te_quicklook .te_bottom .te_left,.te_quicklook .te_bottom .te_middle,.te_quicklook .te_bottom .te_right{background-image:none}.te_quicklook .te_previous_link,.te_quicklook .te_next_link,.te_quicklook .te_close_link{background-image:none}.te_quicklook .te_top .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/top_left.png" , sizingMethod="crop" )}.te_quicklook .te_top .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/top_middle.png" , sizingMethod="scale")}.te_quicklook .te_top .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/top_right.png" , sizingMethod="crop" )}.te_quicklook .te_middle .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/middle_left.png" , sizingMethod="scale")}.te_quicklook .te_middle .te_middle{filter:alpha(opacity = 70);background:black}.te_quicklook .te_middle .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/middle_right.png" , sizingMethod="scale")}.te_quicklook .te_bottom .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/bottom_left.png" , sizingMethod="crop" )}.te_quicklook .te_bottom .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/bottom_middle.png", sizingMethod="scale")}.te_quicklook .te_bottom .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/bottom_right.png" , sizingMethod="crop" )}.te_quicklook .te_previous_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/previous.png" , sizingMethod="crop" )}.te_quicklook .te_next_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/next.png" , sizingMethod="crop" )}.te_quicklook .te_close_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'quicklook/close_link.png" , sizingMethod="crop" )} .te_flatlook .te_bottom{height:55px}.te_flatlook .te_controls{width:67px}.te_flatlook .te_top .te_left,.te_flatlook .te_top .te_middle,.te_flatlook .te_top .te_right{background-image:none}.te_flatlook .te_middle .te_left,.te_flatlook .te_middle .te_right{background-image:none}.te_flatlook .te_bottom .te_left,.te_flatlook .te_bottom .te_middle,.te_flatlook .te_bottom .te_right{background-image:none}.te_flatlook .te_previous_link,.te_flatlook .te_next_link,.te_flatlook .te_close_link{background-image:none}.te_flatlook .te_top .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/top_left.png" , sizingMethod="crop" )}.te_flatlook .te_top .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/top_middle.png" , sizingMethod="scale")}.te_flatlook .te_top .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/top_right.png" , sizingMethod="crop" )}.te_flatlook .te_middle .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/middle_left.png" , sizingMethod="scale")}.te_flatlook .te_middle .te_middle{filter:alpha(opacity = 70);background:black}.te_flatlook .te_middle .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/middle_right.png" , sizingMethod="scale")}.te_flatlook .te_bottom .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/bottom_left.png" , sizingMethod="crop" )}.te_flatlook .te_bottom .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/bottom_middle.png", sizingMethod="scale")}.te_flatlook .te_bottom .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/bottom_right.png" , sizingMethod="crop" )}.te_flatlook .te_previous_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/previous.png" , sizingMethod="crop" )}.te_flatlook .te_next_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/next.png" , sizingMethod="crop" )}.te_flatlook .te_close_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+images_url+'flatlook/close_link.png" , sizingMethod="crop" )}</style>';var iefix='<style type="text/css" media="screen">#tu_overlay{top:expression((ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px");left:expression((ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px");position:absolute}.te_transparent{filter:alpha(opacity = 0)}.te_shaded{filter:alpha(opacity = 65)}.te_content{position:relative;zoom:1}</style>';var html='<div id="tu_overlay" onclick="TopUp.overlayClose()" style="display: none"></div><div id="top_up" class="te_top_up" style="display: none"><div class="te_wrapper"><div class="te_title"></div><table class="te_frame"><tr class="te_top"><td class="te_left te_corner"><div class="te_left_filler"></div></td><td class="te_middle te_rib"></td><td class="te_right te_corner"><div class="te_right_filler"></div></td></tr><tr class="te_middle"><td class="te_left te_rib"></td><td class="te_middle"><div class="te_content"><!-- Content --></div></td><td class="te_right te_rib"></td></tr><tr class="te_bottom"><td class="te_left te_corner"></td><td class="te_middle te_rib"></td><td class="te_right te_corner"></td></tr></table><div class="te_controls" style="display: none"><a class="te_previous_link" onclick="TopUp.previous()"></a><a class="te_next_link" onclick="TopUp.next()"></a></div><a class="te_close_link" onclick="TopUp.close()" style="display: none"></a></div></div><div id="temp_up" class="te_top_up te_transparent"><div class="te_wrapper"><div class="te_title"></div><table class="te_frame"><tr class="te_top"><td class="te_left te_corner"><div class="te_left_filler"></div></td><td class="te_middle te_rib"></td><td class="te_right te_corner"><div class="te_right_filler"></div></td></tr><tr class="te_middle"><td class="te_left te_rib"></td><td class="te_middle"><div class="te_content"><!-- Content --></div></td><td class="te_right te_rib"></td></tr><tr class="te_bottom"><td class="te_left te_corner"></td><td class="te_middle te_rib"></td><td class="te_right te_corner"></td></tr></table><div class="te_controls" style="display: none"><a class="te_previous_link" onclick="TopUp.previous()"></a><a class="te_next_link" onclick="TopUp.next()"></a></div><a class="te_close_link" onclick="TopUp.close()" style="display: none"></a></div></div><table id="tu_center_wrapper" style="display: none"><tr valign="middle"><td id="tu_centered_content" align="center"><!-- Top ups --></td></tr></table><div id="tu_loader" style="display: none"></div>';if(!jQuery("head").length){jQuery(document.body).before("<head></head>")}jQuery(css).prependTo("head");if(jQuery.ie7||jQuery.ie8){jQuery(ie7fix).insertAfter("head > style:first")}if(jQuery.ie6){jQuery(ie6fix).insertAfter("head > style:first")}if(jQuery.ie){jQuery(iefix).insertAfter("head > style:first")}jQuery(html).appendTo("body")};var bind=function(){var coptions=[];if(!fast_mode){coptions.push("[class^=tu_][class*=x]");jQuery.each(["db","ql","fl","image","html","dom","iframe","ajax","script"],function(i,coption){coptions.push("[class^=tu_][class*=_"+coption+"]")})}selector=jQuery.merge([".top_up","[toptions]",coptions.join(",")],jQuery.keys(presets)).join();jQuery(selector).live("click",topUpClick);jQuery(document).bind("keyup",documentKeyPress)};var fadeDuration=function(duration){return jQuery.ie8||jQuery.ie7||jQuery.ie6?0:duration};var topUpClick=function(event){TopUp.displayTopUp(jQuery(event.target));return false};var documentKeyPress=function(event){if(jQuery("#top_up").is(":hidden")||jQuery(event.target).is(":input")){return}switch(event.keyCode){case 27:TopUp.close();break;case 37:TopUp.previous();break;case 39:TopUp.next();break}};var deriveTopUpOptions=function(topUp,opts){var toptions=jQuery.extend({},{topUp:"#"+topUp.element.id(),preset:topUp.selector});jQuery.each(topUp.element.attr("class").split(/\s/),function(i,c){if(c.match(/^tu_/)){jQuery.each(c.replace(/^tu_/,"").split("_"),function(j,coption){switch(coption){case"db":case"ql":case"fl":toptions.layout={db:"dashboard",ql:"quicklook",fl:"flatlook"}[coption];break;case"image":case"html":case"dom":case"iframe":case"ajax":case"script":toptions.type=coption;break;default:if(coption.match(/\dx\d/)){toptions.width=coption.split("x")[0];toptions.height=coption.split("x")[1]}}})}});if(topUp.element.is("[toptions]")){jQuery.each(topUp.element.attr("toptions").split(","),function(i,option){var key_value=option.split("=");toptions[jQuery.trim(key_value[0])]=jQuery.trim(key_value[1])})}if(toptions.noGroup&&parseInt(toptions.noGroup,10)==1){toptions.group=null}if(opts){toptions=jQuery.extend(toptions,opts)}return toptions};var deriveOptions=function(reference,opts,store){var result=jQuery.extend({},default_preset);if(opts){if(presets[opts.preset]){result=jQuery.extend(result,presets[opts.preset])}result=jQuery.extend(result,opts)}if(result.ondisplay&&!jQuery.isFunction(result.ondisplay)){var fdisplay=result.ondisplay;result.ondisplay=function(){eval(fdisplay)}}if(result.onclose&&!jQuery.isFunction(result.onclose)){var fclose=result.onclose;result.onclose=function(){eval(fclose)}}if(store){result.reference=result.reference?jQuery(result.reference):reference;if(!result.type){result.type=deriveType(reference)}if(movieContentDisplayed(result)){result.resizable=0}options=jQuery.extend({},result)}return result};var deriveType=function(reference){if(reference.toLowerCase().match(/\.(gif|jpg|jpeg|png)(\?[0123456789]+)?$/)){return"image"}if(reference.toLowerCase().match(/\.(swf)(\?[0123456789]+)?$/)){return"flash"}if(reference.toLowerCase().match(/\.(flv)(\?[0123456789]+)?$/)){return"flashvideo"}if(reference.toLowerCase().match(/\.(aif|aiff|aac|au|bmp|gsm|mov|mid|midi|mpg|mpeg|m4a|m4v|mp4|psd|qt|qtif|qif|qti|snd|tif|tiff|wav|3g2|3gp|wbmp)(\?[0123456789]+)?$/)){return"quicktime"}if(reference.toLowerCase().match(/\.(ra|ram|rm|rpm|rv|smi|smil)(\?[0123456789]+)?$/)){return"realplayer"}if(reference.toLowerCase().match(/\.(asf|avi|wma|wmv)(\?[0123456789]+)?$/)){return"windowsmedia"}return"ajax"};var movieContentDisplayed=function(opts){return jQuery.inArray((opts||options).type,["flash","flashvideo","quicktime","realplayer","windowsmedia"])!=-1};var deriveGroup=function(){if(options.group){if(!(group&&group.name==options.group)){group={name:options.group,items:jQuery([])};jQuery.each(jQuery(selector),function(i,e){if(!jQuery(e).is("[tu_group]")){jQuery(e).attr("tu_group",deriveOptions(null,deriveTopUpOptions(jQuery(e).bubbleDetect(selector))).group)}if(jQuery(e).attr("tu_group")==group.name){group.items=group.items.add(e)}})}var ids=jQuery.map(group.items,function(e,i){return"#"+jQuery(e).id()});index=options.topUp?jQuery.inArray(options.topUp,ids):-1}else{group=null}};var navigateInGroup=function(step){if(group===null){return}index=index+step;if(index<0){index=group.items.length-1}if(index>group.items.length-1){index=0}TopUp.displayTopUp(group.items[index])};var prepare=function(){if(jQuery("#top_up .te_frame").resizable){jQuery("#top_up .te_frame").resizable("destroy")}jQuery("#top_up .te_title").fadeOut(fadeDuration(200));if(!(group&&group.items.length>1)){jQuery("#top_up .te_controls").fadeOut(fadeDuration(200))}jQuery(".te_wrapper").attr("class","te_wrapper te_"+options.layout);jQuery(".te_frame,.te_content").unlockDimensions();if(parseInt(options.shaded,10)==1){jQuery("#tu_overlay").addClass("te_shaded")}else{jQuery("#tu_overlay").removeClass("te_shaded")}if((parseInt(options.modal,10)==1)||(parseInt(options.shaded,10)==1)||(parseInt(options.overlayClose,10)==1)){if(jQuery.ie8){var fixOverlay=function(){jQuery("#tu_overlay").css("top",document.body.parentElement.scrollTop+"px")};fixOverlay.apply();window.onresize=fixOverlay;jQuery(window).bind("scroll",fixOverlay)}jQuery("#tu_overlay").show()}else{jQuery("#tu_overlay").hide()}var altText="";if(options.topUp&&(options.topUp!="")&&((parseInt(options.readAltText,10)==1)||(options.title&&options.title.match("{alt}")))){var topUp=jQuery(options.topUp);if(topUp.length){var image=topUp.find("img");if(image.length){altText=image.attr("alt")||""}if(altText!=""&&!(options.title&&options.title.match("{alt}"))){options.title="{alt}"}}}options.title=(options.title||"").replace("{alt}",altText).replace("{current}",group===null?"":(index+1)).replace("{total}",group===null?"":group.items.length)};var loadContent=function(){switch(options.type){case"image":options.content=new Image();jQuery(options.content).load(function(){options.content=jQuery(this);onContentReady()}).attr("src",options.reference);break;case"flash":case"flashvideo":case"quicktime":case"realplayer":case"windowsmedia":loadMovie(options.type,options.reference,options.width,options.height);break;case"iframe":options.content=jQuery('<iframe src="'+options.reference+'" frameborder="0" border="0"></iframe>');break;case"html":case"dom":var reference=jQuery(options.reference);if(reference.context){var marker=jQuery("<div></div>").attr({id:reference.markerId(),"class":(reference.is(":hidden")?"hidden":""),style:"display: none"});options.content=jQuery("<div></div>").append(reference.before(marker).addClass("marked"));reference.show()}else{options.content=jQuery("<div></div>").append(reference)}break;case"ajax":case"script":options.content=null;jQuery.ajax({url:options.reference,type:(parseInt(options.post,10)==1)?"POST":"GET",cache:false,async:false,data:options.parameters,dataType:(options.type=="ajax")?"html":"script",success:onContentReady})}if(jQuery.inArray(options.type,["html","dom","iframe"])!=-1){onContentReady()}};var loadMovie=function(type,src,width,height){if(!jQuery.ie){switch(options.type){case"flash":loadFlashContent();break;case"flashvideo":loadFlashVideoContent();break;case"quicktime":loadQuickTimeContent();break;case"realplayer":loadRealPlayerContent();break;case"windowsmedia":loadWindowsMediaContent();break}return}var object_attrs={width:width,height:height},params={src:src},classid=null,mimetype=null,codebase=null,pluginspage=null;switch(type){case"flash":case"flashvideo":classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0";mimetype="application/x-shockwave-flash";pluginspage="http://get.adobe.com/flashplayer/";break;case"quicktime":classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";codebase="http://www.apple.com/qtactivex/qtplugin.cab";mimetype="video/quicktime";pluginspage="http://www.apple.com/quicktime/download/";params.scale="aspect";params.bgcolor="black";params.showlogo="false";params.autoplay="true";break;case"realplayer":classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA";mimetype="audio/x-pn-realaudio-plugin";pluginspage="http://www.real.com/freeplayer/?rppr=rnwk";params.controls="imagewindow";params.console="one";params.autostart="true";params.nojava="true";break;case"windowsmedia":classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6";codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";mimetype="application/x-oleobject";pluginspage="http://www.microsoft.com/Windows/MediaPlayer/";params.filename=src;params.animationatstart="true";params.transparentatstart="true";params.autostart="true";params.showcontrols="true";params.showstatusbar="true";params.windowlessvideo="true";break}switch(type){case"flash":case"flashvideo":params.allowfullscreen="true";case"flashvideo":params.flashvars="file="+src+"&autostart=true";src=TopUp.host+TopUp.players_path+"flvplayer.swf";params.src=src;params.movie=src;break}object_attrs.codebase=codebase;if(window.ActiveXObject){object_attrs.classid=classid;object_attrs.data=src}var paramTags="";for(var key in params){paramTags+=" "+createElementTag("param",{name:key,value:params[key]})}params.width=width;params.height=height;params.mimetype=mimetype;params.pluginspage=pluginspage;var element=document.createElement("div");element.innerHTML=createElementTag("object",object_attrs)+paramTags+createElementTag("embed",params)+"</embed></object>";options.content=jQuery(element);onContentReady()};var createElementTag=function(tagName,attrs){var html="<"+tagName;for(var key in attrs){html+=" "+key+"='"+attrs[key]+"'"}return html+">"};var loadFlashContent=function(){var object=jQuery("<object></object>").attr({width:options.width,height:options.height,classid:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",codebase:"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0",style:"display: none"});object.append(jQuery("<param></param>").attr({name:"src",value:options.reference}));object.append(jQuery("<param></param>").attr({name:"allowfullscreen",value:"true"}));object.append(jQuery("<embed></embed>").attr({src:options.reference,width:options.width,height:options.height,allowfullscreen:"true",type:"application/x-shockwave-flash",pluginspage:"http://get.adobe.com/flashplayer/"}));options.content=jQuery("<div></div>").attr({width:options.width,height:options.height});options.content.append(object);onContentReady()};var loadFlashVideoContent=function(){var object=jQuery("<object></object>").attr({width:options.width,height:options.height,classid:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",codebase:"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0",style:"display: none"});object.append(jQuery("<param></param>").attr({name:"movie",value:TopUp.host+TopUp.players_path+"flvplayer.swf"}));object.append(jQuery("<param></param>").attr({name:"flashvars",value:"file="+options.reference+"&autostart=true"}));object.append(jQuery("<param></param>").attr({name:"allowfullscreen",value:"true"}));object.append(jQuery("<embed></embed>").attr({src:TopUp.host+TopUp.players_path+"flvplayer.swf",width:options.width,height:options.height,flashvars:"file="+options.reference+"&autostart=true",allowfullscreen:"true",type:"application/x-shockwave-flash",pluginspage:"http://get.adobe.com/flashplayer/"}));options.content=jQuery("<div></div>").attr({width:options.width,height:options.height});options.content.append(object);onContentReady()};var loadQuickTimeContent=function(){var object=jQuery("<object></object>").attr({width:options.width,height:options.height,classid:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",codebase:"http://www.apple.com/qtactivex/qtplugin.cab",style:"display: none"});object.append(jQuery("<param></param>").attr({name:"src",value:options.reference}));object.append(jQuery("<param></param>").attr({name:"scale",value:"aspect"}));object.append(jQuery("<param></param>").attr({name:"bgcolor",value:"black"}));object.append(jQuery("<param></param>").attr({name:"showlogo",value:"false"}));object.append(jQuery("<param></param>").attr({name:"autoplay",value:"true"}));object.append(jQuery("<embed></embed>").attr({src:options.reference,width:options.width,height:options.height,scale:"aspect",bgcolor:"black",showlogo:"false",autoplay:"true",type:"video/quicktime",pluginspage:"http://www.apple.com/quicktime/download/"}));options.content=jQuery("<div></div>").attr({width:options.width,height:options.height,style:"background: black"});options.content.append(object);onContentReady()};var loadRealPlayerContent=function(){var object=jQuery("<object></object>").attr({width:options.width,height:options.height,classid:"clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA",style:"display: none"});object.append(jQuery("<param></param>").attr({name:"src",value:options.reference}));object.append(jQuery("<param></param>").attr({name:"controls",value:"imagewindow"}));object.append(jQuery("<param></param>").attr({name:"console",value:"one"}));object.append(jQuery("<param></param>").attr({name:"autostart",value:"true"}));object.append(jQuery("<embed></embed>").attr({src:options.reference,width:options.width,height:options.height,controls:"imagewindow",console:"one",autostart:"true",nojava:"true",type:"audio/x-pn-realaudio-plugin",pluginspage:"http://www.real.com/freeplayer/?rppr=rnwk"}));options.content=jQuery("<div></div>").attr({width:options.width,height:options.height});options.content.append(object);onContentReady()};var loadWindowsMediaContent=function(){loadQuickTimeContent()};var onContentReady=function(html){hideLoader();if(html){options.content=jQuery(html)}switch(options.type){case"image":case"html":case"dom":case"iframe":options.resize=options.content;jQuery(".te_content").removeClass("te_scrollable");break;default:options.resize=jQuery("#temp_up .te_content");jQuery(".te_content").addClass("te_scrollable")}if(jQuery("#top_up").is(":hidden")){show()}else{replace()}};var showLoader=function(){var origin=jQuery("#top_up");if(jQuery("#top_up").is(":hidden")){origin=jQuery(options.topUp);if(!origin.length){origin=jQuery(document)}else{if(origin.children().length>0){origin=jQuery(origin.children()[0])}}}try{var dimensions={top:origin.offset().top,left:origin.offset().left,width:origin.outerWidth(),height:origin.outerHeight()}}catch(e){var dimensions={top:jQuery(window).scrollTop(),left:jQuery(window).scrollLeft(),width:parseInt(jQuery(window).width()/2,10),height:parseInt(jQuery(window).height()/2,10)}}jQuery("#tu_loader").html(" ").css(dimensions).show()};var hideLoader=function(){jQuery("#tu_loader").hide()};var show=function(){setContent();setDimensions();moveContent("top_up");jQuery("#top_up").center();if(options.x){jQuery("#top_up").css({left:parseInt(options.x,10)})}if(options.y){jQuery("#top_up").css({top:parseInt(options.y,10)})}switch(options.effect){case"appear":case"fade":jQuery("#top_up").fadeIn(fadeDuration(300),afterDisplay);break;case"switch":case"clip":jQuery("#top_up").show("clip",{direction:"vertical"},500,afterDisplay);break;case"transform":var origin=jQuery(options.topUp);if(origin.children().length>0){origin=jQuery(origin.children()[0])}var tuContent=jQuery("#top_up").find(".te_content");var dimensions=options.topUp?jQuery.extend({width:origin.outerWidth(),height:origin.outerHeight()},origin.offset()):{top:parseInt(jQuery(window).height()/2,10)-parseInt(tuContent.height()/2,10)+jQuery(window).scrollTop(),left:parseInt(jQuery(window).width()/2,10)-parseInt(tuContent.width()/2,10)+jQuery(window).scrollLeft(),width:10,height:10};transform("from",dimensions,afterDisplay);break;default:jQuery("#top_up").show();afterDisplay()}};var replace=function(callback){var isScrollable=jQuery("#top_up .te_content").hasClass("te_scrollable");if(isScrollable){jQuery("#top_up .te_content").removeClass("te_scrollable")}var focusedElement=jQuery("#top_up .te_content :focus");var wrapper=jQuery("#top_up .te_content").lockDimensions().wrapInner("<div></div>").children();wrapper.fadeOut(fadeDuration(250),function(){if(parseInt(options.storeCurrent,10)==1){wrapper.addClass("te_stored_content").hide().find(".te_stored_content").before(wrapper)}else{wrapper.children().appendTo("#temp_up .te_content").end().end().remove()}if(callback){var arg=jQuery("#temp_up .te_content");if(jQuery.inArray(options.type,["html","dom"])!=-1){arg=arg.children().eq(0)}callback.apply(arg)}else{clearContent();setContent()}if(isScrollable){jQuery("#top_up .te_content").addClass("te_scrollable")}setDimensions();jQuery("#top_up").centerWrap(jQuery("#temp_up"));var animation={width:jQuery("#temp_up .te_content").outerWidth(),height:jQuery("#temp_up .te_content").outerHeight()};var newTopUpWidth=jQuery("#temp_up").outerWidth();jQuery("#top_up .te_content").animate(animation,400,function(){moveContent("top_up");jQuery("#top_up").removeCenterWrap(newTopUpWidth);focusedElement.focus();afterDisplay()})})};var setContent=function(){options.content.appendTo("#temp_up .te_content")};var moveContent=function(to){var from=to=="top_up"?"temp_up":"top_up";jQuery("#"+from+" .te_content").children().appendTo("#"+to+" .te_content");if(to=="top_up"){jQuery("#top_up .te_content").css({width:jQuery("#temp_up .te_content").css("width"),height:jQuery("#temp_up .te_content").css("height")})}};var clearContent=function(){jQuery(".te_content .marked").each(function(){var marker=jQuery("#"+jQuery(this).markerId());if(marker.hasClass("hidden")){jQuery(this).hide()}marker.after(jQuery(this).removeClass("marked")).remove()});jQuery(".te_content").children(":not(.te_stored_content)").remove()};var transform=function(direction,dimensions,callback){var topUp=jQuery("#top_up");var tuContent=topUp.find(".te_content");if(direction=="from"){topUp.addClass("te_transparent").show()}var topUpOffset=topUp.offset();var tuContentOffset=tuContent.offset();var tuContentDiff={width:topUp.width()-tuContent.width(),height:topUp.height()-tuContent.height()};dimensions.top-=tuContentOffset.top-topUpOffset.top;dimensions.left-=tuContentOffset.left-topUpOffset.left;var origin={top:topUp.css("top"),left:topUp.css("left"),width:topUp.outerWidth(),height:topUp.outerHeight()};var opts={to:direction=="from"?origin:dimensions,duration:500};if(direction=="from"){opts.to.width-=tuContentDiff.width;opts.to.height-=tuContentDiff.height}var animation=function(){var cb=function(){callback.apply();options.content.removeClass("te_overflow")};var onReady=direction=="to"?function(){topUp.fadeOut(fadeDuration(100),cb)}:cb;topUp.animate({top:opts.to.top,left:opts.to.left},opts.duration);options.content.animate({width:opts.to.width,height:opts.to.height},opts.duration,onReady)};options.content.addClass("te_overflow");if(direction=="from"){topUp.css({top:dimensions.top,left:dimensions.left});options.content.css({width:dimensions.width,height:dimensions.height});jQuery(".te_top_up,.te_content").unlockDimensions();topUp.hide().removeClass("te_transparent").fadeIn(fadeDuration(150),animation)}else{animation.apply()}};var afterDisplay=function(){var duration=fadeDuration(500);if(jQuery("#top_up .te_frame").resizable&&parseInt(options.resizable,10)==1){var opts={stop:function(){jQuery("#top_up .te_frame").css({width:"auto",height:"auto"})},handles:"se",minWidth:200,minHeight:75,alsoResize:"#"+options.resize.id(),aspectRatio:options.type=="image"};jQuery("#top_up .te_frame").resizable(opts)}if(jQuery.ie6||jQuery.ie7){jQuery("#top_up .te_title").css("width",jQuery("#top_up").width())}jQuery("#top_up .te_title").html(options.title||"").fadeIn(duration);if(group&&group.items.length>1&&jQuery("#top_up .te_controls").is(":hidden")){if(jQuery.ie6){jQuery("#top_up .te_controls").show()}else{jQuery("#top_up .te_controls").fadeIn(duration)}}if(jQuery("#top_up .te_close_link").is(":hidden")){if(jQuery.ie6){jQuery("#top_up .te_close_link").show()}else{jQuery("#top_up .te_close_link").fadeIn(duration)}}checkPosition();jQuery(".te_top_up,.te_content").unlockDimensions();if(movieContentDisplayed()){options.content.find("object").show()}if(options.ondisplay){options.ondisplay.apply(this,[jQuery("#top_up .te_content"),data])}displaying=false};var setDimensions=function(dimensions){var func=dimensions?null:checkHeight;if(!dimensions){options.resize.unlockDimensions();if(jQuery.inArray(options.type,["image","html","dom","iframe"])!=-1){jQuery("#temp_up .te_content").unlockDimensions()}dimensions={};if(options.width){dimensions.width=parseInt(options.width,10)}if(options.height){dimensions.height=parseInt(options.height,10)}if(jQuery.ie6){jQuery("#top_up .te_title").css("width",jQuery("#temp_up").outerWidth())}}if(jQuery.ie8){jQuery("#top_up .te_close_link").hide()}options.resize.css(dimensions);if(jQuery.ie8){jQuery("#top_up .te_close").show()}if(func){func.apply()}};var checkHeight=function(){if(jQuery("#temp_up").outerHeight()<=jQuery(window).height()-4){return}var extraHeight=jQuery("#temp_up").outerHeight()-jQuery("#temp_up .te_content").height(),dimensions={height:jQuery(window).height()-4-extraHeight};if(options.type=="image"){dimensions.width=parseInt(options.content.width()*(dimensions.height/options.content.height()),10)}setDimensions(dimensions)};var checkPosition=function(){var offset=jQuery("#top_up").offset();var dimensions={width:jQuery("#top_up").outerWidth(),height:jQuery("#top_up").outerHeight()};var position={};if(offset.top-jQuery(window).scrollTop()<2){position.top=jQuery(window).scrollTop()+2}else{if(offset.top+dimensions.height-jQuery(window).scrollTop()>jQuery(window).height()-2){position.top=jQuery(window).scrollTop()+jQuery(window).height()-dimensions.height-2}}if(offset.left-jQuery(window).scrollLeft()<2){position.left=jQuery(window).scrollLeft()+2}else{if(offset.left+dimensions.width-jQuery(window).scrollLeft()>jQuery(window).width()-2){position.left=jQuery(window).scrollLeft()+jQuery(window).width()-dimensions.width-24}}if(jQuery.keys(position).length>0){if(jQuery.ie6||jQuery.ie7){jQuery("#top_up").css(position);window.setTimeout(function(){jQuery("#top_up .te_content").show()},1)}else{jQuery("#top_up").animate(position,300)}}};var hide=function(callback){jQuery(".te_content .te_stored_content").removeClass("te_stored_content");var duration=fadeDuration(250);var onReady=function(){animateHide(callback)};jQuery("#top_up .te_title").fadeOut(duration);jQuery("#top_up .te_controls").fadeOut(duration);if(movieContentDisplayed()){options.content.find("object").hide()}if(jQuery.ie){jQuery("#top_up .te_close_link").hide();onReady.apply()}else{jQuery("#top_up .te_close_link").fadeOut(duration,onReady)}};var animateHide=function(callback){var afterHide=function(){if(callback){callback.apply(this,[jQuery("#top_up .te_content"),data])}if(options.onclose){options.onclose.apply(this,[jQuery("#top_up .te_content"),data])}clearContent();moveContent("temp_up")};switch(options.effect){case"appear":case"fade":jQuery("#top_up").fadeOut(fadeDuration(300),afterHide);break;case"switch":case"clip":jQuery("#top_up").hide("clip",{direction:"vertical"},400,afterHide);break;case"transform":if(jQuery.ie6){jQuery("#top_up").hide();afterHide.apply();break}var origin=jQuery(options.topUp);if(origin.children().length>0){origin=jQuery(origin.children()[0])}var tuContent=jQuery("#top_up").find(".te_content");var dimensions=options.topUp?jQuery.extend({width:origin.outerWidth(),height:origin.outerHeight()},origin.offset()):{top:parseInt(jQuery(window).height()/2,10)+jQuery(window).scrollTop(),left:parseInt(jQuery(window).width()/2,10)+jQuery(window).scrollLeft(),width:10,height:10};transform("to",dimensions,afterHide);break;default:jQuery("#top_up").hide();afterHide()}jQuery("#tu_overlay").hide()};return{version:"1.7.2",jquery:null,host:scriptParams.host||scriptHost,images_path:scriptParams.images_path||"images/top_up/",players_path:scriptParams.players_path||"players/",data:data,init:function(){if(initialized){return false}try{jQuery(document).ready(function(){TopUp.jquery=jQuery().jquery;fast_mode=parseInt(scriptParams.fast_mode,10)==1;default_preset.resizable=jQuery.ui&&jQuery.ui.resizable?1:0;extendjQuery();injectCode();bind();jQuery("#top_up").draggableZ({only:".te_title,.te_top *,.te_bottom *"});jQuery.each(on_ready,function(i,func){func.apply()})});jQuery(window).unload(function(){jQuery("*").unbind();if(jQuery("#top_up .te_frame").resizable){jQuery("#top_up .te_frame").resizable("destroy")}});initialized=true}catch(e){}},defaultPreset:function(set){default_preset=jQuery.extend(default_preset,set)},addPresets:function(sets){presets=jQuery.extend(presets,sets)},ready:function(func){on_ready.push(func)},enableFastMode:function(){var args=arguments;if(!jQuery.isReady){TopUp.ready(function(){TopUp.enableFastMode.apply(null,args)});return false}if(arguments.length){var arg=arguments[0];var func=jQuery.isFunction(arg)?arg:function(){return arg};fast_mode=func.apply()}else{fast_mode=true}fast_mode=fast_mode==true||parseInt(fast_mode,10)==1;TopUp.rebind()},rebind:function(){if(selector){jQuery(selector).die("click",topUpClick)}bind()},displayTopUp:function(element,opts){if(!jQuery.isReady){TopUp.ready(function(){TopUp.displayTopUp(element,opts)});return false}var topUp=jQuery(element).bubbleDetect(selector);var toptions=deriveTopUpOptions(topUp,jQuery.extend(opts||{},{trigger:"#"+jQuery(element).id()}));TopUp.display(topUp.element.attr("href"),toptions)},display:function(reference,opts){if(!jQuery.isReady){TopUp.ready(function(){TopUp.display(reference,opts)});return false}if(displaying){return false}try{displaying=true;data={};deriveOptions(reference,opts,true);showLoader();var continueDisplaying=function(){try{deriveGroup();prepare();loadContent()}catch(e){displaying=false;hideLoader();alert("Sorry, but the following error occured:\n\n"+e)}};if(jQuery.ie6){window.setTimeout(continueDisplaying,1)}else{continueDisplaying()}}catch(e){displaying=false;hideLoader();alert("Sorry, but the following error occured:\n\n"+e)}},update:function(func){if(jQuery("#top_up").is(":hidden")){return}replace(func||function(){})},restore:function(storeCurrent,callback){options.storeCurrent=storeCurrent?1:0;options.ondisplay=callback;TopUp.update(function(){clearContent();var stored_content=this.children(":not(.te_stored_content):first-child").prev();if(!stored_content.length){stored_content=this.children(".te_stored_content:last-child")}stored_content.children().insertBefore(stored_content).end().end().remove()})},previous:function(){navigateInGroup(-1)},next:function(){navigateInGroup(1)},overlayClose:function(){if(parseInt(options.overlayClose,10)==1){TopUp.close()}},close:function(callback){if(jQuery("#top_up").is(":visible")){hide(callback)}}}}());(function(){var d=[];if(scriptParams.libs!=null){var b=scriptParams.libs.replace(/clip|switch/g,"fxc-clip").replace(/resize/g,"uic-resizable").split("+");for(var a=0;a<b.length;a++){if(["all","core","fxc-clip","uic-resizable"].indexOf(b[a])!=-1){if(d.indexOf(b[a])==-1){d.push(b[a])}}}}else{if(typeof(jQuery)=="undefined"){d.push("all")}else{if(!jQuery.effects||!jQuery.effects.clip){d.push("fxc-clip")}if(!jQuery.ui||!jQuery.ui.resizable){d.push("uic-resizable")}}}if(d.length==0){TopUp.init()}else{var c=scriptElement.getAttribute("src").replace(/(development\/)?top_up(\-min)?\.js.*$/,"jquery/"+d.sort().join(".")+".js");document.write('<script src="'+c+'" type="text/javascript" onload="TopUp.init()" onreadystatechange="TopUp.init()"><\/script>')}}())};
  20. When I insert a break <br> it shows up as <br> in the textarea. The info is coming from the database. How the info is ran through before adding to database (just in case you need this): $bandbio = mysqli_real_escape_string ($mysqli, $_POST["bio"]); $bandbio = strip_tags($bandbio, "<br /><p><a><b><u><s><br><i>"); $bandbio = rtrim($bandbio); Once taken from the database this is what the info goes through before displaying info in textarea: $bandbio = htmlspecialchars($bandbio); $bandbio = addbreaks($bandbio); //adds the break tag where needed echo $bandbio; So how would I make it so the <br> does not show up as html but actually shows as a line-break? For Example (this is what I would put in the text area): Some[press enter] text To show up as: Some text And not (like it is currently): Some<br> text
  21. For some reason i need to submit a form to an external website without changing the page. I'm a newbie with AJAX and i don't know how to do it so i would really appreciate if someone could help me. Here's the form i need to submit: Thanks a lot !
  22. Hello: I am very new to programming and I am trying to create a program where I can enter fifteen different elements into this form and have the output be the fifteen elements I entered displayed in the order that which they were entered. <html> <head> <title>temp</title> </head> <body> <form action="temp.php" method="post"> <fieldset> Enter an integer <input type = "text" name + "temp0" size = 3 /><BR> Enter an integer <input type = "text" name + "temp1" size = 3 /><BR> Enter an integer <input type = "text" name + "temp2" size = 3 /><BR> Enter an integer <input type = "text" name + "temp3" size = 3 /><BR> Enter an integer <input type = "text" name + "temp4" size = 3 /><BR> Enter an integer <input type = "text" name + "temp5" size = 3 /><BR> Enter an integer <input type = "text" name + "temp6" size = 3 /><BR> Enter an integer <input type = "text" name + "temp7" size = 3 /><BR> Enter an integer <input type = "text" name + "temp8" size = 3 /><BR> Enter an integer <input type = "text" name + "temp9" size = 3 /><BR> Enter an integer <input type = "text" name + "temp10" size = 3 /><BR> Enter an integer <input type = "text" name + "temp11" size = 3 /><BR> Enter an integer <input type = "text" name + "temp12" size = 3 /><BR> Enter an integer <input type = "text" name + "temp13" size = 3 /><BR> Enter an integer <input type = "text" name + "temp14" size = 3 /><BR> <input type = "submit" vallue = "submit after entering 15 integers" /><br /> </fieldset> </form> </body> </html> What do I need to do? A helpful response would be greatly appreciated. Thank you much in advanced.
  23. i have two different php file one is header and one is poll both php file has form tag i works fine but when i click on vote button in poll it redirect to top of the page without showing any result and submitting form so i was looking for error and when i remove form tag in header poll start working fine so i think its form tag problem header file form :- <form method="get" action="http://www.google.com/search"> <fieldset> <legend>Site Search</legend> <input type="text" name="q" size="31" maxlength="255" value="Google Search" /> <input type="submit" value="Search" name="go" id="go"/> </fieldset> </form> and poll form :- <form action="<?php echo $_SERVER['PHP_SELF']; ?>" onsubmit="return false" method="post"> <div id="mainContainer"> <div id="mainContent"> <?php $pollerId = 2; // Id of poller ?> <!-- START OF POLLER --> <div class="poller"> <div class="poller_question" id="poller_question<?php echo $pollerId; ?>"> <?php // Retreving poll from database $res = mysql_query("select * from poller where ID='$pollerId'"); if($inf = mysql_fetch_array($res)){ echo "<p class=\"pollerTitle\">".$inf["pollerTitle"]."</p>"; // Output poller title $resOptions = mysql_query("select * from poller_option where pollerID='$pollerId' order by pollerOrder") or die(mysql_error()); // Find poll options, i.e. radio buttons while($infOptions = mysql_fetch_array($resOptions)){ if($infOptions["defaultChecked"])$checked=" checked"; else $checked = ""; echo "<p class=\"pollerOption\"><input$checked type=\"radio\" value=\"".$infOptions["ID"]."\" name=\"vote[".$inf["ID"]."]\" id=\"pollerOption".$infOptions["ID"]."\"><label for=\"pollerOption".$infOptions["ID"]."\" id=\"optionLabel".$infOptions["ID"]."\">".$infOptions["optionText"]."</label></p>"; } } ?> <a href="#" onclick="castMyVote(<?php echo $pollerId; ?>,document.forms[0])"><img src="images/vote_button.gif"></a> </div> <div class="poller_waitMessage" id="poller_waitMessage<?php echo $pollerId; ?>"> Getting poll results. Please wait... </div> <div class="poller_results" id="poller_results<?php echo $pollerId; ?>"> <!-- This div will be filled from Ajax, so leave it empty --></div> </div> <!-- END OF POLLER --> <script type="text/javascript"> if(useCookiesToRememberCastedVotes){ var cookieValue = Poller_Get_Cookie('dhtmlgoodies_poller_<?php echo $pollerId; ?>'); if(cookieValue && cookieValue.length>0)displayResultsWithoutVoting(<?php echo $pollerId; ?>); // This is the code you can use to prevent someone from casting a vote. You should check on cookie or ip address } </script> </div> <div class="clear"></div> </div> </form> can you please tell me where is the problem is i stuck badly in this problem
  24. So I am using this legacy application which is in php 4. I am trying to set the httponly flag and secure flag on. This is my code: header( "Set-Cookie:". $cookieName."=".$sessId."; expires=".$expireSeconds."; sessionID=".$sessId.";path=".$path."; domain=".$domain."; httponly; secure"); When I test it, The secure flag is set on but the httponly is not. Could it because the URL uses https protocol? Also, does the expire field take seconds. right now, $expireSeconds=14400; How do I modify the code to rectify this if it doesnt expect seconds as a parameter.
  25. I am trying to help my mom with her site and we came across a problem with a Excel Page. My mom had information in a Excel document then clicked somewhere in Excel to make it into a webpage. It made it into a .htm page and when I go to add php to it for the layout it doesn't work - It just shows the layout then and no info. Here is the page coding (Internments.htm): <?php $pagetitle = "Saint Michaels Cemetery"; include("../layout/header.php"); ECHO <<<END <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta name="Excel Workbook Frameset"> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 12"> <link rel=File-List href="Internments_files/filelist.xml"> <![if !supportTabStrip]> <link id="shLink" href="Internments_files/sheet001.htm"> <link id="shLink" href="Internments_files/sheet002.htm"> <link id="shLink" href="Internments_files/sheet003.htm"> <link id="shLink"> <script language="Javascript"> <!-- var c_lTabs=3; var c_rgszSh=new Array(c_lTabs); c_rgszSh[0] = "Sheet1"; c_rgszSh[1] = "Sheet2"; c_rgszSh[2] = "Sheet3"; var c_rgszClr=new Array(; c_rgszClr[0]="window"; c_rgszClr[1]="buttonface"; c_rgszClr[2]="windowframe"; c_rgszClr[3]="windowtext"; c_rgszClr[4]="threedlightshadow"; c_rgszClr[5]="threedhighlight"; c_rgszClr[6]="threeddarkshadow"; c_rgszClr[7]="threedshadow"; var g_iShCur; var g_rglTabX=new Array(c_lTabs); function fnGetIEVer() { var ua=window.navigator.userAgent var msie=ua.indexOf("MSIE") if (msie>0 && window.navigator.platform=="Win32") return parseInt(ua.substring(msie+5,ua.indexOf(".", msie))); else return 0; } function fnBuildFrameset() { var szHTML="<frameset rows=\"*,18\" border=0 width=0 frameborder=no framespacing=0>"+ "<frame src=\""+document.all.item("shLink")[0].href+"\" name=\"frSheet\" noresize>"+ "<frameset cols=\"54,*\" border=0 width=0 frameborder=no framespacing=0>"+ "<frame src=\"\" name=\"frScroll\" marginwidth=0 marginheight=0 scrolling=no>"+ "<frame src=\"\" name=\"frTabs\" marginwidth=0 marginheight=0 scrolling=no>"+ "</frameset></frameset><plaintext>"; with (document) { open("text/html","replace"); write(szHTML); close(); } fnBuildTabStrip(); } function fnBuildTabStrip() { var szHTML= "<html><head><style>.clScroll {font:8pt Courier New;color:"+c_rgszClr[6]+";cursor:default;line-height:10pt;}"+ ".clScroll2 {font:10pt Arial;color:"+c_rgszClr[6]+";cursor:default;line-height:11pt;}</style></head>"+ "<body onclick=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" onselectstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+" topmargin=0 leftmargin=0><table cellpadding=0 cellspacing=0 width=100%>"+ "<tr><td colspan=6 height=1 bgcolor="+c_rgszClr[2]+"></td></tr>"+ "<tr><td style=\"font:1pt\"> <td>"+ "<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(0);\" onmouseout=\"parent.fnMouseOutScroll(0);\"><a>«</a></td>"+ "<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(0);\" ondblclick=\"parent.fnScrollTabs(0);\" onmouseover=\"parent.fnMouseOverScroll(1);\" onmouseout=\"parent.fnMouseOutScroll(1);\"><a>&lt</a></td>"+ "<td valign=top id=tdScroll class=\"clScroll2\" onclick=\"parent.fnScrollTabs(1);\" ondblclick=\"parent.fnScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(2);\" onmouseout=\"parent.fnMouseOutScroll(2);\"><a>&gt</a></td>"+ "<td valign=top id=tdScroll class=\"clScroll\" onclick=\"parent.fnFastScrollTabs(1);\" onmouseover=\"parent.fnMouseOverScroll(3);\" onmouseout=\"parent.fnMouseOutScroll(3);\"><a>»</a></td>"+ "<td style=\"font:1pt\"> <td></tr></table></body></html>"; with (frames['frScroll'].document) { open("text/html","replace"); write(szHTML); close(); } szHTML = "<html><head>"+ "<style>A:link,A:visited,A:active {text-decoration:none;"+"color:"+c_rgszClr[3]+";}"+ ".clTab {cursor:hand;background:"+c_rgszClr[1]+";font:9pt Arial;padding-left:3px;padding-right:3px;text-align:center;}"+ ".clBorder {background:"+c_rgszClr[2]+";font:1pt;}"+ "</style></head><body onload=\"parent.fnInit();\" onselectstart=\"event.returnValue=false;\" ondragstart=\"event.returnValue=false;\" bgcolor="+c_rgszClr[4]+ " topmargin=0 leftmargin=0><table id=tbTabs cellpadding=0 cellspacing=0>"; var iCellCount=(c_lTabs+1)*2; var i; for (i=0;i<iCellCount;i+=2) szHTML+="<col width=1><col>"; var iRow; for (iRow=0;iRow<6;iRow++) { szHTML+="<tr>"; if (iRow==5) szHTML+="<td colspan="+iCellCount+"></td>"; else { if (iRow==0) { for(i=0;i<iCellCount;i++) szHTML+="<td height=1 class=\"clBorder\"></td>"; } else if (iRow==1) { for(i=0;i<c_lTabs;i++) { szHTML+="<td height=1 nowrap class=\"clBorder\"> </td>"; szHTML+= "<td id=tdTab height=1 nowrap class=\"clTab\" onmouseover=\"parent.fnMouseOverTab("+i+");\" onmouseout=\"parent.fnMouseOutTab("+i+");\">"+ "<a href=\""+document.all.item("shLink")[i].href+"\" target=\"frSheet\" id=aTab> "+c_rgszSh[i]+" </a></td>"; } szHTML+="<td id=tdTab height=1 nowrap class=\"clBorder\"><a id=aTab> </a></td><td width=100%></td>"; } else if (iRow==2) { for (i=0;i<c_lTabs;i++) szHTML+="<td height=1></td><td height=1 class=\"clBorder\"></td>"; szHTML+="<td height=1></td><td height=1></td>"; } else if (iRow==3) { for (i=0;i<iCellCount;i++) szHTML+="<td height=1></td>"; } else if (iRow==4) { for (i=0;i<c_lTabs;i++) szHTML+="<td height=1 width=1></td><td height=1></td>"; szHTML+="<td height=1 width=1></td><td></td>"; } } szHTML+="</tr>"; } szHTML+="</table></body></html>"; with (frames['frTabs'].document) { open("text/html","replace"); charset=document.charset; write(szHTML); close(); } } function fnInit() { g_rglTabX[0]=0; var i; for (i=1;i<=c_lTabs;i++) with (frames['frTabs'].document.all.tbTabs.rows[1].cells[fnTabToCol(i-1)]) g_rglTabX[i]=offsetLeft+offsetWidth-6; } function fnTabToCol(iTab) { return 2*iTab+1; } function fnNextTab(fDir) { var iNextTab=-1; var i; with (frames['frTabs'].document.body) { if (fDir==0) { if (scrollLeft>0) { for (i=0;i<c_lTabs&&g_rglTabX[i]<scrollLeft;i++); if (i<c_lTabs) iNextTab=i-1; } } else { if (g_rglTabX[c_lTabs]+6>offsetWidth+scrollLeft) { for (i=0;i<c_lTabs&&g_rglTabX[i]<=scrollLeft;i++); if (i<c_lTabs) iNextTab=i; } } } return iNextTab; } function fnScrollTabs(fDir) { var iNextTab=fnNextTab(fDir); if (iNextTab>=0) { frames['frTabs'].scroll(g_rglTabX[iNextTab],0); return true; } else return false; } function fnFastScrollTabs(fDir) { if (c_lTabs>16) frames['frTabs'].scroll(g_rglTabX[fDir?c_lTabs-1:0],0); else if (fnScrollTabs(fDir)>0) window.setTimeout("fnFastScrollTabs("+fDir+");",5); } function fnSetTabProps(iTab,fActive) { var iCol=fnTabToCol(iTab); var i; if (iTab>=0) { with (frames['frTabs'].document.all) { with (tbTabs) { for (i=0;i<=4;i++) { with (rows[i]) { if (i==0) cells[iCol].style.background=c_rgszClr[fActive?0:2]; else if (i>0 && i<4) { if (fActive) { cells[iCol-1].style.background=c_rgszClr[2]; cells[iCol].style.background=c_rgszClr[0]; cells[iCol+1].style.background=c_rgszClr[2]; } else { if (i==1) { cells[iCol-1].style.background=c_rgszClr[2]; cells[iCol].style.background=c_rgszClr[1]; cells[iCol+1].style.background=c_rgszClr[2]; } else { cells[iCol-1].style.background=c_rgszClr[4]; cells[iCol].style.background=c_rgszClr[(i==2)?2:4]; cells[iCol+1].style.background=c_rgszClr[4]; } } } else cells[iCol].style.background=c_rgszClr[fActive?2:4]; } } } with (aTab[iTab].style) { cursor=(fActive?"default":"hand"); color=c_rgszClr[3]; } } } } function fnMouseOverScroll(iCtl) { frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[7]; } function fnMouseOutScroll(iCtl) { frames['frScroll'].document.all.tdScroll[iCtl].style.color=c_rgszClr[6]; } function fnMouseOverTab(iTab) { if (iTab!=g_iShCur) { var iCol=fnTabToCol(iTab); with (frames['frTabs'].document.all) { tdTab[iTab].style.background=c_rgszClr[5]; } } } function fnMouseOutTab(iTab) { if (iTab>=0) { var elFrom=frames['frTabs'].event.srcElement; var elTo=frames['frTabs'].event.toElement; if ((!elTo) || (elFrom.tagName==elTo.tagName) || (elTo.tagName=="A" && elTo.parentElement!=elFrom) || (elFrom.tagName=="A" && elFrom.parentElement!=elTo)) { if (iTab!=g_iShCur) { with (frames['frTabs'].document.all) { tdTab[iTab].style.background=c_rgszClr[1]; } } } } } function fnSetActiveSheet(iSh) { if (iSh!=g_iShCur) { fnSetTabProps(g_iShCur,false); fnSetTabProps(iSh,true); g_iShCur=iSh; } } window.g_iIEVer=fnGetIEVer(); if (window.g_iIEVer>=4) fnBuildFrameset(); //--> </script> <![endif]><!--[if gte mso 9]><xml> <x:ExcelWorkbook> <x:ExcelWorksheets> <x:ExcelWorksheet> <x:Name>Sheet1</x:Name> <x:WorksheetSource HRef="Internments_files/sheet001.htm"/> </x:ExcelWorksheet> <x:ExcelWorksheet> <x:Name>Sheet2</x:Name> <x:WorksheetSource HRef="Internments_files/sheet002.htm"/> </x:ExcelWorksheet> <x:ExcelWorksheet> <x:Name>Sheet3</x:Name> <x:WorksheetSource HRef="Internments_files/sheet003.htm"/> </x:ExcelWorksheet> </x:ExcelWorksheets> <x:Stylesheet HRef="Internments_files/stylesheet.css"/> <x:WindowHeight>9120</x:WindowHeight> <x:WindowWidth>11355</x:WindowWidth> <x:WindowTopX>480</x:WindowTopX> <x:WindowTopY>60</x:WindowTopY> <x:ProtectStructure>False</x:ProtectStructure> <x:ProtectWindows>False</x:ProtectWindows> </x:ExcelWorkbook> </xml><![endif]--> </head> <frameset rows="*,39" border=0 width=0 frameborder=no framespacing=0> <frame src="Internments_files/sheet001.htm" name="frSheet"> <frame src="Internments_files/tabstrip.htm" name="frTabs" marginwidth=0 marginheight=0> <noframes> <body> <p>This page uses frames, but your browser doesn't support them.</p> </body> </noframes> </frameset> </html> END; include("../layout/footer.php"); ?> It works fine without the php stuff. . . but then it doesn't have the layout.
×
×
  • 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.