게시판에서 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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 20849 | |
| 20820 | |
| 20819 | |
| 20811 | |
| 20798 | |
| 20791 | |
| 20786 | |
| 20782 | |
| 20768 | |
| 20747 | |
| 20720 | |
| 20715 | |
| 20705 | |
| 20659 | |
| 20654 | |
| 20648 | |
| 20640 | |
| 20620 | |
| 20608 | |
| 20600 | |
| 20599 | |
| 20597 | |
| 20580 | |
| 20574 | |
| 20562 | |
| 20549 | |
| 20542 | |
| 20535 | |
| 20512 | |
| 20503 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기