게시판에서 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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 21529 | |
| 21526 | |
| 21521 | |
| 21516 | |
| 21513 | |
| 21502 | |
| 21485 | |
| 21471 | |
| 21467 | |
| 21457 | |
| 21424 | |
| 21421 | |
| 21415 | |
| 21410 | |
| 21406 | |
| 21405 | |
| 21394 | |
| 21378 | |
| 21354 | |
| 21349 | |
| 21345 | |
| 21316 | |
| 21299 | |
| 21297 | |
| 21279 | |
| 21276 | |
| 21254 | |
| 21242 | |
| 21214 | |
| 21206 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기