게시판에서 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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 20141 | |
| 20129 | |
| 20120 | |
| 20114 | |
| 20106 | |
| 20099 | |
| 20097 | |
| 20091 | |
| 20050 | |
| 20042 | |
| 20039 | |
| 20010 | |
| 19996 | |
| 19978 | |
| 19969 | |
| 19954 | |
| 19911 | |
| 19908 | |
| 19907 | |
| 19905 | |
| 19904 | |
| 19892 | |
| 19882 | |
| 19864 | |
| 19861 | |
| 19844 | |
| 19831 | |
| 19829 | |
| 19820 | |
| 19805 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기