게시판에서 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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 20497 | |
| 20496 | |
| 20467 | |
| 20455 | |
| 20448 | |
| 20447 | |
| 20446 | |
| 20428 | |
| 20424 | |
| 20421 | |
| 20404 | |
| 20402 | |
| 20401 | |
| 20389 | |
| 20350 | |
| 20345 | |
| 20333 | |
| 20307 | |
| 20286 | |
| 20284 | |
| 20281 | |
| 20280 | |
| 20239 | |
| 20235 | |
| 20226 | |
| 20197 | |
| 20192 | |
| 20189 | |
| 20166 | |
| 20147 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기