구찬아 logo 바꾸기 정보
구찬아 logo 바꾸기본문
config_form.php
<?php $i=1;?>
<tr>
<th scope="row">여분필드<?php echo $i ?></th>
<td class="td_extra">
<label for="cf_<?php echo $i ?>_subj">여분필드<?php echo $i ?> 제목</label>
<input type="text" name="cf_<?php echo $i ?>_subj" value="<?php echo get_text($config['cf_'.$i.'_subj']) ?>" id="cf_<?php echo $i ?>_subj" class="frm_input" size="30">
<!-- <label for="cf_<?php echo $i ?>">여분필드<?php echo $i ?> 값</label>
<input type="text" name="cf_<?php echo $i ?>" value="<?php echo get_sanitize_input($config['cf_'.$i]); ?>" id="cf_<?php echo $i ?>" class="frm_input extra-value-input" size="30"> -->
<input type="file" name="cf_<?php echo $i ?>" id="cf_<?php echo $i ?>" title="파일첨부" class="frm_file ">
</td>
</tr>
<?php for ($i=2; $i<=10; $i++) { ?>
<tr>
<th scope="row">여분필드<?php echo $i ?></th>
<td class="td_extra">
<label for="cf_<?php echo $i ?>_subj">여분필드<?php echo $i ?> 제목</label>
<input type="text" name="cf_<?php echo $i ?>_subj" value="<?php echo get_text($config['cf_'.$i.'_subj']) ?>" id="cf_<?php echo $i ?>_subj" class="frm_input" size="30">
<label for="cf_<?php echo $i ?>">여분필드<?php echo $i ?> 값</label>
<input type="text" name="cf_<?php echo $i ?>" value="<?php echo get_sanitize_input($config['cf_'.$i]); ?>" id="cf_<?php echo $i ?>" class="frm_input extra-value-input" size="30">
</td>
</tr>
<?php } ?>
config_form_update.php
cf_9_subj = '{$_POST['cf_9_subj']}',
cf_10_subj = '{$_POST['cf_10_subj']}',
cf_2 = '{$_POST['cf_2']}',
cf_3 = '{$_POST['cf_3']}',
cf_4 = '{$_POST['cf_4']}',
cf_5 = '{$_POST['cf_5']}',
cf_6 = '{$_POST['cf_6']}',
cf_7 = '{$_POST['cf_7']}',
cf_8 = '{$_POST['cf_8']}',
cf_9 = '{$_POST['cf_9']}',
cf_10 = '{$_POST['cf_10']}' ";
sql_query($sql);
// 로고 이미지 업로드
$mb_dir=G5_DATA_PATH.'/logo_img/';
@mkdir($mb_dir, G5_DIR_PERMISSION);
@chmod($mb_dir, G5_DIR_PERMISSION);
$name = $_FILES['cf_1']['name'];
$ext = explode('.', $name);
$dest_path = $mb_dir.'logo.'.$ext[1];
$cf_1='logo.'.$ext[1];
//echo $ext[1];
// exit;
if($ext[1]){
move_uploaded_file($_FILES['cf_1']['tmp_name'], $dest_path);
$sql = " update {$g5['config_table']}
set cf_1 = '{$cf_1}'";
sql_query($sql);
}
// 로고 이미지 업로드
head.php
<div id="hd_wrapper">
<div id="logo">
<a href="<?php echo G5_URL ?>"><img src="../data/logo_img/<?php echo $config['cf_1']; ?>" alt="<?php echo $config['cf_title']; ?>"></a>
</div>
shop.head.php
<div id="hd_wrapper">
<div id="logo">
<a href="<?php echo G5_SHOP_URL; ?>/"><img src="../data/logo_img/<?php echo $config['cf_1']; ?>" alt="<?php echo $config['cf_title']; ?>"><?php $config[c_1]?></a>
</div>
<?php $i=1;?>
<tr>
<th scope="row">여분필드<?php echo $i ?></th>
<td class="td_extra">
<label for="cf_<?php echo $i ?>_subj">여분필드<?php echo $i ?> 제목</label>
<input type="text" name="cf_<?php echo $i ?>_subj" value="<?php echo get_text($config['cf_'.$i.'_subj']) ?>" id="cf_<?php echo $i ?>_subj" class="frm_input" size="30">
<!-- <label for="cf_<?php echo $i ?>">여분필드<?php echo $i ?> 값</label>
<input type="text" name="cf_<?php echo $i ?>" value="<?php echo get_sanitize_input($config['cf_'.$i]); ?>" id="cf_<?php echo $i ?>" class="frm_input extra-value-input" size="30"> -->
<input type="file" name="cf_<?php echo $i ?>" id="cf_<?php echo $i ?>" title="파일첨부" class="frm_file ">
</td>
</tr>
<?php for ($i=2; $i<=10; $i++) { ?>
<tr>
<th scope="row">여분필드<?php echo $i ?></th>
<td class="td_extra">
<label for="cf_<?php echo $i ?>_subj">여분필드<?php echo $i ?> 제목</label>
<input type="text" name="cf_<?php echo $i ?>_subj" value="<?php echo get_text($config['cf_'.$i.'_subj']) ?>" id="cf_<?php echo $i ?>_subj" class="frm_input" size="30">
<label for="cf_<?php echo $i ?>">여분필드<?php echo $i ?> 값</label>
<input type="text" name="cf_<?php echo $i ?>" value="<?php echo get_sanitize_input($config['cf_'.$i]); ?>" id="cf_<?php echo $i ?>" class="frm_input extra-value-input" size="30">
</td>
</tr>
<?php } ?>
config_form_update.php
cf_9_subj = '{$_POST['cf_9_subj']}',
cf_10_subj = '{$_POST['cf_10_subj']}',
cf_2 = '{$_POST['cf_2']}',
cf_3 = '{$_POST['cf_3']}',
cf_4 = '{$_POST['cf_4']}',
cf_5 = '{$_POST['cf_5']}',
cf_6 = '{$_POST['cf_6']}',
cf_7 = '{$_POST['cf_7']}',
cf_8 = '{$_POST['cf_8']}',
cf_9 = '{$_POST['cf_9']}',
cf_10 = '{$_POST['cf_10']}' ";
sql_query($sql);
// 로고 이미지 업로드
$mb_dir=G5_DATA_PATH.'/logo_img/';
@mkdir($mb_dir, G5_DIR_PERMISSION);
@chmod($mb_dir, G5_DIR_PERMISSION);
$name = $_FILES['cf_1']['name'];
$ext = explode('.', $name);
$dest_path = $mb_dir.'logo.'.$ext[1];
$cf_1='logo.'.$ext[1];
//echo $ext[1];
// exit;
if($ext[1]){
move_uploaded_file($_FILES['cf_1']['tmp_name'], $dest_path);
$sql = " update {$g5['config_table']}
set cf_1 = '{$cf_1}'";
sql_query($sql);
}
// 로고 이미지 업로드
head.php
<div id="hd_wrapper">
<div id="logo">
<a href="<?php echo G5_URL ?>"><img src="../data/logo_img/<?php echo $config['cf_1']; ?>" alt="<?php echo $config['cf_title']; ?>"></a>
</div>
shop.head.php
<div id="hd_wrapper">
<div id="logo">
<a href="<?php echo G5_SHOP_URL; ?>/"><img src="../data/logo_img/<?php echo $config['cf_1']; ?>" alt="<?php echo $config['cf_title']; ?>"><?php $config[c_1]?></a>
</div>
추천
1
1
댓글 0개