(기분상의 이유로) <?=$value;?>를 <?=$value?> 로 수정

This commit is contained in:
2018-04-08 13:14:28 +09:00
parent 463994df42
commit fe53fb9359
19 changed files with 732 additions and 500 deletions
+4 -2
View File
@@ -51,7 +51,7 @@ $sel[$type] = "selected";
<form name=form1 method=post> <form name=form1 method=post>
정렬순서 : 정렬순서 :
<select name=type size=1> <select name=type size=1>
<option <?=$sel[0];?> value=0>상태</option> <option <?=$sel[0]?> value=0>상태</option>
</select> </select>
<input type=submit name=btn value='정렬하기'> <input type=submit name=btn value='정렬하기'>
</form> </form>
@@ -132,7 +132,9 @@ for($i=0; $i < $dipcount; $i++) {
$note .= "<font color=gray>상대측 제의: {$dip2['reserved']}</font>"; $note .= "<font color=gray>상대측 제의: {$dip2['reserved']}</font>";
} }
} }
if($note == "") { $note = "&nbsp;"; } if ($note == "") {
$note = "&nbsp;";
}
echo " echo "
<tr> <tr>
+5 -5
View File
@@ -109,13 +109,13 @@ $history = MYDB_fetch_array($result);
<tr><td colspan=5 align=center id=bg1>중 원 지 도</td></tr> <tr><td colspan=5 align=center id=bg1>중 원 지 도</td></tr>
<tr height=520> <tr height=520>
<td width=698> <td width=698>
<iframe src='map_history.php?year=<?=$year;?>&month=<?=$month;?>' width=698 height=520 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 scrolling=no> <iframe src='map_history.php?year=<?=$year?>&month=<?=$month?>' width=698 height=520 frameborder=0 marginwidth=0 marginheight=0 topmargin=0 scrolling=no>
</iframe> </iframe>
</td> </td>
<td width=98 valign=top><?=$history['nation'];?></td> <td width=98 valign=top><?=$history['nation']?></td>
<td width=78 valign=top><?=$history['power'];?></td> <td width=78 valign=top><?=$history['power']?></td>
<td width=58 valign=top><?=$history['gen'];?></td> <td width=58 valign=top><?=$history['gen']?></td>
<td width=58 valign=top><?=$history['city'];?></td> <td width=58 valign=top><?=$history['city']?></td>
</tr> </tr>
<tr><td colspan=5 align=center id=bg1>중 원 정 세</td></tr> <tr><td colspan=5 align=center id=bg1>중 원 정 세</td></tr>
<tr> <tr>
+1 -1
View File
@@ -48,7 +48,7 @@ function captureKey(e) {
</table> </table>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0> <table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<form name=form1 action=c_vote.php method=post> <form name=form1 action=c_vote.php method=post>
<tr><td colspan=3 align=center id=bg2><font size=5>설 문 조 사 (<?=$admin['develcost']*5;?>금과 추첨으로 유니크템 증정!)</font></td></tr> <tr><td colspan=3 align=center id=bg2><font size=5>설 문 조 사 (<?=$admin['develcost']*5?>금과 추첨으로 유니크템 증정!)</font></td></tr>
<?php <?php
if($session->userGrade >= 5) { if($session->userGrade >= 5) {
+57 -22
View File
@@ -21,7 +21,10 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$admin = MYDB_fetch_array($result); $admin = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']); $con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); } if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
$query = "select no from auction where no1='{$me['no']}'"; $query = "select no from auction where no1='{$me['no']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
@@ -39,8 +42,12 @@ if($session->userGrade >= 5 || ($me['special'] != 30 && $btCount < 1) || ($me['s
$btn = "hidden"; $btn = "hidden";
} }
if($msg == "") $msg = "-"; if ($msg == "") {
if($msg2 == "") $msg2 = "-"; $msg = "-";
}
if ($msg2 == "") {
$msg2 = "-";
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@@ -80,14 +87,28 @@ $chk = 0;
for ($i=0; $i < $count; $i++) { for ($i=0; $i < $count; $i++) {
$auction = MYDB_fetch_array($result); $auction = MYDB_fetch_array($result);
$itemname = GetStuffName($auction['stuff']); $itemname = GetStuffName($auction['stuff']);
$radio = ""; $alert = ""; $alert2 = ""; $radio = "";
if($auction['no1'] == $me['no']) { $radio = " disabled"; } $alert = "";
elseif($auction['no2'] > 0 && $auction['amount'] * 2 <= $auction['value'] && $auction['stuff'] == 0) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; } $alert2 = "";
elseif($auction['no2'] > 0 && $auction['topv'] <= $auction['value']) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; } if ($auction['no1'] == $me['no']) {
elseif($chk == 0) { $radio = " checked"; $chk = 1; } $radio = " disabled";
} elseif ($auction['no2'] > 0 && $auction['amount'] * 2 <= $auction['value'] && $auction['stuff'] == 0) {
$radio = " disabled";
$alert = "<font color=red>";
$alert2 = "</font>";
} elseif ($auction['no2'] > 0 && $auction['topv'] <= $auction['value']) {
$radio = " disabled";
$alert = "<font color=red>";
$alert2 = "</font>";
} elseif ($chk == 0) {
$radio = " checked";
$chk = 1;
}
$pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001; $pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001;
$pv = substr($pv, 0, 4); $pv = substr($pv, 0, 4);
if($auction['stuff'] != 0) { $pv = '-'; } if ($auction['stuff'] != 0) {
$pv = '-';
}
echo " echo "
<tr align=center> <tr align=center>
<td>{$auction['no']}</td> <td>{$auction['no']}</td>
@@ -107,13 +128,13 @@ for($i=0; $i < $count; $i++) {
?> ?>
<tr height=25> <tr height=25>
<td align=center id=bg1>등록결과</td> <td align=center id=bg1>등록결과</td>
<td colspan=10><?=ConvertLog($msg);?></td> <td colspan=10><?=ConvertLog($msg)?></td>
</tr> </tr>
<tr> <tr>
<td align=center id=bg1>입찰등록</td> <td align=center id=bg1>입찰등록</td>
<td colspan=10> <td colspan=10>
 지불할 금액: <input type=text style=color:white;background-color:black; size=6 maxlength=6 name=value>  지불할 금액: <input type=text style=color:white;background-color:black; size=6 maxlength=6 name=value>
<input type=<?=$btn;?> name=btn value='구매시도' onclick='return confirm("정말 입찰하시겠습니까?");'> <input type=<?=$btn?> name=btn value='구매시도' onclick='return confirm("정말 입찰하시겠습니까?");'>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -126,7 +147,7 @@ for($i=0; $i < $count; $i++) {
 판매량: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=amount value=1000>  판매량: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=amount value=1000>
 시작가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=cost value=500>  시작가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=cost value=500>
 즉구가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=topv value=2000>  즉구가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=topv value=2000>
<input type=<?=$btn;?> name=btn value='판매' onclick='return confirm("정말 판매하시겠습니까?");'> <input type=<?=$btn?> name=btn value='판매' onclick='return confirm("정말 판매하시겠습니까?");'>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -164,14 +185,28 @@ $chk = 0;
for ($i=0; $i < $count; $i++) { for ($i=0; $i < $count; $i++) {
$auction = MYDB_fetch_array($result); $auction = MYDB_fetch_array($result);
$itemname = GetStuffName($auction['stuff']); $itemname = GetStuffName($auction['stuff']);
$radio = ""; $alert = ""; $alert2 = ""; $radio = "";
if($auction['no1'] == $me['no']) { $radio = " disabled"; } $alert = "";
elseif($auction['no2'] > 0 && $auction['amount'] >= $auction['value'] * 2 && $auction['stuff'] == 0) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; } $alert2 = "";
elseif($auction['no2'] > 0 && $auction['topv'] >= $auction['value']) { $radio = " disabled"; $alert = "<font color=red>"; $alert2 = "</font>"; } if ($auction['no1'] == $me['no']) {
elseif($chk == 0) { $radio = " checked"; $chk = 1; } $radio = " disabled";
} elseif ($auction['no2'] > 0 && $auction['amount'] >= $auction['value'] * 2 && $auction['stuff'] == 0) {
$radio = " disabled";
$alert = "<font color=red>";
$alert2 = "</font>";
} elseif ($auction['no2'] > 0 && $auction['topv'] >= $auction['value']) {
$radio = " disabled";
$alert = "<font color=red>";
$alert2 = "</font>";
} elseif ($chk == 0) {
$radio = " checked";
$chk = 1;
}
$pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001; $pv = round($auction['value'] * 100 / $auction['amount']) / 100 + 0.001;
$pv = substr($pv, 0, 4); $pv = substr($pv, 0, 4);
if($auction['stuff'] != 0) { $pv = '-'; } if ($auction['stuff'] != 0) {
$pv = '-';
}
echo " echo "
<tr align=center> <tr align=center>
<td>{$auction['no']}</td> <td>{$auction['no']}</td>
@@ -191,13 +226,13 @@ for($i=0; $i < $count; $i++) {
?> ?>
<tr height=25> <tr height=25>
<td align=center id=bg1>등록결과</td> <td align=center id=bg1>등록결과</td>
<td colspan=10><?=ConvertLog($msg2);?></td> <td colspan=10><?=ConvertLog($msg2)?></td>
</tr> </tr>
<tr> <tr>
<td align=center id=bg1>입찰등록</td> <td align=center id=bg1>입찰등록</td>
<td colspan=10> <td colspan=10>
 수령할 금액: <input type=text style=color:white;background-color:black; size=6 maxlength=6 name=value>  수령할 금액: <input type=text style=color:white;background-color:black; size=6 maxlength=6 name=value>
<input type=<?=$btn;?> name=btn value='판매시도' onclick='return confirm("정말 입찰하시겠습니까?");'> <input type=<?=$btn?> name=btn value='판매시도' onclick='return confirm("정말 입찰하시겠습니까?");'>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -210,7 +245,7 @@ for($i=0; $i < $count; $i++) {
 구입량: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=amount value=1000>  구입량: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=amount value=1000>
 시작가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=cost value=2000>  시작가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=cost value=2000>
 즉구가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=topv value=500>  즉구가: <input type=text style=color:white;background-color:black; size=5 maxlength=5 name=topv value=500>
<input type=<?=$btn;?> name=btn value='구매' onclick='return confirm("정말 구매하시겠습니까?");'> <input type=<?=$btn?> name=btn value='구매' onclick='return confirm("정말 구매하시겠습니까?");'>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -226,7 +261,7 @@ for($i=0; $i < $count; $i++) {
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0> <table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr><td align=center id=bg2><font size=5>최 근 기 록</font></td></tr> <tr><td align=center id=bg2><font size=5>최 근 기 록</font></td></tr>
<tr><td> <tr><td>
<?=getAuctionLogRecent(20);?> <?=getAuctionLogRecent(20)?>
</td></tr> </td></tr>
<tr><td align=center id=bg2><font size=5>도 움 말</font></td></tr> <tr><td align=center id=bg2><font size=5>도 움 말</font></td></tr>
<tr><td> <tr><td>
+8 -5
View File
@@ -31,7 +31,10 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$nation = MYDB_fetch_array($result); $nation = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']); $con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); } if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
//재야인 경우 //재야인 경우
$meLevel = $me['level']; $meLevel = $me['level'];
@@ -72,10 +75,10 @@ $sel[$type] = "selected";
<form name=form1 method=post> <form name=form1 method=post>
정렬순서 : 정렬순서 :
<select name=type size=1> <select name=type size=1>
<option <?=$sel[0];?> value=0>최근턴</option> <option <?=$sel[0]?> value=0>최근턴</option>
<option <?=$sel[1];?> value=1>최근전투</option> <option <?=$sel[1]?> value=1>최근전투</option>
<option <?=$sel[2];?> value=2>장수명</option> <option <?=$sel[2]?> value=2>장수명</option>
<option <?=$sel[3];?> value=3>전투수</option> <option <?=$sel[3]?> value=3>전투수</option>
</select> </select>
<input type=submit name=btn value='정렬하기'> <input type=submit name=btn value='정렬하기'>
대상장수 : 대상장수 :
+95 -39
View File
@@ -22,7 +22,10 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$admin = MYDB_fetch_array($result); $admin = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']); $con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); } if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
switch ($admin['tnmt_type']) { switch ($admin['tnmt_type']) {
case 0: $tnmt_type = "<font color=cyan>전력전</font>"; $tp = "tot"; $tp2 = "종합"; $tp3 = "total"; break; case 0: $tnmt_type = "<font color=cyan>전력전</font>"; $tp = "tot"; $tp2 = "종합"; $tp3 = "total"; break;
@@ -38,7 +41,9 @@ $str3 = getTournamentTerm();
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<?php if($con == 1) { MessageBox("접속제한이 얼마 남지 않았습니다!"); } ?> <?php if ($con == 1) {
MessageBox("접속제한이 얼마 남지 않았습니다!");
} ?>
<head> <head>
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'> <meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<title>베팅장</title> <title>베팅장</title>
@@ -48,9 +53,9 @@ table { font-family:'맑은 고딕'; line-height:110%; }
font { font-family:'맑은 고딕'; line-height:110%; } font { font-family:'맑은 고딕'; line-height:110%; }
input { font-family:'맑은 고딕'; line-height:110%; height:20px } input { font-family:'맑은 고딕'; line-height:110%; height:20px }
select { font-family:'굴림'; line-height:100%; } select { font-family:'굴림'; line-height:100%; }
#bg0 { background-image:url(<?=$images;?>/back_walnut.jpg); } #bg0 { background-image:url(<?=$images?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=$images;?>/back_green.jpg); } #bg1 { background-image:url(<?=$images?>/back_green.jpg); }
#bg2 { background-image:url(<?=$images;?>/back_blue.jpg); } #bg2 { background-image:url(<?=$images?>/back_blue.jpg); }
</style> </style>
</head> </head>
@@ -61,8 +66,8 @@ select { font-family:'굴림'; line-height:100%; }
</table> </table>
<table align=center width=1120 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:10;word-break:break-all; id=bg0> <table align=center width=1120 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:10;word-break:break-all; id=bg0>
<tr><td colspan=16><input type=button value='갱신' onclick='location.reload()'></td></tr> <tr><td colspan=16><input type=button value='갱신' onclick='location.reload()'></td></tr>
<tr><td colspan=16 align=center><font color=white size=6><?=$tnmt_type;?> (<?=$str1.", ".$str2.", ".$str3;?>)</font></td></tr> <tr><td colspan=16 align=center><font color=white size=6><?=$tnmt_type?> (<?=$str1.", ".$str2.", ".$str3?>)</font></td></tr>
<tr><td height=50 colspan=16 align=center id=bg2><font color=limegreen size=6>16강 상황</font><br><font color=orange size=3>(전체 금액 : <?=$admin['bet'];?> / 내 투자 금액 : <?=$me['bet'];?>)</font></td></tr> <tr><td height=50 colspan=16 align=center id=bg2><font color=limegreen size=6>16강 상황</font><br><font color=orange size=3>(전체 금액 : <?=$admin['bet']?> / 내 투자 금액 : <?=$me['bet']?>)</font></td></tr>
</table> </table>
<table align=center width=1120 border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:10;word-break:break-all; id=bg0> <table align=center width=1120 border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:10;word-break:break-all; id=bg0>
<tr align=center><td height=10 colspan=16></td></tr> <tr align=center><td height=10 colspan=16></td></tr>
@@ -72,9 +77,14 @@ $query = "select npc,name,win from tournament where grp>=60 order by grp, grp_no
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for ($i=0; $i < 1; $i++) { for ($i=0; $i < 1; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if ($general['npc'] >= 2) {
$general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
echo "<td colspan=16>{$general['name']}</td>"; echo "<td colspan=16>{$general['name']}</td>";
} }
@@ -84,14 +94,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=50 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=50 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 1; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 1; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 2; $i++) { for ($i=0; $i < 2; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 1; $i++) { for ($i=0; $i < 1; $i++) {
@@ -114,14 +135,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=40 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=40 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 2; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 2; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 4; $i++) { for ($i=0; $i < 4; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 2; $i++) { for ($i=0; $i < 2; $i++) {
@@ -144,14 +176,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=30 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=30 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 4; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 4; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 8; $i++) { for ($i=0; $i < 8; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 4; $i++) { for ($i=0; $i < 4; $i++) {
@@ -174,14 +217,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=20 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=20 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 8; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 8; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 16; $i++) { for ($i=0; $i < 16; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 8; $i++) { for ($i=0; $i < 8; $i++) {
@@ -207,7 +261,9 @@ for($i=0; $i < 16; $i++) {
for ($i=0; $i < 16; $i++) { for ($i=0; $i < 16; $i++) {
$bet[$i] = @round($admin['bet'] / $admin["bet{$i}"], 2); $bet[$i] = @round($admin['bet'] / $admin["bet{$i}"], 2);
if($bet[$i] == 0) { $bet[$i] = "∞"; } if ($bet[$i] == 0) {
$bet[$i] = "∞";
}
} }
for ($i=0; $i < 16; $i++) { for ($i=0; $i < 16; $i++) {
@@ -301,10 +357,10 @@ if($admin['tournament'] == 6) {
<tr align=center> <tr align=center>
<?php <?php
$type1 = Array("전 력 전", "통 솔 전", "일 기 토", "설 전"); $type1 = array("전 력 전", "통 솔 전", "일 기 토", "설 전");
$type2 = Array("종합", "통솔", "무력", "지력"); $type2 = array("종합", "통솔", "무력", "지력");
$type3 = Array("tt", "tl", "tp", "ti"); $type3 = array("tt", "tl", "tp", "ti");
$type4 = Array("total", "leader", "power", "intel"); $type4 = array("total", "leader", "power", "intel");
for ($i=0; $i < 4; $i++) { for ($i=0; $i < 4; $i++) {
$grp = $i; $grp = $i;
+29 -13
View File
@@ -25,15 +25,23 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$nation = MYDB_fetch_array($result); $nation = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']); $con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); } if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
if ($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) { if ($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) {
echo "수뇌부가 아니거나 사관년도가 부족합니다."; echo "수뇌부가 아니거나 사관년도가 부족합니다.";
exit(); exit();
} }
if($me['level'] >= 5) { $btn = "submit"; $read = ""; } if ($me['level'] >= 5) {
else { $btn = "hidden"; $read = "readonly"; } $btn = "submit";
$read = "";
} else {
$btn = "hidden";
$read = "readonly";
}
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
@@ -149,7 +157,9 @@ for($i=0; $i < $nationcount; $i++) {
$note .= "<font color=limegreen>상대측 제의</font>: ".$dip2['reserved']; $note .= "<font color=limegreen>상대측 제의</font>: ".$dip2['reserved'];
} }
} }
if($note == "") { $note = "&nbsp;"; } if ($note == "") {
$note = "&nbsp;";
}
echo " echo "
<tr> <tr>
@@ -197,18 +207,24 @@ $budgetgold = $nation['gold'] + $goldincome - $goldoutcome + $deadIncome;
$budgetrice = $nation['rice'] + $riceincome - $riceoutcome; $budgetrice = $nation['rice'] + $riceincome - $riceoutcome;
$budgetgolddiff = $goldincome - $goldoutcome + $deadIncome; $budgetgolddiff = $goldincome - $goldoutcome + $deadIncome;
$budgetricediff = $riceincome - $riceoutcome; $budgetricediff = $riceincome - $riceoutcome;
if($budgetgolddiff > 0) { $budgetgolddiff = "+{$budgetgolddiff}"; } if ($budgetgolddiff > 0) {
else { $budgetgolddiff = "$budgetgolddiff"; } $budgetgolddiff = "+{$budgetgolddiff}";
if($budgetricediff > 0) { $budgetricediff = "+{$budgetricediff}"; } } else {
else { $budgetricediff = "$budgetricediff"; } $budgetgolddiff = "$budgetgolddiff";
}
if ($budgetricediff > 0) {
$budgetricediff = "+{$budgetricediff}";
} else {
$budgetricediff = "$budgetricediff";
}
?> ?>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0> <table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<form name=form1 method=post action=c_dipcenter.php> <form name=form1 method=post action=c_dipcenter.php>
<tr><td colspan=2 height=10></td></tr> <tr><td colspan=2 height=10></td></tr>
<tr><td colspan=2 align=center bgcolor=orange>국 가 방 침 &amp; 임관 권유 메세지</td></tr> <tr><td colspan=2 align=center bgcolor=orange>국 가 방 침 &amp; 임관 권유 메세지</td></tr>
<tr><td colspan=2 id=bg1>국가 방침 <input type=text <?=$read;?> maxlength=500 style=color:white;background-color:black;width:830; name=msg value='<?=$nation['msg'];?>'><input type=<?=$btn;?> name=btn value=국가방침></td></tr> <tr><td colspan=2 id=bg1>국가 방침 <input type=text <?=$read?> maxlength=500 style=color:white;background-color:black;width:830; name=msg value='<?=$nation['msg']?>'><input type=<?=$btn?> name=btn value=국가방침></td></tr>
<tr><td colspan=2 id=bg1>임관 권유 <input type=text <?=$read;?> maxlength=500 style=color:white;background-color:black;width:830; name=scoutmsg value='<?=$nation['scoutmsg'];?>'><input type=<?=$btn;?> name=btn value=임관권유></td></tr> <tr><td colspan=2 id=bg1>임관 권유 <input type=text <?=$read?> maxlength=500 style=color:white;background-color:black;width:830; name=scoutmsg value='<?=$nation['scoutmsg']?>'><input type=<?=$btn?> name=btn value=임관권유></td></tr>
<tr><td colspan=2>900 x 200px 넘는 크기를 점유할 시 통보없이 제한될 수 있습니다.</td></tr> <tr><td colspan=2>900 x 200px 넘는 크기를 점유할 시 통보없이 제한될 수 있습니다.</td></tr>
<tr><td colspan=2 height=10></td></tr> <tr><td colspan=2 height=10></td></tr>
<tr><td colspan=2 align=center bgcolor=green>예 산 &amp; 정 책</td></tr> <tr><td colspan=2 align=center bgcolor=green>예 산 &amp; 정 책</td></tr>
@@ -254,13 +270,13 @@ echo "
?> ?>
<tr> <tr>
<td align=right id=bg1>세율 (5 ~ 30%)&nbsp;&nbsp;&nbsp;</td> <td align=right id=bg1>세율 (5 ~ 30%)&nbsp;&nbsp;&nbsp;</td>
<td align=center><input type=text <?=$read;?> name=rate style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=<?=$nation['rate']?>>% <input type=<?=$btn;?> name=btn value=세율></td> <td align=center><input type=text <?=$read?> name=rate style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=<?=$nation['rate']?>>% <input type=<?=$btn?> name=btn value=세율></td>
<td align=right id=bg1>봉급 지급율 (20 ~ 200%)&nbsp;&nbsp;&nbsp;</td> <td align=right id=bg1>봉급 지급율 (20 ~ 200%)&nbsp;&nbsp;&nbsp;</td>
<td align=center><input type=text <?=$read;?> name=bill style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=<?=$nation['bill']?>>% <input type=<?=$btn;?> name=btn value=지급율></td> <td align=center><input type=text <?=$read?> name=bill style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=<?=$nation['bill']?>>% <input type=<?=$btn?> name=btn value=지급율></td>
</tr> </tr>
<tr> <tr>
<td align=right id=bg1>기밀 권한 (1 ~ 99년)&nbsp;&nbsp;&nbsp;</td> <td align=right id=bg1>기밀 권한 (1 ~ 99년)&nbsp;&nbsp;&nbsp;</td>
<td align=center><input type=text <?=$read;?> name=secretlimit style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=<?=$nation['secretlimit']?>>년 <input type=<?=$btn;?> name=btn value=기밀권한></td> <td align=center><input type=text <?=$read?> name=secretlimit style=text-align:right;color:white;background-color:black; size=3 maxlength=3 value=<?=$nation['secretlimit']?>>년 <input type=<?=$btn?> name=btn value=기밀권한></td>
<td align=right id=bg1>임관&전쟁 변경 가능</td> <td align=right id=bg1>임관&전쟁 변경 가능</td>
<td align=center>무제한</td> <td align=center>무제한</td>
</tr> </tr>
+2 -2
View File
@@ -80,7 +80,7 @@ $(function(){
</table> </table>
<br> <br>
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0> <table align=center width=1000 border=1 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr><td colspan=<?=$nationcount+1;?> align=center bgcolor=blue>외 교 현 황</td></tr> <tr><td colspan=<?=$nationcount+1?> align=center bgcolor=blue>외 교 현 황</td></tr>
<?php <?php
echo " echo "
<tr> <tr>
@@ -144,7 +144,7 @@ for($i=0; $i < $nationcount; $i++) {
"; ";
} }
?> ?>
<tr><td colspan=<?=$nationcount+1;?> align=center>불가침 : <font color=limegreen>@</font>, 통합 : <font color=cyan>○</font>, 합병 : <font color=skyblue>◎</font>, 통상 : ㆍ, 선포 : <font color=magenta>▲</font>, 교전 : <font color=red>★</font></td></tr> <tr><td colspan=<?=$nationcount+1?> align=center>불가침 : <font color=limegreen>@</font>, 통합 : <font color=cyan>○</font>, 합병 : <font color=skyblue>◎</font>, 통상 : ㆍ, 선포 : <font color=magenta>▲</font>, 교전 : <font color=red>★</font></td></tr>
</table> </table>
<?php <?php
$query = "select city,name,conflict,conflict2 from city where conflict like '%|%'"; $query = "select city,name,conflict,conflict2 from city where conflict like '%|%'";
+22 -13
View File
@@ -25,7 +25,10 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$nation = MYDB_fetch_array($result); $nation = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']); $con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); } if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
if ($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) { if ($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretlimit'])) {
echo "수뇌부가 아니거나 사관년도가 부족합니다."; echo "수뇌부가 아니거나 사관년도가 부족합니다.";
@@ -40,7 +43,9 @@ $sel[$type] = "selected";
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<?php if($con == 1) { MessageBox("접속제한이 얼마 남지 않았습니다!"); } ?> <?php if ($con == 1) {
MessageBox("접속제한이 얼마 남지 않았습니다!");
} ?>
<head> <head>
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'> <meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<title>암행부</title> <title>암행부</title>
@@ -53,14 +58,14 @@ $sel[$type] = "selected";
<tr><td>암 행 부<br><?=closeButton()?></td></tr> <tr><td>암 행 부<br><?=closeButton()?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 : <tr><td><form name=form1 method=post>정렬순서 :
<select name=type size=1> <select name=type size=1>
<option <?=$sel[1];?> value=1>자금</option> <option <?=$sel[1]?> value=1>자금</option>
<option <?=$sel[2];?> value=2>군량</option> <option <?=$sel[2]?> value=2>군량</option>
<option <?=$sel[3];?> value=3>도시</option> <option <?=$sel[3]?> value=3>도시</option>
<option <?=$sel[4];?> value=4>병종</option> <option <?=$sel[4]?> value=4>병종</option>
<option <?=$sel[5];?> value=5>병사</option> <option <?=$sel[5]?> value=5>병사</option>
<option <?=$sel[6];?> value=6>삭제턴</option> <option <?=$sel[6]?> value=6>삭제턴</option>
<option <?=$sel[7];?> value=7>턴</option> <option <?=$sel[7]?> value=7>턴</option>
<option <?=$sel[8];?> value=8>부대</option> <option <?=$sel[8]?> value=8>부대</option>
</select> </select>
<input type=submit value='정렬하기'></form> <input type=submit value='정렬하기'></form>
</td></tr> </td></tr>
@@ -137,9 +142,13 @@ for($j=0; $j < $gencount; $j++) {
$intel = "{$general['intel']}"; $intel = "{$general['intel']}";
} }
if($general['npc'] >= 2) { $name = "<font color=cyan>{$general['name']}</font>"; } if ($general['npc'] >= 2) {
elseif($general['npc'] == 1) { $name = "<font color=skyblue>{$general['name']}</font>"; } $name = "<font color=cyan>{$general['name']}</font>";
else { $name = "{$general['name']}"; } } elseif ($general['npc'] == 1) {
$name = "<font color=skyblue>{$general['name']}</font>";
} else {
$name = "{$general['name']}";
}
switch ($general['mode']) { switch ($general['mode']) {
case 0: $mode = "×"; break; case 0: $mode = "×"; break;
+34 -20
View File
@@ -42,18 +42,18 @@ $sel[$type] = "selected";
<tr><td>세 력 도 시<br><?=backButton()?></td></tr> <tr><td>세 력 도 시<br><?=backButton()?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 : <tr><td><form name=form1 method=post>정렬순서 :
<select name=type size=1> <select name=type size=1>
<option <?=$sel[1];?> value=1>기본</option> <option <?=$sel[1]?> value=1>기본</option>
<option <?=$sel[2];?> value=2>인구</option> <option <?=$sel[2]?> value=2>인구</option>
<option <?=$sel[3];?> value=3>인구율</option> <option <?=$sel[3]?> value=3>인구율</option>
<option <?=$sel[4];?> value=4>민심</option> <option <?=$sel[4]?> value=4>민심</option>
<option <?=$sel[5];?> value=5>농업</option> <option <?=$sel[5]?> value=5>농업</option>
<option <?=$sel[6];?> value=6>상업</option> <option <?=$sel[6]?> value=6>상업</option>
<option <?=$sel[7];?> value=7>치안</option> <option <?=$sel[7]?> value=7>치안</option>
<option <?=$sel[8];?> value=8>수비</option> <option <?=$sel[8]?> value=8>수비</option>
<option <?=$sel[9];?> value=9>성벽</option> <option <?=$sel[9]?> value=9>성벽</option>
<option <?=$sel[10];?> value=10>시세</option> <option <?=$sel[10]?> value=10>시세</option>
<option <?=$sel[11];?> value=11>지역</option> <option <?=$sel[11]?> value=11>지역</option>
<option <?=$sel[12];?> value=12>규모</option> <option <?=$sel[12]?> value=12>규모</option>
</select> </select>
<input type=submit value='정렬하기'></form> <input type=submit value='정렬하기'></form>
</td></tr> </td></tr>
@@ -84,7 +84,9 @@ $citycount = MYDB_num_rows($cityresult);
for ($j=0; $j < $citycount; $j++) { for ($j=0; $j < $citycount; $j++) {
$city = MYDB_fetch_array($cityresult); $city = MYDB_fetch_array($cityresult);
if($city['city'] == $nation['capital']) { $city['name'] = "<font color=cyan>[{$city['name']}]</font>"; } if ($city['city'] == $nation['capital']) {
$city['name'] = "<font color=cyan>[{$city['name']}]</font>";
}
$query = "select name from general where no='{$city['gen1']}'"; // 태수 $query = "select name from general where no='{$city['gen1']}'"; // 태수
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$gen1 = MYDB_fetch_array($genresult); $gen1 = MYDB_fetch_array($genresult);
@@ -136,11 +138,17 @@ for($j=0; $j < $citycount; $j++) {
<td align=center id=bg1>인구</td> <td align=center id=bg1>인구</td>
<td align=center>".round($city['pop']/$city['pop2']*100, 2)." %</td> <td align=center>".round($city['pop']/$city['pop2']*100, 2)." %</td>
<td align=center id=bg1>태수</td> <td align=center id=bg1>태수</td>
<td align=center>";echo $gen1['name']==''?"-":"{$gen1['name']}";echo "</td> <td align=center>";
echo $gen1['name']==''?"-":"{$gen1['name']}";
echo "</td>
<td align=center id=bg1>군사</td> <td align=center id=bg1>군사</td>
<td align=center>";echo $gen2['name']==''?"-":"{$gen2['name']}";echo "</td> <td align=center>";
echo $gen2['name']==''?"-":"{$gen2['name']}";
echo "</td>
<td align=center id=bg1>시중</td> <td align=center id=bg1>시중</td>
<td align=center>";echo $gen3['name']==''?"-":"{$gen3['name']}";echo "</td> <td align=center>";
echo $gen3['name']==''?"-":"{$gen3['name']}";
echo "</td>
</tr> </tr>
<tr> <tr>
<td align=center id=bg1>장수</td> <td align=center id=bg1>장수</td>
@@ -148,12 +156,18 @@ for($j=0; $j < $citycount; $j++) {
$query = "select npc,name from general where city='{$city['city']}' and nation='{$me['nation']}'"; // 장수 목록 $query = "select npc,name from general where city='{$city['city']}' and nation='{$me['nation']}'"; // 장수 목록
$genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $genresult = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$gencount = MYDB_num_rows($genresult); $gencount = MYDB_num_rows($genresult);
if($gencount == 0) echo "-"; if ($gencount == 0) {
echo "-";
}
for ($i=0; $i < $gencount; $i++) { for ($i=0; $i < $gencount; $i++) {
$general = MYDB_fetch_array($genresult); $general = MYDB_fetch_array($genresult);
if($general['npc'] >= 2) { echo "<font color=cyan>{$general['name']}, </font>"; } if ($general['npc'] >= 2) {
elseif($general['npc'] == 1) { echo "<font color=skyblue>{$general['name']}, </font>"; } echo "<font color=cyan>{$general['name']}, </font>";
else { echo "{$general['name']}, "; } } elseif ($general['npc'] == 1) {
echo "<font color=skyblue>{$general['name']}, </font>";
} else {
echo "{$general['name']}, ";
}
} }
echo " echo "
</td> </td>
+15 -15
View File
@@ -43,21 +43,21 @@ $sel[$type] = "selected";
<tr><td>세 력 장 수<br><?=backButton()?></td></tr> <tr><td>세 력 장 수<br><?=backButton()?></td></tr>
<tr><td><form name=form1 method=post>정렬순서 : <tr><td><form name=form1 method=post>정렬순서 :
<select name=type size=1> <select name=type size=1>
<option <?=$sel[1];?> value=1>관직</option> <option <?=$sel[1]?> value=1>관직</option>
<option <?=$sel[2];?> value=2>계급</option> <option <?=$sel[2]?> value=2>계급</option>
<option <?=$sel[3];?> value=3>명성</option> <option <?=$sel[3]?> value=3>명성</option>
<option <?=$sel[4];?> value=4>통솔</option> <option <?=$sel[4]?> value=4>통솔</option>
<option <?=$sel[5];?> value=5>무력</option> <option <?=$sel[5]?> value=5>무력</option>
<option <?=$sel[6];?> value=6>지력</option> <option <?=$sel[6]?> value=6>지력</option>
<option <?=$sel[7];?> value=7>자금</option> <option <?=$sel[7]?> value=7>자금</option>
<option <?=$sel[8];?> value=8>군량</option> <option <?=$sel[8]?> value=8>군량</option>
<option <?=$sel[9];?> value=9>병사</option> <option <?=$sel[9]?> value=9>병사</option>
<option <?=$sel[10];?> value=10>벌점</option> <option <?=$sel[10]?> value=10>벌점</option>
<option <?=$sel[11];?> value=11>성격</option> <option <?=$sel[11]?> value=11>성격</option>
<option <?=$sel[12];?> value=12>내특</option> <option <?=$sel[12]?> value=12>내특</option>
<option <?=$sel[13];?> value=13>전특</option> <option <?=$sel[13]?> value=13>전특</option>
<option <?=$sel[14];?> value=14>사관</option> <option <?=$sel[14]?> value=14>사관</option>
<option <?=$sel[15];?> value=15>NPC</option> <option <?=$sel[15]?> value=15>NPC</option>
</select> </select>
<input type=submit value='정렬하기'></form> <input type=submit value='정렬하기'></form>
</td></tr> </td></tr>
+3 -3
View File
@@ -86,11 +86,11 @@ function go(type) {
<input type=radio name=mode value=1 <?=$me['mode']==1?"checked":""; ?>>○(훈사60) <input type=radio name=mode value=1 <?=$me['mode']==1?"checked":""; ?>>○(훈사60)
<input type=radio name=mode value=0 <?=$me['mode']==0?"checked":""; ?>>× <input type=radio name=mode value=0 <?=$me['mode']==0?"checked":""; ?>>×
】<br><br> 】<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;<input type=<?=$submit;?> name=btn style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:160;height:30;font-size:13px; value=설정저장><br> &nbsp;&nbsp;&nbsp;&nbsp;<input type=<?=$submit?> name=btn style=background-color:<?=GameConst::$basecolor2?>;color:white;width:160;height:30;font-size:13px; value=설정저장><br>
&nbsp;&nbsp;&nbsp;&nbsp;∞<font color=orange>설정저장은 이달중 <?=$me['myset'];?>회 남았습니다.</font><br><br> &nbsp;&nbsp;&nbsp;&nbsp;∞<font color=orange>설정저장은 이달중 <?=$me['myset']?>회 남았습니다.</font><br><br>
</form> </form>
&nbsp;&nbsp;&nbsp;&nbsp;휴 가 신 청<br> &nbsp;&nbsp;&nbsp;&nbsp;휴 가 신 청<br>
&nbsp;&nbsp;&nbsp;&nbsp;<input type=button style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:160;height:30;font-size:13px; value=휴가신청 onclick='go(0)'> &nbsp;&nbsp;&nbsp;&nbsp;<input type=button style=background-color:<?=GameConst::$basecolor2?>;color:white;width:160;height:30;font-size:13px; value=휴가신청 onclick='go(0)'>
</td> </td>
</tr> </tr>
<tr> <tr>
+112 -45
View File
@@ -22,7 +22,10 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$admin = MYDB_fetch_array($result); $admin = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']); $con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); } if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
switch ($admin['tnmt_type']) { switch ($admin['tnmt_type']) {
case 0: $tnmt_type = "<font color=cyan>전력전</font>"; $tp = "tot"; $tp2 = "종합"; $tp3 = "total"; break; case 0: $tnmt_type = "<font color=cyan>전력전</font>"; $tp = "tot"; $tp2 = "종합"; $tp3 = "total"; break;
@@ -34,7 +37,9 @@ case 3: $tnmt_type = "<font color=cyan>설전</font>"; $tp = "itl"; $tp2 = "
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<?php if($con == 1) { MessageBox("접속제한이 얼마 남지 않았습니다! 제한량이 모자라다면 참여를 해보세요^^"); } ?> <?php if ($con == 1) {
MessageBox("접속제한이 얼마 남지 않았습니다! 제한량이 모자라다면 참여를 해보세요^^");
} ?>
<head> <head>
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'> <meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<title>토너먼트</title> <title>토너먼트</title>
@@ -44,9 +49,9 @@ table { font-family:'맑은 고딕'; line-height:110%; }
font { font-family:'맑은 고딕'; line-height:110%; } font { font-family:'맑은 고딕'; line-height:110%; }
input { font-family:'맑은 고딕'; line-height:110%; height:20px } input { font-family:'맑은 고딕'; line-height:110%; height:20px }
select { font-family:'굴림'; line-height:100%; } select { font-family:'굴림'; line-height:100%; }
#bg0 { background-image:url(<?=$images;?>/back_walnut.jpg); } #bg0 { background-image:url(<?=$images?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=$images;?>/back_green.jpg); } #bg1 { background-image:url(<?=$images?>/back_green.jpg); }
#bg2 { background-image:url(<?=$images;?>/back_blue.jpg); } #bg2 { background-image:url(<?=$images?>/back_blue.jpg); }
</style> </style>
</head> </head>
@@ -106,8 +111,8 @@ if($session->userGrade >= 5) {
</select> </select>
<input type=submit name=btn value='자동개최설정'> <input type=submit name=btn value='자동개최설정'>
<input type=submit name=btn value='포상'> <input type=submit name=btn value='포상'>
<input type=submit name=btn value='회수'>"; } <input type=submit name=btn value='회수'>";
else { } else {
echo "<input type=submit name=btn value='중단' onclick='return confirm(\"진짜 중단하시겠습니까?\")'>"; echo "<input type=submit name=btn value='중단' onclick='return confirm(\"진짜 중단하시겠습니까?\")'>";
} }
@@ -121,10 +126,15 @@ if($session->userGrade >= 5) {
for ($i=0; $i < $genCount; $i++) { for ($i=0; $i < $genCount; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['npc'] >= 2) { $npc = "cyan"; } if ($general['npc'] >= 2) {
elseif($general['npc'] == 1) { $npc = "skyblue"; } $npc = "cyan";
elseif($general['tnmt'] > 0) { $npc = "blue"; } } elseif ($general['npc'] == 1) {
else { $npc = "white"; } $npc = "skyblue";
} elseif ($general['tnmt'] > 0) {
$npc = "blue";
} else {
$npc = "white";
}
echo "<option style=color:{$npc}; value={$general['no']}>[{$general[$tp3]}]{$general['name']}</option>"; echo "<option style=color:{$npc}; value={$general['no']}>[{$general[$tp3]}]{$general['name']}</option>";
} }
echo " echo "
@@ -165,8 +175,8 @@ $str1 = getTournament($admin['tournament']);
$str2 = getTournamentTime(); $str2 = getTournamentTime();
$str3 = getTournamentTerm(); $str3 = getTournamentTerm();
?> ?>
<tr><td colspan=8>운영자 메세지 : <font color=orange size=5><?=$admin['tnmt_msg'];?></font></td></tr> <tr><td colspan=8>운영자 메세지 : <font color=orange size=5><?=$admin['tnmt_msg']?></font></td></tr>
<tr><td colspan=8 align=center><font color=white size=6><?=$tnmt_type;?> (<?=$str1.", ".$str2.", ".$str3;?>)</font></td></tr> <tr><td colspan=8 align=center><font color=white size=6><?=$tnmt_type?> (<?=$str1.", ".$str2.", ".$str3?>)</font></td></tr>
<tr><td colspan=8 align=center id=bg2><font color=magenta size=5>16강 승자전</font></td></tr> <tr><td colspan=8 align=center id=bg2><font color=magenta size=5>16강 승자전</font></td></tr>
<tr><td height=10 colspan=8 align=center></td></tr> <tr><td height=10 colspan=8 align=center></td></tr>
<?php <?php
@@ -181,9 +191,14 @@ $query = "select npc,name,win from tournament where grp>=60 order by grp, grp_no
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for ($i=0; $i < 1; $i++) { for ($i=0; $i < 1; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if ($general['npc'] >= 2) {
$general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
echo "<td colspan=16>{$general['name']}</td>"; echo "<td colspan=16>{$general['name']}</td>";
} }
@@ -193,14 +208,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=50 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=50 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 1; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 1; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 2; $i++) { for ($i=0; $i < 2; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 1; $i++) { for ($i=0; $i < 1; $i++) {
@@ -223,14 +249,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=40 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=40 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 2; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 2; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 4; $i++) { for ($i=0; $i < 4; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 2; $i++) { for ($i=0; $i < 2; $i++) {
@@ -253,14 +290,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=30 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=30 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 4; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 4; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 8; $i++) { for ($i=0; $i < 8; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 4; $i++) { for ($i=0; $i < 4; $i++) {
@@ -283,14 +331,25 @@ echo "
$query = "select npc,name,win from tournament where grp>=20 order by grp, grp_no"; $query = "select npc,name,win from tournament where grp>=20 order by grp, grp_no";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
for($i=0; $i < 8; $i++) { $cent[$i] = "<font color=white>"; } for ($i=0; $i < 8; $i++) {
$cent[$i] = "<font color=white>";
}
for ($i=0; $i < 16; $i++) { for ($i=0; $i < 16; $i++) {
$general = MYDB_fetch_array($result); $general = MYDB_fetch_array($result);
if($general['name'] == "") { $general['name'] = "-"; } if ($general['name'] == "") {
if($general['npc'] >= 2) { $general['name'] = "<font color=cyan>".$general['name']."</font>"; } $general['name'] = "-";
elseif($general['npc'] == 1) { $general['name'] = "<font color=skyblue>".$general['name']."</font>"; } }
if($general['win'] > 0) { $line[$i] = "<font color=red>"; $cent[floor($i/2)] = "<font color=red>"; } if ($general['npc'] >= 2) {
else { $line[$i] = "<font color=white>"; } $general['name'] = "<font color=cyan>".$general['name']."</font>";
} elseif ($general['npc'] == 1) {
$general['name'] = "<font color=skyblue>".$general['name']."</font>";
}
if ($general['win'] > 0) {
$line[$i] = "<font color=red>";
$cent[floor($i/2)] = "<font color=red>";
} else {
$line[$i] = "<font color=white>";
}
$gen[$i] = $general['name']; $gen[$i] = $general['name'];
} }
for ($i=0; $i < 8; $i++) { for ($i=0; $i < 8; $i++) {
@@ -315,7 +374,9 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$betting = MYDB_fetch_array($result); $betting = MYDB_fetch_array($result);
for ($i=0; $i < 16; $i++) { for ($i=0; $i < 16; $i++) {
$bet[$i] = @round($betting['bet'] / $betting["bet{$i}"], 2); $bet[$i] = @round($betting['bet'] / $betting["bet{$i}"], 2);
if($bet[$i] == 0) { $bet[$i] = "∞"; } if ($bet[$i] == 0) {
$bet[$i] = "∞";
}
} }
echo " echo "
@@ -333,13 +394,15 @@ echo "
</td> </td>
</tr>"; </tr>";
if($admin['tournament'] >= 7 || $admin['tournament'] == 0) { printFighting($admin['tournament'], $admin['phase']); } if ($admin['tournament'] >= 7 || $admin['tournament'] == 0) {
printFighting($admin['tournament'], $admin['phase']);
}
echo " echo "
<tr><td height=10 colspan=8 align=center></td></tr> <tr><td height=10 colspan=8 align=center></td></tr>
<tr><td colspan=8 align=center id=bg2><font color=orange size=5>조별 본선 순위</font></td></tr> <tr><td colspan=8 align=center id=bg2><font color=orange size=5>조별 본선 순위</font></td></tr>
<tr>"; <tr>";
$num = Array("一", "二", "三", "四", "五", "六", "七", "八"); $num = array("一", "二", "三", "四", "五", "六", "七", "八");
for ($i=0; $i < 8; $i++) { for ($i=0; $i < 8; $i++) {
$grp = $i + 10; $grp = $i + 10;
@@ -360,7 +423,9 @@ for($i=0; $i < 8; $i++) {
</td>"; </td>";
} }
echo "</tr>"; echo "</tr>";
if($admin['tournament'] == 4 || $admin['tournament'] == 5) { printFighting($admin['tournament'], $admin['phase']); } if ($admin['tournament'] == 4 || $admin['tournament'] == 5) {
printFighting($admin['tournament'], $admin['phase']);
}
echo " echo "
<tr><td colspan=8 align=center id=bg2><font color=yellow size=5>조별 예선 순위</font></td></tr> <tr><td colspan=8 align=center id=bg2><font color=yellow size=5>조별 예선 순위</font></td></tr>
<tr>"; <tr>";
@@ -384,7 +449,9 @@ for($i=0; $i < 8; $i++) {
</td>"; </td>";
} }
if($admin['tournament'] == 2 || $admin['tournament'] == 3) { printFighting($admin['tournament'], $admin['phase']); } if ($admin['tournament'] == 2 || $admin['tournament'] == 3) {
printFighting($admin['tournament'], $admin['phase']);
}
?> ?>
</tr> </tr>
+59 -25
View File
@@ -54,7 +54,10 @@ $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""
$plock = MYDB_fetch_array($result); $plock = MYDB_fetch_array($result);
$con = checkLimit($me['con'], $admin['conlimit']); $con = checkLimit($me['con'], $admin['conlimit']);
if($con >= 2) { printLimitMsg($me['turntime']); exit(); } if ($con >= 2) {
printLimitMsg($me['turntime']);
exit();
}
$scenario = $admin['scenario_text']; $scenario = $admin['scenario_text'];
?> ?>
@@ -89,16 +92,28 @@ $(function(){
<table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13px;word-break:break-all; id=bg0> <table align=center width=1000 border=1 cellspacing=0 cellpadding=0 style=font-size:13px;word-break:break-all; id=bg0>
<tr><td colspan=5><?=allButton()?></td></tr> <tr><td colspan=5><?=allButton()?></td></tr>
<tr height=50> <tr height=50>
<td colspan=5 align=center><font size=4>삼국지 모의전투 PHP 유기체서버 (<font color=cyan><?=$scenario;?></font>)</font></td> <td colspan=5 align=center><font size=4>삼국지 모의전투 PHP 유기체서버 (<font color=cyan><?=$scenario?></font>)</font></td>
</tr> </tr>
<?php <?php
$valid = 0; $valid = 0;
if($admin['extended_general'] == 0) { $extend = "표준"; } if ($admin['extended_general'] == 0) {
else { $extend = "확장"; $valid = 1; } $extend = "표준";
if($admin['fiction'] == 0) { $fiction = "사실"; } } else {
else { $fiction = "가상"; $valid = 1; } $extend = "확장";
if($admin['npcmode'] == 0) { $npcmode = "불가능"; } $valid = 1;
else { $npcmode = "가능"; $valid = 1; } }
if ($admin['fiction'] == 0) {
$fiction = "사실";
} else {
$fiction = "가상";
$valid = 1;
}
if ($admin['npcmode'] == 0) {
$npcmode = "불가능";
} else {
$npcmode = "가능";
$valid = 1;
}
$color = "cyan"; $color = "cyan";
if ($valid == 1) { if ($valid == 1) {
echo " echo "
@@ -113,15 +128,18 @@ if($valid == 1) {
<tr height=30> <tr height=30>
<td width=198 align=center><?php info(2); ?></td> <td width=198 align=center><?php info(2); ?></td>
<td width=198 align=center>전체 접속자 수 : <?=$admin['online'];?> 명</td> <td width=198 align=center>전체 접속자 수 : <?=$admin['online']?> 명</td>
<td width=198 align=center>턴당 갱신횟수 : <?=$admin['conlimit'];?>회</td> <td width=198 align=center>턴당 갱신횟수 : <?=$admin['conlimit']?>회</td>
<td width=398 colspan=2 align=center><?php info(3); ?></td> <td width=398 colspan=2 align=center><?php info(3); ?></td>
</tr> </tr>
<tr height=30> <tr height=30>
<td align=center> <td align=center>
<?php <?php
if($plock['plock'] == 0) { echo "<marquee scrollamount=2><font color=cyan>서버 가동중</font></marquee>"; } if ($plock['plock'] == 0) {
else { echo "<font color=magenta>서버 동중</font>"; } echo "<marquee scrollamount=2><font color=cyan>서버 동중</font></marquee>";
} else {
echo "<font color=magenta>서버 동결중</font>";
}
echo " echo "
</td> </td>
@@ -136,8 +154,11 @@ case 3: $str = "설전"; break;
} }
$str2 = getTournament($admin['tournament']); $str2 = getTournament($admin['tournament']);
$str3 = getTournamentTime(); $str3 = getTournamentTime();
if($admin['tournament'] == 0) { echo "<font color=magenta>현재 토너먼트 경기 없음</font>"; } if ($admin['tournament'] == 0) {
else { echo "<marquee scrollamount=2>↑<font color=cyan>{$str}</font> {$str2} {$str3}↑</marquee>"; } echo "<font color=magenta>현재 토너먼트 경기 없음</font>";
} else {
echo "<marquee scrollamount=2>↑<font color=cyan>{$str}</font> {$str2} {$str3}↑</marquee>";
}
echo " echo "
</td> </td>
@@ -147,8 +168,11 @@ echo "
$query = "select no from auction"; $query = "select no from auction";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$auctionCount = MYDB_num_rows($result); $auctionCount = MYDB_num_rows($result);
if($auctionCount > 0) { echo "<marquee scrollamount=2><font color=cyan>{$auctionCount}건</font> 거래 진행중</marquee>"; } if ($auctionCount > 0) {
else { echo "<font color=magenta>진행중 거래 없음</font>"; } echo "<marquee scrollamount=2><font color=cyan>{$auctionCount}건</font> 거래 진행중</marquee>";
} else {
echo "<font color=magenta>진행중 거래 없음</font>";
}
echo " echo "
</td> </td>
@@ -157,18 +181,21 @@ echo "
$vote = explode("|", $admin['vote']); $vote = explode("|", $admin['vote']);
$vote[0] = Tag2Code($vote[0]); $vote[0] = Tag2Code($vote[0]);
if($vote[0] == "") { echo "<font color=magenta>진행중 설문 없음</font>"; } if ($vote[0] == "") {
else { echo "<marquee scrollamount=3><font color=cyan>설문 진행중</font> : $vote[0]</marquee>"; } echo "<font color=magenta>진행중 설문 없음</font>";
} else {
echo "<marquee scrollamount=3><font color=cyan>설문 진행중</font> : $vote[0]</marquee>";
}
echo " echo "
</td> </td>
</tr>"; </tr>";
?> ?>
<tr><td colspan=5>접속중인 국가: <?=onlinenation();?></td></tr> <tr><td colspan=5>접속중인 국가: <?=onlinenation()?></td></tr>
<tr><td colspan=5><?php adminMsg(); ?></td></tr> <tr><td colspan=5><?php adminMsg(); ?></td></tr>
<tr><td colspan=5>【 국가방침 】<?php nationMsg(); ?></td></tr> <tr><td colspan=5>【 국가방침 】<?php nationMsg(); ?></td></tr>
<tr><td colspan=5>【 접속자 】<?=onlinegen();?></td></tr> <tr><td colspan=5>【 접속자 】<?=onlinegen()?></td></tr>
<?php <?php
if ($session->userGrade >= 5) { if ($session->userGrade >= 5) {
echo " echo "
@@ -217,13 +244,13 @@ if($session->userGrade >= 5) {
<option value=10>10턴</option> <option value=10>10턴</option>
<option value=11>11턴</option> <option value=11>11턴</option>
<option value=12>12턴</option> <option value=12>12턴</option>
</select><input type=button style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:50;font-size:13px; value='반복' onclick='refreshing(this, 2,0)'><input type=button style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:80;font-size:13px; value='▼미루기' onclick='refreshing(this, 2,1)'><input type=button style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:80;font-size:13px; value='▲당기기' onclick='refreshing(this, 2,2)'> </select><input type=button style=background-color:<?=GameConst::$basecolor2?>;color:white;width:50;font-size:13px; value='반복' onclick='refreshing(this, 2,0)'><input type=button style=background-color:<?=GameConst::$basecolor2?>;color:white;width:80;font-size:13px; value='▼미루기' onclick='refreshing(this, 2,1)'><input type=button style=background-color:<?=GameConst::$basecolor2?>;color:white;width:80;font-size:13px; value='▲당기기' onclick='refreshing(this, 2,2)'>
</td> </td>
</tr> </tr>
<tr> <tr>
<td width=646 align=right> <td width=646 align=right>
<?php commandTable(); ?> <?php commandTable(); ?>
<input type=button style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(this, 3,form2)'><input type=button style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(this, 0,0)'><input type=button style=background-color:<?=GameConst::$basecolor2;?>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')><br> <input type=button style=background-color:<?=GameConst::$basecolor2?>;color:white;width:110;font-size:13px; value='실 행' onclick='refreshing(this, 3,form2)'><input type=button style=background-color:<?=GameConst::$basecolor2?>;color:white;width:110;font-size:13px; value='갱 신' onclick='refreshing(this, 0,0)'><input type=button style=background-color:<?=GameConst::$basecolor2?>;color:white;width:160;font-size:13px; value='로그아웃' onclick=location.replace('logout_process.php')><br>
</td> </td>
</tr> </tr>
</form> </form>
@@ -296,9 +323,16 @@ echo banner();
<?php PrintElapsedTime(); ?> <?php PrintElapsedTime(); ?>
</div> </div>
<?php <?php
if($con == 1) { MessageBox("접속제한이 얼마 남지 않았습니다!"); } if ($con == 1) {
if($me['newmsg'] == 1) { MessageBox("개인 서신이 도착했습니다!"); } MessageBox("접속제한이 얼마 남지 않았습니다!");
if($me['newvote'] == 1) { $develcost = $admin['develcost']*5; MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)"); } }
if ($me['newmsg'] == 1) {
MessageBox("개인 서신이 도착했습니다!");
}
if ($me['newvote'] == 1) {
$develcost = $admin['develcost']*5;
MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)");
}
?> ?>
</body> </body>
</html> </html>
+4 -4
View File
@@ -32,7 +32,7 @@ $connect=$db->get();
<title>장수생성</title> <title>장수생성</title>
<meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'> <meta HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>
<link rel='stylesheet' href="css/common.css"> <link rel='stylesheet' href="css/common.css">
<script type="text/javascript" src=<?="../e_lib/jquery-3.2.1.min.js";?>></script> <script type="text/javascript" src="../e_lib/jquery-3.2.1.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
jQuery(function($){ jQuery(function($){
@@ -275,15 +275,15 @@ if($admin['show_img_level'] >= 1 && $member['grade'] >= 1 && $member['picture']
</tr> </tr>
<tr> <tr>
<td width=498 align=right id=bg1>통솔</td> <td width=498 align=right id=bg1>통솔</td>
<td colspan=2><input type="text" name="leader" id="leader" value="<?=$abil['leader'];?>"></td> <td colspan=2><input type="text" name="leader" id="leader" value="<?=$abil['leader']?>"></td>
</tr> </tr>
<tr> <tr>
<td width=498 align=right id=bg1>무력</td> <td width=498 align=right id=bg1>무력</td>
<td colspan=2><input type="text" name="power" id="power" value="<?=$abil['power'];?>"></td> <td colspan=2><input type="text" name="power" id="power" value="<?=$abil['power']?>"></td>
</tr> </tr>
<tr> <tr>
<td width=498 align=right id=bg1>지력</td> <td width=498 align=right id=bg1>지력</td>
<td colspan=2><input type="text" name="intel" id="intel" value="<?=$abil['intel'];?>"></td> <td colspan=2><input type="text" name="intel" id="intel" value="<?=$abil['intel']?>"></td>
</tr> </tr>
<tr> <tr>
<td width=498 align=right id=bg1>능력치 조정</td> <td width=498 align=right id=bg1>능력치 조정</td>
+3 -3
View File
@@ -88,7 +88,7 @@ if($admin['show_img_level'] >= 3) {
?> ?>
<tr> <tr>
<td width=498 align=right rowspan=2 height=64 id=bg1>장수</td> <td width=498 align=right rowspan=2 height=64 id=bg1>장수</td>
<td width=498><img src=<?=$image;?>/1001.jpg border=0 name=picture width=64 height=64></td> <td width=498><img src=<?=$image?>/1001.jpg border=0 name=picture width=64 height=64></td>
</tr> </tr>
<?php <?php
} }
@@ -130,10 +130,10 @@ for($i=0; $i < $count; $i++) {
</body> </body>
<script type="text/javascript"> <script type="text/javascript">
function changeGen() { function changeGen() {
sel = Math.floor(Math.random() * <?=$count;?>); sel = Math.floor(Math.random() * <?=$count?>);
document.form1.face.selectedIndex = sel; document.form1.face.selectedIndex = sel;
num = document.form1.face.value; num = document.form1.face.value;
document.form1.picture.src="<?=$image;?>" + "/"+ num +".jpg"; document.form1.picture.src="<?=$image?>" + "/"+ num +".jpg";
} }
function selectGen() { function selectGen() {
+20 -20
View File
@@ -20,9 +20,9 @@ $images = IMAGES;
body { color:white; background-color:black; border-width:1; border-color:gray; } body { color:white; background-color:black; border-width:1; border-color:gray; }
table { font-family:'맑은 고딕'; line-height:110%; } table { font-family:'맑은 고딕'; line-height:110%; }
font { font-family:'맑은 고딕'; line-height:110%; } font { font-family:'맑은 고딕'; line-height:110%; }
#bg0 { background-image:url(<?=$images;?>/back_walnut.jpg); } #bg0 { background-image:url(<?=$images?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=$images;?>/back_blue.jpg); } #bg1 { background-image:url(<?=$images?>/back_blue.jpg); }
#bg2 { background-image:url(<?=$images;?>/back_green.jpg); } #bg2 { background-image:url(<?=$images?>/back_green.jpg); }
.intro { .intro {
font-size: 15px; font-size: 15px;
@@ -62,14 +62,14 @@ font { font-family:'맑은 고딕'; line-height:110%; }
</table> </table>
<table align=center border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg1> <table align=center border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg1>
<tr> <tr>
<td align=center><input type=button style=background-color:<?=$category==0?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')></td> <td align=center><input type=button style=background-color:<?=$category==0?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')></td>
<td align=center><input type=button style=background-color:<?=$category==1?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')></td> <td align=center><input type=button style=background-color:<?=$category==1?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')></td>
<td align=center><input type=button style=background-color:<?=$category==2?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')></td> <td align=center><input type=button style=background-color:<?=$category==2?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')></td>
<td align=center><input type=button style=background-color:<?=$category==3?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')></td> <td align=center><input type=button style=background-color:<?=$category==3?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')></td>
<td align=center><input type=button style=background-color:<?=$category==4?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')></td> <td align=center><input type=button style=background-color:<?=$category==4?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')></td>
<td align=center><input type=button style=background-color:<?=$category==5?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')></td> <td align=center><input type=button style=background-color:<?=$category==5?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')></td>
<td align=center><input type=button style=background-color:<?=$category==6?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')></td> <td align=center><input type=button style=background-color:<?=$category==6?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')></td>
<td align=center><input type=button style=background-color:<?=$category==7?"red":"#225500";?>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')></td> <td align=center><input type=button style=background-color:<?=$category==7?"red":"#225500"?>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')></td>
</tr> </tr>
</table> </table>
@@ -87,7 +87,7 @@ if($category == 0) {
<br> <br>
◈ 우선 예약턴제 전략 웹게임인 『체섭』의 컨셉 &amp; 모토를 이해해봅시다.</font><br> ◈ 우선 예약턴제 전략 웹게임인 『체섭』의 컨셉 &amp; 모토를 이해해봅시다.</font><br>
<br> <br>
<img src=<?=$images;?>/help_01_01.jpg class=leftFloat> <img src=<?=$images?>/help_01_01.jpg class=leftFloat>
<font class=title>『웹게임』이란?</font><br> <font class=title>『웹게임』이란?</font><br>
 <font class=bullet>☞</font> 온라인게임과 달리 특별한 프로그램 설치 없이도 인터넷 브라우저상에서 바로 즐길 수 있는 게임들을 칭합니다. 그렇기 때문에 어딜가든 인터넷이 되는 곳이라면 언제든지 접속해서 플레이가 가능합니다. 심지어 모바일기기(휴대폰, PMP)에서도 가능합니다!<br>  <font class=bullet>☞</font> 온라인게임과 달리 특별한 프로그램 설치 없이도 인터넷 브라우저상에서 바로 즐길 수 있는 게임들을 칭합니다. 그렇기 때문에 어딜가든 인터넷이 되는 곳이라면 언제든지 접속해서 플레이가 가능합니다. 심지어 모바일기기(휴대폰, PMP)에서도 가능합니다!<br>
<br> <br>
@@ -765,14 +765,14 @@ if($category == 0) {
<table align=center border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0> <table align=center border=0 cellspacing=0 cellpadding=0 bordercolordark=gray bordercolorlight=black style=font-size:13px;word-break:break-all; id=bg0>
<tr> <tr>
<td align=center><input type=button style=background-color:<?=$category==0?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')></td> <td align=center><input type=button style=background-color:<?=$category==0?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='시작하기' onclick=location.replace('help.php?category=0')></td>
<td align=center><input type=button style=background-color:<?=$category==1?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')></td> <td align=center><input type=button style=background-color:<?=$category==1?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='회원가입' onclick=location.replace('help.php?category=1')></td>
<td align=center><input type=button style=background-color:<?=$category==2?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')></td> <td align=center><input type=button style=background-color:<?=$category==2?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='접속관리' onclick=location.replace('help.php?category=2')></td>
<td align=center><input type=button style=background-color:<?=$category==3?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')></td> <td align=center><input type=button style=background-color:<?=$category==3?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='캐릭터생성' onclick=location.replace('help.php?category=3')></td>
<td align=center><input type=button style=background-color:<?=$category==4?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')></td> <td align=center><input type=button style=background-color:<?=$category==4?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='명령입력' onclick=location.replace('help.php?category=4')></td>
<td align=center><input type=button style=background-color:<?=$category==5?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')></td> <td align=center><input type=button style=background-color:<?=$category==5?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='인터페이스' onclick=location.replace('help.php?category=5')></td>
<td align=center><input type=button style=background-color:<?=$category==6?"red":"#225500";?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')></td> <td align=center><input type=button style=background-color:<?=$category==6?"red":"#225500"?>;color:white;width:125px;height:50px;font-weight:bold;font-size:13px; value='일반장수' onclick=location.replace('help.php?category=6')></td>
<td align=center><input type=button style=background-color:<?=$category==7?"red":"#225500";?>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')></td> <td align=center><input type=button style=background-color:<?=$category==7?"red":"#225500"?>;color:white;width:123px;height:50px;font-weight:bold;font-size:13px; value='FAQ' onclick=location.replace('help.php?category=7')></td>
</tr> </tr>
</table> </table>
</body> </body>
+11 -15
View File
@@ -15,14 +15,12 @@ if($sel == 0) $sel = 1;
<title>스크린샷</title> <title>스크린샷</title>
<style type="text/css"> <style type="text/css">
<!--
body { color:white; background-color:black; border-width:1; border-color:gray; } body { color:white; background-color:black; border-width:1; border-color:gray; }
table { font-family:'맑은 고딕'; line-height:110%; } table { font-family:'맑은 고딕'; line-height:110%; }
font { font-family:'맑은 고딕'; line-height:110%; } font { font-family:'맑은 고딕'; line-height:110%; }
#bg0 { background-image:url(<?=$images;?>/back_walnut.jpg); } #bg0 { background-image:url(<?=$images?>/back_walnut.jpg); }
#bg1 { background-image:url(<?=$images;?>/back_blue.jpg); } #bg1 { background-image:url(<?=$images?>/back_blue.jpg); }
#bg2 { background-image:url(<?=$images;?>/back_green.jpg); } #bg2 { background-image:url(<?=$images?>/back_green.jpg); }
.leftFloat { .leftFloat {
float: left; float: left;
@@ -35,8 +33,6 @@ font { font-family:'맑은 고딕'; line-height:110%; }
.clear { .clear {
clear: both; clear: both;
} }
-->
</style> </style>
</head> </head>
@@ -53,13 +49,13 @@ font { font-family:'맑은 고딕'; line-height:110%; }
</tr> </tr>
<tr> <tr>
<td align=center> <td align=center>
<img src=<?=$images;?>/screenshot_01.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=1')> <img src=<?=$images?>/screenshot_01.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=1')>
<img src=<?=$images;?>/screenshot_02.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=2')> <img src=<?=$images?>/screenshot_02.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=2')>
<img src=<?=$images;?>/screenshot_03.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=3')> <img src=<?=$images?>/screenshot_03.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=3')>
<img src=<?=$images;?>/screenshot_04.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=4')> <img src=<?=$images?>/screenshot_04.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=4')>
<img src=<?=$images;?>/screenshot_05.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=5')> <img src=<?=$images?>/screenshot_05.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=5')>
<img src=<?=$images;?>/screenshot_06.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=6')> <img src=<?=$images?>/screenshot_06.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=6')>
<img src=<?=$images;?>/screenshot_07.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=7')> <img src=<?=$images?>/screenshot_07.jpg style=border-style:ridge;width:125px;height:75px; onclick=location.replace('screenshot.php?sel=7')>
</td> </td>
</tr> </tr>
<tr> <tr>
@@ -81,7 +77,7 @@ case 7: echo "독 특 한 &nbsp; 커 뮤 니 티"; break;
</tr> </tr>
<tr> <tr>
<td align=center> <td align=center>
<img src=<?=$images;?>/screenshot_0<?=$sel;?>.jpg style=border-style:ridge;> <img src=<?=$images?>/screenshot_0<?=$sel?>.jpg style=border-style:ridge;>
</td> </td>
</tr> </tr>
</table> </table>