Ignore:
Timestamp:
Feb 27, 2010, 7:16:34 PM (10 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager] Pre-2.13.4 for testing only:

  • Bug 1463 pre-fixed : EN, ES and IT Language files updated
  • Bug 1463 fixed
  • Adding compatibility with FCK Editor on email text fields
Location:
extensions/NBC_UserAdvManager/trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UserAdvManager_admin.php

    r4960 r4984  
    3333$UserAdvManager_ConfirmMail_Error_Txt2 = false;
    3434$UserAdvManager_Exclusionlist_Error = false;
     35
    3536
    3637// +-----------------------------------------------------------------------+
     
    6162$tabsheet->assign();
    6263
     64
    6365// +-----------------------------------------------------------------------+
    6466// |                      Getting plugin version                           |
     
    6668$plugin =  PluginVer(NBC_UAM_PATH);
    6769$version = $plugin['version'] ;
     70
     71
     72// +----------------------------------------------------------+
     73// |            FCK Editor for email text fields              |
     74// +----------------------------------------------------------+
     75$toolbar = 'Basic';
     76$width = '750px';
     77$height = '300px';
     78$areas = array();
     79array_push( $areas,'UserAdvManager_MailInfo_Text','UserAdvManager_ConfirmMail_Text','UserAdvManager_GhostTracker_ReminderText','UserAdvManager_ConfirmMail_ReMail_Txt1','UserAdvManager_ConfirmMail_ReMail_Txt2');
     80 
     81if (function_exists('set_fckeditor_instance'))
     82  set_fckeditor_instance($areas, $toolbar, $width, $height);
     83
    6884
    6985// +-----------------------------------------------------------------------+
  • extensions/NBC_UserAdvManager/trunk/admin/global.tpl

    r4962 r4984  
    1313</script>
    1414
     15<script type="text/javascript">
     16function nbc_blockToggleDisplay($head1, $ehead1)
     17{ldelim}
     18n1=$head1;
     19n2=$ehead1;
     20
     21blockToggleDisplay($head1, $ehead1) ;
     22     document.getElementById("nb_para").value =n1 ; 
     23     document.getElementById("nb_para2").value =n2 ;
     24}
     25
     26blockToggleDisplay(n1,n2 );
     27</script>
     28
    1529<div class="titrePage">
    1630  <h2>{'Title_Tab'|@translate} {$UAM_VERSION}<br>{'SubTitle1'|@translate}</h2>
     
    2135<p><input class="submit" type="submit" value="{'submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED} >&nbsp;<input class="submit" type="submit" value="{'audit'|@translate}" name="audit"></p>
    2236
    23 <input name="nb_para" id="nb_para" type="texte" value="{$nb_para}" style="display:none">
    24 <input name="nb_para2" id="nb_para2" type="texte" value="{$nb_para2}" style="display:none">
     37<input name="nb_para" id="nb_para" type="text" value="{$nb_para}" style="display:none">
     38<input name="nb_para2" id="nb_para2" type="text" value="{$nb_para2}" style="display:none">
    2539
    2640<div id="instructionConfig1" class="instructionBlock" >
     
    111125          </li>
    112126{/if}
     127{if 'FCK_PATH'|@defined}
     128  <div style="text-align:right;">
     129    <a href="#" onClick="toogleEditor('UserAdvManager_MailInfo_Text'); return false;">FCK Editor On/Off</a>
     130  </div>
     131{/if}
    113132        </ul>
    114133
     
    133152            <textarea name="UserAdvManager_ConfirmMail_Text" id="UserAdvManager_ConfirmMail_Text" rows="10" cols="80" readonly {$TAG_INPUT_ENABLED}>{$UserAdvManager_CONFIRMMAIL_TEXT}</textarea><br><br>
    134153          </li>
     154{/if}
     155{if 'FCK_PATH'|@defined}
     156  <div style="text-align:right;">
     157    <a href="#" onClick="toogleEditor('UserAdvManager_ConfirmMail_Text'); return false;">FCK Editor On/Off</a>
     158  </div>
    135159{/if}
    136160        </ul>
     
    198222        </li>
    199223{/if}
     224{if 'FCK_PATH'|@defined}
     225  <div style="text-align:right;">
     226    <a href="#" onClick="toogleEditor('UserAdvManager_ConfirmMail_ReMail_Txt1'); return false;">FCK Editor On/Off</a>
     227  </div>
     228{/if}
    200229
    201230{if $UserAdvManager_CONFIRMMAIL_REMAIL_TRUE}
     
    213242          <textarea name="UserAdvManager_ConfirmMail_ReMail_Txt2" id="UserAdvManager_ConfirmMail_ReMail_Txt2" rows="10" cols="80" readonly {$TAG_INPUT_ENABLED}>{$UserAdvManager_CONFIRMMAIL_REMAIL_TXT2}</textarea><br><br>
    214243        </li>
     244{/if}
     245{if 'FCK_PATH'|@defined}
     246  <div style="text-align:right;">
     247    <a href="#" onClick="toogleEditor('UserAdvManager_ConfirmMail_ReMail_Txt2'); return false;">FCK Editor On/Off</a>
     248  </div>
    215249{/if}
    216250        </ul>
     
    250284            <textarea name="UserAdvManager_GhostTracker_ReminderText" id="UserAdvManager_GhostTracker_ReminderText" rows="10" cols="80" readonly {$TAG_INPUT_ENABLED}>{$UserAdvManager_GHOSTRACKER_REMINDERTEXT}</textarea><br><br>
    251285          </li>
     286{/if}
     287{if 'FCK_PATH'|@defined}
     288  <div style="text-align:right;">
     289    <a href="#" onClick="toogleEditor('UserAdvManager_GhostTracker_ReminderText'); return false;">FCK Editor On/Off</a>
     290  </div>
    252291{/if}
    253292        </ul>
     
    291330
    292331<script type="text/javascript">
    293 
    294 var n1=document.getElementById("nb_para").value ;
    295 var n2=document.getElementById("nb_para2").value;
    296 
    297 function nbc_blockToggleDisplay($head1, $ehead1)
    298 {ldelim}
    299 n1=$head1;
    300 n2=$ehead1;
    301 
    302 blockToggleDisplay($head1, $ehead1) ;
    303      document.getElementById("nb_para").value =n1 ; 
    304      document.getElementById("nb_para2").value =n2 ;
    305 }
    306 
    307 blockToggleDisplay(n1,n2 );
     332  var n1=document.getElementById("nb_para").value ;
     333  var n2=document.getElementById("nb_para2").value;
     334   nbc_blockToggleDisplay(n1,n2 );
    308335</script>
Note: See TracChangeset for help on using the changeset viewer.