empty menu list column count fix

This commit is contained in:
Amberstone 2024-09-30 02:14:34 +09:00
parent d7d7c5da99
commit c2487c0d43
Signed by: amber
GPG key ID: 094B0E55F98D8BF1
2 changed files with 11 additions and 24 deletions

View file

@ -23,7 +23,7 @@ $result = sql_query($sql);
$g5['title'] = "메뉴설정";
include_once "./admin.head.php";
$colspan = 9;
$colspan = 11;
?>
<div class="local_desc01 local_desc">

View file

@ -88,19 +88,19 @@ if ($month == "12")
$j = 0; // layer id
// 내용을 보여주는 부분
while ($row = sql_fetch_array($result)) { // 제목글 뽑아서 링크 문자열 만들기..
if (substr($row[wr_1], 0, 6) < $year . $sel_mon) {
if (substr($row["wr_1"], 0, 6) < $year . $sel_mon) {
$start_day = 1;
$start_day = (int) $start_day;
} else {
$start_day = substr($row[wr_1], 6, 2);
$start_day = substr($row["wr_1"], 6, 2);
$start_day = (int) $start_day;
}
if (substr($row[wr_2], 0, 6) > $year . $sel_mon) {
if (substr($row["wr_2"], 0, 6) > $year . $sel_mon) {
$end_day = $lastday[$month];
$end_day = (int) $end_day;
} else {
$end_day = substr($row[wr_2], 6, 2);
$end_day = substr($row["wr_2"], 6, 2);
$end_day = (int) $end_day;
}
@ -108,8 +108,8 @@ if ($month == "12")
$imgown = 'icon';
for ($i = $start_day; $i <= $end_day; $i++) {
if (strlen($row[wr_3]) > 0) { // 입력된 아이콘 값이 있을 때
$imgown = $row[wr_3];
if (strlen($row["wr_3"]) > 0) { // 입력된 아이콘 값이 있을 때
$imgown = $row["wr_3"];
}
$j++; // layer ID
@ -123,17 +123,17 @@ if ($month == "12")
<div id="popup_<?php echo $j ?>" class="popup_layer">
<?php
$html = 0;
if (strstr($row[wr_option], "html1"))
if (strstr($row["wr_option"], "html1"))
$html = 1;
else if (strstr($row[wr_option], "html2"))
else if (strstr($row["wr_option"], "html2"))
$html = 2;
$viewlist = cut_str(conv_content($row[wr_content], $html), 200, "");
$viewlist = cut_str(conv_content($row["wr_content"], $html), 200, "");
echo "<p class='popup_title'>" . $row['wr_subject'] . "</p><p class='popup_cont'>" . $viewlist . "</p>";
?>
</div>
<?php
$sc_id = $row[wr_id];
$sc_id = $row["wr_id"];
}
}
@ -223,17 +223,4 @@ if ($month == "12")
</div>
<script language="JavaScript">
<!--
// 미리보기 팝업 보이기
function PopupShow(n) {
var position = $("#subject_"+n).position();
$("#popup_"+n).animate({left:position.left-10+"px", top:position.top+30+"px"},0);
$("#popup_"+n).show();
}
// 미리보기 팝업 숨기기
function PopupHide(n) {
$("#popup_"+n).hide();
}
//-->
</script>