Hallo,
Ik heb hier een logs die slaat shoplogs op callcreditslogs en secretlinks enkel nu doet alleen secretlinks het voorderest niks wie wilt me helpen om het werkend temaken hier is het script.
PHP
<div class="title_bg"><div style="font-size:17px; color:#1b1a17; margin-left:10px; padding-top:4px;">Persoonlijke logs</div></div>
<div style="width:100%; height:auto; background:#c3b79d; font-family:arial; font-size:12px; color:#2a190e;">
<div style="padding:5px; padding-bottom:10px;">
Hieronder staan de verschillende persoonlijke logs!<br />
<br><br>
<br />
</div>
</div>
<script language="javascript">
function openTab(pTabPage,pTab){
document.getElementById('mission_1').style.display = 'none';
document.getElementById('mission_2').style.display = 'none';
document.getElementById('mission_3').style.display = 'none';
document.getElementById('mission_4').style.display = 'none';
document.getElementById(pTabPage).style.display = 'block';
document.getElementById('tab1').style.background = '';
document.getElementById('tab1').style.fontWeight = 'normal';
document.getElementById('tab2').style.background = '';
document.getElementById('tab2').style.fontWeight = 'normal';
document.getElementById('tab3').style.background = '';
document.getElementById('tab3').style.fontWeight = 'normal';
document.getElementById('tab4').style.background = '';
document.getElementById('tab4').style.fontWeight = 'normal';
document.getElementById(pTab).style.background = 'url(\'images/tab_info_arrow.gif\') bottom no-repeat';
document.getElementById(pTab).style.fontWeight = 'bold';
}
</script>
<div style="width:100%; height:25px; background:url('images/tab_info_bg.jpg') repeat-x; font-family:arial; font-size:12px; color:#2a190e;">
<div id="tab1" style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px; background:url('images/tab_info_arrow.gif') bottom no-repeat; font-weight:bold;"><a href="#" onclick="openTab('mission_1','tab1'); return false">Shop logs</a></div>
<div style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;">|</div>
<div id="tab2" style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;"><a href="#" onclick="openTab('mission_2','tab2'); return false">Callcredits logs</a></div>
<div style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;">|</div>
<div id="tab3" style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;"><a href="#" onclick="openTab('mission_3','tab3'); return false">Secretlink log</a></div>
<div style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;">|</div>
<div id="tab4" style="float:left; height:26px; margin:0px; padding:0px; margin-left: 5px;"><a href="#" onclick="openTab('mission_4','tab4'); return false"></a></div>
</div>
<div style="background-color:#dbd2b7; ">
<br>
<table cellpadding="4" cellspacing="0" width="100%" align="center"><tr><td>
<form method="POST" action="index.php?a=mod_other_missions&f=domission" onsubmit="return checkError(this)">
<input type="hidden" name="sel" id="sel" value="">
<div id="mission_1" style="display:none">
<table width="100%" class="mod_list">
<tr>
<td>
</td>
<td>
<b>Tijdstip</b>
</td>
<td>
</td>
<td>
<b>Wat</b>
</td>
<td>
</td>
<td>
<b>Gekost/Gewonnen</b>
</td>
</tr>
<tr>
<?php
if($_GET['x'] == ""){
$begin = ($_GET['p'] >= 0) ? $_GET['p']*30 : 0;
}else{$begin = 0;}
$dbres = mysql_query("SELECT * FROM `shoplogs` ORDER BY `login` DESC LIMIT $begin,30");
$num1 = mysql_query("SELECT * FROM `shoplogs`");
$num = mysql_num_rows($num1);
$pages = floor($num/30+1);
$result_1 = mysql_query("SELECT * FROM shoplogs WHERE login = '" . $data->login . "' AND `wat` != 'Power' ORDER BY shopid DESC");
for ($j = $result_1 + 1; $info = mysql_fetch_object($result_1); $j++)
{
$user1 = mysql_query("SELECT * FROM users WHERE login = '" . $info->ip . "'");
$user = mysql_fetch_object($user1);
$online1 = mysql_query("SELECT * FROM users WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(online) < 300 AND login = '" . $user->login . "'");
$online = mysql_fetch_object($online1);
$geldinfo = number_format($info->geld, 0, '.' , '.');
?>
<td width="10">
<img src="images/icons_gif/time.gif" border="0" />
</td>
<td>
<?php echo $info->date; ?>
</td>
<td width="10">
<?=$info->hoeveel; ?>x
</td>
<td>
<?=$info->wat; ?>
</td>
<td width="10">
</td>
<td>
€ <?=$info->geld; ?>
</a>
</td>
</tr>
<?php
}
?>
<br>
<script language="javascript">
function selectPage(pURL,pElement){
document.location.href = pURL.replace("[#page]",pElement.value);
}
</script>
</table>
</div>
<div id="mission_2" style="display:none">
<table width="100%" class="mod_list">
<tr>
<td>
</td>
<td>
<b>Tijdstip</b>
</td>
<td>
</td>
<td>
<b>Wat</b>
</td>
<td>
</td>
<td>
<b>Erbij/Eraf</b>
</td>
</tr>
<tr>
<?php
$result_1 = mysql_query("SELECT * FROM ccshoplogs WHERE login = '" . $data->login . "' AND `wat`='Callcredits' ORDER BY shopid DESC");
for ($j = $result_1 + 1; $info = mysql_fetch_object($result_1); $j++)
{
$user1 = mysql_query("SELECT * FROM users WHERE login = '" . $info->ip . "'");
$user = mysql_fetch_object($user1);
$online1 = mysql_query("SELECT * FROM users WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(online) < 300 AND login = '" . $user->login . "'");
$online = mysql_fetch_object($online1);
$wat1 = mysql_query("SELECT * FROM ccshoplogs WHERE ip = '" . $data->login . "' AND login = '" . $user->login . "' AND active = '1'");
$selfclicked = mysql_num_rows($selfclicked1);
$geldinfo = number_format($info->geld, 0, '.' , '.');
?>
<td width="10">
<img src="images/icons_gif/time.gif" border="0" />
</td>
<td>
<?php echo $info->date; ?>
</td>
<td width="10">
<?=$info->hoeveel; ?>x
</td>
<td>
<?=$info->wat; ?>
</td>
<td width="10">
</td>
<td>
<?=$geldinfo; if($info->bijaf == "Erbij"){ echo "<font color=\"green\"> erbij</font>"; } else{ echo "<font color=\"red\"> eraf</font>"; } ?>
</a>
</td>
</tr>
<?php
}
?>
<br>
<script language="javascript">
function selectPage(pURL,pElement){
document.location.href = pURL.replace("[#page]",pElement.value);
}
</script>
</table>
</div>
<div id="mission_3" style="display:none">
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td width="5%"></td>
<td width="45%" align="center"><strong>Datum</strong></td>
<td> </td>
<td align="center"><strong>Geklikt door</strong></td>
<td align="center"><strong>SL</strong></td>
</tr>
<?php
$result_1 = mysql_query("SELECT * FROM clicks WHERE login = '" . $data->login . "' ORDER BY date");
for ($j = $result_1 + 1; $info = mysql_fetch_object($result_1); $j++)
{
$user1 = mysql_query("SELECT * FROM users WHERE login = '" . $info->ip . "'");
$user = mysql_fetch_object($user1);
$online1 = mysql_query("SELECT * FROM users WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(online) < 300 AND login = '" . $user->login . "'");
$online = mysql_fetch_object($online1);
$selfclicked1 = mysql_query("SELECT * FROM clicks WHERE ip = '" . $data->login . "' AND login = '" . $user->login . "' AND active = '1'");
$selfclicked = mysql_num_rows($selfclicked1);
?>
<td width="10">
<center><img src="images/icons_gif/time.gif" border="0" /></center>
</td>
<td>
<?php echo $info->date; ?>
</td>
<?php
if ($online->login == $user->login)
{
echo '<td width="10">
<img src="images/icons_gif/status_online.gif" title="Online">
</td>';
}
if ($online->login != $user->login)
{
echo '<td width="10">
<img src="images/icons_gif/status_offline.gif" title="Offline">
</td>';
}
?>
<td>
<a href="index.php?a=profile&x=<?php echo $user->id; ?>"><?php echo $user->login; ?></a>
</td>
<td width="10">
<a href="index.php?a=click&x=<?php echo $user->id; ?>">
<?php
if ($selfclicked < 1)
{
echo '<img src="images/icons_gif/key.png" border="0" /></a>';
}
if ($selfclicked > 0)
{
echo '<img src="images/icons_gif/key_red.png" border="0" /></a>';
}
?>
</td>
</tr>
<?php
}
?>
</table>
<center>
<br /><br>
<table class="mod_list" width="60%">
<tr>
<td colspan="4">
<b><center>Legenda</center></b>
</td>
</tr>
<tr>
<td>
<img src="images/icons_gif/key.png" border="0" />
</td>
<td>
Andere persoon geklikt.
</td>
<td>
<img src="images/icons_gif/key_red.png" border="0" />
</td>
<td>
Zelf geklikt.
</td>
</tr>
</table> <br>
Klik link: <a href="<?php echo $sitelink; ?>/v3/index.php?a=click&x=<?php echo $data->id; ?>">Mijn secret link</a>
<br />
<br />
<input type="text" value="<?php echo $sitelink; ?>/v3/index.php?a=click&x=<?php echo $data->id; ?>" style="width:100%; height:26px; padding-top:2px;" onclick="this.select()" />
<br>
<script language="javascript">
function selectPage(pURL,pElement){
document.location.href = pURL.replace("[#page]",pElement.value);
}
</script>
</table>
</div>
<div id="mission_4" style="display:none">
<table align="center" width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list">
<tr>
<td width="5%"></td>
<td width="45%" align="center"><strong>Maffia</strong></td>
<td> </td>
<td align="center"><strong>Familie</strong></td>
<td> </td>
<td align="center"><strong>Datum</strong></td>
</tr>
</table>
</div>
<script language="javascript">
openTab('mission_1','tab1')
</script>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
Toon Meer