|
|
|
16년 전
|
조회 1,016
|
|
|
|
16년 전
|
조회 1,559
|
|
|
|
16년 전
|
조회 930
|
|
|
|
16년 전
|
조회 891
|
|
|
|
16년 전
|
조회 975
|
|
|
|
16년 전
|
조회 815
|
|
|
|
16년 전
|
조회 976
|
|
|
|
16년 전
|
조회 855
|
|
|
|
16년 전
|
조회 841
|
|
|
|
16년 전
|
조회 1,324
|
|
|
|
16년 전
|
조회 978
|
|
|
|
16년 전
|
조회 935
|
|
|
|
16년 전
|
조회 792
|
|
|
|
16년 전
|
조회 824
|
|
|
|
16년 전
|
조회 1,562
|
|
|
|
16년 전
|
조회 880
|
|
|
|
16년 전
|
조회 950
|
|
|
|
16년 전
|
조회 964
|
|
|
|
16년 전
|
조회 833
|
|
|
|
16년 전
|
조회 1,028
|
댓글 3개
http://sir.co.kr/bbs/tb.php/g4_tiptech/12417/b612972cf467112ff014e7ea67a81f96
그런데 기간 설정중에
//자폭 시작
for ($i=0; $i<count($list); $i++) {
$count_write = 0;
$count_comment = 0;
if($list[$i][wr_10]) {
$g4[time_ymd] = date("Y-m-d H:i", $g4[server_time]);
$stoday = $g4[time_ymd];
$bombdate = $list[$i][wr_10];
$By = substr($bombdate,0,4);
$Bm = substr($bombdate,5,2);
$Bd = substr($bombdate,8,2) + 7;
$Bh = substr($bombdate,11,2);
$Bi = substr($bombdate,14,2);
$bombdate7 = date("Y-m-d H:i",mktime($Bh,$Bi,0,$Bm,$Bd,$By) );
...........
<!-- 자폭 부분 -->
<? if ($w =="") { ?>
<tr>
<td style='padding-left:20px; height:30px;'>· 자폭설정</td>
<td><input type=checkbox name="bcheck" value="checkbox" onclick="chk1(this);" >
<?
echo "<SELECT name=wr_10 style=\"FONT-SIZE: 9pt\" onchange=doIt(this.value) disabled >";
echo "<OPTION value=\"\" selected>자폭안함</option>";
echo "<option value=\"".date("Y-m-d H:i", time() + (int)(0.125*60*60*24))."\" >3시간 후</option>";
echo "<option value=\"".date("Y-m-d H:i", time() + (int)(0.25*60*60*24))."\" >6시간 후</option>";
echo "<option value=\"".date("Y-m-d H:i", time() + (int)(0.5 *60*60*24))."\">12시간 후</option>";
for($i=1;$i<31; $i++) {
echo "<option value=\"".date("Y-m-d H:i", time() + (int)($i*60*60*24))."\" >$i"."일 후</option>";
}
echo "</select>";
?>
</select>
<div id="mytext" class="redtext" style="display:inline" onclick="changeclass(this,'hi')">자동 폭파 사용 안함</div>
</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<? } ?>
<!-- 자폭 부분 -->
위 부분에서 시간 설정을 1개월 2개월 3개월단위로 하려면
숫자를 어떻게 변경해야하나요...ㅜㅜ
0.5가 24 시간을 반으로 나눈것이군요.. ^^ 그래서 12시간이 된거구요..ㅋ
산수를 잘 못해서...ㅋ
좋은 팁 소개시켜주신 ohora 님 감사합니다 ^^