Change table vertical to horizontal

This is a discussion on "Change table vertical to horizontal" within the Web Page Design section. This forum, and the thread "Change table vertical to horizontal are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 13th, 2007, 20:17
Junior Member
Join Date: Apr 2007
Location: jakarta
Age: 28
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Change table vertical to horizontal

i have script that shown image in table, i want the table shown in horizontal not vertical
this is the entire script, and the table that influence is in the red i think below

any idea guys what i need to edit?




Quote:

# Photo Album
# 1.1
#
# Displays a members photos
class user_photoplog_album extends z_module
{
# Set the maximum amount of images any users are allowed to display
var $max_images = 5;
function contents()
{
$content = $this->content;
$vbulletin = $this->_zoints->external->vbulletin;

# If limit hasnt been set or is over the admin set maximum, set it to the admin max
if(empty($content['max_pics']) OR $content['max_pics'] > $this->max_images)
{
$limit_sql = 'LIMIT ' . $this->max_images;
}
# Otherwise, let them set it
else
{
$limit_sql = 'LIMIT ' . $content['max_pics'];
}

# Get all photos the user has
$getphotos = $vbulletin->db->query_read("
SELECT * FROM " . TABLE_PREFIX . "photoplog_fileuploads
WHERE userid=" . $this->zuser . "
AND moderate=0
ORDER BY dateline DESC
" . $limit_sql . "
");
$html .= '<div class="' . $this->style['pmain1'] . '" style="padding: 0;">';

# Does the user have any photos?
if ($vbulletin->db->num_rows($getphotos))
{
# Display the top of the table
$html .= '
<table border="0" width="100%">
<tr>
<td width="100" overflow-x: scroll; overflow-y: hidden; align="center" class="phead">
Image
</td>';
# Display the details?
if(!$content['details'])
{
$html .= ' ';
}
$html .= ' </tr>';

# loop and display all that have been fetched from the DB
while($photo = $vbulletin->db->fetch_array($getphotos))
{
# Display image cell
$html .= '
<tr>
<td width="100" align="center" class="pmain2">
<a href="' . $this->_zoints->external->url() . 'imagehosting/image' . $photo['fileid'] . '.html" target="_blank"">
<img src="' . $this->_zoints->external->url() . 'imagehosting/images/' . $photo['userid'] . '/small/' . $photo['filename'] . '" />
</a>
</td>
';
# Display the image details?
if(!$content['details'])
{
$html .= ' ';
}
$html .= '</tr>';
}
$html .= '</table>
<p><a href="index.php?u=' . $this->zuser . '" target="_blank">View All Photos</a>
</p>

<div>
<p>';
}
# Nope, tell them they have none
else
{
$html .= 'You don\'t have any photos. <a href="upload.php" target="_blank">Upload photos now!</a>';
}
$vbulletin->db->free_result($getphotos);

$html .= '</p>
</div>';
return $html;
}

function update($content)
{
return $content;
}
function edit()
{
$content = $this->content;
if($content['max_pics'] AND $content['max_pics'] < $this->max_images)
{
$limit = htmlspecialchars($content['max_pics']);
}
else
{
$limit = $this->max_images;
}
$html .= '<div class="pmain1">';

# Disable description checkbox
$html .= 'Disable image details? ';
$html .= '<input type="checkbox" name="mod[content][details]" ' . ($content['details'] ? 'checked="checked"': '') . ' /> <br />';
# Max pictures textbox
$html .= 'Max pictures to display ';
$html .= '<input type="text" name="mod[content][max_pics]" value="' . $limit . '" size="5" /> ';
$html .= '<span style="font-size: 7pt; color: #848484;">(max ' . $this->max_images . ' allowed)</span> ';

$html .= '</div>';

return $html;
}
}
Reply With Quote

Reply

Tags
horizontal, table, vertical

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Vertical and Horizontal Dashed lines thewebkid Starting Out 4 Oct 30th, 2007 10:13
vertical but no horizontal scroll bar.. word wrap nate2099 Web Page Design 1 Jul 17th, 2007 12:20
vertical scroll bar to a table encompass Web Page Design 2 Jun 12th, 2007 12:10
Vertical Table Alignment Amphersand Web Page Design 6 Mar 13th, 2006 01:34
Tip : Vertical and Horizontal Centering - Solved! gwx03 Web Page Design 0 Dec 15th, 2003 06:11


All times are GMT. The time now is 23:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43