// Load template
loadTemplate('admin_edit_bonus_email', FALSE, $content);
-} elseif (isFormSent('save')) {
+} elseif (isFormSent('do_edit')) {
// Save changes
if (isPostRequestElementSet('mid')) {
// Update pool
// Redirect to prevent missing cache in js.php
redirectToUrl('modules.php?module=admin&what=extensions&changed=' . countPostSelection());
-} elseif (((isFormSent('edit')) || (isPostRequestElementSet('modify'))) && (ifPostContainsSelections()) && (!isDemoModeActive())) {
+} elseif (((isFormSent('edit')) || (isPostRequestElementSet('do_edit'))) && (ifPostContainsSelections()) && (!isDemoModeActive())) {
// Change settings like CSS file load
- if (isPostRequestElementSet('modify')) {
+ if (isPostRequestElementSet('do_edit')) {
// Change entries
$cache_update = '0';
foreach (postRequestElement('sel') as $ext_id => $sel) {
if (isFormSent('edit')) {
// Edit template
$row = 'admin_edit_country_row';
- $do = 'modify';
+ $do = 'do_edit';
$class = 'form_submit';
$submit = '{--ADMIN_COUNTRY_EDIT_NOW--}';
$title = '{--ADMIN_COUNTRY_EDIT_TITLE--}';
} else {
// Delete template
$row = 'admin_delete_country_row';
- $do = 'remove';
+ $do = 'do_delete';
$class = 'form_delete';
$submit = '{--ADMIN_COUNTRY_DELETE_NOW--}';
$title = '{--ADMIN_COUNTRY_DELETE_TITLE--}';
// Shall we modify / remove entries now?
$message = '';
initSqls();
- if ((isPostRequestElementSet('modify')) && (isPostRequestElementSet('id'))) {
+ if ((isPostRequestElementSet('do_edit')) && (isPostRequestElementSet('id'))) {
// Modify
foreach (postRequestElement('id') as $id => $sel) {
addSql("UPDATE
$message = '{--ADMIN_COUNTRIES_REMOVED--}';
}
+ // Are a message and some SQLs set?
if ((!empty($message)) && (countSqls() > 0)) {
// Run SQL commands
runFilterChain('run_sqls');
// Load currenty setup country codes to list
$result = SQL_QUERY('SELECT `id`, `code`, `descr`, `is_active` FROM `{?_MYSQL_PREFIX?}_countries` ORDER BY `code` ASC',
- __FILE__, __LINE__);
+ __FILE__, __LINE__);
// Are there entries?
if (!SQL_HASZERONUMS($result)) {
// Prepare mail for delivery
YOOMEDIA_PREPARE_MAIL_DELIVERY(postRequestArray());
return;
-} elseif (isPostRequestElementSet('sent')) {
+} elseif (isPostRequestElementSet('send')) {
// Sent mail
YOOMEDIA_SEND_BONUS_MAIL(postRequestArray(), 'normal');
} elseif (isFormSent('do_delete')) {
// Detect what the member wants to do
$mode = 'show'; // Show his data
-if (isPostRequestElementSet('save')) $mode = 'save'; // Save entered data
+if (isFormSent('save')) $mode = 'save'; // Save entered data
if (isFormSent('edit')) $mode = 'edit'; // Edit data
-if (isPostRequestElementSet('notify')) $mode = 'notify'; // Switch off notification
+if (isFormSent('notify')) $mode = 'notify'; // Switch off notification
switch ($mode) {
case 'show': // Show his data
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADMINS_ADD_ADMIN--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADMINS_ADD_ADMIN--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADMINS_ADD_ADMIN--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADMINS_ADD_ADMIN--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_NEW_CATEGORY--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NEW_CATEGORY--}" />
</td>
</tr>
</table>
<input type="hidden" name="what" value="config_network_types" />
<input type="hidden" name="network_id" value="$content[network_id]" />
<input type="hidden" name="network_type_id" value="$content[network_type_id]" />
- <input type="submit" class="form_submit" value="{--ADMIN_ADD_CONFIG_NETWORK_HANDLER_TYPE_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_CONFIG_NETWORK_HANDLER_TYPE_SUBMIT--}" />
</div>
</div>
{%form_close%}
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_COUNTRY--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_COUNTRY--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_FORCED_AD_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_FORCED_AD_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_FORCED_CAMPAIGN_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_FORCED_CAMPAIGN_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_FORCED_COSTS_ADD_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_FORCED_COSTS_ADD_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add_grade" class="form_submit" value="{--ADMIN_ADD_GRADE_DATA_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add_grade" value="{--ADMIN_ADD_GRADE_DATA_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add_max" class="form_submit" value="{--ADMIN_ADD_MAX_RECEIVE--}" />
+ <input type="submit" class="form_submit" name="add_max" value="{--ADMIN_ADD_MAX_RECEIVE--}" />
</td>
</tr>
</table>
<tr>
<td colspan="3" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_PAYOUT_ADD_NEW--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_PAYOUT_ADD_NEW--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_POINTS_DATA_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_POINTS_DATA_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add" class="form_submit" value="{--ADMIN_ADD_RALLYE_PRICE_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_RALLYE_PRICE_SUBMIT--}" />
</td>
</tr>
</table>
</div>
<div class="table_footer">
- <input type="submit" name="no" class="form_submit" value="{--NO--}" />
- <input type="submit" name="ok" class="form_delete" value="{--YES--}" />
+ <input class="form_submit" type="submit" name="no" value="{--NO--}" />
+ <input type="submit" class="form_delete" name="ok" value="{--YES--}" />
</div>
</div>
</div>
<div align="center" class="table_footer">
- <input type="submit" name="no" class="form_submit" value="{--NO--}" />
- <input type="submit" name="ok" class="form_delete" value="{--YES--}" />
+ <input type="submit" class="form_submit" name="no" value="{--NO--}" />
+ <input type="submit" class="form_delete" name="ok" value="{--YES--}" />
</div>
</div>
<tr>
<td colspan="4" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="do_edit" class="form_submit" value="{--ADMIN_EDIT_ENTRIES--}" />
+ <input type="submit" class="form_submit" name="do_edit" value="{--ADMIN_EDIT_ENTRIES--}" />
</td>
</tr>
</table>
<td align="center" colspan="2" class="table_footer">
<input type="hidden" name="bid" value="$content[id]"/ >
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="save" class="form_submit" value="{--ADMIN_ACTION_CHANGE_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="do_edit" value="{--ADMIN_ACTION_CHANGE_SUBMIT--}" />
</td>
</tr>
</table>
<td align="center" colspan="2" class="table_footer">
<input type="hidden" name="mid" value="$content[id]"/ >
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="save" class="form_submit" value="{--ADMIN_CHANGE_EMAIL--}" />
+ <input type="submit" class="form_submit" name="do_edit" value="{--ADMIN_CHANGE_EMAIL--}" />
</td>
</tr>
</table>
<tr>
<td colspan="4" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="modify" class="form_submit" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="do_edit" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="do_edit" class="form_submit" value="{--ADMIN_CHANGE_SURFBAR_ACTIONS_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="do_edit" value="{--ADMIN_CHANGE_SURFBAR_ACTIONS_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="do_edit" class="form_submit" value="{--ADMIN_SURFBAR_EDIT_URL_NOW_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="do_edit" value="{--ADMIN_SURFBAR_EDIT_URL_NOW_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td colspan="6" class="table_footer">
<input type="reset" class="form_reset" value="{--RESET_SELECT--}" />
- <input type="submit" name="status" class="form_submit" value="{--ADMIN_CHANGE_STATUS_THEME--}" />
+ <input type="submit" class="form_submit" name="status" value="{--ADMIN_CHANGE_STATUS_THEME--}" />
<input type="submit" class="form_delete" name="delete" value="{--ADMIN_ACTION_DELETE_SUBMIT--}" />
</td>
</tr>
{%form,formMethodPost=modules.php?module=admin&what=list_beg%}
- <input type="submit" name="withdraw" class="form_submit" value="{--ADMIN_BEG_WITHDRAW_NOW_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="withdraw" value="{--ADMIN_BEG_WITHDRAW_NOW_SUBMIT--}" />
{%form_close%}
<div class="notice">
{%form,formMethodPost=modules.php?module=admin&what=list_bonus%}
- <input type="submit" name="withdraw" class="form_submit" value="{--ADMIN_BONUS_WITHDRAW_NOW--}"/>
+ <input type="submit" class="form_submit" name="withdraw" value="{--ADMIN_BONUS_WITHDRAW_NOW--}"/>
{%form_close%}
<div class="notice">
</div>
<div class="table_footer">
- <input type="submit" name="no" class="form_submit" value="{--NO--}" />
- <input type="submit" name="ok" class="form_delete" value="{--YES--}" />
+ <input type="submit" class="form_submit" name="no" value="{--NO--}" />
+ <input type="submit" class="form_delete" name="ok" value="{--YES--}" />
</div>
</div>
<div class="table">$content[header]</div>
</td>
</tr>
+
<tr>
<td align="center">$content[text]</td>
</tr>
+
<tr>
<td align="center">
[ <a href="{%user,email,generateWrappedUserEmailLink=$content[userid]%}">{%user,surname=$content[userid]%} {%user,family=$content[userid]%} ({%user,status,translateUserStatus=$content[userid]%})</a> ]
</td>
</tr>
+
<tr>
<td align="center" class="bottom">
<textarea name="reason" class="form_field" rows="5" cols="50"></textarea>
</td>
</tr>
+
<tr>
<td align="center" class="table_footer">
- <input type="submit" name="no" class="form_submit" value="{--NO--}" />
- <input type="submit" name="$content[ok]" class="form_delete" value="{--YES--}" />
+ <input type="submit" class="form_submit" name="no" value="{--NO--}" />
+ <input type="submit" class="form_delete" name="$content[ok]" value="{--YES--}" />
</td>
</tr>
</table>
</tr>
<tr>
<td align="center" class="table_footer">
- <input type="submit" name="no" class="form_submit" value="{--NO--}" />
- <input type="submit" name="yes" class="form_delete" value="{--YES--}" />
+ <input type="submit" class="form_submit" name="no" value="{--NO--}" />
+ <input type="submit" class="form_delete" name="yes" value="{--YES--}" />
</td>
</tr>
</table>
{%form,formMethodPost=modules.php?module=admin&what=list_payouts&do=accept&pid=$content[pid]&task=$content[tid]%}
- <input type="submit" class="form_submit" value="{--ADMIN_PAYOUT_ACCEPT_PAYOUT--}" />
+ <input type="submit" class="form_submit" name="accept" value="{--ADMIN_PAYOUT_ACCEPT_PAYOUT--}" />
{%form_close%}
<br />
{%form,formMethodPost=modules.php?module=admin&what=list_payouts&do=reject&pid=$content[pid]&task=$content[tid]%}
- <input type="submit" class="form_delete" value="{--ADMIN_PAYOUT_REJECT_PAYOUT--}" />
+ <input type="submit" class="form_delete" name="reject" value="{--ADMIN_PAYOUT_REJECT_PAYOUT--}" />
{%form_close%}
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="send_link" class="form_submit" value="{--ADMIN_RESET_PASSWORD_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="send_link" value="{--ADMIN_RESET_PASSWORD_SUBMIT--}" />
</td>
</tr>
</table>
<strong>{--ADMIN_RESET_PASSWORD_TITLE--}</strong>
</td>
</tr>
+
<tr>
<td class="bottom">
{--ADMIN_SHOW_LOGIN--}
<div>[<a href="{%url=modules.php?module=admin&reset_pass=1%}">{--ADMIN_CHANGE_LOGIN--}</a>]</div>
</td>
</tr>
+
<tr>
<td class="bottom">
{--ADMIN_ENTER_NEW_PASSWORD1--}
<input type="password" class="form_field" name="admin_password1" size="20" maxlength="255" />
</td>
</tr>
+
<tr>
<td class="bottom">
{--ADMIN_ENTER_NEW_PASSWORD2--}
<input type="password" class="form_field" name="admin_password2" size="20" maxlength="255" />
</td>
</tr>
+
<tr>
<td class="table_footer" colspan="2">
<input type="hidden" name="hash" value="$content[hash]" />
<input type="hidden" name="login" value="$content[admin_login]" />
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="reset_pass" class="form_submit" value="{--ADMIN_RESET_PASSWORD_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="reset_pass" value="{--ADMIN_RESET_PASSWORD_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="send_link" class="form_submit" value="{--ADMIN_RESET_PASSWORD_SEND_LINK_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="send_link" value="{--ADMIN_RESET_PASSWORD_SEND_LINK_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" align="center" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="sent" class="form_submit" value="{--ADMIN_SEND_MAIL--}" />
+ <input type="submit" class="form_submit" name="send" value="{--ADMIN_SEND_MAIL--}" />
</td>
</tr>
</table>
<input type="hidden" name="what" value="config_network_types" />
<input type="hidden" name="network_id" value="$content[network_id]" />
<input type="hidden" name="network_type_id" value="$content[network_type_id]" />
- <input type="submit" class="form_submit" value="{--ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="edit" value="{--ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_SUBMIT--}" />
</div>
</div>
{%form_close%}
<tr>
<td class="table_footer" colspan="5">
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
- <input type="submit" name="unlock" class="form_submit" value="{--ADMIN_SURFBAR_CONFIRM_URL_SUBMIT--}" />
- <input type="submit" name="reject" class="form_delete" value="{--ADMIN_SURFBAR_REJECT_URL_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="unlock" value="{--ADMIN_SURFBAR_CONFIRM_URL_SUBMIT--}" />
+ <input type="submit" class="form_delete" name="reject" value="{--ADMIN_SURFBAR_REJECT_URL_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="validate_hash" class="form_submit" value="{--ADMIN_VALIDATE_HASH_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="validate_hash" value="{--ADMIN_VALIDATE_HASH_SUBMIT--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" align="center" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="new_pass" class="form_submit" value="{--NEW_PASSWD--}" />
+ <input type="submit" class="form_submit" name="new_pass" value="{--NEW_PASSWD--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" align="center" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="new_pass" class="form_submit" value="{--NEW_PASSWD--}" />
+ <input type="submit" class="form_submit" name="new_pass" value="{--NEW_PASSWD--}" />
</td>
</tr>
</table>
</tr>
<tr>
<td colspan="2" align="center">
- <input type="submit" class="form_submit" value="{--INSTALLER_NEXT_PAGE--}" />
+ <input type="submit" class="form_submit" name="next_page" value="{--INSTALLER_NEXT_PAGE--}" />
</td>
</tr>
</table>
<input type="hidden" name="title" value="$content[title]" />
<input type="hidden" name="slogan" value="$content[slogan]" />
<input type="hidden" name="email" value="$content[email]" />
- <input type="submit" class="form_submit" value="{--INSTALLER_NEXT_PAGE--}" />
+ <input type="submit" class="form_submit" name="next_page" value="{--INSTALLER_NEXT_PAGE--}" />
</td>
</tr>
</table>
<input type="hidden" name="mysql[login]" value="$content[mysql_login]" />
<input type="hidden" name="mysql[password1]" value="$content[mysql_password1]" />
<input type="hidden" name="mysql[password2]" value="$content[mysql_password2]" />
- <input type="submit" class="form_submit" value="{--INSTALLER_NEXT_PAGE--}" />
+ <input type="submit" class="form_submit" name="next_page" value="{--INSTALLER_NEXT_PAGE--}" />
</td>
</tr>
</table>
<div class="table_footer top" style="margin-top:5px" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="add_subid" class="form_submit" value="{--MEMBER_USER_SUBIDS_ADD_SUBMIT--}" />
+ <input type="submit" class="form_submit" name="add_subid" value="{--MEMBER_USER_SUBIDS_ADD_SUBMIT--}" />
</div>
</div>
{%form_close%}
<tr>
<td colspan="2" align="center" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="stop" class="form_submit" value="{--MEMBER_HOLIDAY_STOP--}" />
+ <input type="submit" class="form_submit" name="stop" value="{--MEMBER_HOLIDAY_STOP--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="save" class="form_submit" value="{--SAVE_CHANGES--}" />
+ <input type="submit" class="form_submit" name="save" value="{--SAVE_CHANGES--}" />
</td>
</tr>
</table>
<div class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="data" class="form_submit" value="{--ORDER_PAGE_2--}" />
+ <input type="submit" class="form_submit" name="data" value="{--ORDER_PAGE_2--}" />
</div>
</div>
{%form_close%}
<div class="table_footer top" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="frametester" class="form_submit" value="{--CONTINUE_FRAMETESTER--}" />
+ <input type="submit" class="form_submit" name="frametester" value="{--CONTINUE_FRAMETESTER--}" />
</div>
</div>
{%form_close%}
</div>
<div class="table_footer">
- <input type="submit" class="form_submit" value="{--MEMBER_CONTINUE_AREA--}" />
+ <input type="submit" class="form_submit" name="continue" value="{--MEMBER_CONTINUE_AREA--}" />
</div>
{%form_close%}
</div>