#88 에 따른 이벤트 강조기능 추가

This commit is contained in:
chicpro
2013-04-25 10:21:48 +09:00
parent 680b8f8cf7
commit a95f75c2f7
2 changed files with 17 additions and 11 deletions

View File

@ -32,6 +32,11 @@ else
$ev['ev_list_row'] = 5;
}
if(!isset($ev['ev_subject_strong'])) {
sql_query(" ALTER TABLE `{$g4['shop_event_table']}`
ADD `ev_subject_strong` TINYINT(4) NOT NULL DEFAULT '0' AFTER `ev_subject` ", false);
}
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
@ -106,7 +111,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<td>
<input type="text" name="ev_subject" value="<? echo htmlspecialchars2($ev['ev_subject']) ?>" id="ev_subject" required class="required frm_input" size="60">
<label for="ev_subject_strong">제목 강조</label>
<input type="checkbox" name="ev_subject_strong" value="<?=$ev['ev_subject_strong']?>" id="ev_subject_strong">
<input type="checkbox" name="ev_subject_strong" value="1" id="ev_subject_strong" <?php if($ev['ev_subject_strong']) echo 'checked="checked"'; ?>>
</td>
</tr>
<tr>

View File

@ -1,4 +1,4 @@
<?
<?php
$sub_menu = '400630';
include_once('./_common.php');
@ -17,15 +17,16 @@ if ($ev_mimg_del) @unlink(G4_DATA_PATH."/event/{$ev_id}_m");
if ($ev_himg_del) @unlink(G4_DATA_PATH."/event/{$ev_id}_h");
if ($ev_timg_del) @unlink(G4_DATA_PATH."/event/{$ev_id}_t");
$sql_common = " set ev_skin = '$ev_skin',
ev_img_width = '$ev_img_width',
ev_img_height = '$ev_img_height',
ev_list_mod = '$ev_list_mod',
ev_list_row = '$ev_list_row',
ev_subject = '$ev_subject',
ev_head_html = '$ev_head_html',
ev_tail_html = '$ev_tail_html',
ev_use = '$ev_use'
$sql_common = " set ev_skin = '$ev_skin',
ev_img_width = '$ev_img_width',
ev_img_height = '$ev_img_height',
ev_list_mod = '$ev_list_mod',
ev_list_row = '$ev_list_row',
ev_subject = '$ev_subject',
ev_head_html = '$ev_head_html',
ev_tail_html = '$ev_tail_html',
ev_use = '$ev_use',
ev_subject_strong = '$ev_subject_strong'
";
if ($w == "")