write.skin.php 사라지는 input질문입니다.

write.skin.php 사라지는 input질문입니다.

QA

write.skin.php 사라지는 input질문입니다.

본문

237334768_1529421317.2865.png

 

견적 요청 게시판은 관리자만 답변이 가능합니다.

관리자로 로그인 후 답변을 누르면 이름 비밀번호 이메일이 input이 사라진 영역에 그대로 남아있습니다.

 

이름 비밀번호 이메일은 text입니다.

관리자가 답변을 남길 때 이 text를 사라지게 할 수 있는지 궁금합니다.

 

if (관리자레벨 = 10) {이름.style.display = none;}

초보여서 어떻게 해야하는지 모르겠습니다. 답변 부탁드립니다.

이 질문에 댓글 쓰기 :

답변 2

<?php if ($is_name) { ?>

<div style="display:inline-block; margin:5px 0 0 0;"><span>이름</span>

<div style="margin-top:3px;">

<label for="wr_name" class="sound_only">이름<strong>필수</strong></label>

<input style="width:180px; margin-right:1px;" tabindex="2" type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" placeholder="이름" title="이름">

</div>

</div>

<?php } ?>

<?php if ($is_password) { ?>

<div style="display:inline-block; margin-top:5px;"><span>비밀번호</span>

<div style="margin-top:3px;">

<label for="wr_password" class="sound_only">비밀번호<strong>필수</strong></label>

<input style="width:180px; margin-right:1px;" tabindex="3" type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" title="비밀번호">

</div>

</div>

<?php } ?>

<div style="display:inline-block; margin-top:5px;"><span>회사명</span>

<div style="margin-top:3px;">

<input style="width:180px; margin-right:1px;" tabindex="4" type="text" name="wr_1" value="<?php echo $write['wr_1'] ?>" id="wr_1" required class="frm_input required" size="20" placeholder="회사명" title="회사명">

</div>

</div>

<?php if ($is_email) { ?>

<div style="display:inline-block; margin-top:5px;"><span>이메일</span>

<div style="margin-top:3px;">

<label for="wr_email" class="sound_only">이메일</label>

<input style="width:180px;" tabindex="5" type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" required class="frm_input email required" placeholder="이메일" title="이메일">

</div>

</div>

<?php } ?>

소스가 있어야 도와드릴 수 있을듯 한데요..

if($is_admin) echo"style='display:none'";

이렇게 하실려는 건가요?

그냥 텍스트를 표기 안하는 방법도 있습니다.

if(!$is_admin) echo"이름";

감사합니다!
관리자로 글에서 답변모드에 들어갔을 때 <span>이름</span><span>비밀번호</span><span>이메일</span> 이 세가지가 안보이기만 하면 되요 감사합니다^^
소스입니다.
<div style="display:inline-block; margin:5px 0 0 0;"><span>이름</span>
<div style="margin-top:3px;">
<?php if ($is_name) { ?>
        <label for="wr_name" class="sound_only">이름<strong>필수</strong></label>
        <input style="width:180px; margin-right:1px;" tabindex="2" type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" placeholder="이름" title="이름">
    <?php } ?>
    </div>
    </div>
    <div style="display:inline-block; margin-top:5px;"><span>비밀번호</span>
<div style="margin-top:3px;">
<?php if ($is_password) { ?>
        <label for="wr_password" class="sound_only">비밀번호<strong>필수</strong></label>
        <input style="width:180px; margin-right:1px;" tabindex="3" type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" title="비밀번호">
    <?php } ?>
    </div>
    </div>
    <div style="display:inline-block; margin-top:5px;"><span>회사명</span>
<div style="margin-top:3px;">
<input style="width:180px; margin-right:1px;" tabindex="4" type="text" name="wr_1" value="<?php echo $write['wr_1'] ?>" id="wr_1" required class="frm_input required" size="20" placeholder="회사명" title="회사명">
    </div>
    </div>
    <div style="display:inline-block; margin-top:5px;"><span>이메일</span>
<div style="margin-top:3px;">
<?php if ($is_email) { ?>
            <label for="wr_email" class="sound_only">이메일</label>
            <input style="width:180px;" tabindex="5" type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" required class="frm_input email required" placeholder="이메일" title="이메일">
    <?php } ?>
    </div>
    </div>

답변을 작성하시기 전에 로그인 해주세요.
전체 122,920 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT