Changeset 8271 for extensions/LCAS/trunk/admin
- Timestamp:
- Dec 23, 2010, 11:24:37 PM (13 years ago)
- Location:
- extensions/LCAS/trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/admin/LCAS_admin.php
r8257 r8271 29 29 $version = $plugin['version']; 30 30 31 if (isset($_POST['submit']) and !is_adviser() and isset($_POST['LCAS_Case_Sensitive']) and isset($_POST['LCAS_Accent_Sensitive']) )31 if (isset($_POST['submit']) and !is_adviser() and isset($_POST['LCAS_Case_Sensitive']) and isset($_POST['LCAS_Accent_Sensitive']) and isset($_POST['LCAS_Mail'])) 32 32 { 33 33 … … 38 38 $_POST['LCAS_Case_Sensitive'], 39 39 $_POST['LCAS_Accent_Sensitive'], 40 $_POST['LCAS_Mail'], 40 41 $_POST['LCAS_MailText']); 41 42 … … 89 90 90 91 pwg_query($query); 91 92 93 if (isset($conf_LCAS[2]) and $conf_LCAS[2] = 'true') 94 { 95 LCAS_SendMail($lcas_UserToUpdate, $_POST['user-'.$lcas_UserToUpdate]); 96 } 97 92 98 array_push($page['infos'], l10n('LCAS_Info_userlist_username_renamed')); 93 99 } … … 97 103 } 98 104 } 99 100 105 101 106 … … 166 171 167 172 173 // +-----------------------------------------------------------------------+ 174 // | templates init | 175 // +-----------------------------------------------------------------------+ 168 176 $template->assign( 169 177 array( 170 'LCAS_VERSION' => $version, 171 'LCAS_PATH' => LCAS_PATH, 172 'PWG_insensitive_case_logon' => $conf['insensitive_case_logon']? 'true' : 'false', 173 'LCAS_Case_Sensitive_TRUE' => $conf_LCAS[0]=='true' ? 'checked="checked"' : '' , 174 'LCAS_Case_Sensitive_FALSE' => $conf_LCAS[0]=='false' ? 'checked="checked"' : '' , 175 'LCAS_Accent_Sensitive_TRUE' => $conf_LCAS[1]=='true' ? 'checked="checked"' : '' , 176 'LCAS_Accent_Sensitive_FALSE' => $conf_LCAS[1]=='false' ? 'checked="checked"' : '' , 177 'LCAS_MAILTEXT' => $conf_LCAS[2] 178 'LCAS_VERSION' => $version, 179 'LCAS_PATH' => LCAS_PATH, 180 'PWG_insensitive_case_logon' => $conf['insensitive_case_logon']? 'true' : 'false', 181 'LCAS_Case_Sensitive_TRUE' => $conf_LCAS[0]=='true' ? 'checked="checked"' : '' , 182 'LCAS_Case_Sensitive_FALSE' => $conf_LCAS[0]=='false' ? 'checked="checked"' : '' , 183 'LCAS_Accent_Sensitive_TRUE' => $conf_LCAS[1]=='true' ? 'checked="checked"' : '' , 184 'LCAS_Accent_Sensitive_FALSE' => $conf_LCAS[1]=='false' ? 'checked="checked"' : '' , 185 'LCAS_MAIL_TRUE' => $conf_LCAS[2]=='true' ? 'checked="checked"' : '' , 186 'LCAS_MAIL_FALSE' => $conf_LCAS[2]=='false' ? 'checked="checked"' : '' , 187 'LCAS_MAILTEXT' => $conf_LCAS[3] 178 188 ) 179 189 ); -
extensions/LCAS/trunk/admin/template/global.tpl
r8257 r8271 64 64 <br><br> 65 65 <input type="radio" value="false" {$LCAS_Case_Sensitive_FALSE} name="LCAS_Case_Sensitive"> 66 {'LCAS_ Case_Sensitive_false'|@translate}<br>66 {'LCAS_DisableOption'|@translate}<br> 67 67 <input type="radio" value="true" {$LCAS_Case_Sensitive_TRUE} name="LCAS_Case_Sensitive"> 68 {'LCAS_ Case_Sensitive_true'|@translate}68 {'LCAS_EnableOption'|@translate} 69 69 <br><br> 70 70 </li> … … 76 76 <br><br> 77 77 <input type="radio" value="false" {$LCAS_Accent_Sensitive_FALSE} name="LCAS_Accent_Sensitive"> 78 {'LCAS_ Accent_Sensitive_false'|@translate}<br>78 {'LCAS_DisableOption'|@translate}<br> 79 79 <input type="radio" value="true" {$LCAS_Accent_Sensitive_TRUE} name="LCAS_Accent_Sensitive"> 80 {'LCAS_ Accent_Sensitive_true'|@translate}<br>80 {'LCAS_EnableOption'|@translate}<br> 81 81 <br><br> 82 82 </li> 83 83 84 84 <li> 85 <label class="cluetip" title="{'LCAS_ Email_Customization'|translate}|{'LCAS_Email_Customization_d'|translate}">86 {'LCAS_Mail Text'|@translate}85 <label class="cluetip" title="{'LCAS_MailTitle'|translate}|{'LCAS_MailTitle_d'|translate}"> 86 {'LCAS_Mail'|@translate} 87 87 </label> 88 88 <br><br> 89 <textarea class="LCAS_Mailtextfields" name="LCAS_MailText" id="LCAS_MailText" rows="10" {$TAG_INPUT_ENABLED}>{$LCAS_MAILTEXT}</textarea> 90 <br><br> 89 <input type="radio" value="false" {$LCAS_MAIL_FALSE} name="LCAS_Mail"> 90 {'LCAS_DisableOption'|@translate}<br> 91 <input type="radio" value="true" {$LCAS_MAIL_TRUE} name="LCAS_Mail"> 92 {'LCAS_EnableOption'|@translate}<br> 93 <br><br> 94 95 <ul> 96 <li> 97 <label class="cluetip" title="{'LCAS_Email_Customization'|translate}|{'LCAS_Email_Customization_d'|translate}"> 98 {'LCAS_MailText'|@translate} 99 </label> 100 <br><br> 101 <textarea class="LCAS_Mailtextfields" name="LCAS_MailText" id="LCAS_MailText" rows="10" {$TAG_INPUT_ENABLED}>{$LCAS_MAILTEXT}</textarea> 102 <br><br> 103 </li> 104 </ul> 91 105 </li> 92 106 </ul> … … 148 162 <th>{'LCAS_Compare_value_h'|@translate}</th> 149 163 <th>{'LCAS_Update_h'|@translate}</th> 150 <th>{'LCAS_Notify_h'|@translate}</th>151 164 </tr> 152 165 </thead> … … 163 176 {/if} 164 177 <td style="text-align:center;"><a href="javascript:UpdateAUser({$user.ID});">{'LCAS_Update_User'|@translate}</a></td> 165 <td style="text-align:center;"><a href="javascript:alert('to do - {$user.ID}');">{'LCAS_Send_Email'|@translate}</a></td>166 178 {foreach from=$user.plugin_columns item=data} 167 179 <td>{$data}</td>
Note: See TracChangeset
for help on using the changeset viewer.