예제 #1
0
파일: index.php 프로젝트: EbrahemS/SRCMS
if ($hBanditData['Introduction'] == null) {
    $hBanditData['Introduction'] = "<b>Nothing</b>";
}
if ($hHotanData['Introduction'] == null) {
    $hHotanData['Introduction'] = "<b>Nothing</b>";
}
if ($hJanganData['TaxRatio'] == null) {
    $hJanganData['TaxRatio'] = "Nothing";
}
if ($hBanditData['TaxRatio'] == null) {
    $hBanditData['TaxRatio'] = "Nothing";
}
if ($hHotanData['TaxRatio'] == null) {
    $hHotanData['TaxRatio'] = "Nothing";
}
echo "\t<table id='table-3' border='0'>\r\n\r\n\t\t<tr>\r\n\t\t<td align='center'></td>\r\n\t\t<td align='center' style='font-weight:bold;font-size:11px'>Fortress</td>\r\n\t\t<td align='center' style='font-weight:bold;font-size:11px'>Guild</td>\r\n\t\t<td align='center' style='font-weight:bold;font-size:11px'>Tax</td>\r\n\t\t</tr>\r\n\r\n\t\t<tr>\r\n\t\t<td align='center'><img src='img/fort-jangan.png' /></td>\r\n\t\t<td align='center' style='font-size:11px'>Jangan: </td>\r\n\t\t<td align='center' style='font-size:11px'>" . guild::guildNameByID($hJanganData['GuildID']) . "</td>\r\n\t\t<td align='center' style='font-weight:bold;font-size:11px'>Tax: {$hJanganData['TaxRatio']}%</td>\r\n\t\t</tr>\r\n\r\n\t\t<tr>\r\n\t\t<td align='center'><img src='img/fort-hotan.png' /></td>\r\n\t\t<td align='center' style='font-size:11px'>Hotan: </td>\r\n\t\t<td align='center' style='font-size:11px'>" . guild::guildNameByID($hHotanData['GuildID']) . "</td>\r\n\t\t<td align='center' style='font-weight:bold;font-size:11px'>Tax: {$hHotanData['TaxRatio']}%</td>\r\n\t\t</tr>\r\n\r\n\t\t<tr>\r\n\t\t<td align='center'><img src='img/fort-bandit.png' /></td>\r\n\t\t<td align='center' style='font-size:11px'>Bandit: </td>\r\n\t\t<td align='center' style='font-size:11px'>" . guild::guildNameByID($hBanditData['GuildID']) . "</td>\r\n\t\t<td align='center' style='font-weight:bold;font-size:11px'>Tax: {$hBanditData['TaxRatio']}%</td>\r\n\t\t</tr>\r\n\t\t</table>";
?>
	</span></td></tr></tbody></table></div>


		<!-- Server Info Box Start -->
		<script type="text/javascript">
		$(".xpand").click(
		function () {
		$(this).next().slideToggle(200);
		});

		</script>
		
		<script type="text/javascript"> 
		//<!-- 
예제 #2
0
파일: rank.php 프로젝트: EbrahemS/SRCMS
 $hGuild = core::$sql->getRow("select JobType from _CharTrijob where CharID='{$nCharID}'");
 $jobType = char::jobTypeByID($hGuild);
 $hData = core::$sql->fetchArray("select * from _Char where CharID='{$nCharID}'");
 if (strlen($hData['NickName16']) < 2) {
     $hData['NickName16'] = "<b>None</b>";
 }
 $ownerStr = null;
 if ($core->aConfig['allowShowCharOwner'] == 1) {
     $ownerStr = "<td>Owner account</td>\r\n\t\t\t\t\t\t\t<td><a href='?pg=viewprofile&username={$szUsername}'>{$szUsername}</td>";
 }
 echo "<table valign='top' id='table-3'  border='0' cellpadding='5' cellspacing='3'>\r\n\r\n\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t<table border='0' cellpadding='0' cellspacing='0'>\r\n\t\t\t\t\t\t\t{$ownerStr}\r\n\t\t\t\t\t\t </table><br/>";
 /*
 for character gold add this line :
 <td>Gold</td><td>$hData[RemainGold]</td><tr/> 
 */
 $nGuildName = guild::guildNameByID($hData['GuildID']);
 $nCharID = char::charIDByCharname($_GET['name']);
 core::$sql->changeDB("log");
 $charstatus = core::$sql->exec("select top 1 EventID,EventTime from  _LogEventChar where CharID = '{$nCharID}' order by EventTime DESC");
 if (core::$sql->numRows("select top 1 EventID,EventTime from  _LogEventChar where CharID = '{$nCharID}' order by EventTime DESC") == 0) {
     $StatusIS = "<img src='img/status/offline.gif' /> Offline";
 } else {
     while ($row1 = mssql_fetch_array($charstatus)) {
         $charEvent = $row1['EventID'];
         switch ($charEvent) {
             case 4:
                 $StatusIS = "<img src='img/status/online.gif' /> Online";
                 break;
             case 6:
                 $StatusIS = "<img src='img/status/offline.gif' /> Offline";
                 break;