게시판에서 css 라는 분류에 들어가서 글쓰기를 누르면
write.php 화면에서 css 분류가 이미 선택이 되어 있게 만드는 팁
view.skin.php
[code]
//view.skin.php #30
<?php
if ($write_href) {
$scaa = (1<strlen($view['ca_name']))?'&sca='.$view['ca_name']:'';
?>
<a href="<?=$write_href?><?=$scaa?>" title="글쓰기">
<button type="button" class="btn_b03 is_list_btn">
<i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기
</button>
</a>
<?php } ?>
// 분류 클릭하면 list 에서 해당분류
<?php if ($category_name) { ?>
<a href="<?=$list_href?>&sca=<?=$view['ca_name']?>">
<span class="bo_v_cate"><?=$view['ca_name']; // 분류 출력 끝 ?></span>
</a>
<?php } ?>
[/code]
write.skin.php
[code]
// write.skin.php # 6
<?php$scaa = (isset($_GET['sca'])?$_GET['sca']:'');?>
// write.skin.php # 59
<select id="ca_name" name="ca_name" class="frm_input full_input" required>
<?php if ($w!='u'&&$scaa): ?>
<option value="<?=$scaa?>"><?=$scaa?></option>
<?php else: ?>
<option value="">선택하세요</option>
<?=$category_option ?>
<?php endif ?>
</select>
<style>
#ca_name {
background-color: #D4AAFF !important;
}
</style>
[/code]
view.skin.php
[code]
// view.skin.php #28
<?php
if ($write_href) {
$scaa = (1<strlen($view['ca_name']))?'&sca='.$view['ca_name']:'';
?>
<a href="<?=$write_href?><?=$scaa?>" title="글쓰기">
<button type="button" class="btn_b03 is_list_btn">
<i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기
</button>
</a>
<?php } ?>
// view.skin.php #42
<a href="<?=$list_href?>&sca=<?=$view['ca_name']?>">
<span class="bo_v_cate"><?=$view['ca_name']; // 분류 출력 끝 ?></span>
</a>
[/code]
댓글 6개
게시글 목록
| 번호 | 제목 |
|---|---|
| 21184 | |
| 21166 | |
| 21157 | |
| 21136 | |
| 21132 | |
| 21124 | |
| 21119 | |
| 21114 | |
| 21106 | |
| 21095 | |
| 21069 | |
| 21063 | |
| 21060 | |
| 21058 | |
| 21053 | |
| 21035 | |
| 21032 | |
| 21028 | |
| 21009 | |
| 21000 | |
| 20994 | |
| 20993 | |
| 20984 | |
| 20979 | |
| 20958 | |
| 20935 | |
| 20934 | |
| 20930 | |
| 20913 | |
| 20883 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기