[ask] whmcs. bagaimana cara mengunci field tertentu di tiket

Discussion in 'Software Hosting dan Control Panel' started by el_makong, 14 Sep 2014.

Thread Status:
Not open for further replies.
  1. el_makong

    el_makong Hosting Guru

    Messages:
    1,095
    Likes Received:
    101
    Trophy Points:
    63
    mau tanya nih, gimana caranya mengunci field judul atau departemen di tiket?
    jadi user tidak dapat merubah departemen kecuali kembali ke halaman sebelumnya
    atau
    user tidak dapat merubah judul tiket

    terima kasih sebelumnya
     
  2. dhyhost

    dhyhost Hosting Guru Web Hosting

    Messages:
    3,932
    Likes Received:
    614
    Trophy Points:
    113
    edit file themes supportticketsubmit-steptwo.tpl
    untuk subject
    cari baris berikut
    Code:
            <div class="row">
                <div class="control-group">
                    <label class="control-label bold" for="subject">{$LANG.supportticketsticketsubject}</label>
                    <div class="controls">
                        <input class="input-xlarge" type="text" name="subject" id="subject" value="{$subject}" style="width:80%;" />
                    </div>
                </div>
            </div>
    
    ganti dengan kode berikut

    Code:
            <div class="row">
                <div class="control-group">
                    <label class="control-label bold" for="subject">{$LANG.supportticketsticketsubject}</label>
                    <div class="controls">
                        <input class="input-xlarge" type="text" readonly="true"  name="subject" id="subject" value="{$subject}" style="width:80%;" />
                    </div>
                </div>
            </div>
    
    untuk department
    cari kode berikut

    Code:
            <div class="row">
                <div class="multicol">
                    <div class="control-group">
                        <label class="control-label bold" for="name">{$LANG.supportticketsdepartment}</label>
                        <div class="controls">
                            <select name="deptid">
                            {foreach from=$departments item=department}
                                <option value="{$department.id}"{if $department.id eq $deptid} selected="selected"{/if}>{$department.name}</option>
                            {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
    
    ganti dengan ini

    Code:
            <div class="row">
                <div class="multicol">
                    <div class="control-group">
                       <label class="control-label bold" for="name">{$LANG.supportticketsdepartment}</label>
                        <div class="controls">
                           <select name="deptid">
                            {foreach from=$departments item=department}
                                <option readonly="true" value="{$department.id}"{if $department.id eq $deptid} selected="selected"{else} disabled=""{/if}>{$department.name}</option>
                            {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
    
    CMIIW, jangan lupa backup dulu filenya hehe
     
  3. el_makong

    el_makong Hosting Guru

    Messages:
    1,095
    Likes Received:
    101
    Trophy Points:
    63
    wah...di coba dulu ya....terima kasih Tuan sebelumnya..
     
  4. dhyhost

    dhyhost Hosting Guru Web Hosting

    Messages:
    3,932
    Likes Received:
    614
    Trophy Points:
    113
    oh iya kelupaan, yang saya kasih itu untuk themes dafault...
    yang lock department sudah saya diterapkan di template saya sudah lama,
     
  5. el_makong

    el_makong Hosting Guru

    Messages:
    1,095
    Likes Received:
    101
    Trophy Points:
    63
    wah...okelah...saya sih jadinya pake
    Code:
    <div class="multicol">
                    <div class="control-group">
                        <label class="control-label bold" for="name">{$LANG.supportticketsdepartment}</label>
                        <div class="controls">
                        <input type="hidden" name="deptid" value="{$deptid}"/>                       
                            {foreach from=$departments item=department}
                                {if $department.id eq $deptid}{$department.name}{/if}
                            {/foreach}
                           
                        </div>
                    </div>
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...