Ignore:
Timestamp:
Apr 9, 2016, 7:33:07 PM (8 years ago)
Author:
ddtddt
Message:

[extensions] - user_custom_fields - admin gest dee update data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_custom_fields/admin.tpl

    r31541 r31542  
    172172
    173173<div class="titrePage">
    174   <h2>{'Manage properties photos'|@translate}</h2>
     174  <h2>{'Manage user custom filds'|@translate}</h2>
    175175</div>
    176176{if isset ($addinfotemplate)}
     
    181181        <form method="post" >
    182182            <fieldset>
    183                 <legend><span id="leg_add">{'Create new custom filds'|@translate}</span><span id="leg_edit">{'Edit Property photo'|@translate}</span></legend>
     183                <legend><span id="leg_add">{'Create new custom filds'|@translate}</span><span id="leg_edit">{'Edit custom filds'|@translate}</span></legend>
    184184                <input id="hideid" type="hidden" name="invisibleID" value="{$addinfo_edit2.AIPID}">
    185185                <p class="input">
     
    195195                </p>
    196196                                <p class="input" style="width: 700px;">
    197                     <label for="adminonly">{'admin only'|@translate}</label>
     197                    <label for="adminonly">{'Admin only'|@translate}</label>
    198198                    <input id="aip_adminonly" type="checkbox" name="adminonly" {if {$addinfo_edit2.UCFADMINONLY}==1}checked{/if} value="1">
    199199                </p>
    200200                                <p class="input" style="width: 700px;">
    201                     <label for="obligatory">{'obligatory'|@translate}</label>
     201                    <label for="obligatory">{'Obligatory'|@translate}</label>
    202202                    <input id="aip_obligatory" type="checkbox" name="obligatory" {if {$addinfo_edit2.UCFOBLIGATORY}==1}checked{/if} value="1">
    203203                </p>
     
    215215        </p>
    216216        <fieldset>
    217         <legend>{'Custom fields List'|@translate}</legend>
     217        <legend>{'Fields List'|@translate}</legend>
    218218          <ul class="categoryUl">
    219219            {foreach from=$user_custom_fields item=ucf}
     
    229229                    {/if}
    230230                                        {if ($ucf.UCFEDIT==1)}
    231                                         | <span id="edit_libinfo{$ucf.IDUCF}" class="edit_libinfo mouse icon-pencil" data-id="{$ucf.IDUCF}" data-lib="{$ucf.UCFWORDING}" data-hide="{$ucf.UCFACTIVE}" data-adminonly="{$ucf.UCFADMINONLY}" data-obligatory="{$ucf.UCFOBLIGATORY}"/>{'Edit'|@translate}</span>
     231                                        | <span id="edit_libinfo{$ucf.IDUCF}" class="edit_libinfo mouse icon-pencil" data-id="{$ucf.IDUCF}" data-lib="{$ucf.UCFWORDING2}" data-hide="{$ucf.UCFACTIVE}" data-adminonly="{$ucf.UCFADMINONLY}" data-obligatory="{$ucf.UCFOBLIGATORY}"/>{'Edit'|@translate}</span>
    232232                                        | <a href="{$ucf.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><span class="icon-trash"></span>{'delete'|@translate}</a>
    233                                         |<span id="ppadminonlyh{$ucf.IDUCF}" {if ($ucf.UCFADMINONLY==1)}style="display: none"{/if}class="graphicalCheckbox icon-check-empty mouse ppadminonlyh" data-id="{$ucf.IDUCF}" data-link3="{$ucf.U_ADMINONLYHIDE}">{'admin only'|@translate}</span>
    234                     <span id="ppadminonlys{$ucf.IDUCF}" {if ($ucf.UCFADMINONLY==0)}style="display: none"{/if}class="graphicalCheckbox icon-check mouse ppadminonlys" data-id="{$ucf.IDUCF}" data-link3="{$ucf.U_ADMINONLYSHOW}">{'admin only'|@translate}</span>
     233                                        |<span id="ppadminonlyh{$ucf.IDUCF}" {if ($ucf.UCFADMINONLY==1)}style="display: none"{/if}class="graphicalCheckbox icon-check-empty mouse ppadminonlyh" data-id="{$ucf.IDUCF}" data-link3="{$ucf.U_ADMINONLYHIDE}">{'Admin only'|@translate}</span>
     234                    <span id="ppadminonlys{$ucf.IDUCF}" {if ($ucf.UCFADMINONLY==0)}style="display: none"{/if}class="graphicalCheckbox icon-check mouse ppadminonlys" data-id="{$ucf.IDUCF}" data-link3="{$ucf.U_ADMINONLYSHOW}">{'Admin only'|@translate}</span>
    235235                    {/if}
    236236                                        {if ($ucf.UCFOBLO==1)}
    237                                         |<span id="ppobligatoryh{$ucf.IDUCF}" {if ($ucf.UCFOBLIGATORY==1)}style="display: none"{/if}class="graphicalCheckbox icon-check-empty mouse ppobligatoryh" data-id="{$ucf.IDUCF}" data-link4="{$ucf.U_OBLIGATORYHIDE}">{'obligatory'|@translate}</span>
    238                                         <span id="ppobligatorys{$ucf.IDUCF}" {if ($ucf.UCFOBLIGATORY==0)}style="display: none"{/if}class="graphicalCheckbox icon-check mouse ppobligatorys" data-id="{$ucf.IDUCF}" data-link4="{$ucf.U_OBLIGATORYSHOW}">{'obligatory'|@translate}</span>
     237                                        |<span id="ppobligatoryh{$ucf.IDUCF}" {if ($ucf.UCFOBLIGATORY==1)}style="display: none"{/if}class="graphicalCheckbox icon-check-empty mouse ppobligatoryh" data-id="{$ucf.IDUCF}" data-link4="{$ucf.U_OBLIGATORYHIDE}">{'Obligatory'|@translate}</span>
     238                                        <span id="ppobligatorys{$ucf.IDUCF}" {if ($ucf.UCFOBLIGATORY==0)}style="display: none"{/if}class="graphicalCheckbox icon-check mouse ppobligatorys" data-id="{$ucf.IDUCF}" data-link4="{$ucf.U_OBLIGATORYSHOW}">{'Obligatory'|@translate}</span>
    239239                                        {/if}
    240240                                </span>
     
    246246    </form>
    247247{/if}
    248 {if isset ($gestionD)}
    249 <div>
    250     <form method="post" >
    251         <fieldset>
    252         <legend>{'Properties additionals'|@translate}</legend>
    253         <table>
    254             {foreach from=$info_photos item=infophoto}
    255             <tr>
    256                 <td style="width: 100px;"><span style="font-weight: bold; text-align: right;" >{$infophoto.UCFWORDING}</span></td>
    257                 <td><input type="text" size="150" maxlength="250" {if $useED==1}placeholder="{'Use Extended Description tags...'|@translate}"{/if} name="data[{$infophoto.IDUCF}]" value="{$infophoto.UCFDATA}" /></td>
    258             </tr> 
    259             {/foreach}
    260             <tr style="text-align: right;">
    261                 <td colspan="2">
    262                     {if $useED==1}
    263                         <a href="{$ROOT_URL}admin/popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="{'Use Extended Description tags...'|translate}" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/help.png" class="button" alt="{'Use Extended Description tags...'|translate}'"></a>
    264                     {/if}
    265                 </td>
    266             </tr>
    267             <tr>
    268                 <td colspan="2">
    269                     <input class="submit" name="submitaddinfoimg" type="submit" value="{'Save'|@translate}" />
    270                 </td>
    271            </tr>
    272            </table>
    273         </fieldset>
    274     </form>
    275 </div>
     248{if isset ($editusertemplate)}
     249<form method="post" name="ucfprofile" id="ucfprofile" class="properties">
     250 <input id="hideuserid" type="hidden" name="invisibleUSERID" value="{$UCF_USERID}">
     251 <fieldset>
     252  <legend>{$UCF_USERNAME}</legend>
     253    <ul>
     254      {foreach from=$tab_user_custom_fields_adminlist item=userinfo}
     255                {if $userinfo.UCFID == 1}
     256                {else if $userinfo.UCFID == 2}
     257                {else if $userinfo.UCFID == 3}
     258                {else if $userinfo.UCFID == 4}
     259                {else if}
     260                  <li>
     261                        <span class="property">
     262              <label for="login">{$userinfo.UCFWORDING}</label>
     263                        </span>
     264                        <input type="text" name="data[{$userinfo.UCFID}]" id="data[{$userinfo.UCFID}]" value="{$userinfo.UCFDATA}"> {if $userinfo.UCFADMINONLY==1}{'Admin only'|@translate}{/if}
     265                  </li>
     266        {/if}
     267          {/foreach}
     268  </ul>
     269  <p class="actionButtons">
     270        <input class="submit" name="submitUCFa" type="submit" value="{'Submit'|@translate}" />
     271        <a href="#" id="addinfoClose">{'Cancel'|@translate}</a>
     272  </p>
     273 </fieldset>
     274</form>
    276275{/if}
Note: See TracChangeset for help on using the changeset viewer.