Hvem er her? 1 gæst(er)
samen kliping af to systemer.
FoxMice
Lagt på d. 26-12-2010 16:46
Lidt øvet
Antal indlæg: 27
Tilmeldt: 16/12/2010 13:01
jeg side nu og har fået mit WRM system "WoW Raid Manager" til at køre og har også fået templaten rettede til så dan passer til min fusion theme, det hjælp jeg så gerne vil have er hjælp til at få sat mit fusion header og footer på wmr index siden så det ser ud som om det er en en del af hele systemer. jeg har prøvet mig frem men ikke været heldig jeg ved at jeg bare kan lave i Ifream i en bruger side, og det virker også ok men går man over i WRM admin dele loader den op uden for iream og så kommer man ikke bare tilbage ude at skrive hele adressen igen.
jeg håber nogle kan hjælpe mig med at strikke dem sammen
Siden det ligger på er
http://www.the-sk...maniacs.dk køre version 07.01.02
WRM delen er her.
http://www.the-sk.../index.php
her koden om til mit fusion Theme
Kode <?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<img class='bullet' src='".THEME."images/bullet.gif' alt='bullet.gif' border='0' />");
define("THEME_WIDTH", "100%");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale, $aidlink, $userdata;
if (file_exists(THEME."locale/".$settings['locale'].".php")) {
include THEME."locale/".$settings['locale'].".php";
} else {
include THEME."locale/English.php";
}
//Header-Top
echo "<div class='spacer3'></div>\n";
echo "<table cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='center'><tr>";
echo "<td class='capmain-left'></td>";
if (iMEMBER) {
echo "<td class='header-top' align='left' valign='middle'>".$locale['l01']." <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'><b>".$userdata['user_name']."</b></a></td>";
$msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<td class='header-top' align='right' valign='middle'>
<div id='menu'>
<ul>
<li><a id='logout' href='".BASEDIR."setuser.php?logout=yes' title='".$locale['global_124']."'></a></li>
".(iADMIN ? "<li><a id='admin' href='".ADMIN."index.php".$aidlink."' title='".$locale['global_123']."'></a></li> \n" : "")."
<li><a id='userlist' href='".BASEDIR."members.php' title='".$locale['global_122']."'></a></li>
<li><a id='profile' href='".BASEDIR."edit_profile.php' title='".$locale['global_120']."'></a></li>
<li><a id='pm' href='".BASEDIR."messages.php' title='".$locale['global_121']."'></a></li>
<li><a href='".BASEDIR."messages.php'>";if ($msg_count){echo" <span id='msgcount'>[$msg_count]</span>";}echo"</a></li>
</ul>
</div>
</td>";
}
else {
echo "<td class='header-top' align='left' valign='middle' width='20%'></td>";
echo "<td class='header-top' align='center' valign='middle'>";
echo "".(isset($loginerror) ? $loginerror : "")."
<form name='loginform1' method='post' action='".FUSION_SELF."'>
".$locale['global_101'].":
<input type='text' name='user_name' class='textbox' style='width:100px;'/>
".$locale['global_102'].":
<input type='password' name='user_pass' class='textbox' style='width:100px;'/>
<input type='checkbox' class='checkbox' name='remember_me' style='height:12px' value='y' title='".$locale['global_103']."' />
<input type='submit' name='login' value='".$locale['global_104']."' class='button'/>
</form></td>\n";
echo "<td class='header-top' align='right' valign='middle' width='20%'>
<div id='menu'>
<ul>
<li><a id='lp' href='".BASEDIR."lostpassword.php' title='".$locale['global_108']."'></a></li>
".($settings['enable_registration'] ? "<li><a id='register' href='".BASEDIR."register.php' title='".$locale['global_107']."'></a></li> \n" : "")."
</ul>
</div>
</td>";
}
echo "<td class='capmain-right'></td>";
echo "</tr>\n</table>\n";
echo "<div style='margin:10px;'></div>";
// Header del med logo og de to side logoer start
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='center'><tr>";
echo "<td align='center' width='180'><img src='".THEME."images/Jadziadax.png' alt=' 'style='display:block'></td>";
echo "<td align='center' valign='middle'>\n".showbanners()."</td>";
echo "<td align='center' width='180'><img src='".THEME."images/nofun.png' alt=' 'style='display:block'></td>";
echo "</tr>\n</table>\n";
// Header del med logo og de to side logoer stop
echo "<div style='margin:20px;'></div>";
//Drop-Down-Menu
echo "<table cellpadding='0' cellspacing='0' class='center' style='height:27px;'><tr>";
echo "<td align='center'>";
include THEME."TinyDropdown/tinydropdown.php";
echo "</td>\n";
echo "</tr>\n</table>\n";
echo "<div style='margin:10px;'></div>";
//Content
echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."' class='center'><tr>";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' style='border:1px solid;border-color: #161E26 #1F4880 #1F4880 #161E26;' width='".THEME_WIDTH."' class='center'><tr>";
echo "<td align='left' class='footer' style='width:42%;vertical-align:middle;'>".stripslashes($settings['footer'])."</td>";
if ($settings['visitorcounter_enabled'] == "0") {
echo "<td align='center' class='footer' style='vertical-align:middle;'><a href='http://php-fusion.openworld.dk/' target='_blank'><img src='".THEME."images/borgnine-logo.png' alt='borgnine-logo.png' style='vertical-align:middle;' title='Theme BorgNine - made by Harly' /></a></td>";
}
else {
echo "<td align='center' class='footer' style='vertical-align:middle;'><a href='http://php-fusion.openworld.dk/' target='_blank'><img src='".THEME."images/borgnine-logo.png' alt='borgnine-logo.png' style='vertical-align:middle;' title='Theme BorgNine - made by Harly' /></a><br /><div style='border:1px solid;border-color:#161E26 transparent #1F4880 transparent;margin:3px 0 3px 0;'></div>";
echo showcounter();
echo "</td>";
}
echo "<td align='right' class='bfooter' style='width:42%;'>".showcopyright()."</td>";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'><tr>";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'><img src='".THEME."/images/icon-n.png' alt='icon-n.png' /> ".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "<td class='main-body middle-border'>".$news."</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "</tr>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "<td align='center' class='news-footer middle-border'>\n";
echo "<hr />\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>";
echo "<td align='left'><img src='".THEME."/images/sideb-left.png' style='width:2px;height:6px;' alt='sideb-left.png' class='spacer' /></td>";
echo "<td align='center' class='sideb' width='100%'></td>";
echo "<td align='right'><img src='".THEME."/images/sideb-right.png' style='width:2px;height:6px;' alt='sideb-right.png' class='spacer' /></td>";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'><tr>";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'><img src='".THEME."/images/icon-n.png' alt='icon-n.png' /> ".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "</tr>\n<tr>\n";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "<td align='center' class='news-footer middle-border'>\n";
echo "<hr />\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>";
echo "<td align='left'><img src='".THEME."/images/sideb-left.png' style='width:2px;height:6px;' alt='sideb-leftt.png' class='spacer' /></td>";
echo "<td align='center' class='sideb' style='width:100%;'></td>";
echo "<td align='right'><img src='".THEME."/images/sideb-right.png' style='width:2px;height:6px;' alt='sideb-right.png' class='spacer' /></td>";
echo "</tr>\n</table>\n";
}
function opentable($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'><tr>";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'><img src='".THEME."/images/icon-c.png' alt='icon-c.png' /> $title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='capmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "<td colspan='2' class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closetable() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>";
echo "<td align='left'><img src='".THEME."/images/sideb-left.png' style='width:2px;height:6px;' alt='sideb-left.png' class='spacer' /></td>";
echo "<td align='center' class='sideb' style='width:100%;'></td>";
echo "<td align='right'><img src='".THEME."/images/sideb-right.png' style='width:2px;height:6px;' alt='sideb-right.png' class='spacer' /></td>";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'><tr>";
echo "<td class='scapmain-left'></td>\n";
echo "<td class='scapmain'><img src='".THEME."/images/icon-s.png' alt='icon-s.png' /> $title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' style='width:100%;'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "<td colspan='2' class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' style='width:2px;height:1px;display:block' alt='blank.gif' /></td>";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0' width='100%'><tr>";
echo "<td align='left'><img src='".THEME."/images/sideb-left.png' style='width:2px;height:6px;' alt='sideb-left.png' class='spacer' /></td>";
echo "<td align='center' class='sideb' style='width:100%;'></td>";
echo "<td align='right'><img src='".THEME."/images/sideb-right.png' style='width:2px;height:6px;' alt='sideb-right.png' class='spacer' /></td>";
echo "</tr>\n</table>\n";
}
?>
her er koden til index filen i WRM
Kode <?php
/***************************************************************************
* index.php
* -------------------
* begin : Saturday, Jan 16, 2005
* copyright : (C) 2007-2008 Douglas Wagner
* email :
*
* $Id: index.php,v 2.00 2008/03/04 17:15:50 psotfx Exp $
*
***************************************************************************/
/***************************************************************************
*
* WoW Raid Manager - Raid Management Software for World of Warcraft
* Copyright (C) 2007-2008 Douglas Wagner
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
****************************************************************************/
// commons
define("IN_PHPRAID", true);
require_once('./common.php');
// page authentication
if($phpraid_config['anon_view'] == 1)
define("PAGE_LVL","anonymous");
else
define("PAGE_LVL","profile");
require_once("includes/authentication.php");
/*************************************************************
* Setup Record Output Information for Data Table
*************************************************************/
// Set StartRecord for Page
if(!isset($_GET['Base']) || !is_numeric($_GET['Base']))
$startRecord = 1;
else
$startRecord = scrub_input($_GET['Base']);
// Set Sort Field for Page
if(!isset($_GET['Sort'])||$_GET['Sort']=='')
{
$sortField="";
$initSort=FALSE;
}
else
{
$sortField = scrub_input($_GET['Sort']);
$initSort=TRUE;
}
// Set Sort Descending Mark
if(!isset($_GET['SortDescending']) || !is_numeric($_GET['SortDescending']))
$sortDesc = 0;
else
$sortDesc = scrub_input($_GET['SortDescending']);
$pageURL = 'index.php?mode=view&';
/**************************************************************
* End Record Output Setup for Data Table
**************************************************************/
// arrays to hold raid information
$current = array();
$previous = array();
$count = array();
$count2 = array();
$raid_loop_cur = 0;
$raid_loop_prev = 0;
//$sql = "SELECT * FROM " . $phpraid_config['db_prefix'] . "raids WHERE recurrance = 0";
// Select all raids that are marked current and only the top X raids marked old and throw out any record
// that has recurrance set to 1.
$sql = "(SELECT * from " . $phpraid_config['db_prefix'] . "raids " .
"WHERE `old` = 0 " .
"AND `recurrance` = 0) " .
"UNION ALL " .
"(SELECT * FROM " . $phpraid_config['db_prefix'] . "raids " .
"WHERE `recurrance` = 0 " .
"AND `old` = 1 " .
"ORDER BY `raid_id` DESC " .
"LIMIT " . $phpraid_config['num_old_raids_index'] . ")";
$raids_result = $db_raid->sql_query($sql) or print_error($sql, $db_raid->sql_error(), 1);
while($raids = $db_raid->sql_fetchrow($raids_result, true)) {
$invite = new_date('Y/m/d H:i:s', $raids['invite_time'],$phpraid_config['timezone'] + $phpraid_config['dst']);
$start = new_date('Y/m/d H:i:s', $raids['start_time'],$phpraid_config['timezone'] + $phpraid_config['dst']);
$date = $start;
// Initialize Count Array and Totals.
foreach ($wrm_global_classes as $global_class)
{
$count[$global_class['class_id']]='0';
$count2[$global_class['class_id']]='0';
}
foreach ($wrm_global_roles as $global_role)
{
$count[$global_role['role_id']]='0';
$count2[$global_role['role_id']]='0';
}
$total = 0;
$total2 = 0;
//Get Raid Total Counts
$count = get_char_count($raids['raid_id'], $type='');
$count2 = get_char_count($raids['raid_id'], $type='queue');
foreach ($wrm_global_classes as $global_class)
$total += $count[$global_class['class_id']];
foreach ($wrm_global_classes as $global_class)
$total2 += $count2[$global_class['class_id']];
$logged_in=scrub_input($_SESSION['session_logged_in']);
$priv_profile=scrub_input($_SESSION['priv_profile']);
$profile_id=scrub_input($_SESSION['profile_id']);
// check if signed up
// precendence -> cancelled signup, signed up, raid frozen, open for signup
if($logged_in == 1 && $priv_profile == 1)
{
if(is_char_cancel($profile_id, $raids['raid_id']))
$info = '<img src="templates/' . $phpraid_config['template'] . '/images/icons/cancel.gif" border="0" height="14" width="14" onMouseover="ddrivetip(\'' . $phprlang['cancel_msg'] . '\');" onMouseout="hideddrivetip();" alt="cancel icon">';
else if(is_char_signed($profile_id, $raids['raid_id']))
$info = '<img src="templates/' . $phpraid_config['template'] . '/images/icons/check_mark.gif" border="0" height="14" width="14" onMouseover="ddrivetip(\'' . $phprlang['signed_up'] . '\');" onMouseout="hideddrivetip();" alt="check mark">';
else if(check_frozen($raids['raid_id']) && $phpraid_config['disable_freeze'] == 0)
$info = '<img src="templates/' . $phpraid_config['template'] . '/images/icons/frozen.gif" border="0" height="14" width="14" onMouseover="ddrivetip(\'' . $phprlang['frozen_msg'] . '\');" onMouseout="hideddrivetip();" alt="frozen">';
else
$info = '<a href="view.php?mode=view&raid_id=' . $raids['raid_id'] . '#signup">'. $phprlang['signup'] .'</a>';
}
$desc = scrub_input($raids['description']);
$ddrivetiptxt = "'<span class=tooltip_title>" . $phprlang['description'] ."</span><br>" . DEUBB2($desc) . "'";
$location = '<a href="view.php?mode=view&raid_id=' . $raids['raid_id'] . '" onMouseover="ddrivetip('.$ddrivetiptxt.');" onMouseout="hideddrivetip();">'.$raids['location'].'</a>';
// Now that we have the raid data, we need to retrieve limit data based upon Raid ID.
// Get Class Limits and set Colored Counts
$raid_class_array = array();
$class_color_count = array();
$sql = sprintf("SELECT * FROM " . $phpraid_config['db_prefix'] . "raid_class_lmt WHERE raid_id = %s", quote_smart($raids['raid_id']));
$result_raid_class = $db_raid->sql_query($sql) or print_error($sql, $db_raid->sql_error(), 1);
while($raid_class_data = $db_raid->sql_fetchrow($result_raid_class, true))
{
$raid_class_array[$raid_class_data['class_id']] = $raid_class_data['lmt'];
if($phpraid_config['class_as_min'])
$class_color_count[$raid_class_data['class_id']] = get_coloredcount($raid_class_data['class_id'], $count[$raid_class_data['class_id']], $raid_class_array[$raid_class_data['class_id']], $count2[$raid_class_data['class_id']], true);
else
$class_color_count[$raid_class_data['class_id']] = get_coloredcount($raid_class_data['class_id'], $count[$raid_class_data['class_id']], $raid_class_array[$raid_class_data['class_id']], $count2[$raid_class_data['class_id']]);
}
// Get Role Limits and set Colored Counts
$raid_role_array = array();
$role_color_count = array();
$sql = sprintf("SELECT * FROM " . $phpraid_config['db_prefix'] . "raid_role_lmt WHERE raid_id = %s", quote_smart($raids['raid_id']));
$result_raid_role = $db_raid->sql_query($sql) or print_error($sql, $db_raid->sql_error(), 1);
while($raid_role_data = $db_raid->sql_fetchrow($result_raid_role, true))
{
$sql2 = sprintf("SELECT role_name FROM " . $phpraid_config['db_prefix'] . "roles WHERE role_id = %s", quote_smart($raid_role_data['role_id']));
$result_role_name = $db_raid->sql_query($sql2) or print_error($sql2, $db_raid->sql_error(), 1);
$role_name = $db_raid->sql_fetchrow($result_role_name, true);
$raid_role_array[$role_name['role_name']] = $raid_role_data['lmt'];
$role_color_count[$role_name['role_name']] = get_coloredcount($role_name['role_name'], $count[$raid_role_data['role_id']], $raid_role_array[$role_name['role_name']], $count2[$raid_role_data['role_id']]);
}
// Get Raid Force Name from Raid Force ID
$sql = sprintf("SELECT raid_force_name FROM " . $phpraid_config['db_prefix'] . "raid_force WHERE raid_force_id = %s", quote_smart($raids['raid_force_id']));
$result_raid_force_name = $db_raid->sql_query($sql) or print_error($sql, $db_raid->sql_error(), 1);
$raid_force_name_data = $db_raid->sql_fetchrow($result_raid_force_name, true);
if ($raids['raid_force_id'] == 0)
$force_name = $phprlang['none'];
else
$force_name = $raid_force_name_data['raid_force_name'];
// always show current raids
if($raids['old'] == 0) {
array_push($current,
array(
'ID'=>$raids['raid_id'],
'Signup'=>$info,
'Force Name'=>$force_name,
'Date'=>$date,
'Dungeon'=>$location,
'Invite Time'=>$invite,
'Start Time'=>$start,
'Creator'=>$raids['officer'],
'Totals'=>$total.'/'.$raids['max'] . '(+' . $total2. ')',
)
);
foreach ($class_color_count as $left => $right)
$current[$raid_loop_cur][$left]= $right;
foreach ($role_color_count as $left => $right)
$current[$raid_loop_cur][$left]= $right;
$raid_loop_cur++;
} else {
array_push($previous,
array(
'ID'=>$raids['raid_id'],
'Signup'=>$info,
'Force Name'=>$force_name,
'Date'=>$date,
'Dungeon'=>$raids['location'],
'Invite Time'=>$invite,
'Start Time'=>$start,
'Creator'=>$raids['officer'],
'Totals'=>$total.'/'.$raids['max'] . '(+' . $total2. ')',
)
);
foreach ($class_color_count as $left => $right)
$previous[$raid_loop_prev][$left]= $right;
foreach ($role_color_count as $left => $right)
$previous[$raid_loop_prev][$left]= $right;
$raid_loop_prev++;
}
}
/**************************************************************
* Code to setup for a Dynamic Table Create: raids1 View.
**************************************************************/
$viewName = 'index1';
//Setup Columns
$raid_headers = array();
$record_count_array = array();
$raid_headers = getVisibleColumns($viewName);
//Get Record Counts
$curr_record_count_array = getRecordCounts($current, $raid_headers, $startRecord);
$prev_record_count_array = getRecordCounts($previous, $raid_headers, $startRecord);
//Get the Jump Menu and pass it down
$currJumpMenu = getPageNavigation($current, $startRecord, $pageURL, $sortField, $sortDesc);
$prevJumpMenu = getPageNavigation($previous, $startRecord, $pageURL, $sortField, $sortDesc);
//Setup Default Data Sort from Headers Table
if (!$initSort)
foreach ($raid_headers as $column_rec)
if ($column_rec['default_sort'])
$sortField = $column_rec['column_name'];
//Setup Data
$current = paginateSortAndFormat($current, $sortField, $sortDesc, $startRecord, $viewName);
$previous = paginateSortAndFormat($previous, $sortField, $sortDesc, $startRecord, $viewName);
/****************************************************************
* Data Assign for Template.
****************************************************************/
$wrmsmarty->assign('new_data', $current);
$wrmsmarty->assign('old_data', $previous);
$wrmsmarty->assign('current_jump_menu', $currJumpMenu);
$wrmsmarty->assign('previous_jump_menu', $prevJumpMenu);
$wrmsmarty->assign('column_name', $raid_headers);
$wrmsmarty->assign('curr_record_counts', $curr_record_count_array);
$wrmsmarty->assign('prev_record_counts', $prev_record_count_array);
$wrmsmarty->assign('header_data',
array(
'template_name'=>$phpraid_config['template'],
'old_raids_header' => $phprlang['raids_old'],
'new_raids_header' => $phprlang['raids_new'],
'sort_url_base' => $pageURL,
'sort_descending' => $sortDesc,
'sort_text' => $phprlang['sort_text'],
)
);
// now for announcements
// get announcements
$announcements = array();
$announcement_header=$phprlang['announcements_header'];
$sql = "SELECT * FROM " . $phpraid_config['db_prefix'] . "announcements";
$result = $db_raid->sql_query($sql) or print_error($sql, $db_raid->sql_error(), 1);
if($db_raid->sql_numrows($result) > 0)
{
/* fetch rows in reverse order */
$i = $db_raid->sql_numrows($result) - 1;
while($i >= 0)
{
$db_raid->sql_rowseek($i, $result);
$data = $db_raid->sql_fetchrow($result, true);
$time = new_date($phpraid_config['time_format'], $data['timestamp'],$phpraid_config['timezone'] + $phpraid_config['dst']);
$date = new_date($phpraid_config['date_format'], $data['timestamp'],$phpraid_config['timezone'] + $phpraid_config['dst']);
array_push($announcements,
array(
'announcement_author'=>$data['posted_by'],
'announcement_date'=>$date,
'announcement_time'=>$time,
'announcement_msg'=>linebreak_to_br($data['message']),
'announcement_title'=>$data['title'],
)
);
$i--;
}
$wrmsmarty->assign('announcement_header', $announcement_header);
$wrmsmarty->assign('announcement_data', $announcements);
}
//
// Start output of the page.
//
require_once('includes/page_header.php');
$wrmsmarty->display('main_page.html');
require_once('includes/page_footer.php');
?>
Redigeret af FoxMice d. 26-12-2010 16:49
Skrevet d. 22-11-2024 19:50
Reklame Agent
Antal indlæg: n^x
Tilmeldt: Altid
IP : localhost
Tutsi
Lagt på d. 26-12-2010 18:30
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
Er der ikke noget style.css med til den anden side? Du har det jo næsten, og er kun at få header og footer rettet til som du også selv skriver.
Jeg synes ikke jeg lige kan overskue det der, men har jeg adgang til ftp, skal jeg nok finde ud af det. Det kan ikke bare kopieres.
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
FoxMice
Lagt på d. 27-12-2010 13:27
Lidt øvet
Antal indlæg: 27
Tilmeldt: 16/12/2010 13:01
Ellen jeg kan sende dig FTP oplysninger på PM. hvis du vil kikke på det.
jo der er css med til WRm systemet der er den jeg har rettede til plus rant en masse Html file i gennem men der er som det skal. være nu
det er nemlig kun lige footer og header jeg gerne vil har lagt på. så vi ikke midster vores fusion muligheder med logo og dropdown menuen
på den måde at alt fra hvor elementerne og op kommer over og alt fra bunde og footer baren i bunden kommer med.
Tutsi
Lagt på d. 27-12-2010 19:41
Superadministrator
Antal indlæg: 2409
Tilmeldt: 24/02/2009 19:12
Prøv det, så skal jeg nok kigge.
______________________________
Hilsen Ellen
______________________________
www.jensens-madbl...
"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
Spring til debat:
Kravlegården på Assensvej
Assensvej.dk
MOD's /7.02
Temaer /7.02
Generel debat - PHP-Fusion /7.02
Nye Themes fra Assensvej.dk
MOD's /7.01
Infusioner /7.01
Temaer /7.01
Tips og tricks,elementer mm /7.01
Generel debat - PHP-Fusion /7.01
MOD's v7
Infusioner v7
Temaer v7
Tips og tricks,elementer mm v7
Generel debat - PHP-Fusion v7
vise dine Temaer/show your Themes
Themes
Theme Requests
Showcase
Hvad sker der på Assensvej.dk
De løse debater
Fra Bruger til Bruger.
Lidt sjov
Jule vittigheder og historie
Facebook
YouTube